]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
ldbl-opt: Add err, errx, verr, verrx, warn, warnx, vwarn, and vwarnx (bug 23984)
[thirdparty/glibc.git] / ChangeLog
1 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 [BZ #23984]
4 * include/bits/err-ldbl.h: New file.
5 * include/err.h: Add prototypes for the internal functions:
6 __vwarnx_internal and __vwarn_internal.
7 * misc/Makefile (headers): Add bits/err-ldbl.h.
8 * misc/bits/err-ldbl.h: New file.
9 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
10 defined, i.e.: when -mlong-double-64 is in use.
11 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
12 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
13 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
14 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
15 (VA_CALL): New macro.
16 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
17 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
18 functions.
19 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
20 declare prototypes for the new functions.
21 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
22 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23 Likewise.
24 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25 Likewise.
26 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27 Likewise.
28 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
29 Likewise.
30 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
33
34 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
35
36 * sysdeps/ieee754/ldbl-opt/Makefile
37 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
38 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
39 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
40
41 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
42
43 [BZ #23983]
44 * argp/Makefile (headers): Add bits/argp-ldbl.h.
45 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
46 * argp/bits/argp-ldbl.h: New file.
47 * include/argp.h: Include stdarg.h. Add prototypes for internal
48 functions: __argp_error_internal and __argp_failure_internal.
49 * include/bits/argp-ldbl.h: New file.
50 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
51 __nldbl_argp_error and __nldbl_argp_failure.
52 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
53 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
54 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
55 Redirect argp_error and argp_failure calls.
56 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
57 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
58 Likewise.
59 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
60 Likewise.
61 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
62 Likewise.
63 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
64 Likewise.
65 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
66 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
67 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
68
69 2019-03-01 Florian Weimer <fweimer@redhat.com>
70
71 [BZ #20419]
72 * elf/tst-big-note-lib.S: Create a syntactically valid note.
73 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
74 code, to avoid creating an ABI tag note.
75 (modules-names-nobuild): Add tst-big-note-lib.
76
77 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
78
79 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
80 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
81
82 2019-03-01 Florian Weimer <fweimer@redhat.com>
83
84 [BZ #20271]
85 * sysdeps/unix/sysv/linux/netlink_assert_response.c
86 (__netlink_assert_response): Add additional missing newlines.
87
88 2019-02-28 Joseph Myers <joseph@codesourcery.com>
89
90 * sysdeps/powerpc/powerpc32/dl-machine.c
91 (__elf_machine_fixup_plt): Use space before '('.
92 (__process_machine_rela): Likewise.
93 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
94 Likewise.
95 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
96 Likewise.
97 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
98 Likewise.
99 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
100 (pattern): Likewise.
101 (delta): Likewise.
102 (check_result): Likewise.
103 (check_excepts): Likewise.
104 (check_op): Likewise.
105 (fail_xr): Likewise.
106 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
107 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
108 (SCNHSZ): Likewise.
109 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
110 Likewise.
111 (ARGS): Likewise.
112 (__makecontext): Likewise.
113 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
114 Likewise.
115
116 2019-02-28 Florian Weimer <fweimer@redhat.com>
117
118 [BZ #23937]
119 elf: Add test with a local IFUNC resolver.
120 * elf/ifuncmain9.c: New file.
121 * elf/ifuncmain9pic.c: Likewise.
122 * elf/ifuncmain9picstatic.c: Likewise.
123 * elf/ifuncmain9pie.c: Likewise.
124 * elf/ifuncmain9static.c: Likewise.
125 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
126 ifuncmain9static, ifuncmain9picstatic.
127 * elf/Makefile [multi-arch && build-shared] (tests-internal):
128 Add ifuncmain9, ifuncmain9pic.
129 * elf/Makefile [multi-arch && build-shared && have-fpie]
130 (ifunc-pie-tests): Add ifuncmain9pie.
131 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
132 (CFLAGS-ifuncmain9picstatic.c): Likewise.
133 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
134
135 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
136
137 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
138 * configure: Regenerated.
139 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
140
141 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
142
143 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
144 symbol as __wcspcy instead of wcscpy.
145
146 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
147
148 * include/stdio.h (__renameat2): New hidden prototype.
149 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
150 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
151 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
152 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
153
154 2019-02-27 Joseph Myers <joseph@codesourcery.com>
155
156 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
157 if statement.
158
159 * benchtests/bench-strcpy.c (do_test): Use space before '('.
160 * benchtests/bench-string.h (cmdline_process_function): Likewise.
161 * benchtests/bench-strlen.c (do_test): Likewise.
162 (test_main): Likewise.
163 * catgets/gencat.c (read_old): Likewise.
164 * elf/cache.c (load_aux_cache): Likewise.
165 * iconvdata/bug-iconv8.c (do_test): Likewise.
166 * math/test-tgmath-ret.c (do_test): Likewise.
167 * nis/nis_call.c (rec_dirsearch): Likewise.
168 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
169 * nptl/tst-audit-threads.c (do_test): Likewise.
170 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
171 * nss/nss_test1.c (init): Likewise.
172 * nss/test-netdb.c (test_hosts): Likewise.
173 * posix/execvpe.c (maybe_script_execute): Likewise.
174 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
175 * stdio-common/tst-printf.c (do_test): Likewise.
176 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
177 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
178 * stdlib/qsort.c (STACK_SIZE): Likewise.
179 * stdlib/test-canon.c (do_test): Likewise.
180 * stdlib/tst-swapcontext1.c (do_test): Likewise.
181 * string/memcmp.c (OPSIZ): Likewise.
182 * string/test-strcpy.c (do_test): Likewise.
183 (do_random_tests): Likewise.
184 * string/test-strlen.c (do_test): Likewise.
185 (test_main): Likewise.
186 * string/test-strrchr.c (do_test): Likewise.
187 (do_random_tests): Likewise.
188 * string/tester.c (test_memrchr): Likewise.
189 (test_memchr): Likewise.
190 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
191 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
192 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
193 (read_encoded_value_with_base): Likewise.
194 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
195 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
196 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
197 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
198 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
199 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
200 Likewise.
201 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
202 Likewise.
203 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
204 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
205 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
206 Likewise.
207 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
208 Likewise.
209 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
210 Likewise.
211 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
212 Likewise.
213 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
214 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
215 (FP_XSTATE_MAGIC2_SIZE): Likewise.
216 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
217 * time/test_time.c (main): Likewise.
218
219 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
220
221 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
222
223 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
224 wmemcpy.
225
226 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
227 wmemcpy.
228
229 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
230
231 * include/wchar.h (__wcscpy): New prototype.
232 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
233 (__wcscpy): Route internal symbol to generic implementation.
234 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
235 Add internal __wcscpy alias.
236 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
237 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
238 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
239 * wcsmbs/wcscpy.c (wcscpy): Add
240 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
241 use generic implementation.
242 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
243
244 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
245 wmemset.
246
247 * sysdeps/m68k/wcpcpy.c: Remove file.
248 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
249
250 2019-02-26 Joseph Myers <joseph@codesourcery.com>
251
252 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
253 than after operators.
254 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
255 * sysdeps/mach/hurd/getcwd.c
256 (__hurd_canonicalize_directory_name_internal): Likewise.
257 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
258 (pthread_mutex_consistent): Likewise.
259 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
260 Likewise.
261 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
262 (__pthread_mutex_transfer_np): Likewise.
263 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
264 (__pthread_mutex_unlock): Likewise.
265 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
266 (mtx_owned_p): Likewise.
267 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
268 (pthread_mutexattr_getrobust): Likewise.
269 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
270 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
271 Likewise.
272 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
273 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
274 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
275 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
276 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
277 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
278 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
279 Likewise.
280 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
281 Likewise.
282 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
283 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
284 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
285 (____longjmp_chk): Likewise.
286 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
287 Likewise.
288 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
289 (INTERNAL_SYSCALL): Likewise.
290 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
291 (INTERNAL_SYSCALL): Likewise.
292 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
293 (__get_clockfreq_via_cpuinfo): Likewise.
294
295 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
296 comments.
297 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
298 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
299 (WORD_COPY_BWD): Likewise.
300 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
301 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
302 Likewise.
303 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
304 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
305 comment.
306 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
307
308 2019-02-25 Joseph Myers <joseph@codesourcery.com>
309
310 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
311 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
312 rather than after operators.
313 * elf/cache.c (print_cache): Likewise.
314 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
315 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
316 * hurd/hurdinit.c (_hurd_setproc): Likewise.
317 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
318 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
319 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
320 (reauth_proc): Likewise.
321 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
322 (__file_name_split_at): Likewise.
323 (__directory_name_split_at): Likewise.
324 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
325 * hurd/port2fd.c (_hurd_port2fd): Likewise.
326 * iconv/gconv_dl.c (do_print): Likewise.
327 * inet/netinet/in.h (struct sockaddr_in): Likewise.
328 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
329 * locale/setlocale.c (new_composite_name): Likewise.
330 * malloc/memusagestat.c (main): Likewise.
331 * misc/fstab.c (fstab_convert): Likewise.
332 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
333 Likewise.
334 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
335 (getgrent_next_file): Likewise.
336 (internal_getgrnam_r): Likewise.
337 (internal_getgrgid_r): Likewise.
338 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
339 Likewise.
340 (internal_getgrent_r): Likewise.
341 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
342 (getpwent_next_nss): Likewise.
343 (getpwent_next_file): Likewise.
344 (internal_getpwnam_r): Likewise.
345 (internal_getpwuid_r): Likewise.
346 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
347 Likewise.
348 (getspent_next_nss): Likewise.
349 (internal_getspnam_r): Likewise.
350 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
351 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
352 * string/strchr.c (STRCHR): Likewise.
353 * string/strchrnul.c (STRCHRNUL): Likewise.
354 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
355 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
356 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
357 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
358 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
359 Likewise.
360 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
361 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
362 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
363 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
364 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
365 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
366 (open_file): Likewise.
367 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
368 (pthread_mutexattr_setprotocol): Likewise.
369 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
370 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
371 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
372 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
373 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
374 Likewise.
375 (elf_machine_rela): Likewise.
376 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
377 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
378 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
379 * sysdeps/posix/rename.c (rename): Likewise.
380 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
381 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
382 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
383 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
384 * sysdeps/unix/grantpt.c (grantpt): Likewise.
385 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
386 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
387 Likewise.
388 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
389 Likewise.
390 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
391 * time/tzfile.c (__tzfile_compute): Likewise.
392
393 2019-02-22 Joseph Myers <joseph@codesourcery.com>
394
395 * benchtests/bench-memmem.c (simple_memmem): Break lines before
396 rather than after operators.
397 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
398 * crypt/md5.c (md5_finish_ctx): Likewise.
399 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
400 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
401 * elf/cache.c (load_aux_cache): Likewise.
402 * elf/dl-load.c (open_verify): Likewise.
403 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
404 * elf/readelflib.c (process_elf_file): Likewise.
405 * elf/rtld.c (dl_main): Likewise.
406 * elf/sprof.c (generate_call_graph): Likewise.
407 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
408 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
409 * hurd/dtable.c (reauth_dtable): Likewise.
410 * hurd/getdport.c (__getdport): Likewise.
411 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
412 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
413 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
414 Likewise.
415 * hurd/hurdioctl.c (fioctl): Likewise.
416 * hurd/hurdselect.c (_hurd_select): Likewise.
417 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
418 (STOPSIGS): Likewise.
419 * hurd/hurdstartup.c (_hurd_startup): Likewise.
420 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
421 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
422 * hurd/msgportdemux.c (msgport_server): Likewise.
423 * hurd/setauth.c (_hurd_setauth): Likewise.
424 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
425 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
426 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
427 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
428 * login/tst-utmp.c (do_check): Likewise.
429 (simulate_login): Likewise.
430 * mach/lowlevellock.h (lll_lock): Likewise.
431 (lll_trylock): Likewise.
432 * math/test-fenv.c (ALL_EXC): Likewise.
433 * math/test-fenvinline.c (ALL_EXC): Likewise.
434 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
435 * nis/nis_call.c (__do_niscall3): Likewise.
436 * nis/nis_callback.c (cb_prog_1): Likewise.
437 * nis/nis_defaults.c (searchaccess): Likewise.
438 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
439 * nis/nis_ismember.c (internal_ismember): Likewise.
440 * nis/nis_local_names.c (nis_local_principal): Likewise.
441 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
442 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
443 Likewise.
444 * nis/ypclnt.c (yp_match): Likewise.
445 (yp_first): Likewise.
446 (yp_next): Likewise.
447 (yp_master): Likewise.
448 (yp_order): Likewise.
449 * nscd/hstcache.c (cache_addhst): Likewise.
450 * nscd/initgrcache.c (addinitgroupsX): Likewise.
451 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
452 (internal_getpwuid_r): Likewise.
453 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
454 * posix/glob.h (__GLOB_FLAGS): Likewise.
455 * posix/regcomp.c (peek_token): Likewise.
456 (peek_token_bracket): Likewise.
457 (parse_expression): Likewise.
458 * posix/regexec.c (sift_states_iter_mb): Likewise.
459 (check_node_accept_bytes): Likewise.
460 * posix/tst-spawn3.c (do_test): Likewise.
461 * posix/wordexp-test.c (testit): Likewise.
462 * posix/wordexp.c (parse_tilde): Likewise.
463 (exec_comm): Likewise.
464 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
465 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
466 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
467 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
468 * stdio-common/tst-fileno.c (do_test): Likewise.
469 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
470 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
471 * stdlib/strtod_l.c (round_and_return): Likewise.
472 (____STRTOF_INTERNAL): Likewise.
473 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
474 * string/strcspn.c (STRCSPN): Likewise.
475 * string/test-memmem.c (simple_memmem): Likewise.
476 * termios/tcsetattr.c (tcsetattr): Likewise.
477 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
478 * time/asctime.c (asctime_internal): Likewise.
479 * time/strptime_l.c (__strptime_internal): Likewise.
480 * time/sys/time.h (timercmp): Likewise.
481 * time/tzfile.c (__tzfile_compute): Likewise.
482
483 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
484
485 [BZ #21915]
486 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
487
488 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
489
490 * argp/argp-help.c (__argp_error_internal): New function,
491 renamed from __argp_error, but that takes a 'mode_flags'
492 parameter to control the format of long double parameters.
493 (__argp_error): Converted into a call __argp_error_internal.
494 (__argp_failure_internal): New function, renamed from
495 __argp_failure, but that takes a 'mode_flags' parameter.
496 (__argp_failure): Converted into a call __argp_failure_internal.
497 * misc/err.c (__vwarnx_internal): New function, renamed from
498 vwarnx, but that takes a 'mode_flags' parameter.
499 (vwarnx): Converted into a call to __vwarnx_internal.
500 (__vwarn_internal): New function, renamed from vwarn, but that
501 takes a 'mode_flags' parameter.
502 (vwarn): Converted into a call to __vwarn_internal.
503 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
504 call to __vfxprintf with 'mode_flags'.
505 (__error_internal): New function, renamed from error, but that
506 takes a 'mode_flags' parameter.
507 (error): Converted into a call to __error_internal.
508 (__error_at_line_internal): New function, renamed from
509 error_at_line, but that takes a 'mode_flags' parameter.
510 (error_at_line): Converted into a call to
511 __error_at_line_internal.
512 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
513 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
514 Likewise.
515
516 2019-02-20 Martin Liska <mliska@suse.cz>
517
518 * math/Makefile: Install math-vector-fortran.h.
519 * bits/math-vector-fortran.h: New file.
520 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
521
522 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
523
524 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
525 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
526
527 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
528
529 * nptl/pthread_mutex_trylock.c: Fix comment.
530
531 2019-02-19 Carlos O'Donell <carlos@redhat.com>
532
533 * nptl/pthread_tryjoin.c: Fix comment.
534
535 2019-02-18 Joseph Myers <joseph@codesourcery.com>
536
537 [BZ #24231]
538 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
539 after R_SPARC_H34 case.
540
541 2019-02-18 Florian Weimer <fweimer@redhat.com>
542
543 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
544 (getanswer): Do not call Dprintf.
545 (res_gethostbyname2_context): Likewise.
546 (res_gethostbyaddr_context): Likewise.
547
548 2019-02-18 Florian Weimer <fweimer@redhat.com>
549
550 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
551 declaration.
552 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
553 Remove definitions.
554 * libio/stdfiles.c: Update comment.
555 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
556 set _IO_stdin, _IO_stdout, _IO_stderr.
557 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
558 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
559 inline function.
560 (_IO_deallocate_file): New inline function.
561 * libio/iolibio.h (_IO_vprintf): Remove definition.
562 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
563 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
564 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
565 _IO_legacy_file.
566 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
567 __builtin_expect. Use _IO_legacy_file.
568
569 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
570
571 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
572 Initialize ctid with a known value and remove update of ctid
573 after clone.
574 (wait_tid): Adjust arguments and call futex_wait with ctid_val
575 as assumed current value of ctid_ptr.
576
577 2019-02-15 Florian Weimer <fweimer@redhat.com>
578
579 Check that non-sysdeps headers have wrapper headers.
580 * scripts/check-wrapper-headers.py: New file.
581 * Makefile (tests-special): Add check-wrapper-headers.out.
582 (check-wrapper-headers.out): New target.
583 * Rules (tests-special): Add check-wrapper-headers.out.
584 (check-wrapper-headers.out): New target.
585
586 2019-02-15 Florian Weimer <fweimer@redhat.com>
587
588 Add missing header wrappers under include/.
589 * include/ar.h: New file.
590 * include/bits/mqueue2.h: Likewise.
591 * include/bits/stdio.h: Likewise.
592 * include/bits/stdio2.h: Likewise.
593 * include/fstab.h: Likewise.
594 * include/fts.h: Likewise.
595 * include/lastlog.h: Likewise.
596 * include/netinet/icmp6.h: Likewise.
597 * include/netinet/igmp.h: Likewise.
598 * include/netinet/ip6.h: Likewise.
599 * include/re_comp.h: Likewise.
600 * include/regexp.h: Likewise.
601 * include/rpcsvc/bootparam.h: Likewise.
602 * include/rpcsvc/yp_prot.h: Likewise.
603 * include/sys/random.h: Likewise.
604 * include/sys/stropts.h: Likewise.
605 * include/sys/ttychars.h: Likewise.
606 * include/sys/vfs.h: Likewise.
607 * include/wait.h: Likewise.
608
609 2019-02-15 Florian Weimer <fweimer@redhat.com>
610
611 * nptl_db/proc_service.h: Move to ...
612 * sysdeps/nptl/proc_service.h: ... here.
613 * nptl_db/thread_db.h: Move to ...
614 * sysdeps/nptl/thread_db.h: ... here.
615 * nptl/descr.h: Include <thread_db.h>.
616
617 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
618
619 * io/Makefile (tests): Add tst-lockf.
620 * io/lockf.c (lockf): Use __fcntl and only define for
621 !__OFF_T_MATCHES_OFF64_T.
622 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
623 __OFF_T_MATCHES_OFF64_T case.
624 * io/tst-lockf.c: New file.
625 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
626 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
627 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
628 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
629 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
631 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
632 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
633 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
634
635 2019-02-15 Florian Weimer <fweimer@redhat.com>
636
637 [BZ #24211]
638 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
639 pd->result after the thread descriptor has been freed.
640
641 2019-02-15 Joseph Myers <joseph@codesourcery.com>
642
643 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
644 from function return type.
645
646 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
647
648 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
649
650 * scripts/test_printers_common.py: Set TERM to a known harmless
651 value.
652
653 2019-02-14 Joseph Myers <joseph@codesourcery.com>
654
655 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
656 (xdr_u_int): Likewise.
657 (xdr_enum): Likewise.
658 (xdr_bytes): Reword fall-through comment.
659 (xdr_string): Likewise.
660
661 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
662
663 [BZ #2421]
664 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
665 (tests): Add tst-join8 tst-join9.
666 * nptl/lll_timedwait_tid.c: Remove file.
667 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
668 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
669 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
670 * nptl/pthread_join_common.c (timedwait_tid): New function.
671 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
672 is set.
673 * nptl/tst-join5.c (thread_join): New function.
674 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
675 check.
676 * nptl/tst-join8.c: New file.
677 * nptl/tst-join9.c: Likewise.
678 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
679 lll_futex_timed_wait_cancel): Add generic macros.
680 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
681 Remove definitions.
682 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
683 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
684 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
685 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
686 Remove function.
687 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
688 Likewise.
689 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
690 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
691 (lll_futex_timed_wait_cancel): New macro.
692
693 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
694
695 * benchtests/Makefile: Add malloc-simple benchmark.
696 * benchtests/bench-malloc-simple.c: New benchmark.
697
698 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
699
700 * benchtests/bench-memmove.c (do_one_test): Remove unused
701 ORIG_SRC.
702 (do_test): Adjust.
703 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
704 ORIG_SRC.
705 (do_test): Adjust.
706
707 2019-01-13 Jim Wilson <jimw@sifive.com>
708
709 [BZ #24040]
710 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
711 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
712 (func): New.
713 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
714 call func directly.
715 * nptl/Makefile (tests): Add tst-unwind-thread.
716 (CFLAGS-tst-unwind-thread.c): Define.
717 * nptl/tst-unwind-thread.c: New file.
718 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
719 as undefined.
720
721 2019-02-13 Joseph Myers <joseph@codesourcery.com>
722
723 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
724 comment wording.
725 * nis/nis_call.c (__do_niscall3): Likewise.
726
727 * catgets/gencat.c (normalize_line): Use braces around empty
728 'else' body.
729 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
730 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
731 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
732 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
733 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
734 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
735 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
736 definition.
737
738 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
739 execlp returns.
740
741 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
742
743 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
744 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
745 * benchtests/bench-strchr.c (stupid_strchr): Remove.
746 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
747 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
748 * benchtests/bench-strlen.c (builtin_strlen): Remove.
749 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
750 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
751 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
752 * benchtests/bench-strspn.c (stupid_strspn): Remove.
753 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
754 * benchtests/bench-bcopy.c: Delete file.
755 * benchtests/bench-bzero.c: Likewise.
756 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
757 (simple_memccpy): Remove.
758 (generic_memccpy): Add function.
759 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
760 * benchtests/bench-memmove.c (simple_bcopy): Remove.
761 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
762 (generic_mempcpy): Add new function.
763 * benchtests/bench-memset.c (simple_bzero): Remove.
764 (builtin_bzero): Remove.
765 (builtin_memset): Remove.
766 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
767 (generic_rawmemchr): Add new function.
768
769 2019-02-12 Florian Weimer <fweimer@redhat.com>
770
771 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
772
773 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
774
775 [BZ #24122]
776 * elf/Makefile (tests): Add tst-audit13.
777 (modules-names): Add tst-audit13mod1.
778 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
779 rule.
780 * elf/tst-audit13.c: New file.
781 * elf/tst-audit13mod1.c: Likewise.
782
783 2019-02-12 Florian Weimer <fweimer@redhat.com>
784
785 [BZ #24122]
786 * elf/rtld.c (unload_audit_module): New function.
787 (report_audit_module_load_error): Likewise.
788 (load_audit_module): Likewise. Extracted from dl_main. Call
789 _dl_close if the laversion symbol cannot be found. Use early
790 returns for error handling. Add malloc error check. Check for a
791 zero return value from la_version. Remove spurious comment about
792 static TLS initialization. Remove useless casts.
793 (notify_audit_modules_of_loaded_object): New function. Extracted
794 from dl_main.
795 (load_audit_module): Likewise.
796 (dl_main): Call load_audit_modules.
797
798 2019-02-12 Joseph Myers <joseph@codesourcery.com>
799
800 * elf/dl-exception.c (_dl_exception_create_format): Add
801 fall-through comments.
802 * elf/ldconfig.c (parse_conf_include): Likewise.
803 * elf/rtld.c (print_statistics): Likewise.
804 * locale/programs/charmap.c (parse_charmap): Likewise.
805 * misc/mntent_r.c (__getmntent_r): Likewise.
806 * posix/wordexp.c (parse_arith): Likewise.
807 (parse_backtick): Likewise.
808 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
809 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
810 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
811
812 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
813
814 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
815 Use float instead of double.
816
817 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
818
819 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
820
821 2019-02-08 Joseph Myers <joseph@codesourcery.com>
822
823 * sysdeps/powerpc/bits/mathinline.h: Remove.
824
825 2019-02-08 Florian Weimer <fweimer@redhat.com>
826
827 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
828 * math/bits/math-finite.h: Move to ...
829 * bits/math-finite.h: ... here.
830
831 2019-02-08 Florian Weimer <fweimer@redhat.com>
832
833 * sysdeps/generic/bits/unistd_ext.h: Move to ...
834 * bits/unistd_ext.h: here.
835
836 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
837
838 [BZ #21915]
839 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
840 * nss/tst-nss-files-hosts-long.c: New file.
841 * nss/tst-nss-files-hosts-long.root: New directory.
842 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
843 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
844
845 2019-02-08 Florian Weimer <fweimer@redhat.com>
846
847 * include/bits/unistd_ext.h: Remove file.
848 * posix/bits/unistd_ext.h: Move to ...
849 * sysdeps/generic/bits/unistd_ext.h: ... here.
850
851 2019-02-08 Florian Weimer <fweimer@redhat.com>
852
853 * include/bits/unistd_ext.h: New file.
854
855 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
856
857 * time/tst-strftime2.c: Use array_length macros instead of magic
858 numbers.
859
860 2019-02-08 Florian Weimer <fweimer@redhat.com>
861
862 [BZ #24161]
863 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
864 argument.
865 * nptl/register-atfork.c (__run_fork_handlers): Only perform
866 locking if the new do_locking argument is true.
867 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
868 __run_fork_handlers.
869
870 2019-02-08 Florian Weimer <fweimer@redhat.com>
871
872 [BZ #6399]
873 Linux: Add gettid system call wrapper.
874 * posix/Makefile (headers): Add bits/unistd_ext.h.
875 * posix/bits/unistd_ext.h: New file.
876 * posix/unistd.h: Include it.
877 * manual/process.texi (Process Identification): Document gettid.
878 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
879 tst-gettid, tst-gettid-kill.
880 (tst-gettid): Link with $(shared-thread-library).
881 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
882 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
883 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
884 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
885 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
886 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
887 Add gettid.
888 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
889 Likewise.
890 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
891 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
892 Likewise.
893 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
894 Likewise.
895 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
896 Likewise.
897 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
898 Likewise.
899 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
900 Likewise.
901 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
902 Likewise.
903 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
904 Likewise.
905 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
906 (GLIBC_2.30): Likewise.
907 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
908 (GLIBC_2.30): Likewise.
909 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
910 (GLIBC_2.30): Likewise.
911 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
912 (GLIBC_2.30): Likewise.
913 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
914 Likewise.
915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
916 (GLIBC_2.30): Likewise.
917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
918 (GLIBC_2.30): Likewise.
919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
920 (GLIBC_2.30): Likewise.
921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
922 (GLIBC_2.30): Likewise.
923 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
924 Likewise.
925 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
926 Likewise.
927 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
928 Likewise.
929 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
930 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
931 Likewise.
932 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
933 Likewise.
934 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
935 Likewise.
936 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
937 Likewise.
938 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
939
940 2019-02-07 Florian Weimer <fweimer@redhat.com>
941
942 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
943 compatibility symbols.
944
945 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
946
947 [BZ #24180]
948 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
949 Add compiler barriers and comments.
950
951 2019-02-07 Florian Weimer <fweimer@redhat.com>
952
953 * include/array_length.h (array_length): Do not use a statement
954 expression and _Static_assert, so that array_length can be used at
955 file scope and as a constant expression.
956
957 2019-02-07 Florian Weimer <fweimer@redhat.com>
958
959 * support/xdlfcn.h (xdlmopen): Declare.
960 * support/xdlmopen.c: New file.
961 * support/Makefile (libsupport-routines): Add xdlmopen.
962
963 2019-02-06 Joseph Myers <joseph@codesourcery.com>
964
965 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
966 before return type, without separate inline.
967 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
968 * elf/dl-tunables.h (tunable_is_name): Likewise.
969 * malloc/malloc.c (do_set_trim_threshold): Likewise.
970 (do_set_top_pad): Likewise.
971 (do_set_mmap_threshold): Likewise.
972 (do_set_mmaps_max): Likewise.
973 (do_set_mallopt_check): Likewise.
974 (do_set_perturb_byte): Likewise.
975 (do_set_arena_test): Likewise.
976 (do_set_arena_max): Likewise.
977 (do_set_tcache_max): Likewise.
978 (do_set_tcache_count): Likewise.
979 (do_set_tcache_unsorted_limit): Likewise.
980 * nis/nis_subr.c (count_dots): Likewise.
981 * nptl/allocatestack.c (advise_stack_range): Likewise.
982 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
983 (do_sin): Likewise.
984 (reduce_sincos): Likewise.
985 (do_sincos): Likewise.
986 * sysdeps/unix/sysv/linux/x86/elision-conf.c
987 (do_set_elision_enable): Likewise.
988 (TUNABLE_CALLBACK_FNDECL): Likewise.
989
990 2019-02-06 Florian Weimer <fweimer@redhat.com>
991
992 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
993 (xdlsym): Use dlerror to detect a NULL symbol.
994
995 2019-02-06 Florian Weimer <fweimer@redhat.com>
996
997 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
998 <stap-probe.h>.
999 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1000
1001 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1002
1003 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1004
1005 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1006
1007 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1008 __wmemcmp and weak alias to wmemcmp.
1009
1010 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1011
1012 [BZ #23403]
1013 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1014 TLS_TCB_AT_TP tls variant.
1015 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1016 Add alignment checks.
1017 * support/Makefile (libsupport-routines): Add xposix_memalign and
1018 xpthread_setstack.
1019 * support/support.h: Add xposix_memalign.
1020 * support/xthread.h: Add xpthread_attr_setstack.
1021 * support/xposix_memalign.c: New File.
1022 * support/xpthread_attr_setstack.c: Likewise.
1023
1024 2019-02-05 Florian Weimer <fweimer@redhat.com>
1025
1026 [BZ #24164]
1027 arm: Use "nr" constraint for Systemtap probes, to avoid the
1028 compiler using memory operands for constants, due to the "o"
1029 alternative in the default "nor" constraint.
1030 * include/stap-probe.h [USE_STAP_PROBE]: Include
1031 <stap-probe-machine.h>
1032 * sysdeps/generic/stap-probe-machine.h: New file.
1033 * sysdeps/arm/stap-probe-machine.h: Likewise.
1034
1035 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1036
1037 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1038 with 0, not tcache->entries[tc_idx].
1039
1040 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1041 once.
1042
1043 2019-02-04 Andreas Schwab <schwab@suse.de>
1044
1045 [BZ #16976]
1046 [BZ #17396]
1047 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1048 looking up collating elements match against (wide) character
1049 sequence instead of name. Correct alignment adjustment.
1050 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1051 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1052 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1053 (LOCALES): Add cs_CZ.ISO-8859-2.
1054 * posix/tst-fnmatch4.c: New file.
1055 * posix/tst-fnmatch5.c: New file.
1056 * include/wchar.h (__wmemcmp): Declare.
1057 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1058 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1059 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1060 * sysdeps/s390/wmemcmp.c: Likewise.
1061
1062 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 [BZ #24155]
1065 CVE-2019-7309
1066 * NEWS: Updated for CVE-2019-7309.
1067 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1068 upper 32 bits of RDX register for x32. Use unsigned Jcc
1069 instructions, instead of signed.
1070 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1071 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1072
1073 2019-02-04 Florian Weimer <fweimer@redhat.com>
1074
1075 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1076 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1077 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1078 Likewise.
1079 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1080 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1081 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1082 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1083 Likewise.
1084 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1085 Likewise.
1086 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1087 Likewise.
1088 (posix_spawn_file_actions_addopen): Likewise.
1089 (posix_spawn_file_actions_addclose): Likewise.
1090 (posix_spawn_file_actions_adddup2): Likewise.
1091 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1092 qualifiers.
1093 (posix_spawn_file_actions_addfchdir_np): Likewise.
1094
1095 2019-02-04 David Newall <glibc@davidnewall.com>
1096
1097 elf: Implement --preload option for the dynamic linker.
1098 * elf/rtld.c (preloadarg): New variable.
1099 (handle_preload_list): Pass through “where” argument to
1100 do_preload.
1101 (dl_main): Handle "--preload" and add second call to
1102 handle_preload_list.
1103 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1104 (tst-rtld-preload-OBJS): Set variable.
1105 (tst-rtld-preload.out): New target.
1106 * elf/tst-rtld-preload.sh: New file.
1107
1108 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1109
1110 * Makefile (testrun.sh): Exit in case of incorrect argument.
1111
1112 2019-02-04 Florian Weimer <fweimer@redhat.com>
1113
1114 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1115 alignment gaps.
1116
1117 2019-02-03 Florian Weimer <fweimer@redhat.com>
1118
1119 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1120 implicit overflow checks.
1121
1122 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1123
1124 * stdlib/isomac.c: Include <unistd.h>.
1125
1126 2019-02-03 Florian Weimer <fweimer@redhat.com>
1127
1128 * include/time.h (__tzfile_default): Use int, not long int, for
1129 the GMT offsets.
1130 * time/tzfile.c (struct ttinfo): Change type of the offset member
1131 to int.
1132 (__tzfile_read): Remove useless cast.
1133 (__tzfile_default): Adjust prototype.
1134 * time/tzset.c (tz_rule): Change type of the offset member to int.
1135 (parse_offset): Change the type of the sign variable to int.
1136
1137 2019-02-03 Florian Weimer <fweimer@redhat.com>
1138
1139 [BZ #24153]
1140 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1141 * libio/getchar.c (getchar): Likewise.
1142 * libio/getchar_u.c (getchar_unlocked): Likewise.
1143 * libio/getwchar.c (getwchar): Likewise.
1144 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1145 * libio/iogets.c (_IO_gets): Likewise.
1146 * libio/vscanf.c (_IO_vscanf): Likewise.
1147 * libio/vwscanf.c (__vwscanf): Likewise.
1148 * libio/tst-bz24153.c: New file.
1149 * libio/Makefile (tests): Add it.
1150
1151 2019-02-02 Florian Weimer <fweimer@redhat.com>
1152
1153 [BZ #14829]
1154 * manual/resource.texi (Basic Scheduling Functions): Add
1155 portability note. Change process to task throughout the section.
1156 Remove incorrect comment about sched_yield as it affects
1157 tasks/threads, not entire processes.
1158 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1159 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1160
1161 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1162
1163 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1164 * configure: Regenerated.
1165 * manual/install.texi (Tools for Compilation): Update minimum GCC
1166 version.
1167 * INSTALL: Regenerated.
1168
1169 2019-02-01 Florian Weimer <fweimer@redhat.com>
1170
1171 * support/support_test_compare_string.c
1172 (support_test_compare_string): Use "string" in error message.
1173 * support/tst-test_compare_string.c (do_test): Adjust.
1174
1175 2019-02-01 Florian Weimer <fweimer@redhat.com>
1176
1177 * support/support_format_address_family.c
1178 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1179
1180 2019-02-01 Florian Weimer <fweimer@redhat.com>
1181
1182 * manual/socket.texi (Internet Address Formats): Clarify the byte
1183 order of struct sockaddr_in, struct sockaddr_in6. Document
1184 sin6_flowinfo and sin6_scope_id.
1185
1186 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1187
1188 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1189 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1190 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1191 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1192 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1193 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1194
1195 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1196
1197 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1198 [!MEMCHR](MEMCHR): Set to __memchr.
1199 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1200 Add memchr_generic and memchr_nosimd.
1201 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1202 (__libc_ifunc_impl_list): Add memchr ifuncs.
1203 * sysdeps/aarch64/multiarch/memchr.c: New file.
1204 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1205 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1206
1207 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1208
1209 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1210 Add memset_emag.
1211 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1212 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1213 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1214 Add IS_EMAG check for ifunc dispatch.
1215 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1216 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1217
1218 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1219
1220 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1221 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1222 Add emag.
1223 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1224 New macro.
1225
1226 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1227
1228 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1229
1230 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1231
1232 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1233 syscall-template file.
1234
1235 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1236 Torvald Riegel <triegel@redhat.com>
1237 Rik Prohaska <prohaska7@gmail.com>
1238
1239 [BZ# 23844]
1240 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1241 tst-rwlock-trywrlock-stall.
1242 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1243 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1244 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1245 Set __wrphase_fute to 1 only if we started the write phase.
1246 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1247 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1248 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1249 * support/xpthread_rwlock_destroy.c: New file.
1250 * support/xthread.h: Declare xpthread_rwlock_destroy.
1251
1252 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1253
1254 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1255 version to 4.0.2.
1256
1257 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1258
1259 [BZ #24051]
1260 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1261 * libio/fileops.c (_IO_new_file_underflow): Likewise
1262 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1263 * libio/putchar.c (putchar): Likewise.
1264 * libio/putchar_u.c (putchar_unlocked): Likewise.
1265 * libio/putwchar.c (putchar): Likewise.
1266 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1267 * libio/tst-bz24051.c: New test.
1268 * libio/Makefile (tests): Add tst-bz24051
1269
1270 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1271
1272 regex: fix read overrun [BZ #24114]
1273 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1274 https://debbugs.gnu.org/34140
1275 * posix/regexec.c (proceed_next_node):
1276 Do not read past end of input buffer.
1277
1278 2019-01-31 Florian Weimer <fweimer@redhat.com>
1279
1280 [BZ #24059]
1281 * nss/nss_files/files-alias.c (get_next_alias): Handle
1282 continuation line without newline at the end.
1283 * nss/tst-nss-files-alias-truncated.c: New file.
1284 * nss/Makefile [$(build-shared)] (tests): Add
1285 tst-nss-files-alias-truncated.
1286 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1287 * support/namespace.h (struct support_chroot_configuration): Add
1288 aliases member.
1289 (struct support_chroot): Add path_aliases member.
1290 * support/support_chroot.c (support_chroot_create): Handle
1291 aliases.
1292 (support_chroot_free): Free path_aliases.
1293
1294 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1295
1296 * version.h (RELEASE): Set to "development".
1297 (VERSION): Set to "2.29.9000".
1298 * NEWS: Add section for 2.30.
1299
1300 * version.h (RELEASE): Set to "stable".
1301 (VERSION): Set to "2.29".
1302 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1303
1304 * NEWS: Add the list of bugs fixed in 2.29.
1305 * manual/contrib.texi: Update contributors list with some more
1306 names.
1307 * manual/install.texi: Update latest versions of packages
1308 tested.
1309 * INSTALL: Regenerated.
1310
1311 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1312
1313 * po/be.po: Update translations.
1314 * po/bg.po: Likewise.
1315 * po/ca.po: Likewise.
1316 * po/cs.po: Likewise.
1317 * po/da.po: Likewise.
1318 * po/de.po: Likewise.
1319 * po/el.po: Likewise.
1320 * po/eo.po: Likewise.
1321 * po/es.po: Likewise.
1322 * po/fi.po: Likewise.
1323 * po/fr.po: Likewise.
1324 * po/gl.po: Likewise.
1325 * po/hr.po: Likewise.
1326 * po/hu.po: Likewise.
1327 * po/ia.po: Likewise.
1328 * po/id.po: Likewise.
1329 * po/it.po: Likewise.
1330 * po/ja.po: Likewise.
1331 * po/ko.po: Likewise.
1332 * po/lt.po: Likewise.
1333 * po/nb.po: Likewise.
1334 * po/nl.po: Likewise.
1335 * po/pl.po: Likewise.
1336 * po/pt_BR.po: Likewise.
1337 * po/ru.po: Likewise.
1338 * po/rw.po: Likewise.
1339 * po/sk.po: Likewise.
1340 * po/sl.po: Likewise.
1341 * po/sv.po: Likewise.
1342 * po/tr.po: Likewise.
1343 * po/uk.po: Likewise.
1344 * po/vi.po: Likewise.
1345 * po/zh_CN.po: Likewise.
1346 * po/zh_TW.po: Likewise.
1347
1348 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1349
1350 [BZ #24130]
1351 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1352 of $f3 register on $y_is_neg path.
1353
1354 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1355
1356 [BZ #24110]
1357 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1358 sigaltstack.ss_flags.
1359
1360 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1361
1362 [BZ #23758]
1363 * manual/time.texi (strftime): Document "%Ey".
1364 * time/strftime_l.c (__strftime_internal): Set the default width
1365 padding with zero of "%Ey" to 2.
1366
1367 [BZ #24096]
1368 * manual/time.texi (strftime): Document "%EC" and "%EY".
1369 * time/Makefile (tests): Add tst-strftime2.
1370 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1371 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1372 override padding for "%Ey".
1373 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1374 "%Ey" in the subformat as if decorated with that flag.
1375 * time/tst-strftime2.c: New file.
1376
1377 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1378
1379 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1380 are not defined.
1381
1382 [BZ #24122]
1383 * elf/Makefile (tests): Add tst-audit13.
1384 (modules-names): Add tst-audit13mod1.
1385 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1386 rule.
1387 * elf/rtld.c (dl_main): Handle invalid audit module version.
1388 * elf/tst-audit13.c: New file.
1389 * elf/tst-audit13mod1.c: Likewise.
1390
1391 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1392
1393 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1394 returned by __hurd_at_flags.
1395 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1396 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1397 directly instead of __hurd_file_name_lookup.
1398
1399 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1400
1401 * scripts/build-many-glibcs.py (Context.checkout): Default
1402 binutils version to 2.32 branch.
1403
1404 2019-01-21 Florian Weimer <fweimer@redhat.com>
1405
1406 [BZ #20018]
1407 CVE-2016-10739
1408 resolv: Reject trailing characters in host names
1409 * include/arpa/inet.h (__inet_aton_exact): Declare.
1410 (inet_aton): Remove hidden prototype. No longer used internally.
1411 * nscd/gai.c (__inet_aton): Do not define.
1412 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1413 * nss/digits_dots.c (__inet_aton): Likewise.
1414 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1415 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1416 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1417 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1418 (tst-resolv-trailing): Likewise.
1419 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1420 libc.
1421 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1422 Make static. Add endp parameter.
1423 (__inet_aton_exact): New function.
1424 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1425 (__inet_addr): Call inet_aton_end.
1426 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1427 not just IPv6. Call __inet_aton_exact.
1428 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1429 (tests): Make const. Add additional test cases with trailing
1430 characters.
1431 (do_test): Use array_length.
1432 * resolv/tst-inet_aton_exact.c: New file.
1433 * resolv/tst-resolv-trailing.c: Likewise.
1434 * resolv/tst-resolv-nondecimal.c: Likewise.
1435 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1436
1437 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1438
1439 [BZ# 24097]
1440 CVE-2019-6488
1441 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1442 Clear the upper 32 bits of RSI register.
1443 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1444 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1445 and tst-size_t-wcsnlen.
1446 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1447 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1448
1449 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1450
1451 [BZ# 24097]
1452 CVE-2019-6488
1453 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1454 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1455 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1456 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1457 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1458
1459 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 [BZ# 24097]
1462 CVE-2019-6488
1463 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1464 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1465 * sysdeps/x86_64/strcmp.S: Likewise.
1466 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1467 tst-size_t-strncmp and tst-size_t-wcsncmp.
1468 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1469 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1470 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1471
1472 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 [BZ# 24097]
1475 CVE-2019-6488
1476 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1477 RDX_LP for length. Clear the upper 32 bits of RDX register.
1478 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1479 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1480 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1481 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1482
1483 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1484
1485 [BZ# 24097]
1486 CVE-2019-6488
1487 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1488 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1489 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1490 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1491
1492 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1493
1494 [BZ# 24097]
1495 CVE-2019-6488
1496 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1497 length. Clear the upper 32 bits of RDX register.
1498 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1499 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1500 Likewise.
1501 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1502 Likewise.
1503 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1504 tst-size_t-wmemchr.
1505 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1506
1507 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1508
1509 [BZ# 24097]
1510 CVE-2019-6488
1511 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1512 length. Clear the upper 32 bits of RDX register.
1513 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1514 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1515 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1516 tst-size_t-wmemcmp.
1517 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1518 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1519
1520 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1521
1522 [BZ# 24097]
1523 CVE-2019-6488
1524 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1525 upper 32 bits of RDX register.
1526 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1527 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1528 tst-size_t-wmemchr.
1529 * sysdeps/x86_64/x32/test-size_t.h: New file.
1530 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1531 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1532
1533 2019-01-18 Florian Weimer <fweimer@redhat.com>
1534
1535 [BZ #24112]
1536 resolv: Do not send queries for non-host-names in nss_dns.
1537 * resolv/nss_dns/dns-host.c (check_name): New function.
1538 (_nss_dns_gethostbyname2_r): Use it.
1539 (_nss_dns_gethostbyname_r): Likewise.
1540 (_nss_dns_gethostbyname4_r): Likewise.
1541
1542 2019-01-21 Florian Weimer <fweimer@redhat.com>
1543
1544 * resolv/inet_addr.c: Reformat to GNU style.
1545 (__inet_addr, __inet_aton): Update comment.
1546
1547 2019-01-18 Florian Weimer <fweimer@redhat.com>
1548
1549 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1550 ("malloc: Use current (C11-style) atomics for fastbin access").
1551 This commit introduces a substantial performance regression on
1552 POWER and Aarch64.
1553 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1554 (REMOVE_FB): Define.
1555 (_int_malloc): Use it and reindent.
1556 (_int_free): Use CAS loop with
1557 catomic_compare_and_exchange_val_rel.
1558 (malloc_consolidate): Use atomic_exchange_acq.
1559
1560
1561 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1562
1563 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1564 -Wl,-z,now.
1565 (LDFLAGS-tst-minsigstksz-2): Likewise.
1566 (LDFLAGS-tst-minsigstksz-3): Likewise.
1567 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1568 (LDFLAGS-tst-minsigstksz-4): Likewise.
1569
1570 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1571
1572 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1573 than "alternate".
1574
1575 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1576
1577 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1578
1579 2019-01-16 Zack Weinberg <zackw@panix.com>
1580
1581 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1582 (xget_sigstack_location): New test support functions.
1583 * support/xsigstack.c: New file, implementing them.
1584 * support/tst-xsigstack.c: New test for them.
1585 * support/Makefile: Update.
1586
1587 * signal/tst-minsigstksz-1.c
1588 * signal/tst-minsigstksz-2.c
1589 * signal/tst-minsigstksz-3.c
1590 * signal/tst-minsigstksz-3a.c
1591 * signal/tst-minsigstksz-4.c: New tests.
1592 * signal/Makefile: Run them.
1593
1594 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1595
1596 * po/libc.pot: Regenerate.
1597
1598 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1599
1600 * math/libm-test-fma.inc (fma_test_data): Set
1601 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1602
1603 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1604
1605 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1606 (do_test): Changed __vector __int128_t to __vector unsigned int.
1607
1608 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1609
1610 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1611 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1612 stpcpy-avx2 and stpncpy-avx2.
1613 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1614 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1615 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1616 and __stpncpy_avx2.
1617 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1618 ifunc-strcpy.h}: rename header for a more generic name.
1619 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1620 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1621 AVX unaligned load is fast and vzeroupper is preferred.
1622 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1623 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1624 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1625 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1626 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1627 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1628
1629 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1630
1631 * argp/argp-help.c: Fix typo in comment.
1632 * misc/sys/cdefs.h: Likewise.
1633 * posix/regexec.c (sift_states_iter_mb): Likewise.
1634 * socket/sockatmark.c: Likewise.
1635 * socket/sys/socket.h: Likewise.
1636 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1637 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1638 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1639 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1640 * sysdeps/unix/sockatmark.c: Likewise.
1641 * time/strptime_l.c: Likewise.
1642
1643 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1644
1645 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1646 missing space after the cast of "_NL_CURRENT".
1647
1648 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1649
1650 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1651 ifdef to fix read of VSCR.
1652 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1653 tst-ucontext-ppc64-vscr.c to test list.
1654 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1655
1656 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1657
1658 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1659 fall-through.
1660
1661 2019-01-09 Jim Wilson <jimw@sifive.com>
1662
1663 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1664
1665 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1666
1667 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1668 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1669 __memcpy_falkor for ares.
1670 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1671 Add new define.
1672 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1673 Add ares cpu.
1674
1675 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 [BZ #24066]
1678 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1679 4_FP_W_TYPEs are used for IEEE quad precision.
1680 * soft-fp/extendhftf2.c: Likewise.
1681 * soft-fp/extendsftf2.c: Likewise.
1682 * soft-fp/extendxftf2.c: Likewise.
1683 * soft-fp/trunctfdf2.c: Likewise.
1684 * soft-fp/trunctfhf2.c: Likewise.
1685 * soft-fp/trunctfsf2.c: Likewise.
1686 * soft-fp/trunctfxf2.c: Likewise.
1687 * sysdeps/alpha/ots_cvttx.c: Likewise.
1688 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1689 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1690 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1691 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1692 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1693 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1694 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1695 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1696 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1697 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1698 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1699 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1700 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1701 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1702 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1703 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1704 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1705
1706 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1707
1708 [BZ #24024]
1709 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1710 code with -fmath-errno.
1711 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1712 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1713 * string/test-strerror-errno.c: New file.
1714
1715 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1716
1717 [BZ #24046]
1718 * localedata/locales/en_US (date_fmt): Add, set to
1719 "%a %d %b %Y %r %Z".
1720
1721 2019-01-07 Florian Weimer <fweimer@redhat.com>
1722
1723 [BZ #24063]
1724 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1725 instead of @var{errno}.
1726 (Parsing of Integers): Likewise.
1727 (Parsing of Floats): Likewise.
1728 * manual/filesys.texi (Working with Directory Trees): Likewise.
1729 (Temporary Files): Likewise.
1730 * manual/job.texi (Terminal Access Functions): Likewise.
1731 * manual/llio.texi (Synchronizing I/O): Likewise.
1732 * manual/math.texi (SVID Random): Likewise.
1733 * manual/message.texi (The catgets Functions): Likewise.
1734 (Translation with gettext): Likewise.
1735 (Locating gettext catalog): Likewise.
1736 (Charset conversion in gettext): Likewise.
1737 * manual/nss.texi (NSS Module Function Internals): Likewise.
1738 * manual/search.texi (Hash Search Function): Likewise.
1739 * manual/setjmp.texi (System V contexts): Likewise.
1740 * manual/time.texi (Sleeping): Likewise.
1741 * manual/users.texi (Lookup User): Likewise.
1742 (Lookup Group): Likewise.
1743
1744 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1745
1746 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1747 fix typo.
1748
1749 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1750
1751 [BZ #19444]
1752 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1753 __builtin_unreachable for default case in switch.
1754 (__ieee754_yn): Likewise.
1755 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1756 (__ieee754_ynl): Likewise.
1757 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1758 (__ieee754_ynl): Likewise.
1759 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1760 (__ieee754_ynl): Likewise.
1761
1762 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1763
1764 * manual/maint.texi: Use @{ and @}.
1765
1766 2019-01-04 Florian Weimer <fweimer@redhat.com>
1767
1768 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1769 function.
1770 (do_in_chroot_1): Call it.
1771 (run_chroot_tests):
1772 Improve error reporting in case it is not possible to create a
1773 collision for the PTY name required by the test.
1774
1775 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1776
1777 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1778 lll_wait_tid with timeout.
1779 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1780 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1781 futex_reltimed_wait_cancelable for cancelabla mode.
1782 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1783 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1784 macros.
1785 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1786 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1787 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1788 SYSCALL_CANCEL_NCS): New macro.
1789 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1790 (lll_timedwait_tid): Remove macro.
1791 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1792 Likewise.
1793 (lll_timedwait_tid): Likewise.
1794 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1795 Likewise.
1796 (lll_timedwait_tid): Likewise.
1797 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1798 Likewise.
1799 (lll_timedwait_tid): Likewise.
1800 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1801 Use INTERNAL_SYSCALL_CANCEL.
1802 * sysdeps/unix/sysv/linux/futex-internal.h
1803 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1804 instead of __pthread_{enable,disable}_asynccancel.
1805 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1806 (lll_futex_wait_cancel): New macro.
1807
1808 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1809 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1810
1811 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1812 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1813
1814 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1815 in backtrace analysis.
1816 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1817 side-effects.
1818 (tf_send): Likewise.
1819
1820 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1821 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1822 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1823 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1824 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1825 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1826 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1827 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1828 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1829 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1830 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1831 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1832 Likewise.
1833 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1834 tst-cancel-wrappers.sh.
1835 (generated): Remove tst-cancel-wrappers.out.
1836 (tst-cancel-wrappers.out): Remove rule.
1837 * nptl/tst-cancel-wrappers.sh: Remove file.
1838
1839 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1840
1841 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1842 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1843 Update.
1844
1845 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1846
1847 [BZ #23640]
1848 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1849 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1850 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1851 close-on-exec reset for adddup2 file action.
1852 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1853
1854 2019-01-03 Zack Weinberg <zackw@panix.com>
1855
1856 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1857 parameter. Only use deprecated scanf when __USE_GNU is defined
1858 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1859 than 201103L, whichever is relevant for the language being compiled.
1860
1861 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1862 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1863 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1864 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1865 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1866
1867 * libio/iovsscanf.c
1868 * libio/fwscanf.c
1869 * libio/iovswscanf.c
1870 * libio/swscanf.c
1871 * libio/vscanf.c
1872 * libio/vwscanf.c
1873 * libio/wscanf.c
1874 * stdio-common/fscanf.c
1875 * stdio-common/scanf.c
1876 * stdio-common/vfscanf.c
1877 * stdio-common/vfwscanf.c
1878 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1879 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1880 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1881 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1882 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1883 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1884 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1885 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1886 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1887 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1888 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1889 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1890 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1891 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1892 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1893
1894 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1895 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1896 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1897 not sscanf.
1898 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1899 with a preprocessor macro.
1900
1901 * stdio-common/bug21.c, stdio-common/scanf14.c:
1902 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1903 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1904 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1905 to xscanf, xfscanf, xsscanf.
1906
1907 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1908 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1909 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1910 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1911 xfscanf, xsscanf.
1912 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1913 override feature selection macros or provide definitions of u_char etc.
1914 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1915 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1916 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1917 with -std=gnu89.
1918
1919 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1920
1921 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1922 bits/termios-misc.h.
1923 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1924 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1925 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1926 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1927 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1928 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1929
1930 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1931 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1932 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1933 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1934 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1935 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1936 termios-misc.h.
1937 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1938 (sysdep_headers): Add termios-misc.h.
1939
1940 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1941 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1942 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1943
1944 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1945 termios-tcflow.h.
1946 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1947 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1948 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1949 TCSAFLUSH): Move to termios-tcflow.h.
1950 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1951 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1952 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1953 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1954
1955 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1956 termios-c_lflag.h.
1957 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1958 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1959 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1960 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1961 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1962 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1963 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1964 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1965 Likewise.
1966 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1967 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1968 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1969 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1970
1971 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1972 termios-c_cflag.h.
1973 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1974 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1975 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1976 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1977 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1978 termios-c_cflag.h.
1979 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1980 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1981 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1982 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1983
1984 [BZ #23783]
1985 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1986 termios-baud.h.
1987 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1988 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1989 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1990 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1991 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1992 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1993 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1994 __MAX_BAUD): Move to termios-baud.h.
1995 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1996 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1997 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1998 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1999 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2000
2001 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2002 termios-c_oflag.h.
2003 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2004 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2005 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2006 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2007 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2008 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2009 termios-c_oflag.h.
2010 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2011 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2012 FFR1): Likewise.
2013 [USE_MISC] (XTABS): Likewise.
2014 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2015 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2016 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2017 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2018
2019 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2020 termios-c_iflag.h.
2021 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2022 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2023 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2024 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2025 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2026 IUTF8): Move to termios-c_iflag.h.
2027 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2028 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2029 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2030 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2031
2032 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2033 termios-cc.h.
2034 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2035 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2036 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2037 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2038 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2039 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2040 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2041 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2042 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2043 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2044 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2045 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2046
2047 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2048 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2049 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2050 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2051 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2052 termios-struct.h.
2053 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2054 termios-struct.h.
2055 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2056 Likewise.
2057 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2058 Likewise.
2059 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2060 Likewise.
2061 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2062 Likewise.
2063 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2064 _HAVE_C_OSPEED): Define.
2065 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2066 _HAVE_C_OSPEED): Likewise.
2067 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2068 _HAVE_C_OSPEED): Likewise.
2069 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2070 (cfsetospeed): Check for define value instead of existence.
2071 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2072 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2073 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2074 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2075 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2076
2077 [BZ #17783]
2078 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2079 Define.
2080 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2081 (TIOCSER_TEMT): Likewise.
2082 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2083 (TEOCSER_TEMT): Likewise.
2084
2085 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2086
2087 [BZ #24011]
2088 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2089
2090 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2091
2092 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2093
2094 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2095
2096 * sysdeps/htl/pt-barrierattr-setpshared.c
2097 (pthread_barrierattr_setpshared): Add stub warning.
2098 * sysdeps/htl/pt-condattr-setpshared.c
2099 (pthread_condattr_setpshared): Likewise.
2100 * sysdeps/htl/pt-mutexattr-setpshared.c
2101 (pthread_mutexattr_setpshared): Likewise.
2102 * sysdeps/htl/pt-rwlockattr-setpshared.c
2103 (pthread_rwlockattr_setpshared): Likewise.
2104 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2105 (pthread_mutexattr_setpshared): Likewise.
2106
2107 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2108
2109 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2110 constants to match with Linux 4.20.
2111
2112 * sysdeps/mips/mips32/libm-test-ulps: Update.
2113 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2114
2115 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2116
2117 [BZ #24034]
2118 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2119 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2120 than __typeof (...) for the a_ptr variable.
2121
2122 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2123
2124 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2125 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2126 * libio/Makefile (tests): Add tst-sprintf-ub and
2127 tst-sprintf-chk-ub.
2128 (CFLAGS-tst-sprintf-ub.c): New variable.
2129 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2130 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2131 destination buffer and check for overflows in fortified mode.
2132 * libio/libioP.h (PRINTF_CHK): New macro.
2133 * libio/tst-sprintf-chk-ub.c: New file.
2134 * libio/tst-sprintf-ub.c: Likewise.
2135
2136 2019-01-02 Florian Weimer <fweimer@redhat.com>
2137
2138 [BZ #24018]
2139 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2140 failure.
2141
2142 2019-01-02 Florian Weimer <fweimer@redhat.com>
2143
2144 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2145
2146 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2147
2148 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2149 macro.
2150
2151 * sysdeps/unix/sysv/linux/netpacket/packet.h
2152 (PACKET_IGNORE_OUTGOING): New macro.
2153
2154 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2155 macro.
2156
2157 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2158 version to 4.20.
2159 (riscv_flush_icache): New syscall.
2160
2161 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2162 trailing whitespace removed.
2163 * scripts/config.guess: Update to version 2019-01-01.
2164 * scripts/config.sub: Update to version 2019-01-01.
2165 * scripts/move-if-change: Update from gnulib.
2166
2167 * NEWS: Update copyright dates.
2168 * catgets/gencat.c (print_version): Likewise.
2169 * csu/version.c (banner): Likewise.
2170 * debug/catchsegv.sh: Likewise.
2171 * debug/pcprofiledump.c (print_version): Likewise.
2172 * debug/xtrace.sh (do_version): Likewise.
2173 * elf/ldconfig.c (print_version): Likewise.
2174 * elf/ldd.bash.in: Likewise.
2175 * elf/pldd.c (print_version): Likewise.
2176 * elf/sotruss.sh: Likewise.
2177 * elf/sprof.c (print_version): Likewise.
2178 * iconv/iconv_prog.c (print_version): Likewise.
2179 * iconv/iconvconfig.c (print_version): Likewise.
2180 * locale/programs/locale.c (print_version): Likewise.
2181 * locale/programs/localedef.c (print_version): Likewise.
2182 * login/programs/pt_chown.c (print_version): Likewise.
2183 * malloc/memusage.sh (do_version): Likewise.
2184 * malloc/memusagestat.c (print_version): Likewise.
2185 * malloc/mtrace.pl: Likewise.
2186 * manual/libc.texinfo: Likewise.
2187 * nptl/version.c (banner): Likewise.
2188 * nscd/nscd.c (print_version): Likewise.
2189 * nss/getent.c (print_version): Likewise.
2190 * nss/makedb.c (print_version): Likewise.
2191 * posix/getconf.c (main): Likewise.
2192 * scripts/test-installation.pl: Likewise.
2193 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2194
2195 * All files with FSF copyright notices: Update copyright dates
2196 using scripts/update-copyrights.
2197 * locale/programs/charmap-kw.h: Regenerated.
2198 * locale/programs/locfile-kw.h: Likewise.
2199
2200 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2201
2202 * timezone/zdump.c: Update from tzcode 2018i.
2203 * timezone/zic.c: Likewise.
2204
2205 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2206
2207 regex: improve Gnulib port to AIX
2208 From the glibc point of view, this removes duplicate macro
2209 definitions and is obviously safe.
2210 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2211 * posix/regex_internal.h:
2212 (__attribute__, __attribute_warn_unused_result__):
2213 Remove; already defined elsewhere.
2214
2215 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2216
2217 [BZ #24027]
2218 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2219 copying operation. (ncopies had the wrong type, resulting in an
2220 integer wraparound and too few elements being copied.)
2221
2222 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2223
2224 [BZ #24022]
2225 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2226 <asm/syscalls.h> exists with __has_include__ before including it.
2227
2228 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2229
2230 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2231 version to 4.20.
2232
2233 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2234
2235 * hurd/lookup-retry: Include <unistd.h>.
2236 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2237 Release it on return. Handle "pid" magical lookup retry.
2238
2239 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2240
2241 [BZ #10496]
2242 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2243 (t_fmt_ampm): Likewise.
2244 * localedata/locales/aa_ER (t_fmt): Likewise.
2245 (t_fmt_ampm): Likewise.
2246 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2247 (t_fmt_ampm): Likewise.
2248 * localedata/locales/aa_ET (t_fmt): Likewise.
2249 (t_fmt_ampm): Likewise.
2250 * localedata/locales/am_ET (t_fmt): Likewise.
2251 (t_fmt_ampm): Likewise.
2252 * localedata/locales/byn_ER (t_fmt): Likewise.
2253 (t_fmt_ampm): Likewise.
2254 * localedata/locales/om_ET (t_fmt): Likewise.
2255 (t_fmt_ampm): Likewise.
2256 * localedata/locales/sid_ET (t_fmt): Likewise.
2257 (t_fmt_ampm): Likewise.
2258 * localedata/locales/so_DJ (t_fmt): Likewise.
2259 (t_fmt_ampm): Likewise.
2260 * localedata/locales/so_ET (t_fmt): Likewise.
2261 (t_fmt_ampm): Likewise.
2262 * localedata/locales/so_SO (t_fmt): Likewise.
2263 (t_fmt_ampm): Likewise.
2264 * localedata/locales/ti_ER (t_fmt): Likewise.
2265 (t_fmt_ampm): Likewise.
2266 * localedata/locales/ti_ET (t_fmt): Likewise.
2267 (t_fmt_ampm): Likewise.
2268 * localedata/locales/tig_ER (t_fmt): Likewise.
2269 (t_fmt_ampm): Likewise.
2270 * localedata/locales/wal_ET (t_fmt): Likewise.
2271 (t_fmt_ampm): Likewise.
2272
2273 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2274 * localedata/locales/ar_IN (t_fmt): Likewise.
2275 * localedata/locales/bhb_IN (t_fmt): Likewise.
2276 * localedata/locales/bho_IN (t_fmt): Likewise.
2277 * localedata/locales/bi_VU (t_fmt): Likewise.
2278 * localedata/locales/bn_BD (t_fmt): Likewise.
2279 * localedata/locales/bn_IN (t_fmt): Likewise.
2280 * localedata/locales/brx_IN (t_fmt): Likewise.
2281 * localedata/locales/doi_IN (t_fmt): Likewise.
2282 * localedata/locales/en_HK (t_fmt): Likewise.
2283 (t_fmt_ampm): Likewise.
2284 * localedata/locales/en_IN (t_fmt): Likewise.
2285 * localedata/locales/en_PH (t_fmt): Likewise.
2286 * localedata/locales/gu_IN (t_fmt): Likewise.
2287 * localedata/locales/hi_IN (t_fmt): Likewise.
2288 * localedata/locales/hif_FJ (t_fmt): Likewise.
2289 * localedata/locales/hne_IN (t_fmt): Likewise.
2290 * localedata/locales/kn_IN (t_fmt): Likewise.
2291 * localedata/locales/kok_IN (t_fmt): Likewise.
2292 * localedata/locales/ks_IN (t_fmt): Likewise.
2293 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2294 * localedata/locales/mag_IN (t_fmt): Likewise.
2295 * localedata/locales/mai_IN (t_fmt): Likewise.
2296 * localedata/locales/mjw_IN (t_fmt): Likewise.
2297 * localedata/locales/ml_IN (t_fmt): Likewise.
2298 * localedata/locales/mni_IN (t_fmt): Likewise.
2299 * localedata/locales/mr_IN (t_fmt): Likewise.
2300 * localedata/locales/ms_MY (t_fmt): Likewise.
2301 * localedata/locales/pa_IN (t_fmt): Likewise.
2302 * localedata/locales/raj_IN (t_fmt): Likewise.
2303 * localedata/locales/sa_IN (t_fmt): Likewise.
2304 * localedata/locales/sat_IN (t_fmt): Likewise.
2305 * localedata/locales/sd_IN (t_fmt): Likewise.
2306 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2307 * localedata/locales/tcy_IN (t_fmt): Likewise.
2308 * localedata/locales/the_NP (t_fmt): Likewise.
2309 * localedata/locales/to_TO (t_fmt): Likewise.
2310 * localedata/locales/ur_IN (t_fmt): Likewise.
2311
2312 * localedata/locales/hif_FJ (d_t_fmt): Set to
2313 "%A %d %b %Y %I:%M:%S %p".
2314 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2315
2316 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2317 * localedata/locales/ar_BH (t_fmt): Likewise.
2318 * localedata/locales/ar_DZ (t_fmt): Likewise.
2319 * localedata/locales/ar_EG (t_fmt): Likewise.
2320 * localedata/locales/ar_IQ (t_fmt): Likewise.
2321 * localedata/locales/ar_JO (t_fmt): Likewise.
2322 * localedata/locales/ar_KW (t_fmt): Likewise.
2323 * localedata/locales/ar_LB (t_fmt): Likewise.
2324 * localedata/locales/ar_LY (t_fmt): Likewise.
2325 * localedata/locales/ar_OM (t_fmt): Likewise.
2326 * localedata/locales/ar_QA (t_fmt): Likewise.
2327 * localedata/locales/ar_SD (t_fmt): Likewise.
2328 * localedata/locales/ar_SS (t_fmt): Likewise.
2329 * localedata/locales/ar_SY (t_fmt): Likewise.
2330 * localedata/locales/ar_TN (t_fmt): Likewise.
2331 * localedata/locales/ar_YE (t_fmt): Likewise.
2332
2333 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2334 (t_fmt_ampm): Likewise.
2335 * localedata/locales/gez_ET (t_fmt): Likewise.
2336 (t_fmt_ampm): Likewise.
2337
2338 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2339 (t_fmt_ampm): Likewise.
2340 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2341
2342 * localedata/locales/zh_HK (t_fmt):
2343 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2344
2345 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2346 because this locale does not use the 12-hour clock.
2347 (t_fmt): Set to "%Z %H:%M:%S".
2348 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2349
2350 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2351 because this locale does not use the 12-hour clock.
2352 (t_fmt): Set to "%H:%M:%S %Z".
2353 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2354
2355 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2356 because this locale does not use the 12-hour clock.
2357 (t_fmt): Set to "%T".
2358 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2359 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2360
2361 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2362 because this locale does not use the 12-hour clock.
2363 (t_fmt): Set to "%H:%M:%S %Z".
2364 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2365
2366 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2367 because this locale does not use the 12-hour clock.
2368 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2369 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2370
2371 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2372
2373 [BZ #10496]
2374 [BZ #23724]
2375 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2376 (t_fmt_ampm): Likewise.
2377 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2378 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2379 (d_fmt): Set to "%-d.%-m.%y".
2380
2381 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2382
2383 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2384 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2385 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2386 Likewise.
2387 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2388 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2389 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2390 function.
2391 * support/blob_repeat.c (check_mul_overflow_size_t,
2392 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2393
2394 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2395
2396 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2397
2398 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2399
2400 regex: simplify Gnulib port
2401 This simplifies the code, by removing stuff intended for porting
2402 to Gnulib but no longer needed there.
2403 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2404 uses of libc_hidden_def, weak_alias.
2405 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2406 _Restrict_ except for public-facing headers.
2407 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2408 Remove; already defined elsewhere.
2409 * posix/regex.c, posix/regex_internal.h:
2410 Use __GNUC_PREREQ instead of rolling our own.
2411 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2412
2413 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2414
2415 * benchtests/bench-strlen.c (generic_strlen): New function.
2416 (memchr_strlen): New function.
2417
2418 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2419
2420 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2421 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2422 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2423
2424 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2427
2428 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2429
2430 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2431 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2432 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2433 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2434 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2435 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2436 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2437
2438 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2439
2440 [BZ #24023]
2441 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2442 PLT reference in libc.so.
2443 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2444 _Q_lltoq and _Q_qtod PLT references in libc.so.
2445
2446 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2447
2448 * benchtests/bench-memchr.c: Cleanup defines.
2449 * benchtests/bench-memcmp.c: Likewise.
2450 * benchtests/bench-memset.c: Likewise.
2451 * benchtests/bench-memset-large.c: Likewise.
2452 * benchtests/bench-memset-walk.c: Likewise.
2453 * benchtests/bench-stpcpy.c: Likewise.
2454 * benchtests/bench-stpncpy.c: Likewise.
2455 * benchtests/bench-strcat.c: Likewise.
2456 * benchtests/bench-strchr.c: Likewise.
2457 * benchtests/bench-strcmp.c: Likewise.
2458 * benchtests/bench-strcpy.c: Likewise.
2459 * benchtests/bench-strcspn.c: Likewise.
2460 * benchtests/bench-string.h: Likewise.
2461 * benchtests/bench-strlen.c: Likewise.
2462 * benchtests/bench-strncat.c: Likewise.
2463 * benchtests/bench-strncmp.c: Likewise.
2464 * benchtests/bench-strncpy.c: Likewise.
2465 * benchtests/bench-strnlen.c: Likewise.
2466 * benchtests/bench-strpbrk.c: Likewise.
2467 * benchtests/bench-strrchr.c: Likewise.
2468 * benchtests/bench-strspn.c: Likewise.
2469
2470 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2471
2472 * stdlib/longlong.h: Update from GCC.
2473
2474 [BZ #23993]
2475 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2476 * configure: Regenerated.
2477 * manual/install.texi (Tools for Compilation): Update minimum GCC
2478 version.
2479 * INSTALL: Regenerated.
2480
2481 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2482
2483 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2484
2485 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2486
2487 * malloc/malloc.c (mremap_chunk): Additional checks.
2488
2489 2018-12-21 Mao Han <han_mao@c-sky.com>
2490
2491 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2492 * scripts/build-many-glibcs.py: Add C-SKY targets.
2493 * sysdeps/csky/Implies: New file.
2494 * sysdeps/csky/Makefile: Likewise.
2495 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2496 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2497 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2498 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2499 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2500 * sysdeps/csky/abiv2/memmove.S: Likewise.
2501 * sysdeps/csky/abiv2/memset.S: Likewise.
2502 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2503 * sysdeps/csky/abiv2/start.S: Likewise.
2504 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2505 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2506 * sysdeps/csky/abiv2/strlen.S: Likewise.
2507 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2508 * sysdeps/csky/abort-instr.h: Likewise.
2509 * sysdeps/csky/atomic-machine.h: Likewise.
2510 * sysdeps/csky/bits/endian.h: Likewise.
2511 * sysdeps/csky/bits/fenv.h: Likewise.
2512 * sysdeps/csky/bits/link.h: Likewise.
2513 * sysdeps/csky/bits/setjmp.h: Likewise.
2514 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2515 * sysdeps/csky/bsd-setjmp.S: Likewise.
2516 * sysdeps/csky/configure: Likewise.
2517 * sysdeps/csky/configure.ac: Likewise.
2518 * sysdeps/csky/dl-machine.h: Likewise.
2519 * sysdeps/csky/dl-procinfo.c: Likewise.
2520 * sysdeps/csky/dl-procinfo.h: Likewise.
2521 * sysdeps/csky/dl-sysdep.h: Likewise.
2522 * sysdeps/csky/dl-tls.h: Likewise.
2523 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2524 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2525 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2526 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2527 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2528 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2529 * sysdeps/csky/fpu/fegetround.c: Likewise.
2530 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2531 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2532 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2533 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2534 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2535 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2536 * sysdeps/csky/fpu/fesetround.c: Likewise.
2537 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2538 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2539 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2540 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2541 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2542 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2543 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2544 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2545 * sysdeps/csky/fpu_control.h: Likewise.
2546 * sysdeps/csky/gccframe.h: Likewise.
2547 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2548 * sysdeps/csky/ldsodefs.h: Likewise.
2549 * sysdeps/csky/libc-tls.c: Likewise.
2550 * sysdeps/csky/linkmap.h: Likewise.
2551 * sysdeps/csky/machine-gmon.h: Likewise.
2552 * sysdeps/csky/memusage.h: Likewise.
2553 * sysdeps/csky/nofpu/Implies: Likewise.
2554 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2555 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2556 * sysdeps/csky/nptl/Makefile: Likewise.
2557 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2558 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2559 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2560 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2561 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2562 * sysdeps/csky/nptl/tls.h: Likewise.
2563 * sysdeps/csky/preconfigure: Likewise.
2564 * sysdeps/csky/sfp-machine.h: Likewise.
2565 * sysdeps/csky/sotruss-lib.c: Likewise.
2566 * sysdeps/csky/stackinfo.h: Likewise.
2567 * sysdeps/csky/sysdep.h: Likewise.
2568 * sysdeps/csky/tininess.h: Likewise.
2569 * sysdeps/csky/tst-audit.h: Likewise.
2570 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2571 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2572 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2573 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2574 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2575 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2576 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2577 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2578 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2579 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2580 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2581 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2582 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2583 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2584 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2585 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2586 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2587 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2588 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2589 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2590 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2591 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2592 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2593 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2594 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2595 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2596 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2597 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2598 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2599 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2600 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2601 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2602 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2603 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2604 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2605 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2606 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2607 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2608 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2609 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2610 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2611 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2612 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2613 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2614
2615 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2616
2617 * include/time.h (__difftime64): Add.
2618 * time/difftime.c (subtract): convert to 64-bit time.
2619 * time/difftime.c (__difftime64): Add.
2620 * time/difftime.c (__difftime): Wrap around __difftime64.
2621
2622 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2623
2624 * manual/examples/add.c: Remove redundant "if not".
2625 * manual/examples/argp-ex1.c: Likewise.
2626 * manual/examples/argp-ex2.c: Likewise.
2627 * manual/examples/argp-ex3.c: Likewise.
2628 * manual/examples/argp-ex4.c: Likewise.
2629 * manual/examples/atexit.c: Likewise.
2630 * manual/examples/db.c: Likewise.
2631 * manual/examples/dir.c: Likewise.
2632 * manual/examples/dir2.c: Likewise.
2633 * manual/examples/execinfo.c: Likewise.
2634 * manual/examples/filecli.c: Likewise.
2635 * manual/examples/filesrv.c: Likewise.
2636 * manual/examples/fmtmsgexpl.c: Likewise.
2637 * manual/examples/genpass.c: Likewise.
2638 * manual/examples/inetcli.c: Likewise.
2639 * manual/examples/inetsrv.c: Likewise.
2640 * manual/examples/isockad.c: Likewise.
2641 * manual/examples/longopt.c: Likewise.
2642 * manual/examples/memopen.c: Likewise.
2643 * manual/examples/memstrm.c: Likewise.
2644 * manual/examples/mkdirent.c: Likewise.
2645 * manual/examples/mkfsock.c: Likewise.
2646 * manual/examples/mkisock.c: Likewise.
2647 * manual/examples/mygetpass.c: Likewise.
2648 * manual/examples/pipe.c: Likewise.
2649 * manual/examples/popen.c: Likewise.
2650 * manual/examples/rprintf.c: Likewise.
2651 * manual/examples/search.c: Likewise.
2652 * manual/examples/select.c: Likewise.
2653 * manual/examples/setjmp.c: Likewise.
2654 * manual/examples/sigh1.c: Likewise.
2655 * manual/examples/sigusr.c: Likewise.
2656 * manual/examples/stpcpy.c: Likewise.
2657 * manual/examples/strdupa.c: Likewise.
2658 * manual/examples/strftim.c: Likewise.
2659 * manual/examples/subopt.c: Likewise.
2660 * manual/examples/swapcontext.c: Likewise.
2661 * manual/examples/termios.c: Likewise.
2662 * manual/examples/testopt.c: Likewise.
2663 * manual/examples/testpass.c: Likewise.
2664 * manual/examples/timeval_subtract.c: Likewise.
2665
2666 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2667
2668 * sysdeps/x86/fpu/math_private.h: New file.
2669 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2670
2671 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2672 definition.
2673 (cosh): Likewise.
2674 (tanh): Likewise.
2675
2676 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2677
2678 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2679 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2680 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2681 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2682 fields.
2683 (_dl_show_auxv): Give a special treatment to
2684 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2685 and AT_L3_CACHEGEOMETRY.
2686 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2687 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2688 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2689 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2690
2691 2018-12-19 Andreas Schwab <schwab@suse.de>
2692
2693 * nscd/connections.c (check_use): Don't abort on invalid len.
2694
2695 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2696
2697 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2698 values in the 64bit value cases.
2699
2700 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2701
2702 * include/time.h
2703 (__ctime64_r): Add.
2704 * time/ctime_r.c
2705 (__ctime64_r): Add.
2706 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2707
2708 * include/time.h
2709 (__ctime64): Add.
2710 * time/gmtime.c
2711 (__ctime64): Add.
2712 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2713
2714 * include/time.h
2715 (__gmtime64_r): Add.
2716 * time/gmtime.c
2717 (__gmtime64_r): Add.
2718 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2719
2720 * include/time.h
2721 (__gmtime64): Add.
2722 * time/gmtime.c
2723 (__gmtime64): Add.
2724 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2725
2726 * include/time.h
2727 (__localtime64_r): Add.
2728 * time/localtime.c
2729 (__localtime64_r): Add.
2730 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2731
2732 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2733
2734 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2735 kernel_sigction definition.
2736
2737 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2738
2739 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2740
2741 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2742 __syscall_rt_sigaction.
2743 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2744 (kernel_sigaction): Use Linux generic defintion.
2745 (STUB): Define.
2746 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2747 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2748 (__syscall_rt_sigaction): Remove implementation.
2749 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2750 hidden.
2751 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2752 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2753 INTERNAL_SYSCALL): Remove definitions.
2754 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2755 action and signal set size.
2756 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2757 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2758
2759 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2760 James Clarke <jrtc27@jrtc27.com>
2761
2762 [BZ #23967]
2763 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2764 Define if SA_RESTORER is defined.
2765 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2766 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2767 already defined.
2768 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2769 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2770 definitions.
2771 (HAS_SA_RESTORER): Define.
2772 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2773 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2774 (HAS_SA_RESTORER): Define.
2775 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2776 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2777 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2778 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2779 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2780
2781 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2782
2783 * sysdeps/unix/sysv/linux/kernel-features.h
2784 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2785 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2786 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2787 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2788 (__ASSUME_ST_INO_64_BIT): Likewise.
2789 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2790 <kernel-features.h>.
2791 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2792 Remove conditional code.
2793 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2794 <kernel-features.h>.
2795 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2796 Remove conditional code.
2797 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2798 <kernel-features.h>.
2799 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2800 Remove conditional code.
2801 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2802 <kernel-features.h>.
2803 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2804 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2805
2806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2807
2808 * sysdeps/s390/multiarch/ifunc-resolve.h
2809 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2810 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2811 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2812 Delete macro definition.
2813 (s390_libc_ifunc_init): Rename to
2814 s390_libc_ifunc_expr_stfle_init.
2815 * sysdeps/s390/bzero: Use
2816 s390_libc_ifunc_expr_stfle_init instead of
2817 s390_libc_ifunc_init.
2818 * sysdeps/s390/memcmp.c: Likewise.
2819 * sysdeps/s390/memcpy.c: Likewise.
2820 * sysdeps/s390/mempcpy.c: Likewise.
2821 * sysdeps/s390/memset.c: Likewise.
2822
2823 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2824
2825 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2826 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2827
2828 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2829
2830 * sysdeps/s390/multiarch/Makefile
2831 (sysdep_routines): Remove wmemcmp variants.
2832 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2833 * sysdeps/s390/multiarch/ifunc-impl-list.c
2834 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2835 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2836 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2837 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2838 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2839 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2840 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2841 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2842
2843 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2844
2845 * sysdeps/s390/multiarch/Makefile
2846 (sysdep_routines): Remove wmemset variants.
2847 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2848 * sysdeps/s390/multiarch/ifunc-impl-list.c
2849 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2850 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2851 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2852 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2853 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2854 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2855 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2856 * sysdeps/s390/ifunc-wmemset.h: New file.
2857
2858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2859
2860 * sysdeps/s390/multiarch/Makefile
2861 (sysdep_routines): Remove wmemchr variants.
2862 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2863 * sysdeps/s390/multiarch/ifunc-impl-list.c
2864 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2865 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2866 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2867 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2868 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2869 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2870 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2871 * sysdeps/s390/ifunc-wmemchr.h: New file.
2872
2873 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2874
2875 * sysdeps/s390/multiarch/Makefile
2876 (sysdep_routines): Remove wcscspn variants.
2877 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2878 * sysdeps/s390/multiarch/ifunc-impl-list.c
2879 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2880 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2881 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2882 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2883 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2884 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2885 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2886 * sysdeps/s390/ifunc-wcscspn.h: New file.
2887
2888 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2889
2890 * sysdeps/s390/multiarch/Makefile
2891 (sysdep_routines): Remove wcspbrk variants.
2892 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2893 * sysdeps/s390/multiarch/ifunc-impl-list.c
2894 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2895 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2896 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2897 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2898 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2899 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2900 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2901 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2902
2903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2904
2905 * sysdeps/s390/multiarch/Makefile
2906 (sysdep_routines): Remove wcsspn variants.
2907 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2908 * sysdeps/s390/multiarch/ifunc-impl-list.c
2909 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2910 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2911 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2912 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2913 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2914 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2915 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2916 * sysdeps/s390/ifunc-wcsspn.h: New file.
2917
2918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2919
2920 * sysdeps/s390/multiarch/Makefile
2921 (sysdep_routines): Remove wcsrchr variants.
2922 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2923 * sysdeps/s390/multiarch/ifunc-impl-list.c
2924 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2925 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2926 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2927 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2928 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2929 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2930 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2931 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2932
2933 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2934
2935 * sysdeps/s390/multiarch/Makefile
2936 (sysdep_routines): Remove wcschrnul variants.
2937 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2938 * sysdeps/s390/multiarch/ifunc-impl-list.c
2939 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2940 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2941 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2942 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2943 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2944 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2945 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2946 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2947
2948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2949
2950 * sysdeps/s390/multiarch/Makefile
2951 (sysdep_routines): Remove wcschr variants.
2952 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2953 * sysdeps/s390/multiarch/ifunc-impl-list.c
2954 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2955 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2956 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2957 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2958 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2959 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2960 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2961 * sysdeps/s390/ifunc-wcschr.h: New file.
2962
2963 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2964
2965 * sysdeps/s390/multiarch/Makefile
2966 (sysdep_routines): Remove wcsncmp variants.
2967 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2968 * sysdeps/s390/multiarch/ifunc-impl-list.c
2969 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2970 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2971 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2972 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2973 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2974 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2975 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2976 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2977
2978 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2979
2980 * sysdeps/s390/multiarch/Makefile
2981 (sysdep_routines): Remove wcscmp variants.
2982 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2983 * sysdeps/s390/multiarch/ifunc-impl-list.c
2984 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2985 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2986 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2987 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2988 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2989 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2990 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2991 * sysdeps/s390/ifunc-wcscmp.h: New file.
2992
2993 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2994
2995 * sysdeps/s390/multiarch/Makefile
2996 (sysdep_routines): Remove wcsncat variants.
2997 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2998 * sysdeps/s390/multiarch/ifunc-impl-list.c
2999 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3000 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3001 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3002 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3003 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3004 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3005 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3006 * sysdeps/s390/ifunc-wcsncat.h: New file.
3007
3008 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3009
3010 * sysdeps/s390/multiarch/Makefile
3011 (sysdep_routines): Remove wcscat variants.
3012 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3013 * sysdeps/s390/multiarch/ifunc-impl-list.c
3014 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3015 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3016 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3017 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3018 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3019 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3020 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3021 * sysdeps/s390/ifunc-wcscat.h: New file.
3022
3023 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3024
3025 * sysdeps/s390/multiarch/Makefile
3026 (sysdep_routines): Remove wcpncpy variants.
3027 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3028 * sysdeps/s390/multiarch/ifunc-impl-list.c
3029 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3030 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3031 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3032 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3033 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3034 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3035 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3036 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3037
3038 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3039
3040 * sysdeps/s390/multiarch/Makefile
3041 (sysdep_routines): Remove wcsncpy variants.
3042 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3043 * sysdeps/s390/multiarch/ifunc-impl-list.c
3044 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3045 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3046 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3047 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3048 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3049 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3050 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3051 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3052
3053 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3054
3055 * sysdeps/s390/multiarch/Makefile
3056 (sysdep_routines): Remove wcpcpy variants.
3057 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3058 * sysdeps/s390/multiarch/ifunc-impl-list.c
3059 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3060 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3061 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3062 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3063 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3064 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3065 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3066 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3067
3068 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3069
3070 * sysdeps/s390/multiarch/Makefile
3071 (sysdep_routines): Remove wcscpy variants.
3072 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3073 * sysdeps/s390/multiarch/ifunc-impl-list.c
3074 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3075 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3076 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3077 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3078 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3079 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3080 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3081 * sysdeps/s390/ifunc-wcscpy.h: New file.
3082
3083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3084
3085 * sysdeps/s390/multiarch/Makefile
3086 (sysdep_routines): Remove wcsnlen variants.
3087 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3088 * sysdeps/s390/multiarch/ifunc-impl-list.c
3089 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3090 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3091 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3092 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3093 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3094 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3095 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3096 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3097
3098 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3099
3100 * sysdeps/s390/multiarch/Makefile
3101 (sysdep_routines): Remove wcslen variants.
3102 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3103 * sysdeps/s390/multiarch/ifunc-impl-list.c
3104 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3105 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3106 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3107 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3108 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3109 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3110 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3111 * sysdeps/s390/ifunc-wcslen.h: New file.
3112
3113 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3114
3115 * sysdeps/s390/multiarch/Makefile
3116 (sysdep_routines): Remove memrchr variants.
3117 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3118 * sysdeps/s390/multiarch/ifunc-impl-list.c
3119 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3120 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3121 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3122 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3123 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3124 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3125 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3126 * sysdeps/s390/ifunc-memrchr.h: New file.
3127
3128 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3129
3130 * sysdeps/s390/multiarch/Makefile
3131 (sysdep_routines): Remove memccpy variants.
3132 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3133 * sysdeps/s390/multiarch/ifunc-impl-list.c
3134 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3135 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3136 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3137 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3138 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3139 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3140 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3141 * sysdeps/s390/ifunc-memccpy.h: New file.
3142
3143 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3144
3145 * sysdeps/s390/multiarch/Makefile
3146 (sysdep_routines): Remove rawmemchr variants.
3147 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3148 * sysdeps/s390/multiarch/ifunc-impl-list.c
3149 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3150 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3151 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3152 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3153 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3154 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3155 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3156 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3157
3158 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3159
3160 * sysdeps/s390/multiarch/Makefile
3161 (sysdep_routines): Remove memchr variants.
3162 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3163 * sysdeps/s390/multiarch/ifunc-impl-list.c
3164 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3165 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3166 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3167 * sysdeps/s390/multiarch/memchr.c: Move to ...
3168 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3169 * sysdeps/s390/ifunc-memchr.h: New file.
3170 * sysdeps/s390/s390-64/memchr.S: Move to ...
3171 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3172 for 31/64bit and ifunc handling.
3173 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3174 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3175 * sysdeps/s390/s390-32/memchr.S: Likewise.
3176
3177 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3178
3179 * sysdeps/s390/multiarch/Makefile
3180 (sysdep_routines): Remove strcspn variants.
3181 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3182 * sysdeps/s390/multiarch/ifunc-impl-list.c
3183 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3184 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3185 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3186 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3187 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3188 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3189 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3190 * sysdeps/s390/ifunc-strcspn.h: New file.
3191
3192 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3193
3194 * sysdeps/s390/multiarch/Makefile
3195 (sysdep_routines): Remove strpbrk variants.
3196 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3197 * sysdeps/s390/multiarch/ifunc-impl-list.c
3198 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3199 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3200 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3201 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3202 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3203 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3204 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3205 * sysdeps/s390/ifunc-strpbrk.h: New file.
3206
3207 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3208
3209 * sysdeps/s390/multiarch/Makefile
3210 (sysdep_routines): Remove strspn variants.
3211 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3212 * sysdeps/s390/multiarch/ifunc-impl-list.c
3213 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3214 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3215 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3216 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3217 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3218 * sysdeps/s390/multiarch/strspn.c: Move to ...
3219 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3220 * sysdeps/s390/ifunc-strspn.h: New file.
3221
3222 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3223
3224 * sysdeps/s390/multiarch/Makefile
3225 (sysdep_routines): Remove strrchr variants.
3226 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3227 * sysdeps/s390/multiarch/ifunc-impl-list.c
3228 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3229 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3230 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3231 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3232 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3233 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3234 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3235 * sysdeps/s390/ifunc-strrchr.h: New file.
3236
3237 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3238
3239 * sysdeps/s390/multiarch/Makefile
3240 (sysdep_routines): Remove strchrnul variants.
3241 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3242 * sysdeps/s390/multiarch/ifunc-impl-list.c
3243 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3244 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3245 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3246 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3247 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3248 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3249 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3250 * sysdeps/s390/ifunc-strchrnul.h: New file.
3251
3252 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3253
3254 * sysdeps/s390/multiarch/Makefile
3255 (sysdep_routines): Remove strchr variants.
3256 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3257 * sysdeps/s390/multiarch/ifunc-impl-list.c
3258 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3259 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3260 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3261 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3262 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3263 * sysdeps/s390/multiarch/strchr.c: Move to ...
3264 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3265 * sysdeps/s390/ifunc-strchr.h: New file.
3266
3267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3268
3269 * sysdeps/s390/multiarch/Makefile
3270 (sysdep_routines): Remove strncmp variants.
3271 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3272 * sysdeps/s390/multiarch/ifunc-impl-list.c
3273 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3274 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3275 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3276 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3277 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3278 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3279 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3280 * sysdeps/s390/ifunc-strncmp.h: New file.
3281
3282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3283
3284 * sysdeps/s390/multiarch/Makefile
3285 (sysdep_routines): Remove strcmp variants.
3286 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3287 * sysdeps/s390/multiarch/ifunc-impl-list.c
3288 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3289 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3290 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3291 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3292 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3293 * sysdeps/s390/ifunc-strcmp.h: New file.
3294 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3295 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3296 for 31/64bit and ifunc handling.
3297 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3298 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3299 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3300
3301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3302
3303 * sysdeps/s390/multiarch/Makefile
3304 (sysdep_routines): Remove strncat variants.
3305 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3306 * sysdeps/s390/multiarch/ifunc-impl-list.c
3307 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3308 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3309 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3310 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3311 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3312 * sysdeps/s390/multiarch/strncat.c: Move to ...
3313 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3314 * sysdeps/s390/ifunc-strncat.h: New file.
3315
3316 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3317
3318 * sysdeps/s390/multiarch/Makefile
3319 (sysdep_routines): Remove strcat variants.
3320 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3321 * sysdeps/s390/multiarch/ifunc-impl-list.c
3322 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3323 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3324 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3325 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3326 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3327 * sysdeps/s390/multiarch/strcat.c: Move to ...
3328 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3329 * sysdeps/s390/ifunc-strcat.h: New file.
3330
3331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3332
3333 * sysdeps/s390/multiarch/Makefile
3334 (sysdep_routines): Remove stpncpy variants.
3335 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3336 * sysdeps/s390/multiarch/ifunc-impl-list.c
3337 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3338 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3339 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3340 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3341 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3342 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3343 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3344 * sysdeps/s390/ifunc-stpncpy.h: New file.
3345
3346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3347
3348 * sysdeps/s390/multiarch/Makefile
3349 (sysdep_routines): Remove strncpy variants.
3350 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3351 * sysdeps/s390/multiarch/ifunc-impl-list.c
3352 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3353 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3354 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3355 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3356 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3357 * sysdeps/s390/ifunc-strncpy.h: New file.
3358 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3359 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3360 and adjust ifunc handling.
3361 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3362 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3363 and adjust ifunc handling.
3364 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3365 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3366
3367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3368
3369 * sysdeps/s390/multiarch/Makefile
3370 (sysdep_routines): Remove stpcpy variants.
3371 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3372 * sysdeps/s390/multiarch/ifunc-impl-list.c
3373 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3374 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3375 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3376 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3377 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3378 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3379 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3380 * sysdeps/s390/ifunc-stpcpy.h: New file.
3381
3382 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3383
3384 * sysdeps/s390/multiarch/Makefile
3385 (sysdep_routines): Remove strcpy variants.
3386 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3387 * sysdeps/s390/multiarch/ifunc-impl-list.c
3388 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3389 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3390 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3391 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3392 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3393 * sysdeps/s390/ifunc-strcpy.h: New file.
3394 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3395 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3396 for 31/64bit and ifunc handling.
3397 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3398 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3399 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3400
3401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3402
3403 * sysdeps/s390/multiarch/Makefile
3404 (sysdep_routines): Remove strnlen variants.
3405 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3406 * sysdeps/s390/multiarch/ifunc-impl-list.c
3407 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3408 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3409 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3410 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3411 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3412 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3413 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3414 * sysdeps/s390/ifunc-strnlen.h: New file.
3415
3416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3417
3418 * sysdeps/s390/multiarch/Makefile
3419 (sysdep_routines): Remove strlen variants.
3420 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3421 * sysdeps/s390/multiarch/ifunc-impl-list.c
3422 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3423 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3424 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3425 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3426 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3427 * sysdeps/s390/multiarch/strlen.c: Move to ...
3428 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3429 * sysdeps/s390/ifunc-strlen.h: New file.
3430
3431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3432
3433 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3434 * sysdeps/s390/multiarch/ifunc-impl-list.c
3435 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3436 * sysdeps/s390/ifunc-memmem.h: New file.
3437 * sysdeps/s390/memmem.c: Likewise.
3438 * sysdeps/s390/memmem-c.c: Likewise.
3439 * sysdeps/s390/memmem-vx.c: Likewise.
3440
3441 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3442
3443 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3444 * sysdeps/s390/multiarch/ifunc-impl-list.c
3445 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3446 * sysdeps/s390/ifunc-strstr.h: New file.
3447 * sysdeps/s390/strstr.c: Likewise.
3448 * sysdeps/s390/strstr-c.c: Likewise.
3449 * sysdeps/s390/strstr-vx.c: Likewise.
3450
3451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3452
3453 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3454 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3455 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3456 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3457 New defines.
3458 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3459 * sysdeps/s390/memmove-c.c: New file.
3460 * sysdeps/s390/memmove.c: Likewise.
3461 * sysdeps/s390/multiarch/ifunc-impl-list.c
3462 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3463
3464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3465
3466 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3467 * sysdeps/s390/configure.ac: Add check for z13 support.
3468 * sysdeps/s390/configure: Regenerated.
3469
3470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3471
3472 * sysdeps/s390/memcopy.h: New file.
3473
3474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3475
3476 * sysdeps/s390/s390-32/bcopy.S: Remove.
3477 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3478
3479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3480
3481 * sysdeps/s390/ifunc-memcpy.h: New File.
3482 * sysdeps/s390/memcpy.S: Move to ...
3483 * sysdeps/s390/memcpy-z900.S ... here.
3484 Move implementations from memcpy-s390x.s to here.
3485 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3486 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3487 Remove memcpy/mempcpy variants.
3488 * sysdeps/s390/Makefile (sysdep_routines):
3489 Add memcpy/mempcpy variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Adjust ifunc variants for
3492 memcpy and mempcpy.
3493 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3494 to ...
3495 * sysdeps/s390/memcpy.c: ... here.
3496 Adjust ifunc variants for memcpy.
3497 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3498 * sysdeps/s390/mempcpy.c: ... here.
3499 Adjust ifunc variants for mempcpy.
3500 * sysdeps/s390/mempcpy.S: Delete file.
3501
3502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3503
3504 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3505 * sysdeps/s390/memcpy.S: ... here.
3506 Adjust to be usable for 31/64bit.
3507 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3508 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3509 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3510 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3511 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3512 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3513 Adjust to be usable for 31/64bit.
3514 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3515 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3516 * sysdeps/s390/multiarch/memcpy.c: ... here.
3517 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3518
3519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3520
3521 * sysdeps/s390/ifunc-memcmp.h: New File.
3522 * sysdeps/s390/memcmp.S: Move to ...
3523 * sysdeps/s390/memcmp-z900.S ... here.
3524 Move implementations from memcmp-s390x.s to here.
3525 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3526 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3527 Remove memcmp variants.
3528 * sysdeps/s390/Makefile (sysdep_routines):
3529 Add memcmp variants.
3530 * sysdeps/s390/multiarch/ifunc-impl-list.c
3531 (__libc_ifunc_impl_list): Adjust ifunc variants for
3532 memcmp.
3533 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3534 to ...
3535 * sysdeps/s390/memcmp.c: ... here.
3536 Adjust ifunc variants for memcmp.
3537
3538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3539
3540 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3541 * sysdeps/s390/memcmp.S: ... here.
3542 Adjust to be usable for 31/64bit.
3543 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3544 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3545 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3546 Remove memcmp.
3547 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3548 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3549 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3550 Adjust to be usable for 31/64bit.
3551 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3552 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3553 * sysdeps/s390/multiarch/memcmp.c: ... here.
3554 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3555
3556 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3557
3558 * sysdeps/s390/s390-32/bzero.S: Delete file.
3559 * sysdeps/s390/s390-64/bzero.S: Likewise.
3560 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3561 * sysdeps/s390/bzero.c: New file.
3562 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3563 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3564 * sysdeps/s390/multiarch/ifunc-impl-list.c
3565 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3566
3567 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3568
3569 * sysdeps/s390/ifunc-memset.h: New File.
3570 * sysdeps/s390/memset.S: Move to ...
3571 * sysdeps/s390/memset-z900.S ... here.
3572 Move implementations from memset-s390x.s to here.
3573 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3574 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3575 Remove memset variants.
3576 * sysdeps/s390/Makefile (sysdep_routines):
3577 Add memset variants.
3578 * sysdeps/s390/multiarch/ifunc-impl-list.c
3579 (__libc_ifunc_impl_list): Adjust ifunc variants for
3580 memset.
3581 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3582 to ...
3583 * sysdeps/s390/memset.c: ... here.
3584 Adjust ifunc variants for memset.
3585
3586 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3587
3588 * sysdeps/s390/s390-64/memset.S: Move to ...
3589 * sysdeps/s390/memset.S: ... here.
3590 Adjust to be usable for 31/64bit.
3591 * sysdeps/s390/s390-32/memset.S: Delete File.
3592 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3593 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3594 Remove memset.
3595 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3596 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3597 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3598 Adjust to be usable for 31/64bit.
3599 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3600 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3601 * sysdeps/s390/multiarch/memset.c: ... here.
3602 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3603
3604 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3605
3606 * sysdeps/s390/multiarch/ifunc-resolve.h
3607 (s390_libc_ifunc_init, s390_libc_ifunc,
3608 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3609
3610 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3611
3612 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3613 * sysdeps/s390/configure.ac: Add check for z10 support.
3614 * sysdeps/s390/configure: Regenerated.
3615
3616 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3617
3618 * sysdeps/i386/atomic-machine.h: Merged with ...
3619 * sysdeps/x86_64/atomic-machine.h: To ...
3620 * sysdeps/x86/atomic-machine.h: This. New file.
3621
3622 2018-12-18 Florian Weimer <fweimer@redhat.com>
3623
3624 Rewrite locale/gen-translit.pl in Python.
3625 * locale/Makefile (generated): Add C-translit.h.
3626 (before-compile): Add $(objpfx)C-translit.h.
3627 (C-translit.h): Move to $(objpfx). Create target directory.
3628 Build using Python script.
3629 * locale/gen-translit.py: New file.
3630 * locale/gen-translit.pl: Remove file.
3631 * locale/C-translit.h.in: Change comment character to '#' for
3632 easier parsing without a C preprocessor.
3633 * locale/C-translit.h: Remove generated file.
3634 * manual/install.texi (Tools for Compilation): Do not mention
3635 C-translit.h.
3636 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3637 Remove locale/C-translit.h.
3638 * scripts/update-copyrights: Likewise.
3639 * INSTALL: Regenerate.
3640
3641 2018-12-18 Florian Weimer <fweimer@redhat.com>
3642
3643 [BZ #23995]
3644 * localedata/locales/bi_VU: Remove executable bit from file.
3645
3646 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3647
3648 * include/time.h
3649 (__localtime64): Add.
3650 * manual/maint.texi: Document Y2038 symbol handling.
3651 * time/localtime.c
3652 (__localtime64): Add.
3653 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3654
3655 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3656
3657 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3658 Do not clobber r12.
3659
3660 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3661 to allow extra macros from first or second sources.
3662 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3663 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3664 (tests-special): Add $(objpfx)tst-mman-consts.out.
3665 ($(objpfx)tst-mman-consts.out): New makefile target.
3666
3667 2018-12-17 Mao Han <han_mao@c-sky.com>
3668
3669 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3670 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3671 without stat64 system call support.
3672 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3673 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3674 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3675 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3676 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3677 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3678 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3679 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3680 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3681 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3682 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3683
3684 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3685
3686 regex: fix storage-exhaustion error
3687 [BZ #18040]
3688 * posix/regexec.c (get_subexp):
3689 Do not continue if storage is exhausted.
3690
3691 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3692
3693 regex: fix heap-use-after-free error
3694 [BZ #18040]
3695 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3696 https://debbugs.gnu.org/32592
3697 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3698 call extend_buffers which reallocates the re_string_t internal buffer.
3699 Local variable 'buf' was not updated in such case, resulting in
3700 use-after-free.
3701 * posix/regexec.c (get_subexp): Update 'buf' after call to
3702 get_subexp_sub.
3703
3704 2018-12-15 Florian Weimer <fweimer@redhat.com>
3705
3706 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3707 (minimum_stride_size): Use it.
3708 (support_blob_repeat_allocate): Likewise.
3709
3710 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3711
3712 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3713 definition.
3714 (acosh): Likewise.
3715 (atanh): Likewise.
3716
3717 2018-12-14 Florian Weimer <fweimer@redhat.com>
3718
3719 * manual/process.texi (Process Creation Concepts): Remove
3720 documentation of process (ID) lifetime. List more process
3721 creation functions. Reference Process Identification section.
3722 (Process Identification): Add information about process ID
3723 lifetime. Describe Linux thread/task IDs.
3724 * manual/signal.texi (Signaling Another Process): Mention that the
3725 signal is always sent to the process.
3726
3727 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3728
3729 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3730 and tst-ldbl-efgcvt.
3731 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3732 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3733 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3734 (fcvt_tests, output_error, output_r_error, do_test): Use the
3735 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3736 select the type of floating-point variables and arguments; to
3737 produce extra tests for double and conversion specifiers for
3738 printf; and to set the names of called functions.
3739 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3740 in tst-efgcvt-template.c.
3741 * misc/tst-ldbl-efgcvt.c: Likewise.
3742
3743 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3744
3745 * nss/Makefile (tst-nss-test3.out): New rule.
3746
3747 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3748
3749 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3750 clobber sp.
3751
3752 2018-12-13 fanjinke <fanjinke@hygon.cn>
3753
3754 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3755 "HygonGenuine".
3756
3757 2018-12-13 Andreas Schwab <schwab@suse.de>
3758
3759 [BZ #23861]
3760 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3761 (__pthread_rwlock_rdlock_full): Update expected value for
3762 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3763 * nptl/tst-rwlock-pwn.c: New file.
3764 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3765
3766 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3767
3768 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3769 definition.
3770
3771 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3772
3773 * benchtests/scripts/compare_bench.py (do_compare): write to
3774 stderr in casestat is not present.
3775 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3776 stderr in case timings field is not present. Also string showing
3777 the output filename goes into the stderr.
3778
3779 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3780
3781 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3782 and ZeroDivisorError exceptions.
3783 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3784 argument to loop through user provided statistics.
3785 * benchtests/scripts/compare_bench.py (main): Include the --stats
3786 argument.
3787
3788 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3789
3790 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3791 instead of return.
3792
3793 2018-12-12 Florian Weimer <fweimer@redhat.com>
3794
3795 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3796 clause to copyright header.
3797
3798 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3799
3800 [BZ #23614]
3801 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3802 registers saved in the stack frame.
3803 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3804 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3805
3806 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3807
3808 * include/bits/monetary-ldbl.h: New file.
3809 * include/bits/printf-ldbl.h: Likewise.
3810 * include/bits/stdio-ldbl.h: Likewise.
3811 * include/bits/stdlib-ldbl.h: Likewise.
3812 * include/bits/syslog-ldbl.h: Likewise.
3813 * include/bits/wchar-ldbl.h: Likewise.
3814
3815 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3816
3817 * libio/libio.h: Remove redirection for _IO_vfprintf.
3818
3819 2018-12-11 Andreas Schwab <schwab@suse.de>
3820
3821 * Makerules: Remove all references to abilist-pattern.
3822 (update-all-abi): Simplify find expression.
3823
3824 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3825
3826 [BZ #23961]
3827 * math/auto-libm-test-in: Add new test case.
3828 * math/auto-libm-test-out-pow: Regenerated.
3829 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3830
3831 2018-12-10 DJ Delorie <dj@redhat.com>
3832
3833 [BZ #23948]
3834 * support/test-container.c: Move postclean step to before we
3835 change namespaces.
3836
3837 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3838
3839 * scripts/gen-as-const.py (main): Handle --python option.
3840 * scripts/gen-py-const.awk: Remove.
3841 * Makerules (py-const-script): Use gen-as-const.py.
3842 ($(py-const)): Likewise.
3843 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3844 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3845 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3846 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3847 ~PTHREAD_MUTEX_NO_ELISION_NP.
3848 * manual/README.pretty-printers: Update reference to
3849 gen-py-const.awk.
3850
3851 * scripts/glibcextract.py: New file.
3852 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3853 or tempfile. Import glibcexctract.
3854 (compute_c_consts): Remove. Moved to glibcextract.py.
3855 (gen_test): Update reference to compute_c_consts.
3856 (main): Likewise.
3857 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3858 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3859 * sysdeps/unix/sysv/linux/Makefile
3860 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3861 Redirect stderr as well as stdout.
3862
3863 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3864
3865 [BZ #19767]
3866 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3867 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3868 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3869 ALWAYS_USE_VSYSCALL.
3870 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3871 ALWAYS_USE_VSYSCALL.
3872 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3873 ALWAYS_USE_VSYSCALL.
3874
3875 2018-12-10 Florian Weimer <fweimer@redhat.com>
3876
3877 [BZ #23972]
3878 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3879 offset instead of count for clarity. Fix typo in comment.
3880 (__old_getdents64): Keep track of previous offset. Use it to call
3881 handle_overflow.
3882 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3883 that d_off is never zero.
3884
3885 2018-12-10 Andreas Schwab <schwab@suse.de>
3886
3887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3888 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3890 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3891 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3892
3893 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3894
3895 * timezone/private.h: Update from tzcode 2018g.
3896 * timezone/tzfile.h: Likewise.
3897 * timezone/tzselect.ksh: Likewise.
3898 * timezone/zdump.c: Likewise.
3899 * timezone/zic.c: Likewise.
3900
3901 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3902
3903 [BZ #23490]
3904 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3905 (do_test): Adjust buffer size and fix format.
3906
3907 2018-12-07 DJ Delorie <dj@redhat.com>
3908
3909 [BZ #23907]
3910 * malloc/tst-tcfree3.c: New.
3911 * malloc/Makefile: Add it.
3912
3913 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3914
3915 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3916
3917 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3918
3919 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3920 used as a mask for the mode argument of __vfscanf_internal and
3921 __vfwscanf_internal.
3922 * stdio-common/vfscanf-internal.c
3923 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3924 (__strtof128_internal): Define to __wcstof128_internal.
3925 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3926 __strtof128_internal or __wcstof128_internal when the format of
3927 long double is the same as _Float128.
3928
3929 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3930
3931 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3932 * posix/confstr.c (confstr): Rename to __confstr.
3933 (__confstr): Add hidden def.
3934 (confstr): Add weak alias for __confstr.
3935 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3936 confstr.
3937
3938 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3939
3940 * NEWS: Mention getcpu.
3941 * include/sched.h (__getcpu): New libc_hidden_proto.
3942 * manual/resource.texi: Document getcpu.
3943 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3944 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3945 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3946 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3947 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3948 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3949 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3950 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3951 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3952 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3953 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3954 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3955 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3956 Likewise.
3957 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3958 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3959 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3961 Likewise.
3962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3963 Likewise.
3964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3965 Likewise.
3966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3967 Likewise.
3968 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3969 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3970 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3971 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3972 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3973 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3974 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3975 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3976 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3977 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3978 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3979 Also check getcpu.
3980
3981 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3982
3983 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3984 functions.
3985 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3986
3987 2018-12-07 Florian Weimer <fweimer@redhat.com>
3988
3989 [BZ #17405]
3990 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3991 * posix/Versions (GLIBC_2.29): Export
3992 posix_spawn_file_actions_addfchdir_np.
3993 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3994 * posix/spawn_faction_destroy.c
3995 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3996 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3997 and the field action.fchdir_action.
3998 * posix/tst-spawn-chdir.c (add_chdir): New function.
3999 (do_test): Add do_fchdir loop. Call add_chdir.
4000 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4001 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4002 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4003 posix_spawn_file_actions_addfchdir_np.
4004 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4005 Likewise.
4006 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4007 Likewise.
4008 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4009 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4010 Likewise.
4011 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4012 Likewise.
4013 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4014 Likewise.
4015 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4016 Likewise.
4017 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4018 Likewise.
4019 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4020 Likewise.
4021 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4022 (GLIBC_2.29): Likewise.
4023 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4024 (GLIBC_2.29): Likewise.
4025 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4026 (GLIBC_2.29): Likewise.
4027 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4028 (GLIBC_2.29): Likewise.
4029 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4030 Likewise.
4031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4032 (GLIBC_2.29): Likewise.
4033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4034 (GLIBC_2.29): Likewise.
4035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4036 (GLIBC_2.29): Likewise.
4037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4038 (GLIBC_2.29): Likewise.
4039 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4040 Likewise.
4041 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4042 Likewise.
4043 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4044 Likewise.
4045 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4046 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4047 Likewise.
4048 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4049 Likewise.
4050 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4051 Likewise.
4052 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4053 Likewise.
4054
4055 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4056
4057 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4058 trailing whitespace removed.
4059 * scripts/config.guess: Update to version 2018-11-28.
4060 * scripts/config.sub: Update to version 2018-11-28.
4061 * scripts/install-sh: Update to version 2018-03-11.20.
4062 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4063 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4064
4065 2018-12-07 Florian Weimer <fweimer@redhat.com>
4066
4067 [BZ #23927]
4068 CVE-2018-19591
4069 * inet/tst-if_index-long.c: New file.
4070 * inet/Makefile (tests): Add tst-if_index-long.
4071
4072 2018-12-07 Florian Weimer <fweimer@redhat.com>
4073
4074 * support/check.h (support_record_failure_is_failed): Declare.
4075 * support/descriptors.h: New file.
4076 * support/support_descriptors.c: Likewise.
4077 * support/tst-support_descriptors.c: Likewise.
4078 * support/support_record_failure.c
4079 (support_record_failure_is_failed): New function.
4080 * support/Makefile (libsupport-routines): Add support_descriptors.
4081 (tests): Add tst-support_descriptors.
4082
4083 2018-12-05 Zack Weinberg <zackw@panix.com>
4084 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4085
4086 * stdio-common/vfprintf-internal.c
4087 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4088 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4089 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4090 and __no_long_double.
4091 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4092 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4093 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4094 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4095 and __nldbl_*syslog* functions.
4096 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4097 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4098 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4099 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4100 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4101 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4102 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4103 (__nldbl_vwprintf, __nldbl_wprintf):
4104 Directly call the appropriate __v*printf_internal routine, passing
4105 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4106 variable names.
4107 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4108 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4109 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4110 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4111 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4112 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4113 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4114 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4115 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4116 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4117 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4118 (__nldbl_syslog, __nldbl_vsyslog):
4119 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4120 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4121 appropriate.
4122 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4123 appropriate.
4124
4125 2018-12-05 Zack Weinberg <zackw@panix.com>
4126 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4127
4128 [BZ #11319]
4129 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4130 Moved here from debug/vsprintf_chk.c.
4131 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4132 and completion logic for the strfile to match exactly what
4133 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4134 _IO_str_init_static_internal instead of maxlen-1.
4135 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4136 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4137 __vsprintf_internal.
4138
4139 * debug/vsprintf_chk.c (__vsprintf_chk)
4140 * debug/sprintf_chk.c (__sprintf_chk):
4141 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4142 'flags' argument is positive, and slen as maxlen. No need to lock
4143 the FILE and/or construct a temporary FILE. Minimize and normalize
4144 header inclusions and variable names. Do not libc_hidden_def anything.
4145
4146 * debug/asprintf_chk.c (__asprintf_chk)
4147 * debug/dprintf_chk.c (__dprintf_chk)
4148 * debug/fprintf_chk.c (__fprintf_chk)
4149 * debug/fwprintf_chk.c (__fwprintf_chk)
4150 * debug/printf_chk.c (__printf_chk)
4151 * debug/snprintf_chk.c (__snprintf_chk)
4152 * debug/swprintf_chk.c (__swprintf_chk)
4153 * debug/vasprintf_chk.c (__vasprintf_chk)
4154 * debug/vdprintf_chk.c (__vdprintf_chk)
4155 * debug/vfprintf_chk.c (__vfprintf_chk)
4156 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4157 * debug/vprintf_chk.c (__vprintf_chk)
4158 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4159 * debug/vswprintf_chk.c (__vswprintf_chk)
4160 * debug/vwprintf_chk.c (__vwprintf_chk)
4161 * debug/wprintf_chk.c (__wprintf_chk):
4162 Directly call the corresponding vxxprintf_internal function, passing
4163 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4164 the FILE and/or construct a temporary FILE. Minimize and normalize
4165 header inclusions and variable names. Do not libc_hidden_def anything.
4166
4167 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4168 __obstack_vprintf_internal.
4169 (__obstack_vprintf_chk): Convert into a wrapper that calls
4170 __obstack_vprintf_internal (these two functions already had the
4171 same code) and move to new file...
4172 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4173 file.
4174 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4175 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4176 * debug/Makefile (routines): Add vobprintf_chk.
4177
4178 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4179 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4180 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4181 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4182 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4183 (__nldbl___obstack_vfprintf_chk):
4184 Directly call the corresponding vxxprintf_internal function,
4185 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4186 duplicate comparison of slen with 0 or maxlen from the corresponding
4187 non-__nldbl function.
4188
4189 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4190 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4191 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4192 Remove libc_hidden_proto.
4193
4194 * stdio-common/vfprintf-internal.c
4195 (__vfprintf_internal, __vfwprintf_internal):
4196 Do not check _IO_FLAGS2_FORTIFY.
4197 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4198 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4199 a comment explaining why it has the maxlen argument.
4200 (_IO_acquire_lock_clear_flags2_fct): Remove.
4201 (_IO_acquire_lock_clear_flags2): Remove.
4202 (_IO_release_lock): Remove conditional statement which will
4203 now never execute.
4204 (_IO_acquire_lock): Remove variable which is now unused.
4205 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4206 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4207
4208 * stdio-common/Makefile (tests): Add tst-bz11319 and
4209 tst-bz11319-fortify2.
4210 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4211 * stdio-common/tst-bz11319-fortify2.c: New file.
4212 * stdio-common/tst-bz11319.c: Likewise.
4213
4214 2018-12-05 Zack Weinberg <zackw@panix.com>
4215 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4216
4217 * misc/syslog.c: Include libioP.h, not iolibio.h.
4218 (__vsyslog_internal): New function with the former body of
4219 __vsyslog_chk; takes mode_flags argument same as
4220 __v*printf_internal. Call __vfprintf_internal directly.
4221
4222 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4223 Remove libc_hidden_def.
4224 (__syslog, __syslog_chk): Use __vsyslog_internal.
4225 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4226
4227 * include/sys/syslog.h: Add multiple inclusion guard.
4228 Add prototype for __vsyslog_internal.
4229 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4230
4231 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4232 Use __vsyslog_internal.
4233
4234 2018-12-05 Zack Weinberg <zackw@panix.com>
4235 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4236
4237 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4238 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4239 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4240 New functions.
4241 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4242 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4243
4244 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4245 Include wctype.h here if COMPILE_WPRINTF is defined.
4246 Define __vfprintf_internal or __vfwprintf_internal, depending
4247 on COMPILE_WPRINTF.
4248 Temporarily, on entry to this function, update mode_flags
4249 according to the environmental settings corresponding to
4250 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4251 Throughout, check mode_flags instead of __ldbl_is_dbl and
4252 _IO_FLAGS2_FORTIFY on the destination FILE.
4253 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4254 Include vfprintf-internal.c. Don't include wctype.h.
4255 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4256 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4257 and vfprintf.
4258 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4259 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4260 and vfwprintf.
4261 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4262
4263 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4264 and add mode_flags argument; use __vfprintf_internal.
4265 (__vdprintf): New function. Alias vdprintf to this.
4266 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4267 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4268 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4269 (__obstack_printf): Use __obstack_printf_internal.
4270 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4271 public aliases __vsnprintf and vsnprintf.
4272 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4273 called internally.
4274 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4275 public aliases _IO_vsprintf and vsprintf.
4276 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4277 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4278 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4279 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4280 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4281
4282 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4283 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4284 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4285 * stdio-common/printf.c: Use __vfprintf_internal.
4286
4287 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4288 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4289 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4290
4291 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4292 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4293 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4294 __vfwprintf_internal.
4295
4296 * libio/libio.h: Remove libc_hidden_proto and declaration for
4297 _IO_vfprintf.
4298 Remove declaration of _IO_vfwprintf.
4299 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4300 _IO_vsprintf.
4301 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4302 _IO_obstack_printf.
4303 * include/stdio.h: Add prototype for __vasprintf.
4304 (__vsnprintf): Remove declaration, because there are no more
4305 internal calls.
4306 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4307 declaration, because there are no more internal calls.
4308
4309 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4310 __vsnprintf_internal, instead of _IO_vsnprintf.
4311 * argp/argp-help.c (__argp_error, __argp_failure): Use
4312 __vasprintf_internal, instead of _IO_vasprintf.
4313 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4314 redefine, because there are no more internal calls.
4315
4316 2018-12-05 Zack Weinberg <zackw@panix.com>
4317 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4318
4319 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4320 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4321 Include libio/strfile.h instead of libioP.h.
4322 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4323 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4324 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4325 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4326 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4327 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4328 necessary. Do not set __no_long_double. Normalize variable names.
4329 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4330 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4331 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4332 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4333 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4334 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4335 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4336 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4337 Do not set __no_long_double. Normalize variable names.
4338
4339 2018-12-05 Zack Weinberg <zackw@panix.com>
4340 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4341
4342 * stdio-common/isoc99_scanf.c
4343 * stdio-common/isoc99_fscanf.c
4344 * stdio-common/isoc99_sscanf.c
4345 * stdio-common/isoc99_vscanf.c
4346 * stdio-common/isoc99_vfscanf.c
4347 * stdio-common/isoc99_vsscanf.c
4348 * wcsmbs/isoc99_wscanf.c
4349 * wcsmbs/isoc99_fwscanf.c
4350 * wcsmbs/isoc99_swscanf.c
4351 * wcsmbs/isoc99_vwscanf.c
4352 * wcsmbs/isoc99_vfwscanf.c
4353 * wcsmbs/isoc99_vswscanf.c:
4354 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4355 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4356 No need to lock and unlock the FILE passed to that function.
4357
4358 * stdio-common/vfscanf-internal.c
4359 (__vfscanf_internal, __vfwscanf_internal):
4360 Don't look at _IO_FLAGS2_SCANF_STD.
4361 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4362 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4363 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4364
4365 2018-12-05 Zack Weinberg <zackw@panix.com>
4366 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4367
4368 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4369 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4370 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4371 * libio/strfile.h: Add multiple inclusion guard.
4372 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4373
4374 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4375 consistency with the other version of this file.
4376 (ldbl_compat_symbol): New macro.
4377 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4378 New macro.
4379
4380 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4381 Define __vfscanf_internal or __vfwscanf_internal, depending on
4382 COMPILE_WSCANF; don't define any other public symbols.
4383 Remove errval and code to set errp.
4384 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4385 as the mode_flags argument.
4386 (encode_error, conv_error, input_error): Don't set errval.
4387 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4388 Include vfscanf-internal.c.
4389 * stdio-common/vfscanf.c: New file defining the public entry
4390 point vfscanf, which calls __vfscanf_internal.
4391 * stdio-common/vfwscanf.c: New file defining the public entry
4392 point vfwscanf, which calls __vfwscanf_internal.
4393
4394 * stdio-common/iovfscanf.c: New file.
4395 * stdio-common/iovfwscanf.c: Likewise.
4396
4397 * stdio-common/Makefile (routines): Add vfscanf-internal,
4398 vfwscanf-internal, iovfscanf, iovfwscanf.
4399 * stdio-common/Versions: Mention GLIBC_2.29, so that
4400 it can be used in SHLIB_COMPAT expressions.
4401 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4402 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4403 Call __vfscanf_internal, instead of _IO_vfscanf.
4404 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4405 _IO_vfscanf.
4406 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4407 _IO_vfwscanf.
4408
4409 * libio/iovsscanf.c: Clean up includes, when possible. Use
4410 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4411 __vfscanf_internal or __vfwscanf_internal directly.
4412 * libio/iovswscanf.c: Likewise.
4413 * libio/swscanf.c: Likewise.
4414 * libio/vscanf.c: Likewise.
4415 * libio/vwscanf.c: Likewise.
4416 * libio/wscanf.c: Likewise.
4417 * stdio-common/isoc99_fscanf.c: Likewise.
4418 * stdio-common/isoc99_scanf.c: Likewise.
4419 * stdio-common/isoc99_sscanf.c: Likewise.
4420 * stdio-common/isoc99_vfscanf.c: Likewise.
4421 * stdio-common/isoc99_vscanf.c: Likewise.
4422 * stdio-common/isoc99_vsscanf.c: Likewise.
4423 * stdio-common/scanf.c: Likewise.
4424 * stdio-common/sscanf.c: Likewise.
4425 * wcsmbs/isoc99_fwscanf.c: Likewise.
4426 * wcsmbs/isoc99_swscanf.c: Likewise.
4427 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4428 * wcsmbs/isoc99_vswscanf.c: Likewise.
4429 * wcsmbs/isoc99_vwscanf.c: Likewise.
4430 * wcsmbs/isoc99_wscanf.c: Likewise.
4431
4432 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4433
4434 * include/time.h
4435 (__tz_compute): Replace time_t with __time64_t.
4436 (__tz_convert): Replace time_t* with __time64_t.
4437 (__offtime): Replace time_t* with __time64_t.
4438 * time/gmtime.c
4439 (__gmtime_r): Adjust call to __tz_convert.
4440 (gmtime): Likewise.
4441 * time/localtime.c
4442 (__localtime_r): Likewise.
4443 (localtime): Likewise.
4444 * time/offtime.c: Replace time_t with __time64_t.
4445 * time/tzset.c: Likewise.
4446
4447 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4448
4449 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4450 dynamic linker unless [$(run-built-tests) = yes].
4451
4452 2018-12-03 DJ Delorie <dj@delorie.com>
4453
4454 * support/test-container.c (check_for_unshare_hints): New.
4455 (main): Call it if unshare fails. Add support for "su" scriptlet
4456 command.
4457
4458 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4459
4460 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4461 'START' to indicate that start text should be output.
4462 (gen_test): Likewise.
4463 (main): Generate 'START' for first symbol or '--' line, or at end
4464 of input if not previously generated.
4465
4466 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4467
4468 [BZ #19767]
4469 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4470 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4471 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4472 ALWAYS_USE_VSYSCALL.
4473
4474 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4475
4476 [BZ #23913]
4477 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4478 new_argv by one.
4479
4480 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4481
4482 [BZ #23923]
4483 * locale/programs/localedef.c: Declare boolean hard_links default true.
4484 (options): Add --no-hard-links option.
4485 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4486 * locale/programs/localedef.h: Declare prototype for hard_links.
4487 * locale/programs/locfile.c (write_locale_data): Don't use hard
4488 links if hard_links is false.
4489
4490 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4491
4492 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4493 cpu_features_basic.
4494 (__cache_sysconf): Likewise.
4495 (init_cacheinfo): Likewise.
4496 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4497 populate COMMON_CPUID_INDEX_80000007 and
4498 COMMON_CPUID_INDEX_80000008.
4499 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4500 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4501 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4502 (init_cpu_features): Use _Static_assert on
4503 index_arch_Fast_Unaligned_Load.
4504 __get_cpuid_registers and __get_arch_feature. Updated for
4505 cpu_features_basic. Set stepping in cpu_features.
4506 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4507 (FEATURE_INDEX_2): New.
4508 (FEATURE_INDEX_MAX): Changed to enum.
4509 (COMMON_CPUID_INDEX_D_ECX_1): New.
4510 (COMMON_CPUID_INDEX_80000007): Likewise.
4511 (COMMON_CPUID_INDEX_80000008): Likewise.
4512 (cpuid_registers): Likewise.
4513 (cpu_features_basic): Likewise.
4514 (CPU_FEATURE_USABLE): Likewise.
4515 (bit_arch_XXX_Usable): Likewise.
4516 (cpu_features): Use cpuid_registers and cpu_features_basic.
4517 (bit_arch_XXX): Reweritten.
4518 (bit_cpu_XXX): Likewise.
4519 (index_cpu_XXX): Likewise.
4520 (reg_XXX): Likewise.
4521 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4522 <support/check.h>.
4523 (CHECK_CPU_FEATURE): New.
4524 (CHECK_CPU_FEATURE_USABLE): Likewise.
4525 (cpu_kinds): Likewise.
4526 (do_test): Print vendor, family, model and stepping. Check
4527 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4528 (TEST_FUNCTION): Removed.
4529 Include <support/test-driver.c> instead of
4530 "../../test-skeleton.c".
4531 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4532 Check POPCNT instead of POPCOUNT.
4533 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4534
4535 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4536
4537 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4538 there is no element in `consts'.
4539
4540 2018-12-01 Florian Weimer <fweimer@redhat.com>
4541
4542 * support/support_capture_subprocess.c
4543 (support_capture_subprocess): Check that pipe descriptors have
4544 expected values. Close original pipe descriptors in subprocess.
4545
4546 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4547
4548 [BZ #23032]
4549 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4550 attr with __pthread_default_barrierattr.
4551 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4552 attr with __pthread_default_condattr.
4553 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4554 attr with __pthread_default_mutexattr.
4555 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4556 attr with __pthread_default_rwlockattr.
4557
4558 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4559
4560 * manual/tunables.texi (POSIX Thread Tunables): New node.
4561 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4562 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4563 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4564 __pthread_tunables_init.
4565 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4566 (max_adaptive_count): Define.
4567 * nptl/pthread_mutex_conf.c: New file.
4568 * nptl/pthread_mutex_conf.h: New file.
4569 * sysdeps/generic/adaptive_spin_count.h: New file.
4570 * sysdeps/nptl/dl-tunables.list: New file.
4571 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4572 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4573 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4574 Likewise.
4575
4576 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4577
4578 [BZ #20544]
4579 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4580 * stdlib/on_exit.c (__on_exit): Likewise.
4581 * stdlib/Makefile (tests): Add tst-bz20544.
4582 * stdlib/tst-bz20544.c: New test.
4583
4584 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4585
4586 [BZ #19767]
4587 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4588 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4589 New.
4590
4591 2018-11-30 Florian Weimer <fweimer@redhat.com>
4592
4593 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4594 Extend error logging.
4595 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4596 symbol.
4597
4598 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4599
4600 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4601 __sigismember instead of sigismember.
4602 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4603 cancel_handler): New definitions.
4604 (do_system): Use posix_spawn instead of fork and execl and remove
4605 reentracy code.
4606 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4607 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4608 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4609 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4610 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4611 * sysdeps/unix/sysv/linux/system.c: Likewise.
4612
4613 [BZ #22834]
4614 [BZ #17490]
4615 * NEWS: Add new semantic for atfork with popen and system.
4616 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4617 fork and execl.
4618
4619 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4620
4621 [BZ #23690]
4622 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4623 modification order when accessing reloc_result->addr.
4624 * include/link.h (reloc_result): Add field init.
4625 * nptl/Makefile (tests): Add tst-audit-threads.
4626 (modules-names): Add tst-audit-threads-mod1 and
4627 tst-audit-threads-mod2.
4628 Add rules to build tst-audit-threads.
4629 * nptl/tst-audit-threads-mod1.c: New file.
4630 * nptl/tst-audit-threads-mod2.c: Likewise.
4631 * nptl/tst-audit-threads.c: Likewise.
4632 * nptl/tst-audit-threads.h: Likewise.
4633
4634 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4635
4636 * scripts/gen-as-const.py: New file.
4637 * scripts/gen-as-const.awk: Remove.
4638 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4639 gen-as-const.py.
4640 ($(objpfx)test-as-const-%.c): Likewise.
4641
4642 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4643
4644 * elf/dl-exception.c: Include <_itoa.h>.
4645
4646 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4647
4648 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4649 returned by __f_setlk.
4650
4651 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4652 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4653
4654 * elf/Makefile (tests-internal): Add tst-create_format1.
4655 * elf/dl-exception.c (_dl_exception_create_format): Support
4656 %x, %lx and %zx.
4657 * elf/tst-create_format1.c: New file.
4658
4659 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4660
4661 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4662 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4663 gnulib.)
4664 * argp/argp-help.c (__argp_failure): Likewise.
4665
4666 2018-11-29 Mao Han <han_mao@c-sky.com>
4667
4668 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4669 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4670 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4671 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4672 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4673 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4674 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4675 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4676 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4677 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4678 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4679 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4680 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4681 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4682 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4683 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4684 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4685 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4686 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4687 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4688 (R_CKCORE_TLS_TPOFF32): New defines.
4689
4690 2018-11-29 Florian Weimer <fweimer@redhat.com>
4691
4692 * posix/Makefile (before-compile): Remove testcases.h and
4693 ptestcases.h.
4694 (generated): Add testcases.h and ptestcases.h.
4695 (testcases.h, ptestcases.h): Move to $(objpfx).
4696 (runtests.o): Add dependency on testcases.h.
4697 (runptests.o): Add dependency on ptestcases.h.
4698 * posix/testcases.h, posix/ptestcases.h: Remove files.
4699 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4700 not touch posix/testcases.h and posix/ptestcases.h.
4701
4702 2018-11-28 Florian Weimer <fweimer@redhat.com>
4703
4704 support: Add signal support to support_capture_subprocess_check.
4705 * support/capture_subprocess.h (support_capture_subprocess_check):
4706 Adjust comment and rename parameter.
4707 * support/support_capture_subprocess_check.c
4708 (print_actual_status): New function.
4709 (support_capture_subprocess_check): Support negative
4710 status_or_signal. Call print_actual_status.
4711 * support/tst-support_capture_subprocess.c (do_test): Call
4712 support_capture_subprocess_check.
4713 * libio/tst-vtables-common.c (termination_status)
4714 (init_termination_status): Remove.
4715 (check_for_termination): Adjust support_capture_subprocess_check
4716 call.
4717 (do_test): Remove call to init_termination_status.
4718
4719 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4720
4721 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4722 source directory instead of a copy.
4723 (CommandList.create_copy_dir): Remove.
4724
4725 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4726
4727 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4728
4729 2018-11-28 Florian Weimer <fweimer@redhat.com>
4730
4731 * support/support.h (support_quote_string): Do not use str
4732 parameter name.
4733
4734 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4735
4736 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4737 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4738
4739 2018-11-27 Florian Weimer <fweimer@redhat.com>
4740
4741 * support/support.h (support_quote_string): Declare.
4742 * support/support_quote_string.c: New file.
4743 * support/tst-support_quote_string.c: Likewise.
4744 * support/Makefile (libsupport-routines): Add
4745 support_quote_string.
4746 (tests): Add tst-support_quote_string.
4747
4748 2018-11-27 Florian Weimer <fweimer@redhat.com>
4749
4750 [BZ #23927]
4751 CVE-2018-19591
4752 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4753 descriptor leak in case of ENODEV error.
4754
4755 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4756
4757 [BZ #19767]
4758 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4759 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4760 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4761
4762 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4763
4764 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4765 Error for unknown lines.
4766
4767 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4768
4769 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4770 Touch additional files.
4771
4772 2018-11-26 Florian Weimer <fweimer@redhat.com>
4773
4774 [BZ #23907]
4775 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4776 double-frees.
4777
4778 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4779
4780 [BZ #19767]
4781 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4782 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4783 SHARED. Include sysdep.h.
4784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4785 ALWAYS_USE_VSYSCALL.
4786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4787 ALWAYS_USE_VSYSCALL.
4788
4789 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4790
4791 [BZ #19767]
4792 * nptl/Makefile (tests-static): Add tst-cond11-static.
4793 (tests): Likewise.
4794 * nptl/tst-cond11-static.c: New File.
4795 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4796 tst-affinity-static.
4797 (tests): Likewise.
4798 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4799 instead of SHARED.
4800 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4801 (USE_VSYSCALL): Likewise.
4802 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4803 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4804 instead of SHARED.
4805 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4806 SHARED.
4807 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4808 New.
4809
4810 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4811
4812 [BZ #23915]
4813 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4814 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4815 Undefine.
4816
4817 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4818
4819 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4820 (tst-cet-legacy-1a-ARGS): New.
4821 ($(objpfx)tst-cet-legacy-1a): New target.
4822 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4823
4824 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4825
4826 * conform/conformtest.py (CompileSubTest.__init__): Set
4827 self.run_early to False.
4828 (ExecuteSubTest.__init__): Likewise.
4829 (HeaderTests.run): Try running all non-optional, non-XFAILed
4830 compilation tests in a single execution of the compiler.
4831
4832 * conform/conformtest.py (CompileSubTest): New class.
4833 (ExecuteSubTest): Likewise.
4834 (ElementTest.run): Rename to gen_subtests. Append tests to
4835 self.subtests instead of running them.
4836 (ConstantTest.run): Likewise.
4837 (SymbolTest.run): Likewise.
4838 (TypeTest.run): Likewise.
4839 (TagTest.run): Likewise.
4840 (FunctionTest.run): Likewise.
4841 (VariableTest.run): Likewise.
4842 (MacroFunctionTest.run): Likewise.
4843 (MacroStrTest.run): Likewise.
4844 (HeaderTests.handle_test_line): Generate subtests for tests.
4845 (HeaderTests.run): Run subtests for tests.
4846
4847 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4848
4849 * math/Versions (GLIBC_2.29): Add pow.
4850 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4851 symbol.
4852 * math/w_pow.c: New file.
4853 * sysdeps/i386/fpu/w_pow.c: New file.
4854 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4855 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4856 and add necessary aliases.
4857 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4858 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4859 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4860 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4861 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4862 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4863 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4864 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4865 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4866 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4867 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4868 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4869 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4870 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4871 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4877 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4879 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4880 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4881 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4882 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4883 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4884 __pow.
4885 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4886 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4887 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4888
4889 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4890
4891 * math/Versions (GLIBC_2.29): Add log2.
4892 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4893 symbol.
4894 * math/w_log2.c: New file.
4895 * sysdeps/i386/fpu/w_log2.c: New file.
4896 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4897 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4898 and add necessary aliases.
4899 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4900 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4901 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4902 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4903 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4904 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4905 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4906 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4907 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4908 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4909 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4910 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4911 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4912 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4913 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4918 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4919 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4920 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4921 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4922 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4923 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4924 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4925
4926 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4927
4928 * math/Versions (GLIBC_2.29): Add log.
4929 * math/w_log_compat.c (__log_compat): Change to versioned compat
4930 symbol.
4931 * math/w_log.c: New file.
4932 * sysdeps/i386/fpu/w_log.c: New file.
4933 * sysdeps/ia64/fpu/e_log.S: Update.
4934 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4935 and add necessary aliases.
4936 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4937 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4938 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4939 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4940 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4941 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4942 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4943 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4944 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4945 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4946 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4947 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4948 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4949 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4950 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4955 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4956 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4957 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4958 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4959 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4960 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4961 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4962 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4963 __log.
4964 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4965 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4966 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4967 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4968
4969 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4970
4971 * math/Versions (GLIBC_2.29): Add exp and exp2.
4972 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4973 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4974 * math/w_exp_compat.c (__exp_compat): Likewise.
4975 * math/w_exp.c: New file.
4976 * math/w_exp2.c: New file.
4977 * sysdeps/i386/fpu/w_exp.c: New file.
4978 * sysdeps/i386/fpu/w_exp2.c: New file.
4979 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4980 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4981 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4982 and add necessary aliases.
4983 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4984 and add necessary aliases.
4985 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4986 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4987 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4988 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4989 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4990 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4991 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4992 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4993 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4994 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4995 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4996 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4997 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4998 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4999 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5000 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5001 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5006 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5007 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5008 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5009 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5010 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5011 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5012 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5013 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5014 (__ieee754_exp): Rename to __exp.
5015 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5016 (__ieee754_exp): Rename to __exp.
5017 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5018 (__ieee754_exp): Rename to __exp.
5019 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5020 __exp.
5021 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5022
5023 2018-11-20 DJ Delorie <dj@redhat.com>
5024
5025 * malloc/malloc.c (tcache_entry): Add key field.
5026 (tcache_put): Set it.
5027 (tcache_get): Likewise.
5028 (_int_free): Check for double free in tcache.
5029 * malloc/tst-tcfree1.c: New.
5030 * malloc/tst-tcfree2.c: New.
5031 * malloc/Makefile: Run the new tests.
5032 * manual/probes.texi: Document memory_tcache_double_free probe.
5033
5034 * dlfcn/dlerror.c (check_free): Prevent double frees.
5035
5036 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5037
5038 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5039
5040 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5041
5042 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5043 in tests. Use names for format arguments.
5044 (ConstantTest.run): Likewise.
5045 (SymbolTest.run): Likewise.
5046 (TypeTest.run): Likewise.
5047 (TagTest.run): Likewise.
5048 (FunctionTest.run): Likewise.
5049 (VariableTest.run): Likewise.
5050 (MacroFunctionTest.run): Likewise.
5051 (MacroStrTest.run): Likewise.
5052 (HeaderTests.__init__): Set self.num_tests.
5053 (HeaderTests.handle_test_line): Set test.num. Increment
5054 self.num_tests.
5055
5056 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5057
5058 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5059 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5060 SEEK_SET.
5061
5062 2018-11-19 Mao Han <han_mao@c-sky.com>
5063
5064 * scripts/config.guess: Update to version 2018-08-29.
5065 * scripts/config.sub: Update to version 2018-08-29.
5066
5067 2018-11-19 Florian Weimer <fweimer@redhat.com>
5068
5069 support: Print timestamps in timeout handler.
5070 * support/support_test_main.c (print_timestamp): New function.
5071 (signal_handler): Use it to print the termination time and the
5072 time of the last write to standard output.
5073
5074 2018-11-16 Zack Weinberg <zackw@panix.com>
5075 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5076
5077 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5078 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5079 argument.
5080 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5081 and add flags argument. Check flags instead of __ldbl_is_dbl when
5082 deciding whether to set is_long_double.
5083 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5084 passing zero for flags argument.
5085 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5086
5087 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5088 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5089 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5090 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5091 variable names. Remove libc_hidden_def/libc_hidden_proto from
5092 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5093 longer called from within the library.
5094 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5095 for __nldbl___vstrfmon_l, declare it explicitly.
5096
5097 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5098
5099 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5100
5101 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5102 macros
5103 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5104 F_SETLK64, F_SETLKW64, respectively.
5105 * sysdeps/mach/hurd/f_setlk.c: New file.
5106 * sysdeps/mach/hurd/f_setlk.h: New file.
5107 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5108 f_setlk.
5109 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5110 (__libc_fcntl): Move non-flock operations to...
5111 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5112 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5113
5114 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5115
5116 mktime: DEBUG_MKTIME cleanup
5117 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5118 And it’s no longer needed now that glibc and Gnulib both have
5119 their own testing mechanisms for mktime.
5120 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5121
5122 mktime: fix non-EOVERFLOW errno handling
5123 [BZ#23789]
5124 mktime was not properly reporting failures when the underlying
5125 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5126 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5127 The problem could happen on non-glibc platforms, with Gnulib.
5128 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5129 (tm_diff): ... this simpler function, which does not change errno.
5130 All callers changed to deal with errno themselves.
5131 (ranged_convert, __mktime_internal): Return failure immediately if
5132 the underlying function reports any failure other than EOVERFLOW.
5133 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5134 gap code fails.
5135
5136 mktime: fix bug with Y2038 DST transition
5137 [BZ#23789]
5138 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5139 mishandle a DST transition that jumps over the Y2038 boundary.
5140 No such DST transitions are known so this is only a theoretical
5141 bug, but we might as well do things right.
5142
5143 mktime: make more room for overflow
5144 [BZ#23789]
5145 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5146 This is so that we can add tm_diff results to a previous guess,
5147 which will be useful in a later patch.
5148
5149 mktime: simplify offset guess
5150 [BZ#23789]
5151 * time/mktime.c (__mktime_internal): Omit excess precision.
5152
5153 mktime: new test for mktime failure
5154 [BZ#23789]
5155 Based on a test suggested by Albert Aribaud in:
5156 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5157 * time/Makefile (tests): Add bug-mktime4.
5158 * time/bug-mktime4.c: New file.
5159
5160 mktime: fix EOVERFLOW bug
5161 [BZ#23789]
5162 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5163 Include libc-config.h, not config.h, for __set_errno.
5164 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5165
5166 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5167
5168 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5169 __attribute_copy__ to copy attributes from name. Drop static qualifier
5170 to avoid warnings about leaf attribute not having effect on static
5171 functions.
5172
5173 2018-11-13 Florian Weimer <fweimer@redhat.com>
5174
5175 * malloc/malloc.c (fastbin_push_entry): New function.
5176 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5177 (REMOVE_FB): Remove macro.
5178 (_int_malloc): Use fastbin_pop_entry and reindent.
5179 (_int_free): Use fastbin_push_entry.
5180 (malloc_consolidate): Use atomic_exchange_acquire.
5181
5182 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5183
5184 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5185 alias attribute, not with strong_alias.
5186
5187 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5188 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5189 with additional parameter thread.
5190 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5191 in terms of __hidden_ver2.
5192 (hidden_tls_def): New macro.
5193 (libc_hidden_tls_def): Likewise.
5194 (rtld_hidden_tls_def): Likewise.
5195 (libm_hidden_tls_def): Likewise.
5196 (libmvec_hidden_tls_def): Likewise.
5197 (libresolv_hidden_tls_def): Likewise.
5198 (librt_hidden_tls_def): Likewise.
5199 (libdl_hidden_tls_def): Likewise.
5200 (libnss_files_hidden_tls_def): Likewise.
5201 (libnsl_hidden_tls_def): Likewise.
5202 (libnss_nisplus_hidden_tls_def): Likewise.
5203 (libutil_hidden_tls_def): Likewise.
5204 (libutil_hidden_tls_def): Likweise.
5205 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5206 libc_hidden_tls_def.
5207 (__sim_disabled_exceptions_thread): Likewise.
5208 (__sim_round_mode_thread): Likewise.
5209
5210 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5211 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5212 copy attributes from name.
5213
5214 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5215
5216 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5217 Use __attribute_copy__ to copy attributes from name.
5218
5219 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5220 with __hidden_ver1 call.
5221 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5222 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5223 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5224 (__cosf): Do not declare here.
5225 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5226 (__sincosf): Do not declare here.
5227 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5228 (__sinf): Do not declare here.
5229
5230 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5231 (__BIG_ENDIAN): Likewise.
5232 (__BYTE_ORDER): Likewise.
5233 (strong_alias): Likewise.
5234 (_strong_alias): Likewise.
5235
5236 2018-11-12 Florian Weimer <fweimer@redhat.com>
5237
5238 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5239 function. Move after the definition of in_smallbin_range. Do not
5240 use __builtin_expect for paths that lead to a noreturn function.
5241 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5242 because it is unclear whether this is in fact an unlikely
5243 condition.
5244 (_int_malloc, _int_free): Adjust.
5245 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5246 variables.
5247 * malloc/arena.c (heap_trim): Likewise.
5248
5249 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5250
5251 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5252 it, free it if needed.
5253 (reauthenticate): Test and use ccwdir.
5254 (child_init_port): In non-resetids case, test and use ccwdir.
5255 (child_chdir): New nested function to set ccwdir.
5256 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5257 * hurd/hurd/port.h (_hurd_port_move): New function.
5258 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5259 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5260 * hurd/Versions (_hurd_port_move): Export function.
5261 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5262 symbol.
5263 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5264 of dtablesize for allocating dtable_cloexec.
5265
5266 2018-11-09 Martin Sebor <msebor@redhat.com>
5267
5268 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5269 it's already defined.
5270 (_strong_alias): Use __attribute_copy__.
5271 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5272 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5273 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5274 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5275 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5276 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5277 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5278 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5279 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5280 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5281 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5282 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5283 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5284 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5285 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5286 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5287 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5288 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5289 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5290
5291 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5292
5293 * misc/tst-efgcvt.c: Include support/check.h and
5294 support/test-driver.c. Do not include test-skeleton.c.
5295 (error_count): Remove.
5296 (output_error): Replace increments to error_count with calls to
5297 support_record_failure.
5298 (output_r_error): Likewise.
5299 (special): Likewise.
5300 (do_test): Unconditionally return zero.
5301 (TEST_FUNCTION): Remove.
5302
5303 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5304
5305 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5306 not $(@D)/scratch.
5307 ($(linknamespace-header-tests)): Likewise.
5308
5309 * conform/conformtest.py: New file.
5310 * conform/conformtest.pl: Remove.
5311 * conform/GlibcConform.pm: Likewise.
5312 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5313 (KEYWORDS_C99): Likewise.
5314 (KEYWORDS): Likewise.
5315 * conform/Makefile ($(conformtest-header-tests)): Use
5316 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5317 option. Use --header instead of --headers.
5318 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5319 function entries.
5320 * conform/data/spawn.h-data: Likewise.
5321 * conform/data/fcntl.h-data (openat): Add space after function
5322 name.
5323 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5324 (wcscasecmp_l): Likewise.
5325 * conform/data/termios.h-data (c_cc): Add space after element
5326 name.
5327
5328 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5329
5330 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5331 instead of manually comparing and reporting mismatching strings.
5332 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5333 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5334
5335 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5336
5337 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5338 __ASSUME_SOCKETCALL.
5339 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5340 (__ASSUME_SOCKETCALL): Remove.
5341 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5342 (__ASSUME_SOCKETCALL): Likewise.
5343 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5344 (__ASSUME_SOCKETCALL): Likewise.
5345 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5346 (__ASSUME_SOCKETCALL): Likewise.
5347 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5348 (__ASSUME_SOCKETCALL): Likewise.
5349 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5350 (__ASSUME_SOCKETCALL): Likewise.
5351 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5352 (__ASSUME_SOCKETCALL): Likewise.
5353
5354 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5355
5356 [BZ #23509]
5357 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5358 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5359 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5360 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5361 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5362 lc_unknown.
5363
5364 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5365
5366 [BZ #17630]
5367 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5368
5369 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5370
5371 [BZ #23867]
5372 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5373 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5374 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5375 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5376
5377 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5378
5379 * support/support_test_compare_string.c
5380 (support_test_compare_string): Fix printf format.
5381
5382 2018-11-07 Florian Weimer <fweimer@redhat.com>
5383
5384 Implement TEST_COMPARE_STRING.
5385 * support/check.h (TEST_COMPARE_STRING): Define.
5386 (support_test_compare_string): Declare.
5387 * support/Makefile (libsupport-routines): Add
5388 support_test_compare_string.
5389 (tests): Add tst-test_compare_string.
5390 * support/support_test_compare_string.c: New file.
5391 * support/tst-test_compare_string.c: Likewise.
5392
5393 2018-11-07 Andreas Schwab <schwab@suse.de>
5394
5395 [BZ #23864]
5396 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5397 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5398 Undef.
5399
5400 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5401
5402 [BZ #23862]
5403 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5404 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5405 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5406 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5407 Likewise.
5408
5409 2018-11-06 Florian Weimer <fweimer@redhat.com>
5410
5411 [BZ #17405]
5412 * posix/Makefile (routines): Add spawn_faction_addchdir.
5413 (tests): Add tst-spawn-chdir.
5414 * posix/Versions (GLIBC_2.29): Add
5415 posix_spawn_file_actions_addchdir_np.
5416 * posix/spawn_faction_addchdir.c: New file.
5417 * posix/spawn_faction_destroy.c
5418 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5419 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5420 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5421 chdir_action.
5422 * posix/tst-spawn-chdir.c: New file.
5423 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5424 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5425 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5426 posix_spawn_file_actions_addchdir_np.
5427 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5428 Likewise.
5429 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5430 Likewise.
5431 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5432 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5433 Likewise.
5434 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5435 Likewise.
5436 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5437 Likewise.
5438 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5439 Likewise.
5440 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5441 Likewise.
5442 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5443 Likewise.
5444 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5445 (GLIBC_2.29): Likewise.
5446 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5447 (GLIBC_2.29): Likewise.
5448 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5449 (GLIBC_2.29): Likewise.
5450 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5451 (GLIBC_2.29): Likewise.
5452 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5453 Likewise.
5454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5455 (GLIBC_2.29): Likewise.
5456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5457 (GLIBC_2.29): Likewise.
5458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5459 (GLIBC_2.29): Likewise.
5460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5461 (GLIBC_2.29): Likewise.
5462 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5463 Likewise.
5464 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5465 Likewise.
5466 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5467 Likewise.
5468 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5469 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5470 Likewise.
5471 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5472 Likewise.
5473 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5474 Likewise.
5475 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5476 Likewise.
5477
5478 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5479
5480 * misc/Makefile (tests): Add tst-ldbl-error.
5481 * misc/tst-ldbl-error.c: New file.
5482
5483 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5484
5485 * misc/Makefile (tests): Add tst-ldbl-warn.
5486 * misc/tst-ldbl-warn.c: New file.
5487
5488 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5489
5490 * argp/Makefile (tests): Add tst-ldbl-argp.
5491 * argp/tst-ldbl-argp.c: New file.
5492
5493 2018-11-05 Arjun Shankar <arjun@redhat.com>
5494
5495 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5496 __gconv_path_elem and call __gconv_get_path unconditionally.
5497
5498 2018-11-05 Andreas Schwab <schwab@suse.de>
5499
5500 [BZ #22927]
5501 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5502 creating the first helper thread failed.
5503
5504 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5505
5506 * sysdeps/mach/hurd/msync.c: New file.
5507
5508 2018-11-02 Florian Weimer <fweimer@redhat.com>
5509
5510 * support/shell-container.c (copy_func): Call
5511 support_copy_file_range instead of copy_file_range to support
5512 cross-device copies.
5513
5514 2018-11-02 Florian Weimer <fweimer@redhat.com>
5515
5516 * support/test-container.c: Include <libc-pointer-arith.h> for
5517 ALIGN_UP.
5518
5519 2018-11-01 Zong Li <zong@andestech.com>
5520
5521 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5522 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5523 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5524 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5525
5526 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5527 variable to avoid overlap arguments.
5528
5529 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5530
5531 * posix/bug-regex22.c (main): Use puts with distinct error
5532 messages for unexpected success of re_compile_pattern, not printf
5533 with NULL argument to %s.
5534
5535 * stdio-common/bug22.c: Include <libc-diag.h>.
5536 (do_test): Disable -Wformat-overflow= warnings around fprintf
5537 calls outputting more than INT_MAX characters.
5538 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5539 around printf call with NULL %s argument.
5540
5541 [BZ #23848]
5542 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5543 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5544 Undefine.
5545 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5546 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5547 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5548 (__ASSUME_SENDTO_SYSCALL): Likewise.
5549 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5550 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5551 [!__arch64__].
5552 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5553 (__ASSUME_CONNECT_SYSCALL): Likewise.
5554 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5555 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5556 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5557 Define.
5558 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5559 Likewise.
5560 [__LINUX_KERNEL_VERSION >= 0x040400]
5561 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5562 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5563 Remove.
5564 (listen): Likewise.
5565 (setsockopt): Likewise.
5566
5567 2018-11-01 Fredrik Noring <noring@nocrew.org>
5568
5569 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5570 with the ISA override.
5571
5572 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5573
5574 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5575 #endif.
5576
5577 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5578
5579 * manual/errno.texi (EIEIO): Document how translators should
5580 translate the error message.
5581 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5582 printing trailing whitespaces refused by git.
5583 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5584 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5585 * hurd/Makefile (user-interfaces): Add pci.
5586
5587 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5588
5589 * conform/linknamespace.py: New file.
5590 * conform/linknamespace.pl: Remove file.
5591 * conform/Makefile ($(linknamespace-header-tests)): Use
5592 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5593 option.
5594
5595 2018-10-30 Florian Weimer <fweimer@redhat.com>
5596
5597 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5598 memory leaks.
5599
5600 2018-10-30 Florian Weimer <fweimer@redhat.com>
5601
5602 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5603
5604 2018-10-30 Florian Weimer <fweimer@redhat.com>
5605
5606 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5607 support_blob_repeat.
5608
5609 2018-10-30 Florian Weimer <fweimer@redhat.com>
5610
5611 Avoid spurious test failures in stdlib/test-bz22786.
5612 * support/Makefile (libsupport-routines): Add blob_repeat.
5613 (tests): Add tst-support_blob_repeat.
5614 * support/blob_repeat.h: New file.
5615 * support/blob_repeat.c: Likewise.
5616 * support/tst-support_blob_repeat.c: Likewise.
5617 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5618 support_blob_repeat_allocate.
5619
5620 2018-10-30 Andreas Schwab <schwab@suse.de>
5621
5622 [BZ #23125]
5623 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5624 Don't use tail call.
5625 * elf/tst-unwind-main.c: New file.
5626 * elf/Makefile (tests): Add tst-unwind-main.
5627 (CFLAGS-tst-unwind-main.c): Define.
5628
5629 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5630
5631 [BZ #23791]
5632 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5633 n_cs_precedes to 0.
5634 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5635
5636 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5637
5638 * conform/glibcconform.py: Do not import shutil.
5639 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5640 of mkdtemp.
5641
5642 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5643 critic_missing for versions before 3.4.
5644 * configure: Regenerated.
5645 * manual/install.texi (Tools for Compilation): Document
5646 requirement for Python to build glibc.
5647 * INSTALL: Regenerated.
5648 * Rules [PYTHON]: Make code unconditional.
5649 * benchtests/Makefile [PYTHON]: Likewise.
5650 * conform/Makefile [PYTHON]: Likewise.
5651 * manual/Makefile [PYTHON]: Likewise.
5652 * math/Makefile [PYTHON]: Likewise.
5653
5654 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5655
5656 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5657 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5658 answer to interrupt_operation, return EIEIO instead of EINTR.
5659 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5660 _hurd_intr_rpc_msg_about_to global point to start of controlled
5661 assembly snippet. Make it check canceled flag.
5662 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5663 the _hurd_intr_rpc_msg_about_to point.
5664 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5665 issue, remove cancel flag check.
5666
5667 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5668
5669 * scripts/build-many-glibcs.py: Remove compatibility for missing
5670 os.cpu_count and re.fullmatch.
5671
5672 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5673
5674 [BZ #23822]
5675 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5676 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5677 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5678
5679 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5680
5681 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5682 macro.
5683
5684 2018-10-25 Florian Weimer <fweimer@redhat.com>
5685
5686 [BZ #23562]
5687 [BZ #23821]
5688 XFAIL siginfo_t si_band conform test on sparc64.
5689 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5690 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5691 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5692 (conformtest-xfail-conds): Add sparc64-linux.
5693 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5694 sparc64.
5695 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5696
5697 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5698
5699 * elf/elf.h (NT_MIPS_DSP): New macro.
5700 (NT_MIPS_FP_MODE): Likewise.
5701
5702 2018-10-25 Zong Li <zong@andestech.com>
5703
5704 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5705 name by adding the file extension (.so).
5706
5707 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5708
5709 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5710 (test-xfail-ISO11/threads.h/linknamespace,
5711 test-xfail-ISO11/threads.h/conform): Add.
5712
5713 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5714
5715 * math/gen-libm-test.py: Import os.
5716 (ALL_FLOATS_MANUAL): New constant.
5717 (ALL_FLOATS_SUFFIX): Likewise.
5718 (Ulps.all_functions): New function.
5719 (real_all_ulps): Likewise.
5720 (generate_err_table_sub): Likewise.
5721 (generate_err_table): Likewise.
5722 (main): Handle -s and -m options.
5723 * manual/libm-err-tab.pl: Remove.
5724 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5725 instead of libm-err-tab.pl.
5726 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5727 != no].
5728 * manual/install.texi (Tools for Compilation): Document
5729 requirement for Python to build manual.
5730 * INSTALL: Regenerated.
5731
5732 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5733
5734 * bits/time64.h: New file.
5735 * include/time.h: Replace internal_time_t with __time64_t.
5736 * posix/bits/types (__time64_t): Add.
5737 * stdlib/Makefile: Add bits/time64.h to includes.
5738 * time/tzfile.c: Replace internal_time_t with __time64_t.
5739
5740 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5741
5742 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5743 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5744 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5745 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5746 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5747 prototype.
5748 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5749 * posix/spawn_faction_addclose.c
5750 (__posix_spawn_file_actions_addclose): Add hidden definition.
5751 * posix/spawn_faction_adddup2.c
5752 (__posix_spawn_file_actions_adddup2): Likewise.
5753 * posix/spawn_faction_destroy.c
5754 (__posix_spawn_file_actions_destroy): Likewise.
5755 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5756 Likewise.
5757 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5758 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5759 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5760 Likewise.
5761 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5762 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5763 Likewise.
5764
5765 2018-10-24 Andreas Schwab <schwab@suse.de>
5766
5767 [BZ #18093]
5768 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5769 format cache.
5770 * elf/cache.c (print_cache): Likewise.
5771
5772 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5773
5774 * bits/timesize.h: New file.
5775 * stdlib/Makefile (headers): Add bits/timesize.h.
5776 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5777 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5778 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5779 (__SEM_PAD_AFTER_TIME): Likewise.
5780 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5781 (__SHM_PAD_AFTER_TIME): Likewise.
5782 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5783 (__MSQ_PAD_BEFORE_TIME): Likewise.
5784 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5785 (__SEM_PAD_BEFORE_TIME): Likewise.
5786 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5787 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5788 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5789 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5790 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5791 (__MSQ_PAD_BEFORE_TIME): Likewise.
5792 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5793 (__SEM_PAD_BEFORE_TIME): Likewise.
5794 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5795 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5796 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5797 (__MSQ_PAD_BEFORE_TIME): Likewise.
5798 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5799 (__SEM_PAD_BEFORE_TIME): Likewise.
5800 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5801 (__SHM_PAD_BEFORE_TIME): Likewise.
5802 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5803 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5804 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5805
5806 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5807
5808 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5809 USE_RDTSCP is defined.
5810 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5811 USE_RDTSCP is defined.
5812
5813 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5814
5815 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5816 defined.
5817
5818 [BZ #23709]
5819 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5820 independently of other flags.
5821
5822 2018-10-23 Florian Weimer <fweimer@redhat.com>
5823
5824 * time/tst-mktime2.c (N_STRINGS): Remove.
5825 (set_timezone): New function.
5826 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5827 (mktime_test1): Report localtime failure and check errno value.
5828 Use TEST_COMPARE.
5829 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5830 (do_test): Remove alarm call. Use set_timezone and array_length.
5831
5832 2018-10-23 Andreas Schwab <schwab@suse.de>
5833
5834 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5835 (__start_context): Use END instead of PSEUDO_END.
5836
5837 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5838
5839 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5840 version to 4.19.
5841
5842 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5843 version to 4.19.
5844
5845 [BZ #23793]
5846 * wcsmbs/c32rtomb.c: New file.
5847 * wcsmbs/mbrtoc32.c: Likewise.
5848 * wcsmbs/tst-c32-state.c: Likewise.
5849 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5850 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5851 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5852 (tests): Add tst-c32-state.
5853 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5854 $(gen-locales).
5855
5856 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5857
5858 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5859 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5860
5861 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5862
5863 [BZ #23794]
5864 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5865 pair and return 0 in that case, and use saved character to
5866 interpret following character.
5867 * wcsmbs/tst-c16-surrogate.c: New file.
5868 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5869 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5870 Depend on $(gen-locales)
5871
5872 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5873
5874 [BZ #23562]
5875 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5876 (struct siginfo_t): Use correct type for si_band.
5877
5878 2018-10-19 Florian Weimer <fweimer@redhat.com>
5879
5880 [BZ #23689]
5881 * resource/bits/types/struct_rusage.h (struct rusage): Update
5882 comment on struct. Remove extraneous field comment.
5883
5884 2018-10-18 David S. Miller <davem@davemloft.net>
5885
5886 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5887 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5888 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5889 sysdep_routines in subdir elf.
5890 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5891 version for __vdso_clock_gettime.
5892 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5893 Define.
5894 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5895 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5896
5897 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5898
5899 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5900
5901 * sysdeps/i386/init-arch.h: Removed.
5902 * sysdeps/i386/i586/init-arch.h: Likewise.
5903 * sysdeps/i386/i686/init-arch.h: Likewise.
5904 * sysdeps/i386/i686/hp-timing.h: Likewise.
5905 * sysdeps/x86_64/hp-timing.h: Likewise.
5906 * sysdeps/i386/isa.h: New file.
5907 * sysdeps/i386/i586/isa.h: Likewise.
5908 * sysdeps/i386/i686/isa.h: Likewise.
5909 * sysdeps/x86_64/isa.h: Likewise.
5910 * sysdeps/x86/hp-timing.h: New file.
5911 * sysdeps/x86/init-arch.h: Include <isa.h>.
5912
5913 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5914
5915 * math/libm-test-pow.inc (pow_test_data): Do not allow
5916 divide-by-zero exception for pow(+/- 0, -Inf).
5917
5918 2018-10-17 Zack Weinberg <zackw@panix.com>
5919
5920 * manual/job.texi (Job Control is Optional): Remove node, as
5921 job control has not been optional in quite some time.
5922 (Job Control): Mention briefly that systems older than
5923 POSIX.1-2001 might not support job control.
5924 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5925 defined on systems conforming to POSIX.1-2001.
5926
5927 2018-10-17 Arjun Shankar <arjun@redhat.com>
5928
5929 [BZ #22062]
5930 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5931 indentation.
5932 * (__gconv_read_conf): Mark function static.
5933 * (once): New static variable.
5934 * (__gconv_load_conf): New function.
5935 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5936 * iconv/gconv_db.c (once): Remove static variable.
5937 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5938 __gconv_read_conf.
5939 * (__gconv_find_transform): Likewise.
5940 * iconv/tst-iconv-mt.c: New test.
5941 * iconv/Makefile: Add tst-iconv_mt.
5942
5943 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5944
5945 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5946 bits/shm-pad.h.
5947 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5948 (shmatt_t): Define as __syscall_ulong_t.
5949 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5950 and [__SHM_PAD_AFTER_TIME].
5951 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5952 Define shm_segsz and associated padding based on
5953 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5954 Use __syscall_ulong_t instead of unsigned long int.
5955 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5956 unsigned long int.
5957 [__USE_MISC] (struct shm_info): Likewise.
5958 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5959 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5960 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5961 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5962 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5963 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5964 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5965 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5966 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5967 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5968 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5969
5970 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5971 bits/shmlba.h.
5972 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5973 (SHMLBA): Remove macro.
5974 (__getpagesize): Remove function declaration.
5975 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5976 <bits/shmlba.h>.
5977 (SHMLBA): Remove macro.
5978 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5979 <bits/shmlba.h>.
5980 (SHMLBA): Remove macro.
5981 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5982 <bits/shmlba.h>.
5983 (SHMLBA): Remove macro.
5984 (__getpagesize): Remove function declaration.
5985 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5986 <bits/shmlba.h>.
5987 (SHMLBA): Remove macro.
5988 (__getshmlba): Remove function declaration.
5989 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5990 (SHMLBA): Remove macro.
5991 (__getpagesize): Remove function declaration.
5992 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5993 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5994 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5995 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5996 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5997 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5998 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5999 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6000 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6001 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6002
6003 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6004
6005 [BZ #23275]
6006 * nptl/tst-mutex10.c: New File.
6007 * nptl/Makefile (tests): Add tst-mutex10.
6008 (tst-mutex10-ENV): New variable.
6009 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6010 Ensure that elision path is used if elision is available.
6011 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6012 Likewise.
6013 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6014 Likewise.
6015 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6016 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6017 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6018 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6019 Likewise.
6020 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6021 (__pthread_mutex_cond_lock_adjust): Likewise.
6022 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6023 Likewise.
6024 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6025 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6026 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6027 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6028 Add comments.
6029 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6030 Use atomic_load_relaxed and atomic_store_relaxed.
6031 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6032 Use atomic_store_relaxed.
6033
6034 2018-10-17 Andreas Schwab <schwab@suse.de>
6035
6036 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6037 * crypt/badsalttest.c (TIMEOUT): Likewise.
6038 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6039 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6040 * io/test-lfs.c (TIMEOUT): Likewise.
6041 * libio/tst-atime.c (TIMEOUT): Likewise.
6042 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6043 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6044 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6045 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6046 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6047 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6048 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6049 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6050 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6051 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6052 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6053 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6054 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6055 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6056 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6057 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6058 * nptl/tst-once2.c (TIMEOUT): Likewise.
6059 * nptl/tst-once3.c (TIMEOUT): Likewise.
6060 * nptl/tst-once4.c (TIMEOUT): Likewise.
6061 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6062 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6063 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6064 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6065 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6066 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6067 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6068 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6069 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6070 * posix/tst-chmod.c (TIMEOUT): Likewise.
6071 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6072 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6073 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6074 * posix/tst-regex2.c (TIMEOUT): Likewise.
6075 * posix/tst-waitid.c (TIMEOUT): Likewise.
6076 * rt/tst-aio.c (TIMEOUT): Likewise.
6077 * rt/tst-aio10.c (TIMEOUT): Likewise.
6078 * rt/tst-aio4.c (TIMEOUT): Likewise.
6079 * rt/tst-aio5.c (TIMEOUT): Likewise.
6080 * rt/tst-aio6.c (TIMEOUT): Likewise.
6081 * rt/tst-aio64.c (TIMEOUT): Likewise.
6082 * rt/tst-aio7.c (TIMEOUT): Likewise.
6083 * rt/tst-aio9.c (TIMEOUT): Likewise.
6084 * rt/tst-clock.c (TIMEOUT): Likewise.
6085 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6086 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6087 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6088 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6089 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6090 * rt/tst-timer4.c (TIMEOUT): Likewise.
6091 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6092 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6093 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6094 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6095 * time/tst-ftime.c (TIMEOUT): Likewise.
6096 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6097
6098 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6099
6100 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6101 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6102 for thunderX2.
6103
6104 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6105
6106 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6107 bits/sem-pad.h.
6108 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6109 instead of <bits/wordsize.h>.
6110 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6111 and [__SEM_PAD_AFTER_TIME].
6112 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6113 __syscall_ulong_t instead of unsigned long int.
6114 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6115 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6116 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6117 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6118 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6119 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6120 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6121 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6122 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6123 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6124 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6125
6126 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6127
6128 regex: simplify by using intprops.h
6129 [BZ#23744]
6130 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6131 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6132 intprops.h defines them.
6133
6134 regex: __builtin_expect → __glibc_unlikely
6135 [BZ#23744]
6136 This refactoring was prompted by a problem when the regex code is
6137 used as part of Gnulib and when the builder’s compiler does not grok
6138 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6139 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6140 Although this refactoring does not fix the problem directly,
6141 we might as well have Gawk use the now-preferred glibc style for when
6142 __builtin_expect is unavailable.
6143 * posix/regex_internal.h (BE): Remove.
6144 All uses replaced by __glibc_unlikely or __glibc_likely.
6145
6146 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6147
6148 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6149 bits/msq-pad.h.
6150 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6151 instead of <bits/wordsize.h>.
6152 (msgqnum_t): Define as __syscall_ulong_t.
6153 (msglen_t): Likewise.
6154 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6155 and [__MSQ_PAD_AFTER_TIME].
6156 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6157 __syscall_ulong_t instead of unsigned long int.
6158 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6159 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6160 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6161 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6162 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6163 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6164 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6165 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6166 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6167 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6168 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6169
6170 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6171
6172 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6173 (struct shmid_ds): Condition padding after time fields on
6174 [__WORDSIZE == 32].
6175 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6176 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6177 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6178
6179 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6180 (struct semid_ds): Condition padding after time fields on
6181 [__WORDSIZE == 32].
6182 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6183 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6184 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6185 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6186
6187 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6188 (struct msqid_ds): Condition padding after time fields on
6189 [__WORDSIZE == 32].
6190 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6191 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6192 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6193 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6194
6195 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6196
6197 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6198
6199 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6200
6201 * libio/tst-readline.c (TIMEOUT): Define.
6202
6203 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6204
6205 mktime fix for Gnulib + coreutils
6206 [BZ#23745]
6207 This fix affects only Gnulib. Problem discovered when
6208 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6209 * time/mktime.c:
6210 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6211 Do not define since it is not used. Defining an unused static
6212 function prompts a warning from GCC when Coreutils is configured
6213 with --enable-gcc-warnings.
6214
6215 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6216
6217 * benchtests/scripts/compare_bench.py (main): set float type on
6218 threshold argument.
6219
6220 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6221
6222 [BZ #23740]
6223 * localedata/locales/kl_GL (mon): Update, the relative case.
6224 (alt_mon): Add, fill with month names in the nominative case.
6225 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6226 (d_fmt): Set to "%b %d %Y".
6227
6228 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6229
6230 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6231 <bits/mman-linux.h>.
6232 (PROT_READ): Don't define here.
6233 (PROT_WRITE): Likewise.
6234 (PROT_EXEC): Likewise.
6235 (PROT_NONE): Likewise.
6236 (PROT_GROWSDOWN): Likewise.
6237 (PROT_GROWSUP): Likewise.
6238 (MAP_SHARED): Likewise.
6239 (MAP_PRIVATE): Likewise.
6240 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6241 [__USE_MISC] (MAP_FILE): Likewise.
6242 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6243 [__USE_MISC] (MAP_ANON): Likewise.
6244 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6245 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6246 (MCL_CURRENT): Likewise.
6247 (MCL_FUTURE): Likewise.
6248 (MCL_ONFAULT): Likewise.
6249 [__USE_MISC] (MADV_NORMAL): Likewise.
6250 [__USE_MISC] (MADV_RANDOM): Likewise.
6251 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6252 [__USE_MISC] (MADV_WILLNEED): Likewise.
6253 [__USE_MISC] (MADV_DONTNEED): Likewise.
6254 [__USE_MISC] (MADV_FREE): Likewise.
6255 [__USE_MISC] (MADV_REMOVE): Likewise.
6256 [__USE_MISC] (MADV_DONTFORK): Likewise.
6257 [__USE_MISC] (MADV_DOFORK): Likewise.
6258 [__USE_MISC] (MADV_HWPOISON): Likewise.
6259 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6260 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6261 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6262 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6263 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6264 (__MAP_ANONYMOUS): New macro.
6265 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6266 <bits/mman-linux.h> inclusion.
6267 (MAP_FIXED): Likewise.
6268 (MS_SYNC): Likewise.
6269 (MS_ASYNC): Likewise.
6270 (MS_INVALIDATE): Likewise.
6271 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6272 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6273 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6274 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6275 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6276 [__USE_MISC] (MADV_DODUMP): Likewise.
6277 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6278 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6279
6280 [BZ #23735]
6281 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6282 Define.
6283 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6284 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6285 Add test-nldbl-redirect.
6286 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6287 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6288 $(objpfx)libnldbl_nonshared.a.
6289
6290 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6291
6292 * support/support.h (support_objdir_elf_ldso): New variable.
6293 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6294 * support/Makefile (CFLAGS-support_paths.c): Add definition
6295 for OBJDIR_ELF_LDSO_PATH.
6296 * support/test-container.c (main): Search for the ld.so
6297 which is also used by the testsuite.
6298
6299 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6300
6301 [BZ #20209]
6302 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6303 should be "sap" rather than "sab".
6304 (day): Fix spelling of Sunday, should be "sapaat" rather than
6305 "sabaat".
6306
6307 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6308
6309 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6310
6311 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6312
6313 [BZ #19444]
6314 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6315 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6316 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6317
6318 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6319
6320 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6321
6322 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6323
6324 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6325 Add -mrtm.
6326 (CFLAGS-elision-unlock.c): Likewise.
6327 (CFLAGS-elision-timed.c): Likewise.
6328 (CFLAGS-elision-trylock.c): Likewise.
6329 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6330
6331 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6332
6333 [BZ #21037]
6334 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6335 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6336 new fd_to_filename interface.
6337 * libio/freopen64.c (freopen64): Likewise.
6338 * libio/tst-memstream.h: New file.
6339 * libio/tst-memstream4.c: Likewise.
6340 * libio/tst-wmemstream4.c: Likewise.
6341 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6342 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6343 and remove internal dynamic allocation.
6344
6345 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6346
6347 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6348 (MREMAP_MAYMOVE): Do not define here.
6349 [__USE_GNU] (MREMAP_FIXED): Likewise.
6350 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6351 (MREMAP_MAYMOVE): Define here instead.
6352 [__USE_GNU] (MREMAP_FIXED): Likewise.
6353 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6354 (MREMAP_MAYMOVE): Remove.
6355 [__USE_GNU] (MREMAP_FIXED): Likewise.
6356
6357 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6358
6359 * math/fromfp.h: Do not include <math_private.h>.
6360 * math/s_cacosh_template.c: Likewise.
6361 * math/s_casin_template.c: Likewise.
6362 * math/s_casinh_template.c: Likewise.
6363 * math/s_ccos_template.c: Likewise.
6364 * math/s_cproj_template.c: Likewise.
6365 * math/s_fdim_template.c: Likewise.
6366 * math/s_fmaxmag_template.c: Likewise.
6367 * math/s_fminmag_template.c: Likewise.
6368 * math/s_iseqsig_template.c: Likewise.
6369 * math/s_ldexp_template.c: Likewise.
6370 * math/s_nextdown_template.c: Likewise.
6371 * math/w_log1p_template.c: Likewise.
6372 * math/w_scalbln_template.c: Likewise.
6373 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6374 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6375 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6376 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6377 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6378 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6379 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6380 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6381 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6382 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6383 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6384 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6385 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6386 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6387 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6388 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6389 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6390 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6391 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6392 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6393 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6394 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6395 * sysdeps/ieee754/k_standardf.c: Likewise.
6396 * sysdeps/ieee754/k_standardl.c: Likewise.
6397 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6398 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6399 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6400 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6401 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6402 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6403 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6404 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6405 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6406 * sysdeps/ieee754/s_signgam.c: Likewise.
6407 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6408 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6409 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6410 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6411 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6412 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6413 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6414 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6415 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6416 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6417 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6418 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6419 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6420 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6421 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6422 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6423 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6424 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6425 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6426 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6427 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6428 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6429 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6430 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6431 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6432 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6433 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6434 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6435 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6436 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6437 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6438 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6439 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6440 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6441 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6442 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6443 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6444 <math_private.h>.
6445 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6446
6447 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6448
6449 [BZ #23716]
6450 * sysdeps/i386/dl-cet.c: Removed.
6451 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6452 prototype.
6453 (_dl_runtime_profile_shstk): Likewise.
6454 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6455 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6456
6457 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6458
6459 [BZ #23579]
6460 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6461 do_test_with_invalid_iov): New tests.
6462 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6463 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6464 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6465 errno is ENOSYS.
6466 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6467 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6468 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6469
6470 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6471
6472 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6473 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6474 (MATH_REDIRECT_BINARY_ARGS): New macro.
6475 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6476 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6477 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6478 header inclusion.
6479 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6480 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6481 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6482 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6483 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6484 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6485 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6487 Likewise.
6488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6489 Likewise.
6490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6491 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6492 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6493 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6494 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6495 Likewise.
6496 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6497 Likewise.
6498 * sysdeps/generic/math_private_calls.h
6499 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6500 Do not declare and define as an inline function.
6501 * math/divtc3.c (__divtc3): Use copysign functions instead of
6502 __copysign variants.
6503 * math/multc3.c (__multc3): Likewise.
6504 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6505 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6506 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6507 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6508 Likewise.
6509 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6510 (__ieee754_yn): Likewise.
6511 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6512 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6513 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6514 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6515 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6516 (__sin): Likewise.
6517 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6518 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6519 Likewise.
6520 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6521 Likewise.
6522 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6523 Likewise.
6524 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6525 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6526 Likewise.
6527 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6528 (__ieee754_ynf): Likewise.
6529 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6530 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6531 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6532 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6533 Likewise.
6534 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6535 (__ieee754_ynl): Likewise.
6536 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6537 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6538 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6539 Likewise.
6540 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6541 (__ieee754_ynl): Likewise.
6542 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6543 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6544 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6545 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6546 Likewise.
6547 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6548 (__ieee754_ynl)
6549 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6550 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6551 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6552 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6553 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6554
6555 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6556 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6557 using MATH_REDIRECT.
6558 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6559 header inclusion.
6560 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6561 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6562 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6563 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6564 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6565 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6566 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6571 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6572 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6573 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6574 (round): Redirect to __round.
6575 (__roundl): Call round instead of __round.
6576 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6577 Remove macro.
6578 [_ARCH_PWR5X] (__roundf): Likewise.
6579 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6580 functions instead of __round variants.
6581 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6582 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6583 Likewise.
6584 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6585 Likewise.
6586 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6587 Likewise.
6588 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6589 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6590 __lroundl.
6591 (__ieee754_expl): Call roundl instead of __roundl.
6592
6593 2018-09-27 Andreas Schwab <schwab@suse.de>
6594
6595 [BZ #23717]
6596 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6597 (do_test): Make st1 static.
6598
6599 2018-09-26 Andreas Schwab <schwab@suse.de>
6600
6601 [BZ #23707]
6602 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6603 * elf/Makefile (tests): Add tst-unwind-ctor.
6604 (modules-names): Add tst-unwind-ctor-lib.
6605 ($(objpfx)tst-unwind-ctor): Depend on
6606 $(objpfx)tst-unwind-ctor-lib.so.
6607
6608 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6609
6610 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6611 file. Most contents moved from ....
6612 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6613 and include <bits/mman-map-flags-generic.h>.
6614 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6615 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6616 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6617 <bits/mman-map-flags-generic.h>.
6618 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6619 macros defined in <bits/mman-map-flags-generic.h>.
6620 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6621 <bits/mman-map-flags-generic.h>.
6622 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6623 defined in <bits/mman-map-flags-generic.h>.
6624
6625 2018-09-26 Andreas Schwab <schwab@suse.de>
6626
6627 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6628 output.
6629
6630 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6631 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6632 Fangrui Song <maskray@google.com>
6633
6634 [BZ #20480]
6635 * config.make.in (have-textrel_ifunc): New define.
6636 * configure.ac: Add check if linker supports textrel relocation with
6637 ifunc.
6638 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6639 tst-ifunc-textrel.
6640 (CFLAGS-tst-ifunc-textrel.c): New rule.
6641 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6642 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6643 * elf/tst-ifunc-textrel.c: New file.
6644
6645 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6646
6647 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6648 <bits/procfs-prregset.h>.
6649 (prgregset_t): Define using __prgregset_t.
6650 (prfpregset_t): Define using __prfpregset_t.
6651 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6652 (sysdep_headers): Add bits/procfs-prregset.h.
6653 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6654 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6655 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6656 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6657
6658 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6659 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6660 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6661 pr_uid and pr_gid.
6662 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6663 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6664 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6665 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6666 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6667 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6668 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6669 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6670 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6671 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6672 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6673 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6674 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6675 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6676 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6677 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6678 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6679 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6680 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6681 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6682 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6683 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6684 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6685 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6686
6687 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6688 AArch64 version. Include <bits/procfs.h>.
6689 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6690 (sysdep_headers): Add bits/procfs.h.
6691 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6692 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6693 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6694 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6695 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6696 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6697 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6698 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6699 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6700 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6701 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6702 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6703 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6704 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6705 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6706 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6707 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6708
6709 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6710
6711 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6712 Use libsupport.
6713
6714 2018-09-25 Arjun Shankar <arjun@redhat.com>
6715
6716 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6717 (__gconv_max_path_elem_len): Likewise.
6718 (__gconv_nmodules): Likewise.
6719 (__gconv_get_path): Likewise.
6720 (path_elem): Move to ...
6721 * iconv/gconv_conf.c: ... here.
6722 (__gconv_get_path): Mark function static.
6723 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6724 * iconv/gconv_open.c: ... here.
6725
6726 2018-09-24 Andreas Schwab <schwab@suse.de>
6727
6728 * scripts/haveversions.awk: New file.
6729 * Makerules ($(common-objpfx)Versions.def)
6730 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6731 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6732 Move rules ...
6733 * Makeconfig ($(common-objpfx)Versions.def)
6734 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6735 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6736 ... here.
6737 ($(common-objpfx)Versions.mk): New rule. Include it.
6738 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6739 Emit error if build-obsolete-nsl = yes.
6740 * manual/install.texi (Configuring and compiling): Describe
6741 --enable-obsolete-nsl as unavaiable after version 2.28.
6742 * INSTALL: Regenerate.
6743
6744 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6745
6746 * NEWS: Add note about new TLE support on powerpc64le.
6747 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6748 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6749 __ununsed1.
6750 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6751 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6752 * sysdeps/powerpc/powerpc32/sysdep.h,
6753 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6754 ABORT_TRANSACTION): Remove macros.
6755 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6756 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6757 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6759 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6760 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6761 usage.
6762 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6763
6764 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6765
6766 [BZ #10425]
6767 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6768 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6769 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6770 which is the same as in it_IT.
6771 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6772 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6773
6774 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6775
6776 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6777 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6778 using MATH_REDIRECT.
6779 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6780 header inclusion.
6781 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6782 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6783 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6784 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6785 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6786 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6787 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6788 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6791 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6792 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6793 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6794 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6795 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6796 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6797 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6798 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6799 (ceil): Redirect to __ceil.
6800 (floor): Redirect to __floor.
6801 (trunc): Redirect to __trunc.
6802 (__truncl): Call trunc instead of __trunc.
6803 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6804 Remove macro.
6805 [_ARCH_PWR5X] (__truncf): Likewise.
6806 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6807 trunc functions instead of __trunc variants.
6808 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6809 Likewise.
6810 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6811 Likewise.
6812 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6813 Likewise.
6814 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6815 Likewise.
6816
6817 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6818 [__i586__ || __pentium__].
6819 [__i486__]: Handle explicitly.
6820 (HAS_CPUID): Define to 1 if above macros are undefined.
6821 (HAS_I586): Likewise.
6822 (HAS_I686): Likewise.
6823
6824 2018-09-20 Florian Weimer <fweimer@redhat.com>
6825
6826 * misc/tst-gethostid.c: New file.
6827 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6828 (tst-gethostid): Link with -ldl.
6829
6830 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6831
6832 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6833 value from gethostbyname_r.
6834
6835 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6836
6837 * stdlib/tst-setcontext9.c (f1): Rename to...
6838 (f1a): ... this.
6839 (f1b): New function implementing lower half of f1 in alternate stack.
6840
6841 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6842
6843 Fix mktime localtime offset confusion
6844 [BZ #23603]
6845 * include/time.h (__mktime_internal): The localtime offset is now
6846 of type long int instead of time_t. This is the longstanding type
6847 in glibc, and it is more than enough to represent difference
6848 between localtime and gmtime even if it is 32 bits and time_t is
6849 64. Changing it now will let us avoid an unnecessary change when
6850 time_t is widened to 64 bits on 32-bit platforms.
6851 * time/mktime-internal.h (mktime_offset_t): Now long int.
6852
6853 Merge mktime, timegm from upstream Gnulib
6854 [BZ #23603][BZ #16346]
6855 This fixes some obscure problems with integer overflow.
6856 Although it looks scary, it is almost all a byte-for-byte copy
6857 from Gnulib, and the Gnulib code has been tested reasonably well.
6858 * include/intprops.h: New file, copied from Gnulib.
6859 * include/verify.h, time/mktime-internal.h:
6860 New tiny files, simplified from Gnulib.
6861 * time/mktime.c: Copy from Gnulib. This has the following changes:
6862 Do not include config.h if DEBUG_MKTIME is nonzero.
6863 Include stdbool.h, intprops.h, verify.h.
6864 Include string.h only if needed.
6865 Include stdlib.h on MS-Windows.
6866 Include mktime-internal.h.
6867 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6868 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6869 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6870 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6871 simplify later conditionals; default the others to zero. Use
6872 these conditionals to express only the code needed on the current
6873 platform. In uses of these conditionals, explicitly spell out how
6874 _LIBC affects things, so it’s easier to review from a glibc
6875 viewpoint.
6876 (WRAPV): Remove; no longer needed now that we have
6877 systematic overflow checking.
6878 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6879 compartmentalize tzset issues. Move system-dependent tzsettish
6880 code here from mktime.
6881 (verify): Remove; now done by verify.h. All uses changed.
6882 (long_int): Use a more-conservative definition, to avoid
6883 integer overflow.
6884 (SHR): Remove, replacing with ...
6885 (shr): New function, which means we needn’t worry about side
6886 effects in args, and conversion analysis is simpler.
6887 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6888 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6889 (time_t_avg, time_t_add_ok): Remove.
6890 (mktime_min, mktime_max): New constants.
6891 (leapyear, isdst_differ): Use bool for booleans.
6892 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6893 Use long_int, not time_t, for mktime differences.
6894 (long_int_avg): New function, replacing time_t_avg.
6895 INT_ADD_WRAPV replaces time_t_add_ok.
6896 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6897 All uses changed.
6898 (convert_time): New function.
6899 (ranged_convert): Use it.
6900 (__mktime_internal): Last arg now points to mktime_offset_t, not
6901 time_t. All uses changed. This is a no-op on glibc, where
6902 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6903 offset guess. Directly check for integer overflow instead of
6904 using a heuristic that works only 99.9...% of the time.
6905 Access *OFFSET only once, to avoid an unlikely race if the
6906 compiler delays a load and if this cascades into a signed integer
6907 overflow.
6908 (mktime): Move tzsettish code to my_tzset, and move
6909 localtime_offset to within mktime so that it doesn’t
6910 need a separate ifdef.
6911 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6912 instead of localtime.
6913 * time/timegm.c: Copy from Gnulib. This has the following changes:
6914 Include mktime-internal.h.
6915 [!_LIBC]: Include config.h and time.h. Do not include
6916 timegm.h or time_r.h. Make __mktime_internal a macro,
6917 and include mktime-internal.h to get its declaration.
6918 (timegm): Temporary is now mktime_offset_t, not time_t.
6919 This affects only Gnulib.
6920
6921 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6922
6923 [BZ #23637]
6924 * string/test-strstr.c (pr23637): New function.
6925 (test_main): Add tests with longer needles.
6926 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6927 * string/strstr.c (AVAILABLE): Likewise.
6928
6929 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6930
6931 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6932
6933 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6934
6935 * NEWS: Mention pow improvements.
6936 * math/Makefile (type-double-routines): Add e_pow_log_data.
6937 * sysdeps/generic/math_private.h (__exp1): Remove.
6938 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6939 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6940 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6941 contraction.
6942 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6943 (exp_inline): Remove.
6944 (__ieee754_exp): Only single double input is handled.
6945 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6946 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6947 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6948 (__pow_log_data): Define.
6949 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6950 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6951 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6952 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6953 contraction.
6954 (CFLAGS-e_pow-fma4.c): Likewise.
6955
6956 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6957
6958 Simplify tzfile fstat failure code
6959 [BZ #21716]
6960 * time/tzfile.c (__tzfile_read): Simplify slightly.
6961
6962 Fix tzfile low-memory assertion failure
6963 [BZ #21716]
6964 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6965 when registering time zone abbreviations.
6966
6967 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6968
6969 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6970 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6971 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6972 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6973 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6974 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6975 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6976 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6977 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6978
6979 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6980 __ceil.
6981 (__ceill): Call ceil instead of __ceil.
6982 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6983 __floor.
6984 (__floorl): Call floor instead of __floor.
6985
6986 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6987
6988 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6989 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6990 using MATH_REDIRECT.
6991 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6992 header inclusion.
6993 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6994 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6995 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6996 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6997 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6998 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6999 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7000 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7005 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7006 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7007 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7008 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7009 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7010 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7011 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7012 Remove macro.
7013 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7014 functions instead of __ceil variants.
7015 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7016 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7017 Likewise.
7018 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7019 Likewise.
7020 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7021 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7022 Likewise.
7023 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7024 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7025
7026 [BZ #21286]
7027 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7028 constant.
7029 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7030 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7031 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7032 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7033 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7034 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7035 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7036 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7037 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7038 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7039 (ILL_BADIADDR): Remove constant.
7040 (TRAP_BRANCH): Likewise.
7041 (TRAP_HWBKPT): Likewise.
7042
7043 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7044
7045 [BZ #23656]
7046 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7047 Remove [_MIPS_SIM = _ABIN32] conditional case.
7048 (struct elf_prpsinfo): Likewise.
7049
7050 [BZ #23649]
7051 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7052 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7053 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7054 Likewise.
7055 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7056 elf_prpsinfo): Likewise.
7057 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7058 elf_prpsinfo): Likewise.
7059 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7060 Likewise.
7061
7062 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7063 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7064 using MATH_REDIRECT.
7065 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7066 header inclusion.
7067 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7068 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7069 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7070 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7071 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7072 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7073 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7074 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7075 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7076 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7077 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7078 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7079 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7080 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7081 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7082 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7083 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7084 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7085 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7088 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7089 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7090 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7091 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7092 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7093 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7094 __rint variants.
7095 * math/e_scalbf.c (invalid_fn): Likewise.
7096 * math/e_scalbl.c (invalid_fn): Likewise.
7097 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7098 Likewise.
7099 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7100 Likewise.
7101 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7102 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7103 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7104 Likewise.
7105 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7106 Likewise.
7107 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7108 Likewise.
7109 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7110 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7111
7112 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7113 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7114 New macro.
7115 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7116 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7117 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7118 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7119 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7120 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7121 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7122 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7123 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7124 && !NO_MATH_REDIRECT] (floor): Likewise.
7125 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7126 header inclusion.
7127 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7128 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7129 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7130 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7131 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7132 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7133 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7134 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7136 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7139 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7140 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7141 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7142 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7143 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7144 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7145 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7146 Remove macro.
7147 [_ARCH_PWR5X] (__floorf): Likewise.
7148 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7149 inline function.
7150 [__SSE4_1__] (__floorf): Likewise.
7151 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7152 instead of __floor variants.
7153 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7154 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7155 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7156 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7157 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7158 * math/w_tgamma_compat.c (__tgamma): Likewise.
7159 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7160 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7161 * math/w_tgammal_compat.c (__tgammal): Likewise.
7162 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7163 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7164 Likewise.
7165 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7166 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7167 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7168 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7169 Likewise.
7170 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7171 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7172 Likewise.
7173 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7174 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7175 Likewise.
7176 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7177 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7178 Likewise.
7179 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7180 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7181 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7182 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7183 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7184 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7185
7186 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7187
7188 * elf/Makefile (modules-names-tests): New variable.
7189
7190 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7191
7192 * NEWS: Mention log2 improvements.
7193 * math/Makefile (type-double-routines): Add e_log2_data.
7194 * sysdeps/i386/fpu/e_log2_data.c: New file.
7195 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7196 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7197 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7198 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7199 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7200 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7201
7202 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7203
7204 * NEWS: Mention log improvement.
7205 * math/Makefile (type-double-routines): Add e_log_data.
7206 * sysdeps/i386/fpu/e_log_data.c: New file.
7207 * sysdeps/ia64/fpu/e_log_data.c: New file.
7208 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7209 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7210 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7211 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7212 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7213 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7214
7215 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7216 Xuepeng Guo <xuepeng.guo@intel.com>
7217
7218 [BZ #23606]
7219 * sysdeps/i386/start.S: Include <sysdep.h>
7220 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7221 enabled. Add cfi_undefined (eip).
7222
7223 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7224
7225 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7226 (MOVQ): Likewise.
7227 (EXTRACT_WORDS64): Likewise.
7228 (INSERT_WORDS64): Likewise.
7229 (GET_FLOAT_WORD): Likewise.
7230 (SET_FLOAT_WORD): Likewise.
7231
7232 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7233 argument.
7234 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7235 build, but not for second build if --full-gcc. Use
7236 --enable-languages=all for second build if --full-gcc.
7237 (get_parser): Add --full-gcc option.
7238 (main): Update call to Context.
7239
7240 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7241
7242 [BZ #10797]
7243 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7244 Single Quotation Mark).
7245 (thousands_sep): Likewise.
7246 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7247 * localedata/locales/it_IT (thousands_sep): Use ".".
7248 (grouping): Use "3;3".
7249
7250 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7251
7252 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7253 x86_64 and i686 configs using --enable-obsolete-rpc
7254 --enable-obsolete-nsl.
7255
7256 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7257
7258 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7259
7260 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7261
7262 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7263 Increment size of new_argv by one.
7264
7265 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7266
7267 [BZ #17426]
7268 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7269 * localedata/locales/ar_IN (d_fmt): Likewise.
7270 * localedata/locales/bhb_IN (d_fmt): Likewise.
7271 * localedata/locales/bho_IN (d_fmt): Likewise.
7272 * localedata/locales/bn_BD (d_fmt): Likewise.
7273 * localedata/locales/bn_IN (d_fmt): Likewise.
7274 * localedata/locales/doi_IN (d_fmt): Likewise.
7275 * localedata/locales/gu_IN (d_fmt): Likewise.
7276 * localedata/locales/hi_IN (d_fmt): Likewise.
7277 * localedata/locales/hne_IN (d_fmt): Likewise.
7278 * localedata/locales/kn_IN (d_fmt): Likewise.
7279 * localedata/locales/mag_IN (d_fmt): Likewise.
7280 * localedata/locales/mai_IN (d_fmt): Likewise.
7281 * localedata/locales/mjw_IN (d_fmt): Likewise.
7282 * localedata/locales/ml_IN (d_fmt): Likewise.
7283 * localedata/locales/mni_IN (d_fmt): Likewise.
7284 * localedata/locales/mr_IN (d_fmt): Likewise.
7285 * localedata/locales/pa_IN (d_fmt): Likewise.
7286 * localedata/locales/raj_IN (d_fmt): Likewise.
7287 * localedata/locales/sat_IN (d_fmt): Likewise.
7288 * localedata/locales/sd_IN (d_fmt): Likewise.
7289 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7290 * localedata/locales/ta_IN (d_fmt): Likewise.
7291 * localedata/locales/ta_LK (d_fmt): Likewise.
7292 * localedata/locales/tcy_IN (d_fmt): Likewise.
7293 * localedata/locales/ur_IN (d_fmt): Likewise.
7294
7295 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7296 * localedata/locales/ks_IN (d_fmt): Likewise.
7297 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7298
7299 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7300 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7301 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7302 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7303
7304 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7305
7306 * NEWS: Mention exp and exp2 improvements.
7307 * math/Makefile (libm-support): Remove t_exp.
7308 (type-double-routines): Add math_err and e_exp_data.
7309 * sysdeps/aarch64/libm-test-ulps: Update.
7310 * sysdeps/arm/libm-test-ulps: Update.
7311 * sysdeps/i386/fpu/e_exp_data.c: New file.
7312 * sysdeps/i386/fpu/math_err.c: New file.
7313 * sysdeps/i386/fpu/t_exp.c: Remove.
7314 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7315 * sysdeps/ia64/fpu/math_err.c: New file.
7316 * sysdeps/ia64/fpu/t_exp.c: Remove.
7317 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7318 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7319 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7320 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7321 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7322 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7323 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7324 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7325 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7326 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7327 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7328 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7329 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7330 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7331 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7332 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7333
7334 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7335
7336 * sysdeps/alpha/fpu/math_private.h: Remove.
7337
7338 * sysdeps/generic/math_private.h
7339 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7340 Move this inline function ....
7341 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7342 * include/math.h [!_ISOMAC]: To here....
7343
7344 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7345
7346 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7347 code ....
7348 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7349 * include/fenv.h [!_ISOMAC]: ... to here.
7350 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7351 (feraiseexcept): Likewise.
7352 * math/fromfp.h: Do not include <fenv_private.h>.
7353 * math/s_cexp_template.c: Likewise.
7354 * math/s_csin_template.c: Likewise.
7355 * math/s_csinh_template.c: Likewise.
7356 * math/s_ctan_template.c: Likewise.
7357 * math/s_ctanh_template.c: Likewise.
7358 * math/s_iseqsig_template.c: Likewise.
7359 * math/w_acos_compat.c: Likewise.
7360 * math/w_acosf_compat.c: Likewise.
7361 * math/w_acosl_compat.c: Likewise.
7362 * math/w_asin_compat.c: Likewise.
7363 * math/w_asinf_compat.c: Likewise.
7364 * math/w_asinl_compat.c: Likewise.
7365 * math/w_j0_compat.c: Likewise.
7366 * math/w_j0f_compat.c: Likewise.
7367 * math/w_j0l_compat.c: Likewise.
7368 * math/w_j1_compat.c: Likewise.
7369 * math/w_j1f_compat.c: Likewise.
7370 * math/w_j1l_compat.c: Likewise.
7371 * math/w_jn_compat.c: Likewise.
7372 * math/w_jnf_compat.c: Likewise.
7373 * math/w_log10_compat.c: Likewise.
7374 * math/w_log10f_compat.c: Likewise.
7375 * math/w_log10l_compat.c: Likewise.
7376 * math/w_log2_compat.c: Likewise.
7377 * math/w_log2f_compat.c: Likewise.
7378 * math/w_log2l_compat.c: Likewise.
7379 * math/w_log_compat.c: Likewise.
7380 * math/w_logf_compat.c: Likewise.
7381 * math/w_logl_compat.c: Likewise.
7382 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7383 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7384 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7385 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7386 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7387 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7388 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7389 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7390 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7391 * sysdeps/ieee754/k_standardl.c: Likewise.
7392 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7393 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7394 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7395 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7396 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7397 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7398 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7399 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7400 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7401 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7402 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7403 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7404 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7405 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7406 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7407 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7408 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7409 * math/w_ilogb_template.c: Include <fenv.h> instead of
7410 <fenv_private.h>.
7411 * math/w_llogb_template.c: Likewise.
7412 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7413 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7414
7415 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7416
7417 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7418 * math/fromfp.h: Include <fenv_private.h>.
7419 * math/math-narrow.h: Likewise.
7420 * math/s_cexp_template.c: Likewise.
7421 * math/s_csin_template.c: Likewise.
7422 * math/s_csinh_template.c: Likewise.
7423 * math/s_ctan_template.c: Likewise.
7424 * math/s_ctanh_template.c: Likewise.
7425 * math/s_iseqsig_template.c: Likewise.
7426 * math/w_acos_compat.c: Likewise.
7427 * math/w_acosf_compat.c: Likewise.
7428 * math/w_acosl_compat.c: Likewise.
7429 * math/w_asin_compat.c: Likewise.
7430 * math/w_asinf_compat.c: Likewise.
7431 * math/w_asinl_compat.c: Likewise.
7432 * math/w_ilogb_template.c: Likewise.
7433 * math/w_j0_compat.c: Likewise.
7434 * math/w_j0f_compat.c: Likewise.
7435 * math/w_j0l_compat.c: Likewise.
7436 * math/w_j1_compat.c: Likewise.
7437 * math/w_j1f_compat.c: Likewise.
7438 * math/w_j1l_compat.c: Likewise.
7439 * math/w_jn_compat.c: Likewise.
7440 * math/w_jnf_compat.c: Likewise.
7441 * math/w_llogb_template.c: Likewise.
7442 * math/w_log10_compat.c: Likewise.
7443 * math/w_log10f_compat.c: Likewise.
7444 * math/w_log10l_compat.c: Likewise.
7445 * math/w_log2_compat.c: Likewise.
7446 * math/w_log2f_compat.c: Likewise.
7447 * math/w_log2l_compat.c: Likewise.
7448 * math/w_log_compat.c: Likewise.
7449 * math/w_logf_compat.c: Likewise.
7450 * math/w_logl_compat.c: Likewise.
7451 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7452 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7453 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7454 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7455 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7456 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7457 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7458 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7459 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7460 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7461 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7462 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7463 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7464 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7465 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7466 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7467 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7468 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7469 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7470 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7471 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7472 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7473 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7474 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7475 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7476 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7477 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7478 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7479 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7480 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7481 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7482 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7483 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7484 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7485 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7486 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7487 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7488 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7489 * sysdeps/ieee754/k_standardl.c: Likewise.
7490 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7491 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7492 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7493 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7494 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7495 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7496 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7497 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7498 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7499 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7500 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7501 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7502 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7503 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7504 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7505 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7506 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7507 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7508 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7509 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7510 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7511 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7512 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7513 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7514 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7515 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7516 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7517 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7518 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7519 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7520 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7521 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7522 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7523 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7524 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7525 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7526 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7527 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7528 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7529 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7530 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7531 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7532 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7533 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7534 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7535 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7536 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7537 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7538 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7539 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7540 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7541 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7542 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7543 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7544 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7545 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7546 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7547 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7548 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7549 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7550 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7551 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7552 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7553 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7554 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7555 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7556 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7557 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7558 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7559 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7560 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7561
7562 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7563
7564 [BZ #20271]
7565 * include/stdio.h (__libc_fatal): Mention newline in comment.
7566 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7567 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7568 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7569 * nss/nsswitch.c (__nss_next2): Likewise.
7570 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7571 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7572 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7573 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7574 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7575 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7576 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7577 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7578 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7579 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7580 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7581 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7582 (__netlink_assert_response): Likewise.
7583
7584 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7585
7586 * conform/glibcconform.py: New file.
7587 * conform/list-header-symbols.py: Likewise.
7588 * conform/list-header-symbols.pl: Remove.
7589 * conform/Makefile (tests-special): Only add linknamespace tests
7590 if [PYTHON].
7591 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7592
7593 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7594
7595 [BZ #23597]
7596 * support/Makefile (libsupport-routines): Add
7597 support_copy_file_range and xcopy_file_range.
7598 * support/support.h: Include <sys/types.h>.
7599 (support_copy_file_range): New prototype.
7600 * support/support_copy_file_range.c: New file. Copied and
7601 modified from io/copy_file_range-compat.c.
7602 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7603 instead of copy_file_range.
7604 * support/xcopy_file_range.c: New file.
7605 * support/xunistd.h (xcopy_file_range): New prototype.
7606
7607 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7608
7609 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7610 xpthread_create and xpthread_join.
7611
7612 2018-08-30 Florian Weimer <fweimer@redhat.com>
7613
7614 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7615
7616 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7617
7618 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7619 if malloc fails.
7620
7621 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7622
7623 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7624 and minus_oflow as non-finite.
7625
7626 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7627
7628 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7629 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7630 moved to fenv_private.h except for ...
7631 (TOINT_INTRINSICS): Kept in math_private.h.
7632 (roundtoint): Likewise.
7633 (converttoint): Likewise.
7634 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7635 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7636 * sysdeps/arm/math_private.h: Remove.
7637 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7638 ....
7639 * sysdeps/generic/math_private.h: ... this file. Include
7640 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7641 Include <fenv_private.h>. Remove functions and macros moved to
7642 fenv_private.h.
7643 * sysdeps/i386/fpu/math_private.h: Remove.
7644 * sysdeps/mips/math_private.h: Move to ....
7645 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7646 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7647 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7648 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7649 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7650 * sysdeps/powerpc/fpu/math_private.h: Do not include
7651 <fenv_private.h>.
7652 * sysdeps/riscv/rvf/math_private.h: Move to ....
7653 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7654 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7655 <fenv_private.h>.
7656 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7657 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7658 * sysdeps/sparc/fpu/math_private.h: Remove.
7659 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7660 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7661 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7662 <fenv_private.h>.
7663 * sysdeps/x86_64/fpu/math_private.h: Do not include
7664 <sysdeps/i386/fpu/fenv_private.h>.
7665
7666 2018-08-28 Florian Weimer <fweimer@redhat.com>
7667
7668 [BZ #23578]
7669 * posix/tst-regcomp-truncated.c: New file.
7670 * posix/Makefile (tests): Add it.
7671 (tst-regcomp-truncated.out): Depend on generated locales.
7672
7673 2018-08-28 Florian Weimer <fweimer@redhat.com>
7674
7675 * support/test-container.c (main): Treat unshare failure with
7676 EPERM as an unsupported test.
7677
7678 2018-08-28 Florian Weimer <fweimer@redhat.com>
7679
7680 [BZ #23520]
7681 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7682 * nscd/netgroupcache.c
7683 (addgetnetgrentX): Add tofreep parameter. Do not free
7684 heap-allocated buffer.
7685 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7686 (addgetnetgrentX_ignore): New function.
7687 (addgetnetgrent): Call it.
7688 (readdgetnetgrent): Likewise.
7689
7690 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7691
7692 * string/memmem.c: Use memcmp for first match.
7693
7694 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7695
7696 [BZ #17426]
7697 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7698
7699 2018-08-27 DJ Delorie <dj@redhat.com>
7700
7701 * support/Makefile (others): Don't list programs explicitly as a
7702 dependency of "others".
7703
7704 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7705
7706 * sysdeps/generic/math-tests-trap-force.h: New file.
7707 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7708 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7709 * sysdeps/powerpc/math-tests.h: Remove file.
7710 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7711
7712 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7713 Torvald Riegel <triegel@redhat.com>
7714
7715 [BZ #23538]
7716 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7717 Update r to include the set wake-request flag if waiters are
7718 remaining after spinning.
7719
7720 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7721
7722 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7723
7724 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7725
7726 [BZ #23578]
7727 regex: fix uninitialized memory access
7728 I introduced this bug into gnulib in commit
7729 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7730 eventually it was merged into glibc. The bug was found by
7731 project-repo <bugs@feusi.co> and reported here:
7732 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7733 Diagnosis and draft fix reported by Assaf Gordon here:
7734 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7735 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7736 * posix/regex_internal.c (build_wcs_upper_buffer):
7737 Fix bug when mbrtowc returns 0.
7738
7739 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7740
7741 * po/be.po: Update translation.
7742
7743 2018-08-24 DJ Delorie <dj@delorie.com>
7744
7745 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7746 $(libunwind).
7747
7748 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7749
7750 [BZ #23400]
7751 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7752 create temporary files in source tree.
7753
7754 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7755
7756 * sysdeps/generic/math-tests-trap.h: New file.
7757 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7758 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7759 * sysdeps/aarch64/math-tests.h: Remove file.
7760 * sysdeps/arm/math-tests.h: Likewise.
7761 * sysdeps/riscv/math-tests.h: Likewise.
7762 * sysdeps/aarch64/math-tests-trap.h: New file.
7763 * sysdeps/arm/math-tests-trap.h: Likewise.
7764 * sysdeps/riscv/math-tests-trap.h: Likewise.
7765
7766 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7767
7768 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7769 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7770 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7771 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7772 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7773 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7774 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7775 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7776 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7777 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7778 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7779 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7780 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7781 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7782 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7783 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7784 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7785 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7786
7787 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7788
7789 * sysdeps/generic/math-tests-exceptions.h: New file.
7790 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7791 (EXCEPTION_TESTS_float): Do not define here.
7792 (EXCEPTION_TESTS_double): Likewise.
7793 (EXCEPTION_TESTS_long_double): Likewise.
7794 (EXCEPTION_TESTS_float128): Likewise.
7795 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7796 Likewise.
7797 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7798 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7799 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7800 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7801 * sysdeps/mips/math-tests.h: Likewise.
7802 * sysdeps/nios2/math-tests.h: Likewise.
7803 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7804 (EXCEPTION_TESTS_float): Do not define here.
7805 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7806 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7807 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7808
7809 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7810
7811 * NEWS: Move optimized sinf entry to 2.29.
7812
7813 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7814
7815 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7816
7817 2018-08-22 DJ Delorie <dj@redhat.com>
7818
7819 * Makefile (testroot.pristine): New rules to initialize the
7820 test-in-container "testroot".
7821 * Makerules (all-testsuite): Add tests-container.
7822 * Rules (tests-expected): Add tests-container.
7823 (binaries-all-tests): Likewise.
7824 (tests-container): New, run these tests in the testroot container.
7825 * support/Makefile (others): Add *-container, support_paths.c,
7826 xmkdirp, and links-dso-program.
7827 * support/links-dso-program-c.c: New.
7828 * support/links-dso-program.cc: New.
7829 * support/test-container.c: New.
7830 * support/shell-container.c: New.
7831 * support/echo-container.c: New.
7832 * support/true-container.c: New.
7833 * support/xmkdirp.c: New.
7834 * support/xsymlink.c: New.
7835 * support/support_paths.c: New.
7836 * support/support.h: Add support paths prototypes.
7837 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7838
7839 * nss/tst-nss-test3.c: Convert to test-in-container.
7840 * nss/tst-nss-test3.root/: New.
7841
7842 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7843
7844 regex: port Gnulib code to z/OS POSIX environment
7845 Problem reported by Arnold Robbins in:
7846 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7847 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7848 Undef.
7849
7850 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7851
7852 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7853 (ROUNDING_TESTS_double): Remove.
7854 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7855 (ROUNDING_TESTS_double): Remove.
7856 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7857 (ROUNDING_TESTS_double): Remove.
7858 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7859 (ROUNDING_TESTS_float): Remove.
7860 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7861 (ROUNDING_TESTS_float): Remove.
7862 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7863 (ROUNDING_TESTS_float): Remove.
7864 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7865 !TEST_MATHVEC here.
7866 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7867 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7868
7869 * sysdeps/generic/math-tests-rounding.h: New file.
7870 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7871 (ROUNDING_TESTS_float): Do not define here.
7872 (ROUNDING_TESTS_double): Likewise.
7873 (ROUNDING_TESTS_long_double): Likewise.
7874 (ROUNDING_TESTS_float128): Likewise.
7875 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7876 (ROUNDING_TESTS_double): Undefine before defining.
7877 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7878 (ROUNDING_TESTS_double): Undefine before defining.
7879 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7880 (ROUNDING_TESTS_double): Undefine before defining.
7881 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7882 (ROUNDING_TESTS_float): Undefine before defining.
7883 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7884 (ROUNDING_TESTS_float): Undefine before defining.
7885 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7886 (ROUNDING_TESTS_float): Undefine before defining.
7887 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7888 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7889 not define here.
7890 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7891 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7892 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7893 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7894 (ROUNDING_TESTS_float): Do not define here.
7895 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7896 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7897 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7898 (ROUNDING_TESTS_float): Likewise.
7899 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7900 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7901 * sysdeps/mips/math-tests.h [__mips_soft_float]
7902 (ROUNDING_TESTS_float): Likewise.
7903 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7904 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7905 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7906 (ROUNDING_TESTS_double): Likewise.
7907 (ROUNDING_TESTS_long_double): Likewise.
7908
7909 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7910
7911 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7912 (PF_XDP): New macro.
7913 (AF_XDP): New macro.
7914 (SOL_XDP): New macro.
7915
7916 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7917
7918 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7919 (TCP_INQ): Likewise.
7920 (TCP_CM_INQ): Likewise.
7921 (TCP_REPAIR_ON): Likewise.
7922 (TCP_REPAIR_OFF): Likewise.
7923 (TCP_REPAIR_OFF_NO_WP): Likewise.
7924 (struct tcp_zerocopy_receive): New type.
7925
7926 2018-08-21 Florian Weimer <fweimer@redhat.com>
7927
7928 * support/support.h (support_descriptor_supports_holes): Declare.
7929 * support/Makefile (libsupport-routines): Add
7930 support_descriptor_supports_holes.
7931 * support/support_descriptor_supports_holes.c: New file.
7932 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7933 and stop testing if holes are not supported.
7934 * io/test-lfs.c (do_prepare): Likewise.
7935 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7936 Likewise.
7937 * timezone/tst-tzset.c (create_tz_file): Likewise.
7938 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7939 variable.
7940 (do_prepare): Set it.
7941 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7942
7943 2018-08-21 Florian Weimer <fweimer@redhat.com>
7944
7945 [BZ #17248]
7946 * Makeconfig (+cflags): Do not sort (and deduplicate).
7947
7948 2018-08-21 Florian Weimer <fweimer@redhat.com>
7949
7950 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7951 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7952
7953 2018-08-20 Florian Weimer <fweimer@redhat.com>
7954
7955 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7956 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7957
7958 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7959
7960 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7961 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7962 and ssi_arch members.
7963
7964 * elf/elf.c (NT_VMCOREDD): New macro.
7965 (AT_MINSIGSTKSZ): Likewise.
7966
7967 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7968
7969 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7970 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7971 s_cosf-ppc64 and s_cosf-power8.
7972 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7973 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7974 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7975 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7982 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7983 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7984
7985 2018-08-17 Florian Weimer <fweimer@redhat.com>
7986
7987 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7988
7989 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7990
7991 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7992
7993 2018-08-16 Florian Weimer <fweimer@redhat.com>
7994
7995 * configure.ac: Add --with-nonshared-cflags option.
7996 * config.make.in (extra-nonshared-cflags): Set variable.
7997 * Makeconfig (CFLAGS-.oS): Use it.
7998 * manual/install.texi (Configuring and compiling): Document
7999 --with-nonshared-cflags.
8000 * configure: Regenerate.
8001 * INSTALL: Likewise.
8002
8003 2018-08-16 Florian Weimer <fweimer@redhat.com>
8004
8005 * Makeconfig (ASFLAGS): Always append required assembler flags.
8006
8007 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8008
8009 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8010 (malloc_consolidate): Likewise.
8011
8012 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8013
8014 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8015
8016 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8017
8018 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8019 every strlen call.
8020
8021 * benchtests/bench-strlen.c: Print performance numbers in json.
8022
8023 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8024
8025 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8026 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8027 only for little endian.
8028 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8029 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8030 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8031 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8032 Add check for little endian.
8033 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8034 (__strcmp_power9): Add check for little endian.
8035 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8036 Add check for little endian.
8037 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8038 (__strncmp_power9): Add check for little endian.
8039 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8040 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8041 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8042 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8043 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8044
8045 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8046
8047 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8048 [!STRLEN](STRLEN): Set to __strlen.
8049 * sysdeps/aarch64/multiarch/strlen.c: New file.
8050 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8051 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8052 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8053 (__libc_ifunc_impl_list): Add strlen.
8054 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8055 strlen_generic and strlen_asimd.
8056
8057 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8058
8059 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8060 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8061 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8062
8063 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8064
8065 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8066
8067 2018-08-14 Florian Weimer <fweimer@redhat.com>
8068
8069 [BZ #23519]
8070 * include/stdio.h (__vfxprintf): Declare.
8071 * stdio-common/fxprintf.c (__vfxprintf): New function.
8072 (__fxprintf): Call it.
8073 * misc/err.c (convert_and_print): Remove function.
8074 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8075 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8076 * misc/Makefile (tests): Add tst-warn-wide.
8077 * misc/tst-warn-wide.c: New file.
8078
8079 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8080 Szabolcs Nagy <szabolcs.nagy@arm.com>
8081
8082 * NEWS: Mention sinf, cosf, sincosf.
8083 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8084 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8085 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8086 constants rather than including generic sincosf.h.
8087 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8088 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8089 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8090 (reduced_cos): Remove.
8091 (sinf_poly): New function.
8092 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8093
8094 2018-08-14 Florian Weimer <fweimer@redhat.com>
8095
8096 [BZ #23521]
8097 [BZ #23522]
8098 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8099 processing, bail out if no room, and close the stream before
8100 returning ERANGE.
8101 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8102 (tst-nss-files-alias-leak): Link with libdl.
8103 (tst-nss-files-alias-leak.out): Depend on nss_files.
8104
8105 * nss/tst-nss-files-alias-leak.c: New file.
8106
8107 2018-08-14 Florian Weimer <fweimer@redhat.com>
8108
8109 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8110 server_user, stat_user.
8111
8112 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8113
8114 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8115 version to 4.18.
8116 (io_pgetevents): New syscall.
8117 (rseq): Likewise.
8118
8119 * manual/install.texi (Configuring and compiling): Do not list
8120 tools used for testing pretty printers here.
8121 (Tools for Compilation): List Python, PExpect and GDB here.
8122 Update descriptions of uses of Perl and Python.
8123 * INSTALL: Regenerate.
8124
8125 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8126 version to 4.18.
8127
8128 2018-08-13 Florian Weimer <fweimer@redhat.com>
8129
8130 * misc/error.c (error): Add missing va_end call.
8131 (error_at_line): Likewise.
8132
8133 2018-08-13 Florian Weimer <fweimer@redhat.com>
8134
8135 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8136
8137 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8138
8139 * benchtests/scripts/benchout.schema.json (properties): Add
8140 new properties.
8141
8142 * benchtests/bench-skeleton.c (main): Add duration and
8143 iterations attributes.
8144
8145 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8146
8147 regex: Gnulib unibyte RRI uses bytes not chars
8148 Adjust the non-glibc code to agree with what Gawk needs for
8149 rational range interpretation (RRI) for regular expression ranges.
8150 In unibyte locales, Gawk wants ranges to use the underlying byte
8151 rather than the character code point. This change does not affect
8152 glibc proper.
8153 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8154 In unibyte locales, use the byte value rather than
8155 running it through btowc.
8156
8157 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8158
8159 * sysdeps/generic/math-tests-snan.h: New file.
8160 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8161 (SNAN_TESTS_float): Do not define here.
8162 (SNAN_TESTS_double): Likewise.
8163 (SNAN_TESTS_long_double): Likewise.
8164 (SNAN_TESTS_float128): Likewise.
8165 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8166 * sysdeps/i386/fpu/math-tests.h: Remove file.
8167 * sysdeps/ia64/math-tests-snan.h: New file.
8168 * sysdeps/ia64/math-tests.h: Remove file.
8169 * sysdeps/x86/math-tests.h: Likewise.
8170 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8171
8172 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8173 Szabolcs Nagy <szabolcs.nagy@arm.com>
8174
8175 * math/Makefile: Add s_sincosf_data.c.
8176 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8177 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8178 (sincosf_poly): Likewise.
8179 (reduce_small): Likewise.
8180 (reduce_large): Likewise.
8181 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8182 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8183 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8184 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8185
8186 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8187 Szabolcs Nagy <szabolcs.nagy@arm.com>
8188
8189 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8190 (converttoint): Use lround.
8191 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8192 document the semantics when TOINT_INTRINSICS is set.
8193 (converttoint): Likewise.
8194 (TOINT_RINT): Remove.
8195 (TOINT_SHIFT): Remove.
8196 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8197 path.
8198
8199 2018-08-10 Florian Weimer <fweimer@redhat.com>
8200
8201 [BZ #23497]
8202 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8203 function.
8204 (__old_getdents64): Use getdents64. Convert entries without
8205 moving them.
8206 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8207 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8208 tst-readdir64-compat.
8209
8210 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8211
8212 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8213 Fix unwind.
8214
8215 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8216
8217 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8218 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8219 code to s390x-mcount.h and #include it.
8220 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8221 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8222 (__fentry__): Add.
8223
8224 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8225
8226 * stdlib/Versions: Remove __fentry__.
8227 * sysdeps/i386/Versions: Add __fentry__.
8228 * sysdeps/x86_64/Versions: Add __fentry__.
8229
8230 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8231
8232 * sysdeps/s390/Makefile: Register the new tests.
8233 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8234 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8235 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8236 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8237 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8238 * sysdeps/s390/tst-dl-runtime.c: New file.
8239
8240 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8241
8242 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8243 Do not clobber R0.
8244
8245 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8246
8247 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8248 Do not clobber R0.
8249
8250 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8251
8252 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8253 Do not clobber R0.
8254
8255 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8256
8257 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8258 Do not clobber R0.
8259
8260 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8261
8262 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8263 Use symbolic offsets for stack variables.
8264
8265 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8266
8267 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8268 Use symbolic offsets for stack variables.
8269
8270 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8271
8272 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8273 Use symbolic offsets for stack variables.
8274
8275 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8276
8277 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8278 Use symbolic offsets for stack variables.
8279
8280 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8281
8282 * math/gen-libm-test.py: New file.
8283 * math/gen-libm-test.pl: Remove.
8284 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8285 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8286 gen-libm-test.pl.
8287 ($(libm-test-c-noauto-obj)): Likewise.
8288 ($(libm-test-c-auto-obj)): Likewise.
8289 ($(libm-test-c-narrow-obj)): Likewise.
8290 (regen-ulps): Likewise.
8291 * math/README.libm-test: Update references to gen-libm-test.pl.
8292 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8293 referencing gen-libm-test.pl.
8294 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8295 * math/libm-test-support.c: Likewise.
8296 * math/libm-test-support.h: Likewise.
8297 * sysdeps/generic/libm-test-ulps: Likewise.
8298
8299 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8300
8301 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8302 Fix value.
8303
8304 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8305
8306 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8307 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8308
8309 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8310
8311 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8312 symbols.
8313 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8314 __pthread_setspecific): Add hidden proto.
8315 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8316 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8317
8318 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8319
8320 * benchtests/bench-string.h (buf1_size, buf2_size): New
8321 variables.
8322 (init_sizes): New function.
8323 (test_init): Use it.
8324 (alloc_buf, exit_error): New functions.
8325 (alloc_bufs): Use ALLOC_BUF.
8326 (realloc_bufs): Remove.
8327 * benchtests/bench-memcmp.c (do_test): Adjust.
8328 * benchtests/bench-memset-large.c (do_test): Likewise.
8329 * benchtests/bench-memset-walk.c (do_test): Likewise.
8330 * benchtests/bench-memset.c (do_test): Likewise.
8331 * benchtests/bench-strncmp.c (do_test): Likewise.
8332
8333 2018-08-06 Andreas Schwab <schwab@suse.de>
8334
8335 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8336 of CONST_THREAD_AREA.
8337
8338 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8339
8340 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8341 (STATE_SAVE_MASK): Likewise.
8342 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8343 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8344 (STATE_SAVE_MASK): Likewise.
8345 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8346 instead of <cpu-features.h>.
8347
8348 2018-08-03 DJ Delorie <dj@redhat.com>
8349
8350 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8351 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8352
8353 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8354
8355 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8356
8357 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8358 after TEST_* calls.
8359 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8360 * math/libm-test-logb.inc (logb_test_data): Likewise.
8361
8362 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8363
8364 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8365 * string/strstr.c (AVAILABLE): Likewise.
8366
8367 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8368
8369 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8370 <init-arch.h>.
8371 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8372 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8373 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8374
8375 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8376
8377 * po/be.po: Update translation.
8378
8379 * po/be.po: Update translation.
8380
8381 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8382
8383 * sysdeps/x86/cpu-features-offsets.sym
8384 (rtld_global_ro_offsetof): Removed.
8385 (CPU_FEATURES_SIZE): Likewise.
8386 (CPUID_OFFSET): Likewise.
8387 (CPUID_SIZE): Likewise.
8388 (CPUID_EAX_OFFSET): Likewise.
8389 (CPUID_EBX_OFFSET): Likewise.
8390 (CPUID_ECX_OFFSET): Likewise.
8391 (CPUID_EDX_OFFSET): Likewise.
8392 (FAMILY_OFFSET): Likewise.
8393 (MODEL_OFFSET): Likewise.
8394 (FEATURE_OFFSET): Likewise.
8395 (FEATURE_SIZ): Likewise.
8396 (COMMON_CPUID_INDEX_1): Likewise.
8397 (COMMON_CPUID_INDEX_7): Likewise.
8398 (FEATURE_INDEX_1): Likewise.
8399 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8400
8401 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8402
8403 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8404 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8405 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8406 (install-locales): Depend on install-locale-archive.
8407 (install-locale-archive): Define.
8408 (install-locale-files): Define.
8409 (build-one-locale): Define macro.
8410 * manual/install.texi (Running make install): Document.
8411 * manual/INSTALL: Regenerate.
8412
8413 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8414
8415 * benchtests/scripts/compare_strings.py: Import traceback.
8416 (parse_file): Pretty-print error.
8417
8418 * NEWS: Mention the change.
8419 * elf/dl-tunables.list: Rename tune namespace to cpu.
8420 * sysdeps/powerpc/dl-tunables.list: Likewise.
8421 * sysdeps/x86/dl-tunables.list: Likewise.
8422 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8423 cpu.name.
8424 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8425 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8426 * manual/README.tunables: Likewise.
8427 * manual/tunables.texi: Likewise.
8428 * sysdeps/powerpc/cpu-features.c: Likewise.
8429 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8430 (init_cpu_features): Likewise.
8431 * sysdeps/x86/cpu-features.c: Likewise.
8432 * sysdeps/x86/cpu-features.h: Likewise.
8433 * sysdeps/x86/cpu-tunables.c: Likewise.
8434 * sysdeps/x86_64/Makefile: Likewise.
8435 * sysdeps/x86/dl-cet.c: Likewise.
8436
8437 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8438
8439 [BZ #23479]
8440 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8441 [__mips_hard_float].
8442 (FE_UNDERFLOW): Likewise.
8443 (FE_OVERFLOW): Likewise.
8444 (FE_DIVBYZERO): Likewise.
8445 (FE_INVALID): Likewise.
8446 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8447 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8448 (FE_UPWARD): Likewise.
8449 (FE_DOWNWARD): Likewise.
8450 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8451 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8452 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8453 [__mips_hard_float].
8454 (FP_ROUNDMODE): Likewise.
8455 (FP_RND_NEAREST): Likewise.
8456 (FP_RND_ZERO): Likewise.
8457 (FP_RND_PINF): Likewise.
8458 (FP_RND_MINF): Likewise.
8459 (FP_EX_INVALID): Likewise.
8460 (FP_EX_OVERFLOW): Likewise.
8461 (FP_EX_UNDERFLOW): Likewise.
8462 (FP_EX_DIVZERO): Likewise.
8463 (FP_EX_INEXACT): Likewise.
8464 (FP_INIT_ROUNDMODE): Likewise.
8465 * sysdeps/mips/nofpu/fesetenv.c: New file.
8466 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8467
8468 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8469
8470 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8471 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8472 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8473 conditional on [FE_UPWARD].
8474
8475 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8476
8477 regex: fix memory leak in Gnulib
8478 Problem and fix reported by Assaf Gordon in:
8479 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8480 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8481 range_ends members too, as they are defined in 'struct
8482 re_charset_t' even if not _LIBC. This affects only Gnulib.
8483
8484 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8485
8486 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8487 ...
8488 (get_common_indices): This.
8489 (init_cpu_features): Updated.
8490
8491 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8492
8493 * sysdeps/generic/math-tests-snan-payload.h: New file.
8494 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8495 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8496 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8497 * sysdeps/generic/math-tests.h: Include
8498 <math-tests-snan-payload.h>.
8499 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8500 * sysdeps/hppa/math-tests.h: Remove file.
8501 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8502 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8503 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8504 Likewise.
8505
8506 * sysdeps/generic/math-tests-snan-cast.h: New file.
8507 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8508 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8509 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8510 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8511
8512 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8513
8514 * version.h (RELEASE): Set to "development".
8515 (VERSION): Set to "2.28.9000".
8516 * NEWS (2.29): New section.
8517
8518 * version.h (RELEASE): Set to "stable".
8519 (VERSION): Set to "2.28".
8520 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8521 * NEWS: Add the list of bugs fixed in 2.28.
8522
8523 * po/ca.po: Update to latest version.
8524 * po/cs.po: Likewise
8525 * po/da.po: Likewise
8526 * po/el.po: Likewise
8527 * po/eo.po: Likewise
8528 * po/es.po: Likewise
8529 * po/fi.po: Likewise
8530 * po/fr.po: Likewise
8531 * po/gl.po: Likewise
8532 * po/hu.po: Likewise
8533 * po/ia.po: Likewise
8534 * po/id.po: Likewise
8535 * po/it.po: Likewise
8536 * po/ja.po: Likewise
8537 * po/ko.po: Likewise
8538 * po/lt.po: Likewise
8539 * po/nb.po: Likewise
8540 * po/nl.po: Likewise
8541 * po/pt_BR.po: Likewise
8542 * po/ru.po: Likewise
8543 * po/rw.po: Likewise
8544 * po/sk.po: Likewise
8545 * po/sl.po: Likewise
8546 * po/tr.po: Likewise
8547 * po/zh_CN.po: Likewise
8548 * po/zh_TW.po: Likewise
8549
8550 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8551
8552 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8553 initialization...
8554 (init): ... before initializing libpthread.
8555
8556 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8557 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8558 (__mach_setup_tls): ... new function.
8559 (mach_setup_tls): New alias.
8560 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8561 __mach_setup_thread.
8562 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8563 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8564 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8565 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8566
8567 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8568
8569 * manual/install.texi: Update versions.
8570 * INSTALL: Regenerate.
8571
8572 * manual/contrib.texi (Contributors): Update contributions.
8573
8574 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8575
8576 * po/be.po: Update translations.
8577
8578 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8579
8580 * sysdeps/sh/libm-test-ulps: Update.
8581
8582 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8583
8584 * po/bg.po: Update translations.
8585 * po/de.po: Likewise.
8586 * po/hr.po: Likewise.
8587 * po/pt_BR.po: Likewise.
8588 * po/sv.po: Likewise.
8589 * po/vi.po: Likewise.
8590
8591 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8592
8593 [BZ #23467]
8594 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8595 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8596 (CFLAGS-tst-cet-property-1.o): New.
8597 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8598 ($(objpfx)tst-cet-property-2): Likewise.
8599 ($(objpfx)tst-cet-property-2.out): Likewise.
8600 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8601 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8602 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8603 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8604 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8605
8606 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8607
8608 [BZ #23458]
8609 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8610
8611 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8612
8613 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8614 __sbrk): Do not set attribute_hidden.
8615 * sysdeps/mach/hurd/not-errno.h: New file.
8616 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8617 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8618
8619 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8620
8621 * po/uk.po: Update translations.
8622 * po/cs.po: Likewise.
8623 * po/pl.po: Likewise.
8624
8625 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8626
8627 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8628 parse beyond the note end.
8629
8630 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8631
8632 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8633 kernel does not support OFD locks.
8634 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8635
8636 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8637
8638 * sysdeps/mach/hurd/Versions (libc): Make __access and
8639 __access_noerrno external so they can override the ld symbols.
8640 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8641 __writev, __open64, __access_noerrno extern so they can be overrided.
8642 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8643 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8644
8645 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8646
8647 * po/libc.pot: Regenerate.
8648
8649 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8650
8651 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8652
8653 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8654
8655 [BZ #23459]
8656 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8657 function.
8658 (init_cpu_features): Call get_extended_indices for both Intel
8659 and AMD CPUs.
8660 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8661 Remove "for AMD" comment.
8662
8663 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8664
8665 [BZ # 23456]
8666 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8667 COMMON_CPUID_INDEX_80000001.
8668
8669 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8670
8671 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8672 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8673
8674 2018-07-26 Florian Weimer <fweimer@redhat.com>
8675
8676 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8677 aliases for symbols not in the implementation namespace.
8678
8679 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8680
8681 [BZ #23393]
8682 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8683 lowercase in LATIN script.
8684 * localedata/Makefile (test-input): Add en_US.UTF-8.
8685 * localedata/en_US.UTF-8.in: New file.
8686 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8687 and restore old tests.
8688 * posix/tst-regexloc.c (do_test): Add back range expression test.
8689
8690 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8691
8692 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8693
8694 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8695
8696 * nptl/threads.h: Move to ...
8697 * sysdeps/nptl/threads.h: ... here.
8698 * sysdeps/hurd/stdc-predef.h: New file.
8699
8700 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8701
8702 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8703 tst-cet-setcontext-1 if CET is enabled.
8704 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8705 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8706
8707 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8708
8709 * include/threads.h: Move to ...
8710 * sysdeps/nptl/threads.h: ... here.
8711 * sysdeps/htl/threads.h: New file.
8712 * conform/Makefile (linknamespace-libs-ISO11): Use
8713 static-thread-library instead of linking libpthread.
8714 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8715
8716 2018-07-25 Florian Weimer <fweimer@redhat.com>
8717
8718 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8719 nanoseconds into seconds.
8720 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8721 (do_test): Likewise.
8722 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8723 (do_test): Likewise. Avoid nanosecond overflow and spurious
8724 timeouts due to system load.
8725 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8726 (child_wait): Increment it.
8727 (do_test): Wait as long as necessary until all expected threads
8728 have arrived.
8729
8730 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8731 H.J. Lu <hongjiu.lu@intel.com>
8732
8733 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8734 __ssp.
8735 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8736 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8737 (__push___start_context): New.
8738 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8739 <asm/prctl.h>.
8740 (__getcontext): Record the current shadow stack base. Save the
8741 caller's shadow stack pointer and base.
8742 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8743 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8744 (__push___start_context): New prototype.
8745 (__makecontext): Call __push___start_context to allocate a new
8746 shadow stack, push __start_context onto the new stack as well
8747 as the new shadow stack.
8748 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8749 <asm/prctl.h>.
8750 (__setcontext): Restore the target shadow stack.
8751 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8752 <asm/prctl.h>.
8753 (__swapcontext): Record the current shadow stack base. Save
8754 the caller's shadow stack pointer and base. Restore the target
8755 shadow stack.
8756 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8757 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8758 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8759
8760 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8763 tst-setcontext8 and tst-setcontext9.
8764 * stdlib/tst-setcontext6.c: New file.
8765 * stdlib/tst-setcontext7.c: Likewise.
8766 * stdlib/tst-setcontext8.c: Likewise.
8767 * stdlib/tst-setcontext9.c: Likewise.
8768
8769 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8770
8771 * stdlib/Makefile ((tests): Add tst-setcontext5.
8772 * stdlib/tst-setcontext5.c: New file.
8773
8774 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8775
8776 * stdlib/Makefile (tests): Add tst-setcontext4.
8777 * stdlib/tst-setcontext4.c: New file.
8778
8779 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8780
8781 * stdlib/Makefile (tests): Add tst-swapcontext1.
8782 * stdlib/tst-swapcontext1.c: New test.
8783
8784 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8785
8786 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8787 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8788 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8789 and tst-cet-legacy-4c.
8790 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8791 and tst-cet-legacy-mod-4.
8792 (CFLAGS-tst-cet-legacy-2.c): New.
8793 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8794 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8795 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8796 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8797 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8798 ($(objpfx)tst-cet-legacy-1): Likewise.
8799 ($(objpfx)tst-cet-legacy-2): Likewise.
8800 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8801 ($(objpfx)tst-cet-legacy-2a): Likewise.
8802 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8803 ($(objpfx)tst-cet-legacy-4): Likewise.
8804 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8805 ($(objpfx)tst-cet-legacy-4a): Likewise.
8806 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8807 (tst-cet-legacy-4a-ENV): Likewise.
8808 ($(objpfx)tst-cet-legacy-4b): Likewise.
8809 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8810 (tst-cet-legacy-4b-ENV): Likewise.
8811 ($(objpfx)tst-cet-legacy-4c): Likewise.
8812 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8813 (tst-cet-legacy-4c-ENV): Likewise.
8814 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8815 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8816 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8817 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8818 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8819 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8820 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8821 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8822 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8823 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8824 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8825
8826 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8827
8828 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8829 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8830 with ssp_base.
8831 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8832 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8833 with ssp_base.
8834
8835 2018-07-25 Andreas Schwab <schwab@suse.de>
8836
8837 [BZ #23442]
8838 * locale/weightwc.h (findidx): Handle the case where usrc is a
8839 prefix of cp but one character too short.
8840
8841 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8842
8843 * NEWS: Add ISO C threads addition.
8844
8845 2018-07-24 Florian Weimer <fweimer@redhat.com>
8846
8847 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8848 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8849 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8850 4.13.
8851
8852 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8853
8854 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8855 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8856 <sys/prctl.h> and <asm/prctl.h>.
8857 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8858 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8859 and <asm/prctl.h>.
8860 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8861 ARCH_CET_LEGACY_BITMAP.
8862 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8863 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8864 * sysdeps/x86/libc-start.c: Include <startup.h>.
8865
8866 2018-07-24 Florian Weimer <fweimer@redhat.com>
8867
8868 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8869 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8870
8871 2018-07-24 Rical Jasan <rj@2c3t.io>
8872 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8873 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8874
8875 [BZ #14092]
8876 * manual/debug.texi: Update adjacent chapter name.
8877 * manual/probes.texi: Likewise.
8878 * manual/threads.texi (ISO C Threads): New section.
8879 (POSIX Threads): Convert to a section.
8880
8881 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8882 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8883
8884 [BZ# 14092]
8885 * nptl/Makefile (tests): Add new test files.
8886 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8887 * nptl/tst-cnd-basic.c: Likewise.
8888 * nptl/tst-cnd-broadcast.c: Likewise.
8889 * nptl/tst-cnd-timedwait.c: Likewise.
8890 * nptl/tst-mtx-basic.c: Likewise.
8891 * nptl/tst-mtx-recursive.c: Likewise.
8892 * nptl/tst-mtx-timedlock.c: Likewise.
8893 * nptl/tst-mtx-trylock.c: Likewise.
8894 * nptl/tst-thrd-basic.c: Likewise.
8895 * nptl/tst-thrd-detach.c: Likewise.
8896 * nptl/tst-thrd-sleep.c: Likewise.
8897 * nptl/tst-tss-basic.c: Likewise.
8898
8899 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8900
8901 [BZ #14092]
8902 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8903 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8904 symbols.
8905 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8906 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8907 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8908 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8909 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8910 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8911 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8912 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8913 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8914 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8915 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8916 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8918 Likewise.
8919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8920 Likewise.
8921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8922 Likewise.
8923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8924 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8925 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8926 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8927 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8928 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8929 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8930 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8931 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8932 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8933 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8934 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8935 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8936 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8937 Likewise.
8938 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8939 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8940 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8941 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8942 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8943 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8944 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8945 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8946 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8947 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8948 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8949 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8950 ikewise.
8951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8953 Likewise.
8954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8955 Likewise.
8956 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8957 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8958 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8959 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8960 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8961 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8962 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8963 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8964
8965 [BZ #14092]
8966 * conform/data/threads.h-data (thread_local): New macro.
8967 (TSS_DTOR_ITERATIONS): Likewise.
8968 (tss_t): New type.
8969 (tss_dtor_t): Likewise.
8970 (tss_create): New function.
8971 (tss_get): Likewise.
8972 (tss_set): Likewise.
8973 (tss_delete): Likewise.
8974 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8975 tss_get, and tss_set objects.
8976 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8977 * nptl/tss_create.c: New file.
8978 * nptl/tss_delete.c: Likewise.
8979 * nptl/tss_get.c: Likewise.
8980 * nptl/tss_set.c: Likewise.
8981 * sysdeps/nptl/threads.h (thread_local): New define.
8982 (TSS_DTOR_ITERATIONS): Likewise.
8983 (tss_t): New typedef.
8984 (tss_dtor_t): Likewise.
8985 (tss_create): New prototype.
8986 (tss_get): Likewise.
8987 (tss_set): Likewise.
8988 (tss_delete): Likewise.
8989
8990 [BZ #14092]
8991 * conform/data/threads.h-data (cnd_t): New type.
8992 (cnd_init): New function.
8993 (cnd_signal): Likewise.
8994 (cnd_broadcast): Likewise.
8995 (cnd_wait): Likewise.
8996 (cnd_timedwait): Likewise.
8997 (cnd_destroy): Likewise.
8998 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8999 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9000 object.
9001 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9002 * nptl/cnd_broadcast.c: New file.
9003 * nptl/cnd_destroy.c: Likewise.
9004 * nptl/cnd_init.c: Likewise.
9005 * nptl/cnd_signal.c: Likewise.
9006 * nptl/cnd_timedwait.c: Likewise.
9007 * nptl/cnd_wait.c: Likewise.
9008 * sysdeps/nptl/threads.h (cnd_t): New type.
9009 (cnd_init): New prototype.
9010 (cnd_signa): Likewise.
9011 (cnd_broadcast): Likewise.
9012 (cnd_wait): Likewise.
9013 (cnd_timedwait): Likewise.
9014 (cnd_destroy): Likewise.
9015
9016 [BZ #14092]
9017 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9018 (once_flag): New type.
9019 (call_once): New function.
9020 * nptl/Makefile (libpthread-routines): Add call_once object.
9021 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9022 * nptl/call_once.c: New file.
9023 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9024 (once_flag): New type.
9025 (call_once): New prototype.
9026
9027 [BZ #14092]
9028 * conform/data/threads.h-data (mtx_plain): New constant.
9029 (mtx_recursive): Likewise.
9030 (mtx_timed): Likewise.
9031 (mtx_t): New type.
9032 (mtx_init): New function.
9033 (mtx_lock): Likewise.
9034 (mtx_timedlock): Likewise.
9035 (mtx_trylock): Likewise.
9036 (mtx_unlock): Likewise.
9037 (mtx_destroy): Likewise.
9038 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9039 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9040 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9041 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9042 * nptl/mtx_destroy.c: New file.
9043 * nptl/mtx_init.c: Likewise.
9044 * nptl/mtx_lock.c: Likewise.
9045 * nptl/mtx_timedlock.c: Likewise.
9046 * nptl/mtx_trylock.c: Likewise.
9047 * nptl/mtx_unlock.c: Likewise.
9048 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9049 (mtx_recursive): Likewise.
9050 (mtx_timed): Likewise.
9051 (mtx_t): New type.
9052 (mtx_init): New prototype.
9053 (mtx_lock): Likewise.
9054 (mtx_timedlock): Likewise.
9055 (mtx_trylock): Likewise.
9056 (mtx_unlock): Likewise.
9057 (mtx_destroy): Likewise.
9058
9059 [BZ #14092]
9060 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9061 (linknamespace-libs-ISO11): Add libpthread.a.
9062 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9063 functions.
9064 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9065 * nptl/Makefile (headers): Add threads.h.
9066 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9067 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9068 thrd_yield.
9069 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9070 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9071 thrd_join, thrd_sleep, and thrd_yield symbols.
9072 * nptl/descr.h (struct pthread): Add c11 field.
9073 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9074 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9075 routine with expected function prototype.
9076 (__pthread_create_2_1): Add C11 threads check based on attribute
9077 value.
9078 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9079 * nptl/thrd_create.c: New file.
9080 * nptl/thrd_current.c: Likewise.
9081 * nptl/thrd_detach.c: Likewise.
9082 * nptl/thrd_equal.c: Likewise.
9083 * nptl/thrd_exit.c: Likewise.
9084 * nptl/thrd_join.c: Likewise.
9085 * nptl/thrd_priv.h: Likewise.
9086 * nptl/thrd_sleep.c: Likewise.
9087 * nptl/thrd_yield.c: Likewise.
9088 * include/threads.h: Likewise.
9089
9090 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9091
9092 * bits/indirect-return.h: New file.
9093 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9094 * sysdeps/x86/bits/indirect-return.h: Likewise.
9095 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9096 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9097 (swapcontext): Add __INDIRECT_RETURN.
9098 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9099 (prepare_test_buffer): Use it.
9100
9101 2018-07-24 Andreas Schwab <schwab@suse.de>
9102
9103 [BZ #23448]
9104 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9105 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9106
9107 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9108
9109 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9110 Redefine if shadow stack is enabled.
9111 (SYSCALL_ERROR_LABEL): Likewise.
9112 (__vfork): Pop shadow stack and jump back to to caller directly
9113 when shadow stack is in use.
9114 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9115 Redefine if shadow stack is enabled.
9116 (SYSCALL_ERROR_LABEL): Likewise.
9117 (__vfork): Pop shadow stack and jump back to to caller directly
9118 when shadow stack is in use.
9119
9120 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9121
9122 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9123 enabled.
9124 (foo): Likewise.
9125 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9126 (foo): Likewise.
9127
9128 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9129
9130 * scripts/build-many-glibcs.py (Context.checkout): Default
9131 binutils version to 2.31 branch.
9132
9133 2018-07-20 Zong Li <zong@andestech.com>
9134
9135 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9136 URL of gcc's tarball.
9137
9138 2018-07-20 Florian Weimer <fweimer@redhat.com>
9139
9140 [BZ #23396]
9141 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9142 not compare an extra byte after the end of the weights.
9143
9144 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9145
9146 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9147 to 1.
9148 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9149 hidden prototypes.
9150 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9151 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9152 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9153 list of libraries whose stack executability is expected.
9154 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9155 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9156 variable.
9157 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9158 libc.so libpthread.so.
9159
9160 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9161
9162 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9163 SOCK_NONBLOCK.
9164 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9165 and SOCK_NONBLOCK.
9166 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9167 implement __pipe2.
9168 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9169
9170 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9171
9172 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9173 library to improve command line parsing.
9174 (__main__): make schema file as optional parameter (--schema),
9175 defaulting to benchtests/scripts/benchout.schema.json.
9176 (main): move out of the parsing stuff to __main_  and leave it
9177 only as caller of main comparison functions.
9178
9179 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9180
9181 * NEWS: Add a note for Intel CET status.
9182 * manual/install.texi: Likewise.
9183 * INSTALL: Regenerated.
9184
9185 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9186
9187 [BZ #23140]
9188 * localedata/locales/oc_FR (mon): Rename to...
9189 (alt_mon): This, then update October (typo fix).
9190 (mon): New content (genitive case, month names preceded by
9191 "de" or "d’").
9192
9193 [BZ #23422]
9194 * localedata/locales/oc_FR (abday): Update all items.
9195 (day): Update Wednesday and Saturday (typo fixes).
9196 (abmon): Update all items, except May.
9197 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9198 (LC_IDENTIFICATION): Bump the revision number and date.
9199 Keep the "category" entries in alphabetic order.
9200 (LC_ADDRESS): Remove no longer needed comment.
9201 (LC_COLLATE): Use “copy "ca_ES"”.
9202 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9203 "name_mrs".
9204
9205 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9206
9207 * grp/tst_fgetgrent.c: Include <unistd.h>.
9208 (main): Use mkstemp instead of tmpnam.
9209 * io/test-utime.c (main): Likewise.
9210 * posix/annexc.c (macrofile): Change to modifiable array.
9211 (main): Remove macrofile here.
9212 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9213 macrofile here.
9214 (check_header): Do not remove macrofile here.
9215 * posix/bug-getopt1.c: Include <stdlib.h>.
9216 (do_test): Use mkstemp instead of tmpnam.
9217 * posix/bug-getopt2.c: Include <stdlib.h>.
9218 (do_test): Use mkstemp instead of tmpnam.
9219 * posix/bug-getopt3.c: Include <stdlib.h>.
9220 (do_test): Use mkstemp instead of tmpnam.
9221 * posix/bug-getopt4.c: Include <stdlib.h>.
9222 (do_test): Use mkstemp instead of tmpnam.
9223 * posix/bug-getopt5.c: Include <stdlib.h>.
9224 (do_test): Use mkstemp instead of tmpnam.
9225 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9226 (main): Use mkstemp instead of tmpnam.
9227 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9228 (main): Use mkstemp instead of tmpnam.
9229 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9230 (main): use mkstemp instead of tmpnam.
9231 * stdlib/isomac.c (macrofile): Change to modifiable array.
9232 (main): Remove macrofile here.
9233 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9234 macrofile here.
9235 (check_header): Do not remove macrofile here.
9236
9237 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9238
9239 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9240 glibc.tune.x86_shstk.
9241
9242 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9243
9244 * NEWS: Mention --enable-cet.
9245 * manual/install.texi: Document --enable-cet.
9246 * INSTALL: Regenerated.
9247
9248 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9249
9250 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9251 Add _CET_NOTRACK before indirect jump to jump table.
9252
9253 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9254
9255 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9256 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9257 to jump table.
9258
9259 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9260
9261 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9262 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9263 to jump table.
9264
9265 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9266
9267 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9268 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9269 to jump table.
9270
9271 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9272
9273 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9274 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9275 to jump table.
9276
9277 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9278
9279 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9280 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9281 to jump table.
9282 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9283
9284 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9285
9286 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9287 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9288 to jump table.
9289
9290 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9291
9292 * sysdeps/i386/i686/multiarch/memset-sse2.S
9293 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9294 to jump table.
9295
9296 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9297
9298 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9299 indirect jump to jump table.
9300
9301 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9302
9303 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9304 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9305 to jump table.
9306 (MEMCPY): Likewise.
9307
9308 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9309
9310 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9311 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9312 to jump table.
9313 (MEMCPY): Likewise.
9314
9315 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9316
9317 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9318 _CET_NOTRACK before indirect jump to jump table.
9319
9320 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9321
9322 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9323 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9324 to jump table.
9325
9326 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9327
9328 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9329 indirect jump to jump table.
9330
9331 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9332
9333 [BZ #22241]
9334 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9335 (LOCALES): Likewise.
9336 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9337 * localedata/locales/sah_RU: New file.
9338 * localedata/sah_RU.UTF-8.in: New file.
9339
9340 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9341
9342 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9343 "sysdep.h".
9344 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9345 _CET_ENDBR to indirect jump targets and adjust jump destination
9346 for _CET_ENDBR.
9347 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9348 "sysdep.h".
9349 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9350 _CET_ENDBR to indirect jump targets and adjust jump destination
9351 for _CET_ENDBR.
9352 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9353 "sysdep.h".
9354 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9355 _CET_ENDBR to indirect jump targets and adjust jump destination
9356 for _CET_ENDBR.
9357
9358 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9359
9360 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9361 _CET_ENDBR.
9362
9363 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9364
9365 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9366 _CET_ENDBR.
9367 (_dl_tlsdesc_undefweak): Likewise.
9368 (_dl_tlsdesc_dynamic): Likewise.
9369 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9370 (_dl_tlsdesc_resolve_rel): Likewise.
9371 (_dl_tlsdesc_resolve_rela): Likewise.
9372 (_dl_tlsdesc_resolve_hold): Likewise.
9373 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9374 (_dl_tlsdesc_undefweak): Likewise.
9375 (_dl_tlsdesc_dynamic): Likewise.
9376 (_dl_tlsdesc_resolve_rela): Likewise.
9377 (_dl_tlsdesc_resolve_hold): Likewise.
9378
9379 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9380
9381 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9382 (_fini): Likewise.
9383 * sysdeps/x86_64/crti.S (_init): Likewise.
9384 (_fini): Likewise.
9385
9386 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9387
9388 [BZ #23140]
9389 * localedata/locales/os_RU (mon): Rename to...
9390 (alt_mon): This.
9391 (mon): Import from CLDR (genitive case).
9392
9393 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9394
9395 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9396 cet-tunables.h> when CET is enabled.
9397
9398 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9399
9400 [BZ #21598]
9401 * configure.ac: Add --enable-cet.
9402 * configure: Regenerated.
9403 * elf/Makefille (all-built-dso): Add a comment.
9404 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9405 Include <dl-prop.h>.
9406 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9407 segment.
9408 * elf/dl-open.c: Include <dl-prop.h>.
9409 (dl_open_worker): Call _dl_open_check.
9410 * elf/rtld.c: Include <dl-prop.h>.
9411 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9412 _rtld_main_check.
9413 * sysdeps/generic/dl-prop.h: New file.
9414 * sysdeps/i386/dl-cet.c: Likewise.
9415 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9416 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9417 * sysdeps/x86/cet-tunables.h: Likewise.
9418 * sysdeps/x86/check-cet.awk: Likewise.
9419 * sysdeps/x86/configure: Likewise.
9420 * sysdeps/x86/configure.ac: Likewise.
9421 * sysdeps/x86/dl-cet.c: Likewise.
9422 * sysdeps/x86/dl-procruntime.c: Likewise.
9423 * sysdeps/x86/dl-prop.h: Likewise.
9424 * sysdeps/x86/libc-start.h: Likewise.
9425 * sysdeps/x86/link_map.h: Likewise.
9426 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9427 _CET_ENDBR.
9428 (_dl_runtime_profile): Likewise.
9429 (_dl_runtime_resolve_shstk): New.
9430 (_dl_runtime_profile_shstk): Likewise.
9431 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9432 if CET is enabled.
9433 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9434 (CFLAGS-.os): Likewise.
9435 (CFLAGS-.op): Likewise.
9436 (CFLAGS-.oS): Likewise.
9437 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9438 is enabled.
9439 (tests-special): Add $(objpfx)check-cet.out.
9440 (cet-built-dso): New.
9441 (+$(cet-built-dso:=.note)): Likewise.
9442 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9443 ($(objpfx)check-cet.out): New.
9444 (generated): Add check-cet.out.
9445 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9446 <cet-tunables.h>.
9447 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9448 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9449 (init_cpu_features): Call get_cet_status to check CET status
9450 and update dl_x86_feature_1 with CET status. Call
9451 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9452 (set_x86_shstk). Disable and lock CET in libc.a.
9453 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9454 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9455 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9456 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9457 (_CET_ENDBR): Define if not defined.
9458 (ENTRY): Add _CET_ENDBR.
9459 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9460 x86_shstk.
9461 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9462 _CET_ENDBR.
9463 (_dl_runtime_profile): Likewise.
9464
9465 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9466
9467 [BZ #21895]
9468 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9469 restore r2 on longjmp.
9470 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9471 test list.
9472 Added rules to build test tst-setjmp-bug21895-static.
9473 Added module setjmp-bug21895 and rules to build a shared object from it.
9474 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9475 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9476
9477 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9478
9479 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9480 * benchtests/bench-strstr.c: Likewise.
9481 * string/memmem.c (FASTSEARCH): Define.
9482 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9483 Add support for FASTSEARCH.
9484 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9485 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9486 (FASTSEARCH): Define.
9487 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9488 * string/test-strstr.c: Likewise.
9489
9490 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9491
9492 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9493 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9494
9495 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9496 H.J. Lu <hongjiu.lu@intel.com>
9497
9498 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9499 (__longjmp): Restore shadow stack pointer if shadow stack is
9500 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9501 isn't defined for __longjmp_cancel.
9502 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9503 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9504 and SHADOW_STACK_POINTER_OFFSET is defined.
9505 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9506 (setjmp): Save shadow stack pointer if shadow stack is enabled
9507 and SHADOW_STACK_POINTER_OFFSET is defined.
9508 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9509 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9510 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9511 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9512 <jmp_buf-ssp.h>.
9513 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9514 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9515 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9516 Remove jmp_buf-ssp.sym.
9517 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9518 <jmp_buf-ssp.h>.
9519 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9520 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9521 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9522 jmp_buf-ssp.sym.
9523 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9524 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9525 (__longjmp): Restore shadow stack pointer if shadow stack is
9526 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9527 isn't defined for __longjmp_cancel.
9528 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9529 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9530 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9531
9532 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9533
9534 [BZ #22563]
9535 * nptl/pthread_create.c: Include <tls-setup.h>.
9536 (__pthread_create_2_1): Call tls_setup_tcbhead.
9537 * sysdeps/generic/tls-setup.h: New file.
9538 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9539 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9540 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9541 Likewise.
9542 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9543 to feature_1.
9544 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9545 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9546 (X86_FEATURE_1_SHSTK): Likewise.
9547 (CET_ENABLED): Likewise.
9548 (IBT_ENABLED): Likewise.
9549 (SHSTK_ENABLED): Likewise.
9550
9551 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9552
9553 [BZ #23208]
9554 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9555 (LOCALES): Likewise.
9556 * localedata/dsb_DE.UTF-8.in: New file.
9557 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9558
9559 2018-07-12 Florian Weimer <fweimer@redhat.com>
9560
9561 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9562 __mprotect, not mprotect.
9563
9564 2018-07-11 Florian Weimer <fweimer@redhat.com>
9565
9566 * io/Makefile (headers): Add bits/statx.h.
9567
9568 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9569
9570 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9571 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9572 and headers.
9573 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9574 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9575 for utf8_gen.py
9576
9577 2018-07-10 Florian Weimer <fweimer@redhat.com>
9578
9579 * io/Makefile (routines): Add statx.
9580 (tests-internal): Add tst-statx.
9581 * io/Versions (GLIBC_2.28): Export statx.
9582 * io/bits/statx.h: New file.
9583 * io/sys/stat.h [__USE_GNU]: Include it.
9584 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9585 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9586 Define.
9587 * io/statx.c: New file.
9588 * io/statx_generic.: Likewise.
9589 * io/tst-statx.: Likewise.
9590 * include/bits/statx.h: Likewise.
9591 * sysdeps/unix/sysv/linux/kernel-features.h
9592 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9593 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9594 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9595 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9596 Undefine.
9597 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9598 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9599 * sysdeps/unix/sysv/linux/statx.c: New file.
9600 * manual/filesys.texi: Note that statx is undocumented.
9601 * sysdeps/**/libc*.abilist: Update.
9602
9603 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9604
9605 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9606 a kernel issue which lead to test failure in some cases.
9607
9608 2018-07-10 Florian Weimer <fweimer@redhat.com>
9609
9610 [BZ #23036]
9611 * posix/regexec.c (check_node_accept_bytes): When comparing
9612 weights, do not compare an extra byte after the end of the
9613 weights.
9614
9615 2018-07-10 Florian Weimer <fweimer@redhat.com>
9616
9617 * libio/readline.c: Fix copyright year.
9618 * libio/tst-readline.c Likewise.
9619 * nss/tst-nss-files-hosts-getent.c: Likewise.
9620
9621 2018-07-06 Florian Weimer <fweimer@redhat.com>
9622
9623 [BZ #18991]
9624 * nss/nss_files/files-XXX.c (internal_getent): Use
9625 __libc_readline_unlocked. Seek back to the start of the line if
9626 parsing failes with ERANGE.
9627 (get_contents_ret, get_contents): Remove.
9628 * nss/tst-nss-files-hosts-getent.c: New file.
9629 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9630 (tst-nss-files-hosts-getent): Link with -ldl.
9631
9632 2018-07-06 Florian Weimer <fweimer@redhat.com>
9633
9634 * include/stdio.h (__libc_readline_unlocked): Declare.
9635 (__ftello64, __fseeko64): Declare aliases.
9636 * libio/readline.c: New file.
9637 * libio/tst-readline.c: Likewise.
9638 (routines): Add readline.
9639 (tests-internal): Add tst-readlime.
9640 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9641 __libc_readline_unlocked.
9642 * libio/fseeko.c (__fseeko): Rename from fseeko.
9643 (fseeko): Add alias.
9644 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9645 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9646 (fseeko64): Add alias.
9647 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9648 * libio/ftello64.c (__ftello64): Rename from ftello64.
9649 (ftello64): Add alias.
9650
9651 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9652
9653 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9654 HWCAP_ATOMICS.
9655
9656 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9657
9658 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9659 Use dl_hwcap without masking.
9660 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9661 Remove HWCAP_CPUID.
9662
9663 2018-07-06 Florian Weimer <fweimer@redhat.com>
9664
9665 * conform/conformtest.pl (checknamespace): Escape literal braces
9666 in regular expressions.
9667
9668 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9669
9670 * sysdeps/x86/cpu-features.c (get_common_indeces):
9671 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9672 * sysdeps/x86/cpu-features.c (init_cpu_features):
9673 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9674
9675 2018-07-05 Florian Weimer <fweimer@redhat.com>
9676
9677 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9678 protector.
9679 (CFLAGS-elf-init.oS): Likewise.
9680
9681 2018-07-05 Florian Weimer <fweimer@redhat.com>
9682 Carlos O'Donell <carlos@redhat.com>
9683
9684 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9685 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9686 with stack protector enabled because there is no risk of infinite
9687 recursion.
9688
9689 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9690
9691 [BZ #19818]
9692 [BZ #23307]
9693 * libc-abis (ABSOLUTE): New ABI.
9694 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9695 * NEWS: Mention the new ABI.
9696
9697 2018-07-05 Florian Weimer <fweimer@redhat.com>
9698
9699 [BZ # 17662]
9700 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9701 (RENAME_WHITEOUT): Define.
9702 [__USE_GNU] (renameat2): Declare.
9703 * stdio-common/Makefile (routines): Add renameat2.
9704 (tests): Add tst-renameat2.
9705 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9706 * stdio-common/renameat2.c: New file.
9707 * stdio-common/tst-renameat2.c: Likewise.
9708 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9709 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9710 undocumented.
9711 * sysdeps/unix/sysv/linux/kernel-features.h
9712 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9713 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9714 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9715 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9716 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9717 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9718 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9719 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9720 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9721 * include/stdio.h (__renameat): Add alias for renameat.
9722 * stdio-common/renameat.c (__renameat): Rename from renameat.
9723 Add hidden definition and alias.
9724 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9725 * sysdeps/mach/hurd/renameat.c: Likewise.
9726 * sysdeps/**/libc*.abilist: Add renameat2.
9727
9728 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9729
9730 * posix/bug-regex33.c: Fix build after regex sync.
9731
9732 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9733
9734 [BZ #23164]
9735 * localedata/tst-langinfo-setlocale.c: New file.
9736 * localedata/tst-langinfo-setlocale-static.c: New file.
9737 * localedata/tst-langinfo-newlocale.c: New file.
9738 * localedata/tst-langinfo-newlocale-static.c: New file.
9739 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9740 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9741 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9742 (tests-static): Remove tst-langinfo-static. Add
9743 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9744 (tests-special): Remove $(objpfx)tst-langinfo.out,
9745 $(objpfx)tst-langinfo-static.out. Add
9746 $(objpfx)tst-langinfo-setlocale.out,
9747 $(objpfx)tst-langinfo-newlocale.out,
9748 $(objpfx)tst-langinfo-setlocale-static.out,
9749 $(objpfx)tst-langinfo-newlocale-static.out.
9750 ($(objpfx)tst-langinfo.out): Remove.
9751 ($(objpfx)tst-langinfo-static.out): Remove.
9752 ($(objpfx)tst-langinfo-newlocale.out): New target.
9753 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9754 (test-xfail-tst-langinfo-newlocale-static): Add.
9755 ($(objpfx)tst-langinfo-setlocale.out): New target.
9756 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9757 * localedata/tst-langinfo.c: Call test_locale.
9758 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9759 data.
9760
9761 2018-07-04 Florian Weimer <fweimer@redhat.com>
9762
9763 testrun.sh: Implement --tool=strace, --tool=valgrind
9764 * Makefile (testrun-script): Define variable.
9765 (testrun.sh): Use variable.
9766 * manual/install.texi (Tools for Compilation): make 4.0 or later
9767 is required.
9768 * configure.ac: Check for make 4.0 or later.
9769 * INSTALL: Regenerate.
9770 * configure: Likewise.
9771
9772 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9773
9774 [BZ #23233]
9775 [BZ #21163]
9776 [BZ #18986]
9777 [BZ #13762]
9778 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9779 * posix/PCRE.tests: Remove invalid test.
9780 * posix/bug-regex28.c: Fix expected values for used syntax.
9781 * posix/bug-regex37.c: New file.
9782 * posix/bug-regex38.c: Likewise.
9783 * posix/regcomp.c: Sync with gnulib.
9784 * posix/regex.c: Likewise.
9785 * posix/regex.h: Likewise.
9786 * posix/regex_internal.c: Likewise.
9787 * posix/regex_internal.h: Likewise.
9788 * posix/regexec.c: Likewise.
9789
9790 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9791
9792 [BZ #23308]
9793 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9794 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9795 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9796 * localedata/unicode-gen/PropList.txt: likewise.
9797 * localedata/unicode-gen/UnicodeData.txt: likewise.
9798 * localedata/charmaps/UTF-8: Regenerate.
9799 * localedata/locales/i18n_ctype: likewise.
9800 * localedata/locales/tr_TR: likewise.
9801 * localedata/locales/translit_circle: likewise.
9802 * localedata/locales/translit_cjk_compat: likewise.
9803 * localedata/locales/translit_combining: likewise.
9804 * localedata/locales/translit_compat: likewise.
9805 * localedata/locales/translit_font: likewise.
9806 * localedata/locales/translit_fraction: likewise.
9807
9808 2018-07-03 Florian Weimer <fweimer@redhat.com>
9809
9810 [BZ #23363]
9811 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9812 * stdio-common/tst-printf.sh: Adjust expected output.
9813 * LICENSES: Update.
9814
9815 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9816
9817 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9818 symbol.
9819
9820 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9821
9822 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9823 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9824 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9825 * stdio-common/tst-printfsz-islongdouble.c: New file.
9826 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9827 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9828 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9829 [subdir == stdio-common] (tests-internal): Add
9830 test-printf-size-ieee128, and test-printf-size-ibm128.
9831 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9832 (CFLAGS-test-printf-size-ibm128.c): New variables.
9833 [subdir == stdio-common] (tests-special): Add
9834 $(objpfx)test-printf-size-ieee128.out and
9835 $(objpfx)test-printf-size-ibm128.out.
9836 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9837 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9838 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9839 __printf_sizeieee128.
9840 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9841 New file.
9842 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9843 Likewise.
9844 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9845 Likewise.
9846
9847 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9848
9849 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9850 (exp2f_inline): Likewise.
9851 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9852 (__math_uflowf): Likewise.
9853 (__math_may_uflowf): Likewise.
9854 (__math_divzerof): Likewise.
9855 (__math_invalidf): Likewise.
9856 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9857 (__math_oflowf): Likewise.
9858 (__math_uflowf): Likewise.
9859 (__math_may_uflowf): Likewise.
9860 (__math_divzerof): Likewise.
9861 (__math_invalidf): Likewise.
9862
9863 2018-06-29 DJ Delorie <dj@redhat.com>
9864 Carlos O'Donell <carlos@redhat.com>
9865
9866 [BZ #23329]
9867 * include/libc-symbols.h: Comment the freeres framework.
9868 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9869 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9870 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9871 * dlfcn/dlerror.c: Include libc-symbols.h
9872 (__dlerror_main_freeres): New function.
9873 * dlfcn/dlfreeres.c: New file.
9874 * dlfcn/sdlfreeres.c: New file.
9875 * include/dlfcn.h: Declare __dlerror_main_freeres.
9876 * malloc/set-freeres.c: Declare __libdl_freeres, and
9877 __libpthread_freeres.
9878 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9879 the releavant libraries are loaded.
9880 * malloc/thread-freeres.c: Add comments.
9881 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9882 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9883 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9884 (__free_stacks): Rename to...
9885 (free_stacks): ...this. Mark static.
9886 (queue_stack): Call free_stacks.
9887 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9888 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9889 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9890 ptr_freeres element from struct.
9891 (pthread_functions): Remove .ptr_freeres from struct initializer.
9892 [SHARED] (nptl_freeres): Remove.
9893 * nptl/nptlfreeres.c: New file.
9894 * nptl/pthreadP.h
9895 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9896 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9897 attribute_hidden.
9898 (__free_stacks): Rename to...
9899 (__nptl_stacks_freeres): ...this.
9900 (__shm_directory_freeres): Declare.
9901 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9902 (__nptl_unwind_freeres): ...this.
9903 * resolv/res-close.c: Add comment.
9904 * resolv/resolv_conf.c: Include libc-symbols.h.
9905 * string/strerror_l.c: Include libc-symbols.h.
9906 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9907 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9908 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9909 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9910
9911 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9912
9913 * stdlib/tst-strfmon_l.c: Add tests for long double.
9914
9915 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9916
9917 [BZ #23208]
9918 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9919 * localedata/locales/dsb_DE: New file.
9920
9921 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9922
9923 [BZ #23140]
9924 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9925 genitive case).
9926 (alt_mon): New entry, import from CLDR (nominative case).
9927
9928 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9929
9930 [BZ #22996]
9931 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9932
9933 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9934
9935 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9936 Use vector registers.
9937
9938 * sysdeps/aarch64/multiarch/memmove_falkor.S
9939 (__memcpy_falkor): Use vector registers.
9940
9941 2018-06-29 Martin Sebor <msebor@redhat.com>
9942
9943 * manual/stdio.texi (Customizing Printf): Mention interaction
9944 with GCC built-ins.
9945
9946 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9947
9948 [BZ #23307]
9949 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9950 `st_value' is 0 if `st_shndx' is SHN_ABS.
9951 * elf/tst-absolute-zero.c: New file.
9952 * elf/tst-absolute-zero-lib.c: New file.
9953 * elf/tst-absolute-zero-lib.lds: New file.
9954 * elf/Makefile (tests): Add `tst-absolute-zero'.
9955 (modules-names): Add `tst-absolute-zero-lib'.
9956 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9957 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9958 ($(objpfx)tst-absolute-zero: New dependency.
9959
9960 2018-06-29 Zack Weinberg <zackw@panix.com>
9961
9962 * configure.ac: New command-line option --disable-crypt.
9963 Force --disable-nss-crypt when --disable-crypt is given, with a
9964 warning if it was explicitly enabled.
9965 * configure: Regenerate.
9966 * config.make.in: New boolean substitution variable $(build-crypt).
9967 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9968 when $(build-crypt).
9969 * manual/install.texi: Document --disable-crypt.
9970 * INSTALL: Regenerate.
9971
9972 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9973 which is never set.
9974 * conform/Makefile: Only include libcrypt.a in
9975 linknamespace-libs-xsi and linknamespace-libs-XPG4
9976 when $(build-crypt).
9977 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9978 USE_CRYPT to 1 when $(build-crypt).
9979 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9980 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9981 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9982
9983 2018-06-29 Zack Weinberg <zackw@panix.com>
9984
9985 * crypt/crypt.h, posix/unistd.h: Update comments and
9986 prototypes for crypt and crypt_r.
9987
9988 * manual/crypt.texi (Cryptographic Functions): New initial
9989 exposition.
9990 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9991 (Unpredictable Bytes): Improve initial exposition. Clarify error
9992 behavior of getentropy and getrandom.
9993 * manual/examples/genpass.c: Generate a salt using getentropy
9994 instead of the current time. Use hash $5$ (SHA-2-256).
9995 * manual/examples/testpass.c: Demonstrate validation against
9996 hashes generated with three different one-way functions.
9997
9998 * manual/intro.texi: crypt.texi does not need an overview
9999 anymore.
10000
10001 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10002 * manual/terminal.texi: Consistently refer to "passphrases"
10003 * instead of "passwords", and to the "user database" instead
10004 * of the "password database".
10005 * manual/users.texi: Similarly. Add notes about how actual
10006 passphrase hashes are now stored in the shadow database.
10007 Remove 20-year-old junk todo note.
10008
10009 2018-06-29 Zack Weinberg <zackw@panix.com>
10010
10011 * manual/crypt.texi: Use a normal top-level @node declaration.
10012 Move most of the introductory text to the 'crypt' section.
10013 Move the example programs below the @deftypefun for 'crypt_r'.
10014 Move the 'getpass' section...
10015 * manual/terminal.texi: ...here.
10016
10017 2018-06-29 Zack Weinberg <zackw@panix.com>
10018 Florian Weimer <fweimer@redhat.com>
10019
10020 * posix/unistd.h: Do not declare encrypt.
10021 (_XOPEN_CRYPT): Remove macro definition.
10022 (crypt): Declare only for _USE_MISC.
10023 * stdlib/stdlib.h: Do not declare setkey.
10024 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10025 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10026
10027 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10028 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10029 into compat symbols. Don't define initial_perm if it's not
10030 going to be used.
10031 * crypt/cert.c: Link explicitly with the expected versions for
10032 setkey and encrypt. If they are not available at all, mark
10033 the test as unsupported.
10034
10035 * sunrpc/des_crypt.c: Unconditionally block linkage with
10036 cbc_crypt and ecb_crypt for new binaries.
10037 * sunrpc/des_soft.c: Unconditionally block linkage with
10038 des_setparity for new binaries.
10039
10040 * manual/crypt.texi: Remove the entire "DES Encryption"
10041 section. Also remove the paragraph talking about FIPS 140-2
10042 from the introduction.
10043 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10044 of libgcrypt for "real" encryption, not DES.
10045 * manual/conf.texi (Constants for Sysconf): Mention that
10046 _XOPEN_CRYPT is no longer impelemented.
10047
10048 * conform/data/unistd.h-data: Remove crypt function declaration.
10049
10050 2018-06-29 Florian Weimer <fweimer@redhat.com>
10051
10052 [BZ #23351]
10053 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10054 (disallow_malloc_check): Remove variable.
10055 (__malloc_check_init): Adjust.
10056 (malloc_set_state): Update comment.
10057 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10058 declarations.
10059
10060 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10061
10062 [BZ #23140]
10063 * localedata/locales/ast_ES (mon): Rename to...
10064 (alt_mon): This.
10065 (mon): Import from CLDR (genitive case).
10066
10067 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10068 Jakub Sitnicki <jkbs@redhat.com>
10069
10070 [BZ #21812]
10071 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10072 on NLM_F_DUMP_INTR.
10073
10074 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10075
10076 * manual/llio.texi: Remove spurious space.
10077
10078 2018-06-28 Florian Weimer <fweimer@redhat.com>
10079
10080 [BZ #23349]
10081 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10082 _STRUCT_TIMESPEC.
10083
10084 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10085
10086 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10087 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10088 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10089 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10090 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10091 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10092 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10093
10094 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10095
10096 [BZ #23266]
10097 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10098 Copy and null-terminate entries that are not terminated, in
10099 addition to empty ones.
10100
10101 2018-06-27 Florian Weimer <fweimer@redhat.com>
10102
10103 [BZ #18023]
10104 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10105 (extend_alloca_account): Remove.
10106 * manual/stdio.texi (Variable Arguments Output): Update comment.
10107
10108 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10109
10110 * nptl/sockperf.c: Remove file.
10111
10112 2018-06-27 Florian Weimer <fweimer@redhat.com>
10113
10114 [BZ #18023]
10115 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10116 scratch_buffer instead of extend_alloca.
10117
10118 2018-06-27 Florian Weimer <fweimer@redhat.com>
10119
10120 [BZ #18023]
10121 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10122 scratch_buffer instead of extend_alloca. Update comments.
10123
10124 2018-06-27 Florian Weimer <fweimer@redhat.com>
10125
10126 [BZ #18023]
10127 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10128 instead of extend_alloca.
10129
10130 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10131
10132 [BZ #13888]
10133 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10134 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10135 /tmp.
10136 * scripts/test-installation.pl: Put temporary files in build
10137 directory, not /tmp.
10138 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10139 (CFLAGS-bug4.c): Likewise.
10140 (CFLAGS-bug5.c): Likewise.
10141 (CFLAGS-test-fseek.c): Likewise.
10142 (CFLAGS-test-popen.c): Likewise.
10143 (CFLAGS-test_rdwr.c): Likewise.
10144 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10145 /tmp.
10146 * stdio-common/bug4.c (main): Likewise.
10147 * stdio-common/bug5.c (main): Likewise.
10148 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10149 * stdio-common/test-popen.c (do_test): Likewise.
10150 * stdio-common/test_rdwr.c (main): Likewise.
10151
10152 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10153
10154 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10155 (sem_open): Set sem.newsem.pad to zero for valgrind.
10156
10157 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10158
10159 [BZ #20251]
10160 * NEWS: Mention fcntl64 addition.
10161 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10162 * login/utmp_file.c: Likewise.
10163 * sysdeps/posix/fdopendir.c: Likewise.
10164 * sysdeps/posix/opendir.c: Likewise.
10165 * sysdeps/unix/pt-fcntl.c: Likewise.
10166 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10167 __fcntl64_nocancel_adjusted): New prototype.
10168 (__fcntl_nocancel_adjusted): Remove prototype.
10169 * io/Makefile (routines): Add fcntl64.
10170 (CFLAGS-fcntl64.c): New rule.
10171 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10172 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10173 * io/fcntl.h (fcntl64): Add prototype and redirect if
10174 __USE_FILE_OFFSET64 is defined.
10175 * io/fcntl64.c: New file.
10176 * manual/llio.text: Add a note for which commands fcntl acts a
10177 cancellation point.
10178 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10179 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10180 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10181 New symbols.
10182 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10183 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10184 non-LFS case.
10185 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10186 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10187 to __fcntl64_nocancel.
10188 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10189 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10190 to __fcntl64_nocancel.
10191 * sysdeps/generic/not-cancel.h: Likewise.
10192 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10193 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10194 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10195 (fcntl64): New symbol.
10196 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10197 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10198 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10201 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10202 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10203 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10204 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10205 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10206 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10207 fcntl64): Likewise.
10208 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10209 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10210 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10211 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10212 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10213 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10214 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10215 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10216 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10218 Likewise.
10219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10220 Likewise.
10221 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10222 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10223 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10224
10225 2018-06-26 Florian Weimer <fweimer@redhat.com>
10226
10227 Run thread shutdown functions in an explicit order.
10228 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10229 definition.
10230 (__libc_thread_freeres): Call thread shutdown functions
10231 explicitly.
10232 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10233 * include/string.h (__strerror_thread_freeres): Declare.
10234 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10235 arena_thread_freeres. No longer static. Remove thread shutdown
10236 hook registration.
10237 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10238 Declare.
10239 * resolv/res-close.c (__res_thread_freeres): Renamed from
10240 res_thread_freeres. No longer static. Remove thread shutdown
10241 hook registration.
10242 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10243 * resolv/resolv_conf.c (freeres): Remove incorrect section
10244 attribute and use libc_freeres_fn.
10245 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10246 strerror_thread_freeres. No longer static. Remove thread
10247 shutdown hook registration.
10248 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10249 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10250 shutdown hook registration.
10251 * Makerules (shlib.lds): Do not provide section boundary symbols
10252 for __libc_thread_subfreeres.
10253 * manual/memory.texi (Basic Allocation): Update comment.
10254
10255 2018-06-26 Florian Weimer <fweimer@redhat.com>
10256
10257 Remove always-defined _RPC_THREAD_SAFE_ macro.
10258 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10259 Do not define _RPC_THREAD_SAFE_.
10260 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10261 conditional.
10262 * sunrpc/clnt_perr.c: Likewise.
10263 * sunrpc/clnt_raw.c: Likewise.
10264 * sunrpc/clnt_simp.c: Likewise.
10265 * sunrpc/key_call.c: Likewise.
10266 * sunrpc/rpc_common.c: Likewise.
10267 * sunrpc/rpc_main.c: Likewise.
10268 * sunrpc/rpc_thread.c: Likewise.
10269 * sunrpc/svc.c: Likewise.
10270 * sunrpc/svc_raw.c: Likewise.
10271 * sunrpc/svc_simple.c: Likewise.
10272 * sumrpc/svcauth_des.c: Likewise.
10273
10274 2018-06-26 Florian Weimer <fweimer@redhat.com>
10275
10276 * libio/Makefile (tests-internal): Add tst-vtables,
10277 tst-vtables-interposed.
10278 * libio/tst-vtables.c: New file.
10279 * libio/tst-vtables-common.c: Likewise.
10280 * libio/tst-vtables-interposed.c: Likewise.
10281
10282 2018-06-26 Florian Weimer <fweimer@redhat.com>
10283
10284 * support/support_test_main.c (support_test_main): Only call
10285 setvbuf if not disables.
10286 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10287 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10288
10289 2018-06-26 Florian Weimer <fweimer@redhat.com>
10290
10291 [BZ #23313]
10292 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10293
10294 2018-06-25 Florian Weimer <fweimer@redhat.com>
10295
10296 [BZ #18023]
10297 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10298 Use struct scratch_buffer instead of extend_alloca.
10299
10300 2018-06-25 Florian Weimer <fweimer@redhat.com>
10301
10302 [BZ #18023]
10303 * nss/getent.c (initgroups_keys): Use dynarray instead of
10304 extend_alloca.
10305
10306 2018-06-25 Florian Weimer <fweimer@redhat.com>
10307
10308 [BZ #18023]
10309 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10310 Use struct scratch_buffer instead of extend_alloca.
10311
10312 2018-06-25 Florian Weimer <fweimer@redhat.com>
10313
10314 [BZ #18023]
10315 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10316 back to malloc directly, without stack allocations.
10317
10318 2018-06-25 Florian Weimer <fweimer@redhat.com>
10319
10320 [BZ #18023]
10321 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10322 of extend_alloca.
10323
10324 2018-06-25 Florian Weimer <fweimer@redhat.com>
10325
10326 [BZ #18023]
10327 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10328 of extend_alloca.
10329 * nscd/hstcache.c (addhstbyX): Likewise.
10330 * nscd/pwdcache.c (addpwbyX): Likewise.
10331 * nscd/servicescache.c (addservbyX): Likewise.
10332
10333 2018-06-25 Florian Weimer <fweimer@redhat.com>
10334
10335 [BZ #18023]
10336 * nscd/connections.c (read_cmdline): New function.
10337 (restart): Use it. Update comment.
10338
10339 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10340
10341 [BZ #23140]
10342 * localedata/locales/csb_PL (mon): Rename to...
10343 (alt_mon): This.
10344 (abmon): Rename to...
10345 (ab_alt_mon): This.
10346 (mon): Add with proper genitive forms, copy from Wikipedia.
10347 (abmon): Likewise.
10348
10349 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10350
10351 [BZ #19485]
10352 * localedata/locales/csb_PL (mon): Fix typos:
10353 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10354 (yesstr): Add, value is "jo".
10355 (nostr): Add, value is "nié".
10356
10357 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10358
10359 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10360 all log1p and significand functions on m680x0.
10361 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10362 of s_significand.c..
10363 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10364 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10365 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10366 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10367 s_log1p.c and include it..
10368
10369 2018-06-21 Vincent Chen <vincentc@andestech.com>
10370
10371 * elf/elf.h (R_NDS32_NONE): New define.
10372 (R_NDS32_32_RELA): Likewise.
10373 (R_NDS32_COPY): Likewise.
10374 (R_NDS32_GLOB_DAT): Likewise.
10375 (R_NDS32_JUMP_SLOT): Likewise.
10376 (R_NDS32_RELATIVE): Likewise.
10377 (R_NDS32_TLS_TPOFF): Likewise.
10378 (R_NDS32_TLS_DESC): Likewise.
10379
10380 2018-06-21 Mark Wielaard <mark@klomp.org>
10381
10382 * elf/elf.h (R_BPF_MAP_FD): Removed.
10383 (R_BPF_64_64, R_BPF_64_32): New.
10384
10385 2018-06-21 Florian Weimer <fweimer@redhat.com>
10386
10387 [BZ #23253]
10388 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10389 Renamed from libc_feholdsetround_ctx.
10390 (default_libc_feresetround_ctx): Renamed from
10391 libc_feresetround_ctx.
10392 (default_libc_feholdsetround_noex_ctx): Renamed from
10393 libc_feholdsetround_noex_ctx.
10394 (default_libc_feresetround_noex_ctx): Renamed from
10395 libc_feresetround_noex_ctx.
10396 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10397 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10398 forwardning to the old implementations under the new names.
10399 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10400 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10401 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10402 (libc_feresetround_ctx): Forward to default implements for i386
10403 and MATH_SET_BOTH_ROUNDING_MODES.
10404 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10405 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10406
10407 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10408
10409 * string/tst-cmp.c: Include <libc-diag.h>.
10410 (strncmp_max): Disable -Wstringop-overflow= around call to
10411 strncmp.
10412 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10413 strncasecmp.
10414
10415 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10416 (main): Disable -Wunused-value around call to strpbrk.
10417 * string/bug-strspn1.c: Include <libc-diag.h>.
10418 (main): Disable -Wunused-value around call to strspn.
10419
10420 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10421 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10422
10423 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10424 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10425
10426 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10427
10428 * math/Makefile (libm-calls): Move s_significandF to...
10429 (gen-libm-calls): ... here.
10430 * math/s_significand_template.c: New file.
10431 * math/s_significand.c: Removed.
10432 * math/s_significandf.c: Removed.
10433 * math/s_significandl.c: Removed.
10434 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10435 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10436
10437 * math/e_exp2_template.c (declare_mgen_finite_alias,
10438 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10439 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10440 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10441
10442 2018-06-20 Florian Weimer <fweimer@redhat.com>
10443
10444 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10445
10446 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10447
10448 [BZ #23280]
10449 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10450 floating-point number to strtod functions rather than possibly
10451 negating result of those functions.
10452 * stdio-common/tst-scanf-round.c: New file.
10453 * stdio-common/Makefile (tests): Add tst-scanf-round.
10454 ($(objpfx)tst-scanf-round): Depend on $(libm).
10455
10456 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10457
10458 * sysdeps/mach/hurd/localplt.data: Move to...
10459 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10460 R_386_GLOB_DAT like on Linux i386.
10461
10462 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10463
10464 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10465 (SHM_STAT_ANY): New macro.
10466 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10467 (SHM_STAT_ANY): Likewise.
10468 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10469 (SHM_STAT_ANY): Likewise.
10470 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10471 (SHM_STAT_ANY): Likewise.
10472 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10473 (SHM_STAT_ANY): Likewise.
10474 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10475 (SHM_STAT_ANY): Likewise.
10476 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10477 (SHM_STAT_ANY): Likewise.
10478 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10479 (SHM_STAT_ANY): Likewise.
10480 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10481 (SHM_STAT_ANY): Likewise.
10482 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10483 (SHM_STAT_ANY): Likewise.
10484 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10485 (SHM_STAT_ANY): Likewise.
10486 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10487 (SHM_STAT_ANY): Likewise.
10488
10489 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10490 (SEM_STAT_ANY): New macro.
10491 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10492 (SEM_STAT_ANY): Likewise.
10493 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10494 (SEM_STAT_ANY): Likewise.
10495 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10496 (SEM_STAT_ANY): Likewise.
10497 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10498 (SEM_STAT_ANY): Likewise.
10499 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10500 (SEM_STAT_ANY): Likewise.
10501 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10502 (SEM_STAT_ANY): Likewise.
10503 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10504 (SEM_STAT_ANY): Likewise.
10505 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10506 (SEM_STAT_ANY): Likewise.
10507 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10508 (SEM_STAT_ANY): Likewise.
10509
10510 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10511 (MSG_STAT_ANY): New macro.
10512 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10513 (MSG_STAT_ANY): Likewise.
10514 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10515 (MSG_STAT_ANY): Likewise.
10516 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10517 (MSG_STAT_ANY): Likewise.
10518 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10519 (MSG_STAT_ANY): Likewise.
10520 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10521 (MSG_STAT_ANY): Likewise.
10522 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10523 (MSG_STAT_ANY): Likewise.
10524 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10525 (MSG_STAT_ANY): Likewise.
10526 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10527 (MSG_STAT_ANY): Likewise.
10528 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10529 (MSG_STAT_ANY): Likewise.
10530
10531 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10532 (MAP_TYPE): Change value to 0x2b.
10533
10534 2018-06-18 Florian Weimer <fweimer@redhat.com>
10535
10536 [BZ #15722]
10537 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10538 socket with SOCK_CLOEXEC.
10539
10540 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10541
10542 [BZ #23303]
10543 * sysdeps/powerpc/powerpc64/le/Makefile
10544 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10545 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10546 (gnulib-tests): Also add $(f128-loader-link) for
10547 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10548
10549 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10550
10551 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10552 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10553 of sendfile.
10554 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10555 (sendfile64): New strong alias.
10556 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10557 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10558 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10559 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10560 attribute.
10561 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10562 ___pthread_get_cleanup_stack.
10563 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10564 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10565 * mach/shortcut.awk: Make syscall stubs include
10566 <mach-shortcuts-hidden.h> and add hidden definition.
10567 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10568 (__mach_msg): Add hidden prototype.
10569 * mach/msg.c: Include <mach.h>.
10570 (__mach_msg): Add hidden definition.
10571 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10572 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10573 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10574 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10575 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10576 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10577 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10578 prototype and definition.
10579 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10580 hidden target for _hurd_self_sigstate.
10581
10582 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10583
10584 [BZ #23007]
10585 * stdlib/tst-strtod-nan-sign-main.c: New file.
10586 * stdlib/tst-strtod-nan-sign.c: Likewise.
10587 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10588 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10589 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10590 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10591 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10592
10593 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10594
10595 [BZ #23007]
10596 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10597 appropriate sign.
10598
10599 2018-06-14 Florian Weimer <fweimer@redhat.com>
10600
10601 [BZ #23290]
10602 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10603 that the result stays within the ISO-8859-1 range.
10604 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10605 characters are defined in IBM273.
10606
10607 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10608
10609 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10610 __mach_task_self): Remove attribute_hidden.
10611
10612 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10613
10614 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10615 ignore -Wrestrict for one test.
10616
10617 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10618 Szabolcs Nagy <szabolcs.nagy@arm.com>
10619
10620 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10621
10622 2018-06-14 Florian Weimer <fweimer@redhat.com>
10623
10624 * scripts/update-abilist.sh: Accept empty list of files to patch.
10625
10626 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10627
10628 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10629 test-xfail-check-abi-libmachuser): Add.
10630 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10631 __libc_read and __libc_write to __read and __write.
10632 * sysdeps/hurd/include/hurd/port.h: New file.
10633 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10634 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10635 __thread_switch, __evc_wait): Move declarations to...
10636 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10637 attribute_hidden.
10638 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10639 use PLT to call _hurd_self_sigstate.
10640
10641 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10642
10643 [BZ #23279]
10644 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10645 MAX_EXP as overflowing.
10646 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10647 overflow flag.
10648 (round_str): Output also whether result overflows in each rounding
10649 mode.
10650 * stdlib/tst-strtod-round-data: Add more tests.
10651 * stdlib/tst-strtod-round-data.h: Regenerated.
10652 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10653 (TEST): Handle extra arguments for overflow flags.
10654 (struct test_overflow): New type.
10655 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10656 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10657 (test_in_one_mode): Take argument with overflow information.
10658 (do_test): Update calls to test_in_one_mode.
10659
10660 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10661
10662 * elf/dl-load (_dl_dst_substitute): Correct comment.
10663 (_dl_dst_count): Likewise.
10664
10665 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10666 lll_futex_timed_wait.
10667
10668 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10669
10670 [BZ #23277]
10671 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10672 attribute.
10673 * math/test-nan-const.c: New file.
10674 * math/Makefile (tests): Add test-nan-const.
10675 (CFLAGS-test-nan-const.c): New variable.
10676
10677 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10678
10679 * benchtests/scripts/compare_strings.py (process_results): Add
10680 funcs argument. Compare only functions which are selected.
10681 (main): Check if base function is among selected functions.
10682 Pass selected functions to process_results.
10683 (__main__): Add -f/--functions argument.
10684
10685 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10686 Hongbo Zhang <hongbo.zhang@linaro.org>
10687
10688 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10689 __memcpy_falkor for phecda core.
10690 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10691 __memmove_falkor for phecda core.
10692 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10693 __memset_falkor for phecda core.
10694 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10695 for phecda core.
10696 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10697 macro to identify phecda core.
10698
10699 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10700 Andreas Schwab <schwab@suse.de>
10701 Dmitry V. Levin <ldv@altlinux.org>
10702 Florian Weimer <fweimer@redhat.com>
10703
10704 [BZ #23102]
10705 [BZ #21942]
10706 [BZ #18018]
10707 [BZ #23259]
10708 CVE-2011-0536
10709 * elf/dl-dst.h: Remove DL_DST_COUNT.
10710 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10711 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10712 (is_dst): Comment. Support ELF gABI.
10713 (_dl_dst_count): Comment. Simplify and count DSTs.
10714 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10715 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10716 locals.
10717
10718 2018-06-12 Zack Weinberg <zackw@panix.com>
10719
10720 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10721 * sysdeps/unix/sysv/linux/dl-sysdep.c
10722 Include not-cancel.h. Use __close_nocancel instead of __close,
10723 __open64_nocancel instead of __open, __read_nocancel instead of
10724 __libc_read, and __write_nocancel instead of __libc_write.
10725
10726 * csu/check_fds.c (check_one_fd)
10727 * sysdeps/posix/fdopendir.c (__fdopendir)
10728 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10729 instead of __fcntl and/or __libc_fcntl.
10730
10731 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10732 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10733 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10734 Use __open64_nocancel instead of __open_nocancel.
10735
10736 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10737 hidden_proto declarations to the end and issue them if either
10738 IS_IN(libc) or IS_IN(rtld).
10739 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10740 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10741 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10742 read_nocancel, waitpid_nocancel, write_nocancel.
10743
10744 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10745 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10746 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10747
10748 * nptl/pt-fcntl.c: New file.
10749 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10750 (libpthread-routines): Add pt-fcntl.
10751 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10752 (__libc_fcntl): Remove attribute_hidden.
10753 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10754 __fcntl_nocancel_adjusted, not fcntl_common.
10755 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10756 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10757 to fcntl_nocancel.c.
10758 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10761 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10762
10763 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10764 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10765 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10766 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10767 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10768 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10769 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10770 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10771 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10772 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10773 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10774 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10775 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10776 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10777 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10778 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10779 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10780 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10781 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10782 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10783
10784 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10785 libpthread-routines.
10786 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10787 defines nothing.
10788
10789 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10790 __libc_read, and __write instead of __libc_write. Define
10791 __open64 in addition to __open.
10792
10793 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10794
10795 [BZ #23250]
10796 [BZ #10686]
10797 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10798 to _private_tm[3] and add __glibc_reserved2.
10799 Add _Static_assert of offset of __private_ss == 0x30.
10800 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10801 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10802
10803 2018-06-12 Florian Weimer <fweimer@redhat.com>
10804
10805 x86: Make strncmp usable from rtld.
10806 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10807 __strncmp_ia32 if in libc (and not in rtld).
10808 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10809 strncmp if not in libc (and not to __strncmp_sse2).
10810
10811 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10812
10813 [BZ #23140]
10814 * localedata/locales/gd_GB (mon): Rename to...
10815 (alt_mon): This.
10816 (mon): Import from CLDR (genitive case).
10817 * localedata/locales/hsb_DE (mon): Rename to...
10818 (alt_mon): This.
10819 (mon): Import from CLDR (genitive case).
10820 * localedata/locales/wa_BE (mon): Rename to...
10821 (alt_mon): This.
10822 (mon): Add, fill with the proper genitive forms, but CLDR data
10823 is incomplete; completed according to the comments in this file.
10824 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10825
10826 * localedata/locales/wa_BE (country_name): Reword
10827 "Beljike" -> "Beldjike".
10828
10829 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10830
10831 [BZ #23272]
10832 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10833 cases of non-finite arguments.
10834 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10835
10836 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10837
10838 [BZ #23174]
10839 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10840
10841 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10842
10843 [BZ #23264]
10844 * include/unistd.h (__execvpex): New prototype.
10845 * posix/Makefile (tests): Add tst-spawn4.
10846 (tests-internal): Add tst-spawn4-compat.
10847 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10848 * posix/tst-spawn4-compat.c: New file.
10849 * posix/tst-spawn4.c: Likewise.
10850 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10851 binaries as shell scripts.
10852 * sysdeps/posix/spawni.c (__spawni): Likewise.
10853
10854 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10855
10856 [BZ #23145]
10857 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10858 ($(all-built-dso:=.dynsym): New target.
10859 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10860 ($(objpfx)check-initfini.out): New target.
10861 (generated): Add check-initfini.out.
10862 * scripts/check-initfini.awk: New file.
10863 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10864 (_fini): Likewise.
10865 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10866 (_fini): Likewise.
10867 * sysdeps/arm/crti.S (_init): Mark as hidden.
10868 (_fini): Likewise.
10869 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10870 (_fini): Likewise.
10871 * sysdeps/i386/crti.S (_init): Mark as hidden.
10872 (_fini): Likewise.
10873 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10874 (_fini): Likewise.
10875 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10876 (_fini): Likewise.
10877 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10878 (_fini): Likewise.
10879 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10880 (_fini): Likewise.
10881 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10882 (_fini): Likewise.
10883 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10884 (_fini): Likewise.
10885 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10886 (_fini): Likewise.
10887 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10888 (_fini): Likewise.
10889 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10890 (_fini): Likewise.
10891 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10892 (_fini): Likewise.
10893 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10894 (_fini): Likewise.
10895 * sysdeps/sh/crti.S (_init): Mark as hidden.
10896 (_fini): Likewise.
10897 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10898 (_fini): Likewise.
10899 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10900 (_fini): Likewise.
10901
10902 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10903
10904 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10905 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10906 and TF redirection to KFtype and KF only when the default
10907 long double type is not the IEEE 128-bit floating point type.
10908
10909 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10910
10911 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10912 macro.
10913 (HWCAP_USCAT): Likewise.
10914 (HWCAP_ILRCPC): Likewise.
10915 (HWCAP_FLAGM): Likewise.
10916 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10917 Increase to 28.
10918 (_dl_aarch64_cap_flags): Add new flag names.
10919
10920 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10921 (MAP_FIXED_NOREPLACE): New macro.
10922 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10923 (MAP_FIXED_NOREPLACE): Likewise.
10924 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10925 (MAP_FIXED_NOREPLACE): Likewise.
10926 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10927 (MAP_FIXED_NOREPLACE): Likewise.
10928 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10929 (MAP_FIXED_NOREPLACE): Likewise.
10930 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10931 (MAP_FIXED_NOREPLACE): Likewise.
10932 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10933 (MAP_FIXED_NOREPLACE): Likewise.
10934 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10935 (MAP_FIXED_NOREPLACE): Likewise.
10936 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10937 (MAP_FIXED_NOREPLACE): Likewise.
10938 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10939 (MAP_FIXED_NOREPLACE): Likewise.
10940 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10941 (MAP_FIXED_NOREPLACE): Likewise.
10942 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10943 (MAP_FIXED_NOREPLACE): Likewise.
10944 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10945 (MAP_FIXED_NOREPLACE): Likewise.
10946 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10947 (MAP_FIXED_NOREPLACE): Likewise.
10948 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10949 (MAP_FIXED_NOREPLACE): Likewise.
10950
10951 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10952 version to 4.17.
10953
10954 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10955
10956 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10957 version to 4.17
10958
10959 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10960
10961 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10962 int.
10963 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10964
10965 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10966
10967 * benchtests/scripts/compare_string.py: (process_results) Catch
10968 exception in non-existent base_func and catch exception in
10969 non-existent attribute.
10970 (parse_file) Catch exception if input file does not exist.
10971
10972 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10973
10974 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10975 options to avoid diff calculation and omit header, respectively.
10976 (main): process --no-diff and --no-header
10977
10978 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10979 H.J. Lu <hongjiu.lu@intel.com>
10980
10981 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10982 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10983 wcsncmp-sse2.
10984 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10985 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10986 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10987 and __wcsncmp_sse2.
10988 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10989 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10990 AVX unaligned load is fast and vzeroupper is preferred.
10991 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10992 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10993 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10994 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10995 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10996 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10997 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10998 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10999 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11000 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11001 is undefined.
11002
11003 2018-06-01 Florian Weimer <fweimer@redhat.com>
11004
11005 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11006 configuring with --disable-multi-arch, building with
11007 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11008 Haswell-era CPU.
11009
11010 2018-06-01 Florian Weimer <fweimer@redhat.com>
11011
11012 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11013 results from building with “-march=x86-64 -mtune=generic
11014 -mfpmath=sse” and running on a Haswell-era CPU.
11015
11016 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11017
11018 [BZ #18473]
11019 * soft-fp/sqrttf2.c: Remove file.
11020 * soft-fp/sqrtdf2.c: Move to ....
11021 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11022 <shlib-compat.h>.
11023 (__sqrtdf2): Make conditional on
11024 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11025 symbol.
11026 * soft-fp/sqrtsf2.c: Move to ....
11027 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11028 <shlib-compat.h>.
11029 (__sqrtsf2): Make conditional on
11030 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11031 symbol.
11032 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11033 (gcc-double-routines): Remove sqrtdf2.
11034 (gcc-quad-routines): Remove sqrttf2.
11035 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11036 Do not filter out sqrtsf2 and sqrtdf2.
11037 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11038 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11039
11040 2018-06-01 Florian Weimer <fweimer@redhat.com>
11041
11042 * sysdeps/generic/libcidn.abilist: Remove file.
11043
11044 2018-06-01 Florian Weimer <fweimer@redhat.com>
11045
11046 [BZ #23236]
11047 * libio/strfile.h (struct _IO_str_fields): Rename members to
11048 discourage their use and add comment.
11049 (_IO_STR_DYNAMIC): Remove unused macro.
11050 * libio/strops.c (_IO_str_init_static_internal): Do not use
11051 callback pointers. Call malloc and free.
11052 (_IO_str_overflow): Do not use callback pointers. Call malloc
11053 and free.
11054 (enlarge_userbuf): Likewise.
11055 (_IO_str_finish): Call free.
11056 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11057 _allocate_buffer_unused.
11058 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11059 and free.
11060 (enlarge_userbuf): Likewise.
11061 (_IO_wstr_finish): Call free.
11062 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11063 _allocate_buffer_unused, _free_buffer_unused.
11064 * libio/memstream.c (__open_memstream): Likewise.
11065 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11066 * libio/wmemstream.c (open_wmemstream): Likewise.
11067
11068 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11069
11070 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11071 AMD Ryzen 7 1800X.
11072
11073 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11074
11075 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11076 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11077 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11078 New file.
11079 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11080 Likewise.
11081 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11082
11083 2018-05-29 Florian Weimer <fweimer@redhat.com>
11084
11085 * support/Makefile (libsupport-routines): Add
11086 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11087 xpthread_barrierattr_setpshared.
11088 * support/xpthread_barrierattr_destroy.c: New file.
11089 * support/xpthread_barrierattr_init.c: Likewise.
11090 * support/xpthread_barrierattr_setpshared.c: Likewise.
11091
11092 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11093
11094 [BZ #23206]
11095 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11096 _r_debug and update DT_DEBUG for debugger.
11097
11098 2018-05-29 Florian Weimer <fweimer@redhat.com>
11099
11100 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11101 (tst-strtod5i.out): Likewise.
11102
11103 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11104
11105 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11106 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11107 (sparc64-quad-routines): New variable. Moved from ....
11108 [$(subdir) = soft-fp] (sysdep_routines): Add
11109 $(sparc64-quad-routines). Moved from ....
11110 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11111 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11112 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11113 moved from ....
11114 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11115 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11116 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11117 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11118 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11119 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11120 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11121 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11122 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11123 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11124 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11125 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11126 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11127 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11128 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11129 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11130 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11131 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11132 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11133 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11134 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11135 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11136 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11137 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11138 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11139 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11140 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11141 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11142 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11143 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11144 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11145 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11146 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11147 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11148 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11149 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11150 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11151 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11152 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11153 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11154 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11155 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11156 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11157 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11158 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11159 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11160 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11161 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11162 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11163 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11164 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11165 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11166 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11167 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11168 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11169 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11170 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11171 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11172
11173 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11174 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11175 (sparc32-quad-routines): New variable. Moved from ....
11176 [$(subdir) = soft-fp] (sysdep_routines): Add
11177 $(sparc32-quad-routines). Moved from ....
11178 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11179 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11180 moved from ....
11181 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11182 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11183 * sysdeps/sparc/sparc32/q_add.c: ... here.
11184 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11185 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11186 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11187 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11188 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11189 * sysdeps/sparc/sparc32/q_div.c: ... here.
11190 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11191 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11192 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11193 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11194 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11195 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11196 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11197 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11198 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11199 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11200 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11201 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11202 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11203 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11204 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11205 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11206 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11207 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11208 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11209 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11210 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11211 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11212 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11213 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11214 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11215 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11216 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11217 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11218 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11219 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11220 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11221 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11222 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11223 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11224 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11225 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11226 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11227 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11228 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11229 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11230 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11231 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11232 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11233 * sysdeps/sparc/sparc32/q_util.c: ... here.
11234 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11235 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11236 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11237 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11238
11239 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11240 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11241
11242 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11243 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11244 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11245 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11246
11247 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11248
11249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11250 powerpc/soft-fp.
11251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11252 Likewise.
11253 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11254 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11255
11256 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11257
11258 [BZ #23171]
11259 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11260 double version.
11261
11262 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11263
11264 * sysdeps/sh/Implies: Remove sh/soft-fp.
11265 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11266 * sysdeps/sh/sfp-machine.h: ... here.
11267
11268 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11269
11270 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11271 (__mempcpy_erms): Skip zero length.
11272 (__memmove_erms): Likewise.
11273 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11274 (__memset_erms): Likewise.
11275
11276 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11277
11278 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11279 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11280 Add functions moved from ....
11281 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11282 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11283 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11284 from ....
11285 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11286 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11287 * sysdeps/alpha/e_sqrtl.c: ... here.
11288 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11289 * sysdeps/alpha/local-soft-fp.h: ... here.
11290 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11291 * sysdeps/alpha/ots_add.c: ... here.
11292 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11293 * sysdeps/alpha/ots_cmp.c: ... here.
11294 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11295 * sysdeps/alpha/ots_cmpe.c: ... here.
11296 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11297 * sysdeps/alpha/ots_cvtqux.c: ... here.
11298 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11299 * sysdeps/alpha/ots_cvtqx.c: ... here.
11300 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11301 * sysdeps/alpha/ots_cvttx.c: ... here.
11302 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11303 * sysdeps/alpha/ots_cvtxq.c: ... here.
11304 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11305 * sysdeps/alpha/ots_cvtxt.c: ... here.
11306 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11307 * sysdeps/alpha/ots_div.c: ... here.
11308 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11309 * sysdeps/alpha/ots_mul.c: ... here.
11310 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11311 * sysdeps/alpha/ots_nintxq.c: ... here.
11312 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11313 * sysdeps/alpha/ots_sub.c: ... here.
11314 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11315 * sysdeps/alpha/sfp-machine.h: ... here.
11316
11317 2018-05-23 Florian Weimer <fweimer@redhat.com>
11318
11319 [BZ #19728]
11320 [BZ #19729]
11321 [BZ #22247]
11322 CVE-2016-6261
11323 CVE-2016-6263
11324 CVE-2017-14062
11325 Switch to extern IDNA implementation (libidn2).
11326 * libidn: Remove subdirectory.
11327 * LICENSES: Do not mention licensing conditions for the removed
11328 libidn code.
11329 * config.h.in (HAVE_LIBIDN): Remove.
11330 * include/dlfcn.h (__libc_dlopen): Update comment.
11331 * include/idna.h: Remove file.
11332 * inet/Makefile (routines): Add idna.
11333 (tests-static, tests-internal): Add tst-idna_name_classify.
11334 (LOCALES): Generate locales for tests.
11335 (tst-idna_name_classify.out): Depend on generated locales.
11336 * inet/idna_name_classify.c: New file.
11337 * inet/tst-idna_name_classify.c: Likewise.
11338 * inet/net-internal.h (__idna_to_dns_encoding)
11339 (__idna_from_dns_encoding): Declare.
11340 * inet/net-internal.h (enum idna_name_classification): Define.
11341 (__idna_name_classify): Declare.
11342 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11343 __idna_from_dns_encoding.
11344 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11345 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11346 name as a fallback in case of encoding errors.
11347 (getnameinfo): Use DEPRECATED_NI_IDN.
11348 * inet/idna.c: New file.
11349 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11350 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11351 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11352 (modules-names): Add tst-no-libidn2.
11353 (extra-test-objs): Add tst-no-libidn2.os.
11354 (LDFLAGS-tst-no-libidn2.so): Set soname.
11355 (LOCALES): Set, and generate locales.
11356 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11357 (tst-resolv-ai_idn-latin1): Likewise.
11358 (tst-resolv-ai_idn-nolibidn2): Likewise.
11359 (tst-resolv-ai_idn.out): Depend on locales.
11360 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11361 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11362 tst-no-libidn2.so.
11363 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11364 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11365 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11366 * resolv/tst-resolv-ai_idn.c: New file.
11367 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11368 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11369 * resolv/tst-no-libidn2.c: Likewise.
11370 * support/support_format_addrinfo.c (format_ai_flags): Do not
11371 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11372 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11373 (gaih_inet): Call __idna_to_dns_encoding and
11374 __idna_from_dns_encoding, and use the original (punycode) name if
11375 __idna_from_dns_encoding fails due to an encoding error.
11376 (getaddrinfo): Use DEPRECATED_AI_IDN.
11377 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11378 * sysdeps/unix/inet/configure: Remove file.
11379 * sysdeps/unix/inet/configure.ac: Likewise.
11380
11381 2018-05-23 Florian Weimer <fweimer@redhat.com>
11382
11383 Implement allocate_once.
11384 * include/allocate_once.h: New file.
11385 * misc/allocate_once.c: Likewise.
11386 * misc/tst-allocate_once.c: Likewise.
11387 * misc/Makefile (routines): Add allocate_once.
11388 (tests-internal): Add tst-allocate_once.
11389 (generated): Add tst-allocate_once.mtrace,
11390 tst-allocate_once-mem.out.
11391 (tests-special): Add tst-allocate_once-mem.out.
11392 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11393 (tst-allocate_once-mem.out): Call mtrace.
11394 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11395
11396 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11397
11398 [BZ #23196]
11399 * string/test-memcpy.c (do_test1): New function.
11400 (test_main): Call it.
11401
11402 2018-05-23 Andreas Schwab <schwab@suse.de>
11403
11404 [BZ #23196]
11405 CVE-2018-11237
11406 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11407 (L(preloop_large)): Save initial destination pointer in %r11 and
11408 use it instead of %rax after the loop.
11409 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11410
11411 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11412
11413 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11414 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11415 -I../soft-fp. Moved from ....
11416 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11417 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11418 * sysdeps/aarch64/e_sqrtl.c: ... here.
11419 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11420 * sysdeps/aarch64/sfp-machine.h: ... here.
11421
11422 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11423 -Wmaybe-uninitialized around access to fq[0].
11424 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11425 Likewise.
11426
11427 [BZ #18471]
11428 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11429 aliases for non-libc case of versioned symbols.
11430 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11431 (llseek): Define as compat symbol if
11432 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11433 with link warning.
11434 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11435 Make into a compat symbol, disabled for minimum symbol version
11436 GLIBC_2.28 and later.
11437 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11438
11439 2018-05-22 Florian Weimer <fweimer@redhat.com>
11440
11441 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11442 not add -mpreferred-stack-boundary=4.
11443 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11444 (stack-align-test-flags): Likewise.
11445 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11446 Likewise.
11447 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11448 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11449 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11450 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11451 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11452 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11453 (CFLAGS-tst-align2.c): Likewise.
11454
11455 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11456
11457 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11458 (index_arch_Prefer_FSRM): Likewise.
11459 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11460 Also check Prefer_FSRM.
11461 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11462 Also return OPTIMIZE (erms) for Prefer_FSRM.
11463
11464 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11465
11466 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11467 (index_cpu_FSRM): Likewise.
11468 (reg_FSRM): Likewise.
11469
11470 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11471
11472 * math/gen-tgmath-tests.py: Import sys.
11473 (Tests.__init__): Initialize macros_seen.
11474 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11475 if requested to do so for this macro.
11476 (Tests.add_all_tests): Take argument for macro for which to
11477 generate tests.
11478 (Tests.check_macro_list): New function.
11479 (main): Handle check-list argument and argument specifying macro
11480 for which to generate tests.
11481 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11482 [PYTHON] (tgmath3-macro-tests): Likewise.
11483 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11484 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11485 not test-tgmath3.c.
11486 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11487 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11488 to CFLAGS.
11489 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11490 [PYTHON] ($(foreach
11491 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11492 rule.
11493 [PYTHON] (tests-special): Add
11494 $(objpfx)test-tgmath3-macro-list.out.
11495 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11496
11497 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11498 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11499 later.
11500
11501 [BZ #22639]
11502 * time/tzset.c (SECSPERDAY): Cast to time_t.
11503 * time/tst-y2039.c: New file.
11504 * time/Makefile (tests): Add tst-y2039.
11505
11506 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11507
11508 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11509 (PREFETCH_ONE_SET): Remove duplicate line.
11510
11511 2018-05-17 Florian Weimer <fweimer@redhat.com>
11512
11513 * sysdeps/generic/math-type-macros-double.h: Include
11514 <math-nan-payload-double.h> after <libm-alias-double.h>.
11515 * sysdeps/generic/math-type-macros-float.h: Include
11516 <math-nan-payload-float.h> after <libm-alias-float.h>.
11517 * sysdeps/generic/math-type-macros-float128.h: Include
11518 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11519 * sysdeps/generic/math-type-macros-ldouble.h: Include
11520 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11521
11522 2018-05-17 Andreas Schwab <schwab@suse.de>
11523
11524 * resolv/res_send.c (__res_context_send): Don't set errno when
11525 returing error after malloc failure.
11526
11527 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11528
11529 * nptl/allocatestack.c (allocate_stack): Remove the
11530 !__ASSUME_PRIVATE_FUTEX paths.
11531 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11532 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11533 Likewise.
11534 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11535 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11536 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11537 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11538 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11539 !__ASSUME_PRIVATE_FUTEX path.
11540 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11541 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11542 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11543 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11544 !__ASSUME_PRIVATE_FUTEX macros.
11545 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11546 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11547 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11548 * sysdeps/unix/sysv/linux/kernel-features.h
11549 (__ASSUME_PRIVATE_FUTEX): Removed.
11550
11551 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11552
11553 * math/Makefile (libm-narrow-fns): Add div.
11554 (libm-test-funcs-narrow): Likewise.
11555 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11556 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11557 * math/gen-auto-libm-tests.c (test_functions): Add div.
11558 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11559 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11560 (NARROW_DIV_TRIVIAL): Likewise.
11561 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11562 macro.
11563 (__ddivl): Likewise.
11564 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11565 ddiv.
11566 (CFLAGS-nldbl-ddiv.c): New variable.
11567 (CFLAGS-nldbl-fdiv.c): Likewise.
11568 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11569 __nldbl_ddivl.
11570 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11571 prototype.
11572 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11573 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11574 * math/auto-libm-test-in: Add tests of div.
11575 * math/auto-libm-test-out-narrow-div: New generated file.
11576 * math/libm-test-narrow-div.inc: New file.
11577 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11578 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11579 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11580 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11581 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11582 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11583 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11584 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11585 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11586 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11587 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11588 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11589 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11590 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11591 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11592 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11593 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11594 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11595 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11596 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11621
11622 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11623
11624 [BZ #23178]
11625 * nscd/nscd-client.h (sendfileall): Remove prototype.
11626 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11627 (handle_request): Use writeall instead of sendfileall.
11628 * nscd/aicache.c (addhstaiX): Likewise.
11629 * nscd/grpcache.c (cache_addgr): Likewise.
11630 * nscd/hstcache.c (cache_addhst): Likewise.
11631 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11632 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11633 * nscd/pwdcache.c (cache_addpw): Likewise.
11634 * nscd/servicescache.c (cache_addserv): Likewise.
11635 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11636 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11637 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11638 Remove define.
11639
11640 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11641
11642 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11643 Include <string/strncat.c>.
11644 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11645 alias.
11646 (__GI___strncat): New hidden alias.
11647
11648 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11649
11650 * sysdeps/mips/mips32/libm-test-ulps: Update.
11651 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11652
11653 2018-05-16 Florian Weimer <fweimer@redhat.com>
11654
11655 * support/Makefile (libsupport-routines): Add support_quote_blob,
11656 support_test_compare_blob.
11657 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11658 * support/check.h (TEST_COMPARE_BLOB): Define.
11659 (support_test_compare_blob): Declare.
11660 * support/support.h (support_quote_blob): Declare.
11661 * support/support_quote_blob.c: New file.
11662 * support/support_test_compare_blob.c: Likewise.
11663 * support/tst-support_quote_blob.c: Likewise.
11664 * support/tst-test_compare_blob.c: Likewise.
11665
11666 2018-05-16 Florian Weimer <fweimer@redhat.com>
11667
11668 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11669 of <strtod_nan_double.h>.
11670 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11671 instead of SET_MANTISSA.
11672 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11673 of include <strtod_nan_float.h>.
11674 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11675 instead of <strtod_nan_ldouble.h>.
11676 * stdlib/strtod_nan_double.h: Move to ...
11677 * sysdeps/generic/math-nan-payload-double.h: ... here.
11678 (FLOAT): Remove definition.
11679 (SET_MANTISSA): Rename to ...
11680 (SET_NAN_PAYLOAD): ... this.
11681 * stdlib/strtod_nan_float.h: Move to ...
11682 * sysdeps/generic/math-nan-payload-float.h: ... here.
11683 (FLOAT): Remove definition.
11684 (SET_MANTISSA): Rename to ...
11685 (SET_NAN_PAYLOAD): ... this.
11686 * sysdeps/generic/math-type-macros-double.h: Include
11687 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11688 instead of <math-svid-compat.h>.
11689 * sysdeps/generic/math-type-macros-float.h: Include
11690 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11691 instead of <math-svid-compat.h>.
11692 * sysdeps/generic/math-type-macros-float128.h: Include
11693 <math-nan-payload-float128.h>.
11694 * sysdeps/generic/math-type-macros-ldouble.h: Include
11695 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11696 instead of <math-svid-compat.h>.
11697 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11698 check for definition.
11699 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11700 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11701 Include <ieee754_float128.h>.
11702 (FLOAT): Remove definition.
11703 (SET_MANTISSA): Rename to ...
11704 (SET_NAN_PAYLOAD): ... this.
11705 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11706 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11707 Do not include <float128_private.h>.
11708 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11709 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11710 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11711 (FLOAT): Remove definition.
11712 (SET_MANTISSA): Rename to ...
11713 (SET_NAN_PAYLOAD): ... this.
11714 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11715 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11716 (FLOAT): Remove definition.
11717 (SET_MANTISSA): Rename to ...
11718 (SET_NAN_PAYLOAD): ... this.
11719 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11720 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11721 (FLOAT): Remove definition.
11722 (SET_MANTISSA): Rename to ...
11723 (SET_NAN_PAYLOAD): ... this.
11724 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11725 of "../stdlib/strtod_nan_double.h".
11726 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11727 of "../stdlib/strtod_nan_float.h".
11728 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11729 instead of "../stdlib/strtod_nan_ldouble.h".
11730 * manual/arith.texi (Parsing of Floats): Adjust comment.
11731
11732 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11733
11734 * math/Makefile (libm-narrow-fns): Add mul.
11735 (libm-test-funcs-narrow): Likewise.
11736 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11737 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11738 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11739 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11740 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11741 (NARROW_MUL_TRIVIAL): Likewise.
11742 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11743 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11744 macro.
11745 (__dmull): Likewise.
11746 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11747 dmul.
11748 (CFLAGS-nldbl-dmul.c): New variable.
11749 (CFLAGS-nldbl-fmul.c): Likewise.
11750 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11751 __nldbl_dmull.
11752 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11753 prototype.
11754 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11755 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11756 * math/auto-libm-test-in: Add tests of mul.
11757 * math/auto-libm-test-out-narrow-mul: New generated file.
11758 * math/libm-test-narrow-mul.inc: New file.
11759 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11760 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11761 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11762 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11763 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11764 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11765 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11766 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11767 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11768 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11769 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11770 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11771 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11772 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11773 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11774 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11775 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11776 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11777 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11778 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11803
11804 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11805
11806 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11807 with *%eax in call.
11808
11809 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11810
11811 * sysdeps/i386/ldsodefs.h: Removed.
11812 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11813 * sysdeps/x86/ldsodefs.h: This.
11814 (La_i86_regs): New.
11815 (La_i86_retval): Likewise.
11816 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11817 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11818
11819 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11820
11821 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11822 unnecessary testl.
11823
11824 2018-05-13 Alan Modra <amodra@gmail.com>
11825
11826 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11827 R_PARISC_TLS_DTPOFF32 reloc addend.
11828
11829 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11830
11831 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11832 * math/math.h: Restrict the prototype definition for the functions
11833 issignaling(_Float128) and iszero(_Float128); and template
11834 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11835 __HAVE_FLOAT128_UNLIKE_LDBL.
11836 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11837 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11838 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11839 __f128() constants; define the type _Float128 as long double;
11840 and reuse long double in __CFLOAT128.
11841
11842 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11843
11844 * sysdeps/generic/math_private.h: Do not include
11845 <math-barriers.h>.
11846 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11847 <math_private.h>.
11848 * math/fromfp.h: Include <math-barriers.h>.
11849 * math/math-narrow.h: Likewise.
11850 * math/s_nextafter.c: Likewise.
11851 * math/s_nexttowardf.c: Likewise.
11852 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11853 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11854 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11855 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11856 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11857 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11858 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11859 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11860 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11861 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11862 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11863 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11864 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11865 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11866 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11867 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11868 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11869 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11870 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11871 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11872 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11873 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11874 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11875 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11876 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11877 * sysdeps/ieee754/k_standardl.c: Likewise.
11878 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11879 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11880 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11881 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11882 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11883 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11884 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11885 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11886 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11887 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11888 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11889 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11890 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11891 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11892 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11893 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11894 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11895 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11896 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11897 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11898 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11899 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11900
11901 2018-05-11 Florian Weimer <fweimer@redhat.com>
11902
11903 Use 64-bit epoch values in the time zone file parser.
11904 * include/time.h (internal_time_t): Define.
11905 (__tzfile_compute): Use it.
11906 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11907 member.
11908 (transitions): Switch to internal_time_t.
11909 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11910 types.
11911 (__tzfile_compute): Use internal_time_t for timer argument. Check
11912 for truncation before calling __offtime.
11913
11914 2018-05-11 Florian Weimer <fweimer@redhat.com>
11915
11916 [BZ #23166]
11917 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11918 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11919 Likewise.
11920 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11921 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11922 export without --enable-obsolete-rpc.
11923 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11924 symbol. This should not have been exported, ever.
11925
11926 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11927
11928 [BZ #23152]
11929 * localedata/locales/gd_GB (abmon): Fix typo in May:
11930 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11931
11932 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11933
11934 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11935 Use multiple registers to copy data in loop tail.
11936
11937 * sysdeps/aarch64/multiarch/memmove_falkor.S
11938 (__memmove_falkor): Use multiple registers to move data in
11939 loop tail.
11940
11941 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11942
11943 * math/math-underflow.h: New file.
11944 * sysdeps/generic/math_private.h: Do not include <float.h>.
11945 (fabs_tg): Remove macro. Moved to math-underflow.h.
11946 (min_of_type_f): Likewise.
11947 (min_of_type_): Likewise.
11948 (min_of_type_l): Likewise.
11949 (min_of_type_f128): Likewise.
11950 (min_of_type): Likewise.
11951 (math_check_force_underflow): Likewise.
11952 (math_check_force_underflow_nonneg): Likewise.
11953 (math_check_force_underflow_complex): Likewise.
11954 * math/e_exp2_template.c: Include <math-underflow.h>.
11955 * math/k_casinh_template.c: Likewise.
11956 * math/s_catan_template.c: Likewise.
11957 * math/s_catanh_template.c: Likewise.
11958 * math/s_ccosh_template.c: Likewise.
11959 * math/s_cexp_template.c: Likewise.
11960 * math/s_clog10_template.c: Likewise.
11961 * math/s_clog_template.c: Likewise.
11962 * math/s_csin_template.c: Likewise.
11963 * math/s_csinh_template.c: Likewise.
11964 * math/s_csqrt_template.c: Likewise.
11965 * math/s_ctan_template.c: Likewise.
11966 * math/s_ctanh_template.c: Likewise.
11967 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11968 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11969 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11970 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11971 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11972 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11973 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11974 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11975 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11976 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11977 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11978 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11979 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11980 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11981 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11982 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11983 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11984 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11985 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11986 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11987 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11988 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11989 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11990 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11991 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11992 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11993 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11994 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11995 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11996 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11997 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11998 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11999 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12000 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12001 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12002 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12003 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12004 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12005 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12006 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12007 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12008 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12009 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12010 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12011 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12012 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12013 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12014 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12015 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12016 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12017 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12018 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12019 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12020 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12021 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12022 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12023 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12024 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12025 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12026 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12027 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12028 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12029 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12030 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12031 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12032 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12033 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12034 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12035 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12036 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12037 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12038 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12039 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12040 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12041 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12042 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12043 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12044 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12045 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12046 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12047 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12048 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12049 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12050 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12051
12052 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12053
12054 * sysdeps/generic/math-barriers.h: New file.
12055 * sysdeps/generic/math_private.h [!math_opt_barrier]
12056 (math_opt_barrier): Move to math-barriers.h.
12057 [!math_opt_barrier] (math_force_eval): Likewise.
12058 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12059 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12060 math-barriers.h.
12061 (math_force_eval): Likewise.
12062 * sysdeps/alpha/fpu/math-barriers.h: New file.
12063 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12064 math-barriers.h.
12065 (math_force_eval): Likewise.
12066 * sysdeps/x86/fpu/math-barriers.h: New file.
12067 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12068 math-barriers.h.
12069 (math_force_eval): Likewise.
12070 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12071 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12072 multiple-include guard for rename.
12073 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12074 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12075 math-barriers.h.
12076 (math_force_eval): Likewise.
12077
12078 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12079
12080 [BZ #22786]
12081 CVE-2018-11236
12082 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12083 computation.
12084 * stdlib/Makefile (test-bz22786): New test.
12085 * stdlib/test-bz22786.c: New test.
12086
12087 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12088
12089 * include/math-narrow-eval.h: New file. Contents moved from ....
12090 * sysdeps/generic/math_private.h: ... here.
12091 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12092 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12093 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12094 * stdlib/strtod_l.c: Likewise.
12095 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12096 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12097 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12098 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12099 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12100 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12101 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12102 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12103 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12104 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12105 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12106 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12107 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12108 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12109 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12110 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12111 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12112 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12113 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12114 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12115 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12116 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12117 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12118 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12119 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12120 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12121 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12122 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12123 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12124
12125 2018-05-08 Andreas Schwab <schwab@suse.de>
12126
12127 * sysdeps/nptl/internaltypes.h: Fix comment.
12128
12129 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12130
12131 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12132 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12133 hidden.
12134
12135 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12136
12137 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12138 of I into loop header.
12139 * benchtests/bench-memmove-walk.c
12140 (test_main): Likewise.
12141
12142 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12143
12144 Revert:
12145 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12146 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12147
12148 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12149
12150 [BZ #20419]
12151 * elf/dl-load.c (open_verify): Fix stack overflow.
12152 * elf/Makefile (tst-big-note): New test.
12153 * elf/tst-big-note-lib.S: New.
12154 * elf/tst-big-note.c: New.
12155
12156 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12157
12158 * scripts/abilist.awk: Ignore absolute symbols.
12159 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12160 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12161 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12162 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12163 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12164 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12165 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12166 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12167 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12168 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12169 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12170 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12206 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12207 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12212 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12213 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12227 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12228 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12233 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12251 Likewise.
12252 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12265 Likewise.
12266 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12293 Likewise.
12294 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12314 Likewise.
12315 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12347 Likewise.
12348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12353 Likewise.
12354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12355 Likewise.
12356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12358 Likewise.
12359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12361 Likewise.
12362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12363 Likewise.
12364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12367 Likewise.
12368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12369 Likewise.
12370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12371 Likewise.
12372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12376 Likewise.
12377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12383 Likewise.
12384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12386 Likewise.
12387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12388 Likewise.
12389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12390 Likewise.
12391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12392 Likewise.
12393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12396 Likewise.
12397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12398 Likewise.
12399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12400 Likewise.
12401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12404 Likewise.
12405 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12419 Likewise.
12420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12432 Likewise.
12433 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12458 Likewise.
12459 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12472 Likewise.
12473 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12511
12512 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12513
12514 [BZ #23137]
12515 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12516 Use atomic_load_acquire to load __tid.
12517
12518 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12519
12520 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12521 Restore the pointer into %rdx, after syscall and use %rdx,
12522 instead of %rsi, to restore context.
12523
12524 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12525
12526 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12527 Pop the pointer into %rdx after syscall and use %rdx, instead
12528 of %rsi, to restore context.
12529
12530 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12531
12532 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12533 handlers after setjmp.
12534 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12535 defined.
12536 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12537 <libc-pointer-arith.h>.
12538 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12539 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12540 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12541 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12542 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12543 * sysdeps/x86/__longjmp_cancel.S: New file.
12544 * sysdeps/x86/longjmp.c: Likewise.
12545 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12546
12547 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12548
12549 * NEWS: Add ustat.h deprecation entry.
12550 * bits/ustat.h: Remove file.
12551 * misc/sys/ustat.h: Likewise.
12552 * misc/ustat.h: Likewise.
12553 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12554 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12555 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12556 compatibility mode.
12557 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12558 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12559 generic Linux implementation.
12560
12561 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12562
12563 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12564 * math/w_expl_compat.c: Likewise.
12565 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12566
12567 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12568
12569 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12570
12571 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12572
12573 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12574 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12575 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12576 Remove.
12577 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12579 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12580 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12581 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12582 and SYSCALL_LL64.
12583
12584 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12585
12586 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12587
12588 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12589 * math/w_asin_template.c: Likewise.
12590 * math/w_atanh_template.c: Likewise.
12591
12592 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12593
12594 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12595 to powerpc/powerpc64/be for big-endian.
12596 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12597 little-endian.
12598
12599 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12600 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12601 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12602 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12603 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12604 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12605 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12606 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12607 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12608 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12609 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12610 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12611 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12612 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12613 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12614 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12615 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12616 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12617 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12618 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12619 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12620 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12621 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12622 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12623 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12624 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12625 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12626 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12627 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12628 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12629 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12630 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12631
12632 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12633 adjusted to imply powerpc64 and older processors on powerpc64/be.
12634 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12635 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12636 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12637 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12638 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12639 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12640 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12641 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12642 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12643 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12644 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12645 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12646 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12647 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12648 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12649 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12650 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12651 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12652 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12653 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12654 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12655 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12656 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12657 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12658 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12659 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12660 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12661 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12662 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12663 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12664 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12665
12666 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12667 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12668 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12669 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12670
12671 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12672 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12673 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12674 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12675
12676 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12677 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12678 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12679 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12680 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12681 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12682 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12683 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12684 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12685 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12686 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12687
12688 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12689 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12690 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12691 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12692 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12693 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12694 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12695 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12696 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12697 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12698 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12699
12700 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12701 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12702 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12703 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12704 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12705 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12706 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12707 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12708 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12709 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12710 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12711 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12712
12713 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12714 and adjusted to imply olders processors.
12715 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12716 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12717 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12718 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12719 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12720 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12721 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12722 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12723 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12724 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12725 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12726
12727 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12728 powerpc64/le.
12729 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12730 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12731
12732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12733 powerpc64le.
12734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12736
12737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12738 powerpc64/be.
12739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12742
12743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12744 powerpc64 and adjusted.
12745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12748 Likewise.
12749
12750 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12751
12752 * sysdeps/tile: Remove.
12753 * sysdeps/unix/sysv/linux/tile: Likewise.
12754 * README (tilegx-*-linux-gnu): Remove from list of supported
12755 configurations.
12756 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12757 contribution of support for generic Linux kernel syscall
12758 interface.
12759 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12760 tilegx configurations.
12761 (Config.install_linux_headers): Do not handle tile.
12762 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12763 in comment.
12764 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12765 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12766 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12767 conditional undefine and redefine.
12768 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12769 in comment.
12770 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12771 conditional undefine and redefine.
12772
12773 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12774
12775 * signal/tst-sigaction.c: New file to test BZ #23069.
12776 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12777
12778 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12779
12780 [BZ #22766]
12781 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12782 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12783 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12784 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12785
12786 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12787
12788 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12789 _DIRENT_MATCHES_DIRENT64 is not defined.
12790 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12791 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12792 is defined.
12793 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12794 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12795
12796 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12797
12798 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12799 version to GCC 8 branch.
12800
12801 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12802
12803 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12804 (check_no_hidden): Use type of original function when declaring
12805 alias.
12806
12807 * sysdeps/unix/sysv/linux/sys/ptrace.h
12808 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12809 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12810 (struct __ptrace_seccomp_metadata): New type.
12811 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12812 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12813 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12814 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12815 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12816 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12817 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12818 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12819 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12820 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12821 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12822 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12823 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12824 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12825 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12826 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12827
12828 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12829
12830 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12831 defined.
12832 * dirent/versionsort.c (versionsort): Likewise.
12833 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12834 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12835 * dirent/versionsort64.c (versionsort64): Likewise.
12836 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12837 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12838 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12839 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12840 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12841 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12842 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12843 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12844 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12845 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12848 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12849 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12850
12851 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12852
12853 * elf/elf.h (NT_PPC_PKEY): New macro.
12854
12855 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12856
12857 [BZ #23094]
12858 * localedata/locales/hr_HR: fix thousands_sep and
12859 mon_thousands_sep
12860
12861 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12862
12863 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12864 (XTABS): Define to TAB3.
12865
12866 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12867
12868 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12869
12870 * dirent/scandir-tail-common.c: New file.
12871 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12872 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12873 * dirent/scandir.c: Use scandir-tail-common.c.
12874 * dirent/scandirat.c: Likewise.
12875 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12876 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12877 if _DIRENT_MATCHES_DIRENT64 is defined.
12878 * dirent/scandirat64.c (scandirat64): Likewise.
12879 * include/dirent.h (__scandir_tail): Only define iff
12880 _DIRENT_MATCHES_DIRENT64 is not defined.
12881 (__scandir64_tail): Define regardless.
12882 (__scandirat, scandirat64): Remove libc_hidden_proto.
12883 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12884 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12886 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12887 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12888 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12889 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12890
12891 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12892
12893 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12894 New macro.
12895 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12896 Increase to 24.
12897 (_dl_aarch64_cap_flags): Add asimdfhm.
12898
12899 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12900
12901 * sysdeps/nios2/libm-test-ulps: Update.
12902
12903 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12904
12905 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12906 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12907
12908 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12909 requirements.
12910 (_DIRENT_MATCHES_DIRENT64): Undef
12911 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12912 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12913 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12914 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12915 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12916 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12917 use getdents64 syscalls as base.
12918 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12919 symbol if required.
12920 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12921 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12922 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12923 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12924 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12925 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12926 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12927 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12928 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12929 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12930 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12931
12932 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12933
12934 * scripts/test_printers_common.py (init_test): Disable lock elision.
12935
12936 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12937
12938 * math/test-tgmath.c (count_double, count_float,
12939 count_ldouble, count_cdouble, count_cfloat,
12940 count_cldouble): Use volatile int.
12941
12942 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12943
12944 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12945 (conformtest-xfail-conds): Add i386-gnu.
12946 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12947 i386-gnu.
12948 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12949 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12950 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12951 msqid_ds.msg_lrpid): Likewise.
12952 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12953 Likewise.
12954 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12955 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12956 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12957 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12958 unsigned int.
12959 (struct statvfs64): Likewise.
12960 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12961 Likewise.
12962 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12963 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12964 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12965 instead of wait_queue.
12966 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12967 instead of vm_area_struct.
12968 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12969 struct sched_param definition to it.
12970 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12971 * bits/types/struct_sched_param.h: New file.
12972 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12973 <bits/types/struct_sched_param.h> instead of <sched.h>.
12974 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12975 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12976 generic version but include <bits/pthreadtypes.h> to make struct
12977 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12978 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12979 non-compliant.
12980 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12981 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12982 [__USE_XOPEN] (OFDEL): New macro.
12983 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12984 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12985 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12986 prototypes.
12987 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12988 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12989 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12990 non-compliant.
12991 * sysdeps/i386/sys/ucontext.h: Likewise.
12992 * sysdeps/m68k/sys/ucontext.h: Likewise.
12993 * sysdeps/mips/sys/ucontext.h: Likewise.
12994 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12995 * sysdeps/mach/hurd/i386/Makefile
12996 (test-xfail-POSIX/fcntl.h/conform): Add.
12997 (test-xfail-POSIX/signal.h/conform): Add.
12998 (test-xfail-POSIX/semaphore.h/conform): Add.
12999 (test-xfail-POSIX/regex.h/conform): Add.
13000 (test-xfail-POSIX/aio.h/conform): Add.
13001 (test-xfail-POSIX/mqueue.h/conform): Add.
13002 (test-xfail-POSIX/sys/types.h/conform): Add.
13003 (test-xfail-UNIX98/fcntl.h/conform): Add.
13004 (test-xfail-UNIX98/netdb.h/conform): Add.
13005 (test-xfail-UNIX98/signal.h/conform): Add.
13006 (test-xfail-UNIX98/semaphore.h/conform): Add.
13007 (test-xfail-UNIX98/regex.h/conform): Add.
13008 (test-xfail-UNIX98/aio.h/conform): Add.
13009 (test-xfail-UNIX98/ftw.h/conform): Add.
13010 (test-xfail-UNIX98/mqueue.h/conform): Add.
13011 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13012 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13013 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13014 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13015 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13016 (test-xfail-UNIX98/sys/types.h/conform): Add.
13017 (test-xfail-UNIX98/stdlib.h/conform): Add.
13018 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13019 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13020 (test-xfail-POSIX2008/netdb.h/conform): Add.
13021 (test-xfail-POSIX2008/signal.h/conform): Add.
13022 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13023 (test-xfail-POSIX2008/regex.h/conform): Add.
13024 (test-xfail-POSIX2008/aio.h/conform): Add.
13025 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13026 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13027 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13028 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13029 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13030 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13031 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13032 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13033 (test-xfail-XOPEN2K/signal.h/conform): Add.
13034 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13035 (test-xfail-XOPEN2K/regex.h/conform): Add.
13036 (test-xfail-XOPEN2K/aio.h/conform): Add.
13037 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13038 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13039 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13040 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13041 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13042 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13043 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13044 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13045 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13046 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13047 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13048 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13049 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13050 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13051 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13052 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13053 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13054 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13055 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13056 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13057 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13058 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13059 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13060 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13061 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13062 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13063 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13064 i386-gnu.
13065 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13066 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13067
13068 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13069
13070 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13071 --enable-obsolete for powerpc-linux-gnuspe.
13072
13073 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13074
13075 * conform/data/sys/un.h-data: Allow sun_ prefix.
13076 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13077 prototypes.
13078 * sysdeps/mach/include/mach.h: Likewise.
13079 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13080 * sysdeps/mach/include/mach_error.h: Likewise.
13081
13082 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13083
13084 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13085 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13086 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13087 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13088
13089 2018-04-16 Andreas Schwab <schwab@suse.de>
13090
13091 [BZ #19527]
13092 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13093
13094 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13095
13096 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13097 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13098
13099 2018-04-12 DJ Delorie <dj@redhat.com>
13100
13101 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13102 version to 4.16.
13103
13104 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13105
13106 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13107 (struct kernel_sigaction): Use the same definition on 31bit as is used
13108 on 64bit.
13109
13110 2018-04-09 Florian Weimer <fweimer@redhat.com>
13111
13112 [BZ #23037]
13113 * resolv/res_send.c (send_dg): Use designated initializers instead
13114 of assignment to zero-initialize other fields of struct mmsghdr.
13115
13116 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13117
13118 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13119 __READDIR_ALIAS): Undefine after usage.
13120 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13121 __READDIR_R_ALIAS): Likewise.
13122 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13123 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13124 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13125 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13126 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13127 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13128 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13129 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13130 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13131 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13132 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13133 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13134 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13135 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13136 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13137 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13138 * sysdeps/unix/sysv/linux/readdir.c: New file.
13139 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13140 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13141 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13142
13143 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13144
13145 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13146
13147 * manual/charset.texi (Converting a Character): Fix typo.
13148
13149 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13150
13151 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13152
13153 * sysdeps/arm/libm-test-ulps: Update.
13154
13155 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13156 as base implementation.
13157 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13158 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13159 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13160 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13161 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13162 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13163 remove unrequired definitions and update comments.
13164 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13165 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13166 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13167 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13168 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13169 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13170 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13171 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13172 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13173 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13174 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13175 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13176 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13177 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13178 and RESET_SA_RESTORER hooks.
13179
13180 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13181
13182 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13183
13184 2018-04-05 Florian Weimer <fweimer@redhat.com>
13185
13186 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13187 integer overflow, memory leak on error, and indeterminate errno
13188 value. Add a null wide character to terminate the result string.
13189 * manual/charset.texi (Converting a Character): Mention embedded
13190 null bytes in the mbrtowc input string. Explain what happens in
13191 the -2 result case. Do not claim that mbrtowc is simple or
13192 obvious to use. Adjust the description of the code example. Use
13193 @code, not @var, for concrete variables.
13194
13195 2018-04-05 Florian Weimer <fweimer@redhat.com>
13196
13197 * manual/examples/mbstouwcs.c: New file.
13198 * manual/charset.texi (Converting a Character): Include it.
13199
13200 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13201
13202 * include/dirent.h (dirfd): Add hidden proto.
13203 * dirent/dirfd.c (dirfd): Add hidden def.
13204 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13205 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13206
13207 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13208
13209 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13210 sin, cos and sincos to 1 ULP.
13211
13212 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13213
13214 [BZ #19818]
13215 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13216 symbols.
13217 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13218 * elf/tst-absolute-sym.c: New file.
13219 * elf/tst-absolute-sym-lib.c: New file.
13220 * elf/tst-absolute-sym-lib.lds: New file.
13221 * elf/Makefile (tests): Add `tst-absolute-sym'.
13222 (modules-names): Add `tst-absolute-sym-lib'.
13223 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13224 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13225 ($(objpfx)tst-absolute-sym): New dependency.
13226
13227 [BZ #19818]
13228 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13229 parameter.
13230 (SYMBOL_ADDRESS): New macro.
13231 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13232 SYMBOL_ADDRESS for symbol address calculation.
13233 * elf/dl-runtime.c (_dl_fixup): Likewise.
13234 (_dl_profile_fixup): Likewise.
13235 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13236 * elf/rtld.c (dl_main): Likewise.
13237 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13238 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13239 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13240 (elf_machine_rela): Likewise.
13241 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13242 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13243 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13244 (elf_machine_rela): Likewise.
13245 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13246 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13247 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13248 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13249 Likewise.
13250 (elf_machine_reloc): Likewise.
13251 (elf_machine_got_rel): Likewise.
13252 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13253 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13254 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13255 Likewise.
13256 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13257 Likewise.
13258 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13259 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13260 Likewise.
13261 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13262 Likewise.
13263 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13264 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13265 Likewise.
13266 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13267 Likewise.
13268 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13269 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13270
13271 2018-04-04 Zack Weinberg <zackw@panix.com>
13272
13273 * sysdeps/generic/internal-signals.h: Include signal.h,
13274 sigsetops.h, and stdbool.h.
13275 (__libc_signal_block_all): Actually block all signals.
13276 (__libc_signal_block_app): Likewise.
13277 (__libc_signal_restore_set): Actually restore the signal mask.
13278
13279 2018-04-04 Florian Weimer <fweimer@redhat.com>
13280
13281 inet: Actually build and run tst-deadline.
13282 * inet/Makefile (tests-internal): Add tst-deadline and do not
13283 overwrite the variable.
13284 (tests-static-internal): Remove variable.
13285
13286 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13287
13288 [BZ #22947]
13289 * bits/uio-ext.h (RWF_APPEND): New.
13290 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13291 * manual/llio.texi: Document RWF_APPEND.
13292 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13293 (RWF_SUPPORTED): Add RWF_APPEND.
13294
13295 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13296
13297 [BZ #22391]
13298 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13299 check for internal nptl signals.
13300 * nptl/sigaction.c (__sigaction): Likewise.
13301 * signal/sigaddset.c (sigaddset): Likewise.
13302 * signal/sigdelset.c (sigdelset): Likewise.
13303 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13304 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13305 value.
13306 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13307 to filter out internal nptl signals.
13308 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13309 also check realtime signals using standard macros.
13310 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13311 __is_internal_signal, __libc_signal_block_all,
13312 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13313 * sysdeps/nptl/sigfillset.c: Remove file.
13314 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13315 Change return to bool.
13316 (__clear_internal_signals): Remove SIGTIMER clean since it is
13317 equal to SIGCANEL on Linux.
13318 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13319 signal set was constructed using standard functions.
13320
13321 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13322
13323 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13324 ifname is too long.
13325 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13326 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13327 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13328 hidden def.
13329 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13330 * signal/sigaddset.c: Include <sigsetopts.h>.
13331 * signal/sigdelset.c: Likewise.
13332
13333 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13334
13335 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13336 (__cos): Likewise.
13337 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13338 logic as sin and cos.
13339
13340 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13341
13342 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13343 inputs. Return correct sign.
13344 (do_sincos): Remove small input check before do_sin, let do_sin set
13345 the sign.
13346 (__sin): Likewise.
13347 (__cos): Likewise.
13348
13349 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13350
13351 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13352 (do_cos_slow): Likewise.
13353 (do_sin_slow): Likewise.
13354 (reduce_and_compute): Likewise.
13355 (slow): Likewise.
13356 (slow1): Likewise.
13357 (slow2): Likewise.
13358 (sloww): Likewise.
13359 (sloww1): Likewise.
13360 (sloww2): Likewise.
13361 (bslow): Likewise.
13362 (bslow1): Likewise.
13363 (bslow2): Likewise.
13364 (cslow2): Likewise.
13365
13366 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13367
13368 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13369 (do_cos): Remove corp parameter and calculations.
13370 (do_sin): Likewise.
13371 (do_sincos): Remove cor variable.
13372 (__sin): Use do_sincos for huge inputs.
13373 (__cos): Likewise.
13374 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13375 (reduce_and_compute_sincos): Remove unused function.
13376
13377 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13378
13379 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13380 reduce_sincos, improve accuracy to 136 bits.
13381 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13382 (__sin): Use improved reduction and simplified do_sincos calculation.
13383 (__cos): Likewise.
13384 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13385
13386 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13387
13388 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13389 (do_sincos_2): Likewise.
13390 (__sin): Remove middle range reduction case.
13391 (__cos): Likewise.
13392 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13393 reduction case.
13394
13395 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13396
13397 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13398 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13399 inputs.
13400 (__cos): Likewise.
13401 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13402
13403 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13404
13405 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13406 version to 4.16
13407
13408 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13409
13410 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13411 Remove definitions.
13412 (opendir_oflags): Use O_DIRECTORY regardless.
13413 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13414 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13415
13416 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13417
13418 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13419 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13420 macros.
13421 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13422 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13423 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13424 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13425 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13426 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13427
13428 * htl/Makefile: Bump licence to LGPL 2.1+.
13429 * htl/alloca_cutoff.c: Likewise.
13430 * htl/cthreads-compat.c: Likewise.
13431 * htl/lockfile.c: Likewise.
13432 * htl/pt-alloc.c: Likewise.
13433 * htl/pt-cancel.c: Likewise.
13434 * htl/pt-cleanup.c: Likewise.
13435 * htl/pt-create.c: Likewise.
13436 * htl/pt-dealloc.c: Likewise.
13437 * htl/pt-detach.c: Likewise.
13438 * htl/pt-exit.c: Likewise.
13439 * htl/pt-getattr.c: Likewise.
13440 * htl/pt-initialize.c: Likewise.
13441 * htl/pt-internal.h: Likewise.
13442 * htl/pt-join.c: Likewise.
13443 * htl/pt-self.c: Likewise.
13444 * htl/pt-setcancelstate.c: Likewise.
13445 * htl/pt-setcanceltype.c: Likewise.
13446 * htl/pt-sigmask.c: Likewise.
13447 * htl/pt-spin-inlines.c: Likewise.
13448 * htl/pt-testcancel.c: Likewise.
13449 * htl/pt-yield.c: Likewise.
13450 * htl/tests/test-1.c: Likewise.
13451 * htl/tests/test-10.c: Likewise.
13452 * htl/tests/test-11.c: Likewise.
13453 * htl/tests/test-12.c: Likewise.
13454 * htl/tests/test-13.c: Likewise.
13455 * htl/tests/test-14.c: Likewise.
13456 * htl/tests/test-15.c: Likewise.
13457 * htl/tests/test-16.c: Likewise.
13458 * htl/tests/test-17.c: Likewise.
13459 * htl/tests/test-2.c: Likewise.
13460 * htl/tests/test-3.c: Likewise.
13461 * htl/tests/test-4.c: Likewise.
13462 * htl/tests/test-5.c: Likewise.
13463 * htl/tests/test-6.c: Likewise.
13464 * htl/tests/test-7.c: Likewise.
13465 * htl/tests/test-8.c: Likewise.
13466 * htl/tests/test-9.c: Likewise.
13467 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13468 * sysdeps/htl/bits/cancelation.h: Likewise.
13469 * sysdeps/htl/bits/pthread-np.h: Likewise.
13470 * sysdeps/htl/bits/pthread.h: Likewise.
13471 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13472 * sysdeps/htl/bits/semaphore.h: Likewise.
13473 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13474 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13475 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13476 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13477 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13478 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13479 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13480 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13481 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13482 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13483 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13484 * sysdeps/htl/old_pt-atfork.c: Likewise.
13485 * sysdeps/htl/pt-atfork.c: Likewise.
13486 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13487 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13488 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13489 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13490 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13491 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13492 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13493 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13494 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13495 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13496 * sysdeps/htl/pt-attr-init.c: Likewise.
13497 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13498 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13499 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13500 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13501 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13502 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13503 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13504 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13505 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13506 * sysdeps/htl/pt-attr.c: Likewise.
13507 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13508 * sysdeps/htl/pt-barrier-init.c: Likewise.
13509 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13510 * sysdeps/htl/pt-barrier.c: Likewise.
13511 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13512 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13513 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13514 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13515 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13516 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13517 * sysdeps/htl/pt-cond-init.c: Likewise.
13518 * sysdeps/htl/pt-cond-signal.c: Likewise.
13519 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13520 * sysdeps/htl/pt-cond-wait.c: Likewise.
13521 * sysdeps/htl/pt-cond.c: Likewise.
13522 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13523 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13524 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13525 * sysdeps/htl/pt-condattr-init.c: Likewise.
13526 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13527 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13528 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13529 * sysdeps/htl/pt-equal.c: Likewise.
13530 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13531 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13532 * sysdeps/htl/pt-getschedparam.c: Likewise.
13533 * sysdeps/htl/pt-getspecific.c: Likewise.
13534 * sysdeps/htl/pt-init-specific.c: Likewise.
13535 * sysdeps/htl/pt-key-create.c: Likewise.
13536 * sysdeps/htl/pt-key-delete.c: Likewise.
13537 * sysdeps/htl/pt-key.h: Likewise.
13538 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13539 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13540 * sysdeps/htl/pt-mutex-init.c: Likewise.
13541 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13542 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13543 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13544 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13545 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13546 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13547 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13548 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13549 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13550 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13551 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13552 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13553 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13554 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13555 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13556 * sysdeps/htl/pt-mutexattr.c: Likewise.
13557 * sysdeps/htl/pt-once.c: Likewise.
13558 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13559 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13560 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13561 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13562 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13563 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13564 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13565 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13566 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13567 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13568 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13569 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13570 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13571 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13572 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13573 * sysdeps/htl/pt-setschedparam.c: Likewise.
13574 * sysdeps/htl/pt-setschedprio.c: Likewise.
13575 * sysdeps/htl/pt-setspecific.c: Likewise.
13576 * sysdeps/htl/pt-spin.c: Likewise.
13577 * sysdeps/htl/pt-startup.c: Likewise.
13578 * sysdeps/htl/pthread.h: Likewise.
13579 * sysdeps/htl/sem-close.c: Likewise.
13580 * sysdeps/htl/sem-destroy.c: Likewise.
13581 * sysdeps/htl/sem-getvalue.c: Likewise.
13582 * sysdeps/htl/sem-init.c: Likewise.
13583 * sysdeps/htl/sem-open.c: Likewise.
13584 * sysdeps/htl/sem-post.c: Likewise.
13585 * sysdeps/htl/sem-timedwait.c: Likewise.
13586 * sysdeps/htl/sem-trywait.c: Likewise.
13587 * sysdeps/htl/sem-unlink.c: Likewise.
13588 * sysdeps/htl/sem-wait.c: Likewise.
13589 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13590 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13591 * sysdeps/mach/htl/pt-block.c: Likewise.
13592 * sysdeps/mach/htl/pt-spin.c: Likewise.
13593 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13594 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13595 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13596 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13597 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13598 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13599 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13600 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13601 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13602 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13603 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13604 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13605 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13606 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13607 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13608 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13609 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13610 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13611 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13612 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13613 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13614 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13615 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13616 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13617 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13618 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13619 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13620 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13621 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13622 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13623 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13624 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13625 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13626 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13627 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13628 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13629 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13630 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13631 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13632 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13633 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13634 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13635 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13636
13637 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13638 * README: Remove the mention of out-of-tree patches needed for
13639 GNU/Hurd.
13640
13641 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13642 (UTIME_NOW, UTIME_OMIT): Define macros.
13643
13644 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13645 instead of pthread_detach.
13646 (__cthread_fork): Call __pthread_create instead of pthread_create.
13647 (__cthread_keycreate): Call __pthread_key_create instead of
13648 pthread_key_create.
13649 (__cthread_getspecific): Call __pthread_getspecific instead of
13650 pthread_getspecific.
13651 (__cthread_setspecific): Call __pthread_setspecific instead of
13652 pthread_setspecific.
13653 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13654 __pthread_mutex_unlock instead of pthread_mutex_lock and
13655 pthread_mutex_unlock.
13656 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13657 ___pthread_get_cleanup_stack.
13658 (__pthread_get_cleanup_stack): New strong alias.
13659 * htl/pt-create.c: Include <pthreadP.h>.
13660 (entry_point): Call __pthread_exit instead of pthread_exit.
13661 (pthread_create): Rename to __pthread_create.
13662 (pthread_create): New strong alias.
13663 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13664 (pthread_detach): New strong alias.
13665 (__pthread_detach): Call __pthread_cond_broadcast instead of
13666 pthread_cond_broadcast.
13667 * htl/pt-exit.c: Include <pthreadP.h>.
13668 (__pthread_exit): Call __pthread_setcancelstate and
13669 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13670 __pthread_get_cleanup_stack.
13671 * htl/pt-testcancel.c: Include <pthreadP.h>.
13672 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13673 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13674 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13675 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13676 pthread_attr_getstacksize.
13677 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13678 Rename to __pthread_attr_getstackaddr.
13679 (pthread_attr_getstackaddr): New strong alias.
13680 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13681 Rename to __pthread_attr_getstacksize.
13682 (pthread_attr_getstacksize): New strong alias.
13683 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13684 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13685 (pthread_attr_setstack): New strong alias.
13686 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13687 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13688 pthread_attr_getstacksize, pthread_attr_setstacksize and
13689 pthread_attr_setstackaddr.
13690 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13691 Rename to __pthread_attr_setstackaddr.
13692 (pthread_attr_setstackaddr): New strong alias.
13693 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13694 Rename to __pthread_attr_setstacksize.
13695 (pthread_attr_setstacksize): New strong alias.
13696 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13697 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13698 pthread_exit.
13699 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13700 (__pthread_key_create): New hidden def.
13701 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13702 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13703 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13704 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13705 __pthread_setspecific, __pthread_setcancelstate,
13706 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13707 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13708 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13709 declarations.
13710 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13711 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13712 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13713 (pthread_attr_setstackaddr): New strong alias.
13714 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13715 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13716 (pthread_attr_setstacksize): New strong alias.
13717 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13718 (call_exit): Call __pthread_exit instead of pthread_exit.
13719 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13720 (_pthread_mutex_init): New hidden definition.
13721 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13722 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13723 instead of pthread_attr_init and pthread_attr_setstack.
13724
13725 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13726 __vm_deallocate instead of vm_allocate and vm_deallocate.
13727 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13728 setenv.
13729 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13730 of geteuid.
13731 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13732 strdup.
13733 * hurd/siginfo.c: Include <libioP.h>.
13734 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13735 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13736 munmap.
13737 * mach/devstream.c: Include <libioP.h>.
13738 (dealloc_ref): Call __mach_port_deallocate instead of
13739 mach_port_deallocate.
13740 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13741 Call __mach_port_deallocate instead of mach_port_deallocate.
13742 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13743 pathconf.
13744 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13745 munmap.
13746 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13747 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13748 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13749 of munmap.
13750 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13751 of close.
13752 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13753 instead of sysconf.
13754 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13755 __clock_gettime instead of clock_gettime.
13756 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13757 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13758 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13759 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13760 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13761 tcgetattr.
13762 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13763 __clock_gettime and __nanosleep instead of clock_gettime and
13764 nanosleep.
13765 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13766 __hurd_catch_signal.
13767 (hurd_catch_signal): New strong alias.
13768 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13769 __hurd_catch_signal instead of hurd_catch_signal.
13770 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13771 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13772 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13773 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13774 (_hurd_thread_sigstate): Add hidden def.
13775 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13776 mutex_unlock.
13777 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13778 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13779 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13780 __hurd_file_name_path_lookup.
13781 (hurd_file_name_path_lookup): New strong alias.
13782 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13783 hurd_file_name_path_lookup.
13784 * mach/errstring.c (mach_error_type): Add hidden def.
13785 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13786 * mach/mutex-init.c (__mutex_init): Add hidden def.
13787 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13788 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13789 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13790 * sysdeps/mach/hurd/getcwd.c
13791 (_hurd_canonicalize_directory_name_internal): Rename to
13792 __hurd_canonicalize_directory_name_internal.
13793 (_hurd_canonicalize_directory_name_internal): New strong alias.
13794 (__canonicalize_directory_name_internal, __getcwd): Call
13795 __hurd_canonicalize_directory_name_internal instead of
13796 _hurd_canonicalize_directory_name_internal.
13797 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13798 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13799 hidden defs.
13800 * sysdeps/hurd/include/hurd.h: New file.
13801 * sysdeps/hurd/include/hurd/fd.h: New file.
13802 * sysdeps/hurd/include/hurd/signal.h: New file.
13803 * sysdeps/mach/include/lock-intern.h: New file.
13804 * sysdeps/mach/include/mach.h: New file.
13805 * sysdeps/mach/include/mach/mig_support.h: New file.
13806 * sysdeps/mach/include/mach_error.h: New file.
13807 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13808 prototype.
13809 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13810 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13811 _HEADER_H_HIDDEN_DEF macro.
13812 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13813 _hurd_fd_error_signal): Add hidden prototype.
13814 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13815 hidden def.
13816 * libio/iolibio.h (_IO_puts): New hidden prototype.
13817 * libio/ioputs.c (_IO_puts): New hidden def.
13818 * sysdeps/mach/hurd/localplt.data: New file.
13819
13820 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13821 Amos Jeffries <squid3@treenet.co.nz>
13822 David Michael <fedora.dm0@gmail.com>
13823 Marco Gerards <marco@gnu.org>
13824 Marcus Brinkmann <marcus@gnu.org>
13825 Neal H. Walfield <neal@gnu.org>
13826 Pino Toscano <toscano.pino@tiscali.it>
13827 Richard Braun <rbraun@sceen.net>
13828 Roland McGrath <roland@gnu.org>
13829 Samuel Thibault <samuel.thibault@ens-lyon.org>
13830 Thomas DiModica <ricinwich@yahoo.com>
13831 Thomas Schwinge <tschwinge@gnu.org>
13832
13833 * htl: New directory.
13834 * sysdeps/htl: New directory.
13835 * sysdeps/hurd/htl: New directory.
13836 * sysdeps/i386/htl: New directory.
13837 * sysdeps/mach/htl: New directory.
13838 * sysdeps/mach/hurd/htl: New directory.
13839 * sysdeps/mach/hurd/i386/htl: New directory.
13840 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13841 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13842 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13843
13844 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13845
13846 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13847 signals in thread created for runing timers.
13848
13849 2018-04-01 Florian Weimer <fweimer@redhat.com>
13850
13851 * support/support_format_addrinfo.c (support_format_addrinfo):
13852 Include unknown error number in formatted result.
13853
13854 2018-03-29 Florian Weimer <fweimer@redhat.com>
13855
13856 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13857 capture SIGBUS.
13858
13859 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13860
13861 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13862 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13863 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13864 (__ASSUME_CLONE_BACKWARDS): Define.
13865
13866 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13867
13868 [BZ #23024]
13869 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13870 early when linux sentinel value is set.
13871
13872 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13873
13874 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13875
13876 2018-03-27 Andreas Schwab <schwab@suse.de>
13877
13878 [BZ #23005]
13879 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13880 allocation of private copy of nsaddr_list fails.
13881
13882 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13883
13884 [BZ #16552]
13885 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13886 * sysdeps/unix/sysv/linux/umount.c: ... here.
13887 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13888 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13889 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13890 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13892 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13893 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13894
13895 2018-03-26 Andreas Schwab <schwab@suse.de>
13896
13897 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13898 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13899 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13900 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13901 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13902 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13903 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13904 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13905 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13906 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13907 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13908 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13909 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13910 (R_RISCV_NUM): Define.
13911
13912 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13913
13914 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13915 TLS declaration of errno.
13916 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13917 __libc_setup_tls.
13918 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13919 (ARCH_SETUP_TLS): Likewise.
13920 * sysdeps/mach/hurd/libc-start.h: New file copied from
13921 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13922 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13923 instead of __libc_setup_tls.
13924 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13925 __libc_setup_tls before initializing libpthread and running _hurd_init
13926 which starts the signal thread.
13927 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13928 Declare function.
13929 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13930
13931 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13932
13933 [BZ #22998]
13934 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13935 after it is defined.
13936
13937 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13938 Max Horn <max@quendi.de>
13939
13940 [BZ #22644]
13941 CVE-2017-18269
13942 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13943 branch conditions.
13944 * string/test-memmove.c (do_test2): New testcase.
13945
13946 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13947
13948 * sysdeps/generic/frame.h: Remove file.
13949 * sysdeps/arm/frame.h: Likewise.
13950 * sysdeps/hppa/frame.h: Likewise.
13951 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13952 macro.
13953 (GET_FRAME): Likewise.
13954 (GET_STACK): Likewise.
13955 (CALL_SIGHANDLER): Likewise.
13956 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13957 Likewise.
13958 (GET_FRAME): Likewise.
13959 (GET_STACK): Likewise.
13960 (CALL_SIGHANDLER): Likewise.
13961 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13962 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13963 (GET_FRAME): Likewise.
13964 (GET_STACK): Likewise.
13965 (CALL_SIGHANDLER): Likewise.
13966 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13967 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13968 (GET_FRAME): Likewise.
13969 (GET_STACK): Likewise.
13970 (ADVANCE_STACK_FRAME): Likewise.
13971 (CALL_SIGHANDLER): Likewise.
13972 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13973 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13974 (GET_FRAME): Likewise.
13975 (GET_STACK): Likewise.
13976 (CALL_SIGHANDLER): Likewise.
13977 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13978 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13979 (GET_FRAME): Likewise.
13980 (GET_STACK): Likewise.
13981 (CALL_SIGHANDLER): Likewise.
13982 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13983 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13984 (GET_FRAME): Likewise.
13985 (GET_STACK): Likewise.
13986 (CALL_SIGHANDLER): Likewise.
13987 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13988 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13989 (GET_FRAME): Likewise.
13990 (GET_STACK): Likewise.
13991 (CALL_SIGHANDLER): Likewise.
13992 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13993 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13994 (GET_FRAME): Likewise.
13995 (GET_STACK): Likewise.
13996 (CALL_SIGHANDLER): Likewise.
13997 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13998 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13999 (GET_FRAME): Likewise.
14000 (GET_STACK): Likewise.
14001 (CALL_SIGHANDLER): Likewise.
14002 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14003 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14004 (GET_FRAME): Likewise.
14005 (GET_STACK): Likewise.
14006 (CALL_SIGHANDLER): Likewise.
14007 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14008 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14009 (GET_FRAME): Likewise.
14010 (GET_STACK): Likewise.
14011 (CALL_SIGHANDLER): Likewise.
14012 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14013 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14014 (GET_FRAME): Likewise.
14015 (GET_STACK): Likewise.
14016 (CALL_SIGHANDLER): Likewise.
14017 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14018 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14019 (FIRST_FRAME_POINTER): Likewise.
14020 (ADVANCE_STACK_FRAME): Likewise.
14021 (GET_STACK): Likewise.
14022 (GET_FRAME): Likewise.
14023 (CALL_SIGHANDLER): Likewise.
14024 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14025 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14026 (ADVANCE_STACK_FRAME): Likewise.
14027 (GET_STACK): Likewise.
14028 (GET_FRAME): Likewise.
14029 (CALL_SIGHANDLER): Likewise.
14030 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14031 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14032 (GET_FRAME): Likewise.
14033 (GET_STACK): Likewise.
14034 (CALL_SIGHANDLER): Likewise.
14035 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14036 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14037 (GET_FRAME): Likewise.
14038 (GET_STACK): Likewise.
14039 (CALL_SIGHANDLER): Likewise.
14040
14041 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14042
14043 * sysdeps/x86_64/backtrace.c: Move to ....
14044 * debug/backtrace.c: ... here.
14045 * sysdeps/aarch64/backtrace.c: Remove file.
14046 * sysdeps/alpha/backtrace.c: Likewise.
14047 * sysdeps/hppa/backtrace.c: Likewise.
14048 * sysdeps/ia64/backtrace.c: Likewise.
14049 * sysdeps/mips/backtrace.c: Likewise.
14050 * sysdeps/nios2/backtrace.c: Likewise.
14051 * sysdeps/riscv/backtrace.c: Likewise.
14052 * sysdeps/sh/backtrace.c: Likewise.
14053 * sysdeps/tile/backtrace.c: Likewise.
14054
14055 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14056
14057 [BZ #22987]
14058 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14059 function.
14060 (fdimf): Likewise.
14061 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14062
14063 [BZ #17343]
14064 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14065 possibly overflowing computations.
14066
14067 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14068
14069 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14070 values from Linux-specific section now that it is in the GNU section.
14071 * sysdeps/gnu/errlist.c: Regenerate.
14072
14073 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14074
14075 * math/Makefile (libm-narrow-fns): Add sub.
14076 (libm-test-funcs-narrow): Likewise.
14077 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14078 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14079 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14080 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14081 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14082 (NARROW_SUB_TRIVIAL): Likewise.
14083 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14084 macro.
14085 (__dsubl): Likewise.
14086 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14087 dsub.
14088 (CFLAGS-nldbl-dsub.c): New variable.
14089 (CFLAGS-nldbl-fsub.c): Likewise.
14090 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14091 __nldbl_dsubl.
14092 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14093 prototype.
14094 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14095 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14096 * math/auto-libm-test-in: Add tests of sub.
14097 * math/auto-libm-test-out-narrow-sub: New generated file.
14098 * math/libm-test-narrow-sub.inc: New file.
14099 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14100 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14101 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14102 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14103 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14104 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14105 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14106 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14107 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14108 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14109 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14110 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14111 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14112 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14113 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14114 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14115 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14116 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14117 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14118 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14129 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14130 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14145
14146 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14147
14148 [BZ #20079]
14149 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14150
14151 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14152
14153 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14154
14155 2018-03-18 Richard Braun <rbraun@sceen.net>
14156
14157 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14158 thread reference.
14159
14160 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14161
14162 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14163 (__libc_cleanup_fct): Define function.
14164 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14165 __libc_cleanup_end): Rewrite implementation using
14166 __attribute__ ((__cleanup__)).
14167 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14168 * hurd/Makefile (routines): Add hurdlock.
14169 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14170 interface.
14171 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14172 * hurd/hurdpid.c: Include <lowlevellock.h>
14173 (_S_msg_proc_newids): Use lll_wait to synchronize.
14174 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14175 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14176 * mach/Makefile (lock-headers): Remove machine-lock.h.
14177 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14178 <machine-lock.h>.
14179 (__spin_lock_t): New type.
14180 (__SPIN_LOCK_INITIALIZER): New macro.
14181 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14182 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14183 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14184 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14185 (__mutex_init): Initialize with lll.
14186 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14187 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14188 needing lll.
14189 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14190 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14191 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14192 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14193 (__setpgid): Use lll for synchronization.
14194 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14195 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14196 instead of <cthreads.h>.
14197 (_IO_lock_inexpensive): New macro
14198 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14199 (__libc_lock_self0): New declaration.
14200 (__libc_lock_owner_self): New macro.
14201 (__libc_key_t): Remove type.
14202 (_LIBC_LOCK_INITIALIZER): New macro.
14203 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14204 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14205 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14206 __libc_lock_define_initialized_recursive,
14207 __rtld_lock_define_initialized_recursive,
14208 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14209 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14210 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14211 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14212 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14213 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14214 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14215 New macros.
14216 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14217 * hurd/hurdlock.c: New file.
14218 * hurd/hurdlock.h: New file.
14219 * mach/lowlevellock.h: New file
14220
14221 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14222
14223 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14224 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14225 when opening a symlink with O_NOFOLLOW.
14226 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14227 path when flags contains O_NOFOLLOW.
14228 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14229 if flags contains O_DIRECTORY and the result is a directory.
14230 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14231 oneself when the pointer given in D is nul (as set by ext2fs).
14232 * sysdeps/mach/hurd/mlockall.c: New file.
14233 * sysdeps/mach/hurd/munlockall.c: New file.
14234
14235 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14236
14237 * hurd/hurdsig.c: Include <pthread.h>.
14238 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14239 get the signal thread stack layout.
14240 * hurd/Makefile (headers): Remove threadvar.h.
14241 (inline-headers): Remove threadvar.h.
14242 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14243 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14244 __hurd_threadvar_max, __hurd_errno_location.
14245 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14246 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14247 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14248 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14249 unless TLS is not initialized yet, in which case we do not need a
14250 critical section yet anyway.
14251 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14252 <machine-sp.h>.
14253 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14254 declarations.
14255 (__hurd_threadvar_index): Remove enum.
14256 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14257 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14258 inlines.
14259 (__hurd_reply_port0): New variable declaration.
14260 (__hurd_local_reply_port): New macro.
14261 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14262 (interrupted_reply_port_location): Add thread_t parameter. Use it
14263 with THREAD_TCB to access thread-local variables.
14264 (_hurdsig_abort_rpcs): Pass ss->thread to
14265 interrupted_reply_port_location.
14266 (_hurd_internal_post_signal): Likewise.
14267 (_hurdsig_init): Use presence of cthread_fork instead of
14268 __hurd_threadvar_stack_mask to start signal thread by hand.
14269 Remove signal thread threadvar initialization.
14270 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14271 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14272 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14273 of threadvar.
14274 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14275 __libc_lock_self0.
14276 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14277 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14278 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14279 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14280 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14281 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14282 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14283 define variables.
14284 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14285 <hurd/threadvar.h>.
14286 [IS_IN(rtld)] (rtld_errno): New variable.
14287 [IS_IN(rtld)] (__errno_location): New weak function.
14288 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14289 * sysdeps/mach/hurd/errno.c: Remove file.
14290 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14291 (__fork): Remove THREADVAR_SPACE macro and its use.
14292 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14293 variable.
14294 (init): Do not initialize threadvar.
14295 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14296 symbol.
14297 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14298 __hurd_local_reply_port instead of threadvar.
14299 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14300 _hurd_sigstate fields.
14301 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14302 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14303 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14304 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14305 instead of threadvar.
14306 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14307 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14308 (use_threadvar, global_reply_port): Remove variables.
14309 (__hurd_reply_port0): New variable.
14310 (__mig_get_reply_port): Use __hurd_local_reply_port and
14311 __hurd_reply_port0 instead of threadvar.
14312 (__mig_dealloc_reply_port): Likewise.
14313 (__mig_init): Do not initialize threadvar.
14314 * sysdeps/mach/hurd/profil.c: Fix comment.
14315 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14316 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14317 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14318 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14319 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14320 __cthread_setspecific.
14321 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14322 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14323 __cthread_t instead of cthread_fork, cthread_detach,
14324 pthread_getattr_np, pthread_attr_getstack.
14325 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14326 __cthread_keycreate.
14327 (cthread_getspecific): Rename to __cthread_getspecific.
14328 (cthread_setspecific): Rename to __cthread_setspecific.
14329 (__libc_getspecific): Use __cthread_getspecific instead of
14330 cthread_getspecific.
14331 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14332 __cthread_keycreate instead of cthread_keycreate.
14333 (__libc_setspecific): Use __cthread_setspecific instead of
14334 cthread_setspecific.
14335 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14336 Likewise.
14337 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14338 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14339 testing whether it is defined.
14340
14341 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14342
14343 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14344 Define macro.
14345 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14346 * sysdeps/mach/i386/thread_state.h
14347 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14348 i386_THREAD_STATE.
14349 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14350 i386_THREAD_STATE.
14351 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14352
14353 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14354 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14355
14356 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14357 macros.
14358 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14359 descriptor instead of creating a new one.
14360 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14361
14362 * mach/setup-thread.c: Include <ldsodefs.h>.
14363 (__mach_setup_thread): Call _dl_allocate_tls, pass
14364 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14365 MACHINE_THREAD_STATE_FLAVOR, before getting
14366 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14367 MACHINE_THREAD_STATE_FLAVOR with the result.
14368 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14369 MACHINE_THREAD_STATE_FIX_NEW.
14370 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14371 too. Add original thread parameter.
14372
14373 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14374
14375 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14376 Remove inline function.
14377
14378 * sysdeps/i386/fpu/libm-test-ulps: Update.
14379 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14380
14381 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14382
14383 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14384 commit.
14385
14386 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14387
14388 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14389 (__sincos_code): Remove define and undefine.
14390 [__FAST_MATH__] (__sincos): Remove inline function.
14391 [__FAST_MATH__] (__sincosf): Remove inline function.
14392 [__FAST_MATH__] (__sincosl): Remove inline function.
14393 (__atan2l): Remove inline functions.
14394 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14395 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14396 function.
14397 (floor): Remove inline function.
14398 (ceil): Likewise.
14399 [__FAST_MATH__] (__ldexp_code): Remove macro.
14400 [__FAST_MATH__] (ldexp): Remove inline function.
14401 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14402 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14403 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14404 [__USE_ISOC99] (__lrint_code): Remove macro.
14405 [__USE_ISOC99] (__llrint_code): Likewise.
14406 [__USE_ISOC99] (lrintf): Remove inline function.
14407 [__USE_ISOC99] (lrint): Likewise.
14408 [__USE_ISOC99] (lrintl): Likewise.
14409 [__USE_ISOC99] (llrint): Likewise.
14410 [__USE_ISOC99] (llrintf): Likewise.
14411 [__USE_ISOC99] (llrintl): Likewise.
14412
14413 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14414
14415 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14416 (__ieee754_sqrtf): Remove.
14417 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14418 (__ieee754_sqrtf): Remove.
14419 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14420 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14421 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14422 (__ieee754_sqrtf): Remove.
14423 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14424 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14425 (sqrtf): Remove.
14426 (sqrtl): Remove.
14427 (__ieee754_sqrt): Remove.
14428 (__ieee754_sqrtf): Remove.
14429 (__ieee754_sqrtl): Remove.
14430 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14431 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14432 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14433 (__ieee754_sqrtf): Remove.
14434 (__ieee754_sqrtl): Remove.
14435
14436 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14437
14438 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14439 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14440 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14441 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14442 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14443 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14444 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14445 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14446 Likewise.
14447 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14448 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14449 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14450 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14451 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14452 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14453 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14454 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14455 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14456 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14457 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14458 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14459 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14460 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14461 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14462 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14463 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14464 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14465 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14466 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14467 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14468 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14469 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14470 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14471 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14472 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14473 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14474 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14475 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14476 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14477 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14478 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14479 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14480 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14481 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14482 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14483 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14484 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14485 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14486 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14487
14488 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14489
14490 * include/math.h (sqrt): Declare with asm redirect.
14491 (sqrtf): Likewise.
14492 (sqrtl): Likewise.
14493 (sqrtf128): Likewise.
14494 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14495 nonlib and libnldbl with -fmath-errno.
14496 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14497 * math/w_sqrt_template.c: Likewise.
14498 * math/w_sqrtf_compat.c: Likewise.
14499 * math/w_sqrtl_compat.c: Likewise.
14500 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14501 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14502 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14503 complex.h.
14504
14505 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14506
14507 * benchtests/Makefile: Define _ISOMAC.
14508 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14509 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14510 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14511 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14512 * benchtests/bench-timing.h: Define attribute_hidden.
14513
14514 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14515
14516 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14517 mov + lsr.
14518
14519 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14520
14521 [BZ #22963]
14522 * localedata/locales/cs_CZ (mon): Rename to...
14523 (alt_mon): This.
14524 (mon): Import from CLDR (genitive case).
14525
14526 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14527
14528 [BZ #22937]
14529 * localedata/locales/el_CY (abmon): Rename to...
14530 (ab_alt_mon): This.
14531 (abmon): Import from CLDR (abbreviated genitive case).
14532 * localedata/locales/el_GR (abmon): Rename to...
14533 (ab_alt_mon): This.
14534 (abmon): Import from CLDR (abbreviated genitive case).
14535
14536 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14537
14538 [BZ #22932]
14539 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14540
14541 2018-03-15 Robert Buj <robert.buj@gmail.com>
14542
14543 [BZ #22848]
14544 * localedata/locales/ca_ES (abmon): Rename to...
14545 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14546 (mon): Rename to...
14547 (alt_mon): This.
14548 (abmon): Import from CLDR (genitive case, month names preceded by
14549 "de" or "d’").
14550 (mon): Likewise.
14551 (abday): Synchronize with CLDR.
14552 (d_t_fmt): Likewise.
14553 (d_fmt): Likewise.
14554 (am_pm): Likewise.
14555
14556 (LC_TIME): Improve indentation.
14557 (LC_TELEPHONE): Likewise.
14558 (LC_NAME): Likewise.
14559 (LC_ADDRESS): Likewise.
14560
14561 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14562
14563 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14564 (lrintf): Remove definitions used only with old GCC.
14565 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14566 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14567 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14568 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14569 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14570 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14571 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14572 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14573 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14574 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14575 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14576 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14577 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14578 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14579 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14580 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14581 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14582 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14583 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14584 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14585 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14586 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14587 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14588 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14589 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14590 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14591 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14592 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14593
14594 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14595
14596 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14597 instruction to unbreak builds with binutils 2.26 and older.
14598
14599 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14600
14601 * sysdeps/aarch64/strncmp.S (count): New macro.
14602 (strncmp): Store misaligned length in SRC1 in COUNT.
14603 (mutual_align): Adjust.
14604 (misaligned8): Load dword at a time when it is safe.
14605
14606 2018-03-12 Zack Weinberg <zackw@panix.com>
14607
14608 [BZ #1190]
14609 [BZ #19476]
14610 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14611 if the _IO_EOF_SEEN bit is already set; update commentary.
14612 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14613 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14614
14615 * support/support_openpty.c, support/tty.h: New files.
14616 * support/Makefile (libsupport-routines): Add support_openpty.
14617
14618 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14619 New test cases.
14620 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14621 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14622
14623 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14624
14625 * po/pt_BR.po: Update translations.
14626
14627 2018-03-12 David Michael <fedora.dm0@gmail.com>
14628
14629 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14630 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14631 get a port to the startup server.
14632
14633 2018-03-11 Zack Weinberg <zackw@panix.com>
14634
14635 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14636 before nldbl-compat.h.
14637
14638 2018-03-10 Zack Weinberg <zackw@panix.com>
14639
14640 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14641 math.h or math_private.h.
14642
14643 * sysdeps/alpha/fpu/s_isnan.c
14644 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14645 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14646 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14647 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14648 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14649 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14650 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14651 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14652 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14655 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14656 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14657 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14658 Include math_private.h.
14659
14660 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14661 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14662 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14663 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14664 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14665 * sysdeps/powerpc/power7/fpu/s_logb.c:
14666 Include math.h and math_private.h.
14667
14668 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14669 uses of $at in .set noat / .set at.
14670
14671 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14672
14673 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14674 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14675 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14676 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14677 Likewise.
14678
14679 2018-03-09 Florian Weimer <fweimer@redhat.com>
14680
14681 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14682 in comment.
14683
14684 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14685
14686 [BZ #22919]
14687 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14688 Add nop before __startcontext, add explaining comments.
14689
14690 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14691
14692 [BZ #22926]
14693 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14694 empty for __SPE__.
14695 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14696 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14697 Do not build hardware transactional code for __SPE__.
14698 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14699 (__lll_trylock_elision): Likewise.
14700 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14701 (__lll_unlock_elision): Likewise.
14702
14703 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14704 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14705 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14706 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14707 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14708 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14709 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14710 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14711 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14712 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14713 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14714 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14715 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14716 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14717 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14718 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14719 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14720 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14721 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14722 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14723 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14724 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14725 (__ASSUME_CLONE_BACKWARDS): Define.
14726 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14727 __clone2 if __NR_clone2 is defined.
14728 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14729 (__ASSUME_CLONE_BACKWARDS): Likewise.
14730 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14731 (__ASSUME_CLONE_BACKWARDS): Likewise.
14732 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14733 (__ASSUME_CLONE2): Likewise.
14734 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14735 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14736 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14737 variants and the define architecture can use.
14738 (__ASSUME_CLONE_DEFAULT): Define as default.
14739 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14740 (__ASSUME_CLONE_BACKWARDS): Likewise.
14741 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14742 (__ASSUME_CLONE_BACKWARDS): Likewise.
14743 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14744 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14745
14746 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14747
14748 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14749
14750 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14751 time.
14752
14753 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14754 (do_test_limit): Likewise.
14755
14756 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14757 for every implementation.
14758 (do_test): Likewise.
14759
14760 * benchtests/bench-strncmp.c: Convert output to json.
14761
14762 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14763
14764 * io/futimens.c: Add missing start-of-file descriptive comment.
14765 * io/utime.c: Likewise.
14766 * misc/futimesat.c: Likewise.
14767 * misc/utimes.c: Likewise.
14768 * sysdeps/mach/hurd/futimesat.c: Likewise.
14769 * sysdeps/mach/hurd/utimes.c: Likewise.
14770 * sysdeps/posix/utime.c: Likewise.
14771 * sysdeps/posix/utimes.c: Likewise.
14772 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14773 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14774 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14775 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14776
14777 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14778
14779 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14780 hurd_futimes.
14781 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14782 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14783 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14784 (__futimens): Move implementation to...
14785 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14786 utime_tvalue_from_tspec): ... new helper functions.
14787 (hurd_futimens): New function.
14788 * sysdeps/mach/hurd/futimesat.c: New file.
14789 * sysdeps/mach/hurd/utimensat.c: New file.
14790
14791 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14792
14793 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14794 UTIME_OMIT): New macros.
14795 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14796 before reverting to converting time spec to time value and calling
14797 __file_utimes.
14798 * sysdeps/mach/hurd/utime-helper.c: New file.
14799 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14800 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14801 reverting to utime_tvalue_from_tval and __file_utimes.
14802 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14803 (__lutimes): Just call hurd_futimens after lookup.
14804 * sysdeps/mach/hurd/utimes.c: Likewise.
14805
14806 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14807
14808 * bits/sigaction.h: Add include guard.
14809 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14810 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14811 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14812 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14813 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14814 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14815 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14816 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14817 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14818
14819 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14820
14821 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14822 -Wmaybe-uninitialized for -Os.
14823 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14824 this disabling.
14825
14826 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14827
14828 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14829 __INO_T_MATCHES_INO64_T is defined.
14830 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14831 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14832 of definition.
14833 * dirent/alphasort64.c: Likewise.
14834 * dirent/scandir.c: Likewise.
14835 * dirent/scandir64-tail.c: Likewise.
14836 * dirent/scandir64.c: Likewise.
14837 * dirent/scandirat.c: Likewise.
14838 * dirent/scandirat64.c: Likewise.
14839 * dirent/versionsort.c: Likewise.
14840 * dirent/versionsort64.c: Likewise.
14841 * include/dirent.h: Likewise.
14842
14843 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14844 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14845 for socketpair endpoint.
14846 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14847 WRITE_BUFFER_SIZE as buffer size for sending socket.
14848 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14849 issue on system where send is implemented with sendto syscall.
14850 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14851 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14852 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14853 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14854
14855 [BZ #21269]
14856 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14857 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14858 sa_restorer for vDSO case.
14859 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14860
14861 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14862
14863 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14864 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14865 * hurd/hurd/ioctl.h: Include <mach/port.h>
14866 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14867 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14868 <mach/mach_types.h> and <mach/message.h>.
14869 (headers): Move mach/param.h to bits/mach/param.h.
14870 * sysdeps/mach/i386/mach/param.h: Move file to ...
14871 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14872 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14873 of <mach/param.h>.
14874 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14875 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14876 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14877 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14878 trivial, for C++ conformity.
14879 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14880 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14881 Process mig output through $(migheadersed).
14882 * hurd/Makefile (migheadersed): Define variable.
14883 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14884 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14885 headers.
14886 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14887 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14888 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14889 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14890 <bits/types/sigset_t.h>.
14891 [!defined __USE_GNU]: Do not #error out.
14892 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14893 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14894 Include <stddef.h> and <bits/types/sigset_t.h>
14895 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14896 instead of sighandler_t.
14897 * stdlib/errno.h (error_t): Move definition to...
14898 * bits/types/error_t.h: ... new header.
14899 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14900 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14901 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14902 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14903 * hurd/hurd.h: Include <bits/types/error_t.h>
14904 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14905 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14906 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14907 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14908 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14909 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14910 * sysdeps/mach/hurd/futimens.c: New file.
14911
14912 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14913
14914 [BZ #22918]
14915 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14916 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14917 * nscd/gai.c (__nss_hosts_database): Readd definition.
14918 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14919 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14920 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14921
14922 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14923
14924 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14925 (ifunc_one): Likewise.
14926
14927 2018-03-01 DJ Delorie <dj@delorie.com>
14928
14929 [BZ #22342]
14930 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14931 key value.
14932
14933 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14934
14935 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14936 `match_pid' parameter.
14937 (td_ta_thr_iter): Update accordingly.
14938
14939 2018-03-01 Florian Weimer <fweimer@redhat.com>
14940
14941 * nptl/Makefile (install-lib-ldscripts): Remove.
14942 (install): Remove rule.
14943 ($(inst_libdir)/libpthread.so): Likewise.
14944
14945 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14946
14947 [BZ #22896]
14948 * localedata/locales/an_ES: update month and day names,
14949 improve d_fmt, improve postal_fmt, add country_post,
14950 add country_isbn
14951
14952 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14953
14954 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14955 Ukrainian instead of Bulgarian.
14956
14957 2018-03-01 Florian Weimer <fweimer@redhat.com>
14958
14959 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14960 reference.
14961
14962 2018-03-01 Florian Weimer <fweimer@redhat.com>
14963
14964 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14965 * nptl/Makefile (routines): Add pthread_atfork.
14966 (static-only-routines): Set to pthread_atfork.
14967 (libpthread-routines): Remove pthread_atfork.
14968 (libpthread-static-only-routines): Remove.
14969 (install): Update comment.
14970 (libpthread.so): Do not install libpthread_nonshared.a.
14971 (tests): Do not link with libpthread_nonshared.a.
14972 (generated): Remove libpthread_nonshared.a.
14973 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14974 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14975 with libpthread_nonshared.a.
14976
14977 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14978
14979 [BZ #22902]
14980 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14981 (libc_feholdexcept_setroundf128): New macro.
14982 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14983
14984 [BZ #15105]
14985 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14986 libc_hidden_def.
14987 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14988 * include/inttypes.h: New file.
14989
14990 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14991
14992 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14993 -Os in two more places.
14994
14995 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14996
14997 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14998 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14999 be sorted correctly at the moment because of a bug.
15000
15001 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15002
15003 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15004 treat ñ as a primary different character, sync the collation
15005 for Spanish with CLDR.
15006 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15007 * localedata/Makefile: Add new test files.
15008 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15009 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15010 collation order.
15011 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15012 * localedata/am_ET.UTF-8.in: New test file.
15013 * localedata/az_AZ.UTF-8.in: Likewise.
15014 * localedata/be_BY.UTF-8.in: Likewise.
15015 * localedata/ber_DZ.UTF-8.in: Likewise.
15016 * localedata/ber_MA.UTF-8.in: Likewise.
15017 * localedata/bg_BG.UTF-8.in: Likewise.
15018 * localedata/br_FR.UTF-8.in: Likewise.
15019 * localedata/cmn_TW.UTF-8.in: Likewise.
15020 * localedata/crh_UA.UTF-8.in: Likewise.
15021 * localedata/csb_PL.UTF-8.in: Likewise.
15022 * localedata/cv_RU.UTF-8.in: Likewise.
15023 * localedata/cy_GB.UTF-8.in: Likewise.
15024 * localedata/dz_BT.UTF-8.in: Likewise.
15025 * localedata/eo.UTF-8.in: Likewise.
15026 * localedata/es_ES.UTF-8.in: Likewise.
15027 * localedata/fa_IR.UTF-8.in: Likewise.
15028 * localedata/fi_FI.UTF-8.in: Likewise.
15029 * localedata/fil_PH.UTF-8.in: Likewise.
15030 * localedata/fur_IT.UTF-8.in: Likewise.
15031 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15032 * localedata/ha_NG.UTF-8.in: Likewise.
15033 * localedata/ig_NG.UTF-8.in: Likewise.
15034 * localedata/ik_CA.UTF-8.in: Likewise.
15035 * localedata/kk_KZ.UTF-8.in: Likewise.
15036 * localedata/ku_TR.UTF-8.in: Likewise.
15037 * localedata/ky_KG.UTF-8.in: Likewise.
15038 * localedata/ln_CD.UTF-8.in: Likewise.
15039 * localedata/mi_NZ.UTF-8.in: Likewise.
15040 * localedata/ml_IN.UTF-8.in: Likewise.
15041 * localedata/mn_MN.UTF-8.in: Likewise.
15042 * localedata/mr_IN.UTF-8.in: Likewise.
15043 * localedata/mt_MT.UTF-8.in: Likewise.
15044 * localedata/nb_NO.UTF-8.in: Likewise.
15045 * localedata/om_KE.UTF-8.in: Likewise.
15046 * localedata/os_RU.UTF-8.in: Likewise.
15047 * localedata/ps_AF.UTF-8.in: Likewise.
15048 * localedata/ro_RO.UTF-8.in: Likewise.
15049 * localedata/ru_RU.UTF-8.in: Likewise.
15050 * localedata/sc_IT.UTF-8.in: Likewise.
15051 * localedata/se_NO.UTF-8.in: Likewise.
15052 * localedata/sq_AL.UTF-8.in: Likewise.
15053 * localedata/sv_SE.UTF-8.in: Likewise.
15054 * localedata/szl_PL.UTF-8.in: Likewise.
15055 * localedata/tg_TJ.UTF-8.in: Likewise.
15056 * localedata/tk_TM.UTF-8.in: Likewise.
15057 * localedata/tt_RU.UTF-8.in: Likewise.
15058 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15059 * localedata/ug_CN.UTF-8.in: Likewise.
15060 * localedata/uz_UZ.UTF-8.in: Likewise.
15061 * localedata/vi_VN.UTF-8.in: Likewise.
15062 * localedata/yi_US.UTF-8.in: Likewise.
15063 * localedata/yo_NG.UTF-8.in: Likewise.
15064 * localedata/zh_CN.UTF-8.in: Likewise.
15065 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15066 file and fix bugs in the collation.
15067 * localedata/locales/az_AZ: Likewise.
15068 * localedata/locales/be_BY: Likewise.
15069 * localedata/locales/ber_DZ: Likewise.
15070 * localedata/locales/ber_MA: Likewise.
15071 * localedata/locales/bg_BG: Likewise.
15072 * localedata/locales/br_FR: Likewise.
15073 * localedata/locales/br_FR@euro: Likewise.
15074 * localedata/locales/ca_ES: Likewise.
15075 * localedata/locales/cns11643_stroke: Likewise.
15076 * localedata/locales/crh_UA: Likewise.
15077 * localedata/locales/cs_CZ: Likewise.
15078 * localedata/locales/csb_PL: Likewise.
15079 * localedata/locales/cv_RU: Likewise.
15080 * localedata/locales/cy_GB: Likewise.
15081 * localedata/locales/da_DK: Likewise.
15082 * localedata/locales/dz_BT: Likewise.
15083 * localedata/locales/en_CA: Likewise.
15084 * localedata/locales/eo: Likewise.
15085 * localedata/locales/es_CU: Likewise.
15086 * localedata/locales/es_EC: Likewise.
15087 * localedata/locales/es_ES: Likewise.
15088 * localedata/locales/es_US: Likewise.
15089 * localedata/locales/et_EE: Likewise.
15090 * localedata/locales/fa_IR: Likewise.
15091 * localedata/locales/fi_FI: Likewise.
15092 * localedata/locales/fil_PH: Likewise.
15093 * localedata/locales/fur_IT: Likewise.
15094 * localedata/locales/gez_ER@abegede: Likewise.
15095 * localedata/locales/ha_NG: Likewise.
15096 * localedata/locales/hr_HR: Likewise.
15097 * localedata/locales/hsb_DE: Likewise.
15098 * localedata/locales/hu_HU: Likewise.
15099 * localedata/locales/ig_NG: Likewise.
15100 * localedata/locales/ik_CA: Likewise.
15101 * localedata/locales/is_IS: Likewise.
15102 * localedata/locales/iso14651_t1_pinyin: Likewise.
15103 * localedata/locales/kk_KZ: Likewise.
15104 * localedata/locales/ku_TR: Likewise.
15105 * localedata/locales/ky_KG: Likewise.
15106 * localedata/locales/ln_CD: Likewise.
15107 * localedata/locales/lt_LT: Likewise.
15108 * localedata/locales/lv_LV: Likewise.
15109 * localedata/locales/mi_NZ: Likewise.
15110 * localedata/locales/ml_IN: Likewise.
15111 * localedata/locales/mn_MN: Likewise.
15112 * localedata/locales/mr_IN: Likewise.
15113 * localedata/locales/mt_MT: Likewise.
15114 * localedata/locales/nb_NO: Likewise.
15115 * localedata/locales/om_KE: Likewise.
15116 * localedata/locales/os_RU: Likewise.
15117 * localedata/locales/pl_PL: Likewise.
15118 * localedata/locales/ps_AF: Likewise.
15119 * localedata/locales/ro_RO: Likewise.
15120 * localedata/locales/ru_RU: Likewise.
15121 * localedata/locales/ru_UA: Likewise.
15122 * localedata/locales/sc_IT: Likewise.
15123 * localedata/locales/se_NO: Likewise.
15124 * localedata/locales/si_LK: Likewise.
15125 * localedata/locales/sq_AL: Likewise.
15126 * localedata/locales/sv_FI: Likewise.
15127 * localedata/locales/sv_FI@euro: Likewise.
15128 * localedata/locales/sv_SE: Likewise.
15129 * localedata/locales/szl_PL: Likewise.
15130 * localedata/locales/tg_TJ: Likewise.
15131 * localedata/locales/ti_ER: Likewise.
15132 * localedata/locales/tk_TM: Likewise.
15133 * localedata/locales/tl_PH: Likewise.
15134 * localedata/locales/tr_TR: Likewise.
15135 * localedata/locales/tt_RU: Likewise.
15136 * localedata/locales/tt_RU@iqtelif: Likewise.
15137 * localedata/locales/ug_CN: Likewise.
15138 * localedata/locales/uk_UA: Likewise.
15139 * localedata/locales/uz_UZ: Likewise.
15140 * localedata/locales/uz_UZ@cyrillic: Likewise.
15141 * localedata/locales/vi_VN: Likewise.
15142 * localedata/locales/yi_US: Likewise.
15143 * localedata/locales/yo_NG: Likewise.
15144
15145 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15146
15147 * gen-locales.mk: Make test files which contain @ modifiers in their
15148 name work.
15149 * localedata/gen-locale.sh: Likewise.
15150
15151 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15152
15153 * posix/tst-fnmatch.input: Fix results for range expressions
15154 for non C locales.
15155 * posix/tst-regexloc.c: Do not use a range expression for
15156 de_DE.ISO-8859-1 locale.
15157
15158 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15159
15160 * posix/bug-regex5.c: Fix test case because with the new
15161 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15162 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15163 file.
15164
15165 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15166
15167 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15168 downloaded from ISO, the collation order of @-. and space has changed.
15169 Therefore, this test file needed to be adapted.
15170 * localedata/fr_CA.UTF-8.in: Likewise.
15171 * localedata/fr_FR.UTF-8.in: Likewise.
15172 * localedata/uk_UA.UTF-8.in: Likewise.
15173
15174 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15175
15176 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15177 order of ȥ in the new iso14651_t1_common file.
15178 * localedata/pl_PL.UTF-8.in: Likewise.
15179
15180 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15181
15182 * localedata/locales/iso14651_t1_common: Add sections for various
15183 scripts to the iso14651_t1_common file.
15184
15185 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15186
15187 * localedata/locales/iso14651_t1_common: Use the code point of a
15188 character in the fourth collation level instead of IGNORE for all
15189 entries which have IGNORE on all 4 levels.
15190
15191 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15192
15193 * localedata/locales/iso14651_t1_common: Add some convenient collation
15194 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15195 rules similar to those in CLDR.
15196
15197 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15198
15199 * localedata/locales/iso14651_t1_common: The new version of this
15200 file downloaded from ISO contained several syntax errors which
15201 are fixed by this patch.
15202
15203 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15204
15205 * localedata/locales/iso14651_t1_common: replace all <U.....>
15206 with <U000.....> because glibc understands only 4 digit or 8 digit
15207
15208 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15209
15210 * localedata/locales/iso14651_t1_common: Necessary changes
15211 to make the file downloaded from ISO usable by glibc.
15212
15213 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15214
15215 [BZ #14095]
15216 * localedata/locales/iso14651_t1_common: Update file to
15217 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15218
15219 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15220
15221 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15222 of <nptl/pthreadP.h>
15223 (thread_attr_compare): Move function to...
15224 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15225 * sysdeps/nptl/timer_routines.h: ... new header.
15226 * sysdeps/mach/hurd/gai_misc.h: New file.
15227
15228 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15229
15230 * string/strcoll_l.c: Include <libc-diag.h>.
15231 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15232 declarations of seq1 and seq2.
15233
15234 [BZ #15105]
15235 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15236 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15237
15238 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15239
15240 [BZ #22433]
15241 [BZ #22807]
15242 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15243 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15244 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15245 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15246 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15247 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15248
15249 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15250
15251 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15252 macros used in __ptrace_request.
15253
15254 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15255
15256 [BZ #22792]
15257 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15258 to $(CC).
15259 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15260 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15261 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15262 <tcb-offsets.h>.
15263
15264 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15265
15266 [BZ #15105]
15267 * ctype/ctype.c (tolower): Use libc_hidden_def.
15268 (toupper): Likewise.
15269 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15270 [!_ISOMAC] (toupper): Likewise.
15271
15272 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15273
15274 * localedata/Makefile: Remove --quiet argument when
15275 installing locales
15276
15277 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15278
15279 [BZ #17438]
15280 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15281 in d_fmt.
15282 * localedata/locales/pt_PT (LC_TIME): likewise
15283
15284 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15285
15286 [BZ #22646]
15287 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15288 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15289 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15290
15291 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15292
15293 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15294
15295 * nptl/Makefile (routines): Remove unregister-atfork.
15296 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15297 (fork_handler_alloc): Remove function.
15298 (fork_handlers, fork_handler_init): New variables.
15299 (__fork_lock): Rename to atfork_lock.
15300 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15301 to use a dynamic array to add/remove atfork handlers.
15302 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15303 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15304 Remove declaration.
15305 (fork_handler): Remove next, refcntr, and need_signal member.
15306 (__run_fork_handler_type): New enum.
15307 (__run_fork_handlers): New prototype.
15308 * nptl/register-atfork.c: Remove file.
15309 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15310
15311 * sysdeps/nptl/nptl-signals.h: Move to ...
15312 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15313 comments.
15314 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15315 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15316 unnecessary check for SIGTIMER.
15317 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15318 remove unnecessary removal of SIGTIMER.
15319 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15320 include-signals.h rename.
15321 * nptl/pthreadP.h: Likewise.
15322 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15323 __is_internal_signal instead of __nptl_is_internal_signal.
15324
15325 2018-02-22 Andrew Waterman <andrew@sifive.com>
15326
15327 [BZ # 22884]
15328 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15329 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15330 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15331 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15332
15333 2018-02-22 DJ Delorie <dj@delorie.com>
15334
15335 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15336
15337 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15338
15339 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15340 do_misaligned, not misaligned8.
15341
15342 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15343
15344 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15345 Add memcpy_thunderx2.
15346 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15347 Increment to 4.
15348 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15349 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15350 and IS_THUNDERX2PA checks.
15351 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15352 Use macro to set name appropriately.
15353 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15354 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15355 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15356 New macro.
15357 (IS_THUNDERX2): New macro.
15358
15359 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15360
15361 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15362
15363 2018-02-21 Zack Weinberg <zackw@panix.com>
15364
15365 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15366 Define here, unconditionally.
15367 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15368 * libio/libioP.h: Remove #if 0 blocks.
15369 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15370 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15371 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15372
15373 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15374 Assume weak_alias is always defined.
15375
15376 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15377 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15378 Remove #if 0 and #ifdef TODO blocks.
15379 Assume text_set_element is always defined.
15380
15381 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15382 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15383 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15384
15385 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15386 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15387 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15388 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15389 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15390 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15391 Reformat bit flags for _flags field to make occupancy clearer.
15392 Update commentary.
15393 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15394 Keep definitions consistent with those in libio/libio.h.
15395
15396 * libio/libio.h (_IO_file_flags): Remove macro.
15397 All uses changed to _flags.
15398
15399 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15400 (__HAVE_COLUMN, _IO_BE): Don't define.
15401 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15402 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15403 * libio/libioP.h (EOF): Don't define.
15404 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15405 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15406 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15407 testing _IO_UNIFIED_JUMPTABLES.
15408
15409 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15410 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15411 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15412 (_IO_size_t): Delete; all uses changed to size_t.
15413 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15414 (_IO_off_t): Delete; all uses changed to off_t.
15415 (_IO_off64_t): Delete; all uses changed to off64_t.
15416 (_IO_pid_t): Delete; all uses changed to pid_t.
15417 (_IO_uid_t): Delete; all uses changed to uid_t.
15418 (_IO_wint_t): Delete; all uses changed to wint_t.
15419 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15420 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15421 (_IO_cookie_io_functions_t): Delete; all uses changed to
15422 cookie_io_functions_t.
15423 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15424 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15425 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15426 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15427
15428 * libio/iofopncook.c: Remove unnecessary forward declarations.
15429 * libio/iolibio.h: Correct outdated commentary.
15430 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15431 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15432 Remove unnecessary casts.
15433 * stdio-common/getline.c: Use _IO_getdelim directly.
15434 Don't redefine ssize_t.
15435 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15436 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15437 Remove outdated comments.
15438 * stdio-common/vfscanf.c: Don't redefine va_list.
15439
15440 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15441 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15442 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15443 which are always true, and __cplusplus, which is always false.
15444
15445 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15446
15447 [BZ #15105]
15448 [BZ #19463]
15449 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15450 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15451 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15452 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15453 libc_hidden_proto.
15454 [!_ISOMAC] (putc_unlocked): Likewise.
15455 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15456 define inline if [__USE_EXTERN_INLINES].
15457 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15458 putc_unlocked.
15459
15460 [BZ #15105]
15461 [BZ #19463]
15462 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15463 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15464 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15465 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15466 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15467 getc_unlocked.
15468 * time/tzfile.c (__tzfile_read): Likewise.
15469
15470 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15471
15472 [BZ #22517]
15473 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15474
15475 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15476
15477 * io/fcntl.h: Fix a typo in a comment.
15478
15479 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15480
15481 [BZ #22862]
15482 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15483 define _DEFAULT_SOURCE.
15484 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15485
15486 2018-02-21 Florian Weimer <fweimer@redhat.com>
15487
15488 [BZ #20890]
15489 * elf/cache.c (save_cache): Call fsync on temporary file before
15490 renaming it.
15491 (save_aux_cache): Call fdatasync on temporary file before renaming
15492 it.
15493
15494 2018-02-21 Florian Weimer <fweimer@redhat.com>
15495
15496 [BZ #22787]
15497 * include/caller.h: Remove file.
15498 * elf/dl-caller.c: Likewise.
15499 * elf/Makefile (dl-routines): Remove dl-caller.
15500 (shared-only-routines): Do not add dl-caller.
15501 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15502 __check_caller.
15503 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15504 member.
15505 (dl_open_worker): Do not call __check_caller.
15506 (_dl_open): Do not set caller_dl_open member.
15507 * elf/rtld.c (_rtld_global_ro): Do not initialize
15508 _dl_check_caller member.
15509 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15510 _dl_check_caller member.
15511 (_dl_check_caller): Remove declaration.
15512 * sysdeps/unix/sysv/linux/dl-execstack.c
15513 (_dl_make_stack_executable): Do not call __check_caller.
15514
15515 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15516
15517 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15518 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15519
15520 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15521
15522 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15523 description.
15524
15525 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15526
15527 [BZ #16335]
15528 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15529 of 199606L, 200112L, and 200809L.
15530 (_XOPEN_SOURCE): Document special values of 600 and 700.
15531 (_ISOC11_SOURCE): Document macro.
15532 (_ATFILE_SOURCE): Likewise.
15533 (_FORTIFY_SOURCE): Likewise.
15534
15535 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15536
15537 [BZ #15105]
15538 [BZ #19463]
15539 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15540 and define as weak alias of __ferror_unlocked. Use
15541 libc_hidden_weak.
15542 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15543 libc_hidden_proto.
15544 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15545 function if [__USE_EXTERN_INLINES].
15546 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15547 ferror_unlocked.
15548
15549 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15550
15551 [BZ #6889]
15552 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15553
15554 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15555
15556 [BZ #22818]
15557 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15558 the GLIBC_2.1 version.
15559
15560 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15561
15562 [BZ #21508]
15563 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15564 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15565 intl/tst-gettext-de.po from po/de.po by removing the
15566 POT-Creation-Date line.
15567 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15568 ../po/de.po.
15569 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15570 ../po/de.po.
15571
15572 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15573
15574 * mach/Makefile (headers): Add mach/param.h.
15575 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15576 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15577 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15578 (__ptsname_r): Move implementation to...
15579 (__ptsname_internal): ... new function. Add filling the STP
15580 structure.
15581
15582 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15583
15584 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15585 idouble to 1 ULP.
15586
15587 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15588
15589 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15590 syntax.
15591
15592 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15593
15594 * nptl/Makefile (tst-mutex8-ENV): Delete.
15595 * nptl/tst-mutex8.c (check_type):
15596 Add runtime check if mutex will be elided.
15597
15598 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15599
15600 [BZ #20980]
15601 [BZ #21234]
15602 * manual/install.texi (Configuring and compiling): Describe
15603 passing CC and CFLAGS on configure command line, not as
15604 environment variables. Use @code markup on those variables.
15605 Specify what options go in CC and what go in CFLAGS. Note the
15606 requirement to compile with optimization.
15607 * INSTALL: Regenerated.
15608
15609 [BZ #18124]
15610 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15611 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15612 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15613 __sigprocmask instead of sigprocmask.
15614 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15615 Likewise.
15616 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15617 __sigsetjmp and sigprocmask.
15618
15619 [BZ #15105]
15620 * include/argz.h (argz_next): Use libc_hidden_proto.
15621 (__argz_next): Likewise.
15622 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15623 (argz_next): Use libc_hidden_weak.
15624
15625 [BZ #15105]
15626 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15627 libc_hidden_proto.
15628 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15629 libc_hidden_def.
15630
15631 [BZ #15105]
15632 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15633 libc_hidden_proto.
15634 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15635
15636 [BZ #15105]
15637 [BZ #19463]
15638 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15639 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15640 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15641 (__feof_unlocked): New declaration, and inline function if
15642 [__USE_EXTERN_INLINES].
15643 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15644 instead of feof_unlocked.
15645 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15646 * nss/nsswitch.c (nss_parse_file): Likewise.
15647 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15648 Likewise.
15649 * time/getdate.c (__getdate_r): Likewise.
15650 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15651 Define as macro to call __feof_unlocked.
15652
15653 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15654
15655 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15656
15657 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15658
15659 * math/Makefile: Remove mpexp.c and mplog.c
15660 * sysdeps/i386/fpu/mpexp.c: Delete file.
15661 * sysdeps/i386/fpu/mplog.c: Likewise.
15662 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15663 * sysdeps/ia64/fpu/mplog.c: Likewise.
15664 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15665 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15666 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15667 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15668 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15669 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15670 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15671 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15672 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15673 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15674 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15675 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15676 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15677 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15678 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15679 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15680
15681 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15682
15683 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15684
15685 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15686
15687 * sysdeps/sh/libm-test-ulps: Update.
15688
15689 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15690
15691 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15692 idouble to 1 ULP.
15693
15694 2018-02-12 Zack Weinberg <zackw@panix.com>
15695
15696 [BZ #19239]
15697 * posix/sys/types.h: Don't include sys/sysmacros.h.
15698 * misc/sys/sysmacros.h: Remove the conditional deprecation
15699 warnings for the macros defined by this header.
15700
15701 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15702
15703 * manual/probes.texi: Remove slowexp probes.
15704 * math/Makefile: Remove slowexp.
15705 * sysdeps/generic/math_private.h (__slowexp): Remove.
15706 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15707 document error bounds.
15708 * sysdeps/i386/fpu/slowexp.c: Remove.
15709 * sysdeps/ia64/fpu/slowexp.c: Remove.
15710 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15711 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15712 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15713 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15714 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15715 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15716 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15717 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15718 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15719 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15720 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15721
15722 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15723
15724 [BZ #13932]
15725 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15726 * benchtests/pow-inputs: Update comment for slow path cases.
15727 * manual/probes.texi (slowpow_p10): Delete removed probe.
15728 (slowpow_p10): Likewise.
15729 * math/Makefile: Remove halfulp.c and slowpow.c.
15730 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15731 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15732 (__halfulp): Remove.
15733 (__slowpow): Remove.
15734 * sysdeps/i386/fpu/halfulp.c: Delete file.
15735 * sysdeps/i386/fpu/slowpow.c: Likewise.
15736 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15737 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15738 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15739 improve comments and add error analysis.
15740 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15741 (power1): Remove function:
15742 (log1): Remove error argument, add error analysis.
15743 (my_log2): Remove function.
15744 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15745 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15746 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15747 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15748 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15749 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15750 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15751 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15752 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15753 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15754 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15755 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15756 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15757 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15758
15759 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15760
15761 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15762 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15763
15764 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15765
15766 [BZ #22433]
15767 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15768 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15769 and PTRACE_SETHBPREGS.
15770
15771 2018-02-10 Zack Weinberg <zackw@panix.com>
15772
15773 [BZ #22830]
15774 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15775 correctly.
15776 * malloc/tst-malloc-stats-cancellation.c: New test case.
15777 * malloc/Makefile: Add new test case.
15778
15779 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15780
15781 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15782
15783 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15784
15785 * math/Makefile (libm-narrow-fns): Add add.
15786 (libm-test-funcs-narrow): Likewise.
15787 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15788 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15789 * math/gen-auto-libm-tests.c (test_functions): Add add.
15790 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15791 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15792 (NARROW_ADD_TRIVIAL): Likewise.
15793 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15794 macro.
15795 (__daddl): Likewise.
15796 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15797 dadd.
15798 (CFLAGS-nldbl-dadd.c): New variable.
15799 (CFLAGS-nldbl-fadd.c): Likewise.
15800 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15801 __nldbl_daddl.
15802 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15803 prototype.
15804 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15805 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15806 * math/auto-libm-test-in: Add tests of add.
15807 * math/auto-libm-test-out-narrow-add: New generated file.
15808 * math/libm-test-narrow-add.inc: New file.
15809 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15810 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15811 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15812 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15813 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15814 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15815 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15816 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15817 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15818 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15819 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15820 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15821 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15822 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15823 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15824 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15825 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15826 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15827 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15828 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15829 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15830 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15831 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15832 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15833 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15834 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15835 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15836 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15837 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15838 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15839 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15840 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15845 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15846 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15847 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15848 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15849 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15850 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15851 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15852 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15853 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15854 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15855
15856 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15857 (f128-pairs): New variable.
15858 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15859 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15860 to CFLAGS.
15861 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15862 Also make tests add $(f128-loader-link) to gnulib-tests.
15863
15864 2018-02-09 DJ Delorie <dj@redhat.com>
15865
15866 [BZ #22827]
15867 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15868 64-bit ELF type for 64-bit ELF objects.
15869
15870 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15871
15872 * math/libm-test-driver.c (snan_tests_arg): New variable.
15873 * math/libm-test-support.h (snan_tests_arg): New declaration.
15874 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15875
15876 * math/Makefile (test-type-pairs): New variable.
15877 (test-type-pairs-f64xf128-yes): Likewise.
15878 (tests): Add test-narrow-macros.
15879 (libm-test-funcs-narrow): New variable.
15880 (libm-test-c-narrow): Likewise.
15881 (generated): Add $(libm-test-c-narrow).
15882 (libm-tests-base-narrow): New variable.
15883 (libm-tests-narrow): Likewise.
15884 (libm-tests): Add $(libm-tests-narrow).
15885 (libm-tests-for-type): Handle $(libm-tests-narrow).
15886 (libm-test-c-narrow-obj): New variable.
15887 ($(libm-test-c-narrow-obj)): New rule.
15888 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15889 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15890 $(o-iterator) to set dependencies and CFLAGS.
15891 * math/gen-auto-libm-tests.c: Document use for narrowing
15892 functions.
15893 (output_for_one_input_case): Take argument NARROW.
15894 (generate_output): Likewise. Update call to
15895 output_for_one_input_case.
15896 (main): Take --narrow option. Update call to generate_output.
15897 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15898 (apply_lit): Update call to _apply_lit.
15899 (apply_arglit): New function.
15900 (parse_args): Handle "a" arguments.
15901 (parse_auto_input): Handle format names using ":".
15902 * math/README.libm-test: Document "a" parameter type.
15903 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15904 (ARG_TYPE_TRUE_MIN): Likewise.
15905 (ARG_TYPE_MAX): Likwise.
15906 (ARG_MIN_EXP): Likewise.
15907 (ARG_MAX_EXP): Likewise.
15908 (ARG_MANT_DIG): Likewise.
15909 (TEST_COND_arg_ibm128): Likewise.
15910 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15911 (TEST_COND_arg_fmt): New macro.
15912 (init_max_error): Update prototype.
15913 * math/libm-test-support.c (test_ibm128): New variable.
15914 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15915 instead of using [TEST_COND_ibm128] conditional.
15916 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15917 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15918 [TEST_NARROW] (TEST_MSG): New definition.
15919 (arg_plus_zero): New macro.
15920 (arg_minus_zero): Likewise.
15921 (arg_plus_infty): Likewise.
15922 (arg_minus_infty): Likewise.
15923 (arg_qnan_value_pl): Likewise.
15924 (arg_qnan_value): Likewise.
15925 (arg_snan_value_pl): Likewise.
15926 (arg_snan_value): Likewise.
15927 (arg_max_value): Likewise.
15928 (arg_min_value): Likewise.
15929 (arg_min_subnorm_value): Likewise.
15930 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15931 (RUN_TEST_LOOP_aa_f): New macro.
15932 (TEST_SUFF): New macro.
15933 (TEST_SUFF_STR): Likewise.
15934 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15935 (TEST_COND_any_ibm128): New macro.
15936 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15937 this_func. Update call to init_max_error.
15938 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15939 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15940 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15941 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15942 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15943 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15944 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15945 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15946 * math/test-math-vector.h (TEST_NARROW): Likewise.
15947 * math/test-arg-double.h: New file.
15948 * math/test-arg-float128.h: Likewise.
15949 * math/test-arg-float32x.h: Likewise.
15950 * math/test-arg-float64.h: Likewise.
15951 * math/test-arg-float64x.h: Likewise.
15952 * math/test-arg-ldouble.h: Likewise.
15953 * math/test-math-narrow.h: Likewise.
15954 * math/test-narrow-macros.c: Likewise.
15955 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15956 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15957 test-narrow-macros-ldbl-64.
15958 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15959
15960 * math/bits/mathcalls-narrow.h: New file.
15961 * include/bits/mathcalls-narrow.h: Likewise.
15962 * math/math-narrow.h: Likewise.
15963 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15964 (__MATHCALL_NARROW_ARGS_2): Likewise.
15965 (__MATHCALL_NARROW_ARGS_3): Likewise.
15966 (__MATHCALL_NARROW_NORMAL): Likewise.
15967 (__MATHCALL_NARROW_REDIR): Likewise.
15968 (__MATHCALL_NARROW): Likewise.
15969 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15970 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15971 defined.
15972 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15973 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15974 (libm-narrow-fns): New variable.
15975 (libm-narrow-types-basic): Likewise.
15976 (libm-narrow-types-ldouble-yes): Likewise.
15977 (libm-narrow-types-float128-yes): Likewise.
15978 (libm-narrow-types-float128-alias-yes): Likewise.
15979 (libm-narrow-types): Likewise.
15980 (libm-routines): Add narrowing functions.
15981 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15982 (libc_feholdexcept_setroundf128): New macro.
15983 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15984 * sysdeps/ieee754/float128/float128_private.h: Include
15985 <math/math-narrow.h>.
15986 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15987 Undefine and redefine.
15988 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15989 (libm_alias_float_ldouble): Undefine and redefine.
15990 (libm_alias_double_ldouble): Likewise.
15991
15992 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15993
15994 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15995
15996 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15997 FPCR/FPSR.
15998
15999 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16000
16001 * manual/creature.texi: Convert references to gcc.info to gcc.
16002 * manual/stdio.texi: Likewise.
16003 * manual/string.texi: Likewise.
16004
16005 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16006
16007 [BZ #17979]
16008 * posix/bits/types.h (__int_least8_t): New typedef.
16009 (__uint_least8_t): Likewise.
16010 (__int_least16_t): Likewise.
16011 (__uint_least16_t): Likewise.
16012 (__int_least32_t): Likewise.
16013 (__uint_least32_t): Likewise.
16014 (__int_least64_t): Likewise.
16015 (__uint_least64_t): Likewise.
16016 * sysdeps/generic/stdint.h (int_least8_t): Define using
16017 __int_least8_t.
16018 (int_least16_t): Define using __int_least16_t.
16019 (int_least32_t): Define using __int_least32_t.
16020 (int_least64_t): Define using __int_least64_t.
16021 (uint_least8_t): Define using __uint_least8_t.
16022 (uint_least16_t): Define using __uint_least16_t.
16023 (uint_least32_t): Define using __uint_least32_t.
16024 (uint_least64_t): Define using __uint_least64_t.
16025 * wcsmbs/uchar.h: Include <bits/types.h>.
16026 (char16_t): Define using __uint_least16_t conditional only on
16027 [!__USE_ISOCXX11].
16028 (char32_t): Define using __uint_least32_t conditional only on
16029 [!__USE_ISOCXX11].
16030 * wcsmbs/test-char-types.c: New file.
16031 * wcsmbs/Makefile (tests): Add test-char-types.
16032
16033 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16034 version to 4.0.1.
16035
16036 2018-02-07 Zack Weinberg <zackw@panix.com>
16037
16038 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16039 Delete all contents except for definitions of _G_HAVE_MMAP and
16040 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16041 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16042 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16043 change as above.
16044
16045 * libio/libio.h: Don't include bits/_G_config.h here.
16046 Include stddef.h with __need_wchar_t defined. Include
16047 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16048 Define _IO_iconv_t here, directly.
16049 Don't define _IO_HAVE_ST_BLKSIZE.
16050 * libio/libioP.h: Include _G_config.h here. Move include of
16051 shlib-compat.h up with rest of includes. Simplify conditionals
16052 controlling definition of _IO_JUMPS_OFFSET.
16053
16054 * csu/init.c: Remove always-true #if around entire file.
16055 Don't include stdio.h. Set _IO_stdin_used to hardwired
16056 constant 0x20001, and update commentary.
16057 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16058 Replace all uses of _G_va_list with __gnuc_va_list.
16059 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16060 instead of #if _IO_HAVE_ST_BLKSIZE.
16061 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16062 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16063 not #ifdef.
16064
16065 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16066 multiple-include guard to match.
16067 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16068 into this file.
16069 Remove preprocessor conditionals that are always true and/or
16070 redundant to other preprocessor conditionals in the same nest.
16071 Include shlib-compat.h unconditionally.
16072 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16073 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16074 defined after including stdio.h.
16075 Use __BEGIN_DECLS/__END_DECLS.
16076
16077 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16078 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16079 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16080
16081 2018-02-07 Zack Weinberg <zackw@panix.com>
16082
16083 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16084 New single-type headers split from _G_config.h.
16085 * libio/bits/types/cookie_io_functions_t.h
16086 * libio/bits/types/struct_FILE.h
16087 New single-type headers split from libio.h.
16088
16089 * libio/Makefile: Install the above new headers. Don't install
16090 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16091 bits/libio-ldbl.h.
16092 * libio/_G_config.h, libio/libio.h: Delete file.
16093
16094 * libio/bits/libio.h: Remove improper-inclusion guard.
16095 Include stdio.h and don't repeat anything that it does.
16096 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16097 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16098 __io_read_fn as cookie_read_function_t,
16099 __io_write_fn as cookie_write_function_t,
16100 __io_seek_fn as cookie_seek_function_t,
16101 __io_close_fn as cookie_close_function_t,
16102 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16103 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16104 here, in the "compatibility defines" section. Remove an #if 0
16105 block. Use the "body" macros from bits/types/struct_FILE.h to
16106 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16107 and _IO_ferror_unlocked.
16108 Move prototypes of __uflow and __overflow...
16109
16110 * libio/stdio.h: ...here. Don't include bits/libio.h.
16111 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16112 directly from stdarg.h. Include bits/types/__fpos_t.h,
16113 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16114 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16115 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16116 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16117 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16118 __ssize_t, not _IO_ssize_t. Unconditionally define
16119 BUFSIZ as 8192 and EOF as (-1).
16120
16121 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16122 macros from bits/types/struct_FILE.h instead of _IO_* macros
16123 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16124 instead of _IO_ssize_t.
16125 * libio/bits/stdio2.h: Similarly.
16126
16127 * libio/iolibio.h: Add multiple-include guard.
16128 Include bits/libio.h after stdio.h.
16129 * libio/libioP.h: Add multiple-include guard.
16130 Include stdio.h and bits/libio.h before iolibio.h.
16131
16132 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16133 * include/bits/types/cookie_io_functions_t.h
16134 * include/bits/types/struct_FILE.h: New wrappers.
16135
16136 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16137 Get definitions of _G_fpos_t and _G_fpos64_t from
16138 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16139 respectively. Remove improper-inclusion guards.
16140
16141 * conform/data/stdio.h-data: Update expectations of va_list.
16142 * scripts/check-installed-headers.sh: Remove special case for
16143 libio.h and _G_config.h.
16144
16145 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16146
16147 [BZ #15105]
16148 [BZ #19463]
16149 * include/sys/sysmacros.h [!_ISOMAC]
16150 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16151 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16152 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16153 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16154 libc_hidden_proto.
16155 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16156 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16157 Likewise.
16158 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16159 Undefine and redefine to add use __gnu_dev_ prefix.
16160 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16161 Likewise.
16162 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16163 and define as hidden inline function.
16164 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16165 Likewise.
16166 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16167 Likewise.
16168 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16169 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16170 (gnu_dev_minor): Likewise.
16171 (gnu_dev_makedev): Likewise.
16172 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16173 makedev.
16174 * posix/wordexp.c (exec_comm_child): Likewise.
16175 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16176 instead of minor and __gnu_dev_major instead of major.
16177 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16178 __gnu_dev_major instead of major.
16179 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16180 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16181 instead of gnu_dev_minor.
16182 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16183 (SLAVE_P): Likewise.
16184 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16185 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16186 instead of major.
16187
16188 [BZ #21313]
16189 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16190 in another place.
16191 * locale/weightwc.h (findidx): Likewise.
16192
16193 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16194
16195 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16196 (slowlog_inexact): Likewise
16197 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16198 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16199
16200 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16201
16202 [BZ #22797]
16203 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16204 missing second underscore to parameter name.
16205
16206 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16207
16208 [BZ #14508]
16209 [BZ #15512]
16210 [BZ #17082]
16211 [BZ #20530]
16212 * bits/byteswap.h: Update file comment. Do not include
16213 <bits/byteswap-16.h>.
16214 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16215 constant.
16216 (__bswap_16): Define as inline function.
16217 (__bswap_constant_32): Reformat definition.
16218 (__bswap_32): Always define as inline function, not macro, using
16219 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16220 otherwise __bswap_constant_32.
16221 (__bswap_constant_64): Reformat definition. Do not use
16222 __extension__ here.
16223 (__bswap_64): Always define as inline function, not macro. Use
16224 __extension__ on function definition. Use __builtin_bswap64 if
16225 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16226 * string/test-endian-file-scope.c: New file.
16227 * string/test-endian-sign-conversion.c: Likewise.
16228 * string/Makefile (headers): Remove bits/byteswap-16.h.
16229 (tests): Add test-endian-file-scope and
16230 test-endian-sign-conversion.
16231 (CFLAGS-test-endian-sign-conversion.c): New variable.
16232 * bits/byteswap-16.h: Remove file.
16233 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16234 * sysdeps/ia64/bits/byteswap.h: Likewise.
16235 * sysdeps/m68k/bits/byteswap.h: Likewise.
16236 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16237 * sysdeps/s390/bits/byteswap.h: Likewise.
16238 * sysdeps/tile/bits/byteswap.h: Likewise.
16239 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16240 * sysdeps/x86/bits/byteswap.h: Likewise.
16241
16242 [BZ #17721]
16243 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16244 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16245 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16246 199901L] (__restrict): Define to restrict.
16247
16248 [BZ #19667]
16249 * string/testcopy.c: Include <support/support.h>. Do not include
16250 <malloc.h>. Use <support/test-driver.c>.
16251 (main): Rename to do_test. Make static. Use xmalloc instead of
16252 malloc.
16253
16254 [BZ #13575]
16255 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16256 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16257 (SSIZE_MAX): Define to INT_MAX.
16258 * posix/test-ssize-max.c: New file.
16259 * posix/Makefile (tests): Add test-ssize-max.
16260
16261 [BZ #19668]
16262 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16263 <support/support.h>. Do not include <malloc.h>.
16264 (query_auxv): Use xmalloc instead of malloc.
16265
16266 [BZ #14553]
16267 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16268 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16269 instead of loff_t.
16270
16271 2018-02-06 Florian Weimer <fweimer@redhat.com>
16272
16273 [BZ #18023]
16274 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16275 Use scratch_buffer instead of extend_alloca.
16276
16277 2018-02-06 Zack Weinberg <zackw@panix.com>
16278
16279 * libio/stdio.h: Don't define getc or putc as macros.
16280 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16281 not _IO_getc and _IO_putc.
16282
16283 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16284 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16285
16286 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16287
16288 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16289 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16290
16291 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16292
16293 [BZ #14890]
16294 * elf/elf.h (NT_PRFPREG): New macro.
16295 (NT_S390_VXRS_LOW): Likewise.
16296 (NT_S390_VXRS_HIGH): Likewise.
16297 (NT_S390_GS_CB): Likewise.
16298 (NT_S390_GS_BC): Likewise.
16299 (NT_S390_RI_CB): Likewise.
16300
16301 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16302 (MAP_SYNC): New macro.
16303 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16304 Likewise.
16305 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16306 (MAP_SYNC): Likewise.
16307 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16308 (MAP_SYNC): Likewise.
16309 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16310 (MAP_SYNC): Likewise.
16311 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16312 (MAP_SYNC): Likewise.
16313 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16314 (MAP_SYNC): Likewise.
16315 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16316 (MAP_SYNC): Likewise.
16317 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16318 Likewise.
16319 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16320 Likewise.
16321
16322 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16323 (MAP_SHARED_VALIDATE): New macro.
16324 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16325 (MAP_SHARED_VALIDATE): Likewise.
16326
16327 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16328
16329 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16330 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16331 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16332
16333 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16334
16335 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16336 (DT_NUM): Updated to 35.
16337
16338 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16339
16340 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16341 __builtin_expect with __glibc_likely and __glibc_unlikely.
16342 (elf_machine_rela): Likewise.
16343 (elf_machine_lazy_rel): Likewise.
16344
16345 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16346
16347 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16348 __builtin_expect with __glibc_likely and __glibc_unlikely.
16349 (elf_machine_lazy_rel): Likewise.
16350
16351 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16352
16353 [BZ #22638]
16354 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16355 SHARED.
16356 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16357
16358 2018-02-05 Andreas Schwab <schwab@suse.de>
16359
16360 [BZ #22761]
16361 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16362 string.
16363
16364 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16365
16366 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16367 not check against PTHREAD_STACK_MIN.
16368
16369 2018-02-02 Sean McKean <smckean83@gmail.com>
16370
16371 [BZ #22735]
16372 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16373
16374 2018-02-02 Florian Weimer <fweimer@redhat.com>
16375
16376 [BZ #22753]
16377 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16378 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16379 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16380 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16381 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16382 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16383 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16384 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16385 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16386 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16387 * misc/tst-preadvwritev2.c (do_test): Call it.
16388 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16389
16390 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16391
16392 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16393
16394 * benchtests/bench-memcmp.c: Print json instead of plain text.
16395
16396 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16397 every test run.
16398
16399 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16400
16401 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16402 version to 4.15.
16403 (s390_sthyi): New syscall.
16404
16405 * sysdeps/generic/ldbl-classify-compat.h: New file.
16406 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16407 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16408 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16409 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16410 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16411 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16412 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16413 <ldbl-classify-compat.h>.
16414 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16415 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16416 <ldbl-classify-compat.h>.
16417 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16418 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16419 <ldbl-classify-compat.h>.
16420 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16421 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16422 <ldbl-classify-compat.h>.
16423 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16424 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16425 <ldbl-classify-compat.h>.
16426 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16427 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16428 <ldbl-classify-compat.h>.
16429 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16430 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16431 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16432 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16433 * sysdeps/microblaze/math_private.h: Likewise.
16434 * sysdeps/nios2/math_private.h: Likewise.
16435 * sysdeps/sh/math_private.h: Likewise.
16436
16437 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16438 * sysdeps/m68k/coldfire/math_private.h: ... here.
16439 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16440 * sysdeps/tile/math_private.h: Likewise.
16441 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16442 Remove macro.
16443 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16444 Likewise.
16445
16446 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16447 Remove macro.
16448 (libc_fetestexcept): Likewise.
16449 (libc_feupdateenv_test): Likewise.
16450 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16451 (libc_fetestexcept): Likewise.
16452 (libc_feupdateenv_test): Likewise.
16453 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16454 (libc_fetestexcept): Likewise.
16455 (libc_feupdateenv_test): Likewise.
16456 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16457 (libc_fetestexcept): Likewise.
16458 (libc_feupdateenv_test): Likewise.
16459
16460 * sysdeps/generic/math_private.h
16461 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16462 New inline function.
16463 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16464 Likewise.
16465
16466 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16467 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16468 * sysdeps/generic/math_private.h
16469 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16470 inline function.
16471 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16472 Likewise.
16473 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16474 Likewise.
16475 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16476 Likewise.
16477 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16478 Likewise.
16479 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16480 Likewise.
16481 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16482 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16483 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16484 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16485 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16486 (__fegetenv): Likewise.
16487 (fesetenv): Likewise.
16488 (__fesetenv): Likewise.
16489 (feupdateenv): Likewise.
16490 (__feupdateenv): Likewise.
16491 (fegetround): Likewise.
16492 (__fegetround): Likewise.
16493 (fesetround): Likewise.
16494 (__fesetround): Likewise.
16495
16496 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16497 (feraiseexcept): New macro.
16498 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16499 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16500 Remove macro.
16501 (__feraiseexcept): Likewise.
16502 (feclearexcept): Likewise.
16503 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16504 (__feraiseexcept): Likewise.
16505 (feclearexcept): Likewise.
16506 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16507 (__feraiseexcept): Likewise.
16508 (feclearexcept): Likewise.
16509 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16510 (__feraiseexcept): Likewise.
16511 (feclearexcept): Likewise.
16512 (fetestexcept): Likewise.
16513
16514 * sysdeps/m68k/coldfire/math-tests.h: New file.
16515
16516 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16517 * sysdeps/m68k/bits/fenv.h: ... here.
16518 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16519 not define.
16520 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16521 Likewise.
16522 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16523 Likewise.
16524 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16525 Likewise.
16526 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16527 Likewise.
16528 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16529 Define to 0.
16530 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16531 (__FE_UNDEFINED): New enum constant.
16532 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16533 Do not define.
16534 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16535 Likewise.
16536 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16537 Likewise.
16538 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16539 to match generic bits/fenv.h.
16540 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16541 Do not define.
16542
16543 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16544 packed on bits.
16545 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16546 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16547 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16548 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16549
16550 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16551 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16552 Joseph Myers <joseph@codesourcery.com>
16553
16554 [BZ #21314]
16555 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16556 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16557 computation using c.
16558 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16559 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16560 computation using c.
16561
16562 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16563
16564 * version.h (RELEASE): Set to "development".
16565 (VERSION): Set to "2.27.9000".
16566 * NEWS (2.28): New section.
16567
16568 * version.h (RELEASE): Set to "stable".
16569 (VERSION): Set to "2.27".
16570 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16571
16572 * NEWS: Add the list of bugs fixed in 2.27.
16573
16574 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16575
16576 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16577 against PTHREAD_STACK_MIN.
16578
16579 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16580
16581 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16582 New entries.
16583 (Rafal Luzynski, Andreas Schwab): Update.
16584
16585 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16586
16587 [BZ #10871]
16588 * NEWS: List the languages which actually use the alternative
16589 months feature in this release. Also explain that "alt_mon" and
16590 "ab_alt_mon" are optional.
16591
16592 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16593
16594 [BZ #22765]
16595 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16596
16597 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16598
16599 * manual/install.texi (Tools for Compilation): Update the newest
16600 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16601 * INSTALL: Regenerated.
16602
16603 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16604
16605 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16606 instead of __builtin_expect.
16607
16608 2018-01-30 Florian Weimer <fweimer@redhat.com>
16609
16610 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16611 data.
16612 * nss/tst-nss-getpwent.c (do_test): Likewise.
16613
16614 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16615
16616 [BZ #10871]
16617 * localedata/locales/hr_HR (mon): Rename to...
16618 (alt_mon): This.
16619 (mon): Import from CLDR (genitive case).
16620 (d_t_fmt): Update the comment.
16621
16622 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16623
16624 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16625 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16626 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16627
16628 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16629
16630 * mach/Versions: Fix version when __mach_host_self_ was added.
16631 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16632 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16633 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16634 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16635 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16636 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16637 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16638 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16639 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16640 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16641 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16642 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16643 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16644 || to respect codestyle.
16645 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16646 (do_test_bz20181): Rename accordingly.
16647 * malloc/malloc.c: Include <assert.h>.
16648 (assert): Do not define.
16649 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16650 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16651 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16652 * sysdeps/mach/hurd/hp-timing.h: New file.
16653 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16654
16655 2018-01-29 Darius Rad <darius@bluespec.com>
16656
16657 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16658
16659 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16660
16661 * sysdeps/init_array/crti.S (.section .init_array): Add
16662 PREINIT_FUNCTION when defined.
16663 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16664 * config.h.in: Regenerate.
16665 * manual/platform.texi: Add RISC-V documenation for
16666 __riscv_flush_icache.
16667 * sysdeps/riscv/__longjmp.S: New file.
16668 * sysdeps/riscv/backtrace.c: Likewise.
16669 * sysdeps/riscv/bits/endian.h: Likewise.
16670 * sysdeps/riscv/bits/setjmp.h: Likewise.
16671 * sysdeps/riscv/bits/wordsize.h: Likewise.
16672 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16673 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16674 * sysdeps/riscv/dl-trampoline.S: Likewise.
16675 * sysdeps/riscv/gccframe.h: Likewise.
16676 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16677 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16678 * sysdeps/riscv/machine-gmon.h: Likewise.
16679 * sysdeps/riscv/memusage.h: Likewise.
16680 * sysdeps/riscv/setjmp.S: Likewise.
16681 * sysdeps/riscv/sys/asm.h: Likewise.
16682 * sysdeps/riscv/tls-macros.h: Likewise.
16683 * sysdeps/riscv/dl-tls.h: New file.
16684 * sysdeps/riscv/libc-tls.c: Likewise.
16685 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16686 * sysdeps/riscv/nptl/tls.h: Likewise.
16687 * sysdeps/riscv/stackinfo.h: Likewise.
16688 * sysdeps/riscv/bits/fenv.h: New file.
16689 * sysdeps/riscv/e_sqrtl.c: Likewise.
16690 * sysdeps/riscv/fpu_control.h: Likewise.
16691 * sysdeps/riscv/math-tests.h: Likewise.
16692 * sysdeps/riscv/nofpu/Implies: Likewise.
16693 * sysdeps/riscv/sfp-machine.h: Likewise.
16694 * sysdeps/riscv/tininess.h: Likewise.
16695 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16696 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16697 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16698 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16699 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16700 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16701 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16702 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16703 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16704 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16705 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16706 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16707 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16708 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16709 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16710 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16711 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16712 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16713 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16714 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16715 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16716 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16717 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16718 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16719 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16720 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16721 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16722 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16723 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16724 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16725 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16726 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16727 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16728 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16729 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16730 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16731 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16732 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16733 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16734 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16735 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16736 * sysdeps/riscv/rvf/math_private.h: Likewise.
16737 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16738 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16739 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16740 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16741 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16742 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16743 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16744 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16745 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16746 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16747 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16748 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16749 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16750 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16751 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16752 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16753 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16754 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16755 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16756 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16757 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16758 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16759 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16760 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16761 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16762 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16763 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16764 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16765 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16766 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16767 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16768 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16769 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16770 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16771 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16772 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16773 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16774 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16775 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16776 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16777 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16778 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16779 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16780 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16781 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16782 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16783 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16784 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16785 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16786 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16787 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16788 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16789 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16790 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16791 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16792 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16793 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16794 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16795 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16796 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16797 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16798 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16799 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16800 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16801 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16802 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16803 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16804 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16805 * sysdeps/riscv/Implies: New file.
16806 * sysdeps/riscv/Makefile: Likewise.
16807 * sysdeps/riscv/configure: Likewise.
16808 * sysdeps/riscv/configure.ac: Likewise.
16809 * sysdeps/riscv/nptl/Makefile: Likewise.
16810 * sysdeps/riscv/preconfigure: Likewise.
16811 * sysdeps/riscv/rv64/Implies-after: Likewise.
16812 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16813 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16814 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16815 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16816 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16817 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16818 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16819 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16820 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16821 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16822 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16823 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16824 (Config): Likewise.
16825
16826 2018-01-29 Florian Weimer <fweimer@redhat.com>
16827
16828 [BZ #22701]
16829 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16830 libnsl_hidden_proto.
16831 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16832 libnsl_hidden_proto.
16833 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16834 * nis/Makefile (libnsl-routines): Add nss-default only for
16835 build-obsolete-nsl.
16836 * nis/nis_defaults.c (__nis_default_ttl): Add
16837 libnsl_hidden_nolink_def.
16838 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16839 declaration.
16840 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16841 * nis/ypclnt.c (yp_maplist): Likewise.
16842
16843 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16844
16845 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16846 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16847
16848 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16849
16850 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16851 clean -dxfq for git updates when replacing sources.
16852
16853 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16854 --disable-libcilkrts unconditionally, not just for the final GCC
16855 build for Hurd.
16856
16857 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16858 version to 4.15.
16859
16860 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16861
16862 [BZ #10871]
16863 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16864 case).
16865
16866 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16867
16868 [BZ #10871]
16869 * localedata/locales/be_BY (mon): Rename to...
16870 (alt_mon): This, then synchronize with CLDR (nominative case).
16871 (abmon): Rename to...
16872 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16873 (mon): Import from CLDR (genitive case).
16874 (abmon): Likewise.
16875 * localedata/locales/be_BY@latin (mon): Rename to...
16876 (alt_mon): This.
16877 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16878
16879 * localedata/locales/be_BY@latin (lang_name): Reworded to
16880 "biełaruskaja mova".
16881
16882 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16883
16884 [BZ #10871]
16885 * localedata/locales/el_CY (mon): Renamed to...
16886 (alt_mon): This.
16887 (mon): Import from CLDR (genitive case).
16888 * localedata/locales/el_GR: Likewise.
16889
16890 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16891
16892 [BZ #10871]
16893 * localedata/locales/ru_RU (mon): Rename to...
16894 (alt_mon): This.
16895 (abmon): Rename to...
16896 (ab_alt_mon): This.
16897 (mon): Import from CLDR (genitive case).
16898 (abmon): Copy from the old content except the 5th month which is
16899 now in the genitive case, even when abbreviated.
16900 * localedata/locales/ru_UA: Likewise.
16901 * time/tst-strptime.c (day_tests): Add an actual example of
16902 a difference between %b and %Ob in Russian.
16903
16904 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16905
16906 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16907 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16908 a `c' variable.
16909 * resolv/res-close.c: Include <stdlib.h>.
16910 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16911 <sys/wait.h>, <time.h>, <sys/uio.h>.
16912 (NOT_CANCEL_H): Add inclusion guard.
16913 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16914 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16915 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16916 return 0.
16917 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16918 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16919 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16920 instead of void *.
16921 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16922 timer_ptr2id to cast struct timer_node * to void *.
16923 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16924 --disable-libcilkrts to gcc configure.
16925 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16926 and make them the default for now.
16927 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16928 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16929 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16930 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16931 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16932 MACH_IPC_COMPAT.
16933 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16934 __task_terminate would ever return successfully.
16935 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16936 to global scope.
16937 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16938 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16939 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16940 critical section to make code simpler and avoid warning.
16941 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16942 critical section to make code simpler and avoid warning.
16943 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16944 const char * instead of char *.
16945 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16946 __hurd_file_name_split, hurd_file_name_split,
16947 __hurd_directory_name_split, hurd_directory_name_split,
16948 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16949 hurd_file_name_path_lookup): Make lookup function parameter take a
16950 const char *name instead of char *name.
16951 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16952 __hurd_directory_name_split): Likewise.
16953 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16954 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16955 * sysdeps/mach/hurd/check_native.c: New file.
16956 * sysdeps/mach/hurd/check_pf.c: New file.
16957 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16958 (__freeifaddrs): Define macro to freeifaddrs.
16959 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16960 * sysdeps/mach/libmachuser.abilist: New file.
16961 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16962 (do_test_bz20181): Rename accordingly.
16963 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16964 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16965 <sys/mount.h>.
16966 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16967 version only if __USE_EXTERN_INLINES is defined.
16968 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16969 __hurd_sockfail): Likewise.
16970 (_hurd_fd_get): Always declare functions, and provide inline versions
16971 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16972 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16973 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16974 _hurd_port_set): Always declare functions, and provide inline versions
16975 only if __USE_EXTERN_INLINES and _LIBC are defined and
16976 IS_IN(libc).
16977 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16978 _hurd_critical_section_unlock): Likewise.
16979 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16980 * __hurd_threadvar_location): Likewise.
16981 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16982 _hurd_userlink_clear): Likewise.
16983 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16984 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16985 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16986 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16987 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16988 __spin_lock_locked): Likewise.
16989 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16990 __spin_lock_locked): Likewise.
16991 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16992 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16993 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16994 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16995 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16996 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16997 _POSIX_NO_TRUNC): Define to 0.
16998 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16999 check size against PTHREAD_STACK_MIN.
17000 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17001 IS_IN(libpthread)]: Include <sigsetops.h>.
17002 * mach/Makefile (user-interfaces): Add mach/gnumach.
17003 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17004 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17005 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17006 instead of invalid -1.
17007 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17008 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17009 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17010 <net/ppp_defs.h>.
17011
17012 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17013
17014 * hurd/fcntl-internal.h: New file.
17015
17016 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17017
17018 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17019
17020 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17021
17022 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17023
17024 [BZ #22701]
17025 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17026 Build only shared objects.
17027
17028 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17029
17030 * README: Update for hppa.
17031
17032 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17033
17034 * sysdeps/sparc/fpu/libm-test-ulps: Update
17035 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17036
17037 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17038
17039 Revert:
17040
17041 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17042
17043 [BZ #22563]
17044 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17045 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17046 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17047 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17048 to feature_1.
17049
17050 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17051
17052 [BZ #22563]
17053 * bits/types/__cancel_jmp_buf_tag.h: New file.
17054 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17055 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17056 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17057 * nptl/Makefile (headers): Add
17058 bits/types/__cancel_jmp_buf_tag.h.
17059 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17060 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17061 * sysdeps/nptl/pthread.h: Include
17062 <bits/types/__cancel_jmp_buf_tag.h>.
17063 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17064 __cancel_jmp_buf.
17065 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17066
17067 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17068
17069 [BZ #10871]
17070 * localedata/locales/uk_UA (mon): Renamed to...
17071 (alt_mon): This.
17072 (alt_digits): "0" removed and then renamed to...
17073 (mon): This.
17074 (date_fmt): Definition changed not to use the alternative
17075 digits hack.
17076
17077 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17078
17079 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17080 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17081 * elf/elf.h (EF_RISCV_RVC): New define.
17082 (EF_RISCV_FLOAT_ABI): Likewise.
17083 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17084 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17085 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17086 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17087 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17088 define.
17089 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17090
17091 2018-01-25 Andreas Schwab <schwab@suse.de>
17092
17093 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17094 single quotes.
17095 * sysdeps/gnu/configure: Regenerate.
17096 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17097 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17099 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17100 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17101 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17102 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17103 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17104
17105 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17106
17107 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17108 URL, and run autoconf, make it the default for now.
17109
17110 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17111
17112 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17113 soft-float ColdFire configuration.
17114
17115 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17116 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17117 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17118
17119 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17120 MicroBlaze file.
17121
17122 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17123 ....
17124 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17125 ... here.
17126 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17127 New file.
17128
17129 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17130 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17131 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17132 file.
17133
17134 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17135
17136 [BZ #22742]
17137 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17138 Rename to __reserved and add comment.
17139 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17140 Rename to __reserved.
17141
17142 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17143
17144 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17145 i686-gnu configurations.
17146 (Context.run_builds): Include mig, gnumach and hurd in components
17147 considered.
17148 (Context.checkout): Add mig, gnumach and hurd to components.
17149 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17150 hurd.
17151 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17152 (Config.build): Install gnumach headers, build mig and install
17153 hurd headers for 'gnu' OS.
17154 (Config.install_gnumach_headers): New function.
17155 (Config.install_hurd_headers): Likewise.
17156 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17157 when building for 'gnu' OS.
17158
17159 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17160
17161 * manual/tunables.texi (Hardware Capability Tunables): Fix
17162 spelling.
17163
17164 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17165
17166 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17167 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17168 (ALTMON_11, ALTMON_12): Improve documentation.
17169 * manual/time.texi (strftime): Likewise.
17170
17171 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17172
17173 [BZ #10871]
17174 * localedata/locales/pl_PL: Alternative month names added,
17175 primary month names are genitive now.
17176 * time/tst-strptime.c (day_tests): Actually use a genitive case
17177 of a month name in Polish language.
17178
17179 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17180
17181 [BZ #10871]
17182 * manual/locale.texi: Document ALTMON_1..12 constants for
17183 nl_langinfo. Specify when to use ALTMON instead of MON.
17184 * manual/time.texi (strftime, strptime): Document GNU extension
17185 permitting O modifier with %B and %b. Specify when to use
17186 %OB instead of %B.
17187
17188 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17189
17190 [BZ #10871]
17191 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17192 names, define them as the same as abbreviated month names explicitly.
17193 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17194 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17195 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17196 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17197 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17198 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17199 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17200 _NL_WABALTMON_12): New enum constants.
17201 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17202 wab_alt_mon, and ab_alt_mon_defined members.
17203 (time_output): Output ab_alt_mon and wab_alt_mon members.
17204 (time_read): Read them, initialize them as copies of abmon and wabmon
17205 respectively if they are missing, initialize ab_alt_mon_defined.
17206 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17207 * locale/programs/locfile-kw.h: Regenerate.
17208 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17209 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17210 and ru_RU.UTF-8.
17211 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17212 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17213 (__strftime_internal): Handle %Ob and %Oh formats.
17214 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17215 (__strptime_internal): Handle %Ob and %Oh formats.
17216 * time/tst-strptime.c (day_tests): Add more tests to parse different
17217 forms of month names including the new %Ob format specifier.
17218
17219 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17220
17221 [BZ #10871]
17222 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17223 define them as the same as primary full month names explicitly.
17224 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17225 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17226 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17227 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17228 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17229 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17230 _NL_WALTMON_12): New enum constants.
17231 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17232 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17233 macros.
17234 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17235 walt_mon, and alt_mon_defined members.
17236 (time_output): Output alt_mon and walt_mon members.
17237 (time_read): Read them, initialize them as copies of mon and wmon
17238 respectively if they are missing, initialize alt_mon_defined.
17239 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17240 * locale/programs/locfile-kw.h: Regenerate.
17241 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17242 * localedata/tst-langinfo.c (map): Add tests for the new constants
17243 ALTMON_1 .. ALTMON_12.
17244 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17245 and pl_PL.UTF-8.
17246 * time/strftime_l.c (f_altmonth): New macro.
17247 (__strftime_internal): Handle %OB format.
17248 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17249 (__strptime_internal): Handle %OB format.
17250 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17251 of month names including the new %OB format specifier.
17252
17253 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17254
17255 [BZ #22685]
17256 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17257 from ABORT_TRANSACTION.
17258 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17259 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17260 ABORT_TRANSACTION_IMPL): Likewise.
17261 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17262 Linux code, but remove the code that aborts transactions.
17263
17264 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17265
17266 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17267
17268 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17269
17270 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17271 in date: "2004-14-09" should be "2004-09-14".
17272 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17273 "2003-15-09" should be "2003-09-15".
17274
17275 2018-01-18 Arjun Shankar <arjun@redhat.com>
17276
17277 [BZ #22343]
17278 [BZ #22774]
17279 CVE-2018-6485
17280 CVE-2018-6551
17281 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17282 after padding.
17283 (_int_memalign): check for integer overflow before calling
17284 _int_malloc.
17285 * malloc/tst-malloc-too-large.c: New test.
17286 * malloc/Makefile: Add tst-malloc-too-large.
17287
17288 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17289
17290 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17291 in date: "2017-24-07" should be "2017-07-24".
17292 * localedata/locales/mai_IN: Likewise.
17293 * localedata/locales/mai_NP: Likewise.
17294
17295 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17296
17297 * po/ru.po: Update translations.
17298
17299 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17300
17301 [BZ #22719]
17302 * sysdeps/hppa/backtrace.c: New file.
17303
17304 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17305
17306 [BZ #22715]
17307 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17308 align La_x86_64_retval to VEC_SIZE.
17309
17310 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17311
17312 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17313 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17314
17315 2018-01-16 Florian Weimer <fweimer@redhat.com>
17316
17317 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17318 Move tst-thread-exit-clobber ...
17319 [$(CXX)] (tests-unsupported): ... to here.
17320
17321 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17322
17323 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17324 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17325 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17326 (_dl_aarch64_cap_flags): Update.
17327 (_DL_HWCAP_COUNT): Update.
17328
17329 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17330
17331 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17332 (_DL_HWCAP_LAST): Remove.
17333 (_DL_HWCAP_COUNT): Move to ...
17334 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17335 (_DL_HWCAP_COUNT): ... here.
17336
17337 2018-01-16 Florian Weimer <fweimer@redhat.com>
17338
17339 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17340 mode with GNU extensions.
17341
17342 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17343
17344 * elf/elf.h (NT_ARM_SVE): Define.
17345
17346 2018-01-15 Florian Weimer <fweimer@redhat.com>
17347
17348 [BZ #22636]
17349 * nptl/tst-minstack-throw.cc: New file.
17350 * nptl/Makefile (tests): Add tst-minstack-throw.
17351 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17352 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17353
17354 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17355
17356 * scripts/build-many-glibcs.py (Context.checkout): Default
17357 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17358 version to 1.1.0.
17359
17360 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17361
17362 [BZ #22707]
17363 * elf/elf.h (DF_1_STUB): Define.
17364 (DF_1_PIE): Define.
17365
17366 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17367
17368 [BZ #22697]
17369 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17370 Do not add 0.5 to integer or out-of-range arguments.
17371
17372 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17373
17374 * po/bg.po: Update translations.
17375 * po/cs.po: Likewise.
17376 * po/de.po: Likewise.
17377 * po/ko.po: Likewise.
17378 * po/pl.po: Likewise.
17379 * po/sv.po: Likewise.
17380 * po/uk.po: Likewise.
17381 * po/vi.po: Likewise.
17382
17383 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17384
17385 * aarch64/start.S (_start): Use __wrap_main.
17386 (__wrap_main): New local symbol.
17387
17388 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17389
17390 [BZ #22679]
17391 CVE-2018-1000001
17392 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17393 generic_getcwd if the path returned by getcwd syscall is not absolute.
17394 * io/tst-getcwd-abspath.c: New test.
17395 * io/Makefile (tests): Add tst-getcwd-abspath.
17396
17397 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17398
17399 * malloc/malloc.c (malloc_consolidate): Add size check.
17400
17401 2018-01-12 Florian Weimer <fweimer@redhat.com>
17402
17403 * support/write_message.c (write_message): Preserve errno.
17404 * support/check.c (print_failure): Likewise.
17405 * support/support_test_verify_impl.c (support_test_verify_impl):
17406 Likewise.
17407 * support/support_test_compare_failure.c
17408 (support_test_compare_failure): Likewise.
17409
17410 2018-01-12 Florian Weimer <fweimer@redhat.com>
17411
17412 [BZ #22701]
17413 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17414 Prevent installation of libnsl.so.
17415 (libnsl-inhibit-o): Do not build (or install) static libraries.
17416
17417 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17418
17419 [BZ #22657]
17420 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17421 before the day number which may produce a double space.
17422 (date_fmt): Likewise.
17423
17424 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17425
17426 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17427 instead of fegetenv.
17428
17429 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17430
17431 [BZ #22702]
17432 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17433 comment to say exceptions are discarded.
17434 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17435 __fegetenv.
17436 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17437 be enabled.
17438
17439 2018-01-11 Florian Weimer <fweimer@redhat.com>
17440
17441 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17442 and error message.
17443
17444 2018-01-11 Florian Weimer <fweimer@redhat.com>
17445
17446 [BZ #22636]
17447 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17448 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17449
17450 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17451
17452 [BZ #22693]
17453 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17454 negative arguments in test for NaN or infinity argument.
17455
17456 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17457
17458 * po/libc.pot: Regenerate.
17459
17460 2018-01-10 Florian Weimer <fweimer@redhat.com>
17461
17462 [BZ #22636]
17463 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17464 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17465
17466 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17467
17468 * hurd/hurd/fd.h: Include <fcntl.h>
17469 (__hurd_at_flags): New function.
17470 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17471 with call to __hurd_at_flags.
17472 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17473 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17474 __faccessat
17475 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17476 (__access_noerrno): Use __faccessat_common instead of access_common.
17477 (__access): Likewise.
17478 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17479 with a call to __faccessat.
17480 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17481 (__faccessat_common): ... this. Move implementation of __access into it when
17482 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17483 reauthenticate_cwdir_at helper to implement AT mechanism.
17484 (__faccessat_noerrno): New function, just calls __faccessat_common.
17485 (__faccessat): New function, just calls __faccessat_common.
17486 (faccessat): Define weak alias.
17487
17488 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17489
17490 [BZ #22691]
17491 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17492 (CFLAGS-s_fmaxmagl.c): New variable.
17493 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17494
17495 [BZ #22690]
17496 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17497 long int for arguments of possibly overflowing addition or
17498 subtraction.
17499 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17500
17501 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17502
17503 [BZ #22688]
17504 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17505 (CFLAGS-e_remainderl.c): New variable.
17506
17507 [BZ #22687]
17508 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17509 variable.
17510 (CFLAGS-s_cacoshl.c): Likewise.
17511 (CFLAGS-s_casinhl.c): Likewise.
17512 (CFLAGS-s_catanl.c): Likewise.
17513 (CFLAGS-s_catanhl.c): Likewise.
17514 (CFLAGS-s_cexpl.c): Likewise.
17515 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17516 (CFLAGS-s_csinhl.c): Likewise.
17517 (CFLAGS-s_clogl.c): Likewise.
17518 (CFLAGS-s_clog10l.c): Likewise.
17519 (CFLAGS-s_csinl.c): Likewise.
17520 (CFLAGS-s_csqrtl.c): Likewise.
17521
17522 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17523 2017-01-09 Svante Signell <svante.signell@gmail.com>
17524
17525 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17526 (_hurd_exec_paths): New function.
17527 * hurd/hurd.h (_hurd_exec): Deprecate function.
17528 (_hurd_exec_paths): Declare function.
17529 * hurd/Versions: Export _hurd_exec_paths.
17530 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17531 (__execve): Use __getcwd to build absolute path, and use
17532 _hurd_exec_paths instead of _hurd_exec.
17533 * sysdeps/mach/hurd/spawni.c: Likewise.
17534 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17535 _hurd_exec.
17536
17537 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17538
17539 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17540 test instead of failing in case of ENOENT returned by posix_openpt.
17541
17542 2018-01-08 Florian Weimer <fweimer@redhat.com>
17543
17544 resolv: Support binary labels in test framework.
17545 * support/resolv_test.c (struct to_be_freed): Remove.
17546 (struct compressed_name): New.
17547 (allocate_compressed_name, ascii_tolower)
17548 (compare_compressed_name): New functions.
17549 (struct resolv_response_builder): Update type of
17550 compression_offsets for use with tsearch. Rempve to_be_freed.
17551 (response_push_pointer_to_free): Remove function.
17552 (resolv_response_add_name): Rewrite using struct compressed_name
17553 and tsearch instead of hsearch_r.
17554 (response_builder_allocate): Remove initialization of
17555 compression_offsets.
17556 (response_builder_free): Update for removal of to_be_freed. Use
17557 tdestroy instead of hdestroy_r.
17558 * resolv/Makefile (tests): Add tst-resolv-binary.
17559 (tst-resolv-binary): Link with -lresolv -lpthread.
17560
17561 2018-01-08 Florian Weimer <fweimer@redhat.com>
17562
17563 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17564 time. Pass positive flag instead of negative flag to
17565 support_test_compare_failure.
17566 (support_test_compare_failure): Change negative parameter to
17567 positive.
17568 * support/support_test_compare_failure.c (report)
17569 (support_test_compare_failure): Likewise.
17570 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17571 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17572
17573 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17574
17575 [BZ #22637]
17576 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17577 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17578 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17579 stacksize.
17580 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17581
17582 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17583
17584 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17585 Add s_sincosf-sse2 and s_sincosf-fma.
17586 (CFLAGS-s_sincosf-fma.c): New.
17587 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17588 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17589 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17590 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17591 __sincosf is defined.
17592
17593 2018-01-08 Florian Weimer <fweimer@redhat.com>
17594
17595 * nptl/tst-thread-exit-clobber.cc: New file.
17596 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17597 C++11 mode.
17598 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17599 (tests): Add tst-thread-exit-clobber.
17600 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17601
17602 2018-01-08 Florian Weimer <fweimer@redhat.com>
17603
17604 * support/check.h (support_static_assert): Define.
17605 (TEST_COMPARE): Use it.
17606
17607 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17608
17609 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17610 [!__RLIM_T_MATCHES_RLIM64_T]
17611 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17612 __getrlimit64. Add libc_hidden_weak.
17613
17614 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17615
17616 * elf/elf.h (R_RISCV_NONE): New define.
17617 (R_RISCV_32): Likewise.
17618 (R_RISCV_64): Likewise.
17619 (R_RISCV_RELATIVE): Likewise.
17620 (R_RISCV_COPY): Likewise.
17621 (R_RISCV_JUMP_SLOT): Likewise.
17622 (R_RISCV_TLS_DTPMOD32): Likewise.
17623 (R_RISCV_TLS_DTPMOD64): Likewise.
17624 (R_RISCV_TLS_DTPREL32): Likewise.
17625 (R_RISCV_TLS_DTPREL64): Likewise.
17626 (R_RISCV_TLS_TPREL32): Likewise.
17627 (R_RISCV_TLS_TPREL64): Likewise.
17628 * Makerules (make-link-multidir): Make directories before linking into
17629 them.
17630 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17631 define.
17632 (VDSO_HASH_LINUX_4_15): Likewise.
17633 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17634 in subdirectories of lib.
17635 * nptl/Makefile (/librt.so): Always depend on
17636 "$(shared-thread-library)".
17637
17638 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17639
17640 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17641 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17642 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17643 (___tls_get_addr).
17644 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17645 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17646 "-O2 -march=i686".
17647 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17648 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17649 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17650 * sysdeps/gnu/glob-lstat-compat.c: New file.
17651 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17652 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17653
17654 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17655
17656 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17657 Reserve 16 chars to reloc_addr before calling _itoa_word.
17658
17659 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17660
17661 [BZ #22678]
17662 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17663 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17664
17665 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17666 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17667
17668 * resource/tst-getrlimit.c: Add copyright header.
17669
17670 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17671 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17672
17673 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17674 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17675 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17676 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17677 instead.
17678 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17679 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17680 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17681 RLIM64_INFINITY): Fix values to match the kernel ones.
17682 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17683 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17684 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17685 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17686 getrlimit64@@GLIBC_2_27.
17687 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17688 and setrlimit64.
17689 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17690 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17691 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17692 setrlimit, getrlimit64 and setrlimit64.
17693
17694 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17695
17696 [BZ #22648]
17697 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17698 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17699
17700 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17701
17702 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17703 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17704 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17705
17706 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17707
17708 [BZ #15479]
17709 [BZ #22666]
17710 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17711 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17712
17713 [BZ #15479]
17714 [BZ #22665]
17715 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17716 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17717 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17718 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17719
17720 2018-01-04 Florian Weimer <fweimer@redhat.com>
17721
17722 [BZ #22667]
17723 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17724 Align the stack before calling exit.
17725 * stdlib/tst-makecontext-align.c: New file.
17726 * stdlib/Makefile (tests): Add tst-makecontext-align.
17727
17728 2018-01-04 Florian Weimer <fweimer@redhat.com>
17729
17730 Add support for calling dlvsym from libc.so.
17731 * include/dlfcn.h (__libc_dlvsym): Declare.
17732 * elf/Makefile (tests-static-internal): Add
17733 tst-libc_dlvsym-static.
17734 (tests-internal): Add tst-libc_dlvsym.
17735 (modules-names): Add tst-libc_dlvsym-dso.
17736 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17737 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17738 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17739 object tst-libc_dlvsym-dso.so needs to be built before running
17740 these tests.
17741 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17742 * elf/Versions: Export __libc_dlvsym.
17743 * elf/dl-libc.c (struct do_dlvsym_args): New.
17744 (do_dlvsym, __libc_dlvsym): New functions.
17745 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17746 (_dl_open_hook2): New variable.
17747 (__libc_register_dl_open_hook): Set it.
17748 * elf/tst-libc_dlvsym-dso.c: New file.
17749 * elf/tst-libc_dlvsym-static.c: Likewise.
17750 * elf/tst-libc_dlvsym.c: Likewise.
17751 * elf/tst-libc_dlvsym.h: Likewise.
17752
17753 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17754
17755 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17756 include <sys/mount.h>.
17757
17758 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17759
17760 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17761 Add __NO_MATH_ERRNO__ check.
17762
17763 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17764
17765 * sysdeps/mips/mips32/libm-test-ulps: Update.
17766 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17767
17768 2018-01-02 Florian Weimer <fweimer@redhat.com>
17769
17770 * misc/tst-pselect.c: Add copyright header.
17771
17772 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17773
17774 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17775 comment.
17776 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17777 comment.
17778 (settrlimit): Rename into setrlimit.
17779 (__sttrlimit): Rename into __setrlimit.
17780
17781 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17782 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17783 never defined in that case.
17784
17785 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17786
17787 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17788
17789 * sysdeps/arm/libm-test-ulps: Update.
17790
17791 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17792 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17793
17794 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17795
17796 * NEWS: Add cosf and sincosf to list of optimized functions.
17797
17798 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17799
17800 [BZ #22660]
17801 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17802 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17803 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17804 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17805
17806 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17807
17808 [BZ #22433]
17809 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17810
17811 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17812 making a copy of it.
17813
17814 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17815
17816 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17817 trailing whitespace removed.
17818 * scripts/config.guess: Update to version 2018-01-01.
17819 * scripts/config.sub: Update to version 2018-01-01.
17820 * scripts/move-if-change: Update from gnulib.
17821
17822 * NEWS: Update copyright dates.
17823 * catgets/gencat.c (print_version): Likewise.
17824 * csu/version.c (banner): Likewise.
17825 * debug/catchsegv.sh: Likewise.
17826 * debug/pcprofiledump.c (print_version): Likewise.
17827 * debug/xtrace.sh (do_version): Likewise.
17828 * elf/ldconfig.c (print_version): Likewise.
17829 * elf/ldd.bash.in: Likewise.
17830 * elf/pldd.c (print_version): Likewise.
17831 * elf/sotruss.sh: Likewise.
17832 * elf/sprof.c (print_version): Likewise.
17833 * iconv/iconv_prog.c (print_version): Likewise.
17834 * iconv/iconvconfig.c (print_version): Likewise.
17835 * locale/programs/locale.c (print_version): Likewise.
17836 * locale/programs/localedef.c (print_version): Likewise.
17837 * login/programs/pt_chown.c (print_version): Likewise.
17838 * malloc/memusage.sh (do_version): Likewise.
17839 * malloc/memusagestat.c (print_version): Likewise.
17840 * malloc/mtrace.pl: Likewise.
17841 * manual/libc.texinfo: Likewise.
17842 * nptl/version.c (banner): Likewise.
17843 * nscd/nscd.c (print_version): Likewise.
17844 * nss/getent.c (print_version): Likewise.
17845 * nss/makedb.c (print_version): Likewise.
17846 * posix/getconf.c (main): Likewise.
17847 * scripts/test-installation.pl: Likewise.
17848 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17849
17850 * All files with FSF copyright notices: Update copyright dates
17851 using scripts/update-copyrights.
17852 * locale/programs/charmap-kw.h: Regenerated.
17853 * locale/programs/locfile-kw.h: Likewise.
17854
17855 2017-12-31 Zack Weinberg <zackw@panix.com>
17856
17857 * libio/bits/libio-ldbl.h: Correct check for improper
17858 inclusion. Add own multiple include guard.
17859
17860 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17861 Dmitry V. Levin <ldv@altlinux.org>
17862
17863 [BZ #22625]
17864 CVE-2017-16997
17865 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17866 string token expansion. Check for NULL pointer or empty string possibly
17867 returned by expand_dynamic_string_token.
17868 (decompose_rpath): Check for empty path after dynamic string
17869 token expansion.
17870
17871 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17872
17873 [BZ #22433]
17874 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17875
17876 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17877 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17878 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17879 and PTRACE_SYSCALL.
17880 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17881 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17882 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17883 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17884 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17885 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17886
17887 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17888 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17889 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17890 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17891 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17892 bits/ptrace-shared.h.
17893 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17894 <bits/ptrace-shared.h>.
17895 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17896 __ptrace_peeksiginfo_flags, ptrace): Remove.
17897 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17898 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17899 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17900 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17901 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17902
17903 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17904
17905 [BZ #17804]
17906 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17907 end of the loop. Improve comments.
17908
17909 2017-12-29 Zack Weinberg <zackw@panix.com>
17910
17911 [BZ #22615]
17912 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17913 might be set on success.
17914
17915 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17916
17917 [BZ #22611]
17918 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17919 is unchanged on success.
17920
17921 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17922
17923 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17924 updated.
17925 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17926 expand_dynamic_string_token): Likewise.
17927 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17928 is_path argument.
17929
17930 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17931 contains ':'.
17932
17933 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17934 is set and name contains ':', and all code depending on these checks.
17935
17936 2017-12-24 Zack Weinberg <zackw@panix.com>
17937
17938 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17939 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17940 respectively.
17941 * libio/libio.h: Rename the original version of this file to
17942 libio/bits/libio.h. Error out if not included by stdio.h or the
17943 stub libio.h.
17944 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17945 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17946 if not included by bits/libio.h or the stub _G_config.h.
17947 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17948 sysdeps/unix/sysv/linux/bits. Error out if not included by
17949 bits/libio.h or the stub _G_config.h.
17950 * libio/stdio.h: Include bits/libio.h, not libio.h.
17951 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17952 well as libio.h and _G_config.h.
17953
17954 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17955 * libio/strfile.h, stdio-common/vfscanf.c
17956 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17957 Include stdio.h, not _G_config.h nor libio.h.
17958 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17959 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17960
17961 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17962
17963 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17964
17965 [BZ #22347]
17966 * stdlib/getrandom.c (getrandom): Fix comment.
17967 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17968
17969 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17970
17971 [BZ #21161]
17972 * manual/arith.texi (strtoul): Fix a typo.
17973
17974 [BZ #22596]
17975 * manual/arith.texi (finite): Fix the description of the return
17976 value.
17977
17978 2017-12-22 Eric Blake <ebb9@byu.net>
17979
17980 Avoid gcc warnings on cygwin
17981 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17982 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17983 Avoid unused variable.
17984
17985 2017-12-22 Florian Weimer <fweimer@redhat.com>
17986
17987 * io/Makefile (routines): Add copy_file_range.
17988 (tests): Add tst-copy_file_range.
17989 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17990 * io/Versions (GLIBC_2.27): Export copy_file_range.
17991 * io/copy_file_range-compat.c: New file.
17992 * io/copy_file_range.c: Likewise.
17993 * io/tst-copy_file_range-compat.c: Likewise.
17994 * io/tst-copy_file_range.c: Likewise.
17995 * manual/llio.texi (Copying File Data): New section.
17996 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17997 * support/Makefile (libsupport-routines): Add support-xfstat,
17998 xftruncate, xlseek.
17999 * support/support-xfstat.c: New file.
18000 * support/xftruncate.c: Likewise.
18001 * support/xlseek.c: Likewise.
18002 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18003 * sysdeps/unix/sysv/linux/**.abilist: Update.
18004 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18005
18006 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18007
18008 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18009 disable-multi-arch variant to aarch64-linux-gnu.
18010
18011 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18012
18013 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18014 trailing whitespace removed.
18015 * scripts/config.guess: Update to version 2017-12-17.
18016 * scripts/config.sub: Update to version 2017-11-23.
18017 * scripts/install-sh: Update to version 2017-09-23.17.
18018 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18019
18020 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18021
18022 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18023 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18024 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18025 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18026 * sysdeps/tile/crtn.S: Likewise.
18027 * sysdeps/tile/dl-start.S (_start): Likewise.
18028 * sysdeps/tile/dl-trampoline.S: Likewise.
18029 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18030 * sysdeps/tile/start.S (_start): Likewise.
18031 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18032 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18033 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18034 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18035 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18036 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18037 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18038
18039 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18040 comment.
18041 * sysdeps/tile/preconfigure: Remove tilegx folder.
18042 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18043 * sysdeps/tile/Implies: ... here.
18044 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18045 * sysdeps/tile/Makefile: ... here.
18046 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18047 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18048 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18049 * sysdeps/tile/bits/wordsize.h: ... here.
18050 * sysdeps/tile/tilegx/*: Move to ...
18051 * sysdeps/tile/*: ... here.
18052 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18053 * sysdeps/tile/tilegx32/Implies: ... here.
18054 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18055 * sysdeps/tile/tilegx64/Implies: ... here.
18056 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18057 to ...
18058 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18059 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18060 * sysdeps/unix/sysv/linux/tile/*: ... here.
18061 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18062 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18063 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18064 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18065
18066 * README: Remove tilepro-*-linux-gnu from supported architecture.
18067 * scripts/build-many-glibcs.py: Likewise.
18068 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18069 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18070 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18071 elf_machine_matches_host, elf_machine_dynamic,
18072 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18073 howto, elf_machine_rela): Likewise.
18074 * sysdeps/tile/dl-start.S (_start): Likewise.
18075 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18076 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18077 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18078 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18079 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18080 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18081 Likewise.
18082 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18083 * sysdeps/tile/preconfigure: Likewise.
18084 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18085 POINTER_CHK_GUARD): Likewise.
18086 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18087 * sysdeps/tile/start.S (_start): Likewise.
18088 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18089 Likewise.
18090 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18091 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18092 CMOVNEZ): Remove.
18093 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18094 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18095 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18096 Likewise.
18097 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18098 * sysdeps/tile/tilepro/Implies: Remove file.
18099 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18100 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18101 * sysdeps/tile/tilepro/memchr.c: Likewise.
18102 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18103 * sysdeps/tile/tilepro/memset.c: Likewise.
18104 * sysdeps/tile/tilepro/memusage.h: Likewise.
18105 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18106 * sysdeps/tile/tilepro/strchr.c: Likewise.
18107 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18108 * sysdeps/tile/tilepro/strlen.c: Likewise.
18109 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18110 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18111 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18112 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18113 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18114 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18115 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18116 Likewise.
18117 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18123 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18129 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18130 tilepro mention in comment.
18131
18132 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18133 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18134 * nptl/pthread_join_common.c: New file: common function used on
18135 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18136 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18137 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18138 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18139 (cleanup): Move definition to pthread_join_common.c.
18140 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18141 Remove superflous checks.
18142 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18143 Likewise.
18144
18145 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18146
18147 * sysdeps/aarch64/libm-test-ulps: Update.
18148
18149 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18150
18151 * sysdeps/aarch64/memset.S (MEMSET): Define.
18152
18153 2017-12-20 Florian Weimer <fweimer@redhat.com>
18154
18155 [BZ #22635]
18156 nptl: Provide full implementation of pthread_self in libc.so.
18157 * nptl/Makefile (routines): Add pthread_self.
18158 (libpthread-routines): Replace pthread_self with
18159 compat-pthread_self.
18160 * nptl/forward.c (pthread_self): Remove.
18161 * nptl/nptl-init.c (pthread_functions): Do not initialize
18162 ptr_pthread_self.
18163 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18164 * nptl/compat-pthread_self.c: New file.
18165 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18166 Remove ptr_pthread_self.
18167
18168 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18169
18170 * posix/regcomp.c: Fix spelling in comments.
18171 * posix/regex.h: Likewise.
18172 * posix/regex_internal.c: Likewise.
18173 * posix/regexec.c: Likewise.
18174
18175 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18176
18177 [BZ #22377]
18178 * math/Makefile [C++] (tests): Add test for iseqsig.
18179 * math/math.h [C++] (iseqsig): New implementation, which does
18180 not rely on __MATH_TG/__builtin_types_compatible_p.
18181 * math/test-math-iseqsig.cc: New file.
18182 * sysdeps/powerpc/powerpc64le/Makefile
18183 (CFLAGS-test-math-iseqsig.cc): New variable.
18184
18185 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18186
18187 * elf/dl-load.c (is_trusted_path): Remove.
18188 (fillin_rpath): Remove check_trusted argument and its use,
18189 all callers changed.
18190
18191 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18192
18193 [BZ #22630]
18194 * Makeconfig (link-pie-before-libc): Replace -pie with
18195 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18196 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18197 (tst-dlopen-aout-no-pie): New.
18198 (LDFLAGS-tst-prelink): Removed.
18199 (tst-prelink-no-pie): New.
18200 (LDFLAGS-tst-main1): Removed.
18201 (tst-main1-no-pie): New.
18202 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18203 (tst-gmon-no-pie): New.
18204
18205 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18206
18207 * manual/install.texi: Document that --enable-static-pie
18208 implies PIE.
18209 * INSTALL: Regenerated.
18210
18211 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18212
18213 [BZ #21309]
18214 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18215 unsigned.
18216
18217 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18218
18219 Revert:
18220
18221 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18222
18223 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18224
18225 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18226
18227 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18228 <errno.h>. Include "eexp.tbl".
18229 (half): New constant.
18230 (one): Likewise.
18231 (__ieee754_exp): Rewrite.
18232 (__slowexp): Remove prototype.
18233 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18234 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18235 * sysdeps/i386/fpu/slowexp.c: Likewise.
18236 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18237 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18238 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18239 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18240 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18241 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18242 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18243 comment.
18244 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18245 (CPPFLAGS-slowexp.c): Remove variable.
18246 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18247 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18248 (CFLAGS-slowexp-fma.c): Remove variable.
18249 (CFLAGS-slowexp-fma4.c): Likewise.
18250 (CFLAGS-slowexp-avx.c): Likewise.
18251 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18252 define as macro.
18253 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18254 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18255 * math/Makefile (type-double-routines): Remove slowexp.
18256 * manual/probes.texi (slowexp_p6): Remove.
18257 (slowexp_p32): Likewise.
18258
18259 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18260
18261 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18262 arithmetic.
18263
18264 * lib/glob.c (glob): Do not pass NULL to mempcpy.
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 James Clarke <jrtc27@jrtc27.com>
18306
18307 [BZ #22603]
18308 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18309 addition.
18310
18311 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18312
18313 [BZ #22605]
18314 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18315 code.
18316
18317 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18318
18319 [BZ #22563]
18320 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18321 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18322 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18323 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18324 to feature_1.
18325
18326 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18327
18328 [BZ #22563]
18329 * bits/types/__cancel_jmp_buf_tag.h: New file.
18330 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18331 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18332 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18333 * nptl/Makefile (headers): Add
18334 bits/types/__cancel_jmp_buf_tag.h.
18335 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18336 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18337 * sysdeps/nptl/pthread.h: Include
18338 <bits/types/__cancel_jmp_buf_tag.h>.
18339 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18340 __cancel_jmp_buf.
18341 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18342
18343 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18344
18345 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18346 --enable-static-pie variants to x86_64, x32 and i686.
18347
18348 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18349
18350 [BZ #22631]
18351 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18352 argument for attrubutes. All callers changed.
18353 (__inline_mathop1): Likewise. All callers changed.
18354 (__inline_mathop): Likewise. All callers changed.
18355 [__USE_MISC] (scalbn): Use __inline_forward instead of
18356 __inline_forward_c.
18357 [__USE_ISOC99] (scalbln): Likewise.
18358 [__USE_ISOC99] (nearbyint): Likewise.
18359 [__USE_ISOC99] (lrint): Likewise.
18360 [__USE_MISC] (scalbnf): Likewise.
18361 [__USE_ISOC99] (scalblnf): Likewise.
18362 [__USE_ISOC99] (nearbyintf): Likewise.
18363 [__USE_ISOC99] (lrintf): Likewise.
18364 [__USE_MISC] (scalbnl): Likewise.
18365 [__USE_ISOC99] (scalblnl): Likewise.
18366 [__USE_ISOC99] (nearbyintl): Likewise.
18367 [__USE_ISOC99] (lrintl): Likewise.
18368 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18369 __inline_mathop and __m81_defun changed.
18370
18371 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18372 CPU or FPU for ARM hard-float configurations.
18373
18374 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18375
18376 * nptl/tst-attr3.c: Include <libc-diag.h>.
18377 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18378
18379 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18380
18381 * string/tester.c (test_strncat): Also disable -Warray-bounds
18382 warnings for two tests.
18383
18384 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18385
18386 [BZ #22614]
18387 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18388 $(cc-pie-default) == yes.
18389 * config.make.in (cc-pie-default): New.
18390 * configure.ac (libc_cv_pie_default): Renamed to ...
18391 (libc_cv_cc_pie_default): This.
18392 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18393 * configure: Regenerated.
18394
18395 2017-12-18 Florian Weimer <fweimer@redhat.com>
18396
18397 [BZ #20204]
18398 ld.so: Harden dl-libc/libdl hooks.
18399 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18400 (rtld_active): New function.
18401 * dlfcn/dladdr.c (__dladdr): Call it.
18402 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18403 * dlfcn/dlclose.c (__dlcose): Likewise.
18404 * dlfcn/dlerror.c (__dlerror): Likewise.
18405 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18406 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18407 * dlfcn/dlopen.c (__dlopen): Likewise.
18408 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18409 * dlfcn/dlsym.c (__dlsym): Likewise.
18410 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18411 * libio/vtables.c (_IO_vtable_check): Likewise.
18412 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18413 (__libc_dlclose): Likewise.
18414 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18415 assignment.
18416
18417 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18418
18419 [BZ #22446]
18420 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18421 buffers for readlink input and output.
18422
18423 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18424
18425 [BZ #22624]
18426 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18427 inhibit_stack_protector.
18428
18429 [BZ #22624]
18430 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18431 inhibit_stack_protector.
18432
18433 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18434
18435 [BZ #22627]
18436 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18437 code and invocation.
18438
18439 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18440
18441 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18442
18443 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18444
18445 [BZ #22505]
18446 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18447
18448 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18449
18450 * sysdeps/s390/fpu/libm-test-ulps: Update.
18451
18452 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18453
18454 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18455
18456 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18457
18458 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18459 constants to s_sincosf.h file.
18460 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18461 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18462 implementation.
18463 * sysdeps/ieee754/flt-32/s_sincosf.h:
18464 New file.
18465
18466 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18467
18468 [BZ #14681]
18469 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18470 before mtrace.
18471
18472 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18473
18474 [BZ #19574]
18475 * INSTALL: Regenerated.
18476 * Makeconfig (real-static-start-installed-name): New.
18477 (pic-default): Updated for --enable-static-pie.
18478 (pie-default): New for --enable-static-pie.
18479 (default-pie-ldflag): Likewise.
18480 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18481 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18482 Replace $(static-start-installed-name) with
18483 $(real-static-start-installed-name).
18484 (+prectorT): Updated for --enable-static-pie.
18485 (+postctorT): Likewise.
18486 (CFLAGS-.o): Add $(pie-default).
18487 (CFLAGS-.op): Likewise.
18488 * NEWS: Mention --enable-static-pie.
18489 * config.h.in (ENABLE_STATIC_PIE): New.
18490 * configure.ac (--enable-static-pie): New configure option.
18491 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18492 (have-static-pie): Likewise.
18493 Enable static PIE if linker supports --no-dynamic-linker.
18494 (ENABLE_STATIC_PIE): New AC_DEFINE.
18495 (enable-static-pie): New LIBC_CONFIG_VAR.
18496 * configure: Regenerated.
18497 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18498 gr$(start-installed-name) for --enable-static-pie.
18499 (extra-objs): Likewise.
18500 (install-lib): Likewise.
18501 (extra-objs): Add static-reloc.o and static-reloc.os
18502 ($(objpfx)$(start-installed-name)): Also depend on
18503 $(objpfx)static-reloc.o.
18504 ($(objpfx)r$(start-installed-name)): New.
18505 ($(objpfx)g$(start-installed-name)): Also depend on
18506 $(objpfx)static-reloc.os.
18507 ($(objpfx)gr$(start-installed-name)): New.
18508 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18509 in libc.a.
18510 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18511 initimage.
18512 * csu/static-reloc.c: New file.
18513 * elf/Makefile (routines): Add dl-reloc-static-pie.
18514 (elide-routines.os): Likewise.
18515 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18516 (tst-tls1-static-non-pie-no-pie): New.
18517 * elf/dl-reloc-static-pie.c: New file.
18518 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18519 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18520 STATIC_PIE_BOOTSTRAP.
18521 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18522 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18523 (tests-static): Likewise.
18524 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18525 (tst-gmon-static-no-pie): New.
18526 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18527 (CRT-tst-gmon-static-pie): Likewise.
18528 (tst-gmon-static-pie-ENV): Likewise.
18529 (tests-special): Likewise.
18530 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18531 (clean-tst-gmon-static-pie-data): Likewise.
18532 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18533 * gmon/tst-gmon-static-pie.c: New file.
18534 * manual/install.texi: Document --enable-static-pie.
18535 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18536 (_dl_get_dl_main_map): Likewise.
18537 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18538 * sysdeps/x86_64/configure.ac: Likewise.
18539 * sysdeps/i386/configure: Regenerated.
18540 * sysdeps/x86_64/configure: Likewise.
18541 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18542 (ASFLAGS-.op): Likewise.
18543
18544 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18545
18546 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18547 * posix/tst-mmap-offset.c (fname): Use /tmp.
18548 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18549
18550 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18551
18552 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18553
18554 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18555
18556 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18557 errno.
18558
18559 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18560
18561 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18562 --with-float=hard for arm-linux-gnueabihf configurations.
18563
18564 [BZ #14121]
18565 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18566 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18567 ($(mo-installed)): Use $(objpfx)%.mo.
18568 (realclean): Remove rule.
18569
18570 * po/Makefile (linguas): Remove rule and dependencies.
18571 (linguas.mo): Likewise.
18572 (.PHONY): Do not depend on linguas and linguas.mo.
18573 (podir): Remove variable.
18574 (pofiles): Likewise.
18575 [$(pofiles)] (%.po): Remove rule.
18576
18577 * sysdeps/sparc/sparc32/Makefile
18578 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18579 start-of-line whitespace in argument of echo.
18580 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18581 with whitespace. Generate __wrap_.udiv alias.
18582 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18583 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18584 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18585 * sysdeps/sparc/sparc32/urem.S: Likewise.
18586
18587 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18588
18589 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18590 for aligned inputs.
18591
18592 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18593
18594 * benchtests/bench-strcmp.c: Print output in JSON format.
18595
18596 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18597
18598 2017-12-14 Florian Weimer <fweimer@redhat.com>
18599
18600 [BZ #22607]
18601 CVE-2017-1000409
18602 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18603 the expanded path string.
18604
18605 2017-12-14 Florian Weimer <fweimer@redhat.com>
18606
18607 [BZ #22606]
18608 CVE-2017-1000408
18609 * elf/dl-load.c (system_dirs): Update comment.
18610 (nsystem_dirs_len): Use array_length.
18611 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18612
18613 2017-12-14 Florian Weimer <fweimer@redhat.com>
18614
18615 Simplify compiling most of support/ outside of glibc.
18616 * support/check_addrinfo.c: Include <string.h>.
18617 * support/check_dns_packet.c: Likewise.
18618 * support/check_hostent.c: Likewise.
18619 * support/support_can_chroot.c: Include <support/xunistd.h>.
18620 * support/support_format_addrinfo.c: Include <stdlib.h>
18621 * support/support_format_dns_packet.c: Include <stdbool.h>.
18622 * support/support_format_hostent.c: Include <stdlib.h>.
18623 * support/support_format_netent.c: Likewise.
18624 * support/support_write_string.c: Include <support/xunistd.h>.
18625 * support/xdlfcn.c: Include <stddef.h>.
18626
18627 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18628
18629 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18630
18631 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18632 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18633
18634 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18635 (sysdeps_routines): Add memset-niagara7.
18636 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18637 Likewise.
18638 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18639 file.
18640 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18641 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18642 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18643 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18644 Add niagara7 option.
18645 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18646 memset.
18647
18648 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18649 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18650 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18651 Likewise.
18652 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18653 New file.
18654 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18655 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18656 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18657 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18658 and __memmove_niagara7.
18659 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18660 Add niagara7 option.
18661 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18662 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18663 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18664 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18665 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18666
18667 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18668
18669 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18670 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18671 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18672 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18673
18674 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18675 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18676 _dl_sparc_cap_flags array.
18677 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18678
18679 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18680
18681 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18682 time whenever possible.
18683
18684 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18685
18686 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18687 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18688
18689 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18690
18691 * soft-fp/fmadf4.c: Move to ....
18692 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18693 * soft-fp/fmasf4.c: Move to ....
18694 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18695 * soft-fp/fmatf4.c: Move to ....
18696 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18697 * sysdeps/ieee754/soft-fp/Makefile: New file.
18698 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18699 * sysdeps/arm/preconfigure: Regenerated.
18700 * sysdeps/arm/nofpu/Implies: New file.
18701 * sysdeps/arm/s_fma.c: Remove file.
18702 * sysdeps/arm/s_fmaf.c: Likewise.
18703 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18704 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18705 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18706 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18707 * sysdeps/microblaze/s_fma.c: Remove file.
18708 * sysdeps/microblaze/s_fmaf.c: Likewise.
18709 * sysdeps/mips/mips32/nofpu/Implies: New file.
18710 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18711 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18712 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18713 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18714 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18715 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18716 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18717 implementation.
18718 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18719 * sysdeps/nios2/s_fma.c: Remove file.
18720 * sysdeps/nios2/s_fmaf.c: Likewise.
18721 * sysdeps/sh/nofpu/Implies: New file.
18722 * sysdeps/sh/s_fma.c: Remove file.
18723 * sysdeps/sh/s_fmaf.c: Likewise.
18724 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18725 * sysdeps/tile/s_fma.c: Remove file.
18726 * sysdeps/tile/s_fmaf.c: Likewise.
18727
18728 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18729
18730 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18731 Add s_cosf-sse2 and s_cosf-fma.
18732 (CFLAGS-s_cosf-fma.c): New.
18733 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18734 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18735 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18736
18737 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18738
18739 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18740
18741 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18742
18743 * libio/Makefile (tests): Add tst-bz22415.
18744 (tst-bz22415-ENV): New rule.
18745 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18746 (tests-special): Add tst-bz22415-mem.out.
18747 ($(objpfx)tst-bz22415-mem.out): New rule.
18748 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18749 in case of a successful seek operation.
18750 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18751 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18752 buffer is required.
18753 * libio/tst-bz22415.c: New test.
18754
18755 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18756
18757 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18758
18759 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18760 __IPC_64 to 0 to avoid IPC_64 being set.
18761
18762 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18763
18764 [BZ #22593]
18765 * math/bits/mathcalls.h (nextafter): Remove const.
18766 (nexttoward): Likewise.
18767
18768 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18769
18770 * configure.ac (--with-fp): Remove configure option.
18771 (with_fp_cond): New variable.
18772 (libc_cv_with_fp): New configure test. Use this variable instead
18773 of with_fp.
18774 * configure: Regenerated.
18775 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18776 * manual/install.texi (Configuring and compiling): Remove
18777 --without-fp.
18778 * INSTALL: Regenerated.
18779 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18780 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18781 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18782 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18783 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18784 use --without-fp to configure glibc.
18785
18786 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18787
18788 * manual/locale.texi (nl_langinfo): Fix a typo.
18789
18790 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18791
18792 [BZ #22588]
18793 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18794
18795 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18796
18797 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18798 (CFLAGS-argp-parse.c): Likewise.
18799 (CFLAGS-argp-fmtstream.c): Likewise.
18800 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18801 (CPPFLAGS-sha512-crypt.c): Likewise.
18802 (CPPFLAGS-md5-crypt.c): Likewise.
18803 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18804 (CFLAGS-stack_chk_fail_local.c): Likewise.
18805 (CFLAGS-backtrace.c): Likewise.
18806 (CFLAGS-sprintf_chk.c): Likewise.
18807 (CFLAGS-snprintf_chk.c): Likewise.
18808 (CFLAGS-vsprintf_chk.c): Likewise.
18809 (CFLAGS-vsnprintf_chk.c): Likewise.
18810 (CFLAGS-asprintf_chk.c): Likewise.
18811 (CFLAGS-vasprintf_chk.c): Likewise.
18812 (CFLAGS-obprintf_chk.c): Likewise.
18813 (CFLAGS-dprintf_chk.c): Likewise.
18814 (CFLAGS-vdprintf_chk.c): Likewise.
18815 (CFLAGS-printf_chk.c): Likewise.
18816 (CFLAGS-fprintf_chk.c): Likewise.
18817 (CFLAGS-vprintf_chk.c): Likewise.
18818 (CFLAGS-vfprintf_chk.c): Likewise.
18819 (CFLAGS-gets_chk.c): Likewise.
18820 (CFLAGS-fgets_chk.c): Likewise.
18821 (CFLAGS-fgets_u_chk.c): Likewise.
18822 (CFLAGS-fread_chk.c): Likewise.
18823 (CFLAGS-fread_u_chk.c): Likewise.
18824 (CFLAGS-swprintf_chk.c): Likewise.
18825 (CFLAGS-vswprintf_chk.c): Likewise.
18826 (CFLAGS-wprintf_chk.c): Likewise.
18827 (CFLAGS-fwprintf_chk.c): Likewise.
18828 (CFLAGS-vwprintf_chk.c): Likewise.
18829 (CFLAGS-vfwprintf_chk.c): Likewise.
18830 (CFLAGS-fgetws_chk.c): Likewise.
18831 (CFLAGS-fgetws_u_chk.c): Likewise.
18832 (CFLAGS-read_chk.c): Likewise.
18833 (CFLAGS-pread_chk.c): Likewise.
18834 (CFLAGS-pread64_chk.c): Likewise.
18835 (CFLAGS-recv_chk.c): Likewise.
18836 (CFLAGS-recvfrom_chk.c): Likewise.
18837 (CFLAGS-tst-longjmp_chk.c): Likewise.
18838 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18839 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18840 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18841 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18842 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18843 (CFLAGS-tst-chk1.c): Likewise.
18844 (CFLAGS-tst-chk2.c): Likewise.
18845 (CFLAGS-tst-chk3.c): Likewise.
18846 (CFLAGS-tst-chk4.cc): Likewise.
18847 (CFLAGS-tst-chk5.cc): Likewise.
18848 (CFLAGS-tst-chk6.cc): Likewise.
18849 (CFLAGS-tst-lfschk1.c): Likewise.
18850 (CFLAGS-tst-lfschk2.c): Likewise.
18851 (CFLAGS-tst-lfschk3.c): Likewise.
18852 (CFLAGS-tst-lfschk4.cc): Likewise.
18853 (CFLAGS-tst-lfschk5.cc): Likewise.
18854 (CFLAGS-tst-lfschk6.cc): Likewise.
18855 (CFLAGS-tst-ssp-1.c): Likewise.
18856 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18857 (CFLAGS-scandir64.c): Likewise.
18858 (CFLAGS-scandir-tail.c): Likewise.
18859 (CFLAGS-scandir64-tail.c): Likewise.
18860 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18861 (CFLAGS-dl-tunables.c): Likewise.
18862 (CFLAGS-dl-runtime.c): Likewise.
18863 (CFLAGS-dl-lookup.c): Likewise.
18864 (CFLAGS-dl-iterate-phdr.c): Likewise.
18865 (CFLAGS-vismain.c): Likewise.
18866 (CFLAGS-tst-linkall-static.c): Likewise.
18867 (CFLAGS-tst-linkall-static.c): Likewise.
18868 (CPPFLAGS-dl-load.c): Likewise.
18869 (CFLAGS-ldconfig.c): Likewise.
18870 (CFLAGS-dl-cache.c): Likewise.
18871 (CFLAGS-cache.c): Likewise.
18872 (CFLAGS-rtld.c): Likewise.
18873 (CFLAGS-multiload.c): Likewise.
18874 (CFLAGS-filtmod1.c): Likewise.
18875 (CFLAGS-tst-align.c): Likewise.
18876 (CFLAGS-tst-align2.c): Likewise.
18877 (CFLAGS-tst-alignmod.c): Likewise.
18878 (CFLAGS-tst-alignmod2.c): Likewise.
18879 (CPPFLAGS-tst-execstack.c): Likewise.
18880 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18881 (CFLAGS-tst-latepthreadmod.c): Likewise.
18882 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18883 (CFLAGS-getgrnam_r.c): Likewise.
18884 (CFLAGS-getgrent_r.c): Likewise.
18885 (CFLAGS-getgrent.c): Likewise.
18886 (CFLAGS-fgetgrent.c): Likewise.
18887 (CFLAGS-fgetgrent_r.c): Likewise.
18888 (CFLAGS-putgrent.c): Likewise.
18889 (CFLAGS-initgroups.c): Likewise.
18890 (CFLAGS-getgrgid.c): Likewise.
18891 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18892 (CFLAGS-getsgent.c): Likewise.
18893 (CFLAGS-fgetsgent.c): Likewise.
18894 (CFLAGS-fgetsgent_r.c): Likewise.
18895 (CFLAGS-putsgent.c): Likewise.
18896 (CFLAGS-getsgnam.c): Likewise.
18897 (CFLAGS-getsgnam_r.c): Likewise.
18898 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18899 (CFLAGS-iconv_charmap.c): Likewise.
18900 (CFLAGS-dummy-repertoire.c): Likewise.
18901 (CFLAGS-charmap.c): Likewise.
18902 (CFLAGS-linereader.c): Likewise.
18903 (CFLAGS-simple-hash.c): Likewise.
18904 (CFLAGS-gconv_conf.c): Likewise.
18905 (CFLAGS-iconvconfig.c): Likewise.
18906 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18907 (CFLAGS-gethstbyad.c): Likewise.
18908 (CFLAGS-gethstbynm_r.c): Likewise.
18909 (CFLAGS-gethstbynm.c): Likewise.
18910 (CFLAGS-gethstbynm2_r.c): Likewise.
18911 (CFLAGS-gethstbynm2.c): Likewise.
18912 (CFLAGS-gethstent_r.c): Likewise.
18913 (CFLAGS-gethstent.c): Likewise.
18914 (CFLAGS-rcmd.c): Likewise.
18915 (CFLAGS-getnetbynm_r.c): Likewise.
18916 (CFLAGS-getnetbynm.c): Likewise.
18917 (CFLAGS-getnetbyad_r.c): Likewise.
18918 (CFLAGS-getnetbyad.c): Likewise.
18919 (CFLAGS-getnetent_r.c): Likewise.
18920 (CFLAGS-getnetent.c): Likewise.
18921 (CFLAGS-getaliasent_r.c): Likewise.
18922 (CFLAGS-getaliasent.c): Likewise.
18923 (CFLAGS-getrpcent_r.c): Likewise.
18924 (CFLAGS-getrpcent.c): Likewise.
18925 (CFLAGS-getservent_r.c): Likewise.
18926 (CFLAGS-getservent.c): Likewise.
18927 (CFLAGS-getprtent_r.c): Likewise.
18928 (CFLAGS-getprtent.c): Likewise.
18929 (CFLAGS-either_ntoh.c): Likewise.
18930 (CFLAGS-either_hton.c): Likewise.
18931 (CFLAGS-getnetgrent.c): Likewise.
18932 (CFLAGS-getnetgrent_r.c): Likewise.
18933 (CFLAGS-tst-checks-posix.c): Likewise.
18934 (CFLAGS-tst-sockaddr.c): Likewise.
18935 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18936 (CFLAGS-tst-translit.c): Likewise.
18937 (CFLAGS-tst-gettext2.c): Likewise.
18938 (CFLAGS-tst-codeset.c): Likewise.
18939 (CFLAGS-tst-gettext3.c): Likewise.
18940 (CFLAGS-tst-gettext4.c): Likewise.
18941 (CFLAGS-tst-gettext5.c): Likewise.
18942 (CFLAGS-tst-gettext6.c): Likewise.
18943 * io/Makefile (CFLAGS-open.c): Likewise.
18944 (CFLAGS-open64.c): Likewise.
18945 (CFLAGS-creat.c): Likewise.
18946 (CFLAGS-creat64.c): Likewise.
18947 (CFLAGS-fcntl.c): Likewise.
18948 (CFLAGS-poll.c): Likewise.
18949 (CFLAGS-ppoll.c): Likewise.
18950 (CFLAGS-lockf.c): Likewise.
18951 (CFLAGS-statfs.c): Likewise.
18952 (CFLAGS-fstatfs.c): Likewise.
18953 (CFLAGS-statvfs.c): Likewise.
18954 (CFLAGS-fstatvfs.c): Likewise.
18955 (CFLAGS-fts.c): Likewise.
18956 (CFLAGS-fts64.c): Likewise.
18957 (CFLAGS-ftw.c): Likewise.
18958 (CFLAGS-ftw64.c): Likewise.
18959 (CFLAGS-lockf.c): Likewise.
18960 (CFLAGS-posix_fallocate.c): Likewise.
18961 (CFLAGS-posix_fallocate64.c): Likewise.
18962 (CFLAGS-fallocate.c): Likewise.
18963 (CFLAGS-fallocate64.c): Likewise.
18964 (CFLAGS-read.c): Likewise.
18965 (CFLAGS-write.c): Likewise.
18966 (CFLAGS-test-stat.c): Likewise.
18967 (CFLAGS-test-lfs.c): Likewise.
18968 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18969 (CFLAGS-fputc.c): Likewise.
18970 (CFLAGS-fputwc.c): Likewise.
18971 (CFLAGS-freopen64.c): Likewise.
18972 (CFLAGS-freopen.c): Likewise.
18973 (CFLAGS-fseek.c): Likewise.
18974 (CFLAGS-fseeko64.c): Likewise.
18975 (CFLAGS-fseeko.c): Likewise.
18976 (CFLAGS-ftello64.c): Likewise.
18977 (CFLAGS-ftello.c): Likewise.
18978 (CFLAGS-fwide.c): Likewise.
18979 (CFLAGS-genops.c): Likewise.
18980 (CFLAGS-getc.c): Likewise.
18981 (CFLAGS-getchar.c): Likewise.
18982 (CFLAGS-getwc.c): Likewise.
18983 (CFLAGS-getwchar.c): Likewise.
18984 (CFLAGS-iofclose.c): Likewise.
18985 (CFLAGS-iofflush.c): Likewise.
18986 (CFLAGS-iofgetpos64.c): Likewise.
18987 (CFLAGS-iofgetpos.c): Likewise.
18988 (CFLAGS-iofgets.c): Likewise.
18989 (CFLAGS-iofgetws.c): Likewise.
18990 (CFLAGS-iofputs.c): Likewise.
18991 (CFLAGS-iofputws.c): Likewise.
18992 (CFLAGS-iofread.c): Likewise.
18993 (CFLAGS-iofsetpos64.c): Likewise.
18994 (CFLAGS-iofsetpos.c): Likewise.
18995 (CFLAGS-ioftell.c): Likewise.
18996 (CFLAGS-iofwrite.c): Likewise.
18997 (CFLAGS-iogetdelim.c): Likewise.
18998 (CFLAGS-iogetline.c): Likewise.
18999 (CFLAGS-iogets.c): Likewise.
19000 (CFLAGS-iogetwline.c): Likewise.
19001 (CFLAGS-ioputs.c): Likewise.
19002 (CFLAGS-ioseekoff.c): Likewise.
19003 (CFLAGS-ioseekpos.c): Likewise.
19004 (CFLAGS-iosetbuffer.c): Likewise.
19005 (CFLAGS-iosetvbuf.c): Likewise.
19006 (CFLAGS-ioungetc.c): Likewise.
19007 (CFLAGS-ioungetwc.c): Likewise.
19008 (CFLAGS-oldfileops.c): Likewise.
19009 (CFLAGS-oldiofclose.c): Likewise.
19010 (CFLAGS-oldiofgetpos64.c): Likewise.
19011 (CFLAGS-oldiofgetpos.c): Likewise.
19012 (CFLAGS-oldiofsetpos64.c): Likewise.
19013 (CFLAGS-oldiofsetpos.c): Likewise.
19014 (CFLAGS-peekc.c): Likewise.
19015 (CFLAGS-putc.c): Likewise.
19016 (CFLAGS-putchar.c): Likewise.
19017 (CFLAGS-putwc.c): Likewise.
19018 (CFLAGS-putwchar.c): Likewise.
19019 (CFLAGS-rewind.c): Likewise.
19020 (CFLAGS-wfileops.c): Likewise.
19021 (CFLAGS-wgenops.c): Likewise.
19022 (CFLAGS-oldiofopen.c): Likewise.
19023 (CFLAGS-iofopen.c): Likewise.
19024 (CFLAGS-iofopen64.c): Likewise.
19025 (CFLAGS-oldtmpfile.c): Likewise.
19026 (CFLAGS-tst_putwc.c): Likewise.
19027 * locale/Makefile (CFLAGS-md5.c): Likewise.
19028 (CFLAGS-charmap.c): Likewise.
19029 (CFLAGS-locfile.c): Likewise.
19030 (CFLAGS-charmap-dir.c): Likewise.
19031 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19032 (CFLAGS-getpt.c): Likewise.
19033 (CFLAGS-pt_chown.c): Likewise.
19034 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19035 (CFLAGS-obstack.c): Likewise.
19036 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19037 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19038 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19039 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19040 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19041 (CFLAGS-test-tgmath.c): Likewise.
19042 (CFLAGS-test-tgmath2.c): Likewise.
19043 (CFLAGS-test-tgmath-ret.c): Likewise.
19044 (CFLAGS-test-powl.c): Likewise.
19045 (CFLAGS-test-snan.c): Likewise.
19046 (CFLAGS-test-signgam-finite.c): Likewise.
19047 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19048 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19049 (CFLAGS-test-signgam-uchar.c): Likewise.
19050 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19051 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19052 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19053 (CFLAGS-test-signgam-uint.c): Likewise.
19054 (CFLAGS-test-signgam-uint-init.c): Likewise.
19055 (CFLAGS-test-signgam-uint-static.c): Likewise.
19056 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19057 (CFLAGS-test-signgam-ullong.c): Likewise.
19058 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19059 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19060 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19061 (CFLAGS-test-math-cxx11.cc): Likewise.
19062 (CFLAGS-test-math-isinff.cc): Likewise.
19063 (CFLAGS-test-math-iszero.cc): Likewise.
19064 (CFLAGS-test-math-issignaling.cc): Likewise.
19065 (CFLAGS-test-math-iscanonical.cc): Likewise.
19066 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19067 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19068 (CFLAGS-test-flt-eval-method.c): Likewise.
19069 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19070 (CFLAGS-test-finite-macros.c): Likewise.
19071 * misc/Makefile (CFLAGS-select.c): Likewise.
19072 (CFLAGS-tsearch.c): Likewise.
19073 (CFLAGS-lsearch.c): Likewise.
19074 (CFLAGS-pselect.c): Likewise.
19075 (CFLAGS-readv.c): Likewise.
19076 (CFLAGS-writev.c): Likewise.
19077 (CFLAGS-preadv.c): Likewise.
19078 (CFLAGS-preadv64.c): Likewise.
19079 (CFLAGS-pwritev.c): Likewise.
19080 (CFLAGS-pwritev64.c): Likewise.
19081 (CFLAGS-preadv2.c): Likewise.
19082 (CFLAGS-preadv64v2.c): Likewise.
19083 (CFLAGS-pwritev2.c): Likewise.
19084 (CFLAGS-pwritev64v2.c): Likewise.
19085 (CFLAGS-usleep.c): Likewise.
19086 (CFLAGS-syslog.c): Likewise.
19087 (CFLAGS-error.c): Likewise.
19088 (CFLAGS-getpass.c): Likewise.
19089 (CFLAGS-mkstemp.c): Likewise.
19090 (CFLAGS-mkstemp64.c): Likewise.
19091 (CFLAGS-getsysstats.c): Likewise.
19092 (CFLAGS-getusershell.c): Likewise.
19093 (CFLAGS-err.c): Likewise.
19094 (CFLAGS-tst-tsearch.c): Likewise.
19095 (CFLAGS-msync.c): Likewise.
19096 (CFLAGS-fdatasync.c): Likewise.
19097 (CFLAGS-fsync.c): Likewise.
19098 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19099 (CFLAGS-unwind.c): Likewise.
19100 (CFLAGS-unwind-forcedunwind.c): Likewise.
19101 (CFLAGS-pthread_cancel.c): Likewise.
19102 (CFLAGS-pthread_setcancelstate.c): Likewise.
19103 (CFLAGS-pthread_setcanceltype.c): Likewise.
19104 (CFLAGS-cancellation.c): Likewise.
19105 (CFLAGS-libc-cancellation.c): Likewise.
19106 (CFLAGS-pthread_exit.c): Likewise.
19107 (CFLAGS-forward.c): Likewise.
19108 (CFLAGS-pthread_testcancel.c): Likewise.
19109 (CFLAGS-pthread_join.c): Likewise.
19110 (CFLAGS-pthread_timedjoin.c): Likewise.
19111 (CFLAGS-pthread_once.c): Likewise.
19112 (CFLAGS-pthread_cond_wait.c): Likewise.
19113 (CFLAGS-sem_wait.c): Likewise.
19114 (CFLAGS-sem_timedwait.c): Likewise.
19115 (CFLAGS-fcntl.c): Likewise.
19116 (CFLAGS-lockf.c): Likewise.
19117 (CFLAGS-pread.c): Likewise.
19118 (CFLAGS-pread64.c): Likewise.
19119 (CFLAGS-pwrite.c): Likewise.
19120 (CFLAGS-pwrite64.c): Likewise.
19121 (CFLAGS-wait.c): Likewise.
19122 (CFLAGS-waitpid.c): Likewise.
19123 (CFLAGS-sigwait.c): Likewise.
19124 (CFLAGS-msgrcv.c): Likewise.
19125 (CFLAGS-msgsnd.c): Likewise.
19126 (CFLAGS-tcdrain.c): Likewise.
19127 (CFLAGS-open.c): Likewise.
19128 (CFLAGS-open64.c): Likewise.
19129 (CFLAGS-pause.c): Likewise.
19130 (CFLAGS-recv.c): Likewise.
19131 (CFLAGS-send.c): Likewise.
19132 (CFLAGS-accept.c): Likewise.
19133 (CFLAGS-sendto.c): Likewise.
19134 (CFLAGS-connect.c): Likewise.
19135 (CFLAGS-recvfrom.c): Likewise.
19136 (CFLAGS-recvmsg.c): Likewise.
19137 (CFLAGS-sendmsg.c): Likewise.
19138 (CFLAGS-close.c): Likewise.
19139 (CFLAGS-read.c): Likewise.
19140 (CFLAGS-write.c): Likewise.
19141 (CFLAGS-nanosleep.c): Likewise.
19142 (CFLAGS-sigsuspend.c): Likewise.
19143 (CFLAGS-msync.c): Likewise.
19144 (CFLAGS-fdatasync.c): Likewise.
19145 (CFLAGS-fsync.c): Likewise.
19146 (CFLAGS-pt-system.c): Likewise.
19147 (CFLAGS-tst-cleanup2.c): Likewise.
19148 (CFLAGS-tst-cleanupx2.c): Likewise.
19149 (CFLAGS-flockfile.c): Likewise.
19150 (CFLAGS-ftrylockfile.c): Likewise.
19151 (CFLAGS-funlockfile.c): Likewise.
19152 (CFLAGS-tst-initializers1.c): Likewise.
19153 (CFLAGS-tst-initializers1-c89.c): Likewise.
19154 (CFLAGS-tst-initializers1-c99.c): Likewise.
19155 (CFLAGS-tst-initializers1-c11.c): Likewise.
19156 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19157 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19158 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19159 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19160 (CFLAGS-nscd_getgr_r.c): Likewise.
19161 (CFLAGS-nscd_gethst_r.c): Likewise.
19162 (CFLAGS-nscd_getai.c): Likewise.
19163 (CFLAGS-nscd_initgroups.c): Likewise.
19164 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19165 (CFLAGS-pause.c): Likewise.
19166 (CFLAGS-pread.c): Likewise.
19167 (CFLAGS-pread64.c): Likewise.
19168 (CFLAGS-pwrite.c): Likewise.
19169 (CFLAGS-pwrite64.c): Likewise.
19170 (CFLAGS-sleep.c): Likewise.
19171 (CFLAGS-wait.c): Likewise.
19172 (CFLAGS-waitid.c): Likewise.
19173 (CFLAGS-waitpid.c): Likewise.
19174 (CFLAGS-getopt.c): Likewise.
19175 (CFLAGS-wordexp.c): Likewise.
19176 (CFLAGS-sysconf.c): Likewise.
19177 (CFLAGS-pathconf.c): Likewise.
19178 (CFLAGS-fpathconf.c): Likewise.
19179 (CFLAGS-spawn.c): Likewise.
19180 (CFLAGS-spawnp.c): Likewise.
19181 (CFLAGS-spawni.c): Likewise.
19182 (CFLAGS-glob.c): Likewise.
19183 (CFLAGS-glob64.c): Likewise.
19184 (CFLAGS-getconf.c): Likewise.
19185 (CFLAGS-nanosleep.c): Likewise.
19186 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19187 (CFLAGS-getpwent.c): Likewise.
19188 (CFLAGS-getpw.c): Likewise.
19189 (CFLAGS-fgetpwent_r.c): Likewise.
19190 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19191 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19192 (CFLAGS-mq_timedreceive.c): Likewise.
19193 (CFLAGS-mq_timedsend.c): Likewise.
19194 (CFLAGS-clock_nanosleep.c): Likewise.
19195 (CFLAGS-librt-cancellation.c): Likewise.
19196 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19197 (CFLAGS-getspent.c): Likewise.
19198 (CFLAGS-fgetspent.c): Likewise.
19199 (CFLAGS-fgetspent_r.c): Likewise.
19200 (CFLAGS-putspent.c): Likewise.
19201 (CFLAGS-getspnam.c): Likewise.
19202 (CFLAGS-getspnam_r.c): Likewise.
19203 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19204 (CFLAGS-sigsuspend.c): Likewise.
19205 (CFLAGS-sigtimedwait.c): Likewise.
19206 (CFLAGS-sigwait.c): Likewise.
19207 (CFLAGS-sigwaitinfo.c): Likewise.
19208 (CFLAGS-sigreturn.c): Likewise.
19209 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19210 (CFLAGS-vfwprintf.c): Likewise.
19211 (CFLAGS-tmpfile.c): Likewise.
19212 (CFLAGS-tmpfile64.c): Likewise.
19213 (CFLAGS-tempname.c): Likewise.
19214 (CFLAGS-psignal.c): Likewise.
19215 (CFLAGS-vprintf.c): Likewise.
19216 (CFLAGS-cuserid.c): Likewise.
19217 (CFLAGS-errlist.c): Likewise.
19218 (CFLAGS-siglist.c): Likewise.
19219 (CFLAGS-scanf15.c): Likewise.
19220 (CFLAGS-scanf17.c): Likewise.
19221 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19222 (CFLAGS-msort.c): Likewise.
19223 (CFLAGS-qsort.c): Likewise.
19224 (CFLAGS-system.c): Likewise.
19225 (CFLAGS-fmtmsg.c): Likewise.
19226 (CFLAGS-strfmon.c): Likewise.
19227 (CFLAGS-strfmon_l.c): Likewise.
19228 (CFLAGS-strfromd.c): Likewise.
19229 (CFLAGS-strfromf.c): Likewise.
19230 (CFLAGS-strfroml.c): Likewise.
19231 (CFLAGS-tst-bsearch.c): Likewise.
19232 (CFLAGS-tst-qsort.c): Likewise.
19233 (CFLAGS-tst-makecontext2.c): Likewise.
19234 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19235 (CFLAGS-xnlm_prot.c): Likewise.
19236 (CFLAGS-xrstat.c): Likewise.
19237 (CFLAGS-xyppasswd.c): Likewise.
19238 (CFLAGS-xklm_prot.c): Likewise.
19239 (CFLAGS-xrex.c): Likewise.
19240 (CFLAGS-xsm_inter.c): Likewise.
19241 (CFLAGS-xmount.c): Likewise.
19242 (CFLAGS-xrusers.c): Likewise.
19243 (CFLAGS-xspray.c): Likewise.
19244 (CFLAGS-xnfs_prot.c): Likewise.
19245 (CFLAGS-xrquota.c): Likewise.
19246 (CFLAGS-xkey_prot.c): Likewise.
19247 (CFLAGS-auth_unix.c): Likewise.
19248 (CFLAGS-key_call.c): Likewise.
19249 (CFLAGS-pmap_rmt.c): Likewise.
19250 (CFLAGS-clnt_perr.c): Likewise.
19251 (CFLAGS-openchild.c): Likewise.
19252 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19253 (CFLAGS-msgsnd.c): Likewise.
19254 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19255 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19256 (CFLAGS-tzset.c): Likewise.
19257 (CFLAGS-getdate.c): Likewise.
19258 (CFLAGS-test_time.c): Likewise.
19259 (CPPFLAGS-tst-tzname.c): Likewise.
19260 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19261 (CFLAGS-zic.c): Likewise.
19262 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19263 (CFLAGS-wcswidth.c): Likewise.
19264 (CFLAGS-wcstol.c): Likewise.
19265 (CFLAGS-wcstoul.c): Likewise.
19266 (CFLAGS-wcstoll.c): Likewise.
19267 (CFLAGS-wcstoull.c): Likewise.
19268 (CFLAGS-wcstod.c): Likewise.
19269 (CFLAGS-wcstold.c): Likewise.
19270 (CFLAGS-wcstof128.c): Likewise.
19271 (CFLAGS-wcstof.c): Likewise.
19272 (CFLAGS-wcstol_l.c): Likewise.
19273 (CFLAGS-wcstoul_l.c): Likewise.
19274 (CFLAGS-wcstoll_l.c): Likewise.
19275 (CFLAGS-wcstoull_l.c): Likewise.
19276 (CFLAGS-wcstod_l.c): Likewise.
19277 (CFLAGS-wcstold_l.c): Likewise.
19278 (CFLAGS-wcstof128_l.c): Likewise.
19279 (CFLAGS-wcstof_l.c): Likewise.
19280 (CPPFLAGS-tst-wchar-h.c): Likewise.
19281 (CPPFLAGS-wcstold_l.c): Likewise.
19282
19283 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19284
19285 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19286
19287 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19288 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19289
19290 * manual/tunables.texi (Hardware Capability Tunables): Document
19291 glibc.tune.cached_memopt.
19292 * sysdeps/powerpc/cpu-features.c: New file.
19293 * sysdeps/powerpc/cpu-features.h: New file.
19294 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19295 _dl_powerpc_cpu_features.
19296 * sysdeps/powerpc/dl-tunables.list: New file.
19297 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19298 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19299 (INIT_ARCH): Initialize use_aligned_memopt.
19300 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19301 IS_IN(rtld))]: Restrict dl_platform_init availability and
19302 initialize CPU features used by tunables.
19303 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19304 Add memcpy-power8-cached.
19305 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19306 __memcpy_power8_cached.
19307 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19308 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19309 New file.
19310
19311 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19312
19313 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19314 (CFLAGS-noinl-tester.c): Likewise.
19315 (CFLAGS-tst-strlen.c): Likewise.
19316 (CFLAGS-stratcliff.c): Likewise.
19317 (CFLAGS-test-ffs.c): Likewise.
19318 (CFLAGS-tst-inlcall.c): Likewise.
19319 (CFLAGS-tst-xbzero-opt.c): Likewise.
19320 (CFLAGS-memcpy.c): Likewise.
19321 (CFLAGS-wordcopy.c): Likewise.
19322
19323 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19324
19325 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19326 Store r15 on stack and add cfi rule.
19327 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19328 Likewise.
19329
19330 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19331
19332 [BZ #22577]
19333 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19334 call.
19335
19336 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19337
19338 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19339 Add s_sinf-sse2 and s_sinf-fma.
19340 (CFLAGS-s_sinf-fma.c): New.
19341 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19342 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19343 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19344
19345 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19346
19347 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19348
19349 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19350
19351 [BZ #22568]
19352 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19353 part of result to imaginary part of argument if it is zero and the
19354 real part of the argument is not finite.
19355 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19356 of result to real part of argument if it is zero and the imaginary
19357 part of the argument is not finite.
19358
19359 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19360
19361 [BZ #22524]
19362 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19363 and to the list of locales to be built for testing.
19364 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19365 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19366 and build the collation rules upon that.
19367
19368 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19369
19370 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19371 * manual/math.texi (Mathematics): Document support for _Float32.
19372 * math/Makefile (test-types): Add float32.
19373 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19374 * stdlib/Versions (GLIBC_2.27): Likewise.
19375 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19376 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19377 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19378 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19379 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19380 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19381 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19382 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19383 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19384 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19385 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19386 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19387 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19388 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19389 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19390 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19391 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19392 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19393 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19394 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19395 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19396 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19397 Likewise.
19398 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19399 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19400 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19401 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19402 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19404 Likewise.
19405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19406 Likewise.
19407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19408 Likewise.
19409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19410 Likewise.
19411
19412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19413 Likewise.
19414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19415 Likewise.
19416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19417 Likewise.
19418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19419 Likewise.
19420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19421 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19422 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19423 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19424 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19425 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19426 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19427 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19428 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19429 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19430 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19431 Likewise.
19432 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19433 Likewise.
19434 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19435 Likewise.
19436 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19437 Likewise.
19438 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19439 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19440 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19441 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19442 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19443 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19444 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19445 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19446
19447 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19448
19449 * stdlib/strtof.c: Include <bits/floatn.h>
19450 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19451 and later undefine as macro. Define as weak alias if
19452 [!USE_WIDE_CHAR].
19453 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19454 and later undefine as macro. Define as weak alias if
19455 [USE_WIDE_CHAR].
19456 * stdlib/strtof_l.c: Include <bits/floatn.h>
19457 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19458 and later undefine as macro. Define as weak alias if
19459 [!USE_WIDE_CHAR].
19460 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19461 and later undefine as macro. Define as weak alias if
19462 [USE_WIDE_CHAR].
19463
19464 * stdlib/strfromf.c: Include <bits/floatn.h>.
19465 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19466 and later undefine as macro and define as weak alias.
19467
19468 * math/test-float32.h: New file.
19469
19470 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19471 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19472 (libm_alias_float_other_r): Create f32 alias.
19473 (libm_alias_float_r): Use semicolon before call to
19474 libm_alias_float_other_r.
19475
19476 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19477 second argument to libm_alias_float_other.
19478 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19479 second argument to libm_alias_float_other.
19480 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19481 argument to libm_alias_float_other.
19482
19483 [BZ #22561]
19484 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19485 real part of result for argument 0 + i * NaN.
19486 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19487 results for tests of 0 + i * NaN.
19488
19489 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19490
19491 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19492
19493 2017-12-06 David S. Miller <davem@davemloft.net>
19494
19495 * sysdeps/sparc/fpu/libm-test-ulps: Update
19496 exp_{downward,towardzero,upward} ulps.
19497
19498 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19499
19500 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19501 variables static.
19502
19503 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19504 (Y0_2D): Likewise.
19505 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19506 (Y0_2D): Likewise.
19507 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19508 (Y0_2D): Likewise.
19509 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19510 (Y0_2D): Likewise.
19511
19512 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19513
19514 [BZ #22515]
19515 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19516 and to the list of locales to be built for testing.
19517 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19518 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19519 and build the collation rules upon that.
19520
19521 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19522
19523 * NEWS: Add sinf to list of optimized functions.
19524
19525 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19526
19527 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19528 (__HAVE_FLOAT32X): Likewise.
19529 * manual/math.texi (Mathematics): Document support for _Float64
19530 and _Float32x.
19531 * math/Makefile (test-types): Add float64 and float32x.
19532 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19533 functions.
19534 * stdlib/Versions (GLIBC_2.27): Likewise.
19535 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19536 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19537 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19538 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19539 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19540 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19541 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19542 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19543 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19544 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19545 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19546 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19547 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19548 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19549 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19550 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19551 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19552 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19553 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19554 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19555 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19556 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19557 Likewise.
19558 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19559 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19560 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19561 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19562 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19564 Likewise.
19565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19566 Likewise.
19567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19568 Likewise.
19569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19570 Likewise.
19571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19572 Likewise.
19573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19574 Likewise.
19575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19576 Likewise.
19577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19578 Likewise.
19579 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19580 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19581 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19582 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19583 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19584 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19585 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19586 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19587 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19588 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19589 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19590 Likewise.
19591 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19592 Likewise.
19593 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19594 Likewise.
19595 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19596 Likewise.
19597 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19598 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19599 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19600 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19601 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19602 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19603 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19604 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19605
19606 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19607
19608 * bits/floatn-common.h: Include <bits/long-double.h>.
19609 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19610 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19611 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19612 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19613 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19614 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19615 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19616 (__builtin_huge_valf64): Use __builtin_huge_vall.
19617 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19618 (__builtin_inff64): Use __builtin_infl.
19619 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19620 (__builtin_nanf64): Use __builtin_nanl.
19621 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19622 (__builtin_nansf64): Use __builtin_nansl.
19623
19624 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19625 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19626 Carlos O'Donnell <carlos@redhat.com>
19627
19628 * elf/dl-tunables.list: Add elision parameters.
19629 * manual/tunables.texi: Add entries about elision tunable.
19630 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19631 Add callback functions to dynamically enable/disable elision.
19632 Add multiple callbacks functions to set elision parameters.
19633 Deleted __libc_enable_secure check.
19634 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19635 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19636 * configure: Regenerated.
19637 * configure.ac: Option enable_lock_elision was deleted.
19638 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19639 * config.make.in: Remove references to enable_lock_elision.
19640 * manual/install.texi: Elision configure option was removed.
19641 * INSTALL: Regenerated to remove enable_lock_elision.
19642 * nptl/Makefile:
19643 Disable elision so it can verify error case for destroying a mutex.
19644 * sysdeps/powerpc/nptl/elide.h:
19645 Cleanup ENABLE_LOCK_ELISION check.
19646 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19647 * sysdeps/s390/configure: Regenerated.
19648 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19649 * nptl/tst-mutex8.c:
19650 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19651 * sysdeps/powerpc/powerpc32/sysdep.h:
19652 Deleted all ENABLE_LOCK_ELISION checks.
19653 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19654 * sysdeps/powerpc/sysdep.h: Likewise.
19655 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19656 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19657 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19658 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19659 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19660 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19661 enable-lock-elision.
19662
19663 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19664
19665 * stdlib/strtod.c: Include <bits/floatn.h>.
19666 (BUILD_DOUBLE): New macro.
19667 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19668 (strtof64): Define and later undefine as macro. Define as weak
19669 alias if [!USE_WIDE_CHAR].
19670 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19671 (wcstof64): Define and later undefine as macro. Define as weak
19672 alias if [USE_WIDE_CHAR].
19673 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19674 (strtof32x): Define and later undefine as macro. Define as weak
19675 alias if [!USE_WIDE_CHAR].
19676 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19677 (wcstof32x): Define and later undefine as macro. Define as weak
19678 alias if [USE_WIDE_CHAR].
19679 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19680 (BUILD_DOUBLE): New macro.
19681 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19682 (strtof64_l): Define and later undefine as macro. Define as weak
19683 alias if [!USE_WIDE_CHAR].
19684 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19685 (wcstof64_l): Define and later undefine as macro. Define as weak
19686 alias if [USE_WIDE_CHAR].
19687 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19688 (strtof32x_l): Define and later undefine as macro. Define as weak
19689 alias if [!USE_WIDE_CHAR].
19690 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19691 (wcstof32x_l): Define and later undefine as macro. Define as weak
19692 alias if [USE_WIDE_CHAR].
19693
19694 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19695
19696 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19697 (reduced): Use ones as double instead of integer.
19698
19699 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19700
19701 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19702
19703 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19704
19705 * stdlib/strfromd.c: Include <bits/floatn.h>.
19706 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19707 and later undefine as macro and define as weak alias.
19708 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19709 Likewise.
19710
19711 * math/test-float32x.h: New file.
19712 * math/test-float64.h: Likewise.
19713
19714 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19715 (libm_alias_double_other_r_f64): New macro.
19716 (libm_alias_double_other_r_f32x): Likewise.
19717 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19718 libm_alias_double_other_r_f32x.
19719 (libm_alias_double_r): Use semicolon before call to
19720 libm_alias_double_other_r.
19721 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19722 <bits/floatn.h>.
19723 (libm_alias_double_other_r_f64): New macro.
19724 (libm_alias_double_other_r_f32x): Likewise.
19725 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19726 libm_alias_double_other_r_f32x.
19727
19728 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19729
19730 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19731 int.
19732 (SINF_FUNC): Likewise. Replace floor with simple casts.
19733
19734 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19735
19736 [BZ #22517]
19737 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19738 and to the list of locales to be built for testing.
19739 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19740 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19741 and build the collation rules upon that.
19742
19743 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19744
19745 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19746 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19747 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19748 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19749 instead of __insn__xxx.
19750 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19751 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19752 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19753 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19754 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19755 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19756
19757 2017-12-05 Florian Weimer <fweimer@redhat.com>
19758
19759 Linux: Implement interfaces for memory protection keys
19760 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19761 xsignal, xsysconf.
19762 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19763 * support/xunistd.h (xsysconf): Declare.
19764 * support/xraise.c: New file.
19765 * support/xsigaction.c: Likewise.
19766 * support/xsignal.c: Likewise.
19767 * support/xsysconf.c: Likewise.
19768 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19769 pkey_set, pkey_get, pkey_mprotect.
19770 [misc] (tests): Add tst-pkey.
19771 (tst-pkey): Link with -lpthread.
19772 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19773 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19774 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19775 (PKEY_DISABLE_WRITE): Define.
19776 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19777 Declare.
19778 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19779 (SEGV_PKUERR): Add.
19780 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19781 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19782 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19783 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19784 Add.
19785 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19786 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19787 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19788 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19789 * sysdeps/unix/sysv/linux/**.abilist: Update.
19790
19791 2017-12-05 Florian Weimer <fweimer@redhat.com>
19792
19793 * support/tst-test_compare.c (subprocess): Use long long instead
19794 of long argument for consistent type width across 32-bit and
19795 64-bit architectures.
19796 (do_test): Adjust expected output.
19797
19798 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19799
19800 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19801 (cosf): Define using libm_alias_float.
19802 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19803 (fabsf): Define using libm_alias_float.
19804 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19805 (fmaf): Define using libm_alias_float.
19806 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19807 (rintf): Define using libm_alias_float.
19808 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19809 (sinf): Define using libm_alias_float.
19810 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19811 <libm-alias-float.h>.
19812 (modff): Define using libm_alias_float.
19813 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19814 <libm-alias-float.h>.
19815 (logbf): Define using libm_alias_float.
19816 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19817 <libm-alias-float.h>.
19818 (ceilf): Define using libm_alias_float.
19819 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19820 <libm-alias-float.h>.
19821 (copysignf): Define using libm_alias_float.
19822 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19823 <libm-alias-float.h>.
19824 (floorf): Define using libm_alias_float.
19825 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19826 <libm-alias-float.h>.
19827 (llrintf): Define using libm_alias_float.
19828 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19829 <libm-alias-float.h>.
19830 (llroundf): Define using libm_alias_float.
19831 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19832 <libm-alias-float.h>.
19833 (lrintf): Define using libm_alias_float.
19834 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19835 <libm-alias-float.h>.
19836 (lroundf): Define using libm_alias_float.
19837 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19838 <libm-alias-float.h>.
19839 (nearbyintf): Define using libm_alias_float.
19840 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19841 <libm-alias-float.h>.
19842 (rintf): Define using libm_alias_float.
19843 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19844 <libm-alias-float.h>.
19845 (roundf): Define using libm_alias_float.
19846 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19847 <libm-alias-float.h>.
19848 (truncf): Define using libm_alias_float.
19849 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19850 Include <libm-alias-float.h>.
19851 (ceilf): Define using libm_alias_float.
19852 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19853 Include <libm-alias-float.h>.
19854 (copysignf): Define using libm_alias_float.
19855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19856 Include <libm-alias-float.h>.
19857 (floorf): Define using libm_alias_float.
19858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19859 Include <libm-alias-float.h>.
19860 (llrintf): Define using libm_alias_float.
19861 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19862 Include <libm-alias-float.h>.
19863 (llroundf): Define using libm_alias_float.
19864 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19865 Include <libm-alias-float.h>.
19866 (logbf): Define using libm_alias_float.
19867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19868 Include <libm-alias-float.h>.
19869 (lrintf): Define using libm_alias_float.
19870 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19871 Include <libm-alias-float.h>.
19872 (lroundf): Define using libm_alias_float.
19873 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19874 Include <libm-alias-float.h>.
19875 (modff): Define using libm_alias_float.
19876 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19877 Include <libm-alias-float.h>.
19878 (roundf): Define using libm_alias_float.
19879 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19880 Include <libm-alias-float.h>.
19881 (truncf): Define using libm_alias_float.
19882 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19883 <libm-alias-float.h>.
19884 (llrintf): Define using libm_alias_float.
19885 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19886 <libm-alias-float.h>.
19887 (llroundf): Define using libm_alias_float.
19888 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19889 <libm-alias-float.h>.
19890 (ceilf): Define using libm_alias_float.
19891 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19892 <libm-alias-float.h>.
19893 (floorf): Define using libm_alias_float.
19894 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19895 <libm-alias-float.h>.
19896 (llroundf): Define using libm_alias_float.
19897 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19898 <libm-alias-float.h>.
19899 (lroundf): Define using libm_alias_float.
19900 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19901 <libm-alias-float.h>.
19902 (roundf): Define using libm_alias_float.
19903 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19904 <libm-alias-float.h>.
19905 (truncf): Define using libm_alias_float.
19906 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19907 <libm-alias-float.h>.
19908 (copysignf): Define using libm_alias_float.
19909 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19910 <libm-alias-float.h>.
19911 (llrintf): Define using libm_alias_float.
19912 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19913 <libm-alias-float.h>.
19914 (llroundf): Define using libm_alias_float.
19915 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19916 <libm-alias-float.h>.
19917 (lrintf): Define using libm_alias_float.
19918 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19919 <libm-alias-float.h>.
19920 (lroundf): Define using libm_alias_float.
19921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19922 <libm-alias-float.h>.
19923 (ceilf): Define using libm_alias_float.
19924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19925 <libm-alias-float.h>.
19926 (copysignf): Define using libm_alias_float.
19927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19928 <libm-alias-float.h>.
19929 (cosf): Define using libm_alias_float.
19930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19931 <libm-alias-float.h>.
19932 (floorf): Define using libm_alias_float.
19933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19934 <libm-alias-float.h>.
19935 (llrintf): Define using libm_alias_float.
19936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19937 <libm-alias-float.h>.
19938 (llroundf): Define using libm_alias_float.
19939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19940 <libm-alias-float.h>.
19941 (logbf): Define using libm_alias_float.
19942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19943 <libm-alias-float.h>.
19944 (modff): Define using libm_alias_float.
19945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19946 <libm-alias-float.h>.
19947 (roundf): Define using libm_alias_float.
19948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19949 <libm-alias-float.h>.
19950 (sinf): Define using libm_alias_float.
19951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19952 <libm-alias-float.h>.
19953 (truncf): Define using libm_alias_float.
19954 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19955 <libm-alias-float.h>.
19956 (ceilf): Define using libm_alias_float.
19957 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19958 <libm-alias-float.h>.
19959 (copysignf): Define using libm_alias_float.
19960 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19961 <libm-alias-float.h>.
19962 (floorf): Define using libm_alias_float.
19963 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19964 <libm-alias-float.h>.
19965 (llrintf): Define using libm_alias_float.
19966 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19967 <libm-alias-float.h>.
19968 (llroundf): Define using libm_alias_float.
19969 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19970 <libm-alias-float.h>.
19971 (nearbyintf): Define using libm_alias_float.
19972 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19973 <libm-alias-float.h>.
19974 (rintf): Define using libm_alias_float.
19975 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19976 <libm-alias-float.h>.
19977 (roundf): Define using libm_alias_float.
19978 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19979 <libm-alias-float.h>.
19980 (truncf): Define using libm_alias_float.
19981 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19982 <libm-alias-float.h>.
19983 (ceilf): Define using libm_alias_float.
19984 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19985 <libm-alias-float.h>.
19986 (floorf): Define using libm_alias_float.
19987 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19988 <libm-alias-float.h>.
19989 (llroundf): Define using libm_alias_float.
19990 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19991 <libm-alias-float.h>.
19992 (roundf): Define using libm_alias_float.
19993 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19994 <libm-alias-float.h>.
19995 (truncf): Define using libm_alias_float.
19996 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19997 <libm-alias-float.h>.
19998 (copysignf): Define using libm_alias_float.
19999 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20000 <libm-alias-float.h>.
20001 (llrintf): Define using libm_alias_float.
20002 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20003 <libm-alias-float.h>.
20004 (llroundf): Define using libm_alias_float.
20005 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20006 <libm-alias-float.h>.
20007 (cosf): Define using libm_alias_float.
20008 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20009 <libm-alias-float.h>.
20010 (llrintf): Define using libm_alias_float.
20011 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20012 <libm-alias-float.h>.
20013 (llroundf): Define using libm_alias_float.
20014 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20015 <libm-alias-float.h>.
20016 (sinf): Define using libm_alias_float.
20017
20018 2017-12-04 Florian Weimer <fweimer@redhat.com>
20019
20020 * support/check.h (TEST_COMPARE): Define.
20021 (support_test_compare_failure): Declare.
20022 * support/Makefile (libsupport-routines): Add
20023 support_test_compare_failure.
20024 (tests): Add tst-test_compare.
20025 * support /support_test_compare_failure.c: New file.
20026 * support/tst-test_compare.c: Likewise.
20027
20028 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20029
20030 [BZ #22527]
20031 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20032 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20033 available, this rewrite of the collation rules does reproduce
20034 the test file in the same order.
20035
20036 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20037
20038 [BZ #10580]
20039 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20040 digraphs in the month and day names. Using single code points for
20041 digraphs is deprecated. While there are dedicated Unicode
20042 codepoints, for the digraphs, these are included for backwards
20043 compatibility and modern texts use a sequence of Basic Latin
20044 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20045 This makes the month and day names agree exactly with CLDR now,
20046 CLDR does not use the single code points for the digraphs either.
20047
20048 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20049
20050 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20051
20052 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20053
20054 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20055 of floor.
20056
20057 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20058
20059 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20060 Define only for libc.so.
20061
20062 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20063
20064 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20065 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20066 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20067 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20068 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20069
20070 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20071
20072 [BZ #5997]
20073 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20074
20075 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20076
20077 [BZ libc/19170]
20078 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20079 PREINIT_FUNCTION_WEAK is nonzero.
20080 (gmon_initializer): New function. Put procedure label for it in
20081 .init_array section.
20082 (_init): Don't call PREINIT_FUNCTION.
20083 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20084 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20085 value when map argument is null.
20086
20087 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20088 depi instruction from PIC pc-relative sequence.
20089 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20090 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20091 (elf_machine_load_address): Likewise.
20092 (elf_machine_runtime_setup): Likewise.
20093
20094 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20095
20096 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20097 <libm-alias-double.h>.
20098 (logb): Define using libm_alias_double.
20099 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20100 <libm-alias-double.h>.
20101 (copysign): Define using libm_alias_double.
20102 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20103 <libm-alias-double.h>.
20104 (llrint): Define using libm_alias_double.
20105 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20106 <libm-alias-double.h>.
20107 (llround): Define using libm_alias_double.
20108 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20109 <libm-alias-double.h>.
20110 (lrint): Define using libm_alias_double.
20111 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20112 <libm-alias-double.h>.
20113 (lround): Define using libm_alias_double.
20114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20115 Include <libm-alias-double.h>.
20116 (copysign): Define using libm_alias_double.
20117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20118 Include <libm-alias-double.h>.
20119 (llrint): Define using libm_alias_double.
20120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20121 Include <libm-alias-double.h>.
20122 (llround): Define using libm_alias_double.
20123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20124 <libm-alias-double.h>.
20125 (logb): Define using libm_alias_double.
20126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20127 Include <libm-alias-double.h>.
20128 (lrint): Define using libm_alias_double.
20129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20130 Include <libm-alias-double.h>.
20131 (lround): Define using libm_alias_double.
20132 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20133 <libm-alias-double.h>.
20134 (llrint): Define using libm_alias_double.
20135 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20136 <libm-alias-double.h>.
20137 (llround): Define using libm_alias_double.
20138 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20139 <libm-alias-double.h>.
20140 (llround): Define using libm_alias_double.
20141 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20142 <libm-alias-double.h>.
20143 (lround): Define using libm_alias_double.
20144 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20145 <libm-alias-double.h>.
20146 (copysign): Define using libm_alias_double.
20147 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20148 <libm-alias-double.h>.
20149 (llrint): Define using libm_alias_double.
20150 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20151 <libm-alias-double.h>.
20152 (llround): Define using libm_alias_double.
20153 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20154 <libm-alias-double.h>.
20155 (lrint): Define using libm_alias_double.
20156 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20157 <libm-alias-double.h>.
20158 (lround): Define using libm_alias_double.
20159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20160 <libm-alias-double.h>.
20161 (copysign): Define using libm_alias_double.
20162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20163 <libm-alias-double.h>.
20164 (llrint): Define using libm_alias_double.
20165 (lrint): Likewise.
20166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20167 <libm-alias-double.h>.
20168 (llround): Define using libm_alias_double.
20169 (lround): Likewise.
20170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20171 <libm-alias-double.h>.
20172 (logb): Define using libm_alias_double.
20173 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20174 <libm-alias-double.h>.
20175 (copysign): Define using libm_alias_double.
20176 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20177 <libm-alias-double.h>.
20178 (llrint): Define using libm_alias_double.
20179 (lrint): Likewise.
20180 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20181 <libm-alias-double.h>.
20182 (llround): Define using libm_alias_double.
20183 (lround): Likewise.
20184 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20185 <libm-alias-double.h>.
20186 (llround): Define using libm_alias_double.
20187 (lround): Likewise.
20188 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20189 <libm-alias-double.h>.
20190 (copysign): Define using libm_alias_double.
20191 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20192 <libm-alias-double.h>.
20193 (llrint): Define using libm_alias_double.
20194 (lrint): Likewise.
20195 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20196 <libm-alias-double.h>.
20197 (llround): Define using libm_alias_double.
20198 (lround): Likewise.
20199 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20200 <libm-alias-double.h>.
20201 (llrint): Define using libm_alias_double.
20202 (lrint): Likewise.
20203 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20204 <libm-alias-double.h>.
20205 (llround): Define using libm_alias_double.
20206 (lround): Likewise.
20207
20208 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20209
20210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20211 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20212 compat symbol based on llround.
20213
20214 * sysdeps/powerpc/power7/fpu/s_logb.c
20215 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20216 symbol based on __logb, not on logb.
20217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20218 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20220 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20221
20222 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20223 (rint): Define using libm_alias_double.
20224 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20225 <libm-alias-double.h>.
20226 (modf): Define using libm_alias_double.
20227 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20228 <libm-alias-double.h>.
20229 (ceil): Define using libm_alias_double.
20230 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20231 <libm-alias-double.h>.
20232 (floor): Define using libm_alias_double.
20233 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20234 <libm-alias-double.h>.
20235 (nearbyint): Define using libm_alias_double.
20236 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20237 <libm-alias-double.h>.
20238 (rint): Define using libm_alias_double.
20239 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20240 <libm-alias-double.h>.
20241 (round): Define using libm_alias_double.
20242 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20243 <libm-alias-double.h>.
20244 (trunc): Define using libm_alias_double.
20245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20246 <libm-alias-double.h>.
20247 (ceil): Define using libm_alias_double.
20248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20249 Include <libm-alias-double.h>.
20250 (floor): Define using libm_alias_double.
20251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20252 <libm-alias-double.h>.
20253 (modf): Define using libm_alias_double.
20254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20255 Include <libm-alias-double.h>.
20256 (round): Define using libm_alias_double.
20257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20258 Include <libm-alias-double.h>.
20259 (trunc): Define using libm_alias_double.
20260 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20261 <libm-alias-double.h>.
20262 (ceil): Define using libm_alias_double.
20263 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20264 <libm-alias-double.h>.
20265 (floor): Define using libm_alias_double.
20266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20267 <libm-alias-double.h>.
20268 (round): Define using libm_alias_double.
20269 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20270 <libm-alias-double.h>.
20271 (trunc): Define using libm_alias_double.
20272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20273 <libm-alias-double.h>.
20274 (ceil): Define using libm_alias_double.
20275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20276 <libm-alias-double.h>.
20277 (floor): Define using libm_alias_double.
20278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20279 <libm-alias-double.h>.
20280 (modf): Define using libm_alias_double.
20281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20282 <libm-alias-double.h>.
20283 (round): Define using libm_alias_double.
20284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20285 <libm-alias-double.h>.
20286 (trunc): Define using libm_alias_double.
20287 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20288 <libm-alias-double.h>.
20289 (ceil): Define using libm_alias_double.
20290 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20291 <libm-alias-double.h>.
20292 (floor): Define using libm_alias_double.
20293 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20294 <libm-alias-double.h>.
20295 (nearbyint): Define using libm_alias_double.
20296 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20297 <libm-alias-double.h>.
20298 (rint): Define using libm_alias_double.
20299 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20300 <libm-alias-double.h>.
20301 (round): Define using libm_alias_double.
20302 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20303 <libm-alias-double.h>.
20304 (trunc): Define using libm_alias_double.
20305 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20306 <libm-alias-double.h>.
20307 (ceil): Define using libm_alias_double.
20308 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20309 <libm-alias-double.h>.
20310 (floor): Define using libm_alias_double.
20311 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20312 <libm-alias-double.h>.
20313 (round): Define using libm_alias_double.
20314 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20315 <libm-alias-double.h>.
20316 (trunc): Define using libm_alias_double.
20317
20318 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20319 (fabs): Define using libm_alias_double.
20320 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20321 (fma): Define using libm_alias_double.
20322 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20323 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20324 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20325 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20326
20327 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20328
20329 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20330
20331 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20332 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20333 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20334
20335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20336 due redirect macro.
20337
20338 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20339
20340 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20341
20342 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20343
20344 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20345 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20346 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20347 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20348
20349 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20350 (libm-sysdep_routines): Add s_nearbyintf-generic and
20351 s_nearbyint-generic.
20352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20353 New file.
20354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20355 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20356 Likewise.
20357 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20358 Likewise.
20359 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20360 file.
20361 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20362 Likewise.
20363
20364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20365 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20367 file.
20368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20370 Likewise.
20371 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20374
20375 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20376 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20378 file.
20379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20380 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20381 Likewise.
20382 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20383 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20384 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20385
20386 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20387 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20388 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20389 file.
20390 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20392 Likewise.
20393 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20396
20397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20398 (sysdep_calls): New rule.
20399 (sysdep_routines): Use sysdep_calls as base.
20400 (libm-sysdep_routines): Add generic rule for symbols shared with
20401 libc. Add s_copysign-generic and s_copysign-generic objects.
20402 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20403 New file.
20404 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20405 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20406 Likewise.
20407 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20408 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20410
20411 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20412
20413 [BZ #22519]
20414 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20415 the list of locales to be built for testing.
20416 * localedata/is_IS.UTF-8.in: New file.
20417 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20418 on iso14651_t1.
20419
20420 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20421
20422 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20423 <libm-alias-float.h>.
20424 (fabsf): Define using libm_alias_float.
20425
20426 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20427
20428 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20429
20430 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20431
20432 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20433 <libm-alias-float.h>.
20434 (fabsf): Define using libm_alias_float.
20435 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20436 <libm-alias-float.h>.
20437 (lrintf): Define using libm_alias_float.
20438 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20439 <libm-alias-float.h>.
20440 (rintf): Define using libm_alias_float.
20441
20442 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20443 <libm-alias-double.h>.
20444 (fabs): Define using libm_alias_double.
20445 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20446 <libm-alias-double.h>.
20447 (lrint): Define using libm_alias_double.
20448 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20449 <libm-alias-double.h>.
20450 (rint): Define using libm_alias_double.
20451
20452 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20453 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20454 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20455 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20456 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20457 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20458 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20459 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20460 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20461 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20462 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20463 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20464 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20465 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20466 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20467 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20468 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20469 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20470 s_atan_template.c.
20471 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20472 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20473 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20474 s_ceil_template.c.
20475 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20476 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20477 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20478 s_cos_template.c.
20479 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20480 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20481 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20482 s_expm1_template.c.
20483 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20484 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20485 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20486 s_fabs_template.c.
20487 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20488 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20489 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20490 s_floor_template.c.
20491 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20492 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20493 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20494 s_frexp_template.c.
20495 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20496 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20497 s_lrint_template.c.
20498 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20499 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20500 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20501 s_modf_template.c.
20502 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20503 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20504 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20505 s_nearbyint_template.c.
20506 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20507 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20508 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20509 s_remquo_template.c.
20510 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20511 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20512 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20513 s_rint_template.c.
20514 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20515 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20516 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20517 s_sin_template.c.
20518 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20519 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20520 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20521 s_sincos_template.c.
20522 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20523 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20524 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20525 s_tan_template.c.
20526 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20527 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20528 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20529 s_tanh_template.c.
20530 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20531 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20532 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20533 s_trunc_template.c.
20534 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20535 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20536 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20537 s_atan.c instead of including s_atan.c.
20538 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20539 s_atanf.c instead of including s_atanf.c.
20540 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20541 s_atanl.c instead of including s_atanl.c.
20542 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20543 instead of s_atan.c.
20544 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20545 instead of s_atanf.c.
20546 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20547 instead of s_atanl.c.
20548
20549 * scripts/update-copyrights: Do not handle intl/plural.c
20550 specially.
20551
20552 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20553
20554 [BZ #22432]
20555 * configure.ac (BISON): Require to be present.
20556 * configure: Regenerated.
20557 * intl/Makefile (generated): Add plural.c.
20558 [$(BISON) != no]: Make code unconditional.
20559 (plural.c): Change rule to $(objpfx)plural.c.
20560 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20561 * intl/plural.c: Remove.
20562 * manual/install.texi (Tools for Compilation): Document bison as
20563 required.
20564 * INSTALL: Regenerated.
20565
20566 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20567
20568 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20569 <libm-alias-double.h>.
20570 (llrint): Define using libm_alias_double.
20571 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20572 <libm-alias-float.h>.
20573 (llrintf): Define using libm_alias_float.
20574 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20575 <libm-alias-ldouble.h>.
20576 (llrintl): Define using libm_alias_ldouble.
20577
20578 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20579 declare_mgen_alias instead of weak_alias.
20580 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20581 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20582 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20583
20584 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20585
20586 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20587 Add add_n-generic.
20588 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20589 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20590 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20591
20592 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20593 Add submul_1-generic.
20594 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20595 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20596 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20597
20598 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20599 Add addmul_1-generic.
20600 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20601 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20602 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20603
20604 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20605 Add sub_n-generic.
20606 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20607 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20608 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20609
20610 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20611 Add mul_1-generic.
20612 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20613 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20614 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20615
20616 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20617
20618 According to CLDR, collation rules for Serbian and Bosnian
20619 should be the same as for Croatian.
20620
20621 [BZ #22534]
20622 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20623 and to the list of locales to be built for testing.
20624 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20625 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20626 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20627 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20628
20629 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20630
20631 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20632 to make test case pass.
20633 * localedata/hr_HR.UTF-8.in: Add more test strings.
20634
20635 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20636
20637 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20638
20639 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20640
20641 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20642 the list of locales to built for testing.
20643 * localedata/hr_HR.UTF-8.in: New file.
20644
20645 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20646
20647 [BZ #10580]
20648 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20649 iso14651_t1.
20650 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20651 CLDR (except use ligatures for the digraphs, CLDR does not use
20652 the ligatures), add first_workday, some fixes in the date and time
20653 formats.
20654 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20655 for Đ and đ.
20656 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20657 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20658 Add int_p_cs_precedes and int_n_cs_precedes.
20659 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20660 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20661 LC_MONETARY now).
20662 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20663 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20664 name_miss.
20665 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20666 and lang_lib. Change postal_fmt.
20667
20668 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20669
20670 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20671 <setjmp.h>.
20672 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20673 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20674 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20675 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20676 * sysdeps/generic/setjmpP.h: New file.
20677 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20678 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20679 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20680 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20681 Add jmp_buf-ssp.sym.
20682 (tests): Add tst-saved_mask-1.
20683
20684 2017-11-30 Arjun Shankar <arjun@redhat.com>
20685
20686 [BZ #22375]
20687 CVE-2017-17426
20688 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20689 instead of request2size.
20690
20691 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20692
20693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20694 (__lllrint): Remove alias.
20695 (lllrint): Likewise.
20696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20697 (__lllrintf): Likewise.
20698 (lllrintf): Likewise.
20699
20700 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20701 <libm-alias-float.h>.
20702 (copysignf): Define using libm_alias_float.
20703 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20704 <libm-alias-float.h>.
20705 (fabsf): Define using libm_alias_float.
20706 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20707 Include <libm-alias-float.h>.
20708 (copysignf): Define using libm_alias_float.
20709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20710 <libm-alias-float.h>.
20711 (fabsf): Define using libm_alias_float.
20712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20713 <libm-alias-float.h>.
20714 (fdimf): Define using libm_alias_float.
20715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20716 <libm-alias-float.h>.
20717 (fmaf): Define using libm_alias_float.
20718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20719 <libm-alias-float.h>.
20720 (llrintf): Define using libm_alias_float.
20721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20722 Include <libm-alias-float.h>.
20723 (nearbyintf): Define using libm_alias_float.
20724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20725 <libm-alias-float.h>.
20726 (rintf): Define using libm_alias_float.
20727 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20728 <libm-alias-float.h>.
20729 (llrintf): Define using libm_alias_float.
20730 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20731 <libm-alias-float.h>.
20732 (lrintf): Define using libm_alias_float.
20733 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20734 <libm-alias-float.h>.
20735 (nearbyintf): Define using libm_alias_float.
20736 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20737 <libm-alias-float.h>.
20738 (rintf): Define using libm_alias_float.
20739 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20740 <libm-alias-float.h>.
20741 (ceilf): Define using libm_alias_float.
20742 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20743 <libm-alias-float.h>.
20744 (floorf): Define using libm_alias_float.
20745 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20746 <libm-alias-float.h>.
20747 (fmaf): Define using libm_alias_float.
20748 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20749 <libm-alias-float.h>.
20750 (lrintf): Define using libm_alias_float.
20751 (llrintf): Likewise.
20752 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20753 <libm-alias-float.h>.
20754 (nearbyintf): Define using libm_alias_float.
20755 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20756 <libm-alias-float.h>.
20757 (rintf): Define using libm_alias_float.
20758 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20759 <libm-alias-float.h>.
20760 (truncf): Define using libm_alias_float.
20761 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20762 <libm-alias-float.h>.
20763 (copysignf): Define using libm_alias_float.
20764 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20765 <libm-alias-float.h>.
20766 (fabsf): Define using libm_alias_float.
20767 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20768 <libm-alias-float.h>.
20769 (lrintf): Define using libm_alias_float.
20770 (llrintf): Likewise.
20771 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20772 <libm-alias-float.h>.
20773 (nearbyintf): Define using libm_alias_float.
20774 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20775 <libm-alias-float.h>.
20776 (rintf): Define using libm_alias_float.
20777
20778 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20779
20780 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20781 <libm-alias-double.h>.
20782 (copysign): Define using libm_alias_double.
20783 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20784 <libm-alias-double.h>.
20785 (fabs): Define using libm_alias_double.
20786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20787 Include <libm-alias-double.h>.
20788 (copysign): Define using libm_alias_double.
20789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20790 <libm-alias-double.h>.
20791 (fabs): Define using libm_alias_double.
20792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20793 <libm-alias-double.h>.
20794 (fdim): Define using libm_alias_double.
20795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20796 <libm-alias-double.h>.
20797 (fma): Define using libm_alias_double.
20798 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20799 <libm-alias-double.h>.
20800 (llrint): Define using libm_alias_double.
20801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20802 Include <libm-alias-double.h>.
20803 (nearbyint): Define using libm_alias_double.
20804 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20805 <libm-alias-double.h>.
20806 (rint): Define using libm_alias_double.
20807 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20808 <libm-alias-double.h>.
20809 (fabs): Define using libm_alias_double.
20810 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20811 <libm-alias-double.h>.
20812 (llrint): Define using libm_alias_double.
20813 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20814 <libm-alias-double.h>.
20815 (nearbyint): Define using libm_alias_double.
20816 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20817 <libm-alias-double.h>.
20818 (rint): Define using libm_alias_double.
20819 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20820 <libm-alias-double.h>.
20821 (ceil): Define using libm_alias_double.
20822 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20823 <libm-alias-double.h>.
20824 (floor): Define using libm_alias_double.
20825 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20826 <libm-alias-double.h>.
20827 (fma): Define using libm_alias_double.
20828 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20829 <libm-alias-double.h>.
20830 (lrint): Define using libm_alias_double.
20831 (llrint): Likewise.
20832 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20833 <libm-alias-double.h>.
20834 (nearbyint): Define using libm_alias_double.
20835 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20836 <libm-alias-double.h>.
20837 (rint): Define using libm_alias_double.
20838 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20839 <libm-alias-double.h>.
20840 (trunc): Define using libm_alias_double.
20841 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20842 <libm-alias-double.h>.
20843 (copysign): Define using libm_alias_double.
20844 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20845 <libm-alias-double.h>.
20846 (fabs): Define using libm_alias_double.
20847 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20848 <libm-alias-double.h>.
20849 (lrint): Define using libm_alias_double.
20850 (llrint): Likewise.
20851 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20852 <libm-alias-double.h>.
20853 (nearbyint): Define using libm_alias_double.
20854 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20855 <libm-alias-double.h>.
20856 (rint): Define using libm_alias_double.
20857
20858 [BZ #22229]
20859 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20860 <math_ldbl_opt.h>.
20861 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20862
20863 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20864 SPARC --disable-multi-arch glibc variants.
20865
20866 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20867 <libm-alias-float.h>.
20868 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20869 if [SHARED].
20870 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20871 <libm-alias-float.h>.
20872 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20873 if [SHARED].
20874 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20875 <libm-alias-float.h>.
20876 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20877 if [SHARED].
20878 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20879 <libm-alias-float.h>.
20880 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20881 if [SHARED].
20882 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20883 <libm-alias-float.h>.
20884 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20885 if [SHARED].
20886 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20887 <libm-alias-float.h>.
20888 (ceilf): Define using libm_alias_float.
20889 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20890 <libm-alias-float.h>.
20891 (floorf): Define using libm_alias_float.
20892 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20893 <libm-alias-float.h>.
20894 (fmaf): Define using libm_alias_float.
20895 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20896 <libm-alias-float.h>.
20897 (nearbyintf): Define using libm_alias_float.
20898 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20899 <libm-alias-float.h>.
20900 (rintf): Define using libm_alias_float.
20901 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20902 <libm-alias-float.h>.
20903 (truncf): Define using libm_alias_float.
20904 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20905 (copysignf): Define using libm_alias_float.
20906 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20907 (cosf): Define using libm_alias_float.
20908 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20909 (fabsf): Define using libm_alias_float.
20910 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20911 (fmaxf): Define using libm_alias_float.
20912 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20913 (fminf): Define using libm_alias_float.
20914 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20915 (llrintf): Define using libm_alias_float.
20916 [!__ILP32__] (lrintf): Likewise.
20917 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20918 (sincosf): Define using libm_alias_float.
20919 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20920 (sinf): Define using libm_alias_float.
20921 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20922 (lrintf): Define using libm_alias_float.
20923
20924 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20925 <libm-alias-double.h>.
20926 (atan): Define using libm_alias_double.
20927 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20928 <libm-alias-double.h>.
20929 (ceil): Define using libm_alias_double.
20930 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20931 <libm-alias-double.h>.
20932 (floor): Define using libm_alias_double.
20933 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20934 <libm-alias-double.h>.
20935 (fma): Define using libm_alias_double.
20936 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20937 <libm-alias-double.h>.
20938 (nearbyint): Define using libm_alias_double.
20939 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20940 <libm-alias-double.h>.
20941 (rint): Define using libm_alias_double.
20942 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20943 <libm-alias-double.h>.
20944 (sin): Define using libm_alias_double.
20945 (cos): Likewise.
20946 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20947 <libm-alias-double.h>.
20948 (tan): Define using libm_alias_double.
20949 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20950 <libm-alias-double.h>.
20951 (trunc): Define using libm_alias_double.
20952 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20953 (copysign): Define using libm_alias_double.
20954 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20955 (fabs): Define using libm_alias_double.
20956 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20957 (fmax): Define using libm_alias_double.
20958 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20959 (fmin): Define using libm_alias_double.
20960 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20961 (llrint): Define using libm_alias_double.
20962 [!__ILP32__] (lrint): Likewise.
20963 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20964 (lrint): Define using libm_alias_double.
20965
20966 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20967
20968 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20969 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20970 objects.
20971 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20972 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20973 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20974 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20975 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20976 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20977
20978 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20979 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20980 objects.
20981 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20982 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20983 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20984 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20985 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20986 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20987
20988 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20989 (libm-sysdep_routines): Add s_nearbyint-generic and
20990 s_nearbyintf-generic objects.
20991 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20992 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20993 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20994 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20995 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20996 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20997
20998 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20999 Add s_finitef-generic and s_finite-generic objects.
21000 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21001 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21002 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21003 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21004 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21005 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21006
21007 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21008 Add s_isinff-generic and s_isinf-generic objects.
21009 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21010 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21011 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21012 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21013 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21014 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21015
21016 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21017 Add s_isnanf-generic and s_isnan-generic objects.
21018 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21019 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21020 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21021 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21022 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21023 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21024
21025 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21026 macro.
21027 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21028 rule.
21029 (sysdep_routines): Use sysdep_calls as base.
21030 (libm-sysdep_routines): Add generic rule for symbols shared with
21031 libc. Add s_signbit-generic and s_signbitf-generic objects.
21032 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21033 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21034 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21035 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21036 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21037 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21038
21039 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21040
21041 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21042 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21043 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21044 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21045 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21046 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21047 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21048 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21049 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21050 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21051 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21052 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21053 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21054 libm_alias_float_r.
21055 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21056 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21057 (logf): Likewise.
21058 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21059 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21060 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21061 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21062 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21063 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21064 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21065 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21066 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21067 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21068 libm_alias_float.
21069 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21070 (cosf): Likewise.
21071 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21072 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21073 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21074 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21075 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21076 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21077 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21078 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21079 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21080 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21081 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21082 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21083 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21084 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21085 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21086 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21087 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21088 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21089 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21090 libm_alias_float.
21091 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21092 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21093 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21094 * sysdeps/ia64/fpu/w_lgammaf_main.c
21095 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21096 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21097
21098 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21099 Alexandre Oliva <aoliva@redhat.com>
21100
21101 [BZ #17750]
21102 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21103 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21104 accents sorting.
21105 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21106 sorting.
21107 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21108 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21109 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21110 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21111 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21112 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21113 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21114 instead of “ifdef DIACRIT_BACKWARD”.
21115
21116 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21117
21118 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21119 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21120 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21121 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21122 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21123 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21124 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21125 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21126 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21127 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21128 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21129 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21130 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21131 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21132 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21133 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21134 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21135 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21137 ($(have-as-vis3) == yes): Remove conditional.
21138 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21139 Likewise.
21140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21141 file.
21142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21143 file.
21144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21145 file.
21146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21147 file.
21148 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21149 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21150 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21151 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21152 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21153 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21154 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21155 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21156
21157 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21158
21159 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21160 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21161 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21162 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21163 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21164 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21165 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21166 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21167 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21168 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21169 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21170 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21171 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21172 libm_alias_double_r.
21173 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21174 (log): Likewise.
21175 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21176 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21177 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21178 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21179 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21180 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21181 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21182 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21183 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21184 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21185 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21186 libm_alias_double.
21187 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21188 (cos): Likewise.
21189 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21190 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21191 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21192 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21193 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21194 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21195 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21196 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21197 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21198 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21199 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21200 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21201 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21202 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21203 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21204 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21205 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21206 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21207 libm_alias_double.
21208 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21209 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21210 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21211 * sysdeps/ia64/fpu/w_lgamma_main.c
21212 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21213 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21214
21215 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21216
21217 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21218 address of $global$ into %dp register earlier. Use pc-relative
21219 instruction sequence for PIC case.
21220
21221 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21222
21223 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21224 (asinhf): Define using libm_alias_float.
21225 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21226 (atanf): Define using libm_alias_float.
21227 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21228 (cbrtf): Define using libm_alias_float.
21229 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21230 (ceilf): Define using libm_alias_float.
21231 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21232 (copysignf): Define using libm_alias_float.
21233 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21234 (expm1f): Define using libm_alias_float.
21235 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21236 (fabsf): Define using libm_alias_float.
21237 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21238 (floorf): Define using libm_alias_float.
21239 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21240 (fmaxf): Define using libm_alias_float.
21241 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21242 (fminf): Define using libm_alias_float.
21243 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21244 (frexpf): Define using libm_alias_float.
21245 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21246 (llrintf): Define using libm_alias_float.
21247 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21248 (logbf): Define using libm_alias_float.
21249 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21250 (lrintf): Define using libm_alias_float.
21251 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21252 (nearbyintf): Define using libm_alias_float.
21253 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21254 (remquof): Define using libm_alias_float.
21255 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21256 (rintf): Define using libm_alias_float.
21257 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21258 (truncf): Define using libm_alias_float.
21259 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21260 <libm-alias-float.h>.
21261 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21262 if [SHARED].
21263 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21264 <libm-alias-float.h>.
21265 (expf): Define using libm_alias_float, or libm_alias_float_other
21266 if [SHARED].
21267 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21268 <libm-alias-float.h>.
21269 (log2f): Define using libm_alias_float, or libm_alias_float_other
21270 if [SHARED].
21271 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21272 <libm-alias-float.h>.
21273 (logf): Define using libm_alias_float, or libm_alias_float_other
21274 if [SHARED].
21275 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21276 <libm-alias-float.h>.
21277 (powf): Define using libm_alias_float, or libm_alias_float_other
21278 if [SHARED].
21279 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21280 <libm-alias-float.h>.
21281 (cosf): Define using libm_alias_float.
21282 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21283 <libm-alias-float.h>.
21284 (sincosf): Define using libm_alias_float.
21285 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21286 <libm-alias-float.h>.
21287 (sinf): Define using libm_alias_float.
21288 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21289 (fmaxf): Define using libm_alias_float.
21290 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21291 (fminf): Define using libm_alias_float.
21292 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21293 <libm-alias-float.h>.
21294 (fmaf): Define using libm_alias_float.
21295
21296 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21297 (asinh): Define using libm_alias_double.
21298 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21299 (atan): Define using libm_alias_double.
21300 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21301 (cbrt): Define using libm_alias_double.
21302 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21303 (ceil): Define using libm_alias_double.
21304 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21305 (copysign): Define using libm_alias_double.
21306 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21307 (expm1): Define using libm_alias_double.
21308 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21309 (fabs): Define using libm_alias_double.
21310 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21311 (fdim): Define using libm_alias_double.
21312 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21313 (floor): Define using libm_alias_double.
21314 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21315 (fmax): Define using libm_alias_double.
21316 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21317 (fmin): Define using libm_alias_double.
21318 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21319 (frexp): Define using libm_alias_double.
21320 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21321 (llrint): Define using libm_alias_double.
21322 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21323 (logb): Define using libm_alias_double.
21324 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21325 (lrint): Define using libm_alias_double.
21326 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21327 (nearbyint): Define using libm_alias_double.
21328 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21329 (remquo): Define using libm_alias_double.
21330 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21331 (rint): Define using libm_alias_double.
21332 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21333 (trunc): Define using libm_alias_double.
21334 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21335 (fmax): Define using libm_alias_double.
21336 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21337 (fmin): Define using libm_alias_double.
21338 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21339 (fma): Define using libm_alias_double.
21340
21341 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21342
21343 [BZ #22370]
21344 * elf/dl-hwcaps.c (ROUND): Removed.
21345 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21346 and ELF_NOTE_NEXT_OFFSET.
21347 * elf/dl-load.c (ROUND): Removed.
21348 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21349 * elf/readelflib.c (ROUND): Removed.
21350 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21351 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21352 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21353 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21354
21355 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21356
21357 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21358 [!__fmaf] (fmaf): Define using libm_alias_float.
21359
21360 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21361 [!__fma] (fma): Define using libm_alias_double.
21362 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21363
21364 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21365
21366 [BZ #22336]
21367 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21368 and implement the collation rules for cs from CLDR on top of that.
21369 * Makefile: Add cs_CZ.UTF-8 to test-input.
21370 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21371
21372 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21373
21374 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21375
21376 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21377 Icarus Sparry <icarus.w.sparry@intel.com>
21378
21379 * benchtests/Makefile:Add BENCHSET to allow subsets of
21380 benchmarks to be run.
21381 * benchtests/README: Add documentation for: Running subsets of
21382 benchmarks.
21383
21384 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21385
21386 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21387 range of tests names.
21388
21389 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21390 result from property and remove "max", min" and "mean" from
21391 required properties based on benchtests/bench-skeleton.c.
21392
21393 2017-11-28 Florian Weimer <fweimer@redhat.com>
21394
21395 [BZ #20826]
21396 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21397 due to Internet requirement.
21398 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21399 tst-getaddrinfo5.
21400 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21401
21402 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21403
21404 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21405 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21406 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21407 (sysdep_routines): Add memset-ultra1.
21408 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21409 file.
21410 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21411 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21412 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21413 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21414 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21415 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21416 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21417 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21418
21419 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21420 file.
21421 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21422 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21423 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21424 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21425 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21426 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21427 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21428 macro.
21429 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21430 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21431 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21432 (sysdep_routines): Add memcpy-ultra1.
21433 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21434 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21435
21436 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21437
21438 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21439 (cfloat_versions): Take function argument without trailing 'f'.
21440 Call libm_alias_float_other.
21441 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21442 * sysdeps/alpha/fpu/cargf.c: Likewise.
21443 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21444 * sysdeps/alpha/fpu/conjf.c: Likewise.
21445 * sysdeps/alpha/fpu/crealf.c: Likewise.
21446 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21447 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21448 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21449 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21450 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21451 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21452 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21453 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21454 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21455 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21456 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21457 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21458 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21459 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21460 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21461 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21462 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21463 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21464 (clog10f): Use libm_alias_float_other.
21465 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21466 (ceilf): Define using libm_alias_float.
21467 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21468 (copysignf): Define using libm_alias_float.
21469 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21470 (fabsf): Define using libm_alias_float.
21471 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21472 (floorf): Define using libm_alias_float.
21473 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21474 (fmaxf): Define using libm_alias_float.
21475 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21476 (fminf): Define using libm_alias_float.
21477 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21478 (lrintf): Define using libm_alias_float.
21479 (llrintf): Likewise.
21480 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21481 (lroundf): Define using libm_alias_float.
21482 (llroundf): Likewise.
21483 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21484 (rintf): Define using libm_alias_float.
21485 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21486 (truncf): Define using libm_alias_float.
21487
21488 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21489 (ceilf): Define using libm_alias_float.
21490 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21491 (floorf): Define using libm_alias_float.
21492 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21493 (fmaf): Define using libm_alias_float.
21494 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21495 (fmaxf): Define using libm_alias_float.
21496 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21497 (fminf): Define using libm_alias_float.
21498 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21499 (llrintf): Define using libm_alias_float.
21500 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21501 (llroundf): Define using libm_alias_float.
21502 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21503 (lrintf): Define using libm_alias_float.
21504 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21505 (lroundf): Define using libm_alias_float.
21506 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21507 <libm-alias-float.h>.
21508 (nearbyintf): Define using libm_alias_float.
21509 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21510 (rintf): Define using libm_alias_float.
21511 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21512 (roundf): Define using libm_alias_float.
21513 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21514 (truncf): Define using libm_alias_float.
21515
21516 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21517 (ceil): Define using libm_alias_double.
21518 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21519 (copysign): Define using libm_alias_double.
21520 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21521 (fabs): Define using libm_alias_double.
21522 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21523 (floor): Define using libm_alias_double.
21524 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21525 (fmax): Define using libm_alias_double.
21526 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21527 (fmin): Define using libm_alias_double.
21528 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21529 (lrint): Define using libm_alias_double.
21530 (llrint): Likewise.
21531 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21532 (lround): Define using libm_alias_double.
21533 (llround): Likewise.
21534 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21535 (rint): Define using libm_alias_double.
21536 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21537 (trunc): Define using libm_alias_double.
21538
21539 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21540 (libm_alias_double_r): Add semicolon after weak_alias call.
21541
21542 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21543
21544 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21545 (ceil): Define using libm_alias_double.
21546 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21547 (floor): Define using libm_alias_double.
21548 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21549 (fma): Define using libm_alias_double.
21550 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21551 (fmax): Define using libm_alias_double.
21552 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21553 (fmin): Define using libm_alias_double.
21554 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21555 (llrint): Define using libm_alias_double.
21556 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21557 (llround): Define using libm_alias_double.
21558 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21559 (lrint): Define using libm_alias_double.
21560 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21561 (lround): Define using libm_alias_double.
21562 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21563 (nearbyint): Define using libm_alias_double.
21564 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21565 (rint): Define using libm_alias_double.
21566 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21567 (round): Define using libm_alias_double.
21568 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21569 (trunc): Define using libm_alias_double.
21570
21571 2017-11-27 Florian Weimer <fweimer@redhat.com>
21572
21573 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21574 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21575 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21576 (tests): Add tst-mlock2.
21577 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21578 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21579 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21580 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21581 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21582 for mlock. Document mlock2.
21583
21584 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21585
21586 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21587 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21588 Likewise.
21589 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21590 Likewise.
21591 * sysdeps/x86/Makeconfig: New file.
21592 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21593 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21594 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21595 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21596 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21597 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21598 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21599 Likewise.
21600 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21601 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21602 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21603 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21604 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21605 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21606 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21607 * manual/math.texi (Mathematics): Document support for _Float64x.
21608 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21609 * stdlib/Versions (GLIBC_2.27): Likewise.
21610 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21611 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21612 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21613 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21614 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21615 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21616 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21617 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21618 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21619 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21620 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21621 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21623 Likewise.
21624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21625 Likewise.
21626 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21627 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21628 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21629 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21630 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21631 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21632 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21633 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21634 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21635 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21636 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21637 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21638 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21639 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21640
21641 2017-11-27 Andreas Schwab <schwab@suse.de>
21642
21643 * elf/Makefile (dl-routines): Add dl-sort-maps.
21644 * elf/dl-sort-maps.c: New file.
21645 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21646 (_dl_sort_maps): Declare.
21647 * elf/dl-fini.c (_dl_sort_fini): Remove.
21648 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21649 * elf/dl-close.c (_dl_close_worker): Likewise.
21650 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21651 open-coding it.
21652 * elf/dl-open.c (dl_open_worker): Likewise.
21653
21654 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21655
21656 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21657 using libm_alias_float128.
21658 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21659 Likewise.
21660 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21661 Likewise.
21662 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21663 (setpayloadsigf128): Likewise.
21664 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21665 Likewise.
21666 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21667 Likewise.
21668
21669 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21670 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21671 -mfloat128 to CFLAGS.
21672 ($(foreach
21673 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21674 Likewise.
21675 (CFLAGS-libm-test-support-float64x.c): New variable.
21676 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21677 $(f128-loader-link) to gnulib-tests.
21678
21679 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21680 (libm_alias_float128_other_r): If
21681 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21682 alias.
21683 (libm_alias_float128_r): Add semicolon after weak_alias call.
21684 * sysdeps/generic/libm-alias-ldouble.h
21685 (libm_alias_ldouble_other_r_f128): New macro.
21686 (libm_alias_ldouble_other_r_f64x): Likewise.
21687 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21688 and libm_alias_ldouble_other_r_f64x.
21689 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21690 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21691 (libm_alias_ldouble_other_r_f128): New macro.
21692 (libm_alias_ldouble_other_r_f64x): Likewise.
21693 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21694 and libm_alias_ldouble_other_r_f64x.
21695
21696 * stdlib/strfroml.c: Always include <stdlib.h>.
21697 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21698 undefine as macro and define as weak alias.
21699 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21700 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21701 <stdlib.h>.
21702 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21703 Define and later undefine as macro and define as weak alias.
21704
21705 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21706 Define and later undefine as macro. Define as weak alias if
21707 [!USE_WIDE_CHAR].
21708 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21709 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21710 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21711 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21712 Define and later undefine as macro. Define as weak alias if
21713 [!USE_WIDE_CHAR].
21714 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21715 Define and later undefine as macro. Define as weak alias if
21716 [USE_WIDE_CHAR].
21717 * sysdeps/ieee754/float128/strtof128_l.c
21718 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21719 Define and later undefine as macro. Define as weak alias if
21720 [!USE_WIDE_CHAR].
21721 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21722 Define and later undefine as macro. Define as weak alias if
21723 [USE_WIDE_CHAR].
21724 * sysdeps/ieee754/ldbl-128/strtold_l.c
21725 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21726 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21727 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21728 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21729 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21730 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21731 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21732 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21733 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21734 * sysdeps/ieee754/ldbl-96/strtold_l.c
21735 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21736 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21737 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21738 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21739
21740 * math/test-float64x.h: New file.
21741 * math/Makefile (type-float64x-yes): New variable.
21742 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21743
21744 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21745 function-like macro.
21746 (min_of_type_): Likewise.
21747 (min_of_type_l): Likewise.
21748 (min_of_type_f128): Likewise.
21749 (min_of_type): Pass () as last argument of __MATH_TG.
21750
21751 * stdlib/tst-strtod-round-skeleton.c
21752 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21753 headers.
21754
21755 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21756 for combinations of long double with _Float64 and _Float64x.
21757
21758 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21759 (__DECL_SIMD_cosf32): Likewise.
21760 (__DECL_SIMD_cosf64): Likewise.
21761 (__DECL_SIMD_cosf32x): Likewise.
21762 (__DECL_SIMD_cosf64x): Likewise.
21763 (__DECL_SIMD_cosf128x): Likewise.
21764 (__DECL_SIMD_sinf16): Likewise.
21765 (__DECL_SIMD_sinf32): Likewise.
21766 (__DECL_SIMD_sinf64): Likewise.
21767 (__DECL_SIMD_sinf32x): Likewise.
21768 (__DECL_SIMD_sinf64x): Likewise.
21769 (__DECL_SIMD_sinf128x): Likewise.
21770 (__DECL_SIMD_sincosf16): Likewise.
21771 (__DECL_SIMD_sincosf32): Likewise.
21772 (__DECL_SIMD_sincosf64): Likewise.
21773 (__DECL_SIMD_sincosf32x): Likewise.
21774 (__DECL_SIMD_sincosf64x): Likewise.
21775 (__DECL_SIMD_sincosf128x): Likewise.
21776 (__DECL_SIMD_logf16): Likewise.
21777 (__DECL_SIMD_logf32): Likewise.
21778 (__DECL_SIMD_logf64): Likewise.
21779 (__DECL_SIMD_logf32x): Likewise.
21780 (__DECL_SIMD_logf64x): Likewise.
21781 (__DECL_SIMD_logf128x): Likewise.
21782 (__DECL_SIMD_expf16): Likewise.
21783 (__DECL_SIMD_expf32): Likewise.
21784 (__DECL_SIMD_expf64): Likewise.
21785 (__DECL_SIMD_expf32x): Likewise.
21786 (__DECL_SIMD_expf64x): Likewise.
21787 (__DECL_SIMD_expf128x): Likewise.
21788 (__DECL_SIMD_powf16): Likewise.
21789 (__DECL_SIMD_powf32): Likewise.
21790 (__DECL_SIMD_powf64): Likewise.
21791 (__DECL_SIMD_powf32x): Likewise.
21792 (__DECL_SIMD_powf64x): Likewise.
21793 (__DECL_SIMD_powf128x): Likewise.
21794
21795 * stdlib/Versions (libc): Move entries for wcstof128 and
21796 wcstof128_l to ....
21797 * wcsmbs/Versions (libc): ... here.
21798 Include <float128-abi.h>.
21799
21800 2017-11-24 Florian Weimer <fweimer@redhat.com>
21801
21802 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21803 bits/mman-shared.h.
21804 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21805 <bits/mman-shared.h>.
21806 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21807 to ...
21808 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21809 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21810 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21811 <bits/mman-shared.h>.
21812
21813 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21814
21815 [BZ #22457]
21816 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21817 posix_memalign/free.
21818 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21819
21820 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21821
21822 [BZ #22469]
21823 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21824 and implement the collation rules for pl from CLDR on top of that.
21825 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21826 of locales to be built for testing.
21827 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21828
21829 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21830
21831 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21832 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21833 libm_alias_ldouble_other.
21834 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21835 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21836 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21837 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21838 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21839 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21840 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21841 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21842 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21843 libm_alias_ldouble_r.
21844 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21845 libm_alias_ldouble_other.
21846 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21847 (log10l): Likewise.
21848 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21849 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21850 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21851 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21852 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21853 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21854 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21855 (atan2l): Likewise.
21856 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21857 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21858 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21859 libm_alias_ldouble.
21860 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21861 (cosl): Likewise.
21862 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21863 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21864 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21865 (expl): Likewise.
21866 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21867 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21868 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21869 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21870 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21871 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21872 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21873 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21874 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21875 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21876 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21877 libm_alias_ldouble.
21878 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21879 libm_alias_ldouble_other.
21880 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21881 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21882 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21883 libm_alias_ldouble.
21884 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21885 libm_alias_ldouble_other.
21886 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21887 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21888 * sysdeps/ia64/fpu/w_lgammal_main.c
21889 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21890 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21891
21892 2017-11-23 Florian Weimer <fweimer@redhat.com>
21893
21894 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21895 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21896 alike. Remove freeres marker.
21897 * malloc/arena.c (arena_thread_freeres): Call
21898 tcache_thread_shutdown.
21899
21900 2017-11-23 Florian Weimer <fweimer@redhat.com>
21901
21902 [BZ #22459]
21903 Export nscd hash function as __nss_hash.
21904 * include/nss.h (__nss_hash): Declare.
21905 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21906 symbol.
21907 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21908 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21909 of __nscd_hash.
21910 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21911 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21912 * nss/Makefiles (routines): Add nss_hash.
21913 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21914 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21915 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21916 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21917
21918 2017-11-23 Florian Weimer <fweimer@redhat.com>
21919
21920 [BZ #22478]
21921 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21922 Return error code, not -1.
21923 * signal/tst-sigwait-eintr.c: New file.
21924 * signal/Makefile (tests): Add tst-sigwait-eintr.
21925
21926 2017-11-23 Florian Weimer <fweimer@redhat.com>
21927
21928 Linux: Add memfd_create system call wrapper
21929 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21930 tst-memfd_create.
21931 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21932 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21933 [__USE_GNU] (memfd_create): Declare.
21934 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21935 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21936 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21937 * sysdeps/unix/sysv/linux/**.abilist: Update.
21938 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21939
21940 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21941
21942 * localedata/gen-locale.sh: Fix typo in variable name.
21943
21944 * resolv/res_debug.c (p_secstodate): Condition definition on
21945 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21946 directly as __p_secstodate, and as a compat symbol. Do not use
21947 libresolv_hidden_def.
21948 * resolv/resolv.h (p_secstodate): Remove macro and function
21949 declaration.
21950 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21951 using p_secstodate.
21952 * include/resolv.h (__p_secstodate): Do not use
21953 libresolv_hidden_proto.
21954 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21955 (tests-internal): ... here.
21956 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21957 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21958 and declare and use __p_secstodate and use compat_symbol_reference
21959 in that case.
21960 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21961 implementation returning 77.
21962
21963 [BZ #22463]
21964 * resolv/res_debug.c: Include <libc-diag.h>.
21965 (p_secstodate): Assert time_t at least as wide as u_long. On
21966 overflow, use integer seconds since the epoch as output, or use
21967 "<overflow>" as output and set errno to EOVERFLOW if integer
21968 seconds since the epoch would be 14 or more characters.
21969 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21970 for sprintf call.
21971 * resolv/tst-p_secstodate.c: New file.
21972 * resolv/Makefile (tests): Add tst-p_secstodate.
21973 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21974
21975 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21976 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21977 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21978
21979 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21980
21981 * posix/regcomp.c (init_word_char): Add comments.
21982
21983 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21984
21985 [BZ #22447]
21986 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21987 strlen to compute length of ut_user and set trailing NUL byte of
21988 result explicitly.
21989
21990 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21991
21992 [BZ #15537]
21993 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21994 using “copy "iso14651_t1"” and then implementing the
21995 collation rules for lv from CLDR on top of that.
21996 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21997 of locales to be built for testing.
21998 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21999 sorting.
22000
22001 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22002
22003 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22004 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22005 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22006 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22007 [__USE_MISC] (MADV_HWPOISON): New macro.
22008 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22009
22010 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22011
22012 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22013 -Wmissing-braces on GCC 4.9.
22014
22015 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22016
22017 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22018 * sysdeps/s390/s390-32/start.S (_start): Likewise
22019 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22020 (thread_start): Likewise.
22021 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22022 (thread_start): Likewise.
22023 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22024 (__makecontext_ret): Likewise.
22025 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22026 (__makecontext_ret): Likewise.
22027
22028 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22029
22030 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22031 __wcschrnul): Remove attribute_hidden.
22032
22033 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22034
22035 regex: don't assume uint64_t or uint32_t
22036 This avoids -Werror=overflow errors for 32-bit systems in
22037 the 64-bit case. Problem reported by Joseph Myers in:
22038 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22039 Also, when this code is used in Gnulib it ports to platforms
22040 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22041 them, and on some 32-bit compilers there is no uint64_t.
22042 Problem reported by Gianluigi Tiesi in:
22043 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22044 * posix/regcomp.c (init_word_char): Don't assume that the types
22045 uint64_t and uint32_t exist. Adapted from Gnulib patch
22046 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22047 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22048
22049 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22050
22051 * sysdeps/aarch64/memset-reg.h: New file.
22052 * sysdeps/aarch64/memset.S: Use it.
22053 (__memset): Rename to MEMSET macro.
22054 [ZVA_MACRO]: Use zva_macro.
22055 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22056 Add memset_generic and memset_falkor.
22057 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22058 (__libc_ifunc_impl_list): Add memset ifuncs.
22059 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22060 local variable zva_size.
22061 * sysdeps/aarch64/multiarch/memset.c: New file.
22062 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22063 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22064 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22065 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22066 (DCZID_DZP_MASK): New macro.
22067 (DCZID_BS_MASK): Likewise.
22068 (init_cpu_features): Read and set zva_size.
22069 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22070 (struct cpu_features): New member zva_size.
22071
22072 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22073 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22074 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22075
22076 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22077 backwards. Fix timing computation.
22078 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22079 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22080 on memset by N at a time. Fix timing computation.
22081
22082 2017-11-20 Florian Weimer <fweimer@redhat.com>
22083
22084 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22085 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22086
22087 2017-11-19 Florian Weimer <fweimer@redhat.com>
22088
22089 manual: Document mprotect
22090 * manual/memory.texi (Memory Protection): New section.
22091 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22092 documentation of PROT_* flags and reference the Memory Protection
22093 section instead.
22094
22095 2017-11-19 Florian Weimer <fweimer@redhat.com>
22096
22097 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22098 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22099 (Scatter-Gather): ... to here. Remove misleading comment.
22100
22101 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22102
22103 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22104 style.
22105
22106 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22107 when /proc/<pid>/setgroups does not exist.
22108
22109 2017-11-18 Florian Weimer <fweimer@redhat.com>
22110
22111 * sysdeps/unix/sysv/linux/tst-ttyname.c
22112 (become_root_in_mount_ns): Remove.
22113 (do_in_chroot_1): Call support_enter_mount_namespace.
22114 (do_in_chroot_2): Likewise.
22115 (do_test): Call support_become_root early.
22116
22117 2017-11-18 Florian Weimer <fweimer@redhat.com>
22118
22119 * support/namespace.h (support_enter_mount_namespace): Declare.
22120 * support/support_enter_mount_namespace.c: New file.
22121 * support/Makefile (libsupport-routines): Add
22122 support_enter_mount_namespace.
22123
22124 2017-11-18 Florian Weimer <fweimer@redhat.com>
22125
22126 * support/temp_file.c (support_create_temp_directory): Use
22127 test_dir and do not rely on the presence of the XXXXXX suffix.
22128 * support/temp_file.h (support_create_temp_directory): Update
22129 comment.
22130 * support/tst-xreadlink.c (do_test): Adjust.
22131 * support/support_chroot.c (support_chroot_create): Likewise.
22132
22133 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22134
22135 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22136 macro.
22137 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22138 htm-no-suspend.
22139
22140 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22141
22142 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22143 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22144 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22145 (ceill): Define using libm_alias_ldouble.
22146 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22147 <libm-alias-ldouble.h>.
22148 (copysignl): Define using libm_alias_ldouble.
22149 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22150 (fabsl): Define using libm_alias_ldouble.
22151 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22152 (floorl): Define using libm_alias_ldouble.
22153 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22154 (fmaxl): Define using libm_alias_ldouble.
22155 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22156 (fminl): Define using libm_alias_ldouble.
22157 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22158 (llrintl): Define using libm_alias_ldouble.
22159 (lrintl): Likewise.
22160 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22161 <libm-alias-ldouble.h>.
22162 (nearbyintl): Define using libm_alias_ldouble.
22163 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22164 (truncl): Define using libm_alias_ldouble.
22165 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22166 <libm-alias-ldouble.h>.
22167 (lrintl): Define using libm_alias_ldouble.
22168
22169 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22170 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22171 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22172 (asinhl): Define using libm_alias_ldouble.
22173 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22174 (atanl): Define using libm_alias_ldouble.
22175 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22176 (cbrtl): Define using libm_alias_ldouble.
22177 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22178 (ceill): Define using libm_alias_ldouble.
22179 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22180 (copysignl): Define using libm_alias_ldouble.
22181 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22182 (fabsl): Define using libm_alias_ldouble.
22183 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22184 (floorl): Define using libm_alias_ldouble.
22185 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22186 (fmaxl): Define using libm_alias_ldouble.
22187 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22188 (fminl): Define using libm_alias_ldouble.
22189 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22190 (frexpl): Define using libm_alias_ldouble.
22191 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22192 (llrintl): Define using libm_alias_ldouble.
22193 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22194 (logbl): Define using libm_alias_ldouble.
22195 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22196 (lrintl): Define using libm_alias_ldouble.
22197 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22198 (nearbyintl): Define using libm_alias_ldouble.
22199 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22200 (nextafterl): Define using libm_alias_ldouble.
22201 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22202 (remquol): Define using libm_alias_ldouble.
22203 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22204 (rintl): Define using libm_alias_ldouble.
22205 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22206 (truncl): Define using libm_alias_ldouble.
22207 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22208 (fmaxl): Define using libm_alias_ldouble.
22209 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22210 (fminl): Define using libm_alias_ldouble.
22211
22212 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22213 to C syntax instead of availability and properties of types.
22214 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22215 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22216 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22217 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22218 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22219 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22220
22221 2017-11-17 Florian Weimer <fweimer@redhat.com>
22222
22223 support_become_root: Enable file creation in namespaces.
22224 * support/support_become_root.c (setup_mapping): New function.
22225 (support_become_root): Call it.
22226
22227 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22228
22229 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22230 macro.
22231
22232 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22233
22234 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22235 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22236
22237 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22238
22239 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22240
22241 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22242 version to 4.14.
22243
22244 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22245
22246 * INSTALL: Fix botched up regeneration.
22247
22248 * NEWS: Update sourceare link to https.
22249 * configure.ac: Likewise.
22250 * crypt/md5test-giant.c: Likewise.
22251 * dlfcn/bug-atexit1.c: Likewise.
22252 * dlfcn/bug-atexit2.c: Likewise.
22253 * localedata/README: Likewise.
22254 * malloc/tst-mallocfork.c: Likewise.
22255 * manual/install.texi: Likewise.
22256 * nptl/tst-pthread-getattr.c: Likewise.
22257 * stdio-common/tst-fgets.c: Likewise.
22258 * stdio-common/tst-fwrite.c: Likewise.
22259 * sunrpc/Makefile: Likewise.
22260 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22261 * wcsmbs/tst-mbrtowc2.c: Likewise.
22262 * configure: Regenerate.
22263 * INSTALL: Regenerate.
22264
22265 2017-11-15 Martin Sebor <msebor@redhat.com>
22266
22267 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22268 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22269 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22270
22271 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22272
22273 [BZ #22145]
22274 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22275 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22276
22277 [BZ #22145]
22278 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22279 Defer is_pty check until end of the function.
22280 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22281
22282 [BZ #22145]
22283 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22284 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22285 (ttyname): Likewise.
22286 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22287 (__ttyname_r): Likewise.
22288
22289 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22290 int to bool.
22291
22292 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22293
22294 * manual/terminal.texi (Is It a Terminal):
22295 Mention ENODEV for ttyname and ttyname_r.
22296
22297 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22298
22299 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22300 constant and macro.
22301
22302 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22303 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22304 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22305 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22306 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22307 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22308
22309 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22310
22311 * signal/sigrelse.c (sigrelse): Optimize implementation.
22312
22313 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22314 (__sigpause): Rely on __sigsuspend to implement single thread
22315 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22316
22317 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22318
22319 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22320 kernel version to 4.14.
22321
22322 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22323
22324 [BZ #22442]
22325 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22326 Check if ifname is too long.
22327
22328 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22329
22330 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22331
22332 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22333
22334 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22335 was accidentally lost.
22336
22337 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22338
22339 * localedata/locales/az_IR: Add standard copyright header.
22340
22341 2017-11-15 Florian Weimer <fweimer@redhat.com>
22342
22343 [BZ #22439]
22344 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22345 not just the top one. Output a new "subheaps" statistic.
22346
22347 2017-11-15 Florian Weimer <fweimer@redhat.com>
22348
22349 [BZ #22408]
22350 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22351 under the per-arena lock.
22352 * malloc/Makefile (tests): Add tst-malloc_info.
22353 (tst-malloc_info): Link with libpthread.
22354 * malloc/tst-malloc_info.c: New file.
22355
22356 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22357
22358 [BZ #21660]
22359 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22360 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22361 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22362 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22363 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22364 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22365 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22366 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22367 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22368 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22369 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22370 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22371 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22372 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22373 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22374 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22375 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22376 (__floating_type): Likewise.
22377 (__real_integer_type): Likewise.
22378 (__complex_integer_type): Likewise.
22379 (__expr_is_real): Likewise.
22380 (__tgmath_real_type_sub): Likewise.
22381 (__tgmath_real_type): Likewise.
22382 (__tgmath_complex_type_sub): Likewise.
22383 (__tgmath_complex_type): Likewise.
22384 (__TGMATH_F128): Likewise.
22385 (__TGMATH_CF128): Likewise.
22386 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22387 new macros.
22388 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22389 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22390 Likewise.
22391 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22392 Likewise.
22393 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22394 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22395 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22396 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22397 Likewise.
22398 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22399 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22400 Likewise.
22401 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22402 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22403 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22404 Likewise.
22405 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22406 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22407 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22408 (cimag): Likewise.
22409 (creal): Likewise.
22410
22411 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22412
22413 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22414 for stpncpy calls for GCC 8.
22415 (test_strncat): Disable -Wstringop-truncation warning for strncat
22416 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22417 strncat call for GCC 7.
22418 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22419 calls for GCC 8.
22420 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22421 trailing NUL.
22422
22423 * string/bug-strncat1.c: Include <libc-diag.h>.
22424 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22425
22426 2017-11-13 Claude Paroz <claude@2xlibre.net>
22427
22428 [BZ #22387]
22429 * localedata/locales/aa_DJ: Improved readibility by replacing
22430 <Uxxxx> sequences in the ASCII printable range by their ASCII
22431 character equivalents.
22432 * localedata/locales/aa_ER: Likewise.
22433 * localedata/locales/aa_ER@saaho: Likewise.
22434 * localedata/locales/aa_ET: Likewise.
22435 * localedata/locales/af_ZA: Likewise.
22436 * localedata/locales/agr_PE: Likewise.
22437 * localedata/locales/ak_GH: Likewise.
22438 * localedata/locales/am_ET: Likewise.
22439 * localedata/locales/anp_IN: Likewise.
22440 * localedata/locales/ar_AE: Likewise.
22441 * localedata/locales/ar_BH: Likewise.
22442 * localedata/locales/ar_DZ: Likewise.
22443 * localedata/locales/ar_EG: Likewise.
22444 * localedata/locales/ar_IN: Likewise.
22445 * localedata/locales/ar_IQ: Likewise.
22446 * localedata/locales/ar_JO: Likewise.
22447 * localedata/locales/ar_KW: Likewise.
22448 * localedata/locales/ar_LB: Likewise.
22449 * localedata/locales/ar_LY: Likewise.
22450 * localedata/locales/ar_MA: Likewise.
22451 * localedata/locales/ar_OM: Likewise.
22452 * localedata/locales/ar_QA: Likewise.
22453 * localedata/locales/ar_SA: Likewise.
22454 * localedata/locales/ar_SD: Likewise.
22455 * localedata/locales/ar_SS: Likewise.
22456 * localedata/locales/ar_SY: Likewise.
22457 * localedata/locales/ar_TN: Likewise.
22458 * localedata/locales/ar_YE: Likewise.
22459 * localedata/locales/as_IN: Likewise.
22460 * localedata/locales/ast_ES: Likewise.
22461 * localedata/locales/ayc_PE: Likewise.
22462 * localedata/locales/az_AZ: Likewise.
22463 * localedata/locales/az_IR: Likewise.
22464 * localedata/locales/be_BY: Likewise.
22465 * localedata/locales/be_BY@latin: Likewise.
22466 * localedata/locales/bem_ZM: Likewise.
22467 * localedata/locales/ber_DZ: Likewise.
22468 * localedata/locales/ber_MA: Likewise.
22469 * localedata/locales/bg_BG: Likewise.
22470 * localedata/locales/bhb_IN: Likewise.
22471 * localedata/locales/bho_IN: Likewise.
22472 * localedata/locales/bi_VU: Likewise.
22473 * localedata/locales/bn_BD: Likewise.
22474 * localedata/locales/bn_IN: Likewise.
22475 * localedata/locales/bo_CN: Likewise.
22476 * localedata/locales/bo_IN: Likewise.
22477 * localedata/locales/br_FR: Likewise.
22478 * localedata/locales/brx_IN: Likewise.
22479 * localedata/locales/bs_BA: Likewise.
22480 * localedata/locales/byn_ER: Likewise.
22481 * localedata/locales/ca_AD: Likewise.
22482 * localedata/locales/ca_ES: Likewise.
22483 * localedata/locales/ca_FR: Likewise.
22484 * localedata/locales/ca_IT: Likewise.
22485 * localedata/locales/ce_RU: Likewise.
22486 * localedata/locales/chr_US: Likewise.
22487 * localedata/locales/cmn_TW: Likewise.
22488 * localedata/locales/crh_UA: Likewise.
22489 * localedata/locales/cs_CZ: Likewise.
22490 * localedata/locales/csb_PL: Likewise.
22491 * localedata/locales/cv_RU: Likewise.
22492 * localedata/locales/cy_GB: Likewise.
22493 * localedata/locales/da_DK: Likewise.
22494 * localedata/locales/de_AT: Likewise.
22495 * localedata/locales/de_BE: Likewise.
22496 * localedata/locales/de_CH: Likewise.
22497 * localedata/locales/de_DE: Likewise.
22498 * localedata/locales/de_IT: Likewise.
22499 * localedata/locales/de_LI: Likewise.
22500 * localedata/locales/de_LU: Likewise.
22501 * localedata/locales/doi_IN: Likewise.
22502 * localedata/locales/dv_MV: Likewise.
22503 * localedata/locales/dz_BT: Likewise.
22504 * localedata/locales/el_CY: Likewise.
22505 * localedata/locales/el_GR: Likewise.
22506 * localedata/locales/en_AG: Likewise.
22507 * localedata/locales/en_AU: Likewise.
22508 * localedata/locales/en_BW: Likewise.
22509 * localedata/locales/en_CA: Likewise.
22510 * localedata/locales/en_DK: Likewise.
22511 * localedata/locales/en_GB: Likewise.
22512 * localedata/locales/en_HK: Likewise.
22513 * localedata/locales/en_IE: Likewise.
22514 * localedata/locales/en_IL: Likewise.
22515 * localedata/locales/en_IN: Likewise.
22516 * localedata/locales/en_NG: Likewise.
22517 * localedata/locales/en_NZ: Likewise.
22518 * localedata/locales/en_PH: Likewise.
22519 * localedata/locales/en_SG: Likewise.
22520 * localedata/locales/en_US: Likewise.
22521 * localedata/locales/en_ZA: Likewise.
22522 * localedata/locales/en_ZM: Likewise.
22523 * localedata/locales/en_ZW: Likewise.
22524 * localedata/locales/eo: Likewise.
22525 * localedata/locales/es_AR: Likewise.
22526 * localedata/locales/es_BO: Likewise.
22527 * localedata/locales/es_CL: Likewise.
22528 * localedata/locales/es_CO: Likewise.
22529 * localedata/locales/es_CR: Likewise.
22530 * localedata/locales/es_CU: Likewise.
22531 * localedata/locales/es_DO: Likewise.
22532 * localedata/locales/es_EC: Likewise.
22533 * localedata/locales/es_ES: Likewise.
22534 * localedata/locales/es_GT: Likewise.
22535 * localedata/locales/es_HN: Likewise.
22536 * localedata/locales/es_MX: Likewise.
22537 * localedata/locales/es_NI: Likewise.
22538 * localedata/locales/es_PA: Likewise.
22539 * localedata/locales/es_PE: Likewise.
22540 * localedata/locales/es_PR: Likewise.
22541 * localedata/locales/es_PY: Likewise.
22542 * localedata/locales/es_SV: Likewise.
22543 * localedata/locales/es_US: Likewise.
22544 * localedata/locales/es_UY: Likewise.
22545 * localedata/locales/es_VE: Likewise.
22546 * localedata/locales/et_EE: Likewise.
22547 * localedata/locales/eu_ES: Likewise.
22548 * localedata/locales/eu_ES@euro: Likewise.
22549 * localedata/locales/fa_IR: Likewise.
22550 * localedata/locales/ff_SN: Likewise.
22551 * localedata/locales/fi_FI: Likewise.
22552 * localedata/locales/fil_PH: Likewise.
22553 * localedata/locales/fo_FO: Likewise.
22554 * localedata/locales/fr_BE: Likewise.
22555 * localedata/locales/fr_CA: Likewise.
22556 * localedata/locales/fr_CH: Likewise.
22557 * localedata/locales/fr_FR: Likewise.
22558 * localedata/locales/fr_LU: Likewise.
22559 * localedata/locales/fur_IT: Likewise.
22560 * localedata/locales/fy_DE: Likewise.
22561 * localedata/locales/fy_NL: Likewise.
22562 * localedata/locales/ga_IE: Likewise.
22563 * localedata/locales/gd_GB: Likewise.
22564 * localedata/locales/gez_ER: Likewise.
22565 * localedata/locales/gez_ET: Likewise.
22566 * localedata/locales/gl_ES: Likewise.
22567 * localedata/locales/gu_IN: Likewise.
22568 * localedata/locales/gv_GB: Likewise.
22569 * localedata/locales/ha_NG: Likewise.
22570 * localedata/locales/hak_TW: Likewise.
22571 * localedata/locales/he_IL: Likewise.
22572 * localedata/locales/hi_IN: Likewise.
22573 * localedata/locales/hif_FJ: Likewise.
22574 * localedata/locales/hne_IN: Likewise.
22575 * localedata/locales/hr_HR: Likewise.
22576 * localedata/locales/hsb_DE: Likewise.
22577 * localedata/locales/ht_HT: Likewise.
22578 * localedata/locales/hu_HU: Likewise.
22579 * localedata/locales/hy_AM: Likewise.
22580 * localedata/locales/i18n: Likewise.
22581 * localedata/locales/ia_FR: Likewise.
22582 * localedata/locales/id_ID: Likewise.
22583 * localedata/locales/ig_NG: Likewise.
22584 * localedata/locales/ik_CA: Likewise.
22585 * localedata/locales/is_IS: Likewise.
22586 * localedata/locales/it_CH: Likewise.
22587 * localedata/locales/it_IT: Likewise.
22588 * localedata/locales/iu_CA: Likewise.
22589 * localedata/locales/ja_JP: Likewise.
22590 * localedata/locales/ka_GE: Likewise.
22591 * localedata/locales/kk_KZ: Likewise.
22592 * localedata/locales/kl_GL: Likewise.
22593 * localedata/locales/kn_IN: Likewise.
22594 * localedata/locales/ko_KR: Likewise.
22595 * localedata/locales/kok_IN: Likewise.
22596 * localedata/locales/ks_IN: Likewise.
22597 * localedata/locales/ks_IN@devanagari: Likewise.
22598 * localedata/locales/ku_TR: Likewise.
22599 * localedata/locales/kw_GB: Likewise.
22600 * localedata/locales/ky_KG: Likewise.
22601 * localedata/locales/lb_LU: Likewise.
22602 * localedata/locales/lg_UG: Likewise.
22603 * localedata/locales/li_BE: Likewise.
22604 * localedata/locales/li_NL: Likewise.
22605 * localedata/locales/lij_IT: Likewise.
22606 * localedata/locales/ln_CD: Likewise.
22607 * localedata/locales/lo_LA: Likewise.
22608 * localedata/locales/lt_LT: Likewise.
22609 * localedata/locales/lv_LV: Likewise.
22610 * localedata/locales/lzh_TW: Likewise.
22611 * localedata/locales/mag_IN: Likewise.
22612 * localedata/locales/mai_IN: Likewise.
22613 * localedata/locales/mg_MG: Likewise.
22614 * localedata/locales/mhr_RU: Likewise.
22615 * localedata/locales/mi_NZ: Likewise.
22616 * localedata/locales/mk_MK: Likewise.
22617 * localedata/locales/ml_IN: Likewise.
22618 * localedata/locales/mn_MN: Likewise.
22619 * localedata/locales/mni_IN: Likewise.
22620 * localedata/locales/mr_IN: Likewise.
22621 * localedata/locales/ms_MY: Likewise.
22622 * localedata/locales/mt_MT: Likewise.
22623 * localedata/locales/my_MM: Likewise.
22624 * localedata/locales/nan_TW: Likewise.
22625 * localedata/locales/nan_TW@latin: Likewise.
22626 * localedata/locales/nb_NO: Likewise.
22627 * localedata/locales/nds_DE: Likewise.
22628 * localedata/locales/nds_NL: Likewise.
22629 * localedata/locales/ne_NP: Likewise.
22630 * localedata/locales/nhn_MX: Likewise.
22631 * localedata/locales/niu_NU: Likewise.
22632 * localedata/locales/niu_NZ: Likewise.
22633 * localedata/locales/nl_AW: Likewise.
22634 * localedata/locales/nl_BE: Likewise.
22635 * localedata/locales/nl_NL: Likewise.
22636 * localedata/locales/nn_NO: Likewise.
22637 * localedata/locales/nr_ZA: Likewise.
22638 * localedata/locales/nso_ZA: Likewise.
22639 * localedata/locales/oc_FR: Likewise.
22640 * localedata/locales/om_ET: Likewise.
22641 * localedata/locales/om_KE: Likewise.
22642 * localedata/locales/or_IN: Likewise.
22643 * localedata/locales/os_RU: Likewise.
22644 * localedata/locales/pa_IN: Likewise.
22645 * localedata/locales/pa_PK: Likewise.
22646 * localedata/locales/pap_AW: Likewise.
22647 * localedata/locales/pap_CW: Likewise.
22648 * localedata/locales/pl_PL: Likewise.
22649 * localedata/locales/ps_AF: Likewise.
22650 * localedata/locales/pt_BR: Likewise.
22651 * localedata/locales/pt_PT: Likewise.
22652 * localedata/locales/quz_PE: Likewise.
22653 * localedata/locales/raj_IN: Likewise.
22654 * localedata/locales/ro_RO: Likewise.
22655 * localedata/locales/ru_RU: Likewise.
22656 * localedata/locales/ru_UA: Likewise.
22657 * localedata/locales/rw_RW: Likewise.
22658 * localedata/locales/sa_IN: Likewise.
22659 * localedata/locales/sat_IN: Likewise.
22660 * localedata/locales/sc_IT: Likewise.
22661 * localedata/locales/sd_IN: Likewise.
22662 * localedata/locales/sd_IN@devanagari: Likewise.
22663 * localedata/locales/se_NO: Likewise.
22664 * localedata/locales/sgs_LT: Likewise.
22665 * localedata/locales/shs_CA: Likewise.
22666 * localedata/locales/si_LK: Likewise.
22667 * localedata/locales/sid_ET: Likewise.
22668 * localedata/locales/sk_SK: Likewise.
22669 * localedata/locales/sl_SI: Likewise.
22670 * localedata/locales/sm_WS: Likewise.
22671 * localedata/locales/so_DJ: Likewise.
22672 * localedata/locales/so_ET: Likewise.
22673 * localedata/locales/so_KE: Likewise.
22674 * localedata/locales/so_SO: Likewise.
22675 * localedata/locales/sq_AL: Likewise.
22676 * localedata/locales/sq_MK: Likewise.
22677 * localedata/locales/sr_ME: Likewise.
22678 * localedata/locales/sr_RS: Likewise.
22679 * localedata/locales/sr_RS@latin: Likewise.
22680 * localedata/locales/ss_ZA: Likewise.
22681 * localedata/locales/st_ZA: Likewise.
22682 * localedata/locales/sv_FI: Likewise.
22683 * localedata/locales/sv_SE: Likewise.
22684 * localedata/locales/sw_KE: Likewise.
22685 * localedata/locales/sw_TZ: Likewise.
22686 * localedata/locales/szl_PL: Likewise.
22687 * localedata/locales/ta_IN: Likewise.
22688 * localedata/locales/ta_LK: Likewise.
22689 * localedata/locales/tcy_IN: Likewise.
22690 * localedata/locales/te_IN: Likewise.
22691 * localedata/locales/tg_TJ: Likewise.
22692 * localedata/locales/th_TH: Likewise.
22693 * localedata/locales/the_NP: Likewise.
22694 * localedata/locales/ti_ER: Likewise.
22695 * localedata/locales/ti_ET: Likewise.
22696 * localedata/locales/tig_ER: Likewise.
22697 * localedata/locales/tk_TM: Likewise.
22698 * localedata/locales/tl_PH: Likewise.
22699 * localedata/locales/tn_ZA: Likewise.
22700 * localedata/locales/to_TO: Likewise.
22701 * localedata/locales/tpi_PG: Likewise.
22702 * localedata/locales/tr_CY: Likewise.
22703 * localedata/locales/tr_TR: Likewise.
22704 * localedata/locales/ts_ZA: Likewise.
22705 * localedata/locales/tt_RU: Likewise.
22706 * localedata/locales/tt_RU@iqtelif: Likewise.
22707 * localedata/locales/ug_CN: Likewise.
22708 * localedata/locales/uk_UA: Likewise.
22709 * localedata/locales/unm_US: Likewise.
22710 * localedata/locales/ur_IN: Likewise.
22711 * localedata/locales/ur_PK: Likewise.
22712 * localedata/locales/uz_UZ: Likewise.
22713 * localedata/locales/uz_UZ@cyrillic: Likewise.
22714 * localedata/locales/ve_ZA: Likewise.
22715 * localedata/locales/vi_VN: Likewise.
22716 * localedata/locales/wa_BE: Likewise.
22717 * localedata/locales/wae_CH: Likewise.
22718 * localedata/locales/wal_ET: Likewise.
22719 * localedata/locales/wo_SN: Likewise.
22720 * localedata/locales/xh_ZA: Likewise.
22721 * localedata/locales/yi_US: Likewise.
22722 * localedata/locales/yo_NG: Likewise.
22723 * localedata/locales/yue_HK: Likewise.
22724 * localedata/locales/yuw_PG: Likewise.
22725 * localedata/locales/zh_CN: Likewise.
22726 * localedata/locales/zh_HK: Likewise.
22727 * localedata/locales/zh_SG: Likewise.
22728 * localedata/locales/zh_TW: Likewise.
22729 * localedata/locales/zu_ZA: Likewise.
22730
22731 2017-11-13 Florian Weimer <fweimer@redhat.com>
22732
22733 * support/next_to_fault.h, support/next_to_fault.c: New files.
22734 * support/Makefile (libsupport-routines): Add next_to_fault.
22735 * resolv/tst-inet_pton.c (struct next_to_fault)
22736 (next_to_fault_allocate, next_to_fault_free): Remove.
22737 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22738
22739 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22740
22741 * elf/dl-support.c: Include <dl-procruntime.c>.
22742 * include/link.h: Include <link_map.h>.
22743 * sysdeps/generic/dl-procruntime.c: New file.
22744 * sysdeps/generic/link_map.h: Likewise.
22745 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22746 the writable ld.so namespace.
22747
22748 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22749
22750 timezone: pacify GCC -Wstringop-truncation
22751 Problem reported by Martin Sebor in:
22752 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22753 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22754
22755 2017-11-12 Florian Weimer <fweimer@redhat.com>
22756
22757 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22758 tst-xreadlink.
22759 (tests): Add tst-xreadlink.
22760 * support/support.h (xstrndup): Declare.
22761 * support/xunistd.h (xunlink, xreadlink): Declare.
22762 * support/temp_file.h (support_create_temp_directory): Declare.
22763 * support/temp_file.c (support_create_temp_directory): New function.
22764 * support/support_chroot.c (support_chroot_create): Use it.
22765 * support/xreadlink.c: New file.
22766 * support/xstrndup.c: Likewise.
22767 * support/xunlink.c: Likewise.
22768 * support/tst-xreadlink.c: Likewise.
22769
22770 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22771
22772 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22773
22774 2017-11-11 Florian Weimer <fweimer@redhat.com>
22775
22776 [BZ #22409]
22777 [BZ #22412]
22778 * resolv/res_comp.c (printable_string, binary_hnok)
22779 (binary_leading_dash): New functions.
22780 (res_hnok): Reimplement using these functions and ns_name_pton.
22781 (res_ownok): Likewise.
22782 (res_mailok): Reimplement using printable_string, ns_name_pton and
22783 binary_hnok.
22784 (res_dnok): Reimplement using printable_string and ns_name_pton.
22785 * resolv/tst-res_hnok.c (tests): Add additional tests.
22786 (LETTERDIGITS, PRINTABLE): Define.
22787 (do_test): Adjust one_char results.
22788
22789 2017-11-11 Florian Weimer <fweimer@redhat.com>
22790
22791 [BZ #22413]
22792 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22793 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22794
22795 2017-11-11 Florian Weimer <fweimer@redhat.com>
22796
22797 * resolv/tst-ns_name_pton.c: New file.
22798 * resolv/Makefile (tests): Add tst-ns_name_pton.
22799 (tst-ns_name_pton): Link against libresolv.
22800
22801 2017-11-11 Florian Weimer <fweimer@redhat.com>
22802
22803 * resolv/tst-res_hnok.c: New file.
22804 * resolv/Makefile (tests): Add tst-res_hnok.
22805 (tst-res_hnok): Link against libresolv.
22806
22807 2017-11-11 Florian Weimer <fweimer@redhat.com>
22808
22809 * resolv/tst-resolv-network.c: Use test framework instead explicit
22810 main function.
22811
22812 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22813
22814 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22815 <jmp_buf-macros.h>.
22816 [!_ISOMAC] (STR_HELPER): New.
22817 [!_ISOMAC] (STR): Likewise.
22818 [!_ISOMAC] (TEST_SIZE): Likewise.
22819 [!_ISOMAC] (TEST_ALIGN): Likewise.
22820 [!_ISOMAC] (TEST_OFFSET): Likewise.
22821 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22822 field offsets of jmp_buf as well as sigjmp_buf.
22823 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22824 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22825 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22826 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22827 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22828 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22829 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22830 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22831 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22832 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22833 Likewise.
22834 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22835 Likewise.
22836 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22838 Likewise.
22839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22840 Likewise.
22841 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22842 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22843 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22844 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22845 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22846 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22847 Likewise.
22848 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22849 Likewise.
22850 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22851 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22852 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22853
22854 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22855
22856 * include/float.h
22857 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22858 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22859 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22860 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22861 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22862 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22863 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22864 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22865 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22866 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22867 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22868 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22869 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22870 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22871 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22872 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22873 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22874 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22875 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22876 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22877 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22878 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22879 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22880 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22881 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22882 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22883 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22884 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22885 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22886 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22887 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22888 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22889 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22890 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22891 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22892 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22893 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22894 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22895 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22896 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22897 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22898 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22899 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22900 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22901 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22902 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22903 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22904 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22905 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22906 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22907 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22908 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22909 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22910 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22911 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22912 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22913 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22914 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22915 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22916 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22917 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22918 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22919 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22920 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22921 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22922 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22923 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22924 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22925 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22926 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22927 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22928 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22929 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22930 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22931 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22932 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22933 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22934 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22935 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22936 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22937 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22938 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22939 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22940 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22941 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22942 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22943 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22944 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22945
22946 * stdlib/tst-strtod.h (F16): New macro.
22947 (F32): Likewise.
22948 (F64): Likewise.
22949 (F32X): Likewise.
22950 (F64X): Likewise.
22951 (F128X): Likewise.
22952 (IF_FLOAT16): Likewise.
22953 (IF_FLOAT32): Likewise.
22954 (IF_FLOAT64): Likewise.
22955 (IF_FLOAT32X): Likewise.
22956 (IF_FLOAT64X): Likewise.
22957 (IF_FLOAT128X): Likewise.
22958 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22959 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22960 (STRTOD_TEST_FOREACH): Likewise.
22961 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22962 (CHOOSE_f64): Likewise.
22963 (CHOOSE_f32x): Likewise.
22964 (CHOOSE_f64x): Likewise.
22965
22966 2017-11-07 Andreas Schwab <schwab@suse.de>
22967
22968 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22969
22970 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22971
22972 [BZ #22403]
22973 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22974 to be escaped.
22975 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22976 to be escaped.
22977
22978 2017-11-07 Claude Paroz <claude@2xlibre.net>
22979
22980 [BZ #22403]
22981 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22982 to be escaped.
22983 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22984 to be escaped.
22985 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22986 to be escaped.
22987
22988 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22989
22990 [BZ #22298]
22991 * nptl/allocatestack.c (allocate_stack): Check if
22992 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22993 __PTHREAD_MUTEX_HAVE_PREV is defined.
22994 * nptl/descr.h (pthread): Likewise.
22995 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22996 Likewise.
22997 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22998 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22999 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23000 * sysdeps/nptl/bits/thread-shared-types.h
23001 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23002 defines.
23003 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23004 of __WORDSIZE for internal layout.
23005 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23006 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23007 instead of __WORDSIZE whether to use an union for __spins and __list
23008 fields.
23009 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23010 case.
23011 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23012 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23013 defines.
23014 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23015 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23016 Likewise.
23017 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23018 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23019 Likewise.
23020 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23021 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23022 Likewise.
23023 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23024 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23025 Likewise.
23026 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23027 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23028 Likewise.
23029 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23030 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23031 Likewise.
23032 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23033 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23034 Likewise.
23035 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23036 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23037 Likewise.
23038 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23039 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23040 Likewise.
23041 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23042 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23043 Likewise.
23044 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23045 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23046 Likewise.
23047 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23048 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23049 Likewise.
23050 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23051 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23052 Likewise.
23053 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23054 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23055 Likewise.
23056
23057 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23058 New macros.
23059 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23060 checks for expected input type size.
23061 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23062 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23063 Likewise.
23064 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23065 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23066 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23067 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23068 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23069 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23070 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23071 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23072 superflous runtime assert check.
23073 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23074 Likewise.
23075 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23076 Likewise.
23077 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23078 Likewise.
23079 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23080 Likewise.
23081 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23082 Likewise.
23083 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23084 Likewise.
23085 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23086 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23087 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23088 Likewise.
23089 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23090 Likewise.
23091 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23092 Likewise.
23093 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23094 Likewise.
23095 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23096 Likewise.
23097 * nptl/pthread_attr_setinheritsched.c
23098 (__pthread_attr_setinheritsched): Likewise.
23099 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23100 Likewise.
23101 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23102 Likewise.
23103 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23104 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23105 __old_pthread_attr_setstack): Likewise.
23106 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23107 Likewise.
23108 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23109 Likewise.
23110 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23111 Likewise.
23112 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23113 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23114 Likewise.
23115 * nptl/tst-typesizes.c: Remove file.
23116
23117 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23118 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23119 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23120 checks for internal pthread_mutex_t offsets.
23121 * sysdeps/aarch64/nptl/pthread-offsets.h
23122 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23123 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23124 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23125 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23126 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23127 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23128 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23129 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23130 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23131 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23132 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23133 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23134 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23135 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23136 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23137 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23138 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23139 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23140
23141 2017-11-07 Florian Weimer <fweimer@redhat.com>
23142
23143 * bits/mman-linux.h: Move ...
23144 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23145 comment.
23146 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23147 outdated comment.
23148
23149 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23150
23151 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23152 Redefine STRNLEN as __strnlen_power8.
23153
23154 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23155
23156 * signal/sighold.c (sighold): Optimize implementation.
23157
23158 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23159 __NR_rt_sigqueueinfo.
23160
23161 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23162 __sigtimedwait.
23163 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23164 assume __NR_rt_sigtimedwait.
23165 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23166 and add LIBC_CANCEL_HANDLED for cancellation marking.
23167 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23168
23169 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23170 (sysdeps_routines): Add memchr_noneon.
23171 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23172 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23173 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23174 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23175 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23176 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23177 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23178
23179 * sysdeps/arm/arm-ifunc.h: New file.
23180 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23181 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23182 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23183 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23184 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23185 (__memcpy_neon): Avoid create hidden alias.
23186 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23187 (__memcpy_vfp): Likewise.
23188 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23189 (sysdep_routines): Add memcpy_arm.
23190 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23191
23192 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23193
23194 [BZ #22362]
23195 * Makerules (make-link-multidir): New.
23196 * config.make.in (multidir): New.
23197 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23198 * configure: Regenerated.
23199 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23200 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23201 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23202 New target.
23203
23204 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23205
23206 [BZ #22402]
23207 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23208 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23209
23210 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23211
23212 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23213 to be escaped.
23214
23215 2017-11-04 Florian Weimer <fweimer@redhat.com>
23216
23217 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23218
23219 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23220
23221 * math/math.h [__HAVE_DISTINCT_FLOAT16
23222 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23223 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23224 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23225 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23226 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23227 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23228 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23229 (__MATH_TG_F32): New macro.
23230 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23231 (__MATH_TG_F64X): Likewise.
23232 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23233 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23234
23235 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23236
23237 * po/de.po: Update translations.
23238 * po/ru.po: Likewise.
23239
23240 2017-11-03 Florian Weimer <fweimer@redhat.com>
23241
23242 * manual/filesys.texi (Hard Links): Document linkat.
23243
23244 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23245
23246 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23247 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23248 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23249 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23250 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23251 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23252 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23253 the same as _Float128.
23254 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23255 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23256 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23257
23258 * stdlib/stdlib.h
23259 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23260 Declare.
23261 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23262 Likewise.
23263 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23264 Likewise.
23265 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23266 (strtof32x): Likewise.
23267 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23268 (strtof64x): Likewise.
23269 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23270 (strtof128x): Likewise.
23271 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23272 (strfromf16): Likewise.
23273 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23274 (strfromf32): Likewise.
23275 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23276 (strfromf64): Likewise.
23277 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23278 (strfromf32x): Likewise.
23279 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23280 (strfromf64x): Likewise.
23281 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23282 (strfromf128x): Likewise.
23283 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23284 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23285 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23286 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23287 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23288 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23289
23290 2017-11-03 Richard Henderson <rth@twiddle.net>
23291
23292 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23293
23294 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23295
23296 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23297
23298 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23299
23300 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23301 DT_TLSDESC_GOT initialization.
23302 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23303 (_dl_tlsdesc_resolve_hold): Likewise.
23304 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23305 (_dl_tlsdesc_resolve_hold): Likewise.
23306 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23307 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23308
23309 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23310
23311 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23312
23313 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23314
23315 [BZ #18572]
23316 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23317 non-lazily for R_ARM_TLS_DESC.
23318
23319 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23320
23321 [BZ #17078]
23322 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23323 R_ARM_TLS_DESC case.
23324 (elf_machine_lazy_rel): Remove the prelink check.
23325
23326 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23327
23328 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23329 DT_TLSDESC_GOT initialization.
23330 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23331 (_dl_tlsdesc_resolve_rela): Likewise.
23332 (_dl_tlsdesc_resolve_hold): Likewise.
23333 (_dl_tlsdesc_undefweak): Remove ldar.
23334 (_dl_tlsdesc_dynamic): Likewise.
23335 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23336 (_dl_tlsdesc_resolve_rela): Likewise.
23337 (_dl_tlsdesc_resolve_hold): Likewise.
23338 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23339 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23340 (_dl_tlsdesc_resolve_rela): Likewise.
23341 (_dl_tlsdesc_resolve_hold): Likewise.
23342
23343 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23344
23345 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23346 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23347
23348 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23349
23350 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23351 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23352
23353 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23354
23355 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23356 Declare.
23357 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23358 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23359 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23360 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23361 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23362 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23363 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23364 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23365 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23366 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23367 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23368
23369 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23370
23371 [BZ #22382]
23372 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23373 * localedata/locales/tpi_PG: Add standard header.
23374
23375 2017-11-02 Florian Weimer <fweimer@redhat.com>
23376
23377 test-errno-linux: quotactl can fail with EPERM in containers.
23378 * sysdeps/unix/sysv/linux/test-errno-linux.c
23379 (LIST, LIST_FORWARD): New macros.
23380 (check_error_in_list): New function.
23381 (test_wrp_rv): Accept list of permitted error codes.
23382 (test_wrp_rv2): Remove.
23383 (test_wrp): Call test_wrp_rv with list of error codes.
23384 (test_wrp2): Accept list of error codes.
23385 (do_test): Adjust. Allow EPERM for quotactl.
23386
23387 2017-11-02 Florian Weimer <fweimer@redhat.com>
23388
23389 * stdio-common/bug16.c (do_test): Use array_length.
23390 * stdio-common/errlist.c (_sys_nerr): Likewise.
23391 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23392 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23393 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23394 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23395 (do_test): Use array_length.
23396 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23397 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23398 * stdio-common/tst-printf-round.c (do_test): Likewise.
23399 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23400 (CHECK): Use array_length.
23401 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23402 * stdio-common/tstscanf.c (main): Likewise.
23403 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23404
23405 2017-11-02 Florian Weimer <fweimer@redhat.com>
23406
23407 Add array_length and array_end macros.
23408 * include/array_length.h: New file.
23409
23410 2017-11-02 Florian Weimer <fweimer@redhat.com>
23411
23412 [BZ #22332]
23413 * posix/tst-glob-tilde.c (do_noescape): New variable.
23414 (one_test): Process it.
23415 (do_test): Set do_noescape. Add unescaping test case.
23416
23417 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23418
23419 * math/complex.h
23420 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23421 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23422 with appropriate macros defined and undefined.
23423 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23424 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23425 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23426 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23427 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23428 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23429 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23430 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23431 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23432 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23433
23434 * math/complex.h
23435 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23436 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23437 that for long double. Do not condition define and undefine of
23438 _Mdouble_complex_ on [__CFLOAT128].
23439
23440 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23441
23442 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23443 of <sysdeps/generic/sysdep.h>.
23444 (ALIGNARG): Removed.
23445 (ASM_SIZE_DIRECTIVE): Likewise.
23446 (ENTRY): Likewise.
23447 (END): Likewise.
23448 (ENTRY_CHK): Likewise.
23449 (END_CHK): Likewise.
23450 (syscall_error): Likewise.
23451 (mcount): Likewise.
23452 (PSEUDO_END): Likewise.
23453 (L): Likewise.
23454 (atom_text_section): Likewise.
23455 * sysdeps/x86/sysdep.h: New file.
23456 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23457 of <sysdeps/generic/sysdep.h>.
23458 (ALIGNARG): Removed.
23459 (ASM_SIZE_DIRECTIVE): Likewise.
23460 (ENTRY): Likewise.
23461 (END): Likewise.
23462 (ENTRY_CHK): Likewise.
23463 (END_CHK): Likewise.
23464 (syscall_error): Likewise.
23465 (mcount): Likewise.
23466 (PSEUDO_END): Likewise.
23467 (L): Likewise.
23468 (atom_text_section): Likewise.
23469
23470 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23471
23472 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23473 category of LC_CTYPE set to "i18n:2012".
23474 * localedata/locales/i18n_ctype: Regenerate.
23475
23476 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23477
23478 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23479 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23480 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23481 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23482
23483 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23484 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23485 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23486 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23487
23488 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23489
23490 * math/complex.h
23491 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23492 New macro.
23493 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23494 Likewise.
23495 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23496 Likewise.
23497 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23498 (CMPLXF32X): Likewise.
23499 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23500 (CMPLXF64X): Likewise.
23501 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23502 (CMPLXF128X): Likewise.
23503
23504 * math/math.h
23505 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23506 (__MATH_EVAL_FMT2): Define to add 0.0f.
23507
23508 2017-10-31 Alan Modra <amodra@gmail.com>
23509
23510 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23511 include sysdep.h.
23512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23513 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23526 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23527 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23528 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23529 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23530 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23531 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23532 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23533 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23534 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23535 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23536 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23537 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23538 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23539 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23540 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23541 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23542 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23543 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23544 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23545 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23546 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23547 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23548 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23549 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23550 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23551 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23552 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23553 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23554 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23555 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23556 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23557 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23558 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23559 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23560 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23561 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23562 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23563 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23564 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23565 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23566 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23567 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23568 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23569 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23570 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23571 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23572 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23573 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23574 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23575 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23576 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23577 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23578 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23579 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23580 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23581
23582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23583 include sysdep.h and math_ldbl_opt.h.
23584
23585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23586 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23588 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23593 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23596 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23599 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23604 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23607 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23610 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23611
23612 2017-10-31 Alan Modra <amodra@gmail.com>
23613
23614 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23615 string/strncase_l.c, not string/strncase.c.
23616 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23617 (libc_hidden_def): Redefine.
23618
23619 2017-10-31 Alan Modra <amodra@gmail.com>
23620
23621 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23622 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23623 (__strcasecmp): Don't define.
23624
23625 2017-10-31 Alan Modra <amodra@gmail.com>
23626
23627 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23628 IS_IN (libc).
23629 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23630 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23631 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23632
23633 2017-10-31 Alan Modra <amodra@gmail.com>
23634
23635 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23636 USE_AS_STPNCPY.
23637
23638 2017-10-31 Alan Modra <amodra@gmail.com>
23639
23640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23641 Redefine only when SHARED.
23642
23643 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23644
23645 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23646 Include <bits/math-finite.h> with appropriate macros defined and
23647 undefined.
23648 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23649 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23650 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23651 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23652 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23653
23654 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23655 [!_Mlong_double_] (_Mlong_double_): Likewise.
23656 [!_Mfloat16_] (_Mfloat16_): Likewise.
23657 [!_Mfloat32_] (_Mfloat32_): Likewise.
23658 [!_Mfloat64_] (_Mfloat64_): Likewise.
23659 [!_Mfloat128_] (_Mfloat128_): Likewise.
23660 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23661 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23662 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23663 (_Mdouble_): Define without indirection through those macros.
23664 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23665 [!_Mfloat128_] (_Mfloat128_): Likewise.
23666 [_Mlong_double_] (_Mlong_double_): Likewise.
23667 (_Mdouble_): Define without indirection through those macros.
23668 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23669 not add -D_Mlong_double_=double.
23670 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23671 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23672
23673 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23674
23675 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23676
23677 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23678
23679 * sysdeps/x86/libc-start.c: Reformat.
23680
23681 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23682
23683 [BZ #22353]
23684 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23685 (1): Renamed to ...
23686 (L(Src0)): This.
23687 (L(Src1)): New.
23688 (L(Src2)): Likewise.
23689 (L(1)): Renamed to ...
23690 (L(Src3)): This.
23691
23692 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23693
23694 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23695 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23696 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23697 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23698 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23699 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23700 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23701 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23702 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23703 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23704 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23705 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23706 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23707 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23708 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23709 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23710 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23711 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23712 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23713 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23714 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23715 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23716 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23717 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23718 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23719 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23720 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23721 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23722 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23723 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23724 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23725 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23726 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23727 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23728 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23729 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23730 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23731 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23732 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23733 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23734 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23735 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23736 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23737 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23738 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23739 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23740 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23741 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23742 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23743 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23744 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23745 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23746 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23747 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23748 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23749 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23750 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23751 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23752 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23753 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23754 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23755 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23756 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23757 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23758 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23759 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23760
23761 2017-10-30 Florian Weimer <fweimer@redhat.com>
23762
23763 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23764 always defined.
23765 * io/tst-mkdirat.c (do_test): Likewise.
23766 * io/tst-mkfifoat.c (do_test): Likewise.
23767 * io/tst-mknodat.c (do_test): Likewise.
23768 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23769 * locale/programs/locale.c (select_dirs): Likewise.
23770 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23771 * posix/bug-glob2.c (my_readdir): Likewise.
23772 * posix/tst-dir.c (main): Likewise.
23773 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23774 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23775
23776 2017-10-30 Florian Weimer <fweimer@redhat.com>
23777
23778 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23779 just __USE_GNU.
23780
23781 2017-10-30 Florian Weimer <fweimer@redhat.com>
23782
23783 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23784 Convert to support/test-driver.c.
23785 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23786 New macro parameters.
23787 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23788 * posix/tst-gnuglob.c: New file.
23789 * posix/tst-gnuglob64.c: Likewise.
23790 * posix/Makefile (tests): Add tst-gnuglob64.
23791
23792 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23793
23794 [BZ #19485]
23795 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23796 and use a better translation for March in “mon”.
23797 * localedata/locales/csb_PL: Use more ASCII to improve the
23798 readability of the source.
23799
23800 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23801
23802 [BZ #13953]
23803 * localedata/locales/km_KH: Use ASCII as much
23804 as possible for better readability of the source and
23805 remove useless comments.
23806 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23807 was commented out and apparently wrong anyway because it was
23808 using Lao characters. If Buddhist era should be used
23809 for km_KH, a native speaker should write the correct formaat
23810 for Khmer.
23811 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23812 (According to CLDR, the first weekday for Cambodia is Sunday).
23813 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23814 (These were using Lao characters which must be wrong. If we get
23815 the correct data from a native speaker, we could add it back, until
23816 then it is better not to have name_mr and name_mrs at all than
23817 having it wrong).
23818
23819 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23820
23821 * locale/loadlocale.c: Correct size of
23822 _nl_value_type_LC_<category> arrays.
23823
23824 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23825
23826 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23827 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23828 with appropriate macros defined and undefined.
23829 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23830 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23831 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23832 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23833 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23834
23835 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23836
23837 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23838 "-O2 -march=i586".
23839
23840 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23841
23842 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23843 with lowercase letters to make it agree with CLDR.
23844
23845 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23846
23847 [BZ #15260]
23848 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23849 first letters of yesstr and nostr in yesexpr and noexpr,
23850 not for the full words.
23851 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23852 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23853 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23854 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23855 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23856 first letters of yesstr and nostr in yesexpr and noexpr,
23857 until now only English was matched in yesexpr and noexpr.
23858 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23859 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23860 fil but not for tl. As tl and fil are very similar, using fil
23861 is probably better than using English.
23862
23863 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23864
23865 [BZ #21706]
23866 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23867 in yesstr and nostr.
23868
23869 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23870
23871 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23872 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23873 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23874 Likewise.
23875 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23876 Likewise.
23877 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23878 Likewise.
23879 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23880 Likewise.
23881 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23882 (SNANF128X): Likewise.
23883
23884 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23885 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23886 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23887 (HUGE_VAL_F32): Likewise.
23888 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23889 (HUGE_VAL_F64): Likewise.
23890 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23891 (HUGE_VAL_F32X): Likewise.
23892 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23893 (HUGE_VAL_F64X): Likewise.
23894 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23895 (HUGE_VAL_F128X): Likewise.
23896
23897 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23898
23899 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23900 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23901 for the br_FR locale.
23902
23903 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23904
23905 [BZ #21706]
23906 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23907
23908 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23909
23910 * locale/programs/record-status.h: Define globals, and function
23911 prototypes. Move function bodies...
23912 * locale/programs/record-status.c: ... to here. New file.
23913 * iconv/Makefile (iconv_prog-modules): Add record-status.
23914 * locale/Makefile (lib-modules): Likewise.
23915 * iconv/iconv_prog.c: Remove verbose.
23916 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23917 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23918 record a warning about ASCII compatibility.
23919 * locale/programs/ld-monetary.c (monetary_finish): If
23920 warn_int_curr_symbol is true then record a warning about the symbol
23921 not being in our ISO 4217 list.
23922 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23923 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23924 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23925 (OPT_NO_WARN): Define.
23926 (OPT_WARN): Define.
23927 (options): Add entry for --no-warnings, and --warnings.
23928 (set_warnings): New function to enable/disable warnings.
23929 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23930 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23931 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23932 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23933 Pass flags to generate_locale.
23934 (generate_locale): Accept new flag argument and pass it to localedef
23935 invocation.
23936 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23937 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23938
23939 * localedata/Makefile (test-input-data): Use full file name.
23940 * localedata/da_DK.in: Rename to...
23941 * localedata/da_DK.ISO-8859-1.in: ...this.
23942 * localedata/de_DE.in: Rename to...
23943 * localedata/de_DE.ISO-8859-1.in: ...this.
23944 * localedata/en_US.in: Rename to...
23945 * localedata/en_US.ISO-8859-1.in: ...this.
23946 * localedata/fr_FR.in: Rename to...
23947 * localedata/fr_FR.UTF-8.in: ... this.
23948 * localedata/hr_HR.in: Rename to...
23949 * localedata/hr_HR.ISO-8859-2.in: ...this.
23950 * localedata/hu_HU.in: Rename to...
23951 * localedata/hu_HU.UTF-8.in: ...this.
23952 * localedata/si_LK.in: Rename to...
23953 * localedata/si_LK.UTF-8.in: ...this.
23954 * localedata/sv_SE.in: Rename to...
23955 * localedata/sv_SE.ISO-8859-1.in: ...this.
23956 * localedata/tr_TR.in: Rename to...
23957 * localedata/tr_TR.UTF-8.in: ...this.
23958 * localedata/uk_UA.in: Rename to...
23959 * localedata/uk_UA.UTF-8.in: ...this.
23960 * localedata/sort-test.sh: Test file is locale name with the
23961 suffix.
23962
23963 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23964 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23965 file.
23966 * localedata/locales/i18n_ctype: Regenerate.
23967 * localedata/locales/tr_TR: Likewise.
23968 * localedata/locales/translit_circle: Likewise.
23969 * localedata/locales/translit_cjk_compat: Likewise.
23970 * localedata/locales/translit_combining: Likewise.
23971 * localedata/locales/translit_compat: Likewise.
23972 * localedata/locales/translit_font: Likewise.
23973 * localedata/locales/translit_fraction: Likewise.
23974
23975 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23976
23977 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23978 lxvd2x/stxvd2x with lvx/stvx.
23979 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23980
23981 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23982
23983 * include/alloc_buffer.h: Replace "if if " with "if " in
23984 comments.
23985 * sysdeps/mips/memcpy.S: Likkewise.
23986 * sysdeps/mips/memset.S: Likewise.
23987 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23988 Likewise.
23989 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23990 Likewise.
23991 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23992 Likewise.
23993
23994 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23995
23996 [BZ #15261]
23997 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23998 yesexpr and noexpr.
23999 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24000 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24001 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24002 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24003 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24004 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24005 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24006
24007 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24008
24009 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24010 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24011 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24012 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24013 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24014 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24015 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24016 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24017 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24018 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24019 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24020 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24021
24022 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24023
24024 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24025 as possible for better readability of the source.
24026 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24027 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24028 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24029 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24030 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24031 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24032 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24033 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24034 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24035 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24036 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24037 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24038 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24039 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24040 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24041 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24042 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24043 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24044 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24045 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24046 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24047 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24048 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24049 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24050 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24051 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24052 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24053 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24054 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24055 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24056 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24057 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24058 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24059 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24060 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24061 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24062 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24063 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24064 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24065 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24066 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24067 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24068 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24069 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24070 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24071 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24072 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24073 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24074 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24075 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24076 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24077 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24078 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24079 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24080 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24081 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24082 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24083 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24084 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24085 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24086 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24087 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24088 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24089 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24090 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24091 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24092 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24093 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24094 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24095 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24096 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24097 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24098 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24099 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24100 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24101 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24102 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24103 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24104 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24105 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24106 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24107 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24108 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24109 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24110 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24111 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24112 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24113 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24114 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24115 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24116 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24117 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24118 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24119 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24120 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24121 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24122 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24123 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24124 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24125 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24126 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24127 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24128 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24129 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24130 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24131 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24132 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24133 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24134 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24135 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24136 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24137 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24138 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24139 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24140 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24141 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24142 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24143 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24144 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24145 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24146 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24147 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24148 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24149 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24150 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24151 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24152 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24153 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24154 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24155 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24156 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24157 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24158 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24159 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24160 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24161 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24162 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24163 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24164 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24165 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24166 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24167 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24168 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24169 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24170 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24171 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24172 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24173 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24174 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24175 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24176 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24177 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24178 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24179 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24180 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24181 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24182 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24183 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24184 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24185 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24186 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24187 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24188 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24189 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24190 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24191 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24192 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24193 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24194 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24195 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24196 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24197 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24198 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24199 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24200
24201 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24202
24203 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24204 (Use first letters of yesstr and nostr correctly instead of using
24205 full words).
24206
24207 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24208
24209 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24210 (Use first letters of yesstr and nostr correctly).
24211
24212 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24213
24214 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24215 also check for the first characters of yesstr and nostr.
24216 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24217 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24218
24219 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24220
24221 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24222 also check for Chinese characters.
24223
24224 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24225
24226 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24227 match also for the contents of yesstr and nostr. As the first letter
24228 of yesstr and nostr is equal, checking only for the first letter
24229 is not enough.
24230
24231 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24232
24233 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24234 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24235
24236 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24237
24238 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24239 of main contributor.
24240
24241 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24242
24243 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24244 instead of using English.
24245
24246 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24247
24248 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24249 by including the first letters of nostr and yesexpr in the regexp.
24250 Also make it more readable by using ASCII where possible.
24251
24252 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24253
24254 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24255 the first letter of nostr in the regexp. It agrees with CLDR now.
24256 Also make it more readable by using ASCII where possible.
24257
24258 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24259
24260 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24261 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24262 these strings contain a U+17D6 (which somewhat looks like a colon)
24263 instead of a real colon to separate the full words for “yes”
24264 and “no” from the single letter responses.
24265
24266 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24267
24268 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24269 it agree with CLDR (include the first letter of yesstr).
24270 Also make it more readable by using ASCII where possible.
24271
24272 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24273
24274 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24275 and improve yesexpr and noexpr. The yesstr and nostr apparently
24276 came from CLDR. And CLDR has a bug there: these strings contain
24277 a U+0903 (which looks like a colon) instead of a real colon
24278 to separate the full words for “yes” and “no” from the single
24279 letter responses.
24280
24281 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24282
24283 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24284 letters of the full yesstr and nostr in yesexpr and noexpr.
24285
24286 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24287
24288 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24289 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24290 * localedata/locales/an_ES: Make source more readable by using ASCII
24291 where possible.
24292
24293 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24294
24295 [BZ #20952]
24296 * localedata/locales/yuw_PG: New file.
24297 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24298 * locale/iso-639.def: Add Yau (Uruwa).
24299
24300 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24301
24302 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24303
24304 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24305
24306 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24307 (__libc_realloc): Likewise.
24308 (_mid_memalign): Likewise.
24309 (__libc_calloc): Likewise.
24310
24311 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24312
24313 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24314 by adding the generic +1 and -0 as in all other locales.
24315 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24316 day names and make it more readable by using ASCII where possible.
24317
24318 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24319
24320 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24321 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24322
24323 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24324
24325 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24326 WNOHANG in waitpid call.
24327
24328 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24329
24330 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24331 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24332
24333 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24334 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24335 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24336 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24337 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24338 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24339 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24340 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24341 variables.
24342
24343 2017-10-23 Michael Collison <michael.collison@arm.com>
24344
24345 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24346 with __builtin_sqrt.
24347 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24348 with __builtin_sqrtf.
24349 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24350 with __builtin_ceil.
24351 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24352 with __builtin_ceilf.
24353 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24354 with __builtin_floor.
24355 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24356 with __builtin_floorf.
24357 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24358 with __builtin_fma.
24359 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24360 with __builtin_fmaf.
24361 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24362 with __builtin_fmax.
24363 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24364 with __builtin_fmaxf.
24365 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24366 with __builtin_fmin.
24367 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24368 with __builtin_fminf.
24369 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24370 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24371 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24372 with builtin_rint and conversion to int.
24373 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24374 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24375 with builtin_llround.
24376 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24377 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24378 with builtin_rint and conversion to long int.
24379 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24380 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24381 with builtin_lround.
24382 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24383 with builtin_lroundf.
24384 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24385 statements with __builtin_nearbyint.
24386 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24387 statements with __builtin_nearbyintf.
24388 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24389 with __builtin_rint.
24390 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24391 with __builtin_rintf.
24392 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24393 with __builtin_round.
24394 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24395 with __builtin_roundf.
24396 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24397 with __builtin_trunc.
24398 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24399 with __builtin_truncf.
24400 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24401 and s_l[l]round[f].c too.
24402
24403 2017-10-23 Alan Modra <amodra@gmail.com>
24404
24405 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24406 Adjust stack after restoring regs. Add missing LR cfi_restore.
24407
24408 2017-10-23 Alan Modra <amodra@gmail.com>
24409
24410 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24411 Move LR save and frame setup/teardown and LR restore to
24412 immediately around memset call. Provide cfi.
24413
24414 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24415
24416 * sysdeps/i386/fpu/e_powf.S: Removed.
24417 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24418 * sysdeps/i386/fpu/w_powf.c: Likewise.
24419 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24420 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24421 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24422 Add e_powf-sse2.
24423 (CFLAGS-e_powf-sse2.c): New.
24424 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24425 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24426
24427 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24428
24429 * sysdeps/i386/fpu/e_log2f.S: Removed.
24430 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24431 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24432 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24433 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24434 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24435 Add e_log2f-sse2.
24436 (CFLAGS-e_log2f-sse2.c): New.
24437 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24438 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24439
24440 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24441
24442 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24443 Add e_powf-fma.
24444 (CFLAGS-e_powf-fma.c): New.
24445 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24446 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24447
24448 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24449
24450 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24451 Add e_log2f-fma.
24452 (CFLAGS-e_log2f-fma.c): New.
24453 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24454 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24455
24456 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24457
24458 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24459 Add e_logf-fma.
24460 (CFLAGS-e_logf-fma.c): New.
24461 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24462 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24463
24464 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24465
24466 * sysdeps/i386/fpu/e_logf.S: Removed.
24467 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24468 * sysdeps/i386/fpu/w_logf.c: Likewise.
24469 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24470 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24471 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24472 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24473 Add e_logf-sse2.
24474 (CFLAGS-e_logf-sse2.c): New.
24475 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24476 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24477
24478 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24479
24480 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24481 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24482 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24483 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24484 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24485 Add e_exp2f-sse2.
24486 (CFLAGS-e_exp2f-sse2.c): New.
24487 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24488 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24489
24490 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24491
24492 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24493 Add e_exp2f-fma.
24494 (CFLAGS-e_exp2f-fma.c): New.
24495 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24496 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24497
24498 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24499
24500 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24501 * sysdeps/i386/fpu/e_expf.S: Likewise.
24502 * sysdeps/i386/fpu/math_errf.c: Likewise.
24503 * sysdeps/i386/fpu/w_expf.c: Likewise.
24504 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24505 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24506 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24507 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24508 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24509 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24510 Remove e_expf-ia32.
24511 (CFLAGS-e_expf-sse2.c): New.
24512 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24513 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24514
24515 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24516
24517 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24518 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24519 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24520 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24521 e_expf.c.
24522 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24523 New.
24524 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24525 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24526 Renamed to ...
24527 (__redirect_expf): This.
24528 (SYMBOL_NAME): Changed to expf.
24529 (__ieee754_expf): Renamed to ...
24530 (__expf): This.
24531 (__GI___expf): This.
24532 (__ieee754_expf): Add strong_alias.
24533 (__expf_finite): Likewise.
24534 (__expf): New.
24535 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24536
24537 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24538
24539 [BZ #22332]
24540 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24541 unescaping.
24542
24543 2017-10-21 Florian Weimer <fweimer@redhat.com>
24544
24545 * posix/Makefile (tests): Add tst-glob-tilde.
24546 (tests-special): Add tst-glob-tilde-mem.out
24547 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24548 (tst-glob-tilde-mem.out): Add mtrace check.
24549 * posix/tst-glob-tilde.c: New file.
24550
24551 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24552
24553 * bits/floatn-common.h: New file.
24554 * math/Makefile (headers): Add bits/floatn-common.h.
24555 * bits/floatn.h: Include <bits/floatn-common.h>.
24556 * sysdeps/ia64/bits/floatn.h: Likewise.
24557 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24558 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24559 * sysdeps/powerpc/bits/floatn.h: Likewise.
24560 * sysdeps/x86/bits/floatn.h: Likewise.
24561
24562 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24563
24564 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24565 indicates whether compiler emits an warning for alias for
24566 functions with incompatible types.
24567
24568 [BZ #22273]
24569 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24570 the auxiliary process is terminated by a signal before calling _exit
24571 or execve.
24572
24573 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24574
24575 [BZ #21265]
24576 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24577 New.
24578 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24579 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24580 and bit_arch_XSAVEC_Usable if needed.
24581 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24582 and bit_arch_Use_dl_runtime_resolve_opt.
24583 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24584 Removed.
24585 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24586 (bit_arch_Prefer_No_AVX512): Updated.
24587 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24588 (bit_arch_XSAVEC_Usable): New.
24589 (STATE_SAVE_OFFSET): Likewise.
24590 (STATE_SAVE_MASK): Likewise.
24591 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24592 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24593 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24594 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24595 (index_arch_XSAVEC_Usable): New.
24596 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24597 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24598 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24599 is enabled.
24600 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24601 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24602 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24603 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24604 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24605 _dl_runtime_resolve_xsavec.
24606 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24607 Removed.
24608 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24609 instead of VEC_SIZE.
24610 (REGISTER_SAVE_BND0): Removed.
24611 (REGISTER_SAVE_BND1): Likewise.
24612 (REGISTER_SAVE_BND3): Likewise.
24613 (REGISTER_SAVE_RAX): Always defined to 0.
24614 (VMOV): Removed.
24615 (_dl_runtime_resolve_avx): Likewise.
24616 (_dl_runtime_resolve_avx_slow): Likewise.
24617 (_dl_runtime_resolve_avx_opt): Likewise.
24618 (_dl_runtime_resolve_avx512): Likewise.
24619 (_dl_runtime_resolve_avx512_opt): Likewise.
24620 (_dl_runtime_resolve_sse): Likewise.
24621 (_dl_runtime_resolve_sse_vex): Likewise.
24622 (USE_FXSAVE): New.
24623 (_dl_runtime_resolve_fxsave): Likewise.
24624 (USE_XSAVE): Likewise.
24625 (_dl_runtime_resolve_xsave): Likewise.
24626 (USE_XSAVEC): Likewise.
24627 (_dl_runtime_resolve_xsavec): Likewise.
24628 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24629 Removed.
24630 (_dl_runtime_resolve_avx512_opt): Likewise.
24631 (_dl_runtime_resolve_avx): Likewise.
24632 (_dl_runtime_resolve_avx_opt): Likewise.
24633 (_dl_runtime_resolve_sse): Likewise.
24634 (_dl_runtime_resolve_sse_vex): Likewise.
24635 (_dl_runtime_resolve_fxsave): New.
24636 (_dl_runtime_resolve_xsave): Likewise.
24637 (_dl_runtime_resolve_xsavec): Likewise.
24638
24639 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24640
24641 [BZ #22320]
24642 CVE-2017-15670
24643 * posix/glob.c (__glob): Fix one-byte overflow.
24644
24645 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24646
24647 * malloc/malloc.c (sysdep-cancel.h): Add include.
24648
24649 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24650
24651 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24652
24653 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24654
24655 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24656 (tests): Remove $(objpfx)ga_test depdendency.
24657 * resolv/ga_test.c: Remove file.
24658
24659 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24660
24661 [BZ #18812]
24662 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24663 * localedata/locales/kab_DZ: New file.
24664
24665 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24666
24667 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24668 _dl_relocate_static_pie instead of _dl_start to compute load
24669 address in static PIE.
24670
24671 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24672
24673 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24674
24675 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24676
24677 [BZ #13605]
24678 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24679 * localedata/locales/shn_MM: New file.
24680
24681 2017-10-20 Florian Weimer <fweimer@redhat.com>
24682
24683 [BZ #22321]
24684 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24685 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24686 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24687 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24688 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24689 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24690
24691 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24692
24693 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24694
24695 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24696
24697 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24698
24699 [BZ #22322]
24700 * sysdeps/mips/bits/long-double.h: Move to ....
24701 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24702
24703 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24704
24705 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24706
24707 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24708 H.J. Lu <hongjiu.lu@intel.com>
24709
24710 [BZ #22299]
24711 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24712 GLRO(dl_platform) to NULL.
24713 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24714 (modules-names): Add tst-platformmod-1 and
24715 x86_64/tst-platformmod-2.
24716 (CFLAGS-tst-platform-1.c): New.
24717 (CFLAGS-tst-platformmod-1.c): Likewise.
24718 (CFLAGS-tst-platformmod-2.c): Likewise.
24719 (LDFLAGS-tst-platformmod-2.so): Likewise.
24720 ($(objpfx)tst-platform-1): Likewise.
24721 ($(objpfx)tst-platform-1.out): Likewise.
24722 (tst-platform-1-ENV): Likewise.
24723 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24724 * sysdeps/x86_64/tst-platform-1.c: New file.
24725 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24726 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24727
24728 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24729
24730 [BZ #13994]
24731 * locale/iso-639.def: Add Karbi.
24732 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24733 * localedata/locales/mjw_IN: New file.
24734
24735 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24736
24737 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24738 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24739 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24740 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24741 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24742 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24743 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24744 <bits/floatn.h>.
24745 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24746 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24747 * manual/math.texi (Mathematics): Document additional architecture
24748 support for _Float128.
24749 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24750 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24751 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24752 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24753 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24754 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24755 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24756 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24757 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24758 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24759 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24760 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24761 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24762 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24763 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24764
24765 2017-10-18 Renlin Li <renlin.li@arm.com>
24766
24767 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24768 _DYNAMIC symbol to calculate load address.
24769
24770 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24771
24772 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24773 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24774 summary bits.
24775 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24776 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24777
24778 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24779
24780 [BZ #16777]
24781 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24782 and improve readability by using more ASCII.
24783 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24784 and improve readability by using more ASCII.
24785
24786 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24787
24788 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24789 not all targets support atomics on bool.
24790
24791 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24792
24793 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24794 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24795 __f128.
24796 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24797 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24798 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24799 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24800 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24801 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24802
24803 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24804
24805 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24806 defines.
24807
24808 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24809
24810 [BZ #22159]
24811 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24812 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24813 (do_check_remalloced_chunk): Fix build bug.
24814 (do_check_malloc_state): Add assert that checks arena->top.
24815 (malloc_consolidate): Remove initialization.
24816 (int_mallinfo): Remove call to malloc_consolidate.
24817 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24818
24819 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24820
24821 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24822 (have_fastchunks): Remove.
24823 (clear_fastchunks): Remove.
24824 (set_fastchunks): Remove.
24825 (malloc_state): Add have_fastchunks.
24826 (malloc_init_state): Use have_fastchunks.
24827 (do_check_malloc_state): Remove incorrect invariant checks.
24828 (_int_malloc): Use have_fastchunks.
24829 (_int_free): Likewise.
24830 (malloc_consolidate): Likewise.
24831
24832 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24833
24834 * malloc/malloc.c (tcache_put): Inline.
24835 (tcache_get): Inline.
24836
24837 2017-10-17 Jordi Mallach <jordi@gnu.org>
24838
24839 Aurelien Jarno <aurelien@aurel32.net>
24840 [BZ #2522]
24841 * localedata/locales/ca_ES@valencia: New file.
24842 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24843
24844 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24845
24846 [BZ #22296]
24847 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24848 < 6.x
24849
24850 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24851
24852 * scripts/build-many-glibcs.py (Context.add_all_configs):
24853 Add arm-linux-gnueabihf multiarch extra_glibcs.
24854
24855 * sysdeps/generic/ifunc-init.h: New file.
24856 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24857
24858 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24859
24860 [BZ #22019]
24861 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24862 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24863 * stdlib/tst-strfmon_l.c: adapt test case.
24864
24865 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24866
24867 * sysdeps/generic/float128-abi.h: New file.
24868 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24869 non-__prefixed symbols to ....
24870 * math/Versions: ... here. Include <float128-abi.h>.
24871 * stdlib/Versions ... and here. Include <float128-abi.h>
24872
24873 2017-10-16 Florian Weimer <fweimer@redhat.com>
24874
24875 * version.h (VERSION): Switch to ".9000" as the development
24876 version suffix.
24877
24878 2017-10-16 Florian Weimer <fweimer@redhat.com>
24879
24880 [BZ #22050]
24881 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24882 compat_symbol_reference to access non-default version.
24883
24884 2017-10-16 Florian Weimer <fweimer@redhat.com>
24885
24886 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24887
24888 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24889
24890 * include/shlib-compat.h (compat_symbol_reference): Update
24891 comment.
24892
24893 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24894
24895 * math/Makefile (test-types): Add
24896 $(type-float128-$(float128-alias-fcts)).
24897 * math/test-float128.h (TYPE_STR): Define conditional on
24898 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24899 (ULP_IDX): Likewise.
24900 (ULP_I_IDX): Likewise.
24901
24902 * stdlib/strtold.c: Include <bits/floatn.h>
24903 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24904 and later undefine as macro. Define as weak alias if
24905 [!USE_WIDE_CHAR].
24906 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24907 and later undefine as macro. Define as weak alias if
24908 [USE_WIDE_CHAR].
24909 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24910 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24911 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24912 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24913 Define and later undefine as macro. Define as weak alias if
24914 [USE_WIDE_CHAR].
24915 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24916 <bits/floatn.h>.
24917 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24918 Define and later undefine as macro. Define as weak alias if
24919 [!USE_WIDE_CHAR].
24920 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24921 Define and later undefine as macro. Define as weak alias if
24922 [USE_WIDE_CHAR].
24923
24924 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24925
24926 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24927 record_verbose messages.
24928
24929 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24930
24931 [BZ #22052]
24932 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24933 to silence -O3 -Wall warning with GCC 7.
24934
24935 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24936
24937 * Makeconfig (+link-static-before-libc): Use the first of
24938 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24939 * gmon/Makefile (tests): Add tst-gmon-static.
24940 (tests-static): Likewise.
24941 (CFLAGS-tst-gmon-static.c): New.
24942 (CRT-tst-gmon-static): Likewise.
24943 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24944 (tst-gmon-static-ENV): Likewise.
24945 (tests-special): Likewise.
24946 ($(objpfx)tst-gmon-static.out): Likewise.
24947 (clean-tst-gmon-static-data): Likewise.
24948 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24949 * gmon/tst-gmon-static-gprof.sh: New file.
24950 * gmon/tst-gmon-static.c: Likewise.
24951
24952 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24953
24954 [BZ #22295]
24955 * locale/programs/linereader.c (get_string): Don't warn on
24956 non-symbolic character.
24957
24958 [BZ #22294]
24959 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24960 int_curr_symbol.
24961
24962 [BZ #22292]
24963 * locale/programs/record-status.h: New file
24964 * locale/programs/locale.c: Add comment.
24965 * locale/programs/charmap-dir.c: Don't include error.h.
24966 (charmap_opendir): Use record_error.
24967 * locale/programs/charmap.c: Don't include error.h.
24968 (charmap_read): Use record_error, and record_warning.
24969 (parse_charmap): Likewise.
24970 * locale/programs/ld-address.c: Don't include error.h.
24971 (address_finish): Use record_error, and record_warning.
24972 * locale/programs/ld-collate.c: Don't include error.h.
24973 (collate_finish): Use record_error, and record_error_at_line.
24974 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24975 (ctype_class_new): Likewise.
24976 (ctype_map_new): Likewise.
24977 (set_one_default): Likewise.
24978 (set_class_defaults): Likewise.
24979 (translit_flatten): Likewise.
24980 (allocate_arrays): Use record_error, and record_verbose.
24981 * locale/programs/ld-identification.c: Don't include error.h.
24982 (indentation_finish): Use record_error and record_warning.
24983 * locale/programs/ld-measurement.c: Don't include error.h.
24984 (measurement_finish): Use record_error.
24985 * locale/programs/ld-messages.c
24986 (message_finish): Likewise.
24987 * locale/programs/ld-monetary.c
24988 (monetary_finish): Likewise.
24989 * locale/programs/ld-name.c (name_finish): Use record_error
24990 and record_warning.
24991 * locale/programs/ld-numeric.c
24992 (numeric_finish): Use record_error.
24993 * locale/programs/ld-paper.c: Don't include error.h.
24994 (paper_finish): Use record_error.
24995 * locale/programs/ld-telephone.c: Don't include error.h.
24996 (telephone_finish): Use record_error.
24997 * locale/programs/ld-time.c (time_finish): Likewise.
24998 * locale/programs/linereader.h (lr_error): Make inline func.
24999 * locale/programs/localedef.c: Define recorded_warning_count,
25000 and recorded_error_count.
25001 (main): Use record_error. Use recorded_error_count and
25002 recorded_warning_count to issue correct error returns.
25003 (add_to_readlist): Use record_error.
25004 (find_locale): Likewise.
25005 (load_locale): Likewise.
25006 * locale/programs/localedef.h: Remove be_quiet
25007 and WITH_CUR_LOCALE.
25008 * locale/programs/locarchive.c (compare_from_file): Use
25009 record_error.
25010 * locale/programs/locfile.c (write_locale_data): Use
25011 record_error.
25012 * locale/programs/repertoire.c: Dont include error.h.
25013 (repertoire_complain): Use record_error.
25014 * localedata/tst-fmon.sh: Expect failures from localedef.
25015 * localedata/tst-locale.sh: Likewise.
25016 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25017
25018 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25019 (REPORTS): Likewise.
25020 (check): Likewise.
25021 (i18n): Rename to...
25022 (i18n_ctype): ...this.
25023 (i18n-report): Rename to...
25024 (i18n_ctype-report): ...this.
25025 * localedata/locales/i18n_ctype: Regenerate.
25026 * localedata/locales/i18n: copy i18n_ctype.
25027
25028 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25029
25030 * stdlib/strfroml.c: Include <bits/floatn.h>.
25031 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25032 Define before include of <stdlib.h> and undefine afterwards, then
25033 define as weak alias.
25034
25035 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25036 Undefine and restore default definition. Use
25037 libm_alias_ldouble_other.
25038
25039 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25040
25041 [BZ #22153]
25042 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25043 in coredumps.
25044
25045 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25046
25047 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25048 Assign sym_map to be map for local symbols, as TLS relocations
25049 use sym_map to determine whether the symbol is defined and to
25050 extract the TLS information.
25051 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25052 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25053
25054 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25055
25056 [BZ #22189]
25057 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25058 (math_force_eval): Add powerpc version.
25059
25060 [BZ #22142]
25061 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25062 -DBL_MAX.
25063 (do_test): Likewise.
25064 * stdio-common/tst-printf.sh: Likewise.
25065 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25066 ifdef clause in order to set the carry bit right. Replace r0 by
25067 0 without changing the behavior.
25068
25069 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25070
25071 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25072 <libm-alias-ldouble.h>.
25073 (fabsl): Define using libm_alias_ldouble.
25074 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25075 <libm-alias-ldouble.h>.
25076 (fabsl): Define using libm_alias_ldouble.
25077
25078 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25079 Remove conditional code.
25080
25081 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25082 Rename to __clog10_internal_l.
25083 (__clog10_internal_l): Define aliases using
25084 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25085 with __clog10.
25086
25087 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25088
25089 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25090 * benchtests/sincosf-inputs: New file.
25091 * benchtests/cosf-inputs: New file.
25092 * benchtests/sinf-inputs: New file.
25093
25094 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25095
25096 * posix/tst-spawn.c (do_test): Wait for both children.
25097
25098 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25099
25100 [BZ #22284]
25101 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25102 tests-pie): Add tst-gmon-pie.
25103 (CFLAGS-tst-gmon-pie.c): New.
25104 (CRT-tst-gmon-pie): Likewise.
25105 (tst-gmon-pie-ENV): Likewise.
25106 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25107 ($(objpfx)tst-gmon-pie.out): Likewise.
25108 (clean-tst-gmon-pie-data): Likewise.
25109 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25110 * gmon/gmon.c [PIC]: Include <link.h>.
25111 [PIC] (callback): New function.
25112 (write_hist): Add an argument for load address. Subtract load
25113 address from PCs.
25114 (write_call_graph): Likewise.
25115 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25116 it to write_hist and write_call_graph.
25117 * gmon/tst-gmon-pie.c: New file.
25118
25119 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25120
25121 * math/Makefile (test-types-basic): New variable.
25122 (test-types): Likewise.
25123 (libm-test-support): Use $(test-types) instead of $(types).
25124 (libm-tests-base-normal): Likewise.
25125 (libm-tests-base-finite): Likewise.
25126 (libm-tests-base-inline): Likewise.
25127 (generated): Likewise.
25128 ($(objpfx)libm-test-support-$(t).c): Likewise.
25129 (libm-tests-for-type iterator): Likewise.
25130 (libm-test-support iterator): Likewise.
25131 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25132 (ulp_idx): Use ULP_IDX.
25133 * math/test-ldouble.h: Include <float.h>.
25134 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25135 (ULP_IDX): New macro.
25136 (ULP_I_IDX): Likewise.
25137 * math/test-double.h (ULP_IDX): Likewise.
25138 (ULP_I_IDX): Likewise.
25139 * math/test-float.h (ULP_IDX): Likewise.
25140 (ULP_I_IDX): Likewise.
25141 * math/test-float128.h (ULP_IDX): Likewise.
25142 (ULP_I_IDX): Likewise.
25143
25144 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25145
25146 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25147 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25148 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25149 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25150 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25151 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25152 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25153 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25154 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25155 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25156 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25157 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25158 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25159 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25160 (SINGLE_THREAD_BY_GLOBAL): Define.
25161 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25162 Likewise.
25163 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25164 Likewise.
25165 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25166 Likewise.
25167 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25168 Likewise.
25169 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25170 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25171 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25172 Likewise.
25173
25174 2017-10-11 Andreas Schwab <schwab@suse.de>
25175
25176 * nis/Makefile (aux): Remove.
25177 * nscd/Makefile (aux): Add nscd_hash.
25178 (nscd-modules): Likewise.
25179 ($(objpfx)nscd): Don't depend on libnsl.
25180 * nscd/nscd_hash.c: New file.
25181 * nscd/nscd_hash.h: Likewise.
25182 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25183 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25184 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25185 instead of <nis/rpcsvc/nis.h>.
25186 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25187
25188 2017-10-11 Florian Weimer <fweimer@redhat.com>
25189
25190 [BZ #22078]
25191 Avoid large NSS buffers with many addresses, aliases.
25192 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25193 using dynarrays and struct alloc_buffer.
25194 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25195 (tst-nss-files-hosts-multi): Link with -ldl.
25196 * nss/tst-nss-files-hosts-multi.c: New file.
25197
25198 2017-10-11 Florian Weimer <fweimer@redhat.com>
25199
25200 [BZ #18023]
25201 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25202 scratch_buffer. Eliminate gotos.
25203
25204 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25205
25206 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25207 libm_alias_ldouble_other.
25208 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25209 undefine and redefine.
25210 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25211 (exp10l): Do not define here.
25212 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25213 (weak_alias): Undefine and redefine.
25214 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25215 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25216 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25217 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25218
25219 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25220 [!__fma] (fma): Define using libm_alias_double.
25221 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25222 [!__fmaf] (fmaf): Define using libm_alias_float.
25223 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25224 (fmal): Define using libm_alias_ldouble.
25225
25226 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25227
25228 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25229 New macro.
25230 (libm_alias_double_other): Likewise.
25231 (libm_alias_double_r): Use libm_alias_double_other_r.
25232 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25233 New macro.
25234 (libm_alias_float_other): Likewise.
25235 (libm_alias_float_r): Use libm_alias_float_other_r.
25236 * sysdeps/generic/libm-alias-float128.h
25237 (libm_alias_float128_other_r): New macro.
25238 (libm_alias_float128_other): Likewise.
25239 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25240 * sysdeps/generic/libm-alias-ldouble.h
25241 (libm_alias_ldouble_other_r): New macro.
25242 (libm_alias_ldouble_other): Likewise.
25243 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25244 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25245 (libm_alias_double_other_r): New macro.
25246 (libm_alias_double_other): Likewise.
25247 (libm_alias_double_r): Use libm_alias_double_other_r.
25248 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25249 (libm_alias_ldouble_other_r): New macro.
25250 (libm_alias_ldouble_other): Likewise.
25251 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25252 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25253 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25254 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25255 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25256 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25257 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25258 * math/w_exp2f.c: Use libm_alias_float_other.
25259 * math/w_expf.c: Likewise.
25260 * math/w_log2f.c: Likewise.
25261 * math/w_logf.c: Likewise.
25262 * math/w_powf.c: Likewise.
25263 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25264 [!__exp2f]: Use libm_alias_float_other.
25265 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25266 [!__expf]: Use libm_alias_float_other.
25267 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25268 [!__log2f]: Use libm_alias_float_other.
25269 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25270 [!__logf]: Use libm_alias_float_other.
25271 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25272 [!__powf]: Use libm_alias_float_other.
25273
25274 2017-10-10 Florian Weimer <fweimer@redhat.com>
25275
25276 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25277 function.
25278 (_nss_files_gethostbyname3_r): Call it.
25279
25280 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25281
25282 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25283 error. Remove default definition of declare_mgen_alias.
25284 [!declare_mgen_alias_r]: Likewise.
25285 * sysdeps/generic/math-type-macros-double.h
25286 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25287 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25288 (declare_mgen_alias_r): Likewise.
25289 * sysdeps/generic/math-type-macros-float128.h
25290 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25291 * sysdeps/generic/math-type-macros-ldouble.h
25292 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25293 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25294 macro.
25295 (declare_mgen_alias_r_s): Likewise.
25296 (declare_mgen_alias_r): Likewise.
25297 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25298 (lgamma_r): Define using libm_alias_double_r.
25299 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25300 (lgammaf_r): Define using libm_alias_float_r.
25301 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25302 (lgammal_r): Define using libm_alias_ldouble_r.
25303 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25304 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25305
25306 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25307
25308 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25309 extern declaration.
25310
25311 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25312
25313 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25314
25315 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25316
25317 [BZ #21326]
25318 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25319 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25320 * math/Makefile (test-math-cxx11): New test.
25321 * math/test-math-cxx11.cc: New file.
25322
25323 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25324
25325 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25326
25327 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25328 call to allocate the slave pty file descriptor.
25329
25330 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25331
25332 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25333 [!__fma] (fma): Define using libm_alias_double.
25334 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25335 [!__fma] (fma): Define using libm_alias_double.
25336
25337 * sysdeps/ieee754/float128/float128_private.h: Include
25338 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25339 (libm_alias_ldouble_r): Undefine and redefine.
25340 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25341 <libm-alias-ldouble.h>.
25342 (asinhl): Define using libm_alias_ldouble.
25343 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25344 <libm-alias-ldouble.h>.
25345 (atanl): Define using libm_alias_ldouble.
25346 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25347 <libm-alias-ldouble.h>.
25348 (cbrtl): Define using libm_alias_ldouble.
25349 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25350 <libm-alias-ldouble.h>.
25351 (ceill): Define using libm_alias_ldouble.
25352 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25353 <libm-alias-ldouble.h>.
25354 (copysignl): Define using libm_alias_ldouble.
25355 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25356 <libm-alias-ldouble.h>.
25357 (cosl): Define using libm_alias_ldouble.
25358 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25359 <libm-alias-ldouble.h>.
25360 (erfl): Define using libm_alias_ldouble.
25361 (erfcl): Likewise.
25362 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25363 <libm-alias-ldouble.h>.
25364 (expm1l): Define using libm_alias_ldouble.
25365 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25366 <libm-alias-ldouble.h>.
25367 (fabsl): Define using libm_alias_ldouble.
25368 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25369 <libm-alias-ldouble.h>.
25370 (floorl): Define using libm_alias_ldouble.
25371 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25372 <libm-alias-ldouble.h>.
25373 (fmal): Define using libm_alias_ldouble.
25374 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25375 <libm-alias-ldouble.h>.
25376 (frexpl): Define using libm_alias_ldouble.
25377 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25378 libm_alias_ldouble.
25379 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25380 <libm-alias-ldouble.h>.
25381 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25382 libm_alias_ldouble.
25383 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25384 <libm-alias-ldouble.h>.
25385 (getpayloadl): Define using libm_alias_ldouble.
25386 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25387 <libm-alias-ldouble.h>.
25388 (llrintl): Define using libm_alias_ldouble.
25389 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25390 <libm-alias-ldouble.h>.
25391 (llroundl): Define using libm_alias_ldouble.
25392 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25393 <libm-alias-ldouble.h>.
25394 (logbl): Define using libm_alias_ldouble.
25395 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25396 <libm-alias-ldouble.h>.
25397 (lrintl): Define using libm_alias_ldouble.
25398 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25399 <libm-alias-ldouble.h>.
25400 (lroundl): Define using libm_alias_ldouble.
25401 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25402 <libm-alias-ldouble.h>.
25403 (modfl): Define using libm_alias_ldouble.
25404 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25405 <libm-alias-ldouble.h>.
25406 (nearbyintl): Define using libm_alias_ldouble.
25407 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25408 <libm-alias-ldouble.h>.
25409 (nextafterl): Define using libm_alias_ldouble.
25410 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25411 <libm-alias-ldouble.h>.
25412 (nextupl): Define using libm_alias_ldouble.
25413 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25414 <libm-alias-ldouble.h>.
25415 (remquol): Define using libm_alias_ldouble.
25416 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25417 <libm-alias-ldouble.h>.
25418 (rintl): Define using libm_alias_ldouble.
25419 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25420 <libm-alias-ldouble.h>.
25421 (roundevenl): Define using libm_alias_ldouble.
25422 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25423 <libm-alias-ldouble.h>.
25424 (roundl): Define using libm_alias_ldouble.
25425 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25426 using libm_alias_ldouble.
25427 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25428 <libm-alias-ldouble.h>.
25429 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25430 Define using libm_alias_ldouble.
25431 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25432 <libm-alias-ldouble.h>.
25433 (sincosl): Define using libm_alias_ldouble.
25434 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25435 <libm-alias-ldouble.h>.
25436 (sinl): Define using libm_alias_ldouble.
25437 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25438 <libm-alias-ldouble.h>.
25439 (tanhl): Define using libm_alias_ldouble.
25440 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25441 <libm-alias-ldouble.h>.
25442 (tanl): Define using libm_alias_ldouble.
25443 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25444 <libm-alias-ldouble.h>.
25445 (totalorderl): Define using libm_alias_ldouble.
25446 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25447 <libm-alias-ldouble.h>.
25448 (totalordermagl): Define using libm_alias_ldouble.
25449 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25450 <libm-alias-ldouble.h>.
25451 (truncl): Define using libm_alias_ldouble.
25452 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25453 libm_alias_ldouble.
25454 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25455 libm_alias_ldouble.
25456 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25457 <libm-alias-ldouble.h>.
25458 (weak_alias): Do not undefine and redefine.
25459 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25460 (copysignl): Define with long_double_symbol only if [IS_IN
25461 (libc)].
25462 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25463 <libm-alias-ldouble.h>.
25464 (weak_alias): Do not undefine and redefine.
25465 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25466 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25467 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25468 <libm-alias-ldouble.h>.
25469 (weak_alias): Do not undefine and redefine.
25470 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25471 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25472 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25473 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25474 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25475 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25476 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25477 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25478 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25479 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25480 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25481 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25482 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25483 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25484 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25485 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25486 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25487 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25488 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25489 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25490 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25491 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25492 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25493 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25494 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25495 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25496
25497 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25498
25499 [BZ #22111]
25500 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25501 (tcache_thread_freeres): Set tcache_shutting_down before
25502 freeing the tcache.
25503 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25504 * malloc/tst-malloc-tcache-leak.c: New file.
25505
25506 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25507
25508 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25509 back to powerpc32 file.
25510 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25511 (memrchr): Add __memrchr_power8 to ifunc list.
25512 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25513 extra bytes for unaligned inputs.
25514
25515 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25516
25517 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25518 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25519 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25520 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25521 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25522
25523 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25524
25525 * sysdeps/arm/libm-test-ulps: Update.
25526
25527 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25528 <libm-alias-ldouble.h>.
25529 (asinhl): Define using libm_alias_ldouble.
25530 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25531 <libm-alias-ldouble.h>.
25532 (cbrtl): Define using libm_alias_ldouble.
25533 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25534 <libm-alias-ldouble.h>.
25535 (copysignl): Define using libm_alias_ldouble.
25536 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25537 <libm-alias-ldouble.h>.
25538 (cosl): Define using libm_alias_ldouble.
25539 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25540 <libm-alias-ldouble.h>.
25541 (erfl): Define using libm_alias_ldouble.
25542 (erfcl): Likewise.
25543 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25544 <libm-alias-ldouble.h>.
25545 (fmal): Define using libm_alias_ldouble.
25546 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25547 <libm-alias-ldouble.h>.
25548 (frexpl): Define using libm_alias_ldouble.
25549 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25550 libm_alias_ldouble.
25551 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25552 <libm-alias-ldouble.h>.
25553 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25554 libm_alias_ldouble.
25555 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25556 <libm-alias-ldouble.h>.
25557 (getpayloadl): Define using libm_alias_ldouble.
25558 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25559 <libm-alias-ldouble.h>.
25560 (llrintl): Define using libm_alias_ldouble.
25561 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25562 <libm-alias-ldouble.h>.
25563 (llroundl): Define using libm_alias_ldouble.
25564 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25565 <libm-alias-ldouble.h>.
25566 (lrintl): Define using libm_alias_ldouble.
25567 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25568 <libm-alias-ldouble.h>.
25569 (lroundl): Define using libm_alias_ldouble.
25570 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25571 <libm-alias-ldouble.h>.
25572 (modfl): Define using libm_alias_ldouble.
25573 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25574 <libm-alias-ldouble.h>.
25575 (nextupl): Define using libm_alias_ldouble.
25576 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25577 <libm-alias-ldouble.h>.
25578 (remquol): Define using libm_alias_ldouble.
25579 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25580 <libm-alias-ldouble.h>.
25581 (roundevenl): Define using libm_alias_ldouble.
25582 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25583 <libm-alias-ldouble.h>.
25584 (roundl): Define using libm_alias_ldouble.
25585 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25586 using libm_alias_ldouble.
25587 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25588 <libm-alias-ldouble.h>.
25589 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25590 <libm-alias-ldouble.h>.
25591 (setpayloadsigl): Define using libm_alias_ldouble.
25592 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25593 <libm-alias-ldouble.h>.
25594 (sincosl): Define using libm_alias_ldouble.
25595 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25596 <libm-alias-ldouble.h>.
25597 (sinl): Define using libm_alias_ldouble.
25598 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25599 <libm-alias-ldouble.h>.
25600 (tanhl): Define using libm_alias_ldouble.
25601 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25602 <libm-alias-ldouble.h>.
25603 (tanl): Define using libm_alias_ldouble.
25604 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25605 <libm-alias-ldouble.h>.
25606 (totalorderl): Define using libm_alias_ldouble.
25607 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25608 <libm-alias-ldouble.h>.
25609 (totalordermagl): Define using libm_alias_ldouble.
25610 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25611 libm_alias_ldouble.
25612 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25613 libm_alias_ldouble.
25614
25615 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25616
25617 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25618 memmove_falkor.
25619 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25620 (__libc_ifunc_impl_list): Likewise.
25621 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25622 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25623
25624 * benchtests/bench-memmove-walk.c: New file.
25625 * benchtests/Makefile (string-benchset): Add it.
25626
25627 * benchtests/bench-memset-walk.c: New file.
25628 * benchtests/Makefile (string-benchset): Add it.
25629
25630 * benchtests/bench-memcpy-walk.c: New file.
25631 * benchtests/Makefile (string-benchset): Add it.
25632
25633 2017-10-05 Florian Weimer <fweimer@redhat.com>
25634
25635 nscd: Eliminate compilation time dependency in the build output.
25636 * nscd/nscd_stat.c (STATDATA_VERSION)
25637 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25638 (STATDATA_VERSION_FULL): New macro definitions.
25639 (compilation): Remove.
25640 (struct statdata): Adjust version member.
25641 (send_stats): Set version from STATDATA_VERSION_FULL.
25642 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25643
25644 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25645
25646 * configure.ac (--enable-add-ons): Remove option.
25647 (machine): Do not mention add-ons in comment.
25648 (LIBC_PRECONFIGURE): Likewise.
25649 (add_ons): Remove variable and sanity checks and logic to locate
25650 add-ons.
25651 (add_ons_automatic): Remove variable.
25652 (configured_add_ons): Likewise.
25653 (add_ons_sfx): Likewise.
25654 (add_ons_pfx): Likewise.
25655 (add_on_subdirs): Likewise.
25656 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25657 consideration of add-ons in Implies handling.
25658 (sysdeps_add_ons): Likewise.
25659 * configure: Regenerated.
25660 * libidn/configure.ac: Remove.
25661 * libidn/configure: Likewise.
25662 * sysdeps/unix/inet/configure.ac: New file.
25663 * sysdeps/unix/inet/configure: New generated file.
25664 * sysdeps/unix/inet/Subdirs: Add libidn.
25665 * Makeconfig (sysdeps-srcdirs): Remove variable.
25666 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25667 ($(common-objpfx)config.status): Do not depend on add-on files.
25668 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25669 comment.
25670 (all-subdirs): Do not include $(add-on-subdirs).
25671 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25672 * config.make.in (add-ons): Remove variable.
25673 (add-on-subdirs): Likewise.
25674 (sysdeps-add-ons): Likewise.
25675 * manual/Makefile (add-chapters): Remove.
25676 ($(objpfx)texis): Do not depend on $(add-chapters).
25677 (nonexamples): Do not handle $(add-chapters).
25678 (examples): Do not handle $(add-ons).
25679 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25680 libc-texinfo.sh.
25681 * manual/install.texi (Installation): Do not mention add-ons.
25682 (--enable-add-ons): Do not document configure option.
25683 * INSTALL: Regenerated.
25684 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25685 * manual/maint.texi (Hierarchy Conventions): Do not mention
25686 add-ons.
25687 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25688 --enable-add-ons.
25689 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25690 add-ons.
25691 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25692 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25693
25694 2017-10-05 Andreas Schwab <schwab@suse.de>
25695
25696 [BZ #15142]
25697 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25698 (_IO_flush_all_lockp): Always lock list_all_lock.
25699 (_IO_flush_all_linebuffered): Likewise.
25700 (_IO_unbuffer_all): Likewise.
25701
25702 2017-10-05 Florian Weimer <fweimer@redhat.com>
25703
25704 [BZ #15436]
25705 Do not flush stdio streams on abort.
25706 * stdlib/abort.c (fflush): Remove macro definition.
25707 (abort): Remove stages related to stdio flushing.
25708
25709 2017-10-05 Florian Weimer <fweimer@redhat.com>
25710
25711 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25712
25713 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25714
25715 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25716
25717 2017-10-05 Florian Weimer <fweimer@redhat.com>
25718
25719 * support/support_format_hostent.c (support_format_hostent): Add
25720 more error information for NETDB_INTERNAL.
25721
25722 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25723
25724 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25725 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25726 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25727 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25728 AC_DEFINE if multi-arch is enabled.
25729 * sysdeps/i386/configure: Regenerated.
25730
25731 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 * Makeconfig (+link-static-before-libc): Use
25734 $(DEFAULT-LDFLAGS-$(@F)).
25735 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25736 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25737 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25738
25739 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25740
25741 * elf/Makefile (tests): Add tst-main1.
25742 (modules-names): Add tst-main1mod.
25743 ($(objpfx)tst-main1): New.
25744 (CRT-tst-main1): Likewise.
25745 (LDFLAGS-tst-main1): Likewise.
25746 (LDLIBS-tst-main1): Likewise.
25747 (tst-main1mod.so-no-z-defs): Likewise.
25748 * elf/tst-main1.c: New file.
25749 * elf/tst-main1mod.c: Likewise.
25750
25751 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25752
25753 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25754
25755 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25756
25757 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25758 (fma): Define using libm_alias_double.
25759 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25760 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25761 <math_ldbl_opt.h>.
25762 (fmal): Do not define as compat symbol here.
25763 * sysdeps/alpha/fpu/s_fma.c: New file.
25764
25765 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25766
25767 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25768
25769 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25770
25771 [BZ #22229]
25772 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25773 <math_ldbl_opt.h>
25774 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25775 and libc.
25776 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25777 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25778 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25779 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25781 Include <math_ldbl_opt.h>
25782 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25783 and libc.
25784 (compat_symbol): Undefine and redefine.
25785 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25786 <math_ldbl_opt.h>
25787 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25788 (compat_symbol): Undefine and redefine.
25789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25790 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25791 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25792 GLIBC_2_1 for libm.
25793 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25794 GLIBC_2.0 copysignl symbol.
25795 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25796 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25797
25798 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25799
25800 2017-10-04 Florian Weimer <fweimer@redhat.com>
25801
25802 * scripts/check-local-headers.sh: Ignore nspr4 header file
25803 directory in addition to nspr.
25804
25805 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25806
25807 [BZ #17956]
25808 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25809 * configure: Regenerate.
25810 * crypt/Makefile (nss-cpp-flags): New variable.
25811 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25812 (CPPFLAGS-md5-crypt.c): Use it.
25813 * scripts/check-local-headers.sh: Ignore nspr header file
25814 directory.
25815
25816 2017-10-04 Andreas Schwab <schwab@suse.de>
25817
25818 * nis/Makefile (services): Remove compat.
25819 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25820 ($(objpfx)libnss_compat.so): Remove rule.
25821 * nis/Versions (libnss_compat): Remove.
25822 * nss/Makefile (services): Add compat.
25823 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25824 * nss/Versions (libnss_compat): Define.
25825 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25826 Don't include <rpc/types.h>. Replace bool_t by bool.
25827 * nss/nss_compat/compat-initgroups.c: Likewise.
25828 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25829 instead of <rpcsrv/ypclnt.h>.
25830 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25831 yp_get_default_domain.
25832 * nss/nss_compat/compat-pwd.c: Likewise.
25833 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25834 yp_get_default_domain.
25835 * nss/nss_compat/nisdomain.c: New file.
25836 * nss/nss_compat/nisdomain.h: Likewise.
25837
25838 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25839
25840 [BZ #22244]
25841 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25842 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25843
25844 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25845
25846 [BZ #22243]
25847 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25848 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25849
25850 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25851
25852 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25853 "movl main@GOTOFF(%ebx), %eax".
25854
25855 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25856
25857 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25858 allow undefined _DYNAMIC in PIE libc.a.
25859 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25860 Likewse.
25861
25862 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25863
25864 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25865 check _DYNAMIC.
25866
25867 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25868
25869 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25870 check _DYNAMIC.
25871
25872 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25873
25874 * math/test-math-iscanonical.cc (error): Replace bool with int.
25875
25876 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25877
25878 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25879 (modf): Define using libm_alias_double, only if [!__modf].
25880 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25881 <libm-alias-double.h>.
25882 (modf): Define using libm_alias_double, only if [!__modf].
25883 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25884 compat symbol here.
25885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25886 (weak_alias): Do not undefine and redefine.
25887 (strong_alias): Likewise.
25888 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25889 (weak_alias): Likewise.
25890 (strong_alias): Likewise.
25891
25892 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25893 (logb): Define using libm_alias_double, only if [!__logb].
25894 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25895 <libm-alias-double.h>.
25896 (logb): Define using libm_alias_double, only if [!__logb].
25897 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25898 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25899 (weak_alias): Do not undefine and redefine.
25900 (strong_alias): Likewise.
25901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25902 (weak_alias): Likewise.
25903 (strong_alias): Likewise.
25904
25905 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25906
25907 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25908 Check SHARED instead PIC.
25909
25910 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25911
25912 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25913 [!__fmaf] (fmaf): Define using libm_alias_float.
25914
25915 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25916 (frexp): Define using libm_alias_double.
25917 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25918 <libm-alias-double.h>.
25919 (frexp): Define using libm_alias_double.
25920 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25921 compat symbol here.
25922
25923 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25924
25925 [BZ #22235]
25926 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25927 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25928 (CFLAGS-test-math-iscanonical.cc): New variable.
25929 * math/test-math-iscanonical.cc: New file.
25930 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25931 Provide a C++ implementation based on function overloading,
25932 rather than using __MATH_TG, which uses C-only builtins.
25933 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25934 Likewise.
25935 * sysdeps/powerpc/powerpc64le/Makefile
25936 (CFLAGS-test-math-iscanonical.cc): New variable.
25937
25938 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25939
25940 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25941 (ceil): Define using libm_alias_double.
25942 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25943 (floor): Define using libm_alias_double.
25944 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25945 <libm-alias-double.h>.
25946 (llround): Define using libm_alias_double.
25947 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25948 <libm-alias-double.h>.
25949 (lround): Define using libm_alias_double.
25950 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25951 <libm-alias-double.h>.
25952 (nearbyint): Define using libm_alias_double.
25953 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25954 <libm-alias-double.h>.
25955 (remquo): Define using libm_alias_double.
25956 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25957 (rint): Define using libm_alias_double.
25958 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25959 (round): Define using libm_alias_double.
25960 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25961 (trunc): Define using libm_alias_double.
25962 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25963 <libm-alias-double.h>.
25964 (ceil): Define using libm_alias_double.
25965 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25966 <libm-alias-double.h>.
25967 (floor): Define using libm_alias_double.
25968 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25969 <libm-alias-double.h>.
25970 (llround): Define using libm_alias_double.
25971 [_LP64] (lround): Likewise.
25972 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25973 <libm-alias-double.h>.
25974 [!_LP64] (lround): Define using libm_alias_double.
25975 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25976 <libm-alias-double.h>.
25977 (nearbyint): Define using libm_alias_double.
25978 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25979 <libm-alias-double.h>.
25980 (remquo): Define using libm_alias_double.
25981 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25982 <libm-alias-double.h>.
25983 (rint): Define using libm_alias_double.
25984 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25985 <libm-alias-double.h>.
25986 (round): Define using libm_alias_double.
25987 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25988 <libm-alias-double.h>.
25989 (trunc): Define using libm_alias_double.
25990 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25991 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25992 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25993 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25994 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25995 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25996 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25997 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25998 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25999
26000 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26001
26002 * math/w_remainder.c: New file.
26003 * math/w_remainderf.c: New file.
26004 * math/w_remainderl.c: New file.
26005
26006 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26007
26008 * elf/rtld.c (BOOTSTRAP_MAP): New.
26009 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26010 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26011 Likewise.
26012 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26013 Likewise.
26014 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26015 Likewise.
26016
26017 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26018
26019 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26020 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26021 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26022 rtld_hidden_data_ver): Define to empty.
26023 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26024 __assert_perror_fail): Likewise.
26025 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26026 (__rewinddir): Likewise.
26027 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26028 (__profile_frequency): Likewise.
26029 * include/setjmp.h (__sigsetjmp): Likewise.
26030 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26031 __libc_sigaction): Likewise.
26032 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26033 not set hidden attribute.
26034 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26035 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26036 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26037 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26038 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26039 __fxstatat64): Likewise.
26040 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26041 (__uname): Likewise.
26042 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26043 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26044 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26045 (NO_RTLD_HIDDEN): Set.
26046 * sysdeps/mach/hurd/configure: Refresh.
26047 * config.h.in: Refresh.
26048
26049 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26050
26051 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26052 (atan): Define using libm_alias_double.
26053 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26054 (tan): Define using libm_alias_double.
26055 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26056 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26057
26058 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26059 define as weak alias of __atan. Do not define any aliases if
26060 [__atan].
26061 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26062 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26063 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26064 as weak alias of __tan. Do not define any aliases if [__tan].
26065 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26066 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26067 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26068 __atan.
26069 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26070 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26071 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26072 and define as weak alias of __atan.
26073 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26074 __atan.
26075 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26076 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26077 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26078 define as weak alias of __tan.
26079
26080 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26081
26082 * math/w_lgamma.c: New file.
26083 * math/w_lgammaf.c: New file.
26084 * math/w_lgammal.c: New file.
26085
26086 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26087
26088 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26089 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26090 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26091 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26092 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26093 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26094 * sysdeps/i386/fpu/w_log2f.c: New file.
26095 * sysdeps/i386/fpu/w_logf.c: New file.
26096 * sysdeps/i386/fpu/w_powf.c: New file.
26097 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26098 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26099 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26100
26101 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26102 H.J. Lu <hongjiu.lu@intel.com>
26103
26104 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26105 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26106 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26107 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26108 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26109 the new expf code.
26110 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26111 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26112 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26113 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26114 * sysdeps/i386/fpu/w_exp2f.c: New file.
26115 * sysdeps/i386/fpu/w_expf.c: New file.
26116 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26117 * sysdeps/x86_64/fpu/w_expf.c: New file.
26118
26119 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26120
26121 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26122 (log2f): Likewise.
26123 (powf): Likewise.
26124 * math/w_log2f.c: New file.
26125 * math/w_logf.c: New file.
26126 * math/w_powf.c: New file.
26127 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26128 * math/w_logf_compat.c (__logf_compat): Likewise.
26129 * math/w_powf_compat.c (__powf_compat): Likewise.
26130 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26131 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26132 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26133 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26134 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26135 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26136 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26137 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26138 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26139 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26140 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26141 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26142 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26143 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26144 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26146 Likewise.
26147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26148 Likewise.
26149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26150 Likewise.
26151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26152 Likewise.
26153 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26154 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26155 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26156 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26157 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26158 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26159 Likewise.
26160 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26161 Likewise.
26162 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26163 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26164 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26165
26166 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26167
26168 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26169 (sysdep_routines): Add memrchr_power8.
26170 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26171 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26172 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26173 New file.
26174 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26175 (memrchr): Add __memrchr_power8 to ifunc list.
26176 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26177
26178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26179
26180 [BZ #18822]
26181 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26182 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26183 libc_hidden_def.
26184 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26185 (__posix_fallocate64_l64): Likewise.
26186
26187 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26188
26189 [BZ #18822]
26190 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26191 (__sched_setaffinity_new): Add libc_hidden_proto and
26192 libc_hidden_def.
26193
26194 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26195
26196 [BZ #18822]
26197 * include/glob.h (__glob64): Add libc_hidden_proto.
26198 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26199 libc_hidden_def.
26200
26201 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26202
26203 [BZ #18822]
26204 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26205 attribute_hidden.
26206
26207 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26208
26209 [BZ #18822]
26210 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26211
26212 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26213
26214 [BZ #18822]
26215 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26216 libc_hidden_def.
26217
26218 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26219
26220 [BZ #18822]
26221 * csu/version.c (__libc_print_version): Add attribute_hidden.
26222
26223 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26224
26225 [BZ #18822]
26226 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26227
26228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 [BZ #18822]
26231 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26232
26233 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26234
26235 [BZ #18822]
26236 * nscd/nscd_helper.c (__nis_hash): New prototype.
26237
26238 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26239
26240 [BZ #18822]
26241 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26242 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26243 libc_hidden_def.
26244 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26245 * termios/tcgetattr.c (__tcgetattr): Likewise.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26251 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26252 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26253 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26254 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26255
26256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26257
26258 [BZ #18822]
26259 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26260
26261 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26262
26263 [BZ #18822]
26264 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26265 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26266
26267 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26268
26269 [BZ #18822]
26270 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26271
26272 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26273
26274 [BZ #18822]
26275 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26276 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26277
26278 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 [BZ #18822]
26281 * include/ifreq.h: New file.
26282 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26283 (__ifreq): Likewise.
26284 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26285 (__ifreq): Likewise.
26286
26287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26288
26289 [BZ #18822]
26290 * include/idna.h: New file.
26291 * inet/getnameinfo.c: Include <idna.h> instead of
26292 <libidn/idna.h>.
26293 (__idna_to_unicode_lzlz): Removed.
26294 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26295 <libidn/idna.h>.
26296 (__idna_to_ascii_lz): Removed.
26297 (__idna_to_unicode_lzlz): Likewise.
26298
26299 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26300
26301 [BZ #18822]
26302 * include/plural-exp.h: New file.
26303 * intl/plural-exp.c: Include <plural-exp.h> instead of
26304 "plural-exp.h".
26305
26306 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26307
26308 [BZ #18822]
26309 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26310 "getsourcefilter.h".
26311 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26312 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26313 "getsourcefilter.h".
26314 (__get_sol): Removed.
26315
26316 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26317
26318 [BZ #18822]
26319 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26320 to ...
26321 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26322
26323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26324
26325 [BZ #18822]
26326 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26327 attribute_hidden.
26328
26329 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26330
26331 [BZ #18822]
26332 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26333
26334 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26335
26336 [BZ #18822]
26337 * include/search.h (__tdestroy): Add libc_hidden_proto.
26338 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26339
26340 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26341
26342 [BZ #18822]
26343 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26344
26345 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26346
26347 [BZ #18822]
26348 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26349 attribute_hidden.
26350
26351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 [BZ #18822]
26354 * include/signal.h (__kill): Add libc_hidden_proto.
26355 (__sigblock): Likewise.
26356 (__sigprocmask): Likewise.
26357 (__sigaltstack): Likewise.
26358 * signal/kill.c (__kill): Add libc_hidden_def.
26359 * signal/sigblock.c (__sigblock): Likewise.
26360 * signal/sigprocmask.c (__sigprocmask): Likewise.
26361 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26362 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26363 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26364 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26365 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26366 Likewise.
26367 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26368 Likewise.
26369 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26370 (__sigprocmask): Likewise.
26371 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26372 Likewise.
26373 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26374 (__sigprocmask): Likewise.
26375 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26376 Likewise.
26377
26378 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26379
26380 [BZ #18822]
26381 * include/string.h (__strsep): Add libc_hidden_proto.
26382 * string/strsep.c (__strsep): Add libc_hidden_def.
26383
26384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26385
26386 [BZ #18822]
26387 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26388 attribute_hidden.
26389 (__spawni): Likewise.
26390
26391 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26392
26393 [BZ #18822]
26394 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26395 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26396 libc_hidden_def.
26397
26398 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26399
26400 [BZ #18822]
26401 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26402
26403 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26404
26405 [BZ #18822]
26406 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26407 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26408 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26409 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26410 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26411 Likewise.
26412 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26413 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26414
26415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26416
26417 [BZ #18822]
26418 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26419 (__dcigettext): Likewise.
26420
26421 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26422
26423 [BZ #18822]
26424 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26425 libc_hidden_proto.
26426 (__get_nprocs): Likewise.
26427 (__get_phys_pages): Likewise.
26428 (__get_avphys_pages): Likewise.
26429 (__get_child_max): Add attribute_hidden.
26430 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26431 (__get_nprocs): Likewise.
26432 (__get_phys_pages): Likewise.
26433 (__get_avphys_pages): Likewise.
26434 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26435 libc_hidden_def.
26436 (__get_nprocs): Likewise.
26437 (__get_phys_pages): Likewise.
26438 (__get_avphys_pages): Likewise.
26439 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26440 libc_hidden_def.
26441 (__get_nprocs_conf): Likewise.
26442 (__get_phys_pages): Likewise.
26443 (__get_avphys_pages): Likewise.
26444
26445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26446
26447 [BZ #18822]
26448 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26449 attribute_hidden.
26450 (__netlink_close): Likewise.
26451 (__netlink_free_handle): Likewise.
26452 (__netlink_request): Likewise.
26453
26454 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26455
26456 [BZ #18822]
26457 * include/rpc/rpc.h (__rpc_thread_variables): Add
26458 attribute_hidden.
26459 (__rpc_thread_svc_cleanup): Likewise.
26460 (__rpc_thread_clnt_cleanup): Likewise.
26461 (__rpc_thread_key_cleanup): Likewise.
26462
26463 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26464
26465 [BZ #18822]
26466 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26467 (__writev): Likewise.
26468 * misc/readv.c (__readv): Add libc_hidden_def.
26469 * misc/writev.c (__writev): Likewise.
26470 * sysdeps/posix/readv.c (__readv): Likewise.
26471 * sysdeps/posix/writev.c (__writev): Likewise.
26472 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26473 (__readv): Likewise.
26474 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26475 (__writev): Likewise.
26476
26477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26478
26479 [BZ #18822]
26480 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26481 (__regcomp): Add libc_hidden_proto.
26482 (__regexec): Likewise.
26483 (__regfree): Likewise.
26484 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26485 (__regfree): Likewise.
26486 * posix/regexec.c (__regexec): Likewise.
26487
26488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26489
26490 [BZ #18822]
26491 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26492 (__getutent): Likewise.
26493 (__getutid): Likewise.
26494 (__getutline): Likewise.
26495 (__pututline): Likewise.
26496 (__getutent_r): Likewise.
26497 (__getutid_r): Likewise.
26498 (__getutline_r): Likewise.
26499 (__utmpname): Add attribute_hidden.
26500 (__setutent): Likewise.
26501 (__endutent): Likewise.
26502 * login/getutent.c (__getutent): Add libc_hidden_def.
26503 * login/getutent_r.c (__getutent_r): Likewise.
26504 (__pututline): Likewise.
26505 * login/getutid.c (__getutid): Likewise.
26506 * login/getutid_r.c (__getutid_r): Likewise.
26507 * login/getutline.c (__getutline): Likewise.
26508 * login/getutline_r.c (__getutline_r): Likewise.
26509 * login/updwtmp.c (__updwtmp): Likewise.
26510
26511 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26512
26513 [BZ #18822]
26514 * include/dirent.h (__opendir): Always add attribute_hidden.
26515 (__fdopendir): Likewise.
26516 (__closedir): Likewise.
26517 (__readdir): Likewise.
26518 (__readdir64): Add libc_hidden_proto.
26519 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26520 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26521 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26522 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26523 New alias.
26524
26525 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26526
26527 [BZ #18822]
26528 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26529 * include/netdb.h (__gethostbyaddr_r): Likewise.
26530 (__gethostbyname_r): Likewise.
26531 (__gethostbyname2_r): Likewise.
26532 (__getnetbyaddr_r): Likewise.
26533 (__getnetbyname_r): Likewise.
26534 (__getservbyname_r): Likewise.
26535 (__getservbyport_r): Likewise.
26536 (__getprotobyname_r): Likewise.
26537 (__getprotobynumber_r): Likewise.
26538 (__getnetgrent_r): Likewise.
26539 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26540 (__getrpcbynumber_r): Likewise.
26541 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26542
26543 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26544
26545 [BZ #18822]
26546 * include/stdio.h (__fcloseall): Add attribute_hidden.
26547 (__getline): Likewise.
26548 (__path_search): Likewise.
26549 (__gen_tempname): Likewise.
26550 (__libc_message): Likewise.
26551 (__flockfile): Likewise.
26552 (__funlockfile): Likewise.
26553 (__fxprintf): Likewise.
26554 (__fxprintf_nocancel): Likewise.
26555
26556 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 [BZ #18822]
26559 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26560 (__sgetsgent_r): Likewise.
26561
26562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26563
26564 [BZ #18822]
26565 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26566 (__statfs64): Likewise.
26567 (__fstatfs64): Likewise.
26568 * include/sys/statvfs.h (__statvfs64): Likewise.
26569 (__fstatvfs64): Likewise.
26570 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26571 (__statfs_filesize_max): Likewise.
26572 (__statfs_symlinks): Likewise.
26573 (__statfs_chown_restricted): Likewise.
26574
26575 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26576
26577 [BZ #18822]
26578 * include/time.h (__tzstring): Add attribute_hidden.
26579 (__tzfile_read): Likewise.
26580 (__tzfile_compute): Likewise.
26581 (__tzfile_default): Likewise.
26582 (__tzset_parse_tz): Likewise.
26583 (__offtime): Likewise.
26584 (__asctime_r): Likewise.
26585 (__tzset): Likewise.
26586 (__tz_convert): Likewise.
26587 (__getdate_r): Likewise.
26588 (__getclktck): Likewise.
26589
26590 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26591
26592 [BZ #18822]
26593 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26594 (__nscd_unmap): Likewise.
26595 (__nscd_cache_search): Likewise.
26596 (__nscd_get_nl_timestamp): Likewise.
26597 (__nscd_getpwnam_r): Likewise.
26598 (__nscd_getpwuid_r): Likewise.
26599 (__nscd_getgrnam_r): Likewise.
26600 (__nscd_getgrgid_r): Likewise.
26601 (__nscd_gethostbyname_r): Likewise.
26602 (__nscd_gethostbyname2_r): Likewise.
26603 (__nscd_gethostbyaddr_r): Likewise.
26604 (__nscd_getai): Likewise.
26605 (__nscd_getgrouplist): Likewise.
26606 (__nscd_getservbyname_r): Likewise.
26607 (__nscd_getservbyport_r): Likewise.
26608 (__nscd_innetgr): Likewise.
26609 (__nscd_setnetgrent): Likewise.
26610
26611 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26612
26613 [BZ #18822]
26614 * include/gmp.h: Declare internal functions only if _ISOMAC is
26615 undefined.
26616 (__mpn_extract_double): Add attribute_hidden.
26617 (__mpn_extract_long_double): Likewise.
26618 (__mpn_extract_float128): Likewise.
26619 (__mpn_construct_float): Likewise.
26620 (__mpn_construct_double): Likewise.
26621 (__mpn_construct_long_double): Likewise.
26622 (__mpn_construct_float128): Likewise.
26623 (mpn_add_1): Likewise.
26624 (mpn_addmul_1): Likewise.
26625 (mpn_add_n): Likewise.
26626 (mpn_cmp): Likewise.
26627 (mpn_divrem): Likewise.
26628 (mpn_lshift): Likewise.
26629 (mpn_mul): Likewise.
26630 (mpn_mul_1): Likewise.
26631 (mpn_rshift): Likewise.
26632 (mpn_sub_1): Likewise.
26633 (mpn_submul_1): Likewise.
26634 (mpn_sub_n): Likewise.
26635
26636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26637
26638 [BZ #18822]
26639 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26640 (__wcscat): Likewise.
26641 (__btowc): Likewise.
26642 (__wcrtomb): Likewise.
26643 (__mbsrtowcs): Likewise.
26644 (__wcsrtombs): Likewise.
26645 (__mbsnrtowcs): Likewise.
26646 (__wcsnrtombs): Likewise.
26647 (__wcsncpy): Likewise.
26648 (__wcpncpy): Likewise.
26649 (__wmemcpy): Likewise.
26650 (__wmempcpy): Likewise.
26651 (__wmemmove): Likewise.
26652 (__wcschrnul): Likewise.
26653 (__vfwscanf): Likewise.
26654 (__vswprintf): Likewise.
26655 (__fwprintf): Likewise.
26656 (__vfwprintf): Likewise.
26657
26658 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26659
26660 [BZ #18822]
26661 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26662 (__getgrgid_r): Likewise.
26663 (__getgrnam_r): Likewise.
26664 * include/pwd.h (__getpwuid_r): Likewise.
26665 (__getpwnam_r): Likewise.
26666 (__fgetpwent_r): Likewise.
26667 * include/shadow.h (__getspnam_r): Likewise.
26668 (__sgetspent_r): Likewise.
26669 (__fgetspent_r): Likewise.
26670
26671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26672
26673 [BZ #18822]
26674 * include/unistd.h (__access): Add attribute_hidden.
26675 (__lseek64): Likewise.
26676 (__libc_pread64): Likewise.
26677 (__pipe2): Likewise.
26678 (__sleep): Likewise.
26679 (__chdir): Likewise.
26680 (__fchdir): Likewise.
26681 (__getcwd): Likewise.
26682 (__rmdir): Likewise.
26683 (__execvpe): Likewise.
26684 (__execve): Likewise.
26685 (__setsid): Likewise.
26686 (__getuid): Likewise.
26687 (__geteuid): Likewise.
26688 (__getgid): Likewise.
26689 (__getegid): Likewise.
26690 (__getgroups): Likewise.
26691 (__group_member): Likewise.
26692 (__ttyname_r): Likewise.
26693 (__isatty): Likewise.
26694 (__readlink): Likewise.
26695 (__unlink): Likewise.
26696 (__gethostname): Likewise.
26697 (__profil): Likewise.
26698 (__getdtablesize): Likewise.
26699 (__brk): Likewise.
26700 (__ftruncate): Likewise.
26701 (__ftruncate64): Likewise.
26702
26703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26704
26705 [BZ #18822]
26706 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26707 * argp/argp-fs-xinl.c: Likewise.
26708 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26709 * argp/argp-parse.c: Include <argp.h>.
26710 * argp/argp-xinl.c: Likewise.
26711 * include/argp-fmtstream.h: New file.
26712 * include/argp.h (__argp_error): Add attribute_hidden.
26713 (__argp_failure): Likewise.
26714 (__argp_input): Likewise.
26715 (__argp_state_help): Likewise.
26716
26717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26718
26719 [BZ #18822]
26720 * include/wchar.h (____wcstof_l_internal): New prototype.
26721 (____wcstod_l_internal): Likewise.
26722 (____wcstold_l_internal): Likewise.
26723 (____wcstol_l_internal): Likewise.
26724 (____wcstoul_l_internal): Likewise.
26725 (____wcstoll_l_internal): Likewise.
26726 (____wcstoull_l_internal): Likewise.
26727 (____wcstof128_l_internal): Likewise.
26728 * sysdeps/ieee754/float128/wcstof128.c
26729 (____wcstof128_l_internal): Removed.
26730 * sysdeps/ieee754/float128/wcstof128_l.c
26731 (____wcstof128_l_internal): Likewise.
26732 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26733 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26734 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26735 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26736 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26737 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26738 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26739 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26740 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26741 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26742
26743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26744
26745 [BZ #18822]
26746 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26747 instead of <sys/statvfs.h>.
26748 (__internal_statvfs): Removed.
26749 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26750 instead of <sys/statvfs.h>.
26751 (__internal_statvfs64): Removed.
26752 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26753 "internal_statvfs.h" instead of <sys/statvfs.h>.
26754 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26755 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26756 instead of <sys/statvfs.h>.
26757 (__internal_statvfs): Removed.
26758 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26759 instead of <sys/statvfs.h>.
26760 (__internal_statvfs64): Removed.
26761
26762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26763
26764 [BZ #18822]
26765 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26766 (__gconv_close): Likewise.
26767 (__gconv): Likewise.
26768 (__gconv_find_transform): Likewise.
26769 (__gconv_lookup_cache): Likewise.
26770 (__gconv_compare_alias_cache): Likewise.
26771 (__gconv_load_cache): Likewise.
26772 (__gconv_get_path): Likewise.
26773 (__gconv_close_transform): Likewise.
26774 (__gconv_release_cache): Likewise.
26775 (__gconv_find_shlib): Likewise.
26776 (__gconv_release_shlib): Likewise.
26777 (__gconv_get_builtin_trans): Likewise.
26778 (__gconv_compare_alias): Likewise.
26779 * include/dlfcn.h (_dlerror_run): Likewise.
26780 * include/stdio.h (__fortify_fail_abort): Likewise.
26781 * include/time.h (__tz_compute): Likewise.
26782 (__strptime_internal): Likewise.
26783 * intl/gettextP.h (_nl_find_domain): Likewise.
26784 (_nl_load_domain): Likewise.
26785 (_nl_find_msg): Likewise.
26786 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26787 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26788 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26789 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26790 (__gai_find_request): Likewise.
26791 (__gai_remove_request): Likewise.
26792 (__gai_notify): Likewise.
26793 (__gai_notify_only): Likewise.
26794 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26795 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26796 (_dl_non_dynamic_init): Likewise.
26797 (_dl_aux_init): Likewise.
26798 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26799 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26800 Likewise.
26801 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26802 (__wcsmbs_clone_conv): Likewise.
26803 (__wcsmbs_named_conv): Likewise.
26804
26805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 [BZ #18822]
26808 * include/stdlib.h (__random): Add attribute_hidden.
26809 (__random_r): Likewise.
26810 (__srandom_r): Likewise.
26811 (__initstate_r): Likewise.
26812 (__setstate_r): Likewise.
26813 (__erand48_r): Likewise.
26814 (__nrand48_r): Likewise.
26815 (__jrand48_r): Likewise.
26816 (__srand48_r): Likewise.
26817 (__seed48_r): Likewise.
26818 (__lcong48_r): Likewise.
26819 (__drand48_iterate): Likewise.
26820 (__setenv): Likewise.
26821 (__unsetenv): Likewise.
26822 (__clearenv): Likewise.
26823 (__ptsname_r): Likewise.
26824 (__posix_openpt): Likewise.
26825 (__add_to_environ): Likewise.
26826 (__realpath): Add libc_hidden_proto.
26827 (__ecvt_r): Likewise.
26828 (__fcvt_r): Likewise.
26829 (__qecvt_r): Likewise.
26830 (__qfcvt_r): Likewise.
26831 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26832 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26833
26834 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26835
26836 [BZ #18822]
26837 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26838 * include/time.h (__mktime_internal): Likewise.
26839 * libio/iolibio.h (__fopen_internal): Likewise.
26840
26841 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26842
26843 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26844 pointer in frame.
26845 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26846 Correct offset used to restore PIC register.
26847
26848 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26849
26850 [BZ libc/22165]
26851 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26852 code to load address of __getcontext_ret when generating PIC code.
26853
26854 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26855
26856 * elf/Makefile (tests-static-internal): Add
26857 tst-tls1-static-non-pie.
26858 (LDFLAGS-tst-tls1-static-non-pie): New.
26859 * elf/tst-tls1-static-non-pie.c: New file.
26860
26861 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26862
26863 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26864 (asinh): Define using libm_alias_double.
26865 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26866 (cbrt): Define using libm_alias_double.
26867 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26868 <libm-alias-double.h>.
26869 (copysign): Define using libm_alias_double.
26870 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26871 (erf): Define using libm_alias_double.
26872 (erfc): Likewise.
26873 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26874 (expm1): Define using libm_alias_double.
26875 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26876 (fabs): Define using libm_alias_double.
26877 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26878 libm_alias_double.
26879 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26880 <libm-alias-double.h>.
26881 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26882 libm_alias_double.
26883 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26884 <libm-alias-double.h>.
26885 (getpayload): Define using libm_alias_double.
26886 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26887 <libm-alias-double.h>.
26888 (llrint): Define using libm_alias_double.
26889 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26890 (lrint): Define using libm_alias_double.
26891 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26892 <libm-alias-double.h>.
26893 (nextup): Define using libm_alias_double.
26894 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26895 <libm-alias-double.h>.
26896 (roundeven): Define using libm_alias_double.
26897 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26898 libm_alias_double.
26899 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26900 <libm-alias-double.h>.
26901 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26902 using libm_alias_double.
26903 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26904 (cos): Define using libm_alias_double.
26905 (sin): Likewise.
26906 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26907 <libm-alias-double.h>.
26908 (sincos): Define using libm_alias_double.
26909 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26910 (tanh): Define using libm_alias_double.
26911 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26912 <libm-alias-double.h>.
26913 (totalorder): Define using libm_alias_double.
26914 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26915 <libm-alias-double.h>.
26916 (totalordermag): Define using libm_alias_double.
26917 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26918 libm_alias_double.
26919 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26920 libm_alias_double.
26921 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26922 <libm-alias-double.h>.
26923 (getpayload): Define using libm_alias_double.
26924 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26925 <libm-alias-double.h>.
26926 (roundeven): Define using libm_alias_double.
26927 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26928 <libm-alias-double.h>.
26929 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26930 <libm-alias-double.h>.
26931 (totalorder): Define using libm_alias_double.
26932 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26933 <libm-alias-double.h>.
26934 (totalordermag): Define using libm_alias_double.
26935 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26936 libc compat symbol here.
26937 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26938 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26939 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26940 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26941 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26942 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26943 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26944 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26945 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26946 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26947
26948 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26949
26950 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26951 _dl_relocate_static_pie instead of _dl_start to compute load
26952 address in static PIE. Return 0 if _DYNAMIC is undefined for
26953 static executable.
26954
26955 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26956
26957 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26958 _DYNAMIC is undefined for static executable.
26959
26960 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26961
26962 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26963
26964 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26965
26966 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26967
26968 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26969
26970 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26971 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26972 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26973 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26974 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26975 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26976 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26977 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26978 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26979 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26980 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26981 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26982 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26983 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26984 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26985 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26986 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26987
26988 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26989
26990 * math/bits/cmathcalls.h (cimag): Remove inline.
26991 (creal): Remove inline.
26992 (conj): Remove inline.
26993
26994 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26995
26996 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26997 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26998 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26999 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27000 (issignalingf_inline): Likewise.
27001 (POWF_LOG2_TABLE_BITS): Likewise.
27002 (POWF_LOG2_POLY_ORDER): Likewise.
27003 (POWF_SCALE_BITS): Likewise.
27004 (POWF_SCALE): Likewise.
27005 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27006 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27007 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27008
27009 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27010
27011 * math/Makefile (type-float-routines): Add e_log2f_data.
27012 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27013 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27014 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27015 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27016 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27017 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27018 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27019
27020 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27021
27022 * math/Makefile (type-float-routines): Add e_logf_data.
27023 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27024 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27025 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27026 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27027 * sysdeps/i386/fpu/e_logf_data.c: New file.
27028 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27029 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27030
27031 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27032
27033 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27034 undefined _DYNAMIC in PIE libc.a.
27035 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27036 Likewse.
27037
27038 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27039
27040 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27041 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27042 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27043 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27044 (__signbit): Remove.
27045 (__signbitl): Remove.
27046 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27047 (__signbit): Remove.
27048 (__signbitl): Remove.
27049 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27050 (__signbit): Remove.
27051 (__signbitl): Remove.
27052 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27053 (__signbit): Remove.
27054 (__signbitl): Remove.
27055 * sysdeps/tile/bits/mathinline.h: Delete file.
27056 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27057 (__signbit): Remove.
27058 (__signbitl): Remove.
27059
27060 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27061
27062 * math/math.h: Improve handling of C99 isgreater macros.
27063 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27064 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27065 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27066 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27067 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27068
27069 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27070
27071 * sysdeps/aarch64/libm-test-ulps: Update.
27072
27073 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27074
27075 [BZ #22225]
27076 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27077 math_opt_barrier on argument when doing arithmetic on it.
27078 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27079 Likewise. Use math_force_eval not math_opt_barrier after
27080 arithmetic.
27081 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27082 math_opt_barrier on argument when doing arithmetic on it.
27083 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27084 Likewise.
27085
27086 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27089 libc_hidden_def.
27090 (__freeifaddrs): Likewise.
27091
27092 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27093
27094 * include/dirent.h (__dirfd): New declaration.
27095 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27096 alias.
27097 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27098 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27099 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27100 * include/unistd.h (__revoke): New declaration.
27101 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27102 alias.
27103 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27104 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27105 revoke.
27106 * include/dirent.h (__seekdir): New declaration.
27107 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27108 redefine as weak alias.
27109 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27110 of seekdir.
27111 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27112 and use libc_hidden_def on them.
27113 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27114 them.
27115 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27116 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27117 instead of getifaddrs and freeifaddrs.
27118
27119 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27120
27121 [BZ #18822]
27122 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27123 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27124 (__dso_handle): Remove declaration.
27125 * dlfcn/tstatexit.c (__dso_handle): Removed.
27126 (main): Don't check __dso_handle.
27127 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27128 (main): Don't check __dso_handle.
27129 * include/dso_handle.h: New file.
27130 * malloc/mtrace.c: Include <dso_handle.h>.
27131 (mtrace): Pass __dso_handle directly.
27132 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27133 (__dso_handle): Remove declaration.
27134 (__pthread_atfork): Pass __dso_handle directly.
27135 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27136 (__dso_handle): Removed.
27137 * posix/wordexp-test.c: Include <dso_handle.h>.
27138 (__dso_handle): Remove declaration.
27139 (__app_register_atfork): Pass __dso_handle directly.
27140 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27141 (__dso_handle): Remove declaration.
27142 (at_quick_exit): Pass __dso_handle directly.
27143 * stdlib/atexit.c: Include <dso_handle.h>.
27144 (__dso_handle): Remove declaration.
27145 (atexit): Pass __dso_handle directly.
27146 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27147 (__dso_handle): Removed.
27148
27149 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27150
27151 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27152 using VDSO.
27153
27154 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27155
27156 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27157 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27158 values to correct default value for given type.
27159
27160 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27161
27162 [BZ #22101]
27163 * elf/Makefile (tests): Add tst-debug1.
27164 ($(objpfx)tst-debug1): New.
27165 ($(objpfx)tst-debug1.out): Likewise.
27166 ($(objpfx)tst-debug1mod1.so): Likewise.
27167 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27168 with p_filesz == 0.
27169 * elf/tst-debug1.c: New file.
27170
27171 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27172
27173 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27174 Define using __ifunc.
27175
27176 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27177
27178 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27179 exp2f() values.
27180
27181 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27182
27183 [BZ #22156]
27184 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27185
27186 2017-09-26 Florian Weimer <fweimer@redhat.com>
27187
27188 * resolv/Makefile (tests-internal): Fix typo in comment.
27189
27190 2017-09-26 Florian Weimer <fweimer@redhat.com>
27191
27192 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27193
27194 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27195
27196 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27197 Use an union instead of a max_align_t array for __space,
27198 so that __space is the same size on all platforms.
27199 * malloc/scratch_buffer_grow_preserve.c
27200 (__libc_scratch_buffer_grow_preserve): Likewise.
27201
27202 [BZ #22183]
27203 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27204 version to 2.
27205 * posix/Makefile (routines): Add glob-lstat-compat and
27206 glob64-lstat-compat.
27207 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27208 * posix/glob-lstat-compat.c: New file.
27209 * posix/glob64-lstat-compat.c: Likewise.
27210 * posix/tst-glob_lstat_compat.c: Likewise.
27211 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27212 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27213 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27214 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27215 Likewise.
27216 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27217 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27218 * posix/glob.c (glob_lstat): New function.
27219 (glob): Rename to __glob and add versioned symbol to 2.27.
27220 (glob_in_dir): Use glob_lstat.
27221 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27222 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27223 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27224 2.27.
27225 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27226 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27227 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27228 gl_lstat on glob call.
27229 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27230 and glob64 symbols.
27231 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27232 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27233 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27234 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27235 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27236 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27237 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27238 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27239 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27240 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27241 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27242 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27244 Likewise.
27245 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27247 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27248 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27249 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27250 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27251 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27252 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27253 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27254 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27255 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27256 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27257
27258 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27259
27260 * configure.ac (AS): Require binutils 2.25 or later.
27261 * configure: Regenerated.
27262
27263 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27264
27265 [BZ #22207]
27266 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27267 VM size.
27268
27269 2017-09-25 DJ Delorie <dj@redhat.com>
27270
27271 [BZ #22161]
27272 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27273 resetting timeout.
27274
27275 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27276
27277 * sysdeps/ieee754/dbl-64/sincos32.h
27278 [SINCCOS32_H]: Remove define.
27279 [SINCOS32_H]: Define.
27280
27281 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27282
27283 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27284 (exp2f): Likewise.
27285 * math/w_exp2f.c: New file.
27286 * math/w_expf.c: New file.
27287 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27288 * math/w_expf_compat.c (__expf_compat): Likewise.
27289 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27290 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27291 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27292 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27293 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27294 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27295 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27296 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27297 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27298 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27299 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27300 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27301 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27302 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27304 Likewise.
27305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27306 Likewise.
27307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27308 Likewise.
27309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27310 Likewise.
27311 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27312 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27313 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27314 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27315 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27316 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27317 Likewise.
27318 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27319 Likewise.
27320 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27321 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27322 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27323
27324 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27325
27326 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27327 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27328 (roundtoint, converttoint): Likewise.
27329 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27330 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27331 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27332 * sysdeps/ieee754/flt-32/math_config.h: New file.
27333 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27334 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27335 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27336 * sysdeps/i386/fpu/math_errf.c: New file.
27337 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27338 * sysdeps/ia64/fpu/math_errf.c: New file.
27339 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27340 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27341
27342 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27343
27344 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27345 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27346 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27347 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27348 to make sure that these symbols are defined.
27349 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27350 of <limits.h>
27351 (__need_NULL): Do not define.
27352 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27353 alignment.
27354 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27355 CMGROUP_MAX, cmsgcred): Do not define.
27356 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27357 NULL.
27358 * bits/socket.h: Likewise.
27359 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27360 __gettimeofday instead of gettimeofday.
27361 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27362 instead of settimeofday.
27363
27364 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27365
27366 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27367 (asinhf): Define using libm_alias_float.
27368 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27369 (atanf): Define using libm_alias_float.
27370 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27371 (cbrtf): Define using libm_alias_float.
27372 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27373 (ceilf): Define using libm_alias_float.
27374 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27375 <libm-alias-float.h>.
27376 (copysignf): Define using libm_alias_float.
27377 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27378 (cosf): Define using libm_alias_float.
27379 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27380 (erff): Define using libm_alias_float.
27381 (erfcf): Likewise.
27382 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27383 (expm1f): Define using libm_alias_float.
27384 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27385 (fabsf): Define using libm_alias_float.
27386 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27387 (floorf): Define using libm_alias_float.
27388 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27389 (frexpf): Define using libm_alias_float.
27390 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27391 libm_alias_float.
27392 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27393 <libm-alias-float.h>.
27394 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27395 libm_alias_float.
27396 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27397 <libm-alias-float.h>.
27398 (getpayloadf): Define using libm_alias_float.
27399 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27400 <libm-alias-float.h>.
27401 (llrintf): Define using libm_alias_float.
27402 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27403 <libm-alias-float.h>.
27404 (llroundf): Define using libm_alias_float.
27405 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27406 (logbf): Define using libm_alias_float.
27407 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27408 (lrintf): Define using libm_alias_float.
27409 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27410 (lroundf): Define using libm_alias_float.
27411 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27412 (modff): Define using libm_alias_float.
27413 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27414 <libm-alias-float.h>.
27415 (nearbyintf): Define using libm_alias_float.
27416 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27417 <libm-alias-float.h>.
27418 (nextafterf): Define using libm_alias_float.
27419 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27420 <libm-alias-float.h>.
27421 (nextupf): Define using libm_alias_float.
27422 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27423 <libm-alias-float.h>.
27424 (remquof): Define using libm_alias_float.
27425 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27426 (rintf): Define using libm_alias_float.
27427 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27428 <libm-alias-float.h>.
27429 (roundevenf): Define using libm_alias_float.
27430 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27431 (roundf): Define using libm_alias_float.
27432 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27433 using libm_alias_float.
27434 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27435 <libm-alias-float.h>.
27436 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27437 Define using libm_alias_float.
27438 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27439 <libm-alias-float.h>.
27440 (sincosf): Define using libm_alias_float.
27441 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27442 (sinf): Define using libm_alias_float.
27443 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27444 (tanf): Define using libm_alias_float.
27445 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27446 (tanhf): Define using libm_alias_float.
27447 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27448 <libm-alias-float.h>.
27449 (totalorderf): Define using libm_alias_float.
27450 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27451 <libm-alias-float.h>.
27452 (totalordermagf): Define using libm_alias_float.
27453 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27454 (truncf): Define using libm_alias_float.
27455 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27456 libm_alias_float.
27457 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27458 libm_alias_float.
27459
27460 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27461
27462 [BZ #22146]
27463 math/math.h: Let fpclassify use the builtin in C++ mode, even
27464 when optimazing for size.
27465
27466 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27467
27468 * csu/Makefile (generated): Do not add version-info.h.
27469 (before-compile): Likewise.
27470 (all-Banner-files): Remove variable.
27471 ($(objpfx)version-info.h): Remove rule.
27472 * csu/version.c (banner): Do not include "version-info.h".
27473 * libidn/Banner: Remove.
27474 * manual/contrib.texi (Simon Josefsson): New entry.
27475
27476 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27477
27478 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27479 Remove conditionals on LDBL_MANT_DIG.
27480 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27481 (__ieee754_lgammal_r): Likewise.
27482
27483 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27484
27485 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27486 _Float128 and L().
27487 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27488 _Float128 and L(). Replace _Float128 with long double and L(x)
27489 with xL, throughout the file.
27490 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27491 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27492 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27493 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27494
27495 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27496
27497 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27498 sysdeps/ieee754/ldbl-128ibm.
27499 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27500 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27501 of including it. Keep _Float128 and L() intact. These will be
27502 reviewed by a separate patch.
27503 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27504 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27505 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27506 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27507
27508 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27509
27510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27511 (__finitef128): Define to __redirect___finitef128.
27512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27513 (__isinff128): Define to __redirect___isinff128.
27514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27515 (__isnanf128): Define to __redirect___isnanf128.
27516
27517 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27518
27519 * sysdeps/powerpc/powerpc64le/Makefile
27520 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27521 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27522
27523 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27524 Carlos O'Donell <carlos@redhat.com>
27525
27526 [BZ #22180]
27527 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27528 * stdlib/test-dlclose-exit-race.c: New file.
27529 * stdlib/test-dlclose-exit-race-helper.c: New file.
27530 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27531
27532 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27533
27534 * crypt/Banner: Remove file.
27535 * nptl/Banner: Likewise.
27536 * resolv/Banner: Likewise.
27537 * soft-fp/Banner: Likewise.
27538 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27539 ($(objpfx)version.d): Remove dependency on banner.h.
27540 ($(objpfx)version.os): Likewise.
27541 * nptl/version.c (banner): Do not include banner.h.
27542 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27543 Jelinek and BIND code.
27544
27545 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27546 Carlos O'Donell <carlos@redhat.com>
27547
27548 * support/xdlfcn.h: New file.
27549 * support/xdlfcn.c: New file.
27550 * support/Makefile (libsupport-routines): Add xdlfcn.
27551 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27552
27553 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27554
27555 [BZ #20142]
27556 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27557 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27558 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27559 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27560 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27561 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27562 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27563 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27564
27565 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27566 Ricky Zhou <rickyz@google.com>
27567 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27568
27569 [BZ #14333]
27570 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27571 Remove atomics.
27572 (__new_exitfn): Fail registration when we finished at_exit processing.
27573 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27574 * stdlib/on_exit.c (__on_exit): Likewise.
27575 * stdlib/exit.c (__exit_funcs_done): New variable.
27576 (__run_exit_handlers): Use __exit_funcs_lock.
27577 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27578 declarations.
27579 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27580 (test-cxa_atexit-race, test-on_exit-race): New tests.
27581 * stdlib/test-atexit-race-common.c: New file.
27582 * stdlib/test-atexit-race.c: New file.
27583 * stdlib/test-at_quick_exit-race.c: New file.
27584 * stdlib/test-cxa_atexit-race.c: New file.
27585 * stdlib/test-on_exit-race.c: New file.
27586
27587 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27588
27589 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27590 * benchtests/exp2f-inputs: Copy of expf-inputs.
27591 * benchtests/log2f-inputs: Copy of logf-inputs.
27592
27593 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27594
27595 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27596 Explicitly take address of first element of array arguments in
27597 call to INLINE_SYSCALL.
27598
27599 2017-09-19 Andreas Schwab <schwab@suse.de>
27600
27601 [BZ #22134]
27602 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27603 execveat first.
27604 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27605 unimplemented.
27606 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27607 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27608 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27609 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27610 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27611 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27612 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27613 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27614 * posix/Makefile (tests): Add tst-fexecve.
27615 * posix/tst-fexecve.c: New file.
27616
27617 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27618
27619 * benchtests/Makefile: Add logf benchmark.
27620 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27621
27622 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27623
27624 * benchtests/Makefile: Add expf benchmark.
27625 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27626
27627 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27628
27629 * csu/Makefile: Add -funwind-tables to libc-start.c.
27630 * debug/Makefile: Add -funwind-tables to backtrace.c.
27631 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27632 * sysdeps/arm/Makefile: Likewise.
27633 * sysdeps/i386/Makefile: Likewise.
27634 * sysdeps/m68k/Makefile: Likewise.
27635 * sysdeps/mips/Makefile: Likewise.
27636 * sysdeps/nios2/Makefile: Likewise.
27637 * sysdeps/sh/Makefile: Likewise.
27638 * sysdeps/sparc/Makefile: Likewise.
27639
27640 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27641
27642 * benchtests/Makefile (bench-math): Add trunc and truncf.
27643 (CFLAGS-bench-trunc.c): New variable.
27644 (CFLAGS-bench-truncf.c): Likewise.
27645 * benchtests/trunc-inputs: New file.
27646 * benchtests/truncf-inputs: Likewise.
27647
27648 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27649
27650 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27651
27652 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27653
27654 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27655 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27656 redefine.
27657 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27658 (exp10l): Define as weak alias.
27659 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27660 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27661 and redefine.
27662 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27663 (remainderl): Define as weak alias.
27664
27665 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27666 (fmal): Define using libm_alias_ldouble.
27667 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27668 (acoshl): Define using libm_alias_ldouble.
27669 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27670 (acosl): Define using libm_alias_ldouble.
27671 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27672 (asinl): Define using libm_alias_ldouble.
27673 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27674 (atan2l): Define using libm_alias_ldouble.
27675 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27676 (atanhl): Define using libm_alias_ldouble.
27677 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27678 (coshl): Define using libm_alias_ldouble.
27679 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27680 (exp10l): Define using libm_alias_ldouble.
27681 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27682 (exp2l): Define using libm_alias_ldouble.
27683 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27684 (expl): Define using libm_alias_ldouble.
27685 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27686 (fmodl): Define using libm_alias_ldouble.
27687 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27688 (hypotl): Define using libm_alias_ldouble.
27689 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27690 (j0l): Define using libm_alias_ldouble.
27691 (y0l): Likewise.
27692 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27693 (j1l): Define using libm_alias_ldouble.
27694 (y1l): Likewise.
27695 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27696 (jnl): Define using libm_alias_ldouble.
27697 (ynl): Likewise.
27698 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27699 (log10l): Define using libm_alias_ldouble.
27700 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27701 (log2l): Define using libm_alias_ldouble.
27702 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27703 (logl): Define using libm_alias_ldouble.
27704 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27705 (powl): Define using libm_alias_ldouble.
27706 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27707 (remainderl): Define using libm_alias_ldouble.
27708 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27709 (sinhl): Define using libm_alias_ldouble.
27710 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27711 (sqrtl): Define using libm_alias_ldouble.
27712 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27713 (tgammal): Define using libm_alias_ldouble.
27714 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27715 (exp10l): Do not use long_double_symbol here.
27716 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27717 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27718 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27719 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27720 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27721 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27722 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27723 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27724 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27725 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27726 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27727 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27728 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27729 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27730 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27731 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27732 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27733 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27734 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27735 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27736 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27737 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27738
27739 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27740
27741 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27742 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27743
27744 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27745
27746 * io/read.c (read): Add libc_hidden_weak.
27747 * sysdeps/mach/hurd/read.c (read): Likewise.
27748 * io/write.c (write): Likewise.
27749 * sysdeps/mach/hurd/write.c (write): Likewise.
27750 * io/pread64.c (__pread64): Likewise.
27751 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27752 * posix/pread64.c (__pread64): Add libc_hidden_def.
27753
27754 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27755
27756 * benchtests/scripts/compare_strings.py: New option -g.
27757 (draw_graph): Print a message that a graph is being generated.
27758 (process_results): Generate graph only if -g is passed.
27759 (main): Process option -g.
27760
27761 * benchtests/scripts/compare_strings.py (process_results):
27762 Better spacing for output.
27763
27764 * benchtests/scripts/compare_strings.py: Use argparse.
27765 * benchtests/README: Document existence of compare_strings.py.
27766
27767 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27768
27769 * math/s_fma.c: Include <libm-alias-double.h>.
27770 (fma): Define using libm_alias_double.
27771 * math/s_nextafter.c: Include <libm-alias-double.h>.
27772 (nextafter): Define using libm_alias_double.
27773 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27774 (acos): Define using libm_alias_double.
27775 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27776 (aocsh): Define using libm_alias_double.
27777 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27778 (asin): Define using libm_alias_double.
27779 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27780 (atan2): Define using libm_alias_double.
27781 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27782 (atanh): Define using libm_alias_double.
27783 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27784 (cosh): Define using libm_alias_double.
27785 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27786 (exp10): Define using libm_alias_double.
27787 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27788 (exp2): Define using libm_alias_double.
27789 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27790 (exp): Define using libm_alias_double.
27791 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27792 (fmod): Define using libm_alias_double.
27793 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27794 (hypot): Define using libm_alias_double.
27795 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27796 (j0): Define using libm_alias_double.
27797 (y0): Likewise.
27798 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27799 (j1): Define using libm_alias_double.
27800 (y1): Likewise.
27801 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27802 (jn): Define using libm_alias_double.
27803 (yn): Likewise.
27804 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27805 (log10): Define using libm_alias_double.
27806 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27807 (log2): Define using libm_alias_double.
27808 * math/w_log_compat.c: Include <libm-alias-double.h>.
27809 (log): Define using libm_alias_double.
27810 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27811 (pow): Define using libm_alias_double.
27812 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27813 (remainder): Define using libm_alias_double.
27814 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27815 (sinh): Define using libm_alias_double.
27816 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27817 (sqrt): Define using libm_alias_double.
27818 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27819 (tgamma): Define using libm_alias_double.
27820 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27821 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27822 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27823 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27824 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27825 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27826 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27827 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27828 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27829 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27830 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27831 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27832 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27833 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27834 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27835 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27836 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27837 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27838 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27839 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27840 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27841 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27842 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27843 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27844 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27845
27846 * math/e_acoshl.c: Remove.
27847 * math/e_acosl.c: Likewise.
27848 * math/e_asinl.c: Likewise.
27849 * math/e_atan2l.c: Likewise.
27850 * math/e_atanhl.c: Likewise.
27851 * math/e_coshl.c: Likewise.
27852 * math/e_expl.c: Likewise.
27853 * math/e_fmodl.c: Likewise.
27854 * math/e_gammal_r.c: Likewise.
27855 * math/e_hypotl.c: Likewise.
27856 * math/e_j0l.c: Likewise.
27857 * math/e_j1l.c: Likewise.
27858 * math/e_jnl.c: Likewise.
27859 * math/e_lgammal_r.c: Likewise.
27860 * math/e_log10l.c: Likewise.
27861 * math/e_log2l.c: Likewise.
27862 * math/e_logl.c: Likewise.
27863 * math/e_powl.c: Likewise.
27864 * math/e_rem_pio2l.c: Likewise.
27865 * math/e_sinhl.c: Likewise.
27866 * math/e_sqrtf128.c: Likewise.
27867 * math/e_sqrtl.c: Likewise.
27868 * math/k_cosl.c: Likewise.
27869 * math/k_sinl.c: Likewise.
27870 * math/k_tanl.c: Likewise.
27871 * math/s_asinhl.c: Likewise.
27872 * math/s_atanl.c: Likewise.
27873 * math/s_cbrtl.c: Likewise.
27874 * math/s_erfl.c: Likewise.
27875 * math/s_expm1l.c: Likewise.
27876 * math/s_log1pl.c: Likewise.
27877 * math/s_tanhl.c: Likewise.
27878
27879 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27880
27881 [BZ #21745]
27882 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27883 [$(subdir) = math] (sysdep_calls): New variable. Has the
27884 previous contents of sysdep_routines, but re-sorted..
27885 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27886 sysdep_calls.
27887 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27888 defined in sysdep_calls and replace by the respective m_* names.
27889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27890 (compat_symbol): Undefine to avoid duplicated compat symbols in
27891 libc.
27892
27893 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27894
27895 * math/s_fmaf.c: Include <libm-alias-float.h>.
27896 (fmaf): Define using libm_alias_float.
27897 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27898 (acosf): Define using libm_alias_float.
27899 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27900 (acoshf): Define using libm_alias_float.
27901 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27902 (asinf): Define using libm_alias_float.
27903 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27904 (atan2f): Define using libm_alias_float.
27905 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27906 (atanhf): Define using libm_alias_float.
27907 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27908 (coshf): Define using libm_alias_float.
27909 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27910 (exp10f): Define using libm_alias_float.
27911 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27912 (fmodf): Define using libm_alias_float.
27913 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27914 (hypotf): Define using libm_alias_float.
27915 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27916 (j0f): Define using libm_alias_float.
27917 (y0f): Likewise.
27918 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27919 (j1f): Define using libm_alias_float.
27920 (y1f): Likewise.
27921 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27922 (jnf): Define using libm_alias_float.
27923 (ynf): Likewise.
27924 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27925 (log10f): Define using libm_alias_float.
27926 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27927 (log2f): Define using libm_alias_float.
27928 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27929 (logf): Define using libm_alias_float.
27930 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27931 (powf): Define using libm_alias_float.
27932 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27933 (remainderf): Define using libm_alias_float.
27934 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27935 (sinhf): Define using libm_alias_float.
27936 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27937 (sqrtf): Define using libm_alias_float.
27938 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27939 (tgammaf): Define using libm_alias_float.
27940
27941 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27942
27943 * include/math.h (roundeven): Change hidden_proto call to
27944 __roundeven.
27945 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27946 alias.
27947 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27948 (y0): Rename to __y0 and define as weak alias.
27949 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27950 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27951 alias.
27952 (y0f): Rename to __y0f and define as weak alias.
27953 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27954 alias.
27955 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27956 (y1): Rename to __y1 and define as weak alias.
27957 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27958 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27959 alias.
27960 (y1f): Rename to __y1f and define as weak alias.
27961 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27962 alias.
27963 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27964 (yn): Rename to __yn and define as weak alias.
27965 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27966 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27967 alias.
27968 (ynf): Rename to __ynf and define as weak alias.
27969 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27970 (fromfp): Define as weak alias.
27971 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27972 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27973 (fromfpx): Define as weak alias.
27974 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27975 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27976 __getpayload and define as weak alias.
27977 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27978 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27979 __roundeven and define as weak alias.
27980 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27981 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27982 __setpayload.
27983 (setpayload): Define as weak alias.
27984 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27985 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27986 __setpayloadsig.
27987 (setpayloadsig): Define as weak alias.
27988 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27989 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27990 __totalorder and define as weak alias.
27991 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27992 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27993 to __totalordermag and define as weak alias.
27994 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27995 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27996 (ufromfp): Define as weak alias.
27997 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27998 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27999 __ufromfpx.
28000 (ufromfpx): Define as weak alias.
28001 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28002 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28003 Rename to __getpayload and define as weak alias.
28004 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28005 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28006 Rename to __roundeven and define as weak alias.
28007 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28008 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28009 Rename to __totalorder and define as weak alias.
28010 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28011 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28012 (totalordermag): Rename to __totalordermag and define as weak
28013 alias.
28014 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28015 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28016 macro.
28017 (__roundevenl): Likewise.
28018 (__totalorderl): Likewise.
28019 (__totalordermagl): Likewise
28020 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28021 __fromfpf128.
28022 (fromfpf128): Define as weak alias.
28023 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28024 __fromfpxf128.
28025 (fromfpxf128): Define as weak alias.
28026 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28027 __setpayloadf128.
28028 (setpayloadf128): Define as weak alias.
28029 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28030 __setpayloadsigf128.
28031 (setpayloadsigf128): Define as weak alias.
28032 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28033 __ufromfpf128.
28034 (ufromfpf128): Define as weak alias.
28035 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28036 __ufromfpxf128.
28037 (ufromfpxf128): Define as weak alias.
28038 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28039 (fromfpf): Define as weak alias.
28040 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28041 __fromfpxf.
28042 (fromfpxf): Define as weak alias.
28043 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28044 __getpayloadf and define as weak alias.
28045 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28046 __roundevenf and define as weak alias.
28047 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28048 __setpayloadf.
28049 (setpayloadf): Define as weak alias.
28050 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28051 __setpayloadsigf.
28052 (setpayloadsigf): Define as weak alias.
28053 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28054 __totalorderf and define as weak alias.
28055 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28056 Rename to __totalordermagf and define as weak alias.
28057 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28058 __ufromfpf.
28059 (ufromfpf): Define as weak alias.
28060 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28061 __ufromfpxf.
28062 (ufromfpxf): Define as weak alias.
28063 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28064 __fromfpl.
28065 (fromfpl): Define as weak alias.
28066 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28067 __fromfpxl.
28068 (fromfpxl): Define as weak alias.
28069 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28070 to __getpayloadl and define as weak alias.
28071 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28072 __roundevenl and define as weak alias.
28073 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28074 __setpayloadl.
28075 (setpayloadl): Define as weak alias.
28076 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28077 __setpayloadsigl.
28078 (setpayloadsigl): Define as weak alias.
28079 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28080 to __totalorderl and define as weak alias.
28081 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28082 Rename to __totalordermagl and define as weak alias.
28083 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28084 __ufromfpl.
28085 (ufromfpl): Define as weak alias.
28086 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28087 __ufromfpxl.
28088 (ufromfpxl): Define as weak alias.
28089 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28090 __fromfpl.
28091 (fromfpl): Define as weak alias.
28092 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28093 __fromfpxl.
28094 (fromfpxl): Define as weak alias.
28095 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28096 Rename to __getpayloadl and define as weak alias.
28097 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28098 to __roundevenl and define as weak alias. Call __roundeven
28099 instead of roundeven.
28100 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28101 __setpayloadl.
28102 (setpayloadl): Define as weak alias.
28103 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28104 __setpayloadsigl.
28105 (setpayloadsigl): Define as weak alias.
28106 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28107 Rename to __totalorderl and define as weak alias.
28108 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28109 Rename to __totalordermagl and define as weak alias.
28110 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28111 __ufromfpl.
28112 (ufromfpl): Define as weak alias.
28113 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28114 __ufromfpxl.
28115 (ufromfpxl): Define as weak alias.
28116 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28117 __fromfpl.
28118 (fromfpl): Define as weak alias.
28119 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28120 __fromfpxl.
28121 (fromfpxl): Define as weak alias.
28122 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28123 __getpayloadl and define as weak alias.
28124 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28125 __roundevenl and define as weak alias.
28126 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28127 __setpayloadl.
28128 (setpayloadl): Define as weak alias.
28129 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28130 __setpayloadsigl.
28131 (setpayloadsigl): Define as weak alias.
28132 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28133 __totalorderl and define as weak alias.
28134 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28135 Rename to __totalordermagl and define as weak alias.
28136 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28137 __ufromfpl.
28138 (ufromfpl): Define as weak alias.
28139 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28140 __ufromfpxl.
28141 (ufromfpxl): Define as weak alias.
28142
28143 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28144
28145 * benchtests/bench-string.h (realloc_bufs): New function.
28146 (test_init): Call it.
28147 * benchtests/bench-memset-large.c (do_test): Likewise.
28148 * benchtests/bench-memset.c (do_test): Likewise.
28149
28150 * benchtests/bench-memset-large.c: Print output in JSON
28151 format.
28152 * benchtests/bench-memset.c: Likewise.
28153
28154 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28155
28156 [BZ #21084]
28157 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28158 * iconvdata/Makefile: Add IBM858.
28159 * iconvdata/gconv-modules: Likewise.
28160 * iconvdata/tst-tables.sh: Likewise.
28161 * iconvdata/ibm858.c: New file.
28162 * localedata/charmaps/IBM858: Likewise.
28163
28164 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28165
28166 [BZ #22023]
28167 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28168 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28169
28170 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28171
28172 [BZ #22112]
28173 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28174 and add tel_int_fmt.
28175
28176 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28177
28178 * sysdeps/generic/libm-alias-float128.h: New file.
28179 * sysdeps/generic/math-type-macros-float128.h: Include
28180 <libm-alias-float128.h>.
28181 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28182
28183 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28184
28185 * sysdeps/generic/libm-alias-ldouble.h: New file.
28186 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28187 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28188 * sysdeps/generic/math-type-macros-ldouble.h: Include
28189 <libm-alias-ldouble.h>.
28190 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28191 libm_alias_ldouble.
28192
28193 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28194
28195 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28196 * math/w_exp_compat.c: ... here.
28197 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28198 * math/w_expf_compat.c: ... here.
28199 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28200 * math/w_expl_compat.c: ... here.
28201 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28202 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28203 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28204 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28205
28206 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28207
28208 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28209 redefine.
28210 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28211 macro.
28212 (ldexpl): Only define as compat symbol for libc, not libm.
28213 (scalbnl): Define as compat symbol for libc here.
28214 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28215 define for [IS_IN (libc)].
28216 (__ldexpl_2): Remove alias.
28217 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28218 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28219 name in long_double_symbol call.
28220 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28221 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28222 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28223 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28224 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28225 Remove macro.
28226 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28227 Define as compat symbol.
28228
28229 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28230
28231 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28232 * sysdeps/unix/sysv/linux/alpha/Makefile
28233 [$(subdir) = csu] (sysdep_routines): Remove rule.
28234
28235 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28236
28237 * sysdeps/generic/libm-alias-double.h: New file.
28238 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28239 * sysdeps/generic/math-type-macros-double.h: Include
28240 <libm-alias-double.h>.
28241 [declare_mgen_alias] (declare_mgen_alias): Define to use
28242 libm_alias_double.
28243 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28244 (M_LIBM_NEED_COMPAT): Remove macro.
28245 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28246 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28247 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28248 code.
28249 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28250 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28251 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28252 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28253 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28254 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28255 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28256 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28257 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28258 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28259 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28260 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28261 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28262 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28263 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28264 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28265 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28266 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28267 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28268 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28269 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28270 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28271 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28272 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28273 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28274 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28275 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28276 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28277 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28278 macro.
28279 (declare_mgen_alias): New macro.
28280 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28281 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28283 (M_LIBM_NEED_COMPAT): Remove macro.
28284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28285 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28286 <first-versions.h>.
28287 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28288 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28289
28290 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28291
28292 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28293 (declare_mgen_alias_2): Remove.
28294 * sysdeps/generic/math-type-macros-double.h
28295 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28296 Likewise.
28297 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28298 alias.
28299 (ldexp): Define with declare_mgen_alias.
28300 (scalbn): Likewise.
28301
28302 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28303
28304 * grp/initgroups.c: Include config.h.
28305 (DEFAULT_CONFIG): New macro.
28306 (internal_getgrouplist): Use DEFAULT_CONFIG.
28307 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28308 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28309 (DEFAULT_DEFCONFIG): New macro.
28310 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28311 * nss/grp-lookup.c: Include config.h
28312 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28313 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28314 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28315 * manual/nss.texi: Update default values section.
28316
28317 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28318
28319 [BZ #21967]
28320 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28321 New.
28322 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28323 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28324 Handle MathVec_Prefer_No_AVX512.
28325 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28326 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28327 is set.
28328
28329 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28330
28331 * posix/sched_primax.c (__sched_get_priority_max): Add
28332 libc_hidden_def.
28333 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28334 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28335 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28336 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28337 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28338 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28339 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28340 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28341 Add aliases.
28342
28343 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28344
28345 * sysdeps/generic/libm-alias-float.h: New file.
28346 * sysdeps/generic/math-type-macros-float.h: Include
28347 <libm-alias-float.h>.
28348 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28349
28350 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28351
28352 [BZ #22093]
28353 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28354 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28355 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28356 (HWCAP_IMPORTANT): Likewise.
28357 (HWCAP_X86_64): New enum.
28358 (HWCAP_X86_AVX512_1): Updated.
28359 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28360 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28361 (modules-names): Add x86_64/tst-x86_64mod-1.
28362 (LDFLAGS-tst-x86_64mod-1.so): New.
28363 ($(objpfx)tst-x86_64-1): Likewise.
28364 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28365 (tst-x86_64-1-clean): Likewise.
28366 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28367 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28368
28369 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28370
28371 * po/sv.po: Update translations.
28372 * po/fr.po: Likewise.
28373
28374 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28375
28376 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28377 seconds.
28378 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28379 seconds.
28380 * elf/rtld-Rules: Fix $(error) use.
28381
28382 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28383
28384 [BZ #14925]
28385 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28386 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28387 * localedata/locales/bn_BD: “Bengali” was still used in some
28388 comments. Change it to “Bangla”.
28389
28390 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28391
28392 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28393
28394 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28395
28396 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28397 thunderx2t99p1 to list of cpu names.
28398 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28399 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28400
28401 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28402
28403 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28404 Use strcmp instead of tunable_is_name.
28405
28406 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28407
28408 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28409 (F_GET_RW_HINT): New macro.
28410 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28411 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28412 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28413 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28414 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28415 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28416 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28417 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28418 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28419
28420 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28421 (F_ADD_SEALS): New macro.
28422 [__USE_GNU] (F_GET_SEALS): Likewise.
28423 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28424 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28425 [__USE_GNU] (F_SEAL_GROW): Likewise.
28426 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28427
28428 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28429
28430 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28431 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28432 * posix/glob_internal.h (__glob_pattern_type):
28433 * posix/glob.c (glob):
28434 * posix/glob_pattern_p.c (__glob_pattern_p):
28435 Use them.
28436
28437 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28438 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28439 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28440 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28441 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28443 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28444 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28445 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28446 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28447 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28448 * sysdeps/wordsize-64/glob.c: Likewise.
28449 * sysdeps/wordsize-64/glob64.c: Likewise.
28450 * sysdeps/wordsize-64/globfree.c: Likewise.
28451 * sysdeps/wordsize-64/globfree64.c: Likewise.
28452 * sysdeps/unix/sysv/linux/glob.c: New file.
28453 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28454 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28455 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28456 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28457 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28458 adds !GLOB_NO_OLD_VERSION as an extra condition.
28459 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28460 using relative path instead of absolute one.
28461 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28462 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28463 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28464 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28465 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28466 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28467
28468 [BZ #1062]
28469 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28470 (glob): Use the same scratch buffer for both getlogin_r and
28471 getpwnam_r. Don’t require preallocation of the login name. This
28472 simplifies storage allocation, and corrects the handling of
28473 long login names.
28474
28475 [BZ #1062]
28476 * posix/glob.c (glob): Port recent patches to platforms
28477 lacking getpwnam_r.
28478 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28479 returns an error number rather than setting errno.
28480
28481 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28482 instead of GCC extension.
28483 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28484 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28485 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28486
28487 [BZ #866]
28488 [BZ #1062]
28489 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28490 * posix/bug-glob1.c: Remove file.
28491 * posix/tst-glob_symlinks.c: New file.
28492 * posix/glob.c (__lstat64): New macro.
28493 (is_dir): New function.
28494 (glob, glob_in_dir): Match symlinks even if they are dangling.
28495 (link_stat, link_exists_p): Remove. All uses removed.
28496
28497 [BZ #1062]
28498 [BZ #19971]
28499 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28500 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28501 All uses removed.
28502
28503 [BZ #1062]
28504 CVE-2017-15671
28505 * posix/Makefile (routines): Add globfree, globfree64, and
28506 glob_pattern_p.
28507 * posix/flexmember.h: New file.
28508 * posix/glob_internal.h: Likewise.
28509 * posix/glob_pattern_p.c: Likewise.
28510 * posix/globfree.c: Likewise.
28511 * posix/globfree64.c: Likewise.
28512 * sysdeps/gnu/globfree64.c: Likewise.
28513 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28514 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28515 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28516 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28517 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28518 * sysdeps/wordsize-64/globfree.c: Likewise.
28519 * sysdeps/wordsize-64/globfree64.c: Likewise.
28520 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28521 [NDEBUG): Remove comments.
28522 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28523 (dirent_type): New type. Use uint_fast8_t not
28524 uint8_t, as C99 does not require uint8_t.
28525 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28526 (struct readdir_result): Use dirent_type. Do not define skip_entry
28527 unless it is needed; this saves a byte on platforms lacking d_ino.
28528 (readdir_result_type, readdir_result_skip_entry):
28529 New functions, replacing ...
28530 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28531 these functions, which were removed. This makes the callers
28532 easier to read. All callers changed.
28533 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28534 (size_add_wrapv, glob_use_alloca): New static functions.
28535 (glob, glob_in_dir): Check for size_t overflow in several places,
28536 and fix some size_t checks that were not quite right.
28537 Remove old code using SHELL since Bash no longer
28538 uses this.
28539 (glob, prefix_array): Separate MS code better.
28540 (glob_in_dir): Remove old Amiga and VMS code.
28541 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28542 separate files.
28543 (glob_in_dir): Do not rely on undefined behavior in accessing
28544 struct members beyond their bounds. Use a flexible array member
28545 instead
28546 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28547 0/1. Caller changed.
28548 (glob): Fix memory leaks.
28549 * posix/glob64 (globfree64): Move to separate file.
28550 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28551 (globfree64): Remove hidden alias.
28552 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28553 oldglob.
28554 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28555 separate file.
28556 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28557 define.
28558 Move compat code to separate file.
28559 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28560 separate file.
28561
28562 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28563
28564 * resolv/tst-resolv-qtypes.c (domain): Changed to
28565 "const char domain[] =".
28566
28567 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28568
28569 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28570 version to 3.1.6.
28571
28572 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28573 (TCP_MD5SIG_EXT): Likewise.
28574 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28575 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28576 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28577
28578 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28579
28580 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28581
28582 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28583
28584 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28585
28586 [BZ #22100]
28587 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28588
28589 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28590
28591 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28592 before assuming that the file is empty. Avoid testing buffer content
28593 when nread == 0.
28594
28595 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28596
28597 [BZ #18858]
28598 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28599 Remove define.
28600 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28601 Likewise.
28602 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28603 Likewise.
28604 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28605 Likewise.
28606 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28607 Likewise.
28608 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28609 Likewise.
28610 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28611 Likewise.
28612
28613 2017-09-06 Florian Weimer <fweimer@redhat.com>
28614
28615 * malloc/dynarray_emplace_enlarge.c
28616 (__libc_dynarray_emplace_enlarge): Add missing else.
28617
28618 2017-09-06 Florian Weimer <fweimer@redhat.com>
28619
28620 [BZ #22096]
28621 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28622 case of failure to obtain the global conf object.
28623
28624 2017-09-06 Florian Weimer <fweimer@redhat.com>
28625
28626 [BZ #22095]
28627 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28628 dynarray allocation failure.
28629
28630 2017-09-06 Florian Weimer <fweimer@redhat.com>
28631
28632 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28633 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28634 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28635 New functions.
28636 (response): Call them. Add 'p', '6' flag processing.
28637 (test_reverse): New function.
28638 (test_get2_any): Call it.
28639 (test_no_inet6): Add 'p' test.
28640 (test_inet6): Likewise.
28641
28642 2017-09-06 Florian Weimer <fweimer@redhat.com>
28643
28644 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28645 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28646 the QNAME.
28647 (test_gai): Adjust query names. Add additional tests.
28648 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28649 test_get2. Adjust query names. Add additional tests.
28650 (test_no_inet6): New function, extracted from threadfunc.
28651 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28652 Add additional tests.
28653
28654 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28655
28656 [BZ #22070]
28657 * localedata/unicode-gen/utf8_gen.py: Set the width for
28658 characters with Prepended_Concatenation_Mark property to 1
28659 * localedata/charmaps/UTF-8: Updated using the improved script.
28660
28661 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28662
28663 [BZ #21750]
28664 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28665 use the range notation for all ranges of neighbouring characters
28666 with the same width.
28667
28668 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28669
28670 * sysdeps/generic/math-type-macros-double.h: Include
28671 <math-svid-compat.h>.
28672 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28673 * sysdeps/generic/math-type-macros-float.h: Include
28674 <math-svid-compat.h>.
28675 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28676 * sysdeps/generic/math-type-macros-ldouble.h: Include
28677 <math-svid-compat.h>.
28678 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28679 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28680 condition.
28681 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28682 * math/w_acosf_compat.c: Likewise.
28683 * math/w_acosh_compat.c: Likewise.
28684 * math/w_acoshf_compat.c: Likewise.
28685 * math/w_acoshl_compat.c: Likewise.
28686 * math/w_acosl_compat.c: Likewise.
28687 * math/w_asin_compat.c: Likewise.
28688 * math/w_asinf_compat.c: Likewise.
28689 * math/w_asinl_compat.c: Likewise.
28690 * math/w_atan2_compat.c: Likewise.
28691 * math/w_atan2f_compat.c: Likewise.
28692 * math/w_atan2l_compat.c: Likewise.
28693 * math/w_atanh_compat.c: Likewise.
28694 * math/w_atanhf_compat.c: Likewise.
28695 * math/w_atanhl_compat.c: Likewise.
28696 * math/w_cosh_compat.c: Likewise.
28697 * math/w_coshf_compat.c: Likewise.
28698 * math/w_coshl_compat.c: Likewise.
28699 * math/w_exp10_compat.c: Likewise.
28700 * math/w_exp10f_compat.c: Likewise.
28701 * math/w_exp10l_compat.c: Likewise.
28702 * math/w_exp2_compat.c: Likewise.
28703 * math/w_exp2f_compat.c: Likewise.
28704 * math/w_exp2l_compat.c: Likewise.
28705 * math/w_fmod_compat.c: Likewise.
28706 * math/w_fmodf_compat.c: Likewise.
28707 * math/w_fmodl_compat.c: Likewise.
28708 * math/w_hypot_compat.c: Likewise.
28709 * math/w_hypotf_compat.c: Likewise.
28710 * math/w_hypotl_compat.c: Likewise.
28711 * math/w_j0_compat.c: Likewise.
28712 * math/w_j0f_compat.c: Likewise.
28713 * math/w_j0l_compat.c: Likewise.
28714 * math/w_j1_compat.c: Likewise.
28715 * math/w_j1f_compat.c: Likewise.
28716 * math/w_j1l_compat.c: Likewise.
28717 * math/w_jn_compat.c: Likewise.
28718 * math/w_jnf_compat.c: Likewise.
28719 * math/w_jnl_compat.c: Likewise.
28720 * math/w_lgamma_r_compat.c: Likewise.
28721 * math/w_lgammaf_r_compat.c: Likewise.
28722 * math/w_lgammal_r_compat.c: Likewise.
28723 * math/w_log10_compat.c: Likewise.
28724 * math/w_log10f_compat.c: Likewise.
28725 * math/w_log10l_compat.c: Likewise.
28726 * math/w_log2_compat.c: Likewise.
28727 * math/w_log2f_compat.c: Likewise.
28728 * math/w_log2l_compat.c: Likewise.
28729 * math/w_log_compat.c: Likewise.
28730 * math/w_logf_compat.c: Likewise.
28731 * math/w_logl_compat.c: Likewise.
28732 * math/w_pow_compat.c: Likewise.
28733 * math/w_powf_compat.c: Likewise.
28734 * math/w_powl_compat.c: Likewise.
28735 * math/w_remainder_compat.c: Likewise.
28736 * math/w_remainderf_compat.c: Likewise.
28737 * math/w_remainderl_compat.c: Likewise.
28738 * math/w_sinh_compat.c: Likewise.
28739 * math/w_sinhf_compat.c: Likewise.
28740 * math/w_sinhl_compat.c: Likewise.
28741 * math/w_sqrt_compat.c: Likewise.
28742 * math/w_sqrtf_compat.c: Likewise.
28743 * math/w_sqrtl_compat.c: Likewise.
28744 * math/w_tgamma_compat.c: Likewise.
28745 * math/w_tgammaf_compat.c: Likewise.
28746 * math/w_tgammal_compat.c: Likewise.
28747 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28748 [LIBM_SVID_COMPAT].
28749 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28750 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28751 [LIBM_SVID_COMPAT].
28752 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28753 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28754 [LIBM_SVID_COMPAT].
28755 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28756 * sysdeps/i386/fpu/w_sqrt.c: New file.
28757 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28758 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28759 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28760 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28761 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28762 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28763 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28764 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28765 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28766 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28767 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28768 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28769 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28770 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28771 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28772 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28773 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28774 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28775 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28776 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28777 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28778 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28779 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28780 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28781 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28782 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28783 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28784 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28785 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28786 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28787 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28788 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28789 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28790 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28791 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28792 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28793 * sysdeps/ia64/fpu/w_log.c: Likewise.
28794 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28795 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28796 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28797 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28798 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28799 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28800 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28801 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28802 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28803 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28804 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28805 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28806 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28807 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28808 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28809 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28810 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28811 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28812 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28813 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28814 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28815 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28816 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28817 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28818 [LIBM_SVID_COMPAT].
28819 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28820 * sysdeps/ieee754/k_standard.c: Likewise.
28821 * sysdeps/ieee754/k_standardf.c: Likewise.
28822 * sysdeps/ieee754/k_standardl.c: Likewise.
28823 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28824 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28825 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28826 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28827 long_double_symbol call on [LIBM_SVID_COMPAT].
28828 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28829 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28830 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28831 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28832 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28833 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28834 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28835 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28836 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28837 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28838 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28839 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28840 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28841 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28842 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28843 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28844 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28845 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28846 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28847 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28848 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28849 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28850
28851 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28852
28853 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28854 * malloc/tst-mallocstate.c: Convert from test-skeleton
28855 to test-driver. Ifdef code using TEST_COMPAT macro.
28856 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28857 * math/test-matherr.c: Likewise.
28858
28859 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28860
28861 [BZ #22086]
28862 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28863 comparing word with byte-swapped constant.
28864
28865 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28866
28867 [BZ #20498]
28868 * locale/iso-639.def: add Miskito.
28869 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28870 * localedata/locales/miq_NI: New file.
28871
28872 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28873
28874 [BZ #18822]
28875 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28876 (__mkdir): Likewise.
28877 * io/chmod.c (__chmod): Add libc_hidden_def.
28878 * io/mkdir.c (__mkdir): Likewise.
28879 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28880 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28881 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28882 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28883
28884 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28885
28886 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28887 version to 4.13.
28888
28889 [BZ #22082]
28890 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28891 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28892
28893 2017-09-04 Florian Weimer <fweimer@redhat.com>
28894
28895 * math/math.h: Issue warning if log is defined.
28896
28897 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28898
28899 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28900 kernel version to 4.13.
28901
28902 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28903
28904 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28905 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28906 parameter.
28907 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28908 just <bits/types.h>.
28909 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28910 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28911 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28912 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28913 * misc/preadv2.c: Include <errno.h>.
28914 * misc/preadv64v2.c: Include <errno.h>.
28915 * misc/pwritev2.c: Include <errno.h>.
28916 * misc/pwritev64v2.c: Include <errno.h>.
28917 * sysdeps/posix/preadv2.c: Include <errno.h>.
28918 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28919 Fix <unistd.h> inclusion.
28920 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28921 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28922 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28923 __strtoul_internal): New functions.
28924 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28925 * sysdeps/posix/system.c: Include <sigsetops.h>.
28926 * sysdeps/mach/hurd/i386/Makefile
28927 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28928 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28929 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28930 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28931 __feraiseexcept_renamed to feraiseexcept instead of
28932 __GI_feraiseexcept.
28933 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28934 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28935 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28936 RWF_NOWAIT): Define to 0 if undefined already.
28937 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28938 boils down to 0.
28939 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28940 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28941
28942 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28943
28944 * manual/math.texi (pow10): Do not document.
28945 (pow10f): Likewise.
28946 (pow10l): Likewise.
28947 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28948 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28949 * math/libm-test-exp10.inc (pow10_test): Remove.
28950 (do_test): Do not call pow10.
28951 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28952 [NO_LONG_DOUBLE] (pow10l): Likewise.
28953 * math/w_exp10f_compat.c (pow10f): Likewise.
28954 * math/w_exp10l_compat.c (pow10l): Likewise.
28955 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28956 (pow10): Make into compat symbol.
28957 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28958 (pow10f): Make into compat symbol.
28959 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28960 (pow10l): Make into compat symbol.
28961 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28962 pow10.
28963 (CFLAGS-nldbl-pow10.c): Remove variable..
28964 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28965 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28966 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28967 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28968 Undefine and redefine.
28969 (pow10l): Make into compat symbol.
28970 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28971 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28972 * sysdeps/arm/libm-test-ulps: Likewise.
28973 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28974 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28975 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28976 * sysdeps/microblaze/libm-test-ulps: Likewise.
28977 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28978 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28979 * sysdeps/nios2/libm-test-ulps: Likewise.
28980 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28981 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28982 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28983 * sysdeps/sh/libm-test-ulps: Likewise.
28984 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28985 * sysdeps/tile/libm-test-ulps: Likewise.
28986 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28987
28988 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28989
28990 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28991
28992 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28993
28994 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28995 "../ChangeLog.old/ChangeLog.8".
28996 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28997 "../ChangeLog.old/ChangeLog.14".
28998
28999 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29000
29001 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29002 Threads Library.
29003
29004 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29005
29006 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29007
29008 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29009
29010 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29011 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29012
29013 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29014
29015 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29016 32 atexit handlers.
29017
29018 2017-09-01 Zack Weinberg <zackw@panix.com>
29019
29020 * math/math.h (HUGE_VAL): Improve commentary.
29021
29022 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29023 Andreas Schwab <schwab@suse.de>
29024
29025 [BZ #21530]
29026 * include/stdio.h (__gen_tempfd): New function.
29027 * stdio-common/Makefile (routines): Add gentempfd.
29028 * stdio-common/gentempfd.c: New file.
29029 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29030 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29031 unnamed file first.
29032
29033 2017-09-01 Florian Weimer <fweimer@redhat.com>
29034
29035 [BZ #21915]
29036 [BZ #21922]
29037 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29038 result to determine success or failure, not the errno value.
29039 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29040 (tst-nss-files-hosts-erange): Link with -ldl.
29041 * nss/tst-nss-files-hosts-erange.c: New file.
29042 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29043 (do_test): Add NO_DATA tests.
29044 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29045 (do_test): Call it.
29046
29047 2017-09-01 Florian Weimer <fweimer@redhat.com>
29048
29049 [BZ #21922]
29050 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29051 coming from gethostbyname2_r.
29052
29053 2017-09-01 Florian Weimer <fweimer@redhat.com>
29054
29055 * support/namespace.h (struct support_chroot_configuration): Add
29056 hosts, host_conf.
29057 (struct support_chroot): Add path_hosts, path_host_conf.
29058 * support/support_chroot.c (write_file): New function.
29059 (support_chroot_create): Call it to process /etc/resolv.conf,
29060 /etc/hosts, /etc/host.conf.
29061 (support_chroot_free): Update.
29062
29063 2017-09-01 Florian Weimer <fweimer@redhat.com>
29064
29065 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29066 status indicates it is set.
29067
29068 2017-09-01 Florian Weimer <fweimer@redhat.com>
29069
29070 [BZ #20532]
29071 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29072 function lookup failures more reliable.
29073
29074 2017-09-01 Florian Weimer <fweimer@redhat.com>
29075
29076 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29077 (getcanonname): Likewise.
29078 (gaih_inet): Likewise.
29079
29080 2017-09-01 Florian Weimer <fweimer@redhat.com>
29081
29082 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29083 (getcanonname): Likewise.
29084 (gaih_inet): Likewise.
29085
29086 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29087 Richard Henderson <rth@twiddle.net>
29088
29089 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29090 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29091 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29092 (IREG_SIZE, OREG_SIZE): New macros.
29093 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29094 (IREG_SIZE, OREG_SIZE): New macros.
29095 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29096 (IREG_SIZE): New macro.
29097 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29098 (IREG_SIZE): New macro.
29099 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29100 New includes.
29101 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29102 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29103 (__CONCATX): Handle exceptions correctly on large values that may
29104 set FE_INVALID.
29105 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29106 Initialize if not already set.
29107 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29108
29109 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29110
29111 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29112 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29113 Likewise.
29114 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29115 Likewise.
29116 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29117 Likewise.
29118 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29119 Likewise.
29120 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29121 Likewise.
29122 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29123 Likewise.
29124 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29125 Likewise.
29126 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29127 (NO_CANCELLATION): Likewise.
29128 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29129 Likewise.
29130 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29131 Likewise.
29132 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29133 Likewise.
29134 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29135 (NO_CANCELLATION): Likewise.
29136 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29137 (NO_CANCELLATION): Likewise.
29138 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29139 Likewise
29140 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29141 Likewise.
29142 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29143 Likewise.
29144 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29145 Likewise.
29146 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29147 hidden prototype.
29148 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29149 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29150
29151 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29152
29153 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29154 in resolver call.
29155
29156 2017-08-31 Florian Weimer <fweimer@redhat.com>
29157
29158 * include/libc-symbols.h (internal_function): Remove.
29159
29160 2017-08-31 Florian Weimer <fweimer@redhat.com>
29161
29162 * stdlib/fmtmsg.c (internal_addseverity): Remove
29163 internal_function.
29164
29165 2017-08-31 Florian Weimer <fweimer@redhat.com>
29166
29167 * stdio-common/printf_fp.c (group_number): Remove
29168 internal_function.
29169 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29170
29171 2017-08-31 Florian Weimer <fweimer@redhat.com>
29172
29173 * posix/fnmatch.c (internal_function): Remove definition.
29174 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29175 * posix/regcomp.c (peek_token, init_word_char)
29176 (duplicate_node_closure, fetch_token, peek_token)
29177 (peek_token_bracket, build_range_exp, build_collating_symbol):
29178 Likewise.
29179 * posix/regex_internal.c (re_string_construct_common)
29180 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29181 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29182 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29183 (re_string_translate_buffer, re_string_reconstruct)
29184 (re_string_peek_byte_case, re_string_fetch_byte_case)
29185 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29186 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29187 (re_node_set_add_intersect, re_node_set_init_union)
29188 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29189 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29190 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29191 (re_acquire_state_context): Likewise.
29192 * posix/regex_internal.h (internal_function): Remove definition.
29193 (re_string_realloc_buffers, build_wcs_buffer)
29194 (build_wcs_upper_buffer, build_upper_buffer)
29195 (re_string_translate_buffer, re_string_context_at)
29196 (re_string_char_size_at, re_string_wchar_at)
29197 (re_string_elem_size_at): Likewise.
29198 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29199 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29200 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29201 (re_search_internal, re_search_2_stub, re_search_stub)
29202 (re_copy_regs, prune_impossible_nodes, check_matching)
29203 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29204 (free_fail_stack_return, sift_states_iter_mb)
29205 (sift_states_backward, build_sifted_states)
29206 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29207 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29208 (check_subexp_limits, sift_states_bkref, merge_state_array)
29209 (find_recover_state, transit_state, merge_state_with_log)
29210 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29211 (transit_state_mb, transit_state_bkref, get_subexp)
29212 (get_subexp_sub, find_subexp_node, check_arrival)
29213 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29214 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29215 (check_node_accept_bytes, find_collation_sequence_value)
29216 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29217 (acquire_init_state_context, check_halt_node_context)
29218 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29219 (sub_epsilon_src_nodes): Likewise.
29220 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29221 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29222 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29223 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29224 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29225 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29226 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29227 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29228 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29229 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29230 (PREADV): Likewise.
29231 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29232 (PREADV): Likewise.
29233 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29234 (PWRITEV): Likewise.
29235 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29236 (PWRITEV): Likewise.
29237 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29238 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29239
29240 2017-08-31 Florian Weimer <fweimer@redhat.com>
29241
29242 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29243 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29244 Remove internal_function.
29245 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29246 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29247 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29248 (__deallocate_stack, __libc_pthread_init)
29249 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29250 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29251 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29252 Likewise.
29253 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29254 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29255 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29256 Likewise.
29257 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29258 (__pthread_mutex_unlock_usercnt): Likewise.
29259
29260 2017-08-31 Florian Weimer <fweimer@redhat.com>
29261
29262 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29263 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29264 (fts_safe_changedir): Remove internal_function.
29265 * io/ftw.c (internal_function): Remove definition.
29266 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29267
29268 2017-08-31 Florian Weimer <fweimer@redhat.com>
29269
29270 * inet/deadline.c (__deadline_current_time)
29271 (__deadline_from_timeval, __deadline_to_ms): Remove
29272 internal_function.
29273 * inet/getnameinfo.c (nrl_domainname): Likewise.
29274 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29275 * inet/inet6_option.c (add_pad): Likewise.
29276 * inet/net-internal.h (__deadline_current_time)
29277 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29278 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29279 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29280 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29281
29282 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29283
29284 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29285 include <bits/nan.h>.
29286 * math/Makefile (headers): Remove bits/nan.h.
29287 * bits/nan.h: Remove.
29288 * sysdeps/ieee754/bits/nan.h: Likewise.
29289 * sysdeps/mips/bits/nan.h: Likewise.
29290
29291 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29292 not include <bits/inf.h>.
29293 * math/Makefile (headers): Remove bits/inf.h.
29294 * bits/inf.h: Remove.
29295 * sysdeps/ieee754/bits/inf.h: Likewise.
29296
29297 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29298 bits/huge_vall.h or bits/huge_val_flt128.h.
29299 (HUGE_VAL): Define directly here.
29300 [__USE_ISOC99] (HUGE_VALF): Likewise.
29301 [__USE_ISOC99] (HUGE_VALL): Likewise.
29302 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29303 (HUGE_VAL_F128): Likewise.
29304 * math/Makefile (headers): Remove bits/huge_val.h,
29305 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29306 * bits/huge_val.h: Remove.
29307 * bits/huge_val_flt128.h: Likewise.
29308 * bits/huge_valf.h: Likewise.
29309 * bits/huge_vall.h: Likewise.
29310 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29311 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29312 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29313 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29314 * sysdeps/sh/bits/huge_val.h: Likewise.
29315 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29316 * sysdeps/x86/bits/huge_vall.h: Likewise.
29317
29318 2017-08-31 Florian Weimer <fweimer@redhat.com>
29319
29320 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29321 internal_function.
29322 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29323 Likewise.
29324 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29325 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29326 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29327 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29328 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29329 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29330 * elf/dl-libc.c (dlerror_run): Likewise.
29331 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29332 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29333 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29334 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29335 Likewise.
29336 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29337 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29338 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29339 * elf/dl-profile.c (_dl_start_profile): Likewise.
29340 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29341 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29342 Likewise.
29343 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29344 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29345 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29346 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29347 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29348 (_dl_allocate_tls_storage): Likewise.
29349 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29350 (_dl_check_all_versions): Likewise.
29351 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29352 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29353 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29354 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29355 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29356 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29357 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29358 internal_function from __dl_start.
29359 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29360 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29361 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29362 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29363 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29364 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29365 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29366 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29367 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29368 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29369 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29370 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29371 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29372 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29373 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29374 Likewise.
29375 (struct rtld_global_ro): Remove internal_function from the
29376 _dl_lookup_symbol_x member.
29377 (_dl_symbol_value): Remove. No longer defined anywhere.
29378 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29379 internal_function.
29380 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29381 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29382 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29383 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29384 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29385 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29386 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29387 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29388 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29389 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29390 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29391 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29392
29393 2017-08-31 Florian Weimer <fweimer@redhat.com>
29394
29395 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29396 Remove internal_function.
29397 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29398 Likewise.
29399 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29400 Likewise.
29401
29402 2017-08-31 Florian Weimer <fweimer@redhat.com>
29403
29404 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29405 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29406 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29407
29408 2017-08-31 Florian Weimer <fweimer@redhat.com>
29409
29410 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29411 (__gai_enqueue_request): Remove internal_function.
29412 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29413 (__gai_remove_request, __gai_notify, __gai_notify_only)
29414 (__gai_sigqueue): Likewise.
29415 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29416 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29417 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29418 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29419 Likewise.
29420
29421 2017-08-31 Florian Weimer <fweimer@redhat.com>
29422
29423 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29424 * include/dirent.h (__opendirat, __getdents, __getdents64)
29425 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29426 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29427 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29428 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29429 Likewise.
29430 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29431
29432 2017-08-31 Florian Weimer <fweimer@redhat.com>
29433
29434 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29435 internal_function.
29436 (GETCWD_RETURN_TYPE): Likewise.
29437
29438 2017-08-31 Florian Weimer <fweimer@redhat.com>
29439
29440 * include/time.h (__tz_compute, __strptime_internal): Remove
29441 internal_function.
29442 * time/strptime_l.c (__strptime_internal): Likewise.
29443 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29444
29445 2017-08-31 Florian Weimer <fweimer@redhat.com>
29446
29447 * iconv/gconv.c (__gconv): Remove internal_function.
29448 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29449 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29450 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29451 (__gconv_release_cache): Likewise.
29452 * iconv/gconv_close.c (__gconv_close): Likewise.
29453 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29454 (read_conf_file, __gconv_get_path): Likewise.
29455 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29456 (__gconv_release_step, gen_steps, increment_counter)
29457 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29458 (__gconv_close_transform, free_modules_db): Likewise.
29459 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29460 Likewise.
29461 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29462 (__gconv_find_transform, __gconv_lookup_cache)
29463 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29464 (__gconv_close_transform, __gconv_release_cache)
29465 (__gconv_loaded_object, __gconv_release_shlib)
29466 (__gconv_compare_alias): Likewise.
29467 * iconv/gconv_open.c (__gconv_open): Likewise.
29468 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29469 * iconv/iconvconfig.c (add_module): Likewise.
29470 * intl/dcigettext.c (plural_lookup, guess_category_value)
29471 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29472 * intl/eval-plural.h (plural_eval): Likewise.
29473 * intl/finddomain.c (_nl_find_domain): Likewise.
29474 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29475 (_nl_load_domain, _nl_find_msg): Likewise.
29476 (internal_function): Remove definition.
29477 * intl/loadinfo.h (internal_function): Likewise.
29478 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29479 internal_function.
29480 * intl/localealias.c (internal_function): Remove definition.
29481 (read_alias_file): Remove internal_function.
29482 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29483 * intl/plural-exp.h (internal_function): Remove definition.
29484 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29485 internal_function.
29486 * intl/plural.c: Regenerate.
29487 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29488 * locale/coll-lookup.c (__collidx_table_lookup)
29489 (__collseq_table_lookup): Likewise.
29490 * locale/coll-lookup.h (__collidx_table_lookup)
29491 (__collseq_table_lookup): Likewise.
29492 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29493 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29494 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29495 (_nl_unload_locale): Likewise.
29496 * locale/localeinfo.h (struct __locale_data): Remove
29497 internal_function from cleanup member.
29498 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29499 (_nl_remove_locale, _nl_load_locale_from_archive)
29500 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29501 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29502 (_nl_cleanup_time): Remove internal_function.
29503 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29504 (_nl_parse_alt_digit): Likewise.
29505 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29506 (_nl_select_era_entry): Likewise.
29507 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29508 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29509 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29510 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29511 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29512
29513 2017-08-31 Florian Weimer <fweimer@redhat.com>
29514
29515 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29516 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29517 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29518 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29519 Likewise.
29520 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29521 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29522 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29523 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29524 Likewise.
29525 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29526
29527 2017-08-31 Florian Weimer <fweimer@redhat.com>
29528
29529 * misc/getttyent.c (skip, value): Remove internal_function.
29530 * misc/syslog.c (openlog_internal): Likewise.
29531 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29532
29533 2017-08-31 Florian Weimer <fweimer@redhat.com>
29534
29535 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29536 (__nss_rewrite_field): Remove internal_function.
29537 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29538 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29539 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29540 * nss/nsswitch.c (nss_parse_file, nss_getline)
29541 (nss_parse_service_list, nss_new_service): Likewise.
29542 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29543 * nss/valid_field.c (__nss_valid_field): Likewise.
29544 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29545
29546 2017-08-31 Florian Weimer <fweimer@redhat.com>
29547
29548 * malloc/arena.c (__malloc_fork_lock_parent)
29549 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29550 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29551 internal_function from defintions.
29552 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29553 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29554 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29555 internal_function from declarations.
29556 * malloc/malloc.c (internal_function): Do not define.
29557 (mem2mem_check): Remove internal_function from declaration.
29558 (munmap_chunk, mremap_chunk): Remove internal_function.
29559 * malloc/mtrace.c (tr_where): Likewise.
29560
29561 2017-08-31 Florian Weimer <fweimer@redhat.com>
29562
29563 * include/rpc/pmap_clnt.h (__get_socket): Remove
29564 internal_function.
29565 * sunrpc/auth_des.c (synchronize): Likewise.
29566 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29567 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29568 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29569 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29570 (key_call): Likewise.
29571 * sunrpc/pm_getport.c (__get_socket): Likewise.
29572 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29573 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29574 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29575 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29576 (invalidate): Likewise.
29577 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29578 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29579 (set_input_fragment, get_input_bytes): Likewise.
29580
29581 2017-08-31 Florian Weimer <fweimer@redhat.com>
29582
29583 * malloc/malloc.c (_int_free): Remove locked variable and related
29584 asserts.
29585
29586 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29587
29588 [BZ #22051]
29589 * Makerules (build-module-helper-objlist): Filter out
29590 $(elf-objpfx)sofini.os.
29591 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29592 needed.
29593
29594 2017-08-31 Florian Weimer <fweimer@redhat.com>
29595
29596 * libio/fcloseall.c: Assume weak_alias is defined.
29597 * libio/feof.c: Likewise.
29598 * libio/fileno.c: Likewise.
29599 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29600 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29601 definitions.
29602 (_IO_file_open): Call __open directly.
29603 (_IO_new_file_sync): Assume ESPIPE is defined.
29604 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29605 (_IO_new_file_write): Call __write directly.
29606 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29607 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29608 * libio/genops.c: Assume _LIBC is defined.
29609 (save_for_backup): Remove internal_function.
29610 * libio/getc.c: Assume weak_alias is defined.
29611 * libio/getwc.c: Likewise.
29612 * libio/iofclose.c: Assume _LIBC is defined.
29613 * libio/iofdopen.c: Likewise.
29614 (_IO_fcntl): Remove macro definition.
29615 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29616 Call __fcntl directly.
29617 * libio/iofflush.c: Assume weak_alias is defined.
29618 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29619 defined.
29620 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29621 * libio/iofgets.c: Likewise.
29622 * libio/iofopen.c: Assume _LIBC is defined.
29623 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29624 * libio/iofputs.c: Assume weak_alias is defined.
29625 * libio/iofread.c: Likewise.
29626 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29627 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29628 * libio/ioftell.c: Assume weak_alias is defined.
29629 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29630 * libio/iofwide.c: Assume _LIBC is defined.
29631 (_IO_fwide): Drop SHARED conditional because it is implied by
29632 SHLIB_COMPAT.
29633 * libio/iofwrite.c: Assume weak_alias is defined.
29634 * libio/iogetdelim.c: Likewise.
29635 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29636 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29637 (_IO_getwline): Call __wmemcpy directly.
29638 * libio/iopopen.c: Assume _LIBC is defined.
29639 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29640 (_IO_close): Remove macro definitions.
29641 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29642 _exit directly.
29643 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29644 directly.
29645 * libio/ioputs.c: Assume weak_alias is defined.
29646 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29647 * libio/iosetbuffer.c: Assume weak_alias is defined.
29648 * libio/iosetvbuf.c: Likewise.
29649 * libio/ioungetc.c: Likewise.
29650 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29651 libc_hidden_def, libc_hidden_weak, NULL are defined.
29652 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29653 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29654 defined.
29655 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29656 definitions.
29657 (_IO_old_file_init_internal): Drop SHARED conditional because it
29658 is implied by SHLIB_COMPAT.
29659 (_IO_old_file_fopen): Call __open directly.
29660 (_IO_old_file_sync): Assume ESPIPE is defined.
29661 (_IO_old_file_write): Call __write directly.
29662 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29663 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29664 Call __fcntl directly.
29665 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29666 (_IO_old_fgetpos): Assume EIO is defined.
29667 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29668 (_IO_old_fgetpos64): Assume EIO is defined.
29669 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29670 (_IO_old_fsetpos): Assume EIO is defined.
29671 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29672 (_IO_old_fsetpos64): Assume EIO is defined.
29673 * libio/oldiopopen.c: Assume _LIBC is defined.
29674 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29675 (_IO_close): Remove macro definitions.
29676 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29677 directly.
29678 (_IO_old_proc_close): Call __close, __waitpid directly.
29679 * libio/put.c: Assume weak_alias is defined.
29680 * libio/stdfiles.c: Assume _LIBC is defined.
29681 * libio/stdio.c: Likewise.
29682 * libio/wfileops.c: Likewise.
29683 (_IO_wfile_sync): Assume ESPIPE is defined.
29684 * libio/wgenops.c: Assume _LIBC is defined.
29685 (save_for_wbackup): Remove internal_function.
29686
29687 2017-08-31 Florian Weimer <fweimer@redhat.com>
29688
29689 * malloc/malloc.c (top_check): Change return type to void. Remove
29690 internal_function.
29691 * malloc/hooks.c (top_check): Likewise.
29692 (malloc_check, realloc_check, memalign_check): Adjust.
29693
29694 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29695
29696 [BZ #21457]
29697 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29698 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29699 sigcontext and namespace requirements.
29700 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29701 * sysdeps/m68k/sys/ucontext.h: Likewise.
29702 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29703 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29704 <bits/sigcontext.h>.
29705 (__ctx): Define earlier.
29706 (mcontext_t): Define structure contents rather than using struct
29707 sigcontext.
29708 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29709 __glibc_reserved1 instead of __reserved.
29710 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29711 <bits/sigcontext.h>.
29712 (__ctx): Define earlier.
29713 (mcontext_t): Define structure contents rather than using struct
29714 sigcontext.
29715 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29716 mcontext_t instead of struct sigcontext.
29717 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29718 <bits/sigcontext.h>.
29719 (__ctx): Define earlier.
29720 (mcontext_t): Define structure contents rather than using struct
29721 sigcontext.
29722 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29723 <bits/sigcontext.h>.
29724 (__ctx): Define earlier.
29725 (mcontext_t): Define structure contents rather than using struct
29726 sigcontext.
29727 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29728 mcontext_t instead of struct sigcontext.
29729 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29730 mcontext_t instead of struct sigcontext.
29731 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29732 <bits/sigcontext.h>.
29733 (__ctx): New macro.
29734 (struct __ia64_fpreg_mcontext): New type.
29735 (mcontext_t): Define structure contents rather than using struct
29736 sigcontext.
29737 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29738 (uc_sigmask): Define using __ctx.
29739 (uc_stack): Likewise.
29740 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29741 <bits/sigcontext.h>.
29742 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29743 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29744 <bits/sigcontext.h>.
29745 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29746 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29747 <bits/sigcontext.h>.
29748 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29749 <bits/sigcontext.h>.
29750 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29751 <bits/sigcontext.h>.
29752 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29753 <bits/sigcontext.h>.
29754 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29755 <bits/sigcontext.h>.
29756 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29757 <bits/sigcontext.h>.
29758 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29759 <bits/sigcontext.h>.
29760 (__ctx): Define earlier.
29761 (mcontext_t): Define structure contents rather than using struct
29762 sigcontext.
29763 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29764 <bits/sigcontext.h>. Include <bits/types.h>.
29765 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29766 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29767 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29768 (test-xfail-UNIX98/signal.h/conform): Likewise.
29769 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29770 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29771 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29772 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29773 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29774 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29775 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29776 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29777 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29778
29779 2017-08-30 Florian Weimer <fweimer@redhat.com>
29780
29781 * malloc/dynarray_emplace_enlarge.c
29782 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29783 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29784 * malloc/tst-dynarray.c (test_long_overflow): New function.
29785 (do_test): Call it.
29786
29787 2017-08-30 Florian Weimer <fweimer@redhat.com>
29788
29789 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29790 (set_arena_corrupt): Remove definitions.
29791 (mtrim): Do not check for corrupt arena.
29792 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29793 Likewise.
29794
29795 2017-08-30 Florian Weimer <fweimer@redhat.com>
29796
29797 [BZ #21754]
29798 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29799 check_action.
29800 (ptmalloc_init): Do not set or use check_action.
29801 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29802 call to malloc_printerr. Remove return statement.
29803 (free_check): Likewise. Remove arena unlock.
29804 (top_check): Update comment. Adjust call to malloc_printerr.
29805 Remove heap repair code.
29806 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29807 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29808 (sysmalloc): Adjust call to malloc_printerr.
29809 (munmap_chunk, __libc_realloc): Likewise. Remove return
29810 statement.
29811 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29812 Remove errout label and corresponding gotos.
29813 (_int_free): Likewise. Remove arena unlock.
29814 (do_set_mallopt_check): Do not set check_action.
29815 (malloc_printerr): Adjust parameter list. Do not mark arena as
29816 corrupt.
29817 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29818 comment.
29819 * manual/probes.texi (Memory Allocation Probes): Remove
29820 memory_mallopt_check_action.
29821
29822 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29823
29824 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29825 Use pointer to uint64_t instead of long int for sp.
29826
29827 2017-08-30 Florian Weimer <fweimer@redhat.com>
29828
29829 [BZ #21754]
29830 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29831 without printing a backtrace. Do not leak any information in the
29832 error message.
29833 * manual/memory.texi (Heap Consistency Checking): Update.
29834 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29835
29836 2017-08-30 Florian Weimer <fweimer@redhat.com>
29837
29838 Do not scale NPTL tests with available number of CPUs.
29839 * nptl/tst-cond16.c (count): Set to constant value of 8.
29840 * nptl/tst-cond18.c (count): Likewise.
29841
29842 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29843
29844 [BZ #22035]
29845 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29846 Define to take a second argument that is a macro that
29847 concatentates a suffix, not the suffix itself.
29848 (__CONCAT_d): New macro.
29849 (__CONCAT_f): Likewise.
29850 (__CONCAT_l): Likewise.
29851
29852 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29853
29854 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29855 by child.
29856
29857 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29858 Aurelien Jarno <aurelien@aurel32.net>
29859 Maciej W. Rozycki <macro@imgtec.com>
29860
29861 [BZ #21956]
29862 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29863 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29864 `mips16-syscall6' and `mips16-syscall7'.
29865 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29866 (CFLAGS-mips16-syscall7.c): Remove.
29867 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29868 Remove `__mips16_syscall5', `__mips16_syscall6' and
29869 `__mips16_syscall7'.
29870 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29871 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29872 `__mips_syscall_return'.
29873 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29874 (__mips16_syscall1): Likewise.
29875 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29876 (__mips16_syscall2): Likewise.
29877 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29878 (__mips16_syscall3): Likewise.
29879 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29880 (__mips16_syscall4): Likewise.
29881 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29882 Remove.
29883 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29884 Remove.
29885 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29886 Remove.
29887 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29888 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29889 `__mips16_syscall5'. Remove prototype.
29890 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29891 `__mips16_syscall6'. Remove prototype.
29892 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29893 `__mips16_syscall7'. Remove prototype.
29894 (__nomips16, __mips16_syscall_return): Move to...
29895 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29896 (__nomips16, __mips_syscall_return): ... here.
29897 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29898 `__mips16_syscall_return' to `__mips_syscall_return'.
29899 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29900 `internal_syscall##nr'.
29901 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29902 `internal_syscall##nr'.
29903 (FORCE_FRAME_POINTER): Remove.
29904 (__mips_syscall5): New prototype.
29905 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29906 (__mips_syscall6): New prototype.
29907 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29908 (__mips_syscall7): New prototype.
29909 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29910 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29911 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29912 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29913 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29914 (sysdep_routines): Add libc-do-syscall.
29915 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29916 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29917
29918 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29919
29920 [BZ #21672]
29921 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29922 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29923 (advise_stack_range): New function.
29924 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29925 stack non required to advise_stack_range at allocatestack.c
29926
29927 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29928
29929 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29930
29931 2017-08-29 Florian Weimer <fweimer@redhat.com>
29932
29933 [BZ #22026]
29934 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29935 __end_fct. Mangle __end_fct after setting it to NULL.
29936 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29937 (modules-names, modules-names-tests): Add
29938 tst-gconv-init-failure-mod.
29939 (gconv-modules): New target.
29940 (tst-gconv-init-failure-mod.so): Link against libsupport.
29941 (tst-gconv-init-failure): Depend on gconv-modules,
29942 tst-gconv-init-failure-mod.so.
29943 * iconv/tst-gconv-init-failure-mod.c: New file.
29944 * iconv/tst-gconv-init-failure.c: Likewise.
29945 * iconv/test-gconv-modules: Likewise.
29946
29947 2017-08-29 Florian Weimer <fweimer@redhat.com>
29948
29949 [BZ #22025]
29950 * iconv/gconv_db.c (free_derivation): Remove redundant
29951 parentheses.
29952 (gen_steps): Unconditionally mangle __btowc_fct after
29953 initialization.
29954 (increment_counter): Likewise. Do not call init_fct for internal
29955 modules.
29956
29957 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29958
29959 [BZ #22028]
29960 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29961 (_MSUF_): Remove macro.
29962 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29963 Likewise.
29964 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29965 (__REDIRFROM_X): New macro.
29966 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29967 Likewise.
29968 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29969 (__REDIRTO_X): Likewise.
29970 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29971 arguments.
29972 (__MATH_REDIRCALL_2): Likewise.
29973 (__MATH_REDIRCALL_INTERNAL): Likewise.
29974 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29975 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29976 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29977 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29978 * math/test-finite-macros.c: New file.
29979 * math/Makefile (tests): Add test-finite-macros.
29980 (CFLAGS-test-finite-macros.c): New variable.
29981
29982 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29983 Jeff Law <law@redhat.com>
29984
29985 [BZ #22025]
29986 Mangle NULL pointers in iconv/gconv.
29987 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29988 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29989 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29990 is non-NULL before demangling the end_fct. Check for NULL
29991 end_fct after demangling.
29992 (__gconv_release_step): Demangle the end_fct before checking
29993 it for NULL. Remove assert on __shlibc_handle != NULL.
29994 (gen_steps): Don't check btowc_fct for NULL before mangling.
29995 Demangle init_fct before checking for NULL.
29996 (increment_counter): Likewise.
29997 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29998 end_fct for NULL before mangling.
29999 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30000 for NULL.
30001
30002 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30003
30004 [BZ #21971]
30005 * locale/iso-639.def: add Morisyen.
30006
30007 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30008
30009 [BZ #21930]
30010 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30011 (iszero): New C++ implementation that does not use
30012 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30013 signaling nans are enabled, since __builtin_types_compatible_p
30014 is a C-only feature.
30015 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30016 defined, include ieee754_float128.h for access to the union and
30017 member ieee854_float128.ieee.
30018 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30019 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30020 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30021 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30022 options of test-math-zero on powerpc64le.
30023
30024 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30025
30026 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30027 Change double to float.
30028
30029 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30030
30031 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30032 unconditional.
30033 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30034 conditional code; define contents only for [LIBM_SVID_COMPAT].
30035
30036 2017-08-28 Florian Weimer <fweimer@redhat.com>
30037
30038 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30039 (abi-lp64_be-options): Remove.
30040 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30041 (abi-hard-options): Likewise.
30042 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30043 (abi-o32_hard-options, abi-o32_soft_2008-options)
30044 (abi-o32_hard_2008-options, abi-n32_soft-options)
30045 (abi-n32_hard-options, abi-n32_soft_2008-options)
30046 (abi-n32_hard_2008-options, abi-n64_soft-options)
30047 (abi-n64_hard-options, abi-n64_soft_2008-options)
30048 (abi-n64_hard_2008-options): Likewise.
30049 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30050 (abi-64-v1-options, abi-64-v2-options): Likewise.
30051 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30052 (abi-64-options): Likewise.
30053 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30054 (abi-64-options): Likewise.
30055 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30056 (abi-64-options): Likewise.
30057 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30058 (abi-64-options, abi-x32-options): Likewise.
30059
30060 2017-08-28 Florian Weimer <fweimer@redhat.com>
30061
30062 Store supported list of SYS_* system calls in the source tree.
30063 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30064 (bits/syscall.h): Generate from list file.
30065 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30066 [$(subdir) = misc] (tests): Add tst-syscall-list.
30067 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30068 [$(subdir) = misc] (tst-syscall-list-macros.list)
30069 [$(subdir) = misc] (tst-syscall-list-nr.list)
30070 (tst-syscall-list-sys.list): Helper targets for new
30071 tst-syscall-list test.
30072 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30073 tst-syscall-list.sh.
30074 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30075 target. Do not include bits/syscall.d.
30076 [$(subdir) = misc] (generated): Do not update.
30077 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30078 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30079 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30080 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30081
30082 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30083
30084 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30085 (tst-cxa_atexit, tst-on_exit): Likewise.
30086 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30087 tst-cxa_atexit, and tst-on_exit.
30088 * stdlib/tst-atexit-common.c: New file.
30089 * stdlib/tst-atexit.c: New file.
30090 * stdlib/tst-at_quick_exit.c: New file.
30091 * stdlib/tst-cxa_atexit.c: New file.
30092 * stdlib/tst-on_exit.c: New file.
30093
30094 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30095
30096 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30097 * mach/stack_chk_fail_local.c: New file.
30098 * hurd/stack_chk_fail_local.c: New file.
30099 * mach/Machrules ($(interface-library)-routines): Add
30100 stack_chk_fail_local.
30101 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30102 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30103 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30104 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30105 * hurd/Makefile (CFLAGS-hurdstartup.o,
30106 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30107
30108 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30109
30110 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30111 (index_cpu_*, index_arch_*): Removed.
30112
30113 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30114
30115 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30116 Use uint64_t instead of unsigned long.
30117
30118 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30119
30120 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30121 [__HAVE_DISTINCT_FLOAT128].
30122
30123 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30124 of <bits/math-finite.h>.
30125 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30126 inclusion of <bits/math-finite.h>.
30127 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30128 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30129 __NO_LONG_DOUBLE_MATH].
30130 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30131 (__MATH_REDIRCALL_2): Likewise.
30132 (__MATH_REDIRCALL_INTERNAL): Likewise.
30133 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30134 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30135 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30136
30137 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30138 Remove file.
30139 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30140 Likewise.
30141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30142 Likewise.
30143 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30144 Likewise.
30145 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30146 Likewise.
30147 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30148 Likewise.
30149 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30150 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30151 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30152 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30154 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30155 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30156 w_sqrtf_compat-ppc32.
30157
30158 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30159
30160 * math/math.h [defined __cplusplus] (issignaling): In the long
30161 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30162 is not defined. Call __issignaling, otherwise.
30163
30164 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30165
30166 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30167 syscall definitions and replace __builtin_expect with __glibc_likely.
30168 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30169 syscall.
30170 (SYSCALL_CANCELLABLE): Removedefinition
30171 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30172 definition.
30173 (PSEUDO_END): Likewise.
30174 [IS_IN (libpthread)] (CENABLE): Likewise.
30175 [IS_IN (libpthread)] (CDISABLE): Likewise.
30176 [IS_IN (libc)] (CENABLE): Likewise.
30177 [IS_IN (libc)] (CENABLE): Likewise.
30178 [IS_IN (librt)] (CDISABLE): Likewise.
30179 [IS_IN (librt)] (CDISABLE): Likewise.
30180 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30181 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30182 definition.
30183 (PSEUDO_END): Likewise.
30184 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30185 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30186 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30187 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30188 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30189 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30190 (CENABLE): Likewise.
30191 (CDISABLE): Likewise.
30192 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30193 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30194 defintion.
30195 (PSEUDO_END): Likewise.
30196 [IS_IN (libpthread)] (CENABLE): Likewise.
30197 [IS_IN (libpthread)] (CDISABLE): Likewise.
30198 [IS_IN (libc)] (CENABLE): Likewise.
30199 [IS_IN (libc)] (CENABLE): Likewise.
30200 [IS_IN (librt)] (CDISABLE): Likewise.
30201 [IS_IN (librt)] (CDISABLE): Likewise.
30202 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30203 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30204 definition.
30205 (PSEUDO_END): Likewise.
30206 [IS_IN (libpthread)] (CENABLE): Likewise.
30207 [IS_IN (libpthread)] (CDISABLE): Likewise.
30208 [IS_IN (libc)] (CENABLE): Likewise.
30209 [IS_IN (libc)] (CENABLE): Likewise.
30210 [IS_IN (librt)] (CDISABLE): Likewise.
30211 [IS_IN (librt)] (CDISABLE): Likewise.
30212 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30213 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30214 definition.
30215 (PSEUDO_END): Likewise.
30216 [IS_IN (libpthread)] (CENABLE): Likewise.
30217 [IS_IN (libpthread)] (CDISABLE): Likewise.
30218 [IS_IN (libc)] (CENABLE): Likewise.
30219 [IS_IN (libc)] (CENABLE): Likewise.
30220 [IS_IN (librt)] (CDISABLE): Likewise.
30221 [IS_IN (librt)] (CDISABLE): Likewise.
30222 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30223 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30224 definition.
30225 (PSEUDO_END): Likewise.
30226 [IS_IN (libpthread)] (CENABLE): Likewise.
30227 [IS_IN (libpthread)] (CDISABLE): Likewise.
30228 [IS_IN (libc)] (CENABLE): Likewise.
30229 [IS_IN (libc)] (CENABLE): Likewise.
30230 [IS_IN (librt)] (CDISABLE): Likewise.
30231 [IS_IN (librt)] (CDISABLE): Likewise.
30232 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30233 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30234 definition.
30235 (PSEUDO_END): Likewise.
30236 [IS_IN (libpthread)] (CENABLE): Likewise.
30237 [IS_IN (libpthread)] (CDISABLE): Likewise.
30238 [IS_IN (libc)] (CENABLE): Likewise.
30239 [IS_IN (libc)] (CENABLE): Likewise.
30240 [IS_IN (librt)] (CDISABLE): Likewise.
30241 [IS_IN (librt)] (CDISABLE): Likewise.
30242 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30243 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30244 definition.
30245 (PSEUDO_END): Likewise.
30246 [IS_IN (libpthread)] (CENABLE): Likewise.
30247 [IS_IN (libpthread)] (CDISABLE): Likewise.
30248 [IS_IN (libc)] (CENABLE): Likewise.
30249 [IS_IN (libc)] (CENABLE): Likewise.
30250 [IS_IN (librt)] (CDISABLE): Likewise.
30251 [IS_IN (librt)] (CDISABLE): Likewise.
30252 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30253 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30254 Remove definition.
30255 (PSEUDO_END): Likewise.
30256 [IS_IN (libpthread)] (CENABLE): Likewise.
30257 [IS_IN (libpthread)] (CDISABLE): Likewise.
30258 [IS_IN (libc)] (CENABLE): Likewise.
30259 [IS_IN (libc)] (CENABLE): Likewise.
30260 [IS_IN (librt)] (CDISABLE): Likewise.
30261 [IS_IN (librt)] (CDISABLE): Likewise.
30262 (SINGLE_THREAD_P): Likewise.
30263 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30264 definition.
30265 (PSEUDO_END): Likewise.
30266 [IS_IN (libpthread)] (CENABLE): Likewise.
30267 [IS_IN (libpthread)] (CDISABLE): Likewise.
30268 [IS_IN (libc)] (CENABLE): Likewise.
30269 [IS_IN (libc)] (CENABLE): Likewise.
30270 [IS_IN (librt)] (CDISABLE): Likewise.
30271 [IS_IN (librt)] (CDISABLE): Likewise.
30272 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30273 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30274 definition.
30275 (PSEUDO_END): Likewise.
30276 [IS_IN (libpthread)] (CENABLE): Likewise.
30277 [IS_IN (libpthread)] (CDISABLE): Likewise.
30278 [IS_IN (libc)] (CENABLE): Likewise.
30279 [IS_IN (libc)] (CENABLE): Likewise.
30280 [IS_IN (librt)] (CDISABLE): Likewise.
30281 [IS_IN (librt)] (CDISABLE): Likewise.
30282 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30283 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30284 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30285 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30286 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30287 definition.
30288 (PSEUDO_END): Likewise.
30289 [IS_IN (libpthread)] (CENABLE): Likewise.
30290 [IS_IN (libpthread)] (CDISABLE): Likewise.
30291 [IS_IN (libc)] (CENABLE): Likewise.
30292 [IS_IN (libc)] (CENABLE): Likewise.
30293 [IS_IN (librt)] (CDISABLE): Likewise.
30294 [IS_IN (librt)] (CDISABLE): Likewise.
30295 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30296 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30297 definition.
30298 (PSEUDO_END): Likewise.
30299 [IS_IN (libpthread)] (CENABLE): Likewise.
30300 [IS_IN (libpthread)] (CDISABLE): Likewise.
30301 [IS_IN (libc)] (CENABLE): Likewise.
30302 [IS_IN (libc)] (CENABLE): Likewise.
30303 [IS_IN (librt)] (CDISABLE): Likewise.
30304 [IS_IN (librt)] (CDISABLE): Likewise.
30305 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30306 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30307 definition.
30308 (PSEUDO_END): Likewise.
30309 [IS_IN (libpthread)] (CENABLE): Likewise.
30310 [IS_IN (libpthread)] (CDISABLE): Likewise.
30311 [IS_IN (libc)] (CENABLE): Likewise.
30312 [IS_IN (libc)] (CENABLE): Likewise.
30313 [IS_IN (librt)] (CDISABLE): Likewise.
30314 [IS_IN (librt)] (CDISABLE): Likewise.
30315 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30316 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30317 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30318 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30319 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30320 definition.
30321 (PSEUDO_END): Likewise.
30322 [IS_IN (libpthread)] (CENABLE): Likewise.
30323 [IS_IN (libpthread)] (CDISABLE): Likewise.
30324 [IS_IN (libc)] (CENABLE): Likewise.
30325 [IS_IN (libc)] (CENABLE): Likewise.
30326 [IS_IN (librt)] (CDISABLE): Likewise.
30327 [IS_IN (librt)] (CDISABLE): Likewise.
30328 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30329 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30330 definition.
30331 (PSEUDO_END): Likewise.
30332 [IS_IN (libpthread)] (CENABLE): Likewise.
30333 [IS_IN (libpthread)] (CDISABLE): Likewise.
30334 [IS_IN (libc)] (CENABLE): Likewise.
30335 [IS_IN (libc)] (CENABLE): Likewise.
30336 [IS_IN (librt)] (CDISABLE): Likewise.
30337 [IS_IN (librt)] (CDISABLE): Likewise.
30338 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30339
30340 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30341
30342 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30343
30344 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30347
30348 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30349
30350 [BZ #21982]
30351 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30352 middle and outer with size_t instead of int. Repleace %d and
30353 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30354 "MAX (outer, nchars - 64)" to support unsigned outer and
30355 nchars. Also exit loop when outer == 0.
30356
30357 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30358
30359 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30360 * include/signal.h (__sigsuspend_nocancel): Likewise.
30361 * include/time.h (__nanosleep_nocancel): Likewise.
30362 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30363 * login/utmp_file.c: Include non cancellable syscall header.
30364 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30365 prototype.
30366
30367 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30368
30369 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30370 .byte sequences with AVX512F instructions.
30371 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30372 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30373 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30374 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30375 Likewise.
30376 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30377 Likewise.
30378
30379 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30380 Steve Ellcey <sellcey@cavium.com>
30381
30382 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30383 Use PTR_REG macro in cmp instruction.
30384
30385 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30386
30387 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30388 Change the return type of the ifunc resolver to match the return
30389 type of the target function.
30390
30391 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30392
30393 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30394 (preadv64): Likewise.
30395 (pwrite64(: Likewise.
30396 (pwritev64): Likewise.
30397
30398 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30399 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30400 (LOAD_ARGS_0): Likewise.
30401 (LOAD_ARGS_1): Likewise.
30402 (LOAD_ARGS_2): Likewise.
30403 (LOAD_ARGS_3): Likewise.
30404 (LOAD_ARGS_4): Likewise.
30405 (LOAD_ARGS_5): Likewise.
30406 (LOAD_ARGS_6): Likewise.
30407 (LOAD_REGS_0): Likewise.
30408 (LOAD_REGS_1): Likewise.
30409 (LOAD_REGS_2): Likewise.
30410 (LOAD_REGS_3): Likewise.
30411 (LOAD_REGS_4): Likewise.
30412 (LOAD_REGS_5): Likewise.
30413 (LOAD_REGS_6): Likewise.
30414 (ASM_ARGS_0): Likewise.
30415 (ASM_ARGS_1): Likewise.
30416 (ASM_ARGS_2): Likewise.
30417 (ASM_ARGS_3): Likewise.
30418 (ASM_ARGS_4): Likewise.
30419 (ASM_ARGS_5): Likewise.
30420 (ASM_ARGS_6): Likewise.
30421 (LOAD_ARGS_TYPES_1): Likewise.
30422 (LOAD_ARGS_TYPES_2): Likewise.
30423 (LOAD_ARGS_TYPES_3): Likewise.
30424 (LOAD_ARGS_TYPES_4): Likewise.
30425 (LOAD_ARGS_TYPES_5): Likewise.
30426 (LOAD_ARGS_TYPES_6): Likewise.
30427 (LOAD_REGS_TYPES_1): Likewise.
30428 (LOAD_REGS_TYPES_2): Likewise.
30429 (LOAD_REGS_TYPES_3): Likewise.
30430 (LOAD_REGS_TYPES_4): Likewise.
30431 (LOAD_REGS_TYPES_5): Likewise.
30432 (LOAD_REGS_TYPES_6): Likewise.
30433 (TYPEFY): New define.
30434 (ARGIFY): Likewise.
30435 (internal_syscall0): Likewise.
30436 (internal_syscall1): Likewise.
30437 (internal_syscall2): Likewise.
30438 (internal_syscall3): Likewise.
30439 (internal_syscall4): Likewise.
30440 (internal_syscall5): Likewise.
30441 (internal_syscall6): Likewise.
30442 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30443 (INTERNAL_SYSCALL_NCS): Remove define.
30444 (internal_syscall1): Add define.
30445
30446 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30447
30448 * math/w_remainder_compat.c: Remove duplicate inclusion of
30449 math-svid-compat.h.
30450 * math/w_remainderf_compat.c: Likewise.
30451 * math/w_remainderl_compat.c: Likewise.
30452
30453 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30454
30455 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30456
30457 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30458
30459 [BZ #21684]
30460 * math/tgmath.h (__floating_type): Simplify definitions.
30461 (__real_integer_type): New macro.
30462 (__complex_integer_type): Likewise.
30463 (__expr_is_real): Likewise.
30464 (__tgmath_real_type_sub): Update comment to describe handling of
30465 complex types.
30466 (__tgmath_complex_type_sub): New macro.
30467 (__tgmath_complex_type): Likewise.
30468 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30469 (__TGMATH_CF128): Use __expr_is_real.
30470 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30471 __expr_is_real.
30472 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30473 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30474 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30475 integer types.
30476
30477 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30478
30479 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30480 macro.
30481 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30482 alias.
30483 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30484 Likewise.
30485
30486 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30487 nanosleep_not_cancel with __nanosleep_nocancel.
30488 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30489 (__nanosleep_nocancel): New macro.
30490 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30491 function.
30492 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30493 macro.
30494 (__nanosleep_nocancel): New prototype.
30495
30496 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30497 pause_not_cancel with __pause_nocancel.
30498 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30499 (__pause_nocancel): New macro.
30500 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30501 macro.
30502 (__pause_nocancel): New prototype.
30503 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30504
30505 2017-08-22 Martin Sebor <msebor@redhat.com>
30506
30507 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30508 to return a pointer to the same type as the target function.
30509
30510 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30511
30512 [BZ #18822]
30513 [BZ #21986]
30514 * include/printf.h (__printf_fphex): Add attribute_hidden.
30515 (__guess_grouping): New prototype.
30516 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30517 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30518 libc_hidden_proto and libc_hidden_def.
30519 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30520 (__vstrfmon_l): Remove the third argument passed to
30521 __guess_grouping.
30522
30523 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30524
30525 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30526 definition for issignaling that does not rely on __MATH_TG,
30527 since __MATH_TG uses __builtin_types_compatible_p, which is only
30528 available in C mode.
30529 (CFLAGS-test-math-issignaling.cc): New variable.
30530 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30531 * math/test-math-issignaling.cc: New test for C++ implementation
30532 of type-generic issignaling.
30533 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30534 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30535 options of test-math-issignaling on powerpc64le.
30536
30537 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30538
30539 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30540 building libc.a.
30541 (hidden_proto): Likewise.
30542 (hidden_tls_proto): Likewise.
30543 (__hidden_proto): Likewise.
30544
30545 2017-08-22 Florian Weimer <fweimer@redhat.com>
30546
30547 math: Statically link tests of internal functionality.
30548 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30549 atest-exp2.
30550 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30551 (gmp-objs): Remove assignment.
30552 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30553
30554 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30555
30556 [BZ #21987]
30557 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30558 and copy to ...
30559 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30560 ... here.
30561 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30562 ... and here.
30563
30564 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30565 variable definitions above inclusion of ../Rules.
30566
30567 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30568
30569 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30570 case calling __builtin_unreachable.
30571
30572 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30573
30574 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30575 __waitpid_nocancel.
30576 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30577 (__waitpid_nocancel): New macro.
30578 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30579 macro.
30580 (__waitpid_nocancel): Replace macro with a function.
30581 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30582 function.
30583
30584 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30585 __fcntl_nocancel.
30586 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30587 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30588
30589 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30590 __writev_nocancel_nostatus.
30591 (write_call_graph): Likewise.
30592 (write_bb_counts): Likewise.
30593 * resolv/herror.c (herror): Likewise.
30594 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30595 macro.
30596 (__writev_nocancel_nostatus): New macro.
30597 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30598 Remove macro.
30599 (__writev_nocancel_nostatus): New function.
30600
30601 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30602
30603 Revert:
30604 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30605
30606 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30607 building libc.a.
30608 (hidden_proto): Likewise.
30609 (hidden_tls_proto): Likewise.
30610 (__hidden_proto): Likewise.
30611
30612 [BZ #21973]
30613 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30614 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30616 Likewise.
30617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30618 Likewise.
30619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30620 Likewise.
30621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30622 Likewise.
30623 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30624 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30625 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30626 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30627 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30628 GLIBC_2.0 sqrtl symbol.
30629
30630 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30631 [__USE_MISC] (_LIB_VERSION): Likewise.
30632 [__USE_MISC] (struct exception): Likewise.
30633 [__USE_MISC] (matherr): Likewise.
30634 [__USE_MISC] (DOMAIN): Likewise.
30635 [__USE_MISC] (SING): Likewise.
30636 [__USE_MISC] (OVERFLOW): Likewise.
30637 [__USE_MISC] (UNDERFLOW): Likewise.
30638 [__USE_MISC] (TLOSS): Likewise.
30639 [__USE_MISC] (PLOSS): Likewise.
30640 [__USE_MISC] (HUGE): Likewise.
30641 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30642 * math/math-svid-compat.h: New file.
30643 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30644 and matherrl.
30645 * include/math.h [!_ISOMAC] (__matherr): Remove.
30646 * manual/arith.texi (FP Exceptions): Do not document matherr.
30647 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30648 (tests-internal): New variable.
30649 (install-lib): Do not add libieee.a.
30650 (non-lib.a): Likewise.
30651 (extra-objs): Do not add libieee.a and ieee-math.o.
30652 (CPPFLAGS-s_lib_version.c): Remove variable.
30653 ($(objpfx)libieee.a): Remove rule.
30654 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30655 * math/ieee-math.c: Remove.
30656 * math/libm-test-support.c (matherr): Remove.
30657 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30658 and license notices. Include <math-svid-compat.h> and
30659 <shlib-compat.h>.
30660 (matherr): Undefine as macro. Use compat_symbol_reference.
30661 (_LIB_VERSION): Likewise.
30662 * math/test-matherr-2.c: New file.
30663 * math/test-matherr-3.c: Likewise.
30664 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30665 declaration.
30666 (__kernel_standard_f): Likewise.
30667 (__kernel_standard_l): Likewise.
30668 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30669 <math_private.h>. Include <math-svid-compat.h>.
30670 (_LIB_VERSION): Undefine as macro.
30671 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30672 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30673 [LIBM_SVID_COMPAT], use compat_symbol.
30674 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30675 <math_private.h>. Include <math-svid-compat.h>.
30676 (matherr): Undefine as macro.
30677 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30678 compat_symbol.
30679 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30680 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30681 compat_symbol_reference.
30682 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30683 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30684 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30685 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30686 (MATHERR_D): Remove declaration.
30687 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30688 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30689 [LIBM_BUILD] (pmatherrf): Likewise.
30690 [LIBM_BUILD] (pmatherr): Likewise.
30691 [LIBM_BUILD] (pmatherrl): Likewise.
30692 (DOMAIN): Likewise.
30693 (SING): Likewise.
30694 (OVERFLOW): Likewise.
30695 (UNDERFLOW): Likewise.
30696 (TLOSS): Likewise.
30697 (PLOSS): Likewise.
30698 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30699 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30700 compat_symbol.
30701 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30702 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30703 compat_symbol.
30704 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30705 * math/w_acos_compat.c: Likewise.
30706 * math/w_acosf_compat.c: Likewise.
30707 * math/w_acosh_compat.c: Likewise.
30708 * math/w_acoshf_compat.c: Likewise.
30709 * math/w_acoshl_compat.c: Likewise.
30710 * math/w_acosl_compat.c: Likewise.
30711 * math/w_asin_compat.c: Likewise.
30712 * math/w_asinf_compat.c: Likewise.
30713 * math/w_asinl_compat.c: Likewise.
30714 * math/w_atan2_compat.c: Likewise.
30715 * math/w_atan2f_compat.c: Likewise.
30716 * math/w_atan2l_compat.c: Likewise.
30717 * math/w_atanh_compat.c: Likewise.
30718 * math/w_atanhf_compat.c: Likewise.
30719 * math/w_atanhl_compat.c: Likewise.
30720 * math/w_cosh_compat.c: Likewise.
30721 * math/w_coshf_compat.c: Likewise.
30722 * math/w_coshl_compat.c: Likewise.
30723 * math/w_exp10_compat.c: Likewise.
30724 * math/w_exp10f_compat.c: Likewise.
30725 * math/w_exp10l_compat.c: Likewise.
30726 * math/w_exp2_compat.c: Likewise.
30727 * math/w_exp2f_compat.c: Likewise.
30728 * math/w_exp2l_compat.c: Likewise.
30729 * math/w_fmod_compat.c: Likewise.
30730 * math/w_fmodf_compat.c: Likewise.
30731 * math/w_fmodl_compat.c: Likewise.
30732 * math/w_hypot_compat.c: Likewise.
30733 * math/w_hypotf_compat.c: Likewise.
30734 * math/w_hypotl_compat.c: Likewise.
30735 * math/w_j0_compat.c: Likewise.
30736 * math/w_j0f_compat.c: Likewise.
30737 * math/w_j0l_compat.c: Likewise.
30738 * math/w_j1_compat.c: Likewise.
30739 * math/w_j1f_compat.c: Likewise.
30740 * math/w_j1l_compat.c: Likewise.
30741 * math/w_jn_compat.c: Likewise.
30742 * math/w_jnf_compat.c: Likewise.
30743 * math/w_jnl_compat.c: Likewise.
30744 * math/w_lgamma_main.c: Likewise.
30745 * math/w_lgamma_r_compat.c: Likewise.
30746 * math/w_lgammaf_main.c: Likewise.
30747 * math/w_lgammaf_r_compat.c: Likewise.
30748 * math/w_lgammal_main.c: Likewise.
30749 * math/w_lgammal_r_compat.c: Likewise.
30750 * math/w_log10_compat.c: Likewise.
30751 * math/w_log10f_compat.c: Likewise.
30752 * math/w_log10l_compat.c: Likewise.
30753 * math/w_log2_compat.c: Likewise.
30754 * math/w_log2f_compat.c: Likewise.
30755 * math/w_log2l_compat.c: Likewise.
30756 * math/w_log_compat.c: Likewise.
30757 * math/w_logf_compat.c: Likewise.
30758 * math/w_logl_compat.c: Likewise.
30759 * math/w_pow_compat.c: Likewise.
30760 * math/w_powf_compat.c: Likewise.
30761 * math/w_powl_compat.c: Likewise.
30762 * math/w_remainder_compat.c: Likewise.
30763 * math/w_remainderf_compat.c: Likewise.
30764 * math/w_remainderl_compat.c: Likewise.
30765 * math/w_scalb_compat.c: Likewise.
30766 * math/w_scalbf_compat.c: Likewise.
30767 * math/w_scalbl_compat.c: Likewise.
30768 * math/w_sinh_compat.c: Likewise.
30769 * math/w_sinhf_compat.c: Likewise.
30770 * math/w_sinhl_compat.c: Likewise.
30771 * math/w_sqrt_compat.c: Likewise.
30772 * math/w_sqrtf_compat.c: Likewise.
30773 * math/w_sqrtl_compat.c: Likewise.
30774 * math/w_tgamma_compat.c: Likewise.
30775 * math/w_tgammaf_compat.c: Likewise.
30776 * math/w_tgammal_compat.c: Likewise.
30777 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30778 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30779 * sysdeps/ieee754/k_standard.c: Likewise.
30780 * sysdeps/ieee754/k_standardf.c: Likewise.
30781 * sysdeps/ieee754/k_standardl.c: Likewise.
30782 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30783 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30784 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30785 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30786 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30787 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30788 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30789 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30790 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30791 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30792 Likewise.
30793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30794 Likewise.
30795 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30796 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30797 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30798 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30799
30800 2017-08-21 Florian Weimer <fweimer@redhat.com>
30801
30802 [BZ #21864]
30803 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30804 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30805 Move before inclusion of ../Rules.
30806
30807 2017-08-21 Florian Weimer <fweimer@redhat.com>
30808
30809 [BZ #21972]
30810 * assert/assert.h (assert): Use static_cast (bool) for C++.
30811 Use the ternary operator in the warning branch for GNU C.
30812 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30813 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30814 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30815 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30816 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30817
30818 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30819
30820 [BZ #18822]
30821 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30822 (__syscall_clock_gettime): Add attribute_hidden.
30823 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30824 (__start_context): Likewise.
30825
30826 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30827
30828 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30829 building libc.a.
30830 (hidden_proto): Likewise.
30831 (hidden_tls_proto): Likewise.
30832 (__hidden_proto): Likewise.
30833
30834 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30835
30836 * include/libc-symbols.h (attribute_hidden): Enable hidden
30837 visibility in libc.a compiled with PIE.
30838
30839 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30840
30841 [BZ #18822]
30842 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30843 Add attribute_hidden.
30844
30845 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30846
30847 [BZ #21864]
30848 * Makerules (all-nonlib): Add $(others-extras).
30849 * catgets/Makefile (others-extras): New.
30850 * elf/Makefile (others-extras): Likewise.
30851 * nss/Makefile (others-extras): Likewise.
30852
30853 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30854
30855 [BZ #18822]
30856 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30857 * elf/dl-open.c: Include <libc-internal.h>.
30858 (__libc_multiple_libcs): Removed.
30859 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30860 <hp-timing.h>.
30861 * include/libc-internal.h (__libc_multiple_libcs): New.
30862 * misc/sbrk.c: Include <libc-internal.h>.
30863 (__libc_multiple_libcs): Removed.
30864
30865 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30866
30867 [BZ #18822]
30868 * grp/initgroups.c (__nss_group_database): Removed.
30869 (__nss_initgroups_database): Likewise.
30870 * nscd/gai.c (__nss_hosts_database): Likewise.
30871 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30872 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30873 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30874 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30875 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30876 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30877 attribute_hidden.
30878 * nss/nsswitch.c (__nss_database_custom): Define only if
30879 USE_NSCD is defined.
30880 (__nss_configure_lookup): Use __nss_database_custom only if
30881 USE_NSCD is defined.
30882 * nss/nsswitch.h (__nss_database_custom): Declare only if
30883 USE_NSCD is defined. Add attribute_hidden.
30884 (__nss_setent): Add attribute_hidden.
30885 (__nss_endent): Likewise.
30886 (__nss_getent_r): Likewise.
30887 (__nss_getent): Likewise.
30888 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30889
30890 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30891
30892 [BZ #18822]
30893 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30894 libc_hidden_proto and libc_hidden_def.
30895
30896 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30897
30898 [BZ #18822]
30899 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30900 Add libc_hidden_proto.
30901 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30902 Add libc_hidden_def.
30903
30904 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30905
30906 [BZ #21974]
30907 * gmon/Makefile (routines): Remove bb_init_func and
30908 bb_exit_func.
30909 (elide-routines.os): Removed.
30910 * gmon/bb_exit_func.c: Likewise.
30911 * gmon/bb_init_func.c: Likewise.
30912 * include/sys/gmon.h (__bb): Likewise.
30913 (__bb_init_func): Likewise.
30914 (__bb_exit_func): Likewise.
30915 * sysdeps/alpha/bb_init_func.S: Likewise.
30916
30917 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30918
30919 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30920 * include/setjmp.h (____longjmp_chk): Here. Add
30921 attribute_hidden.
30922
30923 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30924
30925 [BZ #18822]
30926 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30927 attribute_hidden.
30928 (__strspn_sse2): Likewise.
30929
30930 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30931
30932 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30933 (close_not_cancel_no_status): Likewise.
30934 (__close_nocancel): New macro.
30935 (__close_nocancel_nostatus): Likewise.
30936 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30937 macro.
30938 (close_not_cancel): Likewise.
30939 (close_not_cancel_no_status): Likewise.
30940 (__close_nocancel): New prototype.
30941 (__close_nocancel_nostatus): New function.
30942 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30943 * catgets/open_catalog.c (__open_catalog): Replace
30944 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30945 * gmon/gmon.c (write_gmon): Likewise.
30946 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30947 * intl/loadmsgcat.c (close): Likewise.
30948 * io/ftw.c (open_dir_stream): Likewise.
30949 (ftw_startup): Likewise.
30950 * libio/fileops.c (_IO_file_open): Likewise.
30951 (_IO_file_close_mmap): Likewise.
30952 (_IO_file_close): Likewise.
30953 * libio/iopopen.c (_IO_dup2): Likewise.
30954 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30955 * locale/loadlocale.c (_nl_load_locale): Likewise.
30956 * login/utmp_file.c (pututline_file): Likewise.
30957 (endutent_file): Likewise.
30958 * misc/daemon.c (daemon): Likewise.
30959 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30960 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30961 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30962 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30963 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30964 * nscd/nscd_helper.c (open_socket): Likewise.
30965 (__nscd_open_socket): Likewise.
30966 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30967 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30968 (__nscd_innetgr): Likewise.
30969 * nss/nss_db/db-open.c (internal_setent): Likewise.
30970 * resolv/res-close.c (__res_iclose): Likewise.
30971 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30972 * sysdeps/posix/closedir.c (__closedir): Likewise.
30973 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30974 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30975 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30976 (opendir_tail): Likewise.
30977 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30978 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30979 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30980 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30981 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30982 (gethostid): Likewise.
30983 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30984 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30987 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30988 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30989 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30990 Likewise.
30991 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30992 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30993 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30994 Likewise.
30995 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30996 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30997 Likewise.
30998 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30999 Likewise.
31000 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31001 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31002 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31003 __close_nocancel.
31004
31005 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31006 (openat_not_cancel_3): Likewise.
31007 (openat64_not_cancel_3): Likewise).
31008 (openat_not_cancel_3): Likewise).
31009 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31010 macro.
31011 (openat_not_cancel_3): Likewise.
31012 (openat64_not_cancel): Likewise.
31013 (openat64_not_cancel_3): Likewise.
31014 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31015 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31016 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31017 __open{64}_nocancel.
31018 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31019 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31020 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31021
31022 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31023
31024 [BZ #18822]
31025 * include/argz.h (__argz_create_sep): New function prototype.
31026 (__argz_append): Likewise.
31027 (__argz_add): Likewise.
31028 (__argz_add_sep): Likewise.
31029 (__argz_delete): Likewise.
31030 (__argz_insert): Likewise.
31031 (__argz_replace): Likewise.
31032 * string/argz.h (__argz_create_sep): Removed.
31033 (__argz_append): Likewise.
31034 (__argz_add): Likewise.
31035 (__argz_add_sep): Likewise.
31036 (__argz_delete): Likewise.
31037 (__argz_insert): Likewise.
31038 (__argz_replace): Likewise.
31039
31040 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31041
31042 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31043 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31044 (GNU_PROPERTY_STACK_SIZE): Likewie.
31045 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31046 (GNU_PROPERTY_LOPROC): Likewise.
31047 (GNU_PROPERTY_HIPROC): Likewise.
31048 (GNU_PROPERTY_LOUSER): Likewise.
31049 (GNU_PROPERTY_HIUSER): Likewise.
31050 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31051 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31052 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31053 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31054 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31055 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31056 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31057 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31058 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31059 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31060 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31061 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31062 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31063 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31064 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31065 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31066 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31067 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31068 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31069 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31070 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31071 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31072 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31073
31074 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31075
31076 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31077 in C++ mode.
31078
31079 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31080
31081 [BZ #21930]
31082 * math/math.h (isinf): Check if in C or C++ mode before using
31083 __builtin_types_compatible_p, since this is a C mode feature.
31084
31085 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31086
31087 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31088 (__write_nocancel): New macro.
31089 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31090 Rewrite as a function prototype.
31091 (write_not_cancel): Remove macro.
31092 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31093 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31094 (write_gmon): Likewise.
31095 * libio/fileops.c (_IO_new_file_write): Likewise.
31096 * login/utmp_file.c (pututline_file): Likewise.
31097 (updwtmp_file): Likewise.
31098 * stdio-common/psiginfo.c (psiginfo): Likewise.
31099 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31100 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31101 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31102 Likewise.
31103 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31104 Likewise.
31105
31106 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31107 (__read_nocancel): New macro.
31108 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31109 __read_nocancel.
31110 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31111 macro.
31112 (__read_nocancel): New prototype.
31113 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31114 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31115 with __read_nocancel.
31116 * intl/loadmsgcat.c (read): Likewise.
31117 * libio/fileops.c (_IO_file_read): Likewise.
31118 * locale/loadlocale.c (_nl_load_locale): Likewise.
31119 * login/utmp_file.c (getutent_r_file): Likewise.
31120 (internal_getut_r): Likewise.
31121 (getutline_r_file): Likewise.
31122 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31123 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31124 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31125 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31126 Likewise.
31127 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31128 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31129 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31130 Likewise.
31131 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31132 Likewise.
31133 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31134 Likewise.
31135 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31136 Likewise.
31137 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31138
31139 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31140
31141 [BZ #21966]
31142 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31143 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31144 usable.
31145
31146 2017-08-17 DJ Delorie <dj@redhat.com>
31147
31148 * bug17079.c: Update to new test harness.
31149 * test-digits-dots.c: Likewise.
31150 * test-netdb.c: Likewise.
31151 * tst-field.c: Likewise.
31152 * tst-nss-getpwent.c: Likewise.
31153 * tst-nss-static.c: Likewise.
31154 * tst-nss-test1.c: Likewise.
31155 * tst-nss-test2.c: Likewise.
31156 * tst-nss-test3.c: Likewise.
31157 * tst-nss-test4.c: Likewise.
31158 * tst-nss-test5.c: Likewise.
31159
31160 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31161
31162 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31163 (open_not_cancel_2): Likewise.
31164 (open_nocancel): New macro.
31165 (open64_nocancel): Likewise.
31166 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31167 (open_not_cancel_2): Likewise.
31168 (__open_nocancel): New prototype.
31169 (__open64_nocancel): Likewise.
31170 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31171 __open_nocancel.
31172 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31173 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31174 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31175 with __open_nocancel.
31176 * csu/check_fds.c (check_one_fd): Likewise.
31177 * gmon/gmon.c (write_gmon): Likewise.
31178 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31179 * intl/loadmsgcat.c (open): Likewise.
31180 * libio/fileops.c (_IO_file_open): Likewise.
31181 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31182 * locale/loadlocale.c (_nl_load_locale): Likewise.
31183 * login/utmp_file.c (setutent_file): Likewise.
31184 * misc/daemon.c (daemon): Likewise.
31185 * nss/nss_db/db-open.c (internal_setent): Likewise.
31186 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31187 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31188 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31189 (__opendir): Likewise.
31190 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31191 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31192 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31193 (gethostid): Likewise.
31194 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31195 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31196 Likewise.
31197 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31198 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31199 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31200 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31201 Likewise.
31202 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31203 Likewise.
31204 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31205 Likewise.
31206 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31207 Likewise.
31208 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31209 Likewise.
31210 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31211 Likewise.
31212 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31213 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31214
31215 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31216
31217 * benchtests/bench-skeleton.c (main): Add support for
31218 latency benchmarking.
31219 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31220
31221 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31222
31223 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31224 the startup object.
31225
31226 2017-08-17 Florian Weimer <fweimer@redhat.com>
31227
31228 * include/sys/socket.h (__opensock): Remove internal_function.
31229 * socket/opensock.c (__opensock): Likewise.
31230 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31231
31232 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31233
31234 [BZ #21944]
31235 * signal/bits/types/__sigval_t.h: New file.
31236 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31237 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31238 and define sigval_t using __sigval_t.
31239 * include/bits/types/__sigval_t.h: New file.
31240 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31241 instead of <bits/types/__sigval_t.h>.
31242 (struct sigevent): Use __sigval_t instead of sigval_t.
31243 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31244 instead of <bits/types/__sigval_t.h>.
31245 (siginfo_t): Use __sigval_t instead of sigval_t.
31246 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31247 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31248 (struct sigevent): Use __sigval_t instead of sigval_t.
31249 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31250 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31251 (siginfo_t): Use __sigval_t instead of sigval_t.
31252 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31253
31254 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31255
31256 * NEWS: Remove "[Add new features here]" for 2.27.
31257
31258 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31259
31260 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31261 libc.so.
31262
31263 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31264
31265 * NEWS: Mention x86-64 FMA optimization.
31266
31267 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31268
31269 [BZ #21912]
31270 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31271 Add e_expf-fma.
31272 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31273 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31274 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31275
31276 2017-08-16 Andreas Schwab <schwab@suse.de>
31277
31278 [BZ #16750]
31279 CVE-2009-5064
31280 * elf/ldd.bash.in: Never run file directly.
31281
31282 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31283
31284 [BZ #21955]
31285 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31286 (L(SP_INF_0)): Likewise.
31287
31288 2017-08-15 Florian Weimer <fweimer@redhat.com>
31289
31290 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31291 run-built-tests.
31292
31293 2017-08-15 Florian Weimer <fweimer@redhat.com>
31294
31295 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31296 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31297 BROKEN_THREAD_SIGNALS code.
31298 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31299 request_list): Remove caller_pid member used for
31300 BROKEN_THREAD_SIGNALS.
31301 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31302 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31303 Remove BROKEN_THREAD_SIGNALS support.
31304 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31305 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31306
31307 2017-08-15 Florian Weimer <fweimer@redhat.com>
31308
31309 * gmon/Makefile (tests): Add tst-gmon.
31310 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31311 Set.
31312 (tests-special): Add tst-gmon-prof.out.
31313 (tst-gmon.out): Depend on clean-tst-gmon-data.
31314 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31315 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31316 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31317 startup object.
31318 * aclocal.m4 (GPROF): Set and substitute.
31319 * config.amke.in (GPROF): Set.
31320 * configure: Regenerate.
31321
31322 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31323
31324 * elf/elf.h A (NT_PPC_TAR): New macro.
31325 (NT_PPC_PPR): Likewise.
31326 (NT_PPC_DSCR): Likewise.
31327 (NT_PPC_EBB): Likewise.
31328 (NT_PPC_PMU): Likewise.
31329 (NT_PPC_TM_CGPR): Likewise.
31330 (NT_PPC_TM_CFPR): Likewise.
31331 (NT_PPC_TM_CVMX): Likewise.
31332 (NT_PPC_TM_CVSX): Likewise.
31333 (NT_PPC_TM_SPR): Likewise.
31334 (NT_PPC_TM_CTAR): Likewise.
31335 (NT_PPC_TM_CPPR): Likewise.
31336 (NT_PPC_TM_CDSCR): Likewise.
31337
31338 2017-08-15 Florian Weimer <fweimer@redhat.com>
31339
31340 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31341 regparm (2) instead of internal_function.
31342 (_MCOUNT_DECL): Adjust.
31343
31344 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31345
31346 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31347 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31348
31349 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31350
31351 * conform/data/sys/wait.h-data (si_value): Do not expect for
31352 XPG42.
31353
31354 2017-08-14 Florian Weimer <fweimer@redhat.com>
31355
31356 [BZ #21962]
31357 NSS: Create stubs for accidentally exported lookup functions.
31358 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31359 Remove declaration.
31360 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31361 (ether_hostton): Call __nss_ethers_lookup2 instead.
31362 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31363 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31364 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31365 (setup): Call __nss_netgroup_lookup2 instead.
31366 * nss/Makefile (routines): Add compat-lookup.
31367 * nss/Versions (GLIBC_2.27): Add symbol version.
31368 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31369 (DB_COMPAT_FCT): Remove.
31370 * nss/compat-lookup.c: New file.
31371 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31372 from databases.def.
31373 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31374 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31375 (netname2user): Call __nss_publickey_lookup2 instead.
31376 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31377 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31378 instead.
31379
31380 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31381 Sergei Trofimovich <slyfox@inbox.ru>
31382
31383 [BZ #21908]
31384 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31385 Rename to MMAP2_PAGE_UNIT.
31386 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31387 __OFF_T_MATCHES_OFF64_T is not defined.
31388 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31389 uint64_t.
31390 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31391 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31392
31393 2017-08-14 Florian Weimer <fweimer@redhat.com>
31394
31395 i386: Do not set internal_function.
31396 * config.h.in (USE_REGPARMS, internal_function): Remove.
31397 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31398 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31399
31400 2017-08-14 Florian Weimer <fweimer@redhat.com>
31401
31402 * elf/dl-init.c (_dl_init): Remove internal_function.
31403 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31404 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31405
31406 2017-08-14 Florian Weimer <fweimer@redhat.com>
31407
31408 * elf/rtld.c (_dl_start): Remove internal_function.
31409 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31410 _dl_start.
31411
31412 2017-08-14 Florian Weimer <fweimer@redhat.com>
31413
31414 * elf/dl-fini.c (_dl_fini): Remove internal_function
31415 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31416
31417 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31418
31419 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31420 (bit_cpu_SHSTK): Likewise.
31421 (index_cpu_IBT): Likewise.
31422 (index_cpu_SHSTK): Likewise.
31423 (reg_IBT): Likewise.
31424 (reg_SHSTK): Likewise.
31425 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31426 Handle index_cpu_IBT and index_cpu_SHSTK.
31427
31428 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31429
31430 [BZ #19982]
31431 * po/fr.po: Fix spelling mistake.
31432
31433 2017-08-13 Florian Weimer <fweimer@redhat.com>
31434
31435 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31436 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31437 (_dl_catch_error, _dl_receive_error): Likewise.
31438 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31439 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31440 (_dl_deallocate_tls): Likewise.
31441 * include/dlfcn.h (_dl_addr): Likewise.
31442 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31443 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31444 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31445 Likewise.
31446
31447 2017-08-13 Florian Weimer <fweimer@redhat.com>
31448
31449 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31450 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31451 internal_function.
31452 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31453
31454 2017-08-13 Florian Weimer <fweimer@redhat.com>
31455
31456 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31457 internal_function.
31458 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31459 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31460 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31461 internal_function from _dl_make_stack_executable_hook member.
31462 (_dl_make_stack_executable): Remove internal_function.
31463 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31464 Likewise.
31465 * sysdeps/unix/sysv/linux/dl-execstack.c
31466 (_dl_make_stack_executable): Likewise.
31467
31468 2017-08-13 Florian Weimer <fweimer@redhat.com>
31469
31470 * sysdeps/unix/sysv/linux/netlinkaccess.h
31471 (__netlink_assert_response): Remove internal_function.
31472 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31473 (__netlink_assert_response): Likewise.
31474
31475 2017-08-13 Florian Weimer <fweimer@redhat.com>
31476
31477 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31478 internal_function.
31479 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31480
31481 2017-08-13 Florian Weimer <fweimer@redhat.com>
31482
31483 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31484 internal_function.
31485 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31486 * inet/netgroup.h (__internal_setnetgrent)
31487 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31488 * inet/getnetgrent_r.c (__internal_setnetgrent)
31489 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31490 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31491 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31492 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31493 * nss/nsswitch.h (db_lookup_function): Likewise.
31494
31495 2017-08-13 Florian Weimer <fweimer@redhat.com>
31496
31497 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31498 Remove internal_function.
31499 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31500 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31501 message argument on the stack.
31502 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31503 Likeweise.
31504
31505 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31506
31507 Adapt test case data to the changes in the thousands
31508 separators.
31509
31510 [BZ #20756]
31511 * localedata/tst-langinfo.sh: Adapt test case data.
31512 * stdlib/tst-strfmon_l.c: Likewise.
31513 * stdlib/tst-strtod4.c: Likewise.
31514 * stdlib/tst-strtod5i.c: Likewise.
31515
31516 2017-08-11 Florian Weimer <fweimer@redhat.com>
31517
31518 [BZ #21242]
31519 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31520 Suppress pedantic warning resulting from statement expression.
31521 (__ASSERT_FUNCTION): Add missing __extension__.
31522
31523 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31524
31525 * benchtests/bench-memmove-large.c: Print output in JSON
31526 format.
31527 * benchtests/bench-memmove.c: Likewise.
31528
31529 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31530 * benchtests/bench-memchr.c (do_one_test): Likewise.
31531 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31532 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31533 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31534 * benchtests/bench-memmove.c (do_one_test): Likewise.
31535 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31536 * benchtests/bench-memset.c (do_one_test): Likewise.
31537 * benchtests/bench-string.h (test_init): Remove memsets.
31538
31539 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31540
31541 * manual/lang.texi
31542 (Computing the Width of an Integer Data Type): Rename section to
31543 "Width of an Integer Type". Remove inaccurate statement regarding
31544 lack of C language facilities for determining width of integer
31545 types, and reorder content to improve flow and context of
31546 discussion.
31547
31548 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31549
31550 * lang.texi (va_copy): Change standard from ISO to C99.
31551 (__va_copy): Add standard and header annotation.
31552 Update description for clarity of origins and current use.
31553
31554 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31555
31556 [BZ #21941]
31557 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31558 xssqrtqp requires operands to be in Vector Registers
31559 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31560 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31561 (__ieee754_sqrtf128): Likewise.
31562
31563 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31564
31565 * sysdeps/aarch64/memcmp.S (memcmp):
31566 Rewrite of optimized memcmp.
31567
31568 2017-08-10 Florian Weimer <fweimer@redhat.com>
31569
31570 Introduce ld.so exceptions.
31571 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31572 (_dl_exception_create, _dl_exception_create_format)
31573 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31574 (_dl_catch_exception): Declare.
31575 (_dl_catch_error): Update comment.
31576 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31577 errstring, malloced members with exception member.
31578 (_dl_out_of_memory): Remove.
31579 (fatal_error): New function, extracted from _dl_signal_error.
31580 (_dl_signal_exception, _dl_signal_cexception): New functions.
31581 (_dl_signal_error): Call _dl_exception_create to allocate an
31582 exception object.
31583 (_dl_catch_exception): New function, based on _dl_catch_error.
31584 (_dl_catch_error): Implement using _dl_catch_exception.
31585 * elf/dl-exception.c: New file.
31586 * elf/Makefile (dl-routines): Add dl-exception.
31587 (elide-routines.os): Likewise.
31588 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31589 _dl_exception_create_format, _dl_exception_free.
31590 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31591 _dl_signal_exception.
31592 * elf/dl-lookup.c (make_string): Remove.
31593 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31594 _dl_signal_cexception, _dl_exception_free.
31595 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31596 _dl_signal_exception.
31597 * elf/dl-sym.c (do_sym): Likewise.
31598 * elf/dl-version.c (make_string): Remove.
31599 (match_symbol): Use _dl_exception_create_format,
31600 _dl_signal_cexception, _dl_exception_free.
31601 (_dl_check_map_versions): Likewise.
31602 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31603 _dl_catch_exception.
31604 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31605 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31606 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31607 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31608 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31609 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31610 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31611 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31612 Likewise.
31613 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31615 (ld.so): Likewise.
31616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31617 (ld.so): Likewise.
31618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31619 Likewise.
31620 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31621 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31622 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31623 Likewise.
31624 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31625 Likewise.
31626 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31627
31628 2017-08-10 Florian Weimer <fweimer@redhat.com>
31629
31630 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31631 attribute_hidden, internal_function.
31632 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31633 internal_function.
31634
31635 2017-08-10 Florian Weimer <fweimer@redhat.com>
31636
31637 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31638 function which calls __builtin_unreachable.
31639
31640 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31641
31642 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31643 Indian monetary formatting
31644 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31645 test cases.
31646
31647 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31648
31649 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31650 Fix typo in comment.
31651
31652 [BZ #21928]
31653 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31654 PTRACE_SEIZE_DEVEL): Remove.
31655 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31656 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31657 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31658 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31659 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31660
31661 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31662
31663 * posix/bits/types.h (__qaddr_t): Remove.
31664
31665 [BZ #21457]
31666 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31667 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31668 __glibc_reserved1.
31669 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31670 (ucontext_t): Use __ctx with uc_flags.
31671 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31672 (__ctxt): Likewise.
31673 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31674 __glibc_reserved1.
31675 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31676 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31677 __glibc_reserved1.
31678 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31679 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31680 __glibc_reserved1.
31681 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31682 macro.
31683 (ucontext_t): Use __ctx with uc_flags.
31684 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31685 (ucontext_t): Use __ctx with uc_flags.
31686 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31687 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31688 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31689 (ucontext_t): Use __ctx with uc_flags.
31690 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31691 undefine further down.
31692 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31693 __glibc_reserved1.
31694 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31695 undefine further down.
31696 (ucontext_t): Use __ctx with uc_flags.
31697 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31698 undefine further down.
31699 (ucontext_t): Use __ctx with uc_flags.
31700 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31701 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31702 Rename uc_pad to __glibc_reserved1.
31703 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31704 undefine further down.
31705 (ucontext_t): Use __ctx with uc_flags.
31706 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31707 further down.
31708 (ucontext_t): Use __ctx with uc_flags.
31709 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31710 __ctx with uc_flags.
31711 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31712 (ucontext_t): Use __ctx with uc_flags.
31713 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31714 __ctx with uc_flags.
31715
31716 2017-08-09 Florian Weimer <fweimer@redhat.com>
31717
31718 [BZ #21932]
31719 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31720 before early return.
31721
31722 2017-08-09 Andreas Schwab <schwab@suse.de>
31723
31724 [BZ #21041]
31725 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31726 renamed alias.
31727
31728 [BZ #21041]
31729 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31730 tst-compat-forwarder.
31731 (modules-names): Add tst-compat-forwarder-mod.
31732 ($(objpfx)tst-compat-forwarder): Depend on
31733 $(objpfx)tst-compat-forwarder-mod.so.
31734 * nptl/tst-compat-forwarder.c: New file.
31735 * nptl/tst-compat-forwarder-mod.c: New file.
31736
31737 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31738
31739 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31740 comments.
31741
31742 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31743 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31744 memcpy_falkor.
31745 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31746 Bump.
31747 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31748 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31749 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31750 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31751 Add falkor.
31752 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31753 New macro.
31754
31755 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31756
31757 [BZ #759]
31758 * manual/setjmp.texi (getcontex): Document uc_stack value
31759 compatibility differences.
31760
31761 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31762
31763 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31764 (old_malloc_hook): Likewise.
31765 (old_memalign_hook): Likewise.
31766 (old_realloc_hook): Likewise.
31767 (struct hdr): Likewise.
31768 (flood): Likewise.
31769 (freehook): Likewise.
31770 (mallochook): Likewise.
31771 (memalignhook): Likewise.
31772 (reallochook): Likewise.
31773 (mprobe): Likewise.
31774 * malloc/mtrace.c (mallwatch): Likewise.
31775 (tr_old_free_hook): Likewise.
31776 (tr_old_malloc_hook): Likewise.
31777 (tr_old_realloc_hook): Likewise.
31778 (tr_old_memalign_hook): Likewise.
31779 (tr_where): Likewise.
31780 (lock_and_info): Likewise.
31781 (tr_freehook): Likewise.
31782 (tr_mallochook): Likewise.
31783 (tr_reallochook): Likewise.
31784 (tr_memalignhook): Likewise.
31785 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31786 * misc/mmap.c (__mmap): Likewise.
31787 * misc/mmap64.c (__mmap64): Likewise.
31788 * misc/mprotect.c (__mprotect): Likewise.
31789 * misc/msync.c (msync): Likewise.
31790 * misc/munmap.c (__munmap): Likewise.
31791 * posix/posix_madvise.c (posix_madvise): Likewise.
31792 * socket/send.c (__send): Likewise.
31793 * socket/sendto.c (__sendto): Likewise.
31794 * socket/setsockopt.c (__setsockopt): Likewise.
31795 * string/memcmp.c (__ptr_t): Remove macro.
31796 (MEMCMP): Use void * instead of ptr_t.
31797 * string/memrchr.c (__ptr_t): Remove macro.
31798 (__memrchr): Use void * instead of ptr_t.
31799 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31800 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31801 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31802 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31803 * sysdeps/mach/msync.c (msync): Likewise.
31804 * sysdeps/mach/munmap.c (__munmap): Likewise.
31805 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31806 Likewise.
31807 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31808 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31809 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31810 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31811 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31812 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31813 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31814 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31815 Likewise.
31816 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31817 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31818 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31819 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31820 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31821 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31822 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31823 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31824 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31825 Likewise.
31826 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31827 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31828 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31829 (MEMCMP): Use void * instead of ptr_t.
31830 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31831 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31832
31833 2017-08-08 Florian Weimer <fweimer@redhat.com>
31834
31835 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31836 return statement.
31837
31838 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31839
31840 [BZ #21913]
31841 * csu/libc-tls.c: Include <startup.h> first.
31842 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31843 * elf/dl-tunables.c: Include <startup.h> first.
31844 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31845 * sysdeps/generic/startup.h: New file.
31846 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31847 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31848 (I386_USE_SYSENTER): New. Defined to 0.
31849
31850 2017-08-08 Andreas Schwab <schwab@suse.de>
31851
31852 [BZ #21041]
31853 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31854 * nptl/pt-system.c (system): Likewise.
31855
31856 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31857
31858 [BZ #21780]
31859 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31860 EOPNOTSUPP.
31861 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31862 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31863 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31864 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31865 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31866 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31867 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31868
31869 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31870
31871 [BZ #21899]
31872 * bits/sigaction.h (struct sigaction): Define sa_handler and
31873 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31874 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31875 [__USE_XOPEN_EXTENDED].
31876 (SA_RESTART): Likewise.
31877 (SA_NODEFER): Likewise.
31878 (SA_RESETHAND): Likewise.
31879 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31880 (struct sigaction): Define sa_handler and sa_sigaction using union
31881 also for [__USE_XOPEN_EXTENDED].
31882 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31883 [__USE_XOPEN_EXTENDED].
31884 (SA_RESTART): Likewise.
31885 (SA_NODEFER): Likewise.
31886 (SA_RESETHAND): Likewise.
31887 * sysdeps/unix/sysv/linux/bits/sigaction.h
31888 (struct sigaction): Define sa_handler and sa_sigaction using union
31889 also for [__USE_XOPEN_EXTENDED].
31890 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31891 [__USE_XOPEN_EXTENDED].
31892 (SA_RESTART): Likewise.
31893 (SA_NODEFER): Likewise.
31894 (SA_RESETHAND): Likewise.
31895 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31896 (struct sigaction): Define sa_handler and sa_sigaction using union
31897 also for [__USE_XOPEN_EXTENDED].
31898 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31899 [__USE_XOPEN_EXTENDED].
31900 (SA_RESTART): Likewise.
31901 (SA_NODEFER): Likewise.
31902 (SA_RESETHAND): Likewise.
31903 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31904 (struct sigaction): Define sa_handler and sa_sigaction using union
31905 also for [__USE_XOPEN_EXTENDED].
31906 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31907 [__USE_XOPEN_EXTENDED].
31908 (SA_RESTART): Likewise.
31909 (SA_NODEFER): Likewise.
31910 (SA_RESETHAND): Likewise.
31911 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31912 (struct sigaction): Define sa_handler and sa_sigaction using union
31913 also for [__USE_XOPEN_EXTENDED].
31914 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31915 [__USE_XOPEN_EXTENDED].
31916 (SA_RESTART): Likewise.
31917 (SA_NODEFER): Likewise.
31918 (SA_RESETHAND): Likewise.
31919 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31920 (struct sigaction): Define sa_handler and sa_sigaction using union
31921 also for [__USE_XOPEN_EXTENDED].
31922 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31923 [__USE_XOPEN_EXTENDED].
31924 (SA_RESTART): Likewise.
31925 (SA_NODEFER): Likewise.
31926 (SA_RESETHAND): Likewise.
31927 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31928 (struct sigaction): Define sa_handler and sa_sigaction using union
31929 also for [__USE_XOPEN_EXTENDED].
31930 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31931 [__USE_XOPEN_EXTENDED].
31932 (SA_RESTART): Likewise.
31933 (SA_NODEFER): Likewise. Define directly rather than as alias.
31934 (SA_RESETHAND): Likewise.
31935 (SA_INTERRUPT): Define only for [__USE_MISC].
31936 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31937 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31938 [__USE_MISC].
31939 (SA_STACK): Define only for [__USE_MISC].
31940 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
31949
31950 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31951 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31952 (struct catalog_info): Likewise.
31953 * inet/htontest.c (lo): Likewise.
31954 (foo): Likewise.
31955 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31956 * inet/inet_net.c (inet_network): Likewise.
31957 * inet/inet_netof.c (inet_netof): Likewise.
31958 * inet/rcmd.c (__ivaliduser): Likewise.
31959 (iruserok): Likewise.
31960 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31961 * locale/programs/locale-spec.c (locale_special): Likewise.
31962 * nis/nis_findserv.c (struct findserv_req): Likewise.
31963 (__nis_findfastest_with_timeout): Likewise.
31964 * nss/test-netdb.c (test_network): Likewise.
31965 * resolv/inet_neta.c (inet_neta): Likewise.
31966 * resolv/ns_date.c (ns_datetosecs): Likewise.
31967 (SECS_PER_DAY): Likewise.
31968 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31969 Likewise.
31970 * resolv/res_comp.c (__putlong): Likewise.
31971 (__putshort): Likewise.
31972 (_getlong): Likewise.
31973 (_getshort): Likewise.
31974 * resolv/res_debug.c (p_time): Likewise.
31975 (precsize_ntoa): Likewise.
31976 (precsize_aton): Likewise.
31977 (latlon2ul): Likewise.
31978 (loc_aton): Likewise.
31979 (loc_ntoa): Likewise.
31980 * resolv/res_hconf.c (struct netaddr): Likewise.
31981 (_res_hconf_reorder_addrs): Likewise.
31982 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31983 (clnttcp_control): Likewise.
31984 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31985 (clntudp_control): Likewise.
31986 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31987 (clntunix_control): Likewise.
31988 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31989 * sunrpc/rpc/auth.h (union des_block): Likewise.
31990 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31991 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31992 (xdrrec_create): Likewise.
31993 (xdrrec_endofrecord): Likewise.
31994 (flush_out): Likewise.
31995 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31996 (xdrstdio_putlong): Likewise.
31997 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31998 Likewise.
31999
32000 * misc/sys/cdefs.h (__long_double_t): Remove.
32001 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32002 instead of __long_double_t,
32003 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32004
32005 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32006
32007 * benchtests/scripts/compare_strings.py: Avoid display error when
32008 running on a text terminal.
32009
32010 * benchtests/scripts/compare_strings.py (main): Add an
32011 optional -base option.
32012 (process_results): New argument base_func.
32013
32014 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32015 hardcoding memcpy.
32016 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32017 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32018
32019 2017-08-07 Andreas Schwab <schwab@suse.de>
32020
32021 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32022 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32023 * intl/Makefile ($(objpfx)tst-gettext.out)
32024 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32025 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32026 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32027 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32028 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32029 * posix/Makefile ($(objpfx)globtest.out)
32030 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32031 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32032 ($(objpfx)tst-printf.out): Likewise.
32033 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32034 ($(objpfx)tst-setcontext3.out): Likewise.
32035
32036 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32037
32038 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32039 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32040 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32041 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32042 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32043 and mptan-fma.
32044 (CFLAGS-doasin-fma.c): New.
32045 (CFLAGS-dosincos-fma.c): Likewise.
32046 (CFLAGS-e_asin-fma.c): Likewise.
32047 (CFLAGS-e_atan2-fma.c): Likewise.
32048 (CFLAGS-e_exp-fma.c): Likewise.
32049 (CFLAGS-e_log-fma.c): Likewise.
32050 (CFLAGS-e_pow-fma.c): Likewise.
32051 (CFLAGS-halfulp-fma.c): Likewise.
32052 (CFLAGS-mpa-fma.c): Likewise.
32053 (CFLAGS-mpatan-fma.c): Likewise.
32054 (CFLAGS-mpatan2-fma.c): Likewise.
32055 (CFLAGS-mpexp-fma.c): Likewise.
32056 (CFLAGS-mplog-fma.c): Likewise.
32057 (CFLAGS-mpsqrt-fma.c): Likewise.
32058 (CFLAGS-mptan-fma.c): Likewise.
32059 (CFLAGS-s_atan-fma.c): Likewise.
32060 (CFLAGS-sincos32-fma.c): Likewise.
32061 (CFLAGS-slowexp-fma.c): Likewise.
32062 (CFLAGS-slowpow-fma.c): Likewise.
32063 (CFLAGS-s_sin-fma.c): Likewise.
32064 (CFLAGS-s_tan-fma.c): Likewise.
32065 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32066 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32067 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32068 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32069 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32070 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32071 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32072 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32073 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32074 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32075 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32076 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32077 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32078 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32079 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32080 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32081 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32082 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32083 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32084 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32085 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32086 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32087 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32088 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32089 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32090 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32091 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32092 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32093 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32094 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32095 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32096
32097 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32098
32099 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32100 (min_of_type_f): New macro.
32101 (min_of_type_): Likewise.
32102 (min_of_type_l): Likewise.
32103 (min_of_type_f128): Likewise.
32104 (min_of_type): Define using __MATH_TG and taking an expression
32105 argument.
32106 (math_check_force_underflow): Pass expression instead of type to
32107 min_of_type.
32108 (math_check_force_underflow_nonneg): Likewise.
32109
32110 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32111
32112 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32113 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32114 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32115
32116 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32117
32118 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32119 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32120 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32121 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32122 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32123 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32124 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32125 memmove_chk-nonshared and memset_chk-nonshared
32126 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32127 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32128 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32129 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32130 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32131 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32132 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32133 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32134 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32135 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32136 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32137 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32138 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32139 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32140 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32141 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32142 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32143 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32144 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32145 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32146 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32147 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32148 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32149 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32150 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32151 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32152 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32153 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32154 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32155 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32156 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32157 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32158 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32159 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32160 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32161 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32162 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32163 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32164 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32165 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32166 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32167 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32168 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32169 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32170 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32171 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32172 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32173 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32174 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32175 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32176 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32177 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32178 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32179 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32180 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32181 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32182 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32183 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32184 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32185 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32186 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32187 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32188 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32189 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32190 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32191 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32192 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32193 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32194 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32195 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32196 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32197 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32198 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32199 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32200 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32201 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32202 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32203 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32204 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32205 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32206 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32207 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32208 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32209 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32210 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32211 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32212 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32213 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32214 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32215 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32216 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32217 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32218 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32219 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32220 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32221 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32222 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32223 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32224 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32225 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32226 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32227 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32228 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32229 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32230 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32231 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32232 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32233 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32234
32235 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32236
32237 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32238 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32239 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32240 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32241 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32242 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32243 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32244 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32245 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32246 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32247 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32248 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32249 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32250 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32251 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32252 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32253 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32254 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32255 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32256 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32257 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32258 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32259 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32260 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32261 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32262 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32263 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32264 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32265 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32266 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32267 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32268 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32269 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32270 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32271 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32272 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32273 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32274 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32275 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32276 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32277 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32278 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32279 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32280 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32281 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32282 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32283 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32284 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32285 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32286 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32287 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32288 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32289 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32290 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32291 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32292 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32293 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32294 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32295 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32296 ...
32297 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32298 Don't include <sysdep.h> nor <init-arch.h>.
32299 (_ZGVbN2v_cos): Removed.
32300 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32301 ...
32302 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32303 Don't include <sysdep.h> nor <init-arch.h>.
32304 (_ZGVdN4v_cos): Removed.
32305 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32306 ...
32307 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32308 Don't include <sysdep.h> nor <init-arch.h>.
32309 (_ZGVeN8v_cos): Removed.
32310 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32311 ...
32312 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32313 Don't include <sysdep.h> nor <init-arch.h>.
32314 (_ZGVbN2v_exp): Removed.
32315 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32316 ...
32317 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32318 Don't include <sysdep.h> nor <init-arch.h>.
32319 (_ZGVdN4v_exp): Removed.
32320 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32321 ...
32322 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32323 Don't include <sysdep.h> nor <init-arch.h>.
32324 (_ZGVeN8v_exp): Removed.
32325 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32326 ...
32327 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32328 Don't include <sysdep.h> nor <init-arch.h>.
32329 (_ZGVbN2v_log): Removed.
32330 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32331 ...
32332 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32333 Don't include <sysdep.h> nor <init-arch.h>.
32334 (_ZGVdN4v_log): Removed.
32335 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32336 ...
32337 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32338 Don't include <sysdep.h> nor <init-arch.h>.
32339 (_ZGVeN8v_log): Removed.
32340 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32341 ...
32342 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32343 Don't include <sysdep.h> nor <init-arch.h>.
32344 (_ZGVbN2vv_pow): Removed.
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32346 ...
32347 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32348 Don't include <sysdep.h> nor <init-arch.h>.
32349 (_ZGVdN4vv_pow): Removed.
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32351 ...
32352 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32353 Don't include <sysdep.h> nor <init-arch.h>.
32354 (_ZGVeN8vv_pow): Removed.
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32356 ...
32357 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32358 Don't include <sysdep.h> nor <init-arch.h>.
32359 (_ZGVbN2v_sin): Removed.
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32361 ...
32362 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32363 Don't include <sysdep.h> nor <init-arch.h>.
32364 (_ZGVbN4v_sin): Removed.
32365 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32366 ...
32367 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32368 Don't include <sysdep.h> nor <init-arch.h>.
32369 (_ZGVbN8v_sin): Removed.
32370 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32371 ...
32372 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32373 Don't include <sysdep.h> nor <init-arch.h>.
32374 (_ZGVbN2vvv_sincos): Removed.
32375 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32376 ...
32377 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32378 Don't include <sysdep.h> nor <init-arch.h>.
32379 (_ZGVdN4vvv_sincos): Removed.
32380 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32381 ...
32382 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32383 Don't include <sysdep.h> nor <init-arch.h>.
32384 (_ZGVeN8vvv_sincos): Removed.
32385 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32386 ...
32387 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32388 Don't include <sysdep.h> nor <init-arch.h>.
32389 (_ZGVeN16v_cosf): Removed.
32390 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32391 ...
32392 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32393 Don't include <sysdep.h> nor <init-arch.h>.
32394 (_ZGVbN4v_cosf): Removed.
32395 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32396 ...
32397 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32398 Don't include <sysdep.h> nor <init-arch.h>.
32399 (_ZGVdN8v_cosf): Removed.
32400 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32401 ...
32402 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32403 Don't include <sysdep.h> nor <init-arch.h>.
32404 (_ZGVeN16v_expf): Removed.
32405 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32406 ...
32407 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32408 Don't include <sysdep.h> nor <init-arch.h>.
32409 (_ZGVbN4v_expf): Removed.
32410 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32411 ...
32412 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32413 Don't include <sysdep.h> nor <init-arch.h>.
32414 (_ZGVdN8v_expf): Removed.
32415 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32416 ...
32417 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32418 Don't include <sysdep.h> nor <init-arch.h>.
32419 (_ZGVeN16v_logf): Removed.
32420 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32421 ...
32422 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32423 Don't include <sysdep.h> nor <init-arch.h>.
32424 (_ZGVbN4v_logf): Removed.
32425 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32426 ...
32427 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32428 Don't include <sysdep.h> nor <init-arch.h>.
32429 (_ZGVdN8v_logf): Removed.
32430 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32431 ...
32432 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32433 Don't include <sysdep.h> nor <init-arch.h>.
32434 (_ZGVeN16vv_powf): Removed.
32435 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32436 ...
32437 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32438 Don't include <sysdep.h> nor <init-arch.h>.
32439 (_ZGVbN4vv_powf): Removed.
32440 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32441 ...
32442 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32443 Don't include <sysdep.h> nor <init-arch.h>.
32444 (_ZGVdN8vv_powf): Removed.
32445 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32446 ...
32447 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32448 Don't include <sysdep.h> nor <init-arch.h>.
32449 (_ZGVeN16vvv_sincosf): Removed.
32450 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32451 ...
32452 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32453 Don't include <sysdep.h> nor <init-arch.h>.
32454 (_ZGVbN4vvv_sincosf): Removed.
32455 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32456 ...
32457 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32458 Don't include <sysdep.h> nor <init-arch.h>.
32459 (_ZGVdN8vvv_sincosf): Removed.
32460 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32461 ...
32462 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32463 Don't include <sysdep.h> nor <init-arch.h>.
32464 (_ZGVeN16v_sinf): Removed.
32465 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32466 ...
32467 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32468 Don't include <sysdep.h> nor <init-arch.h>.
32469 (_ZGVbN4v_sinf): Removed.
32470 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32471 ...
32472 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32473 Don't include <sysdep.h> nor <init-arch.h>.
32474 (_ZGVdN8v_sinf): Removed.
32475
32476 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32477
32478 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32479 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32480 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32481 s_rint-sse4_1 and s_rintf-sse4_1.
32482 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32483 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32484 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32485 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32486 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32487 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32488 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32489 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32490 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32491 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32492 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32493 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32494 (__ceil): Removed.
32495 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32496 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32497 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32498 (__ceilf): Removed.
32499 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32500 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32501 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32502 (__floor): Removed.
32503 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32504 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32505 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32506 (__floorf): Removed.
32507 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32508 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32509 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32510 (__nearbyint): Removed.
32511 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32512 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32513 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32514 (__nearbyintf): Removed.
32515 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32516 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32517 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32518 (__rint): Removed.
32519 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32520 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32521 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32522 (__rintf): Removed.
32523
32524 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32525
32526 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32527 SHARED. Avoid dynamic relocation against main in static PIE.
32528
32529 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32530
32531 [BZ #21815]
32532 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32533 (LDFLAGS-tst-prelink): Likewise.
32534
32535 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32536
32537 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32538 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32539 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32540 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32541 (INTERNAL_SYSCALL_NCS): Likewise.
32542 (LOADARGS_1): Likewise.
32543 (LOADARGS_5): Likewise.
32544 (RESTOREARGS_1): Likewise.
32545 (RESTOREARGS_5): Likewise.
32546
32547 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32548
32549 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32550 (MEMPCPY_SYMBOL): Likewise.
32551 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32552 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32553 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32554 in libc.a.
32555 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32556 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32557 Likewise.
32558 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32559 (__hidden_ver1): Don't use in libc.a.
32560 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32561 (__mempcpy): Don't create a weak alias in libc.a.
32562 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32563 libc.a.
32564 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32565 (__hidden_ver1): Don't use in libc.a.
32566
32567 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32568
32569 * config.make.in (have-insert): New.
32570 * configure.ac (libc_cv_insert): New. Set to yes if linker
32571 supports INSERT in linker script.
32572 (AC_SUBST(libc_cv_insert): New.
32573 * configure: Regenerated.
32574 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32575 if $(have-insert) == yes.
32576
32577 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32578
32579 * elf/Makefile (tests): Add vismain only if
32580 $(have-protected-data) == yes.
32581 (tests-pie): Likewise.
32582
32583 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32584
32585 [BZ #21871]
32586 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32587 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32588
32589 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32590
32591 [BZ #21790]
32592 * sysdeps/i386/i586/memset.S
32593 (__memset_zero_constant_len_parameter): Removed.
32594 * sysdeps/i386/i686/memset.S
32595 (__memset_zero_constant_len_parameter): Likewise.
32596 * sysdeps/i386/i686/multiarch/memset_chk.S
32597 (__memset_zero_constant_len_parameter): Likewise.
32598 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32599 Likewise.
32600
32601 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32602
32603 * stdlib/getentropy.c (getentropy): Change return type to int.
32604
32605 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32606
32607 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32608
32609 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32610
32611 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32612 u_intN_t.
32613 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32614 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32615 Likewise.
32616 (ieee_float_shape_type): Likewise.
32617 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32618 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32619 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32620 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32621 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32622 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32623 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32624 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32625 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32626 Likewise.
32627 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32628 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32629 (__ieee754_yn): Likewise.
32630 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32631 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32632 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32633 Likewise.
32634 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32635 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32636 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32637 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32638 (__erfc): Likewise.
32639 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32640 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32641 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32642 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32643 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32644 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32645 Likewise.
32646 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32647 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32648 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32649 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32650 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32651 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32652 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32653 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32654 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32655 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32656 (__issignaling): Likewise.
32657 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32658 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32659 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32660 Likewise.
32661 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32662 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32663 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32664 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32665 Likewise.
32666 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32667 Likewise.
32668 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32669 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32670 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32671 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32672 (__erfcf): Likewise.
32673 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32674 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32675 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32676 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32677 Likewise.
32678 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32679 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32680 Likewise.
32681 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32682 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32683 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32684 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32685 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32686 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32687 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32688 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32689 Likewise.
32690 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32691 Likewise.
32692 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32693 Likewise.
32694 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32695 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32696 Likewise.
32697 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32698 Likewise.
32699 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32700 (__ieee754_ynl): Likewise.
32701 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32702 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32703 Likewise.
32704 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32705 Likewise.
32706 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32707 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32708 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32709 Likewise.
32710 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32711 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32712 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32713 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32714 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32715 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32716 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32717 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32718 Likewise.
32719 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32720 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32721 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32722 Likewise.
32723 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32724 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32725 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32726 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32727 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32728 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32729 Likewise.
32730 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32731 Likewise.
32732 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32733 Likewise.
32734 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32735 Likewise.
32736 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32737 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32738 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32739 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32740 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32741 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32742 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32743 Likewise.
32744 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32745 Likewise.
32746 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32747 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32748 Likewise.
32749 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32750 (__ieee754_remainderl): Likewise.
32751 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32752 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32753 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32754 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32755 Likewise.
32756 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32757 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32758 Likewise.
32759 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32760 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32761 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32762 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32763 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32764 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32765 Likewise.
32766 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32767 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32768 (__ieee754_y0l): Likewise.
32769 (pzero): Likewise.
32770 (qzero): Likewise.
32771 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32772 (__ieee754_y1l): Likewise.
32773 (pone): Likewise.
32774 (qone): Likewise.
32775 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32776 (__ieee754_ynl): Likewise.
32777 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32778 (__ieee754_lgammal_r): Likewise.
32779 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32780 Likewise.
32781 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32782 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32783 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32784 (__erfcl): Likewise.
32785 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32786 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32787 Likewise.
32788 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32789 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32790 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32791 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32792 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32793 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32794 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32795 Likewise.
32796 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32797 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32798 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32799 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32800 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32801 Likewise.
32802 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32803 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32804 Likewise.
32805 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32806 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32807 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32808 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32809 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32810
32811 2017-08-03 Florian Weimer <fweimer@redhat.com>
32812
32813 [BZ #21885]
32814 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32815 on memory allocation failure.
32816
32817 2017-08-03 Alan Modra <amodra@gmail.com>
32818
32819 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32820 tst-tlsopt-powerpc.c with function name change and no test harness.
32821 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32822 Call tls_get_addr_opt_test.
32823 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32824 (modules-names): Add mod-tlsopt-powerpc.
32825 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32826 (tst-tlsopt-powerpc): Depend on .so.
32827 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32828 define. Expand use in TLS_GD and TLS_LD.
32829
32830 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32831
32832 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32833 function.
32834 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32835
32836 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32837
32838 [BZ #21686]
32839 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32840 comparing size with that of double.
32841 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32842 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32843 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32844 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32845 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32846 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32847 unsigned __int128 types.
32848
32849 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32850
32851 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32852 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32853 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32854 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32855 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32856
32857 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32858
32859 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32860
32861 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32862
32863 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32864 of SHARED.
32865 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32866 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32867 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32868 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32869 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32870 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32871 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32872
32873 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32874
32875 [BZ #21685]
32876 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32877 bit-field expressions passed to sizeof or typeof.
32878 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32879 (__TGMATH_F128): Likewise.
32880 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32881 (__TGMATH_CF128): Likewise.
32882 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32883 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32884 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32885 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32886 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32887 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32888 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32889 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32890 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32891 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32892 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32893 (__TGMATH_UNARY_IMAG): Likewise.
32894 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32895 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32896 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32897 type.
32898 (define_vars_for_type): Handle bit_field type specially.
32899 (Tests.__init__): Declare structure with bit-field element.
32900
32901 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32902
32903 [BZ #21791]
32904 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32905 (MEMCPY_CHK): Define only if SHARED is defined.
32906 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32907 Likewise.
32908 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32909 Likewise.
32910
32911 See ChangeLog.18 for earlier changes.