]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add some spaces before '('.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2
3 * benchtests/bench-strcpy.c (do_test): Use space before '('.
4 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5 * benchtests/bench-strlen.c (do_test): Likewise.
6 (test_main): Likewise.
7 * catgets/gencat.c (read_old): Likewise.
8 * elf/cache.c (load_aux_cache): Likewise.
9 * iconvdata/bug-iconv8.c (do_test): Likewise.
10 * math/test-tgmath-ret.c (do_test): Likewise.
11 * nis/nis_call.c (rec_dirsearch): Likewise.
12 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
13 * nptl/tst-audit-threads.c (do_test): Likewise.
14 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
15 * nss/nss_test1.c (init): Likewise.
16 * nss/test-netdb.c (test_hosts): Likewise.
17 * posix/execvpe.c (maybe_script_execute): Likewise.
18 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
19 * stdio-common/tst-printf.c (do_test): Likewise.
20 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
21 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
22 * stdlib/qsort.c (STACK_SIZE): Likewise.
23 * stdlib/test-canon.c (do_test): Likewise.
24 * stdlib/tst-swapcontext1.c (do_test): Likewise.
25 * string/memcmp.c (OPSIZ): Likewise.
26 * string/test-strcpy.c (do_test): Likewise.
27 (do_random_tests): Likewise.
28 * string/test-strlen.c (do_test): Likewise.
29 (test_main): Likewise.
30 * string/test-strrchr.c (do_test): Likewise.
31 (do_random_tests): Likewise.
32 * string/tester.c (test_memrchr): Likewise.
33 (test_memchr): Likewise.
34 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
35 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
36 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
37 (read_encoded_value_with_base): Likewise.
38 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
39 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
40 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
41 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
42 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
43 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
44 Likewise.
45 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
46 Likewise.
47 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
48 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
49 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
50 Likewise.
51 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
52 Likewise.
53 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
54 Likewise.
55 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
56 Likewise.
57 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
58 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
59 (FP_XSTATE_MAGIC2_SIZE): Likewise.
60 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
61 * time/test_time.c (main): Likewise.
62
63 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
64
65 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
66
67 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
68 wmemcpy.
69
70 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
71 wmemcpy.
72
73 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
74
75 * include/wchar.h (__wcscpy): New prototype.
76 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
77 (__wcscpy): Route internal symbol to generic implementation.
78 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
79 Add internal __wcscpy alias.
80 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
81 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
82 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
83 * wcsmbs/wcscpy.c (wcscpy): Add
84 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
85 use generic implementation.
86 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
87
88 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
89 wmemset.
90
91 * sysdeps/m68k/wcpcpy.c: Remove file.
92 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
93
94 2019-02-26 Joseph Myers <joseph@codesourcery.com>
95
96 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
97 than after operators.
98 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
99 * sysdeps/mach/hurd/getcwd.c
100 (__hurd_canonicalize_directory_name_internal): Likewise.
101 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
102 (pthread_mutex_consistent): Likewise.
103 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
104 Likewise.
105 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
106 (__pthread_mutex_transfer_np): Likewise.
107 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
108 (__pthread_mutex_unlock): Likewise.
109 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
110 (mtx_owned_p): Likewise.
111 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
112 (pthread_mutexattr_getrobust): Likewise.
113 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
114 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
115 Likewise.
116 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
117 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
118 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
119 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
120 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
121 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
122 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
123 Likewise.
124 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
125 Likewise.
126 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
127 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
128 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
129 (____longjmp_chk): Likewise.
130 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
131 Likewise.
132 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
133 (INTERNAL_SYSCALL): Likewise.
134 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
135 (INTERNAL_SYSCALL): Likewise.
136 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
137 (__get_clockfreq_via_cpuinfo): Likewise.
138
139 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
140 comments.
141 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
142 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
143 (WORD_COPY_BWD): Likewise.
144 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
145 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
146 Likewise.
147 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
148 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
149 comment.
150 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
151
152 2019-02-25 Joseph Myers <joseph@codesourcery.com>
153
154 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
155 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
156 rather than after operators.
157 * elf/cache.c (print_cache): Likewise.
158 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
159 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
160 * hurd/hurdinit.c (_hurd_setproc): Likewise.
161 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
162 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
163 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
164 (reauth_proc): Likewise.
165 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
166 (__file_name_split_at): Likewise.
167 (__directory_name_split_at): Likewise.
168 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
169 * hurd/port2fd.c (_hurd_port2fd): Likewise.
170 * iconv/gconv_dl.c (do_print): Likewise.
171 * inet/netinet/in.h (struct sockaddr_in): Likewise.
172 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
173 * locale/setlocale.c (new_composite_name): Likewise.
174 * malloc/memusagestat.c (main): Likewise.
175 * misc/fstab.c (fstab_convert): Likewise.
176 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
177 Likewise.
178 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
179 (getgrent_next_file): Likewise.
180 (internal_getgrnam_r): Likewise.
181 (internal_getgrgid_r): Likewise.
182 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
183 Likewise.
184 (internal_getgrent_r): Likewise.
185 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
186 (getpwent_next_nss): Likewise.
187 (getpwent_next_file): Likewise.
188 (internal_getpwnam_r): Likewise.
189 (internal_getpwuid_r): Likewise.
190 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
191 Likewise.
192 (getspent_next_nss): Likewise.
193 (internal_getspnam_r): Likewise.
194 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
195 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
196 * string/strchr.c (STRCHR): Likewise.
197 * string/strchrnul.c (STRCHRNUL): Likewise.
198 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
199 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
200 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
201 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
202 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
203 Likewise.
204 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
205 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
206 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
207 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
208 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
209 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
210 (open_file): Likewise.
211 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
212 (pthread_mutexattr_setprotocol): Likewise.
213 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
214 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
215 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
216 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
217 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
218 Likewise.
219 (elf_machine_rela): Likewise.
220 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
221 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
222 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
223 * sysdeps/posix/rename.c (rename): Likewise.
224 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
225 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
226 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
227 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
228 * sysdeps/unix/grantpt.c (grantpt): Likewise.
229 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
230 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
231 Likewise.
232 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
233 Likewise.
234 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
235 * time/tzfile.c (__tzfile_compute): Likewise.
236
237 2019-02-22 Joseph Myers <joseph@codesourcery.com>
238
239 * benchtests/bench-memmem.c (simple_memmem): Break lines before
240 rather than after operators.
241 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
242 * crypt/md5.c (md5_finish_ctx): Likewise.
243 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
244 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
245 * elf/cache.c (load_aux_cache): Likewise.
246 * elf/dl-load.c (open_verify): Likewise.
247 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
248 * elf/readelflib.c (process_elf_file): Likewise.
249 * elf/rtld.c (dl_main): Likewise.
250 * elf/sprof.c (generate_call_graph): Likewise.
251 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
252 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
253 * hurd/dtable.c (reauth_dtable): Likewise.
254 * hurd/getdport.c (__getdport): Likewise.
255 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
256 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
257 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
258 Likewise.
259 * hurd/hurdioctl.c (fioctl): Likewise.
260 * hurd/hurdselect.c (_hurd_select): Likewise.
261 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
262 (STOPSIGS): Likewise.
263 * hurd/hurdstartup.c (_hurd_startup): Likewise.
264 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
265 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
266 * hurd/msgportdemux.c (msgport_server): Likewise.
267 * hurd/setauth.c (_hurd_setauth): Likewise.
268 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
269 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
270 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
271 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
272 * login/tst-utmp.c (do_check): Likewise.
273 (simulate_login): Likewise.
274 * mach/lowlevellock.h (lll_lock): Likewise.
275 (lll_trylock): Likewise.
276 * math/test-fenv.c (ALL_EXC): Likewise.
277 * math/test-fenvinline.c (ALL_EXC): Likewise.
278 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
279 * nis/nis_call.c (__do_niscall3): Likewise.
280 * nis/nis_callback.c (cb_prog_1): Likewise.
281 * nis/nis_defaults.c (searchaccess): Likewise.
282 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
283 * nis/nis_ismember.c (internal_ismember): Likewise.
284 * nis/nis_local_names.c (nis_local_principal): Likewise.
285 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
286 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
287 Likewise.
288 * nis/ypclnt.c (yp_match): Likewise.
289 (yp_first): Likewise.
290 (yp_next): Likewise.
291 (yp_master): Likewise.
292 (yp_order): Likewise.
293 * nscd/hstcache.c (cache_addhst): Likewise.
294 * nscd/initgrcache.c (addinitgroupsX): Likewise.
295 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
296 (internal_getpwuid_r): Likewise.
297 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
298 * posix/glob.h (__GLOB_FLAGS): Likewise.
299 * posix/regcomp.c (peek_token): Likewise.
300 (peek_token_bracket): Likewise.
301 (parse_expression): Likewise.
302 * posix/regexec.c (sift_states_iter_mb): Likewise.
303 (check_node_accept_bytes): Likewise.
304 * posix/tst-spawn3.c (do_test): Likewise.
305 * posix/wordexp-test.c (testit): Likewise.
306 * posix/wordexp.c (parse_tilde): Likewise.
307 (exec_comm): Likewise.
308 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
309 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
310 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
311 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
312 * stdio-common/tst-fileno.c (do_test): Likewise.
313 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
314 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
315 * stdlib/strtod_l.c (round_and_return): Likewise.
316 (____STRTOF_INTERNAL): Likewise.
317 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
318 * string/strcspn.c (STRCSPN): Likewise.
319 * string/test-memmem.c (simple_memmem): Likewise.
320 * termios/tcsetattr.c (tcsetattr): Likewise.
321 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
322 * time/asctime.c (asctime_internal): Likewise.
323 * time/strptime_l.c (__strptime_internal): Likewise.
324 * time/sys/time.h (timercmp): Likewise.
325 * time/tzfile.c (__tzfile_compute): Likewise.
326
327 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
328
329 [BZ #21915]
330 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
331
332 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
333
334 * argp/argp-help.c (__argp_error_internal): New function,
335 renamed from __argp_error, but that takes a 'mode_flags'
336 parameter to control the format of long double parameters.
337 (__argp_error): Converted into a call __argp_error_internal.
338 (__argp_failure_internal): New function, renamed from
339 __argp_failure, but that takes a 'mode_flags' parameter.
340 (__argp_failure): Converted into a call __argp_failure_internal.
341 * misc/err.c (__vwarnx_internal): New function, renamed from
342 vwarnx, but that takes a 'mode_flags' parameter.
343 (vwarnx): Converted into a call to __vwarnx_internal.
344 (__vwarn_internal): New function, renamed from vwarn, but that
345 takes a 'mode_flags' parameter.
346 (vwarn): Converted into a call to __vwarn_internal.
347 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
348 call to __vfxprintf with 'mode_flags'.
349 (__error_internal): New function, renamed from error, but that
350 takes a 'mode_flags' parameter.
351 (error): Converted into a call to __error_internal.
352 (__error_at_line_internal): New function, renamed from
353 error_at_line, but that takes a 'mode_flags' parameter.
354 (error_at_line): Converted into a call to
355 __error_at_line_internal.
356 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
357 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
358 Likewise.
359
360 2019-02-20 Martin Liska <mliska@suse.cz>
361
362 * math/Makefile: Install math-vector-fortran.h.
363 * bits/math-vector-fortran.h: New file.
364 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
365
366 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
367
368 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
369 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
370
371 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
372
373 * nptl/pthread_mutex_trylock.c: Fix comment.
374
375 2019-02-19 Carlos O'Donell <carlos@redhat.com>
376
377 * nptl/pthread_tryjoin.c: Fix comment.
378
379 2019-02-18 Joseph Myers <joseph@codesourcery.com>
380
381 [BZ #24231]
382 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
383 after R_SPARC_H34 case.
384
385 2019-02-18 Florian Weimer <fweimer@redhat.com>
386
387 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
388 (getanswer): Do not call Dprintf.
389 (res_gethostbyname2_context): Likewise.
390 (res_gethostbyaddr_context): Likewise.
391
392 2019-02-18 Florian Weimer <fweimer@redhat.com>
393
394 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
395 declaration.
396 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
397 Remove definitions.
398 * libio/stdfiles.c: Update comment.
399 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
400 set _IO_stdin, _IO_stdout, _IO_stderr.
401 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
402 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
403 inline function.
404 (_IO_deallocate_file): New inline function.
405 * libio/iolibio.h (_IO_vprintf): Remove definition.
406 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
407 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
408 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
409 _IO_legacy_file.
410 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
411 __builtin_expect. Use _IO_legacy_file.
412
413 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
414
415 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
416 Initialize ctid with a known value and remove update of ctid
417 after clone.
418 (wait_tid): Adjust arguments and call futex_wait with ctid_val
419 as assumed current value of ctid_ptr.
420
421 2019-02-15 Florian Weimer <fweimer@redhat.com>
422
423 Check that non-sysdeps headers have wrapper headers.
424 * scripts/check-wrapper-headers.py: New file.
425 * Makefile (tests-special): Add check-wrapper-headers.out.
426 (check-wrapper-headers.out): New target.
427 * Rules (tests-special): Add check-wrapper-headers.out.
428 (check-wrapper-headers.out): New target.
429
430 2019-02-15 Florian Weimer <fweimer@redhat.com>
431
432 Add missing header wrappers under include/.
433 * include/ar.h: New file.
434 * include/bits/mqueue2.h: Likewise.
435 * include/bits/stdio.h: Likewise.
436 * include/bits/stdio2.h: Likewise.
437 * include/fstab.h: Likewise.
438 * include/fts.h: Likewise.
439 * include/lastlog.h: Likewise.
440 * include/netinet/icmp6.h: Likewise.
441 * include/netinet/igmp.h: Likewise.
442 * include/netinet/ip6.h: Likewise.
443 * include/re_comp.h: Likewise.
444 * include/regexp.h: Likewise.
445 * include/rpcsvc/bootparam.h: Likewise.
446 * include/rpcsvc/yp_prot.h: Likewise.
447 * include/sys/random.h: Likewise.
448 * include/sys/stropts.h: Likewise.
449 * include/sys/ttychars.h: Likewise.
450 * include/sys/vfs.h: Likewise.
451 * include/wait.h: Likewise.
452
453 2019-02-15 Florian Weimer <fweimer@redhat.com>
454
455 * nptl_db/proc_service.h: Move to ...
456 * sysdeps/nptl/proc_service.h: ... here.
457 * nptl_db/thread_db.h: Move to ...
458 * sysdeps/nptl/thread_db.h: ... here.
459 * nptl/descr.h: Include <thread_db.h>.
460
461 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
462
463 * io/Makefile (tests): Add tst-lockf.
464 * io/lockf.c (lockf): Use __fcntl and only define for
465 !__OFF_T_MATCHES_OFF64_T.
466 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
467 __OFF_T_MATCHES_OFF64_T case.
468 * io/tst-lockf.c: New file.
469 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
470 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
471 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
472 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
473 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
475 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
476 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
477 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
478
479 2019-02-15 Florian Weimer <fweimer@redhat.com>
480
481 [BZ #24211]
482 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
483 pd->result after the thread descriptor has been freed.
484
485 2019-02-15 Joseph Myers <joseph@codesourcery.com>
486
487 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
488 from function return type.
489
490 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
491
492 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 * scripts/test_printers_common.py: Set TERM to a known harmless
495 value.
496
497 2019-02-14 Joseph Myers <joseph@codesourcery.com>
498
499 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
500 (xdr_u_int): Likewise.
501 (xdr_enum): Likewise.
502 (xdr_bytes): Reword fall-through comment.
503 (xdr_string): Likewise.
504
505 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
506
507 [BZ #2421]
508 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
509 (tests): Add tst-join8 tst-join9.
510 * nptl/lll_timedwait_tid.c: Remove file.
511 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
512 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
513 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
514 * nptl/pthread_join_common.c (timedwait_tid): New function.
515 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
516 is set.
517 * nptl/tst-join5.c (thread_join): New function.
518 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
519 check.
520 * nptl/tst-join8.c: New file.
521 * nptl/tst-join9.c: Likewise.
522 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
523 lll_futex_timed_wait_cancel): Add generic macros.
524 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
525 Remove definitions.
526 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
527 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
528 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
529 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
530 Remove function.
531 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
532 Likewise.
533 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
534 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
535 (lll_futex_timed_wait_cancel): New macro.
536
537 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
538
539 * benchtests/Makefile: Add malloc-simple benchmark.
540 * benchtests/bench-malloc-simple.c: New benchmark.
541
542 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
543
544 * benchtests/bench-memmove.c (do_one_test): Remove unused
545 ORIG_SRC.
546 (do_test): Adjust.
547 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
548 ORIG_SRC.
549 (do_test): Adjust.
550
551 2019-01-13 Jim Wilson <jimw@sifive.com>
552
553 [BZ #24040]
554 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
555 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
556 (func): New.
557 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
558 call func directly.
559 * nptl/Makefile (tests): Add tst-unwind-thread.
560 (CFLAGS-tst-unwind-thread.c): Define.
561 * nptl/tst-unwind-thread.c: New file.
562 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
563 as undefined.
564
565 2019-02-13 Joseph Myers <joseph@codesourcery.com>
566
567 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
568 comment wording.
569 * nis/nis_call.c (__do_niscall3): Likewise.
570
571 * catgets/gencat.c (normalize_line): Use braces around empty
572 'else' body.
573 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
574 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
575 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
576 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
577 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
578 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
579 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
580 definition.
581
582 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
583 execlp returns.
584
585 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
586
587 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
588 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
589 * benchtests/bench-strchr.c (stupid_strchr): Remove.
590 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
591 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
592 * benchtests/bench-strlen.c (builtin_strlen): Remove.
593 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
594 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
595 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
596 * benchtests/bench-strspn.c (stupid_strspn): Remove.
597 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
598 * benchtests/bench-bcopy.c: Delete file.
599 * benchtests/bench-bzero.c: Likewise.
600 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
601 (simple_memccpy): Remove.
602 (generic_memccpy): Add function.
603 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
604 * benchtests/bench-memmove.c (simple_bcopy): Remove.
605 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
606 (generic_mempcpy): Add new function.
607 * benchtests/bench-memset.c (simple_bzero): Remove.
608 (builtin_bzero): Remove.
609 (builtin_memset): Remove.
610 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
611 (generic_rawmemchr): Add new function.
612
613 2019-02-12 Florian Weimer <fweimer@redhat.com>
614
615 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
616
617 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
618
619 [BZ #24122]
620 * elf/Makefile (tests): Add tst-audit13.
621 (modules-names): Add tst-audit13mod1.
622 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
623 rule.
624 * elf/tst-audit13.c: New file.
625 * elf/tst-audit13mod1.c: Likewise.
626
627 2019-02-12 Florian Weimer <fweimer@redhat.com>
628
629 [BZ #24122]
630 * elf/rtld.c (unload_audit_module): New function.
631 (report_audit_module_load_error): Likewise.
632 (load_audit_module): Likewise. Extracted from dl_main. Call
633 _dl_close if the laversion symbol cannot be found. Use early
634 returns for error handling. Add malloc error check. Check for a
635 zero return value from la_version. Remove spurious comment about
636 static TLS initialization. Remove useless casts.
637 (notify_audit_modules_of_loaded_object): New function. Extracted
638 from dl_main.
639 (load_audit_module): Likewise.
640 (dl_main): Call load_audit_modules.
641
642 2019-02-12 Joseph Myers <joseph@codesourcery.com>
643
644 * elf/dl-exception.c (_dl_exception_create_format): Add
645 fall-through comments.
646 * elf/ldconfig.c (parse_conf_include): Likewise.
647 * elf/rtld.c (print_statistics): Likewise.
648 * locale/programs/charmap.c (parse_charmap): Likewise.
649 * misc/mntent_r.c (__getmntent_r): Likewise.
650 * posix/wordexp.c (parse_arith): Likewise.
651 (parse_backtick): Likewise.
652 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
653 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
654 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
655
656 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
657
658 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
659 Use float instead of double.
660
661 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
662
663 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
664
665 2019-02-08 Joseph Myers <joseph@codesourcery.com>
666
667 * sysdeps/powerpc/bits/mathinline.h: Remove.
668
669 2019-02-08 Florian Weimer <fweimer@redhat.com>
670
671 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
672 * math/bits/math-finite.h: Move to ...
673 * bits/math-finite.h: ... here.
674
675 2019-02-08 Florian Weimer <fweimer@redhat.com>
676
677 * sysdeps/generic/bits/unistd_ext.h: Move to ...
678 * bits/unistd_ext.h: here.
679
680 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
681
682 [BZ #21915]
683 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
684 * nss/tst-nss-files-hosts-long.c: New file.
685 * nss/tst-nss-files-hosts-long.root: New directory.
686 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
687 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
688
689 2019-02-08 Florian Weimer <fweimer@redhat.com>
690
691 * include/bits/unistd_ext.h: Remove file.
692 * posix/bits/unistd_ext.h: Move to ...
693 * sysdeps/generic/bits/unistd_ext.h: ... here.
694
695 2019-02-08 Florian Weimer <fweimer@redhat.com>
696
697 * include/bits/unistd_ext.h: New file.
698
699 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
700
701 * time/tst-strftime2.c: Use array_length macros instead of magic
702 numbers.
703
704 2019-02-08 Florian Weimer <fweimer@redhat.com>
705
706 [BZ #24161]
707 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
708 argument.
709 * nptl/register-atfork.c (__run_fork_handlers): Only perform
710 locking if the new do_locking argument is true.
711 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
712 __run_fork_handlers.
713
714 2019-02-08 Florian Weimer <fweimer@redhat.com>
715
716 [BZ #6399]
717 Linux: Add gettid system call wrapper.
718 * posix/Makefile (headers): Add bits/unistd_ext.h.
719 * posix/bits/unistd_ext.h: New file.
720 * posix/unistd.h: Include it.
721 * manual/process.texi (Process Identification): Document gettid.
722 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
723 tst-gettid, tst-gettid-kill.
724 (tst-gettid): Link with $(shared-thread-library).
725 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
726 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
727 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
728 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
729 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
730 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
731 Add gettid.
732 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
733 Likewise.
734 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
735 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
736 Likewise.
737 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
738 Likewise.
739 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
740 Likewise.
741 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
742 Likewise.
743 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
744 Likewise.
745 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
746 Likewise.
747 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
748 Likewise.
749 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
750 (GLIBC_2.30): Likewise.
751 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
752 (GLIBC_2.30): Likewise.
753 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
754 (GLIBC_2.30): Likewise.
755 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
756 (GLIBC_2.30): Likewise.
757 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
758 Likewise.
759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
760 (GLIBC_2.30): Likewise.
761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
762 (GLIBC_2.30): Likewise.
763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
764 (GLIBC_2.30): Likewise.
765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
766 (GLIBC_2.30): Likewise.
767 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
768 Likewise.
769 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
770 Likewise.
771 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
772 Likewise.
773 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
774 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
775 Likewise.
776 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
777 Likewise.
778 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
779 Likewise.
780 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
781 Likewise.
782 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
783
784 2019-02-07 Florian Weimer <fweimer@redhat.com>
785
786 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
787 compatibility symbols.
788
789 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
790
791 [BZ #24180]
792 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
793 Add compiler barriers and comments.
794
795 2019-02-07 Florian Weimer <fweimer@redhat.com>
796
797 * include/array_length.h (array_length): Do not use a statement
798 expression and _Static_assert, so that array_length can be used at
799 file scope and as a constant expression.
800
801 2019-02-07 Florian Weimer <fweimer@redhat.com>
802
803 * support/xdlfcn.h (xdlmopen): Declare.
804 * support/xdlmopen.c: New file.
805 * support/Makefile (libsupport-routines): Add xdlmopen.
806
807 2019-02-06 Joseph Myers <joseph@codesourcery.com>
808
809 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
810 before return type, without separate inline.
811 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
812 * elf/dl-tunables.h (tunable_is_name): Likewise.
813 * malloc/malloc.c (do_set_trim_threshold): Likewise.
814 (do_set_top_pad): Likewise.
815 (do_set_mmap_threshold): Likewise.
816 (do_set_mmaps_max): Likewise.
817 (do_set_mallopt_check): Likewise.
818 (do_set_perturb_byte): Likewise.
819 (do_set_arena_test): Likewise.
820 (do_set_arena_max): Likewise.
821 (do_set_tcache_max): Likewise.
822 (do_set_tcache_count): Likewise.
823 (do_set_tcache_unsorted_limit): Likewise.
824 * nis/nis_subr.c (count_dots): Likewise.
825 * nptl/allocatestack.c (advise_stack_range): Likewise.
826 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
827 (do_sin): Likewise.
828 (reduce_sincos): Likewise.
829 (do_sincos): Likewise.
830 * sysdeps/unix/sysv/linux/x86/elision-conf.c
831 (do_set_elision_enable): Likewise.
832 (TUNABLE_CALLBACK_FNDECL): Likewise.
833
834 2019-02-06 Florian Weimer <fweimer@redhat.com>
835
836 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
837 (xdlsym): Use dlerror to detect a NULL symbol.
838
839 2019-02-06 Florian Weimer <fweimer@redhat.com>
840
841 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
842 <stap-probe.h>.
843 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
844
845 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
846
847 * libio/tst-bz24153.c (wide): Use wide char format specifier.
848
849 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
850
851 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
852 __wmemcmp and weak alias to wmemcmp.
853
854 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
855
856 [BZ #23403]
857 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
858 TLS_TCB_AT_TP tls variant.
859 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
860 Add alignment checks.
861 * support/Makefile (libsupport-routines): Add xposix_memalign and
862 xpthread_setstack.
863 * support/support.h: Add xposix_memalign.
864 * support/xthread.h: Add xpthread_attr_setstack.
865 * support/xposix_memalign.c: New File.
866 * support/xpthread_attr_setstack.c: Likewise.
867
868 2019-02-05 Florian Weimer <fweimer@redhat.com>
869
870 [BZ #24164]
871 arm: Use "nr" constraint for Systemtap probes, to avoid the
872 compiler using memory operands for constants, due to the "o"
873 alternative in the default "nor" constraint.
874 * include/stap-probe.h [USE_STAP_PROBE]: Include
875 <stap-probe-machine.h>
876 * sysdeps/generic/stap-probe-machine.h: New file.
877 * sysdeps/arm/stap-probe-machine.h: Likewise.
878
879 2019-02-04 Joseph Myers <joseph@codesourcery.com>
880
881 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
882 with 0, not tcache->entries[tc_idx].
883
884 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
885 once.
886
887 2019-02-04 Andreas Schwab <schwab@suse.de>
888
889 [BZ #16976]
890 [BZ #17396]
891 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
892 looking up collating elements match against (wide) character
893 sequence instead of name. Correct alignment adjustment.
894 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
895 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
896 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
897 (LOCALES): Add cs_CZ.ISO-8859-2.
898 * posix/tst-fnmatch4.c: New file.
899 * posix/tst-fnmatch5.c: New file.
900 * include/wchar.h (__wmemcmp): Declare.
901 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
902 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
903 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
904 * sysdeps/s390/wmemcmp.c: Likewise.
905
906 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
907
908 [BZ #24155]
909 CVE-2019-7309
910 * NEWS: Updated for CVE-2019-7309.
911 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
912 upper 32 bits of RDX register for x32. Use unsigned Jcc
913 instructions, instead of signed.
914 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
915 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
916
917 2019-02-04 Florian Weimer <fweimer@redhat.com>
918
919 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
920 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
921 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
922 Likewise.
923 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
924 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
925 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
926 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
927 Likewise.
928 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
929 Likewise.
930 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
931 Likewise.
932 (posix_spawn_file_actions_addopen): Likewise.
933 (posix_spawn_file_actions_addclose): Likewise.
934 (posix_spawn_file_actions_adddup2): Likewise.
935 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
936 qualifiers.
937 (posix_spawn_file_actions_addfchdir_np): Likewise.
938
939 2019-02-04 David Newall <glibc@davidnewall.com>
940
941 elf: Implement --preload option for the dynamic linker.
942 * elf/rtld.c (preloadarg): New variable.
943 (handle_preload_list): Pass through “where” argument to
944 do_preload.
945 (dl_main): Handle "--preload" and add second call to
946 handle_preload_list.
947 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
948 (tst-rtld-preload-OBJS): Set variable.
949 (tst-rtld-preload.out): New target.
950 * elf/tst-rtld-preload.sh: New file.
951
952 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
953
954 * Makefile (testrun.sh): Exit in case of incorrect argument.
955
956 2019-02-04 Florian Weimer <fweimer@redhat.com>
957
958 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
959 alignment gaps.
960
961 2019-02-03 Florian Weimer <fweimer@redhat.com>
962
963 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
964 implicit overflow checks.
965
966 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
967
968 * stdlib/isomac.c: Include <unistd.h>.
969
970 2019-02-03 Florian Weimer <fweimer@redhat.com>
971
972 * include/time.h (__tzfile_default): Use int, not long int, for
973 the GMT offsets.
974 * time/tzfile.c (struct ttinfo): Change type of the offset member
975 to int.
976 (__tzfile_read): Remove useless cast.
977 (__tzfile_default): Adjust prototype.
978 * time/tzset.c (tz_rule): Change type of the offset member to int.
979 (parse_offset): Change the type of the sign variable to int.
980
981 2019-02-03 Florian Weimer <fweimer@redhat.com>
982
983 [BZ #24153]
984 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
985 * libio/getchar.c (getchar): Likewise.
986 * libio/getchar_u.c (getchar_unlocked): Likewise.
987 * libio/getwchar.c (getwchar): Likewise.
988 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
989 * libio/iogets.c (_IO_gets): Likewise.
990 * libio/vscanf.c (_IO_vscanf): Likewise.
991 * libio/vwscanf.c (__vwscanf): Likewise.
992 * libio/tst-bz24153.c: New file.
993 * libio/Makefile (tests): Add it.
994
995 2019-02-02 Florian Weimer <fweimer@redhat.com>
996
997 [BZ #14829]
998 * manual/resource.texi (Basic Scheduling Functions): Add
999 portability note. Change process to task throughout the section.
1000 Remove incorrect comment about sched_yield as it affects
1001 tasks/threads, not entire processes.
1002 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1003 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1004
1005 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1006
1007 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1008 * configure: Regenerated.
1009 * manual/install.texi (Tools for Compilation): Update minimum GCC
1010 version.
1011 * INSTALL: Regenerated.
1012
1013 2019-02-01 Florian Weimer <fweimer@redhat.com>
1014
1015 * support/support_test_compare_string.c
1016 (support_test_compare_string): Use "string" in error message.
1017 * support/tst-test_compare_string.c (do_test): Adjust.
1018
1019 2019-02-01 Florian Weimer <fweimer@redhat.com>
1020
1021 * support/support_format_address_family.c
1022 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1023
1024 2019-02-01 Florian Weimer <fweimer@redhat.com>
1025
1026 * manual/socket.texi (Internet Address Formats): Clarify the byte
1027 order of struct sockaddr_in, struct sockaddr_in6. Document
1028 sin6_flowinfo and sin6_scope_id.
1029
1030 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1031
1032 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1033 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1034 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1035 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1036 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1037 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1038
1039 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1040
1041 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1042 [!MEMCHR](MEMCHR): Set to __memchr.
1043 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1044 Add memchr_generic and memchr_nosimd.
1045 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1046 (__libc_ifunc_impl_list): Add memchr ifuncs.
1047 * sysdeps/aarch64/multiarch/memchr.c: New file.
1048 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1049 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1050
1051 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1052
1053 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1054 Add memset_emag.
1055 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1056 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1057 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1058 Add IS_EMAG check for ifunc dispatch.
1059 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1060 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1061
1062 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1063
1064 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1065 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1066 Add emag.
1067 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1068 New macro.
1069
1070 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1071
1072 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1073
1074 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1075
1076 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1077 syscall-template file.
1078
1079 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1080 Torvald Riegel <triegel@redhat.com>
1081 Rik Prohaska <prohaska7@gmail.com>
1082
1083 [BZ# 23844]
1084 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1085 tst-rwlock-trywrlock-stall.
1086 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1087 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1088 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1089 Set __wrphase_fute to 1 only if we started the write phase.
1090 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1091 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1092 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1093 * support/xpthread_rwlock_destroy.c: New file.
1094 * support/xthread.h: Declare xpthread_rwlock_destroy.
1095
1096 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1097
1098 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1099 version to 4.0.2.
1100
1101 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1102
1103 [BZ #24051]
1104 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1105 * libio/fileops.c (_IO_new_file_underflow): Likewise
1106 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1107 * libio/putchar.c (putchar): Likewise.
1108 * libio/putchar_u.c (putchar_unlocked): Likewise.
1109 * libio/putwchar.c (putchar): Likewise.
1110 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1111 * libio/tst-bz24051.c: New test.
1112 * libio/Makefile (tests): Add tst-bz24051
1113
1114 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1115
1116 regex: fix read overrun [BZ #24114]
1117 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1118 https://debbugs.gnu.org/34140
1119 * posix/regexec.c (proceed_next_node):
1120 Do not read past end of input buffer.
1121
1122 2019-01-31 Florian Weimer <fweimer@redhat.com>
1123
1124 [BZ #24059]
1125 * nss/nss_files/files-alias.c (get_next_alias): Handle
1126 continuation line without newline at the end.
1127 * nss/tst-nss-files-alias-truncated.c: New file.
1128 * nss/Makefile [$(build-shared)] (tests): Add
1129 tst-nss-files-alias-truncated.
1130 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1131 * support/namespace.h (struct support_chroot_configuration): Add
1132 aliases member.
1133 (struct support_chroot): Add path_aliases member.
1134 * support/support_chroot.c (support_chroot_create): Handle
1135 aliases.
1136 (support_chroot_free): Free path_aliases.
1137
1138 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1139
1140 * version.h (RELEASE): Set to "development".
1141 (VERSION): Set to "2.29.9000".
1142 * NEWS: Add section for 2.30.
1143
1144 * version.h (RELEASE): Set to "stable".
1145 (VERSION): Set to "2.29".
1146 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1147
1148 * NEWS: Add the list of bugs fixed in 2.29.
1149 * manual/contrib.texi: Update contributors list with some more
1150 names.
1151 * manual/install.texi: Update latest versions of packages
1152 tested.
1153 * INSTALL: Regenerated.
1154
1155 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1156
1157 * po/be.po: Update translations.
1158 * po/bg.po: Likewise.
1159 * po/ca.po: Likewise.
1160 * po/cs.po: Likewise.
1161 * po/da.po: Likewise.
1162 * po/de.po: Likewise.
1163 * po/el.po: Likewise.
1164 * po/eo.po: Likewise.
1165 * po/es.po: Likewise.
1166 * po/fi.po: Likewise.
1167 * po/fr.po: Likewise.
1168 * po/gl.po: Likewise.
1169 * po/hr.po: Likewise.
1170 * po/hu.po: Likewise.
1171 * po/ia.po: Likewise.
1172 * po/id.po: Likewise.
1173 * po/it.po: Likewise.
1174 * po/ja.po: Likewise.
1175 * po/ko.po: Likewise.
1176 * po/lt.po: Likewise.
1177 * po/nb.po: Likewise.
1178 * po/nl.po: Likewise.
1179 * po/pl.po: Likewise.
1180 * po/pt_BR.po: Likewise.
1181 * po/ru.po: Likewise.
1182 * po/rw.po: Likewise.
1183 * po/sk.po: Likewise.
1184 * po/sl.po: Likewise.
1185 * po/sv.po: Likewise.
1186 * po/tr.po: Likewise.
1187 * po/uk.po: Likewise.
1188 * po/vi.po: Likewise.
1189 * po/zh_CN.po: Likewise.
1190 * po/zh_TW.po: Likewise.
1191
1192 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1193
1194 [BZ #24130]
1195 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1196 of $f3 register on $y_is_neg path.
1197
1198 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1199
1200 [BZ #24110]
1201 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1202 sigaltstack.ss_flags.
1203
1204 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1205
1206 [BZ #23758]
1207 * manual/time.texi (strftime): Document "%Ey".
1208 * time/strftime_l.c (__strftime_internal): Set the default width
1209 padding with zero of "%Ey" to 2.
1210
1211 [BZ #24096]
1212 * manual/time.texi (strftime): Document "%EC" and "%EY".
1213 * time/Makefile (tests): Add tst-strftime2.
1214 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1215 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1216 override padding for "%Ey".
1217 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1218 "%Ey" in the subformat as if decorated with that flag.
1219 * time/tst-strftime2.c: New file.
1220
1221 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1222
1223 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1224 are not defined.
1225
1226 [BZ #24122]
1227 * elf/Makefile (tests): Add tst-audit13.
1228 (modules-names): Add tst-audit13mod1.
1229 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1230 rule.
1231 * elf/rtld.c (dl_main): Handle invalid audit module version.
1232 * elf/tst-audit13.c: New file.
1233 * elf/tst-audit13mod1.c: Likewise.
1234
1235 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1236
1237 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1238 returned by __hurd_at_flags.
1239 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1240 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1241 directly instead of __hurd_file_name_lookup.
1242
1243 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1244
1245 * scripts/build-many-glibcs.py (Context.checkout): Default
1246 binutils version to 2.32 branch.
1247
1248 2019-01-21 Florian Weimer <fweimer@redhat.com>
1249
1250 [BZ #20018]
1251 CVE-2016-10739
1252 resolv: Reject trailing characters in host names
1253 * include/arpa/inet.h (__inet_aton_exact): Declare.
1254 (inet_aton): Remove hidden prototype. No longer used internally.
1255 * nscd/gai.c (__inet_aton): Do not define.
1256 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1257 * nss/digits_dots.c (__inet_aton): Likewise.
1258 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1259 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1260 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1261 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1262 (tst-resolv-trailing): Likewise.
1263 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1264 libc.
1265 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1266 Make static. Add endp parameter.
1267 (__inet_aton_exact): New function.
1268 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1269 (__inet_addr): Call inet_aton_end.
1270 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1271 not just IPv6. Call __inet_aton_exact.
1272 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1273 (tests): Make const. Add additional test cases with trailing
1274 characters.
1275 (do_test): Use array_length.
1276 * resolv/tst-inet_aton_exact.c: New file.
1277 * resolv/tst-resolv-trailing.c: Likewise.
1278 * resolv/tst-resolv-nondecimal.c: Likewise.
1279 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1280
1281 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 [BZ# 24097]
1284 CVE-2019-6488
1285 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1286 Clear the upper 32 bits of RSI register.
1287 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1288 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1289 and tst-size_t-wcsnlen.
1290 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1291 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1292
1293 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1294
1295 [BZ# 24097]
1296 CVE-2019-6488
1297 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1298 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1299 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1300 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1301 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1302
1303 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 [BZ# 24097]
1306 CVE-2019-6488
1307 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1308 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1309 * sysdeps/x86_64/strcmp.S: Likewise.
1310 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1311 tst-size_t-strncmp and tst-size_t-wcsncmp.
1312 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1313 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1314 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1315
1316 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1317
1318 [BZ# 24097]
1319 CVE-2019-6488
1320 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1321 RDX_LP for length. Clear the upper 32 bits of RDX register.
1322 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1323 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1324 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1325 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1326
1327 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1328
1329 [BZ# 24097]
1330 CVE-2019-6488
1331 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1332 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1333 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1334 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1335
1336 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 [BZ# 24097]
1339 CVE-2019-6488
1340 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1341 length. Clear the upper 32 bits of RDX register.
1342 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1343 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1344 Likewise.
1345 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1346 Likewise.
1347 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1348 tst-size_t-wmemchr.
1349 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1350
1351 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 [BZ# 24097]
1354 CVE-2019-6488
1355 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1356 length. Clear the upper 32 bits of RDX register.
1357 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1358 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1359 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1360 tst-size_t-wmemcmp.
1361 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1362 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1363
1364 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 [BZ# 24097]
1367 CVE-2019-6488
1368 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1369 upper 32 bits of RDX register.
1370 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1371 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1372 tst-size_t-wmemchr.
1373 * sysdeps/x86_64/x32/test-size_t.h: New file.
1374 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1375 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1376
1377 2019-01-18 Florian Weimer <fweimer@redhat.com>
1378
1379 [BZ #24112]
1380 resolv: Do not send queries for non-host-names in nss_dns.
1381 * resolv/nss_dns/dns-host.c (check_name): New function.
1382 (_nss_dns_gethostbyname2_r): Use it.
1383 (_nss_dns_gethostbyname_r): Likewise.
1384 (_nss_dns_gethostbyname4_r): Likewise.
1385
1386 2019-01-21 Florian Weimer <fweimer@redhat.com>
1387
1388 * resolv/inet_addr.c: Reformat to GNU style.
1389 (__inet_addr, __inet_aton): Update comment.
1390
1391 2019-01-18 Florian Weimer <fweimer@redhat.com>
1392
1393 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1394 ("malloc: Use current (C11-style) atomics for fastbin access").
1395 This commit introduces a substantial performance regression on
1396 POWER and Aarch64.
1397 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1398 (REMOVE_FB): Define.
1399 (_int_malloc): Use it and reindent.
1400 (_int_free): Use CAS loop with
1401 catomic_compare_and_exchange_val_rel.
1402 (malloc_consolidate): Use atomic_exchange_acq.
1403
1404
1405 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1408 -Wl,-z,now.
1409 (LDFLAGS-tst-minsigstksz-2): Likewise.
1410 (LDFLAGS-tst-minsigstksz-3): Likewise.
1411 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1412 (LDFLAGS-tst-minsigstksz-4): Likewise.
1413
1414 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1415
1416 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1417 than "alternate".
1418
1419 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1420
1421 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1422
1423 2019-01-16 Zack Weinberg <zackw@panix.com>
1424
1425 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1426 (xget_sigstack_location): New test support functions.
1427 * support/xsigstack.c: New file, implementing them.
1428 * support/tst-xsigstack.c: New test for them.
1429 * support/Makefile: Update.
1430
1431 * signal/tst-minsigstksz-1.c
1432 * signal/tst-minsigstksz-2.c
1433 * signal/tst-minsigstksz-3.c
1434 * signal/tst-minsigstksz-3a.c
1435 * signal/tst-minsigstksz-4.c: New tests.
1436 * signal/Makefile: Run them.
1437
1438 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1439
1440 * po/libc.pot: Regenerate.
1441
1442 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1443
1444 * math/libm-test-fma.inc (fma_test_data): Set
1445 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1446
1447 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1448
1449 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1450 (do_test): Changed __vector __int128_t to __vector unsigned int.
1451
1452 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1453
1454 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1455 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1456 stpcpy-avx2 and stpncpy-avx2.
1457 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1458 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1459 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1460 and __stpncpy_avx2.
1461 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1462 ifunc-strcpy.h}: rename header for a more generic name.
1463 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1464 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1465 AVX unaligned load is fast and vzeroupper is preferred.
1466 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1467 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1468 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1469 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1470 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1471 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1472
1473 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1474
1475 * argp/argp-help.c: Fix typo in comment.
1476 * misc/sys/cdefs.h: Likewise.
1477 * posix/regexec.c (sift_states_iter_mb): Likewise.
1478 * socket/sockatmark.c: Likewise.
1479 * socket/sys/socket.h: Likewise.
1480 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1481 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1482 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1483 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1484 * sysdeps/unix/sockatmark.c: Likewise.
1485 * time/strptime_l.c: Likewise.
1486
1487 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1488
1489 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1490 missing space after the cast of "_NL_CURRENT".
1491
1492 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1493
1494 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1495 ifdef to fix read of VSCR.
1496 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1497 tst-ucontext-ppc64-vscr.c to test list.
1498 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1499
1500 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1501
1502 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1503 fall-through.
1504
1505 2019-01-09 Jim Wilson <jimw@sifive.com>
1506
1507 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1508
1509 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1510
1511 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1512 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1513 __memcpy_falkor for ares.
1514 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1515 Add new define.
1516 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1517 Add ares cpu.
1518
1519 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1520
1521 [BZ #24066]
1522 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1523 4_FP_W_TYPEs are used for IEEE quad precision.
1524 * soft-fp/extendhftf2.c: Likewise.
1525 * soft-fp/extendsftf2.c: Likewise.
1526 * soft-fp/extendxftf2.c: Likewise.
1527 * soft-fp/trunctfdf2.c: Likewise.
1528 * soft-fp/trunctfhf2.c: Likewise.
1529 * soft-fp/trunctfsf2.c: Likewise.
1530 * soft-fp/trunctfxf2.c: Likewise.
1531 * sysdeps/alpha/ots_cvttx.c: Likewise.
1532 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1533 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1534 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1535 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1536 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1537 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1538 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1539 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1540 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1541 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1542 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1543 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1544 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1545 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1546 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1547 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1548 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1549
1550 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1551
1552 [BZ #24024]
1553 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1554 code with -fmath-errno.
1555 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1556 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1557 * string/test-strerror-errno.c: New file.
1558
1559 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1560
1561 [BZ #24046]
1562 * localedata/locales/en_US (date_fmt): Add, set to
1563 "%a %d %b %Y %r %Z".
1564
1565 2019-01-07 Florian Weimer <fweimer@redhat.com>
1566
1567 [BZ #24063]
1568 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1569 instead of @var{errno}.
1570 (Parsing of Integers): Likewise.
1571 (Parsing of Floats): Likewise.
1572 * manual/filesys.texi (Working with Directory Trees): Likewise.
1573 (Temporary Files): Likewise.
1574 * manual/job.texi (Terminal Access Functions): Likewise.
1575 * manual/llio.texi (Synchronizing I/O): Likewise.
1576 * manual/math.texi (SVID Random): Likewise.
1577 * manual/message.texi (The catgets Functions): Likewise.
1578 (Translation with gettext): Likewise.
1579 (Locating gettext catalog): Likewise.
1580 (Charset conversion in gettext): Likewise.
1581 * manual/nss.texi (NSS Module Function Internals): Likewise.
1582 * manual/search.texi (Hash Search Function): Likewise.
1583 * manual/setjmp.texi (System V contexts): Likewise.
1584 * manual/time.texi (Sleeping): Likewise.
1585 * manual/users.texi (Lookup User): Likewise.
1586 (Lookup Group): Likewise.
1587
1588 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1589
1590 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1591 fix typo.
1592
1593 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1594
1595 [BZ #19444]
1596 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1597 __builtin_unreachable for default case in switch.
1598 (__ieee754_yn): Likewise.
1599 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1600 (__ieee754_ynl): Likewise.
1601 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1602 (__ieee754_ynl): Likewise.
1603 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1604 (__ieee754_ynl): Likewise.
1605
1606 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1607
1608 * manual/maint.texi: Use @{ and @}.
1609
1610 2019-01-04 Florian Weimer <fweimer@redhat.com>
1611
1612 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1613 function.
1614 (do_in_chroot_1): Call it.
1615 (run_chroot_tests):
1616 Improve error reporting in case it is not possible to create a
1617 collision for the PTY name required by the test.
1618
1619 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1620
1621 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1622 lll_wait_tid with timeout.
1623 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1624 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1625 futex_reltimed_wait_cancelable for cancelabla mode.
1626 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1627 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1628 macros.
1629 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1630 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1631 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1632 SYSCALL_CANCEL_NCS): New macro.
1633 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1634 (lll_timedwait_tid): Remove macro.
1635 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1636 Likewise.
1637 (lll_timedwait_tid): Likewise.
1638 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1639 Likewise.
1640 (lll_timedwait_tid): Likewise.
1641 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1642 Likewise.
1643 (lll_timedwait_tid): Likewise.
1644 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1645 Use INTERNAL_SYSCALL_CANCEL.
1646 * sysdeps/unix/sysv/linux/futex-internal.h
1647 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1648 instead of __pthread_{enable,disable}_asynccancel.
1649 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1650 (lll_futex_wait_cancel): New macro.
1651
1652 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1653 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1654
1655 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1656 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1657
1658 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1659 in backtrace analysis.
1660 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1661 side-effects.
1662 (tf_send): Likewise.
1663
1664 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1665 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1666 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1667 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1668 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1669 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1670 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1671 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1672 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1673 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1674 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1675 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1676 Likewise.
1677 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1678 tst-cancel-wrappers.sh.
1679 (generated): Remove tst-cancel-wrappers.out.
1680 (tst-cancel-wrappers.out): Remove rule.
1681 * nptl/tst-cancel-wrappers.sh: Remove file.
1682
1683 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1684
1685 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1686 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1687 Update.
1688
1689 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1690
1691 [BZ #23640]
1692 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1693 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1694 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1695 close-on-exec reset for adddup2 file action.
1696 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1697
1698 2019-01-03 Zack Weinberg <zackw@panix.com>
1699
1700 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1701 parameter. Only use deprecated scanf when __USE_GNU is defined
1702 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1703 than 201103L, whichever is relevant for the language being compiled.
1704
1705 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1706 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1707 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1708 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1709 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1710
1711 * libio/iovsscanf.c
1712 * libio/fwscanf.c
1713 * libio/iovswscanf.c
1714 * libio/swscanf.c
1715 * libio/vscanf.c
1716 * libio/vwscanf.c
1717 * libio/wscanf.c
1718 * stdio-common/fscanf.c
1719 * stdio-common/scanf.c
1720 * stdio-common/vfscanf.c
1721 * stdio-common/vfwscanf.c
1722 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1723 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1724 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1725 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1726 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1727 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1728 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1729 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1730 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1731 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1732 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1733 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1734 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1735 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1736 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1737
1738 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1739 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1740 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1741 not sscanf.
1742 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1743 with a preprocessor macro.
1744
1745 * stdio-common/bug21.c, stdio-common/scanf14.c:
1746 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1747 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1748 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1749 to xscanf, xfscanf, xsscanf.
1750
1751 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1752 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1753 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1754 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1755 xfscanf, xsscanf.
1756 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1757 override feature selection macros or provide definitions of u_char etc.
1758 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1759 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1760 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1761 with -std=gnu89.
1762
1763 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1764
1765 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1766 bits/termios-misc.h.
1767 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1768 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1769 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1770 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1771 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1772 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1773
1774 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1775 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1776 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1777 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1778 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1779 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1780 termios-misc.h.
1781 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1782 (sysdep_headers): Add termios-misc.h.
1783
1784 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1785 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1786 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1787
1788 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1789 termios-tcflow.h.
1790 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1791 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1792 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1793 TCSAFLUSH): Move to termios-tcflow.h.
1794 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1795 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1796 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1797 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1798
1799 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1800 termios-c_lflag.h.
1801 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1802 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1803 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1804 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1805 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1806 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1807 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1808 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1809 Likewise.
1810 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1811 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1812 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1813 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1814
1815 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1816 termios-c_cflag.h.
1817 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1818 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1819 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1820 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1821 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1822 termios-c_cflag.h.
1823 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1824 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1825 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1826 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1827
1828 [BZ #23783]
1829 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1830 termios-baud.h.
1831 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1832 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1833 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1834 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1835 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1836 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1837 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1838 __MAX_BAUD): Move to termios-baud.h.
1839 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1840 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1841 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1842 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1843 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1844
1845 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1846 termios-c_oflag.h.
1847 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1848 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1849 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1850 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1851 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1852 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1853 termios-c_oflag.h.
1854 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1855 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1856 FFR1): Likewise.
1857 [USE_MISC] (XTABS): Likewise.
1858 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1859 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1860 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1861 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1862
1863 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1864 termios-c_iflag.h.
1865 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1866 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1867 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1868 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1869 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1870 IUTF8): Move to termios-c_iflag.h.
1871 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1872 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1873 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1874 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1875
1876 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1877 termios-cc.h.
1878 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1879 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1880 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1881 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1882 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1883 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1884 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1885 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1886 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1887 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1888 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1889 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1890
1891 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1892 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1893 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1894 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1895 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1896 termios-struct.h.
1897 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1898 termios-struct.h.
1899 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1900 Likewise.
1901 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1902 Likewise.
1903 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1904 Likewise.
1905 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1906 Likewise.
1907 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1908 _HAVE_C_OSPEED): Define.
1909 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1910 _HAVE_C_OSPEED): Likewise.
1911 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1912 _HAVE_C_OSPEED): Likewise.
1913 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1914 (cfsetospeed): Check for define value instead of existence.
1915 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1916 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1917 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1918 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1919 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1920
1921 [BZ #17783]
1922 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1923 Define.
1924 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1925 (TIOCSER_TEMT): Likewise.
1926 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1927 (TEOCSER_TEMT): Likewise.
1928
1929 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1930
1931 [BZ #24011]
1932 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1933
1934 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1935
1936 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1937
1938 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1939
1940 * sysdeps/htl/pt-barrierattr-setpshared.c
1941 (pthread_barrierattr_setpshared): Add stub warning.
1942 * sysdeps/htl/pt-condattr-setpshared.c
1943 (pthread_condattr_setpshared): Likewise.
1944 * sysdeps/htl/pt-mutexattr-setpshared.c
1945 (pthread_mutexattr_setpshared): Likewise.
1946 * sysdeps/htl/pt-rwlockattr-setpshared.c
1947 (pthread_rwlockattr_setpshared): Likewise.
1948 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1949 (pthread_mutexattr_setpshared): Likewise.
1950
1951 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1952
1953 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1954 constants to match with Linux 4.20.
1955
1956 * sysdeps/mips/mips32/libm-test-ulps: Update.
1957 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1958
1959 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1960
1961 [BZ #24034]
1962 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1963 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1964 than __typeof (...) for the a_ptr variable.
1965
1966 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1967
1968 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1969 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1970 * libio/Makefile (tests): Add tst-sprintf-ub and
1971 tst-sprintf-chk-ub.
1972 (CFLAGS-tst-sprintf-ub.c): New variable.
1973 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1974 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1975 destination buffer and check for overflows in fortified mode.
1976 * libio/libioP.h (PRINTF_CHK): New macro.
1977 * libio/tst-sprintf-chk-ub.c: New file.
1978 * libio/tst-sprintf-ub.c: Likewise.
1979
1980 2019-01-02 Florian Weimer <fweimer@redhat.com>
1981
1982 [BZ #24018]
1983 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1984 failure.
1985
1986 2019-01-02 Florian Weimer <fweimer@redhat.com>
1987
1988 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1989
1990 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1991
1992 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1993 macro.
1994
1995 * sysdeps/unix/sysv/linux/netpacket/packet.h
1996 (PACKET_IGNORE_OUTGOING): New macro.
1997
1998 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1999 macro.
2000
2001 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2002 version to 4.20.
2003 (riscv_flush_icache): New syscall.
2004
2005 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2006 trailing whitespace removed.
2007 * scripts/config.guess: Update to version 2019-01-01.
2008 * scripts/config.sub: Update to version 2019-01-01.
2009 * scripts/move-if-change: Update from gnulib.
2010
2011 * NEWS: Update copyright dates.
2012 * catgets/gencat.c (print_version): Likewise.
2013 * csu/version.c (banner): Likewise.
2014 * debug/catchsegv.sh: Likewise.
2015 * debug/pcprofiledump.c (print_version): Likewise.
2016 * debug/xtrace.sh (do_version): Likewise.
2017 * elf/ldconfig.c (print_version): Likewise.
2018 * elf/ldd.bash.in: Likewise.
2019 * elf/pldd.c (print_version): Likewise.
2020 * elf/sotruss.sh: Likewise.
2021 * elf/sprof.c (print_version): Likewise.
2022 * iconv/iconv_prog.c (print_version): Likewise.
2023 * iconv/iconvconfig.c (print_version): Likewise.
2024 * locale/programs/locale.c (print_version): Likewise.
2025 * locale/programs/localedef.c (print_version): Likewise.
2026 * login/programs/pt_chown.c (print_version): Likewise.
2027 * malloc/memusage.sh (do_version): Likewise.
2028 * malloc/memusagestat.c (print_version): Likewise.
2029 * malloc/mtrace.pl: Likewise.
2030 * manual/libc.texinfo: Likewise.
2031 * nptl/version.c (banner): Likewise.
2032 * nscd/nscd.c (print_version): Likewise.
2033 * nss/getent.c (print_version): Likewise.
2034 * nss/makedb.c (print_version): Likewise.
2035 * posix/getconf.c (main): Likewise.
2036 * scripts/test-installation.pl: Likewise.
2037 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2038
2039 * All files with FSF copyright notices: Update copyright dates
2040 using scripts/update-copyrights.
2041 * locale/programs/charmap-kw.h: Regenerated.
2042 * locale/programs/locfile-kw.h: Likewise.
2043
2044 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2045
2046 * timezone/zdump.c: Update from tzcode 2018i.
2047 * timezone/zic.c: Likewise.
2048
2049 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2050
2051 regex: improve Gnulib port to AIX
2052 From the glibc point of view, this removes duplicate macro
2053 definitions and is obviously safe.
2054 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2055 * posix/regex_internal.h:
2056 (__attribute__, __attribute_warn_unused_result__):
2057 Remove; already defined elsewhere.
2058
2059 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2060
2061 [BZ #24027]
2062 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2063 copying operation. (ncopies had the wrong type, resulting in an
2064 integer wraparound and too few elements being copied.)
2065
2066 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2067
2068 [BZ #24022]
2069 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2070 <asm/syscalls.h> exists with __has_include__ before including it.
2071
2072 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2073
2074 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2075 version to 4.20.
2076
2077 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2078
2079 * hurd/lookup-retry: Include <unistd.h>.
2080 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2081 Release it on return. Handle "pid" magical lookup retry.
2082
2083 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2084
2085 [BZ #10496]
2086 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2087 (t_fmt_ampm): Likewise.
2088 * localedata/locales/aa_ER (t_fmt): Likewise.
2089 (t_fmt_ampm): Likewise.
2090 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2091 (t_fmt_ampm): Likewise.
2092 * localedata/locales/aa_ET (t_fmt): Likewise.
2093 (t_fmt_ampm): Likewise.
2094 * localedata/locales/am_ET (t_fmt): Likewise.
2095 (t_fmt_ampm): Likewise.
2096 * localedata/locales/byn_ER (t_fmt): Likewise.
2097 (t_fmt_ampm): Likewise.
2098 * localedata/locales/om_ET (t_fmt): Likewise.
2099 (t_fmt_ampm): Likewise.
2100 * localedata/locales/sid_ET (t_fmt): Likewise.
2101 (t_fmt_ampm): Likewise.
2102 * localedata/locales/so_DJ (t_fmt): Likewise.
2103 (t_fmt_ampm): Likewise.
2104 * localedata/locales/so_ET (t_fmt): Likewise.
2105 (t_fmt_ampm): Likewise.
2106 * localedata/locales/so_SO (t_fmt): Likewise.
2107 (t_fmt_ampm): Likewise.
2108 * localedata/locales/ti_ER (t_fmt): Likewise.
2109 (t_fmt_ampm): Likewise.
2110 * localedata/locales/ti_ET (t_fmt): Likewise.
2111 (t_fmt_ampm): Likewise.
2112 * localedata/locales/tig_ER (t_fmt): Likewise.
2113 (t_fmt_ampm): Likewise.
2114 * localedata/locales/wal_ET (t_fmt): Likewise.
2115 (t_fmt_ampm): Likewise.
2116
2117 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2118 * localedata/locales/ar_IN (t_fmt): Likewise.
2119 * localedata/locales/bhb_IN (t_fmt): Likewise.
2120 * localedata/locales/bho_IN (t_fmt): Likewise.
2121 * localedata/locales/bi_VU (t_fmt): Likewise.
2122 * localedata/locales/bn_BD (t_fmt): Likewise.
2123 * localedata/locales/bn_IN (t_fmt): Likewise.
2124 * localedata/locales/brx_IN (t_fmt): Likewise.
2125 * localedata/locales/doi_IN (t_fmt): Likewise.
2126 * localedata/locales/en_HK (t_fmt): Likewise.
2127 (t_fmt_ampm): Likewise.
2128 * localedata/locales/en_IN (t_fmt): Likewise.
2129 * localedata/locales/en_PH (t_fmt): Likewise.
2130 * localedata/locales/gu_IN (t_fmt): Likewise.
2131 * localedata/locales/hi_IN (t_fmt): Likewise.
2132 * localedata/locales/hif_FJ (t_fmt): Likewise.
2133 * localedata/locales/hne_IN (t_fmt): Likewise.
2134 * localedata/locales/kn_IN (t_fmt): Likewise.
2135 * localedata/locales/kok_IN (t_fmt): Likewise.
2136 * localedata/locales/ks_IN (t_fmt): Likewise.
2137 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2138 * localedata/locales/mag_IN (t_fmt): Likewise.
2139 * localedata/locales/mai_IN (t_fmt): Likewise.
2140 * localedata/locales/mjw_IN (t_fmt): Likewise.
2141 * localedata/locales/ml_IN (t_fmt): Likewise.
2142 * localedata/locales/mni_IN (t_fmt): Likewise.
2143 * localedata/locales/mr_IN (t_fmt): Likewise.
2144 * localedata/locales/ms_MY (t_fmt): Likewise.
2145 * localedata/locales/pa_IN (t_fmt): Likewise.
2146 * localedata/locales/raj_IN (t_fmt): Likewise.
2147 * localedata/locales/sa_IN (t_fmt): Likewise.
2148 * localedata/locales/sat_IN (t_fmt): Likewise.
2149 * localedata/locales/sd_IN (t_fmt): Likewise.
2150 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2151 * localedata/locales/tcy_IN (t_fmt): Likewise.
2152 * localedata/locales/the_NP (t_fmt): Likewise.
2153 * localedata/locales/to_TO (t_fmt): Likewise.
2154 * localedata/locales/ur_IN (t_fmt): Likewise.
2155
2156 * localedata/locales/hif_FJ (d_t_fmt): Set to
2157 "%A %d %b %Y %I:%M:%S %p".
2158 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2159
2160 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2161 * localedata/locales/ar_BH (t_fmt): Likewise.
2162 * localedata/locales/ar_DZ (t_fmt): Likewise.
2163 * localedata/locales/ar_EG (t_fmt): Likewise.
2164 * localedata/locales/ar_IQ (t_fmt): Likewise.
2165 * localedata/locales/ar_JO (t_fmt): Likewise.
2166 * localedata/locales/ar_KW (t_fmt): Likewise.
2167 * localedata/locales/ar_LB (t_fmt): Likewise.
2168 * localedata/locales/ar_LY (t_fmt): Likewise.
2169 * localedata/locales/ar_OM (t_fmt): Likewise.
2170 * localedata/locales/ar_QA (t_fmt): Likewise.
2171 * localedata/locales/ar_SD (t_fmt): Likewise.
2172 * localedata/locales/ar_SS (t_fmt): Likewise.
2173 * localedata/locales/ar_SY (t_fmt): Likewise.
2174 * localedata/locales/ar_TN (t_fmt): Likewise.
2175 * localedata/locales/ar_YE (t_fmt): Likewise.
2176
2177 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2178 (t_fmt_ampm): Likewise.
2179 * localedata/locales/gez_ET (t_fmt): Likewise.
2180 (t_fmt_ampm): Likewise.
2181
2182 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2183 (t_fmt_ampm): Likewise.
2184 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2185
2186 * localedata/locales/zh_HK (t_fmt):
2187 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2188
2189 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2190 because this locale does not use the 12-hour clock.
2191 (t_fmt): Set to "%Z %H:%M:%S".
2192 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2193
2194 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2195 because this locale does not use the 12-hour clock.
2196 (t_fmt): Set to "%H:%M:%S %Z".
2197 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2198
2199 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2200 because this locale does not use the 12-hour clock.
2201 (t_fmt): Set to "%T".
2202 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2203 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2204
2205 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2206 because this locale does not use the 12-hour clock.
2207 (t_fmt): Set to "%H:%M:%S %Z".
2208 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2209
2210 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2211 because this locale does not use the 12-hour clock.
2212 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2213 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2214
2215 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2216
2217 [BZ #10496]
2218 [BZ #23724]
2219 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2220 (t_fmt_ampm): Likewise.
2221 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2222 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2223 (d_fmt): Set to "%-d.%-m.%y".
2224
2225 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2226
2227 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2228 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2229 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2230 Likewise.
2231 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2232 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2233 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2234 function.
2235 * support/blob_repeat.c (check_mul_overflow_size_t,
2236 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2237
2238 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2239
2240 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2241
2242 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2243
2244 regex: simplify Gnulib port
2245 This simplifies the code, by removing stuff intended for porting
2246 to Gnulib but no longer needed there.
2247 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2248 uses of libc_hidden_def, weak_alias.
2249 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2250 _Restrict_ except for public-facing headers.
2251 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2252 Remove; already defined elsewhere.
2253 * posix/regex.c, posix/regex_internal.h:
2254 Use __GNUC_PREREQ instead of rolling our own.
2255 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2256
2257 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2258
2259 * benchtests/bench-strlen.c (generic_strlen): New function.
2260 (memchr_strlen): New function.
2261
2262 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2263
2264 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2265 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2266 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2267
2268 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2269
2270 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2271
2272 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2273
2274 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2275 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2276 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2277 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2278 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2279 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2280 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2281
2282 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2283
2284 [BZ #24023]
2285 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2286 PLT reference in libc.so.
2287 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2288 _Q_lltoq and _Q_qtod PLT references in libc.so.
2289
2290 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2291
2292 * benchtests/bench-memchr.c: Cleanup defines.
2293 * benchtests/bench-memcmp.c: Likewise.
2294 * benchtests/bench-memset.c: Likewise.
2295 * benchtests/bench-memset-large.c: Likewise.
2296 * benchtests/bench-memset-walk.c: Likewise.
2297 * benchtests/bench-stpcpy.c: Likewise.
2298 * benchtests/bench-stpncpy.c: Likewise.
2299 * benchtests/bench-strcat.c: Likewise.
2300 * benchtests/bench-strchr.c: Likewise.
2301 * benchtests/bench-strcmp.c: Likewise.
2302 * benchtests/bench-strcpy.c: Likewise.
2303 * benchtests/bench-strcspn.c: Likewise.
2304 * benchtests/bench-string.h: Likewise.
2305 * benchtests/bench-strlen.c: Likewise.
2306 * benchtests/bench-strncat.c: Likewise.
2307 * benchtests/bench-strncmp.c: Likewise.
2308 * benchtests/bench-strncpy.c: Likewise.
2309 * benchtests/bench-strnlen.c: Likewise.
2310 * benchtests/bench-strpbrk.c: Likewise.
2311 * benchtests/bench-strrchr.c: Likewise.
2312 * benchtests/bench-strspn.c: Likewise.
2313
2314 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2315
2316 * stdlib/longlong.h: Update from GCC.
2317
2318 [BZ #23993]
2319 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2320 * configure: Regenerated.
2321 * manual/install.texi (Tools for Compilation): Update minimum GCC
2322 version.
2323 * INSTALL: Regenerated.
2324
2325 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2326
2327 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2328
2329 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2330
2331 * malloc/malloc.c (mremap_chunk): Additional checks.
2332
2333 2018-12-21 Mao Han <han_mao@c-sky.com>
2334
2335 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2336 * scripts/build-many-glibcs.py: Add C-SKY targets.
2337 * sysdeps/csky/Implies: New file.
2338 * sysdeps/csky/Makefile: Likewise.
2339 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2340 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2341 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2342 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2343 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2344 * sysdeps/csky/abiv2/memmove.S: Likewise.
2345 * sysdeps/csky/abiv2/memset.S: Likewise.
2346 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2347 * sysdeps/csky/abiv2/start.S: Likewise.
2348 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2349 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2350 * sysdeps/csky/abiv2/strlen.S: Likewise.
2351 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2352 * sysdeps/csky/abort-instr.h: Likewise.
2353 * sysdeps/csky/atomic-machine.h: Likewise.
2354 * sysdeps/csky/bits/endian.h: Likewise.
2355 * sysdeps/csky/bits/fenv.h: Likewise.
2356 * sysdeps/csky/bits/link.h: Likewise.
2357 * sysdeps/csky/bits/setjmp.h: Likewise.
2358 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2359 * sysdeps/csky/bsd-setjmp.S: Likewise.
2360 * sysdeps/csky/configure: Likewise.
2361 * sysdeps/csky/configure.ac: Likewise.
2362 * sysdeps/csky/dl-machine.h: Likewise.
2363 * sysdeps/csky/dl-procinfo.c: Likewise.
2364 * sysdeps/csky/dl-procinfo.h: Likewise.
2365 * sysdeps/csky/dl-sysdep.h: Likewise.
2366 * sysdeps/csky/dl-tls.h: Likewise.
2367 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2368 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2369 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2370 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2371 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2372 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2373 * sysdeps/csky/fpu/fegetround.c: Likewise.
2374 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2375 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2376 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2377 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2378 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2379 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2380 * sysdeps/csky/fpu/fesetround.c: Likewise.
2381 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2382 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2383 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2384 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2385 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2386 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2387 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2388 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2389 * sysdeps/csky/fpu_control.h: Likewise.
2390 * sysdeps/csky/gccframe.h: Likewise.
2391 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2392 * sysdeps/csky/ldsodefs.h: Likewise.
2393 * sysdeps/csky/libc-tls.c: Likewise.
2394 * sysdeps/csky/linkmap.h: Likewise.
2395 * sysdeps/csky/machine-gmon.h: Likewise.
2396 * sysdeps/csky/memusage.h: Likewise.
2397 * sysdeps/csky/nofpu/Implies: Likewise.
2398 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2399 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2400 * sysdeps/csky/nptl/Makefile: Likewise.
2401 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2402 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2403 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2404 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2405 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2406 * sysdeps/csky/nptl/tls.h: Likewise.
2407 * sysdeps/csky/preconfigure: Likewise.
2408 * sysdeps/csky/sfp-machine.h: Likewise.
2409 * sysdeps/csky/sotruss-lib.c: Likewise.
2410 * sysdeps/csky/stackinfo.h: Likewise.
2411 * sysdeps/csky/sysdep.h: Likewise.
2412 * sysdeps/csky/tininess.h: Likewise.
2413 * sysdeps/csky/tst-audit.h: Likewise.
2414 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2415 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2416 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2417 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2418 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2419 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2420 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2421 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2422 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2423 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2424 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2425 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2426 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2427 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2428 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2429 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2430 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2431 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2432 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2433 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2434 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2435 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2436 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2437 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2438 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2439 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2440 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2441 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2442 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2443 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2444 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2445 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2446 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2447 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2448 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2449 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2450 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2451 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2452 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2453 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2454 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2455 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2456 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2457 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2458
2459 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2460
2461 * include/time.h (__difftime64): Add.
2462 * time/difftime.c (subtract): convert to 64-bit time.
2463 * time/difftime.c (__difftime64): Add.
2464 * time/difftime.c (__difftime): Wrap around __difftime64.
2465
2466 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2467
2468 * manual/examples/add.c: Remove redundant "if not".
2469 * manual/examples/argp-ex1.c: Likewise.
2470 * manual/examples/argp-ex2.c: Likewise.
2471 * manual/examples/argp-ex3.c: Likewise.
2472 * manual/examples/argp-ex4.c: Likewise.
2473 * manual/examples/atexit.c: Likewise.
2474 * manual/examples/db.c: Likewise.
2475 * manual/examples/dir.c: Likewise.
2476 * manual/examples/dir2.c: Likewise.
2477 * manual/examples/execinfo.c: Likewise.
2478 * manual/examples/filecli.c: Likewise.
2479 * manual/examples/filesrv.c: Likewise.
2480 * manual/examples/fmtmsgexpl.c: Likewise.
2481 * manual/examples/genpass.c: Likewise.
2482 * manual/examples/inetcli.c: Likewise.
2483 * manual/examples/inetsrv.c: Likewise.
2484 * manual/examples/isockad.c: Likewise.
2485 * manual/examples/longopt.c: Likewise.
2486 * manual/examples/memopen.c: Likewise.
2487 * manual/examples/memstrm.c: Likewise.
2488 * manual/examples/mkdirent.c: Likewise.
2489 * manual/examples/mkfsock.c: Likewise.
2490 * manual/examples/mkisock.c: Likewise.
2491 * manual/examples/mygetpass.c: Likewise.
2492 * manual/examples/pipe.c: Likewise.
2493 * manual/examples/popen.c: Likewise.
2494 * manual/examples/rprintf.c: Likewise.
2495 * manual/examples/search.c: Likewise.
2496 * manual/examples/select.c: Likewise.
2497 * manual/examples/setjmp.c: Likewise.
2498 * manual/examples/sigh1.c: Likewise.
2499 * manual/examples/sigusr.c: Likewise.
2500 * manual/examples/stpcpy.c: Likewise.
2501 * manual/examples/strdupa.c: Likewise.
2502 * manual/examples/strftim.c: Likewise.
2503 * manual/examples/subopt.c: Likewise.
2504 * manual/examples/swapcontext.c: Likewise.
2505 * manual/examples/termios.c: Likewise.
2506 * manual/examples/testopt.c: Likewise.
2507 * manual/examples/testpass.c: Likewise.
2508 * manual/examples/timeval_subtract.c: Likewise.
2509
2510 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2511
2512 * sysdeps/x86/fpu/math_private.h: New file.
2513 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2514
2515 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2516 definition.
2517 (cosh): Likewise.
2518 (tanh): Likewise.
2519
2520 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2521
2522 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2523 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2524 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2525 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2526 fields.
2527 (_dl_show_auxv): Give a special treatment to
2528 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2529 and AT_L3_CACHEGEOMETRY.
2530 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2531 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2532 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2533 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2534
2535 2018-12-19 Andreas Schwab <schwab@suse.de>
2536
2537 * nscd/connections.c (check_use): Don't abort on invalid len.
2538
2539 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2540
2541 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2542 values in the 64bit value cases.
2543
2544 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2545
2546 * include/time.h
2547 (__ctime64_r): Add.
2548 * time/ctime_r.c
2549 (__ctime64_r): Add.
2550 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2551
2552 * include/time.h
2553 (__ctime64): Add.
2554 * time/gmtime.c
2555 (__ctime64): Add.
2556 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2557
2558 * include/time.h
2559 (__gmtime64_r): Add.
2560 * time/gmtime.c
2561 (__gmtime64_r): Add.
2562 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2563
2564 * include/time.h
2565 (__gmtime64): Add.
2566 * time/gmtime.c
2567 (__gmtime64): Add.
2568 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2569
2570 * include/time.h
2571 (__localtime64_r): Add.
2572 * time/localtime.c
2573 (__localtime64_r): Add.
2574 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2575
2576 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2577
2578 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2579 kernel_sigction definition.
2580
2581 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2582
2583 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2584
2585 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2586 __syscall_rt_sigaction.
2587 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2588 (kernel_sigaction): Use Linux generic defintion.
2589 (STUB): Define.
2590 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2591 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2592 (__syscall_rt_sigaction): Remove implementation.
2593 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2594 hidden.
2595 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2596 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2597 INTERNAL_SYSCALL): Remove definitions.
2598 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2599 action and signal set size.
2600 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2601 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2602
2603 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2604 James Clarke <jrtc27@jrtc27.com>
2605
2606 [BZ #23967]
2607 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2608 Define if SA_RESTORER is defined.
2609 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2610 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2611 already defined.
2612 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2613 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2614 definitions.
2615 (HAS_SA_RESTORER): Define.
2616 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2617 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2618 (HAS_SA_RESTORER): Define.
2619 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2620 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2621 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2622 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2623 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2624
2625 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2626
2627 * sysdeps/unix/sysv/linux/kernel-features.h
2628 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2629 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2630 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2631 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2632 (__ASSUME_ST_INO_64_BIT): Likewise.
2633 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2634 <kernel-features.h>.
2635 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2636 Remove conditional code.
2637 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2638 <kernel-features.h>.
2639 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2640 Remove conditional code.
2641 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2642 <kernel-features.h>.
2643 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2644 Remove conditional code.
2645 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2646 <kernel-features.h>.
2647 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2648 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2649
2650 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2651
2652 * sysdeps/s390/multiarch/ifunc-resolve.h
2653 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2654 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2655 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2656 Delete macro definition.
2657 (s390_libc_ifunc_init): Rename to
2658 s390_libc_ifunc_expr_stfle_init.
2659 * sysdeps/s390/bzero: Use
2660 s390_libc_ifunc_expr_stfle_init instead of
2661 s390_libc_ifunc_init.
2662 * sysdeps/s390/memcmp.c: Likewise.
2663 * sysdeps/s390/memcpy.c: Likewise.
2664 * sysdeps/s390/mempcpy.c: Likewise.
2665 * sysdeps/s390/memset.c: Likewise.
2666
2667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2668
2669 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2670 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2671
2672 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2673
2674 * sysdeps/s390/multiarch/Makefile
2675 (sysdep_routines): Remove wmemcmp variants.
2676 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2677 * sysdeps/s390/multiarch/ifunc-impl-list.c
2678 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2679 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2680 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2681 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2682 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2683 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2684 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2685 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2686
2687 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2688
2689 * sysdeps/s390/multiarch/Makefile
2690 (sysdep_routines): Remove wmemset variants.
2691 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2692 * sysdeps/s390/multiarch/ifunc-impl-list.c
2693 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2694 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2695 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2696 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2697 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2698 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2699 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2700 * sysdeps/s390/ifunc-wmemset.h: New file.
2701
2702 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2703
2704 * sysdeps/s390/multiarch/Makefile
2705 (sysdep_routines): Remove wmemchr variants.
2706 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2707 * sysdeps/s390/multiarch/ifunc-impl-list.c
2708 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2709 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2710 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2711 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2712 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2713 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2714 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2715 * sysdeps/s390/ifunc-wmemchr.h: New file.
2716
2717 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2718
2719 * sysdeps/s390/multiarch/Makefile
2720 (sysdep_routines): Remove wcscspn variants.
2721 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2722 * sysdeps/s390/multiarch/ifunc-impl-list.c
2723 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2724 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2725 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2726 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2727 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2728 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2729 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2730 * sysdeps/s390/ifunc-wcscspn.h: New file.
2731
2732 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2733
2734 * sysdeps/s390/multiarch/Makefile
2735 (sysdep_routines): Remove wcspbrk variants.
2736 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2737 * sysdeps/s390/multiarch/ifunc-impl-list.c
2738 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2739 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2740 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2741 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2742 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2743 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2744 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2745 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2746
2747 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2748
2749 * sysdeps/s390/multiarch/Makefile
2750 (sysdep_routines): Remove wcsspn variants.
2751 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2752 * sysdeps/s390/multiarch/ifunc-impl-list.c
2753 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2754 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2755 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2756 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2757 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2758 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2759 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2760 * sysdeps/s390/ifunc-wcsspn.h: New file.
2761
2762 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2763
2764 * sysdeps/s390/multiarch/Makefile
2765 (sysdep_routines): Remove wcsrchr variants.
2766 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2767 * sysdeps/s390/multiarch/ifunc-impl-list.c
2768 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2769 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2770 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2771 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2772 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2773 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2774 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2775 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2776
2777 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2778
2779 * sysdeps/s390/multiarch/Makefile
2780 (sysdep_routines): Remove wcschrnul variants.
2781 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2782 * sysdeps/s390/multiarch/ifunc-impl-list.c
2783 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2784 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2785 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2786 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2787 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2788 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2789 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2790 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2791
2792 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2793
2794 * sysdeps/s390/multiarch/Makefile
2795 (sysdep_routines): Remove wcschr variants.
2796 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2797 * sysdeps/s390/multiarch/ifunc-impl-list.c
2798 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2799 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2800 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2801 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2802 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2803 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2804 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2805 * sysdeps/s390/ifunc-wcschr.h: New file.
2806
2807 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2808
2809 * sysdeps/s390/multiarch/Makefile
2810 (sysdep_routines): Remove wcsncmp variants.
2811 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2812 * sysdeps/s390/multiarch/ifunc-impl-list.c
2813 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2814 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2815 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2816 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2817 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2818 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2819 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2820 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2821
2822 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2823
2824 * sysdeps/s390/multiarch/Makefile
2825 (sysdep_routines): Remove wcscmp variants.
2826 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2827 * sysdeps/s390/multiarch/ifunc-impl-list.c
2828 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2829 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2830 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2831 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2832 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2833 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2834 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2835 * sysdeps/s390/ifunc-wcscmp.h: New file.
2836
2837 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2838
2839 * sysdeps/s390/multiarch/Makefile
2840 (sysdep_routines): Remove wcsncat variants.
2841 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2842 * sysdeps/s390/multiarch/ifunc-impl-list.c
2843 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2844 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2845 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2846 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2847 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2848 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2849 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2850 * sysdeps/s390/ifunc-wcsncat.h: New file.
2851
2852 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2853
2854 * sysdeps/s390/multiarch/Makefile
2855 (sysdep_routines): Remove wcscat variants.
2856 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2857 * sysdeps/s390/multiarch/ifunc-impl-list.c
2858 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2859 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2860 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2861 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2862 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2863 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2864 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2865 * sysdeps/s390/ifunc-wcscat.h: New file.
2866
2867 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2868
2869 * sysdeps/s390/multiarch/Makefile
2870 (sysdep_routines): Remove wcpncpy variants.
2871 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2872 * sysdeps/s390/multiarch/ifunc-impl-list.c
2873 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2874 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2875 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2876 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2877 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2878 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2879 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2880 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2881
2882 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2883
2884 * sysdeps/s390/multiarch/Makefile
2885 (sysdep_routines): Remove wcsncpy variants.
2886 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2887 * sysdeps/s390/multiarch/ifunc-impl-list.c
2888 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2889 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2890 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2891 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2892 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2893 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2894 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2895 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2896
2897 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2898
2899 * sysdeps/s390/multiarch/Makefile
2900 (sysdep_routines): Remove wcpcpy variants.
2901 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2902 * sysdeps/s390/multiarch/ifunc-impl-list.c
2903 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2904 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2905 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2906 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2907 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2908 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2909 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2910 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2911
2912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2913
2914 * sysdeps/s390/multiarch/Makefile
2915 (sysdep_routines): Remove wcscpy variants.
2916 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2917 * sysdeps/s390/multiarch/ifunc-impl-list.c
2918 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2919 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2920 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2921 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2922 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2923 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2924 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2925 * sysdeps/s390/ifunc-wcscpy.h: New file.
2926
2927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2928
2929 * sysdeps/s390/multiarch/Makefile
2930 (sysdep_routines): Remove wcsnlen variants.
2931 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2932 * sysdeps/s390/multiarch/ifunc-impl-list.c
2933 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2934 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2935 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2936 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2937 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2938 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2939 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2940 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2941
2942 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2943
2944 * sysdeps/s390/multiarch/Makefile
2945 (sysdep_routines): Remove wcslen variants.
2946 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2947 * sysdeps/s390/multiarch/ifunc-impl-list.c
2948 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2949 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2950 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2951 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2952 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2953 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2954 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2955 * sysdeps/s390/ifunc-wcslen.h: New file.
2956
2957 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2958
2959 * sysdeps/s390/multiarch/Makefile
2960 (sysdep_routines): Remove memrchr variants.
2961 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2964 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2965 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2966 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2967 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2968 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2969 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2970 * sysdeps/s390/ifunc-memrchr.h: New file.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/multiarch/Makefile
2975 (sysdep_routines): Remove memccpy variants.
2976 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2977 * sysdeps/s390/multiarch/ifunc-impl-list.c
2978 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2979 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2980 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2981 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2982 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2983 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2984 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2985 * sysdeps/s390/ifunc-memccpy.h: New file.
2986
2987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * sysdeps/s390/multiarch/Makefile
2990 (sysdep_routines): Remove rawmemchr variants.
2991 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2992 * sysdeps/s390/multiarch/ifunc-impl-list.c
2993 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2994 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2995 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2996 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2997 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2998 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2999 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3000 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3001
3002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3003
3004 * sysdeps/s390/multiarch/Makefile
3005 (sysdep_routines): Remove memchr variants.
3006 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3007 * sysdeps/s390/multiarch/ifunc-impl-list.c
3008 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3009 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3010 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3011 * sysdeps/s390/multiarch/memchr.c: Move to ...
3012 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3013 * sysdeps/s390/ifunc-memchr.h: New file.
3014 * sysdeps/s390/s390-64/memchr.S: Move to ...
3015 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3016 for 31/64bit and ifunc handling.
3017 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3018 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3019 * sysdeps/s390/s390-32/memchr.S: Likewise.
3020
3021 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3022
3023 * sysdeps/s390/multiarch/Makefile
3024 (sysdep_routines): Remove strcspn variants.
3025 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3026 * sysdeps/s390/multiarch/ifunc-impl-list.c
3027 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3028 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3029 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3030 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3031 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3032 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3033 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3034 * sysdeps/s390/ifunc-strcspn.h: New file.
3035
3036 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3037
3038 * sysdeps/s390/multiarch/Makefile
3039 (sysdep_routines): Remove strpbrk variants.
3040 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3041 * sysdeps/s390/multiarch/ifunc-impl-list.c
3042 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3043 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3044 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3045 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3046 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3047 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3048 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3049 * sysdeps/s390/ifunc-strpbrk.h: New file.
3050
3051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3052
3053 * sysdeps/s390/multiarch/Makefile
3054 (sysdep_routines): Remove strspn variants.
3055 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3056 * sysdeps/s390/multiarch/ifunc-impl-list.c
3057 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3058 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3059 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3060 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3061 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3062 * sysdeps/s390/multiarch/strspn.c: Move to ...
3063 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3064 * sysdeps/s390/ifunc-strspn.h: New file.
3065
3066 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3067
3068 * sysdeps/s390/multiarch/Makefile
3069 (sysdep_routines): Remove strrchr variants.
3070 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3071 * sysdeps/s390/multiarch/ifunc-impl-list.c
3072 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3073 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3074 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3075 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3076 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3077 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3078 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3079 * sysdeps/s390/ifunc-strrchr.h: New file.
3080
3081 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3082
3083 * sysdeps/s390/multiarch/Makefile
3084 (sysdep_routines): Remove strchrnul variants.
3085 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3086 * sysdeps/s390/multiarch/ifunc-impl-list.c
3087 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3088 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3089 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3090 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3091 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3092 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3093 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3094 * sysdeps/s390/ifunc-strchrnul.h: New file.
3095
3096 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3097
3098 * sysdeps/s390/multiarch/Makefile
3099 (sysdep_routines): Remove strchr variants.
3100 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3101 * sysdeps/s390/multiarch/ifunc-impl-list.c
3102 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3103 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3104 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3105 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3106 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3107 * sysdeps/s390/multiarch/strchr.c: Move to ...
3108 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3109 * sysdeps/s390/ifunc-strchr.h: New file.
3110
3111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3112
3113 * sysdeps/s390/multiarch/Makefile
3114 (sysdep_routines): Remove strncmp variants.
3115 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3116 * sysdeps/s390/multiarch/ifunc-impl-list.c
3117 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3118 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3119 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3120 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3121 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3122 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3123 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3124 * sysdeps/s390/ifunc-strncmp.h: New file.
3125
3126 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3127
3128 * sysdeps/s390/multiarch/Makefile
3129 (sysdep_routines): Remove strcmp variants.
3130 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3131 * sysdeps/s390/multiarch/ifunc-impl-list.c
3132 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3133 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3134 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3135 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3136 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3137 * sysdeps/s390/ifunc-strcmp.h: New file.
3138 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3139 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3140 for 31/64bit and ifunc handling.
3141 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3142 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3143 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3144
3145 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3146
3147 * sysdeps/s390/multiarch/Makefile
3148 (sysdep_routines): Remove strncat variants.
3149 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3150 * sysdeps/s390/multiarch/ifunc-impl-list.c
3151 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3152 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3153 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3154 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3155 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3156 * sysdeps/s390/multiarch/strncat.c: Move to ...
3157 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3158 * sysdeps/s390/ifunc-strncat.h: New file.
3159
3160 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3161
3162 * sysdeps/s390/multiarch/Makefile
3163 (sysdep_routines): Remove strcat variants.
3164 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3165 * sysdeps/s390/multiarch/ifunc-impl-list.c
3166 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3167 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3168 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3169 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3170 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3171 * sysdeps/s390/multiarch/strcat.c: Move to ...
3172 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3173 * sysdeps/s390/ifunc-strcat.h: New file.
3174
3175 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3176
3177 * sysdeps/s390/multiarch/Makefile
3178 (sysdep_routines): Remove stpncpy variants.
3179 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3180 * sysdeps/s390/multiarch/ifunc-impl-list.c
3181 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3182 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3183 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3184 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3185 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3186 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3187 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3188 * sysdeps/s390/ifunc-stpncpy.h: New file.
3189
3190 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3191
3192 * sysdeps/s390/multiarch/Makefile
3193 (sysdep_routines): Remove strncpy variants.
3194 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3195 * sysdeps/s390/multiarch/ifunc-impl-list.c
3196 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3197 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3198 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3199 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3200 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3201 * sysdeps/s390/ifunc-strncpy.h: New file.
3202 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3203 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3204 and adjust ifunc handling.
3205 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3206 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3207 and adjust ifunc handling.
3208 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3209 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3210
3211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3212
3213 * sysdeps/s390/multiarch/Makefile
3214 (sysdep_routines): Remove stpcpy variants.
3215 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3216 * sysdeps/s390/multiarch/ifunc-impl-list.c
3217 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3218 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3219 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3220 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3221 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3222 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3223 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3224 * sysdeps/s390/ifunc-stpcpy.h: New file.
3225
3226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3227
3228 * sysdeps/s390/multiarch/Makefile
3229 (sysdep_routines): Remove strcpy variants.
3230 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3231 * sysdeps/s390/multiarch/ifunc-impl-list.c
3232 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3233 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3234 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3235 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3236 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3237 * sysdeps/s390/ifunc-strcpy.h: New file.
3238 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3239 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3240 for 31/64bit and ifunc handling.
3241 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3242 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3243 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3244
3245 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3246
3247 * sysdeps/s390/multiarch/Makefile
3248 (sysdep_routines): Remove strnlen variants.
3249 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3250 * sysdeps/s390/multiarch/ifunc-impl-list.c
3251 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3252 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3253 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3254 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3255 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3256 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3257 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3258 * sysdeps/s390/ifunc-strnlen.h: New file.
3259
3260 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3261
3262 * sysdeps/s390/multiarch/Makefile
3263 (sysdep_routines): Remove strlen variants.
3264 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3265 * sysdeps/s390/multiarch/ifunc-impl-list.c
3266 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3267 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3268 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3269 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3270 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3271 * sysdeps/s390/multiarch/strlen.c: Move to ...
3272 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3273 * sysdeps/s390/ifunc-strlen.h: New file.
3274
3275 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3276
3277 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3278 * sysdeps/s390/multiarch/ifunc-impl-list.c
3279 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3280 * sysdeps/s390/ifunc-memmem.h: New file.
3281 * sysdeps/s390/memmem.c: Likewise.
3282 * sysdeps/s390/memmem-c.c: Likewise.
3283 * sysdeps/s390/memmem-vx.c: Likewise.
3284
3285 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3286
3287 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3288 * sysdeps/s390/multiarch/ifunc-impl-list.c
3289 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3290 * sysdeps/s390/ifunc-strstr.h: New file.
3291 * sysdeps/s390/strstr.c: Likewise.
3292 * sysdeps/s390/strstr-c.c: Likewise.
3293 * sysdeps/s390/strstr-vx.c: Likewise.
3294
3295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3296
3297 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3298 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3299 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3300 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3301 New defines.
3302 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3303 * sysdeps/s390/memmove-c.c: New file.
3304 * sysdeps/s390/memmove.c: Likewise.
3305 * sysdeps/s390/multiarch/ifunc-impl-list.c
3306 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3307
3308 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3309
3310 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3311 * sysdeps/s390/configure.ac: Add check for z13 support.
3312 * sysdeps/s390/configure: Regenerated.
3313
3314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3315
3316 * sysdeps/s390/memcopy.h: New file.
3317
3318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3319
3320 * sysdeps/s390/s390-32/bcopy.S: Remove.
3321 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3322
3323 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3324
3325 * sysdeps/s390/ifunc-memcpy.h: New File.
3326 * sysdeps/s390/memcpy.S: Move to ...
3327 * sysdeps/s390/memcpy-z900.S ... here.
3328 Move implementations from memcpy-s390x.s to here.
3329 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3330 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3331 Remove memcpy/mempcpy variants.
3332 * sysdeps/s390/Makefile (sysdep_routines):
3333 Add memcpy/mempcpy variants.
3334 * sysdeps/s390/multiarch/ifunc-impl-list.c
3335 (__libc_ifunc_impl_list): Adjust ifunc variants for
3336 memcpy and mempcpy.
3337 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3338 to ...
3339 * sysdeps/s390/memcpy.c: ... here.
3340 Adjust ifunc variants for memcpy.
3341 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3342 * sysdeps/s390/mempcpy.c: ... here.
3343 Adjust ifunc variants for mempcpy.
3344 * sysdeps/s390/mempcpy.S: Delete file.
3345
3346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3347
3348 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3349 * sysdeps/s390/memcpy.S: ... here.
3350 Adjust to be usable for 31/64bit.
3351 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3352 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3353 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3354 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3355 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3356 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3357 Adjust to be usable for 31/64bit.
3358 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3359 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3360 * sysdeps/s390/multiarch/memcpy.c: ... here.
3361 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3362
3363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3364
3365 * sysdeps/s390/ifunc-memcmp.h: New File.
3366 * sysdeps/s390/memcmp.S: Move to ...
3367 * sysdeps/s390/memcmp-z900.S ... here.
3368 Move implementations from memcmp-s390x.s to here.
3369 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3370 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3371 Remove memcmp variants.
3372 * sysdeps/s390/Makefile (sysdep_routines):
3373 Add memcmp variants.
3374 * sysdeps/s390/multiarch/ifunc-impl-list.c
3375 (__libc_ifunc_impl_list): Adjust ifunc variants for
3376 memcmp.
3377 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3378 to ...
3379 * sysdeps/s390/memcmp.c: ... here.
3380 Adjust ifunc variants for memcmp.
3381
3382 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3383
3384 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3385 * sysdeps/s390/memcmp.S: ... here.
3386 Adjust to be usable for 31/64bit.
3387 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3388 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3389 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3390 Remove memcmp.
3391 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3392 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3393 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3394 Adjust to be usable for 31/64bit.
3395 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3396 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3397 * sysdeps/s390/multiarch/memcmp.c: ... here.
3398 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3399
3400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3401
3402 * sysdeps/s390/s390-32/bzero.S: Delete file.
3403 * sysdeps/s390/s390-64/bzero.S: Likewise.
3404 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3405 * sysdeps/s390/bzero.c: New file.
3406 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3407 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3408 * sysdeps/s390/multiarch/ifunc-impl-list.c
3409 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3410
3411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3412
3413 * sysdeps/s390/ifunc-memset.h: New File.
3414 * sysdeps/s390/memset.S: Move to ...
3415 * sysdeps/s390/memset-z900.S ... here.
3416 Move implementations from memset-s390x.s to here.
3417 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3418 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3419 Remove memset variants.
3420 * sysdeps/s390/Makefile (sysdep_routines):
3421 Add memset variants.
3422 * sysdeps/s390/multiarch/ifunc-impl-list.c
3423 (__libc_ifunc_impl_list): Adjust ifunc variants for
3424 memset.
3425 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3426 to ...
3427 * sysdeps/s390/memset.c: ... here.
3428 Adjust ifunc variants for memset.
3429
3430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3431
3432 * sysdeps/s390/s390-64/memset.S: Move to ...
3433 * sysdeps/s390/memset.S: ... here.
3434 Adjust to be usable for 31/64bit.
3435 * sysdeps/s390/s390-32/memset.S: Delete File.
3436 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3437 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3438 Remove memset.
3439 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3440 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3441 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3442 Adjust to be usable for 31/64bit.
3443 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3444 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3445 * sysdeps/s390/multiarch/memset.c: ... here.
3446 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3447
3448 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3449
3450 * sysdeps/s390/multiarch/ifunc-resolve.h
3451 (s390_libc_ifunc_init, s390_libc_ifunc,
3452 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3453
3454 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3455
3456 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3457 * sysdeps/s390/configure.ac: Add check for z10 support.
3458 * sysdeps/s390/configure: Regenerated.
3459
3460 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3461
3462 * sysdeps/i386/atomic-machine.h: Merged with ...
3463 * sysdeps/x86_64/atomic-machine.h: To ...
3464 * sysdeps/x86/atomic-machine.h: This. New file.
3465
3466 2018-12-18 Florian Weimer <fweimer@redhat.com>
3467
3468 Rewrite locale/gen-translit.pl in Python.
3469 * locale/Makefile (generated): Add C-translit.h.
3470 (before-compile): Add $(objpfx)C-translit.h.
3471 (C-translit.h): Move to $(objpfx). Create target directory.
3472 Build using Python script.
3473 * locale/gen-translit.py: New file.
3474 * locale/gen-translit.pl: Remove file.
3475 * locale/C-translit.h.in: Change comment character to '#' for
3476 easier parsing without a C preprocessor.
3477 * locale/C-translit.h: Remove generated file.
3478 * manual/install.texi (Tools for Compilation): Do not mention
3479 C-translit.h.
3480 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3481 Remove locale/C-translit.h.
3482 * scripts/update-copyrights: Likewise.
3483 * INSTALL: Regenerate.
3484
3485 2018-12-18 Florian Weimer <fweimer@redhat.com>
3486
3487 [BZ #23995]
3488 * localedata/locales/bi_VU: Remove executable bit from file.
3489
3490 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3491
3492 * include/time.h
3493 (__localtime64): Add.
3494 * manual/maint.texi: Document Y2038 symbol handling.
3495 * time/localtime.c
3496 (__localtime64): Add.
3497 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3498
3499 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3500
3501 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3502 Do not clobber r12.
3503
3504 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3505 to allow extra macros from first or second sources.
3506 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3507 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3508 (tests-special): Add $(objpfx)tst-mman-consts.out.
3509 ($(objpfx)tst-mman-consts.out): New makefile target.
3510
3511 2018-12-17 Mao Han <han_mao@c-sky.com>
3512
3513 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3514 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3515 without stat64 system call support.
3516 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3517 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3518 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3519 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3520 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3521 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3522 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3523 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3524 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3525 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3526 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3527
3528 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3529
3530 regex: fix storage-exhaustion error
3531 [BZ #18040]
3532 * posix/regexec.c (get_subexp):
3533 Do not continue if storage is exhausted.
3534
3535 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3536
3537 regex: fix heap-use-after-free error
3538 [BZ #18040]
3539 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3540 https://debbugs.gnu.org/32592
3541 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3542 call extend_buffers which reallocates the re_string_t internal buffer.
3543 Local variable 'buf' was not updated in such case, resulting in
3544 use-after-free.
3545 * posix/regexec.c (get_subexp): Update 'buf' after call to
3546 get_subexp_sub.
3547
3548 2018-12-15 Florian Weimer <fweimer@redhat.com>
3549
3550 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3551 (minimum_stride_size): Use it.
3552 (support_blob_repeat_allocate): Likewise.
3553
3554 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3555
3556 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3557 definition.
3558 (acosh): Likewise.
3559 (atanh): Likewise.
3560
3561 2018-12-14 Florian Weimer <fweimer@redhat.com>
3562
3563 * manual/process.texi (Process Creation Concepts): Remove
3564 documentation of process (ID) lifetime. List more process
3565 creation functions. Reference Process Identification section.
3566 (Process Identification): Add information about process ID
3567 lifetime. Describe Linux thread/task IDs.
3568 * manual/signal.texi (Signaling Another Process): Mention that the
3569 signal is always sent to the process.
3570
3571 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3572
3573 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3574 and tst-ldbl-efgcvt.
3575 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3576 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3577 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3578 (fcvt_tests, output_error, output_r_error, do_test): Use the
3579 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3580 select the type of floating-point variables and arguments; to
3581 produce extra tests for double and conversion specifiers for
3582 printf; and to set the names of called functions.
3583 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3584 in tst-efgcvt-template.c.
3585 * misc/tst-ldbl-efgcvt.c: Likewise.
3586
3587 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3588
3589 * nss/Makefile (tst-nss-test3.out): New rule.
3590
3591 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3592
3593 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3594 clobber sp.
3595
3596 2018-12-13 fanjinke <fanjinke@hygon.cn>
3597
3598 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3599 "HygonGenuine".
3600
3601 2018-12-13 Andreas Schwab <schwab@suse.de>
3602
3603 [BZ #23861]
3604 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3605 (__pthread_rwlock_rdlock_full): Update expected value for
3606 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3607 * nptl/tst-rwlock-pwn.c: New file.
3608 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3609
3610 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3611
3612 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3613 definition.
3614
3615 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3616
3617 * benchtests/scripts/compare_bench.py (do_compare): write to
3618 stderr in casestat is not present.
3619 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3620 stderr in case timings field is not present. Also string showing
3621 the output filename goes into the stderr.
3622
3623 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3624
3625 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3626 and ZeroDivisorError exceptions.
3627 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3628 argument to loop through user provided statistics.
3629 * benchtests/scripts/compare_bench.py (main): Include the --stats
3630 argument.
3631
3632 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3633
3634 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3635 instead of return.
3636
3637 2018-12-12 Florian Weimer <fweimer@redhat.com>
3638
3639 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3640 clause to copyright header.
3641
3642 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3643
3644 [BZ #23614]
3645 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3646 registers saved in the stack frame.
3647 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3648 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3649
3650 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3651
3652 * include/bits/monetary-ldbl.h: New file.
3653 * include/bits/printf-ldbl.h: Likewise.
3654 * include/bits/stdio-ldbl.h: Likewise.
3655 * include/bits/stdlib-ldbl.h: Likewise.
3656 * include/bits/syslog-ldbl.h: Likewise.
3657 * include/bits/wchar-ldbl.h: Likewise.
3658
3659 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3660
3661 * libio/libio.h: Remove redirection for _IO_vfprintf.
3662
3663 2018-12-11 Andreas Schwab <schwab@suse.de>
3664
3665 * Makerules: Remove all references to abilist-pattern.
3666 (update-all-abi): Simplify find expression.
3667
3668 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3669
3670 [BZ #23961]
3671 * math/auto-libm-test-in: Add new test case.
3672 * math/auto-libm-test-out-pow: Regenerated.
3673 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3674
3675 2018-12-10 DJ Delorie <dj@redhat.com>
3676
3677 [BZ #23948]
3678 * support/test-container.c: Move postclean step to before we
3679 change namespaces.
3680
3681 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3682
3683 * scripts/gen-as-const.py (main): Handle --python option.
3684 * scripts/gen-py-const.awk: Remove.
3685 * Makerules (py-const-script): Use gen-as-const.py.
3686 ($(py-const)): Likewise.
3687 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3688 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3689 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3690 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3691 ~PTHREAD_MUTEX_NO_ELISION_NP.
3692 * manual/README.pretty-printers: Update reference to
3693 gen-py-const.awk.
3694
3695 * scripts/glibcextract.py: New file.
3696 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3697 or tempfile. Import glibcexctract.
3698 (compute_c_consts): Remove. Moved to glibcextract.py.
3699 (gen_test): Update reference to compute_c_consts.
3700 (main): Likewise.
3701 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3702 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3703 * sysdeps/unix/sysv/linux/Makefile
3704 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3705 Redirect stderr as well as stdout.
3706
3707 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3708
3709 [BZ #19767]
3710 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3711 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3712 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3713 ALWAYS_USE_VSYSCALL.
3714 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3715 ALWAYS_USE_VSYSCALL.
3716 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3717 ALWAYS_USE_VSYSCALL.
3718
3719 2018-12-10 Florian Weimer <fweimer@redhat.com>
3720
3721 [BZ #23972]
3722 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3723 offset instead of count for clarity. Fix typo in comment.
3724 (__old_getdents64): Keep track of previous offset. Use it to call
3725 handle_overflow.
3726 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3727 that d_off is never zero.
3728
3729 2018-12-10 Andreas Schwab <schwab@suse.de>
3730
3731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3732 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3734 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3735 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3736
3737 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3738
3739 * timezone/private.h: Update from tzcode 2018g.
3740 * timezone/tzfile.h: Likewise.
3741 * timezone/tzselect.ksh: Likewise.
3742 * timezone/zdump.c: Likewise.
3743 * timezone/zic.c: Likewise.
3744
3745 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3746
3747 [BZ #23490]
3748 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3749 (do_test): Adjust buffer size and fix format.
3750
3751 2018-12-07 DJ Delorie <dj@redhat.com>
3752
3753 [BZ #23907]
3754 * malloc/tst-tcfree3.c: New.
3755 * malloc/Makefile: Add it.
3756
3757 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3758
3759 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3760
3761 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3762
3763 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3764 used as a mask for the mode argument of __vfscanf_internal and
3765 __vfwscanf_internal.
3766 * stdio-common/vfscanf-internal.c
3767 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3768 (__strtof128_internal): Define to __wcstof128_internal.
3769 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3770 __strtof128_internal or __wcstof128_internal when the format of
3771 long double is the same as _Float128.
3772
3773 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3774
3775 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3776 * posix/confstr.c (confstr): Rename to __confstr.
3777 (__confstr): Add hidden def.
3778 (confstr): Add weak alias for __confstr.
3779 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3780 confstr.
3781
3782 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3783
3784 * NEWS: Mention getcpu.
3785 * include/sched.h (__getcpu): New libc_hidden_proto.
3786 * manual/resource.texi: Document getcpu.
3787 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3788 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3789 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3790 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3791 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3792 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3793 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3794 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3795 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3796 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3797 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3798 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3799 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3800 Likewise.
3801 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3802 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3803 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3805 Likewise.
3806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3807 Likewise.
3808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3809 Likewise.
3810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3811 Likewise.
3812 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3813 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3814 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3815 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3816 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3817 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3818 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3819 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3820 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3821 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3822 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3823 Also check getcpu.
3824
3825 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3826
3827 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3828 functions.
3829 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3830
3831 2018-12-07 Florian Weimer <fweimer@redhat.com>
3832
3833 [BZ #17405]
3834 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3835 * posix/Versions (GLIBC_2.29): Export
3836 posix_spawn_file_actions_addfchdir_np.
3837 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3838 * posix/spawn_faction_destroy.c
3839 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3840 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3841 and the field action.fchdir_action.
3842 * posix/tst-spawn-chdir.c (add_chdir): New function.
3843 (do_test): Add do_fchdir loop. Call add_chdir.
3844 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3845 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3846 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3847 posix_spawn_file_actions_addfchdir_np.
3848 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3849 Likewise.
3850 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3851 Likewise.
3852 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3853 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3854 Likewise.
3855 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3856 Likewise.
3857 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3858 Likewise.
3859 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3860 Likewise.
3861 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3862 Likewise.
3863 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3864 Likewise.
3865 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3866 (GLIBC_2.29): Likewise.
3867 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3868 (GLIBC_2.29): Likewise.
3869 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3870 (GLIBC_2.29): Likewise.
3871 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3872 (GLIBC_2.29): Likewise.
3873 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3874 Likewise.
3875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3876 (GLIBC_2.29): Likewise.
3877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3878 (GLIBC_2.29): Likewise.
3879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3880 (GLIBC_2.29): Likewise.
3881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3882 (GLIBC_2.29): Likewise.
3883 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3884 Likewise.
3885 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3886 Likewise.
3887 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3888 Likewise.
3889 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3890 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3891 Likewise.
3892 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3893 Likewise.
3894 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3895 Likewise.
3896 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3897 Likewise.
3898
3899 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3900
3901 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3902 trailing whitespace removed.
3903 * scripts/config.guess: Update to version 2018-11-28.
3904 * scripts/config.sub: Update to version 2018-11-28.
3905 * scripts/install-sh: Update to version 2018-03-11.20.
3906 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3907 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3908
3909 2018-12-07 Florian Weimer <fweimer@redhat.com>
3910
3911 [BZ #23927]
3912 CVE-2018-19591
3913 * inet/tst-if_index-long.c: New file.
3914 * inet/Makefile (tests): Add tst-if_index-long.
3915
3916 2018-12-07 Florian Weimer <fweimer@redhat.com>
3917
3918 * support/check.h (support_record_failure_is_failed): Declare.
3919 * support/descriptors.h: New file.
3920 * support/support_descriptors.c: Likewise.
3921 * support/tst-support_descriptors.c: Likewise.
3922 * support/support_record_failure.c
3923 (support_record_failure_is_failed): New function.
3924 * support/Makefile (libsupport-routines): Add support_descriptors.
3925 (tests): Add tst-support_descriptors.
3926
3927 2018-12-05 Zack Weinberg <zackw@panix.com>
3928 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3929
3930 * stdio-common/vfprintf-internal.c
3931 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3932 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3933 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3934 and __no_long_double.
3935 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3936 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3937 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3938 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3939 and __nldbl_*syslog* functions.
3940 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3941 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3942 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3943 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3944 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3945 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3946 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3947 (__nldbl_vwprintf, __nldbl_wprintf):
3948 Directly call the appropriate __v*printf_internal routine, passing
3949 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3950 variable names.
3951 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3952 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3953 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3954 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3955 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3956 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3957 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3958 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3959 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3960 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3961 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3962 (__nldbl_syslog, __nldbl_vsyslog):
3963 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3964 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3965 appropriate.
3966 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3967 appropriate.
3968
3969 2018-12-05 Zack Weinberg <zackw@panix.com>
3970 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3971
3972 [BZ #11319]
3973 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3974 Moved here from debug/vsprintf_chk.c.
3975 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3976 and completion logic for the strfile to match exactly what
3977 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3978 _IO_str_init_static_internal instead of maxlen-1.
3979 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3980 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3981 __vsprintf_internal.
3982
3983 * debug/vsprintf_chk.c (__vsprintf_chk)
3984 * debug/sprintf_chk.c (__sprintf_chk):
3985 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3986 'flags' argument is positive, and slen as maxlen. No need to lock
3987 the FILE and/or construct a temporary FILE. Minimize and normalize
3988 header inclusions and variable names. Do not libc_hidden_def anything.
3989
3990 * debug/asprintf_chk.c (__asprintf_chk)
3991 * debug/dprintf_chk.c (__dprintf_chk)
3992 * debug/fprintf_chk.c (__fprintf_chk)
3993 * debug/fwprintf_chk.c (__fwprintf_chk)
3994 * debug/printf_chk.c (__printf_chk)
3995 * debug/snprintf_chk.c (__snprintf_chk)
3996 * debug/swprintf_chk.c (__swprintf_chk)
3997 * debug/vasprintf_chk.c (__vasprintf_chk)
3998 * debug/vdprintf_chk.c (__vdprintf_chk)
3999 * debug/vfprintf_chk.c (__vfprintf_chk)
4000 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4001 * debug/vprintf_chk.c (__vprintf_chk)
4002 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4003 * debug/vswprintf_chk.c (__vswprintf_chk)
4004 * debug/vwprintf_chk.c (__vwprintf_chk)
4005 * debug/wprintf_chk.c (__wprintf_chk):
4006 Directly call the corresponding vxxprintf_internal function, passing
4007 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4008 the FILE and/or construct a temporary FILE. Minimize and normalize
4009 header inclusions and variable names. Do not libc_hidden_def anything.
4010
4011 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4012 __obstack_vprintf_internal.
4013 (__obstack_vprintf_chk): Convert into a wrapper that calls
4014 __obstack_vprintf_internal (these two functions already had the
4015 same code) and move to new file...
4016 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4017 file.
4018 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4019 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4020 * debug/Makefile (routines): Add vobprintf_chk.
4021
4022 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4023 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4024 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4025 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4026 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4027 (__nldbl___obstack_vfprintf_chk):
4028 Directly call the corresponding vxxprintf_internal function,
4029 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4030 duplicate comparison of slen with 0 or maxlen from the corresponding
4031 non-__nldbl function.
4032
4033 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4034 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4035 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4036 Remove libc_hidden_proto.
4037
4038 * stdio-common/vfprintf-internal.c
4039 (__vfprintf_internal, __vfwprintf_internal):
4040 Do not check _IO_FLAGS2_FORTIFY.
4041 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4042 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4043 a comment explaining why it has the maxlen argument.
4044 (_IO_acquire_lock_clear_flags2_fct): Remove.
4045 (_IO_acquire_lock_clear_flags2): Remove.
4046 (_IO_release_lock): Remove conditional statement which will
4047 now never execute.
4048 (_IO_acquire_lock): Remove variable which is now unused.
4049 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4050 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4051
4052 * stdio-common/Makefile (tests): Add tst-bz11319 and
4053 tst-bz11319-fortify2.
4054 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4055 * stdio-common/tst-bz11319-fortify2.c: New file.
4056 * stdio-common/tst-bz11319.c: Likewise.
4057
4058 2018-12-05 Zack Weinberg <zackw@panix.com>
4059 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4060
4061 * misc/syslog.c: Include libioP.h, not iolibio.h.
4062 (__vsyslog_internal): New function with the former body of
4063 __vsyslog_chk; takes mode_flags argument same as
4064 __v*printf_internal. Call __vfprintf_internal directly.
4065
4066 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4067 Remove libc_hidden_def.
4068 (__syslog, __syslog_chk): Use __vsyslog_internal.
4069 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4070
4071 * include/sys/syslog.h: Add multiple inclusion guard.
4072 Add prototype for __vsyslog_internal.
4073 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4074
4075 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4076 Use __vsyslog_internal.
4077
4078 2018-12-05 Zack Weinberg <zackw@panix.com>
4079 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4080
4081 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4082 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4083 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4084 New functions.
4085 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4086 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4087
4088 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4089 Include wctype.h here if COMPILE_WPRINTF is defined.
4090 Define __vfprintf_internal or __vfwprintf_internal, depending
4091 on COMPILE_WPRINTF.
4092 Temporarily, on entry to this function, update mode_flags
4093 according to the environmental settings corresponding to
4094 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4095 Throughout, check mode_flags instead of __ldbl_is_dbl and
4096 _IO_FLAGS2_FORTIFY on the destination FILE.
4097 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4098 Include vfprintf-internal.c. Don't include wctype.h.
4099 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4100 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4101 and vfprintf.
4102 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4103 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4104 and vfwprintf.
4105 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4106
4107 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4108 and add mode_flags argument; use __vfprintf_internal.
4109 (__vdprintf): New function. Alias vdprintf to this.
4110 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4111 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4112 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4113 (__obstack_printf): Use __obstack_printf_internal.
4114 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4115 public aliases __vsnprintf and vsnprintf.
4116 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4117 called internally.
4118 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4119 public aliases _IO_vsprintf and vsprintf.
4120 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4121 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4122 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4123 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4124 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4125
4126 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4127 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4128 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4129 * stdio-common/printf.c: Use __vfprintf_internal.
4130
4131 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4132 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4133 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4134
4135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4136 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4137 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4138 __vfwprintf_internal.
4139
4140 * libio/libio.h: Remove libc_hidden_proto and declaration for
4141 _IO_vfprintf.
4142 Remove declaration of _IO_vfwprintf.
4143 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4144 _IO_vsprintf.
4145 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4146 _IO_obstack_printf.
4147 * include/stdio.h: Add prototype for __vasprintf.
4148 (__vsnprintf): Remove declaration, because there are no more
4149 internal calls.
4150 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4151 declaration, because there are no more internal calls.
4152
4153 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4154 __vsnprintf_internal, instead of _IO_vsnprintf.
4155 * argp/argp-help.c (__argp_error, __argp_failure): Use
4156 __vasprintf_internal, instead of _IO_vasprintf.
4157 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4158 redefine, because there are no more internal calls.
4159
4160 2018-12-05 Zack Weinberg <zackw@panix.com>
4161 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4162
4163 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4164 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4165 Include libio/strfile.h instead of libioP.h.
4166 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4167 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4168 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4169 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4170 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4171 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4172 necessary. Do not set __no_long_double. Normalize variable names.
4173 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4174 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4175 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4176 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4177 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4178 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4179 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4180 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4181 Do not set __no_long_double. Normalize variable names.
4182
4183 2018-12-05 Zack Weinberg <zackw@panix.com>
4184 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4185
4186 * stdio-common/isoc99_scanf.c
4187 * stdio-common/isoc99_fscanf.c
4188 * stdio-common/isoc99_sscanf.c
4189 * stdio-common/isoc99_vscanf.c
4190 * stdio-common/isoc99_vfscanf.c
4191 * stdio-common/isoc99_vsscanf.c
4192 * wcsmbs/isoc99_wscanf.c
4193 * wcsmbs/isoc99_fwscanf.c
4194 * wcsmbs/isoc99_swscanf.c
4195 * wcsmbs/isoc99_vwscanf.c
4196 * wcsmbs/isoc99_vfwscanf.c
4197 * wcsmbs/isoc99_vswscanf.c:
4198 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4199 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4200 No need to lock and unlock the FILE passed to that function.
4201
4202 * stdio-common/vfscanf-internal.c
4203 (__vfscanf_internal, __vfwscanf_internal):
4204 Don't look at _IO_FLAGS2_SCANF_STD.
4205 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4206 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4207 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4208
4209 2018-12-05 Zack Weinberg <zackw@panix.com>
4210 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4211
4212 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4213 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4214 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4215 * libio/strfile.h: Add multiple inclusion guard.
4216 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4217
4218 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4219 consistency with the other version of this file.
4220 (ldbl_compat_symbol): New macro.
4221 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4222 New macro.
4223
4224 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4225 Define __vfscanf_internal or __vfwscanf_internal, depending on
4226 COMPILE_WSCANF; don't define any other public symbols.
4227 Remove errval and code to set errp.
4228 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4229 as the mode_flags argument.
4230 (encode_error, conv_error, input_error): Don't set errval.
4231 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4232 Include vfscanf-internal.c.
4233 * stdio-common/vfscanf.c: New file defining the public entry
4234 point vfscanf, which calls __vfscanf_internal.
4235 * stdio-common/vfwscanf.c: New file defining the public entry
4236 point vfwscanf, which calls __vfwscanf_internal.
4237
4238 * stdio-common/iovfscanf.c: New file.
4239 * stdio-common/iovfwscanf.c: Likewise.
4240
4241 * stdio-common/Makefile (routines): Add vfscanf-internal,
4242 vfwscanf-internal, iovfscanf, iovfwscanf.
4243 * stdio-common/Versions: Mention GLIBC_2.29, so that
4244 it can be used in SHLIB_COMPAT expressions.
4245 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4246 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4247 Call __vfscanf_internal, instead of _IO_vfscanf.
4248 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4249 _IO_vfscanf.
4250 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4251 _IO_vfwscanf.
4252
4253 * libio/iovsscanf.c: Clean up includes, when possible. Use
4254 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4255 __vfscanf_internal or __vfwscanf_internal directly.
4256 * libio/iovswscanf.c: Likewise.
4257 * libio/swscanf.c: Likewise.
4258 * libio/vscanf.c: Likewise.
4259 * libio/vwscanf.c: Likewise.
4260 * libio/wscanf.c: Likewise.
4261 * stdio-common/isoc99_fscanf.c: Likewise.
4262 * stdio-common/isoc99_scanf.c: Likewise.
4263 * stdio-common/isoc99_sscanf.c: Likewise.
4264 * stdio-common/isoc99_vfscanf.c: Likewise.
4265 * stdio-common/isoc99_vscanf.c: Likewise.
4266 * stdio-common/isoc99_vsscanf.c: Likewise.
4267 * stdio-common/scanf.c: Likewise.
4268 * stdio-common/sscanf.c: Likewise.
4269 * wcsmbs/isoc99_fwscanf.c: Likewise.
4270 * wcsmbs/isoc99_swscanf.c: Likewise.
4271 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4272 * wcsmbs/isoc99_vswscanf.c: Likewise.
4273 * wcsmbs/isoc99_vwscanf.c: Likewise.
4274 * wcsmbs/isoc99_wscanf.c: Likewise.
4275
4276 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4277
4278 * include/time.h
4279 (__tz_compute): Replace time_t with __time64_t.
4280 (__tz_convert): Replace time_t* with __time64_t.
4281 (__offtime): Replace time_t* with __time64_t.
4282 * time/gmtime.c
4283 (__gmtime_r): Adjust call to __tz_convert.
4284 (gmtime): Likewise.
4285 * time/localtime.c
4286 (__localtime_r): Likewise.
4287 (localtime): Likewise.
4288 * time/offtime.c: Replace time_t with __time64_t.
4289 * time/tzset.c: Likewise.
4290
4291 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4292
4293 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4294 dynamic linker unless [$(run-built-tests) = yes].
4295
4296 2018-12-03 DJ Delorie <dj@delorie.com>
4297
4298 * support/test-container.c (check_for_unshare_hints): New.
4299 (main): Call it if unshare fails. Add support for "su" scriptlet
4300 command.
4301
4302 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4303
4304 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4305 'START' to indicate that start text should be output.
4306 (gen_test): Likewise.
4307 (main): Generate 'START' for first symbol or '--' line, or at end
4308 of input if not previously generated.
4309
4310 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4311
4312 [BZ #19767]
4313 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4314 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4315 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4316 ALWAYS_USE_VSYSCALL.
4317
4318 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4319
4320 [BZ #23913]
4321 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4322 new_argv by one.
4323
4324 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4325
4326 [BZ #23923]
4327 * locale/programs/localedef.c: Declare boolean hard_links default true.
4328 (options): Add --no-hard-links option.
4329 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4330 * locale/programs/localedef.h: Declare prototype for hard_links.
4331 * locale/programs/locfile.c (write_locale_data): Don't use hard
4332 links if hard_links is false.
4333
4334 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4335
4336 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4337 cpu_features_basic.
4338 (__cache_sysconf): Likewise.
4339 (init_cacheinfo): Likewise.
4340 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4341 populate COMMON_CPUID_INDEX_80000007 and
4342 COMMON_CPUID_INDEX_80000008.
4343 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4344 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4345 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4346 (init_cpu_features): Use _Static_assert on
4347 index_arch_Fast_Unaligned_Load.
4348 __get_cpuid_registers and __get_arch_feature. Updated for
4349 cpu_features_basic. Set stepping in cpu_features.
4350 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4351 (FEATURE_INDEX_2): New.
4352 (FEATURE_INDEX_MAX): Changed to enum.
4353 (COMMON_CPUID_INDEX_D_ECX_1): New.
4354 (COMMON_CPUID_INDEX_80000007): Likewise.
4355 (COMMON_CPUID_INDEX_80000008): Likewise.
4356 (cpuid_registers): Likewise.
4357 (cpu_features_basic): Likewise.
4358 (CPU_FEATURE_USABLE): Likewise.
4359 (bit_arch_XXX_Usable): Likewise.
4360 (cpu_features): Use cpuid_registers and cpu_features_basic.
4361 (bit_arch_XXX): Reweritten.
4362 (bit_cpu_XXX): Likewise.
4363 (index_cpu_XXX): Likewise.
4364 (reg_XXX): Likewise.
4365 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4366 <support/check.h>.
4367 (CHECK_CPU_FEATURE): New.
4368 (CHECK_CPU_FEATURE_USABLE): Likewise.
4369 (cpu_kinds): Likewise.
4370 (do_test): Print vendor, family, model and stepping. Check
4371 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4372 (TEST_FUNCTION): Removed.
4373 Include <support/test-driver.c> instead of
4374 "../../test-skeleton.c".
4375 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4376 Check POPCNT instead of POPCOUNT.
4377 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4378
4379 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4380
4381 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4382 there is no element in `consts'.
4383
4384 2018-12-01 Florian Weimer <fweimer@redhat.com>
4385
4386 * support/support_capture_subprocess.c
4387 (support_capture_subprocess): Check that pipe descriptors have
4388 expected values. Close original pipe descriptors in subprocess.
4389
4390 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4391
4392 [BZ #23032]
4393 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4394 attr with __pthread_default_barrierattr.
4395 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4396 attr with __pthread_default_condattr.
4397 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4398 attr with __pthread_default_mutexattr.
4399 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4400 attr with __pthread_default_rwlockattr.
4401
4402 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4403
4404 * manual/tunables.texi (POSIX Thread Tunables): New node.
4405 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4406 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4407 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4408 __pthread_tunables_init.
4409 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4410 (max_adaptive_count): Define.
4411 * nptl/pthread_mutex_conf.c: New file.
4412 * nptl/pthread_mutex_conf.h: New file.
4413 * sysdeps/generic/adaptive_spin_count.h: New file.
4414 * sysdeps/nptl/dl-tunables.list: New file.
4415 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4416 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4417 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4418 Likewise.
4419
4420 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4421
4422 [BZ #20544]
4423 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4424 * stdlib/on_exit.c (__on_exit): Likewise.
4425 * stdlib/Makefile (tests): Add tst-bz20544.
4426 * stdlib/tst-bz20544.c: New test.
4427
4428 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4429
4430 [BZ #19767]
4431 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4432 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4433 New.
4434
4435 2018-11-30 Florian Weimer <fweimer@redhat.com>
4436
4437 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4438 Extend error logging.
4439 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4440 symbol.
4441
4442 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4443
4444 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4445 __sigismember instead of sigismember.
4446 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4447 cancel_handler): New definitions.
4448 (do_system): Use posix_spawn instead of fork and execl and remove
4449 reentracy code.
4450 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4451 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4452 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4453 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4454 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4455 * sysdeps/unix/sysv/linux/system.c: Likewise.
4456
4457 [BZ #22834]
4458 [BZ #17490]
4459 * NEWS: Add new semantic for atfork with popen and system.
4460 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4461 fork and execl.
4462
4463 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4464
4465 [BZ #23690]
4466 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4467 modification order when accessing reloc_result->addr.
4468 * include/link.h (reloc_result): Add field init.
4469 * nptl/Makefile (tests): Add tst-audit-threads.
4470 (modules-names): Add tst-audit-threads-mod1 and
4471 tst-audit-threads-mod2.
4472 Add rules to build tst-audit-threads.
4473 * nptl/tst-audit-threads-mod1.c: New file.
4474 * nptl/tst-audit-threads-mod2.c: Likewise.
4475 * nptl/tst-audit-threads.c: Likewise.
4476 * nptl/tst-audit-threads.h: Likewise.
4477
4478 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4479
4480 * scripts/gen-as-const.py: New file.
4481 * scripts/gen-as-const.awk: Remove.
4482 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4483 gen-as-const.py.
4484 ($(objpfx)test-as-const-%.c): Likewise.
4485
4486 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4487
4488 * elf/dl-exception.c: Include <_itoa.h>.
4489
4490 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4491
4492 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4493 returned by __f_setlk.
4494
4495 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4496 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4497
4498 * elf/Makefile (tests-internal): Add tst-create_format1.
4499 * elf/dl-exception.c (_dl_exception_create_format): Support
4500 %x, %lx and %zx.
4501 * elf/tst-create_format1.c: New file.
4502
4503 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4504
4505 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4506 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4507 gnulib.)
4508 * argp/argp-help.c (__argp_failure): Likewise.
4509
4510 2018-11-29 Mao Han <han_mao@c-sky.com>
4511
4512 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4513 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4514 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4515 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4516 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4517 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4518 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4519 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4520 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4521 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4522 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4523 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4524 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4525 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4526 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4527 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4528 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4529 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4530 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4531 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4532 (R_CKCORE_TLS_TPOFF32): New defines.
4533
4534 2018-11-29 Florian Weimer <fweimer@redhat.com>
4535
4536 * posix/Makefile (before-compile): Remove testcases.h and
4537 ptestcases.h.
4538 (generated): Add testcases.h and ptestcases.h.
4539 (testcases.h, ptestcases.h): Move to $(objpfx).
4540 (runtests.o): Add dependency on testcases.h.
4541 (runptests.o): Add dependency on ptestcases.h.
4542 * posix/testcases.h, posix/ptestcases.h: Remove files.
4543 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4544 not touch posix/testcases.h and posix/ptestcases.h.
4545
4546 2018-11-28 Florian Weimer <fweimer@redhat.com>
4547
4548 support: Add signal support to support_capture_subprocess_check.
4549 * support/capture_subprocess.h (support_capture_subprocess_check):
4550 Adjust comment and rename parameter.
4551 * support/support_capture_subprocess_check.c
4552 (print_actual_status): New function.
4553 (support_capture_subprocess_check): Support negative
4554 status_or_signal. Call print_actual_status.
4555 * support/tst-support_capture_subprocess.c (do_test): Call
4556 support_capture_subprocess_check.
4557 * libio/tst-vtables-common.c (termination_status)
4558 (init_termination_status): Remove.
4559 (check_for_termination): Adjust support_capture_subprocess_check
4560 call.
4561 (do_test): Remove call to init_termination_status.
4562
4563 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4564
4565 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4566 source directory instead of a copy.
4567 (CommandList.create_copy_dir): Remove.
4568
4569 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4570
4571 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4572
4573 2018-11-28 Florian Weimer <fweimer@redhat.com>
4574
4575 * support/support.h (support_quote_string): Do not use str
4576 parameter name.
4577
4578 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4579
4580 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4581 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4582
4583 2018-11-27 Florian Weimer <fweimer@redhat.com>
4584
4585 * support/support.h (support_quote_string): Declare.
4586 * support/support_quote_string.c: New file.
4587 * support/tst-support_quote_string.c: Likewise.
4588 * support/Makefile (libsupport-routines): Add
4589 support_quote_string.
4590 (tests): Add tst-support_quote_string.
4591
4592 2018-11-27 Florian Weimer <fweimer@redhat.com>
4593
4594 [BZ #23927]
4595 CVE-2018-19591
4596 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4597 descriptor leak in case of ENODEV error.
4598
4599 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4600
4601 [BZ #19767]
4602 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4603 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4604 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4605
4606 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4607
4608 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4609 Error for unknown lines.
4610
4611 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4612
4613 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4614 Touch additional files.
4615
4616 2018-11-26 Florian Weimer <fweimer@redhat.com>
4617
4618 [BZ #23907]
4619 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4620 double-frees.
4621
4622 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4623
4624 [BZ #19767]
4625 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4626 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4627 SHARED. Include sysdep.h.
4628 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4629 ALWAYS_USE_VSYSCALL.
4630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4631 ALWAYS_USE_VSYSCALL.
4632
4633 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4634
4635 [BZ #19767]
4636 * nptl/Makefile (tests-static): Add tst-cond11-static.
4637 (tests): Likewise.
4638 * nptl/tst-cond11-static.c: New File.
4639 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4640 tst-affinity-static.
4641 (tests): Likewise.
4642 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4643 instead of SHARED.
4644 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4645 (USE_VSYSCALL): Likewise.
4646 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4647 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4648 instead of SHARED.
4649 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4650 SHARED.
4651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4652 New.
4653
4654 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4655
4656 [BZ #23915]
4657 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4658 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4659 Undefine.
4660
4661 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4662
4663 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4664 (tst-cet-legacy-1a-ARGS): New.
4665 ($(objpfx)tst-cet-legacy-1a): New target.
4666 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4667
4668 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4669
4670 * conform/conformtest.py (CompileSubTest.__init__): Set
4671 self.run_early to False.
4672 (ExecuteSubTest.__init__): Likewise.
4673 (HeaderTests.run): Try running all non-optional, non-XFAILed
4674 compilation tests in a single execution of the compiler.
4675
4676 * conform/conformtest.py (CompileSubTest): New class.
4677 (ExecuteSubTest): Likewise.
4678 (ElementTest.run): Rename to gen_subtests. Append tests to
4679 self.subtests instead of running them.
4680 (ConstantTest.run): Likewise.
4681 (SymbolTest.run): Likewise.
4682 (TypeTest.run): Likewise.
4683 (TagTest.run): Likewise.
4684 (FunctionTest.run): Likewise.
4685 (VariableTest.run): Likewise.
4686 (MacroFunctionTest.run): Likewise.
4687 (MacroStrTest.run): Likewise.
4688 (HeaderTests.handle_test_line): Generate subtests for tests.
4689 (HeaderTests.run): Run subtests for tests.
4690
4691 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4692
4693 * math/Versions (GLIBC_2.29): Add pow.
4694 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4695 symbol.
4696 * math/w_pow.c: New file.
4697 * sysdeps/i386/fpu/w_pow.c: New file.
4698 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4699 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4700 and add necessary aliases.
4701 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4702 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4703 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4704 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4705 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4706 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4707 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4708 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4709 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4710 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4711 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4712 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4713 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4714 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4715 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4720 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4721 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4722 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4723 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4724 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4725 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4726 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4727 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4728 __pow.
4729 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4730 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4731 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4732
4733 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4734
4735 * math/Versions (GLIBC_2.29): Add log2.
4736 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4737 symbol.
4738 * math/w_log2.c: New file.
4739 * sysdeps/i386/fpu/w_log2.c: New file.
4740 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4741 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4742 and add necessary aliases.
4743 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4744 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4745 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4746 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4747 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4748 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4749 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4750 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4751 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4752 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4753 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4754 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4755 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4756 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4757 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4762 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4763 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4764 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4765 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4766 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4767 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4768 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4769
4770 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4771
4772 * math/Versions (GLIBC_2.29): Add log.
4773 * math/w_log_compat.c (__log_compat): Change to versioned compat
4774 symbol.
4775 * math/w_log.c: New file.
4776 * sysdeps/i386/fpu/w_log.c: New file.
4777 * sysdeps/ia64/fpu/e_log.S: Update.
4778 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4779 and add necessary aliases.
4780 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4781 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4782 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4783 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4784 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4785 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4786 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4787 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4788 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4789 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4790 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4791 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4792 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4793 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4794 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4799 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4800 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4801 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4802 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4803 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4804 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4805 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4806 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4807 __log.
4808 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4809 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4810 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4811 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4812
4813 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4814
4815 * math/Versions (GLIBC_2.29): Add exp and exp2.
4816 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4817 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4818 * math/w_exp_compat.c (__exp_compat): Likewise.
4819 * math/w_exp.c: New file.
4820 * math/w_exp2.c: New file.
4821 * sysdeps/i386/fpu/w_exp.c: New file.
4822 * sysdeps/i386/fpu/w_exp2.c: New file.
4823 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4824 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4825 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4826 and add necessary aliases.
4827 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4828 and add necessary aliases.
4829 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4830 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4831 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4832 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4833 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4834 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4835 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4836 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4837 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4838 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4839 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4840 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4841 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4842 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4843 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4844 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4845 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4850 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4851 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4852 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4853 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4854 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4855 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4856 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4857 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4858 (__ieee754_exp): Rename to __exp.
4859 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4860 (__ieee754_exp): Rename to __exp.
4861 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4862 (__ieee754_exp): Rename to __exp.
4863 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4864 __exp.
4865 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4866
4867 2018-11-20 DJ Delorie <dj@redhat.com>
4868
4869 * malloc/malloc.c (tcache_entry): Add key field.
4870 (tcache_put): Set it.
4871 (tcache_get): Likewise.
4872 (_int_free): Check for double free in tcache.
4873 * malloc/tst-tcfree1.c: New.
4874 * malloc/tst-tcfree2.c: New.
4875 * malloc/Makefile: Run the new tests.
4876 * manual/probes.texi: Document memory_tcache_double_free probe.
4877
4878 * dlfcn/dlerror.c (check_free): Prevent double frees.
4879
4880 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4881
4882 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4883
4884 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4885
4886 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4887 in tests. Use names for format arguments.
4888 (ConstantTest.run): Likewise.
4889 (SymbolTest.run): Likewise.
4890 (TypeTest.run): Likewise.
4891 (TagTest.run): Likewise.
4892 (FunctionTest.run): Likewise.
4893 (VariableTest.run): Likewise.
4894 (MacroFunctionTest.run): Likewise.
4895 (MacroStrTest.run): Likewise.
4896 (HeaderTests.__init__): Set self.num_tests.
4897 (HeaderTests.handle_test_line): Set test.num. Increment
4898 self.num_tests.
4899
4900 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4901
4902 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4903 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4904 SEEK_SET.
4905
4906 2018-11-19 Mao Han <han_mao@c-sky.com>
4907
4908 * scripts/config.guess: Update to version 2018-08-29.
4909 * scripts/config.sub: Update to version 2018-08-29.
4910
4911 2018-11-19 Florian Weimer <fweimer@redhat.com>
4912
4913 support: Print timestamps in timeout handler.
4914 * support/support_test_main.c (print_timestamp): New function.
4915 (signal_handler): Use it to print the termination time and the
4916 time of the last write to standard output.
4917
4918 2018-11-16 Zack Weinberg <zackw@panix.com>
4919 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4920
4921 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4922 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4923 argument.
4924 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4925 and add flags argument. Check flags instead of __ldbl_is_dbl when
4926 deciding whether to set is_long_double.
4927 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4928 passing zero for flags argument.
4929 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4930
4931 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4932 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4933 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4934 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4935 variable names. Remove libc_hidden_def/libc_hidden_proto from
4936 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4937 longer called from within the library.
4938 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4939 for __nldbl___vstrfmon_l, declare it explicitly.
4940
4941 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4942
4943 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4944
4945 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4946 macros
4947 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4948 F_SETLK64, F_SETLKW64, respectively.
4949 * sysdeps/mach/hurd/f_setlk.c: New file.
4950 * sysdeps/mach/hurd/f_setlk.h: New file.
4951 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4952 f_setlk.
4953 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4954 (__libc_fcntl): Move non-flock operations to...
4955 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4956 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4957
4958 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4959
4960 mktime: DEBUG_MKTIME cleanup
4961 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4962 And it’s no longer needed now that glibc and Gnulib both have
4963 their own testing mechanisms for mktime.
4964 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4965
4966 mktime: fix non-EOVERFLOW errno handling
4967 [BZ#23789]
4968 mktime was not properly reporting failures when the underlying
4969 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4970 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4971 The problem could happen on non-glibc platforms, with Gnulib.
4972 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4973 (tm_diff): ... this simpler function, which does not change errno.
4974 All callers changed to deal with errno themselves.
4975 (ranged_convert, __mktime_internal): Return failure immediately if
4976 the underlying function reports any failure other than EOVERFLOW.
4977 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4978 gap code fails.
4979
4980 mktime: fix bug with Y2038 DST transition
4981 [BZ#23789]
4982 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4983 mishandle a DST transition that jumps over the Y2038 boundary.
4984 No such DST transitions are known so this is only a theoretical
4985 bug, but we might as well do things right.
4986
4987 mktime: make more room for overflow
4988 [BZ#23789]
4989 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4990 This is so that we can add tm_diff results to a previous guess,
4991 which will be useful in a later patch.
4992
4993 mktime: simplify offset guess
4994 [BZ#23789]
4995 * time/mktime.c (__mktime_internal): Omit excess precision.
4996
4997 mktime: new test for mktime failure
4998 [BZ#23789]
4999 Based on a test suggested by Albert Aribaud in:
5000 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5001 * time/Makefile (tests): Add bug-mktime4.
5002 * time/bug-mktime4.c: New file.
5003
5004 mktime: fix EOVERFLOW bug
5005 [BZ#23789]
5006 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5007 Include libc-config.h, not config.h, for __set_errno.
5008 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5009
5010 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5011
5012 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5013 __attribute_copy__ to copy attributes from name. Drop static qualifier
5014 to avoid warnings about leaf attribute not having effect on static
5015 functions.
5016
5017 2018-11-13 Florian Weimer <fweimer@redhat.com>
5018
5019 * malloc/malloc.c (fastbin_push_entry): New function.
5020 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5021 (REMOVE_FB): Remove macro.
5022 (_int_malloc): Use fastbin_pop_entry and reindent.
5023 (_int_free): Use fastbin_push_entry.
5024 (malloc_consolidate): Use atomic_exchange_acquire.
5025
5026 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5027
5028 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5029 alias attribute, not with strong_alias.
5030
5031 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5032 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5033 with additional parameter thread.
5034 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5035 in terms of __hidden_ver2.
5036 (hidden_tls_def): New macro.
5037 (libc_hidden_tls_def): Likewise.
5038 (rtld_hidden_tls_def): Likewise.
5039 (libm_hidden_tls_def): Likewise.
5040 (libmvec_hidden_tls_def): Likewise.
5041 (libresolv_hidden_tls_def): Likewise.
5042 (librt_hidden_tls_def): Likewise.
5043 (libdl_hidden_tls_def): Likewise.
5044 (libnss_files_hidden_tls_def): Likewise.
5045 (libnsl_hidden_tls_def): Likewise.
5046 (libnss_nisplus_hidden_tls_def): Likewise.
5047 (libutil_hidden_tls_def): Likewise.
5048 (libutil_hidden_tls_def): Likweise.
5049 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5050 libc_hidden_tls_def.
5051 (__sim_disabled_exceptions_thread): Likewise.
5052 (__sim_round_mode_thread): Likewise.
5053
5054 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5055 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5056 copy attributes from name.
5057
5058 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5059
5060 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5061 Use __attribute_copy__ to copy attributes from name.
5062
5063 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5064 with __hidden_ver1 call.
5065 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5066 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5067 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5068 (__cosf): Do not declare here.
5069 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5070 (__sincosf): Do not declare here.
5071 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5072 (__sinf): Do not declare here.
5073
5074 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5075 (__BIG_ENDIAN): Likewise.
5076 (__BYTE_ORDER): Likewise.
5077 (strong_alias): Likewise.
5078 (_strong_alias): Likewise.
5079
5080 2018-11-12 Florian Weimer <fweimer@redhat.com>
5081
5082 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5083 function. Move after the definition of in_smallbin_range. Do not
5084 use __builtin_expect for paths that lead to a noreturn function.
5085 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5086 because it is unclear whether this is in fact an unlikely
5087 condition.
5088 (_int_malloc, _int_free): Adjust.
5089 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5090 variables.
5091 * malloc/arena.c (heap_trim): Likewise.
5092
5093 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5094
5095 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5096 it, free it if needed.
5097 (reauthenticate): Test and use ccwdir.
5098 (child_init_port): In non-resetids case, test and use ccwdir.
5099 (child_chdir): New nested function to set ccwdir.
5100 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5101 * hurd/hurd/port.h (_hurd_port_move): New function.
5102 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5103 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5104 * hurd/Versions (_hurd_port_move): Export function.
5105 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5106 symbol.
5107 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5108 of dtablesize for allocating dtable_cloexec.
5109
5110 2018-11-09 Martin Sebor <msebor@redhat.com>
5111
5112 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5113 it's already defined.
5114 (_strong_alias): Use __attribute_copy__.
5115 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5116 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5117 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5118 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5119 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5120 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5121 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5122 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5123 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5124 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5125 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5126 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5127 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5128 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5129 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5130 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5131 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5132 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5133 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5134
5135 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5136
5137 * misc/tst-efgcvt.c: Include support/check.h and
5138 support/test-driver.c. Do not include test-skeleton.c.
5139 (error_count): Remove.
5140 (output_error): Replace increments to error_count with calls to
5141 support_record_failure.
5142 (output_r_error): Likewise.
5143 (special): Likewise.
5144 (do_test): Unconditionally return zero.
5145 (TEST_FUNCTION): Remove.
5146
5147 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5148
5149 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5150 not $(@D)/scratch.
5151 ($(linknamespace-header-tests)): Likewise.
5152
5153 * conform/conformtest.py: New file.
5154 * conform/conformtest.pl: Remove.
5155 * conform/GlibcConform.pm: Likewise.
5156 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5157 (KEYWORDS_C99): Likewise.
5158 (KEYWORDS): Likewise.
5159 * conform/Makefile ($(conformtest-header-tests)): Use
5160 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5161 option. Use --header instead of --headers.
5162 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5163 function entries.
5164 * conform/data/spawn.h-data: Likewise.
5165 * conform/data/fcntl.h-data (openat): Add space after function
5166 name.
5167 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5168 (wcscasecmp_l): Likewise.
5169 * conform/data/termios.h-data (c_cc): Add space after element
5170 name.
5171
5172 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5173
5174 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5175 instead of manually comparing and reporting mismatching strings.
5176 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5177 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5178
5179 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5180
5181 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5182 __ASSUME_SOCKETCALL.
5183 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5184 (__ASSUME_SOCKETCALL): Remove.
5185 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5186 (__ASSUME_SOCKETCALL): Likewise.
5187 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5188 (__ASSUME_SOCKETCALL): Likewise.
5189 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5190 (__ASSUME_SOCKETCALL): Likewise.
5191 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5192 (__ASSUME_SOCKETCALL): Likewise.
5193 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5194 (__ASSUME_SOCKETCALL): Likewise.
5195 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5196 (__ASSUME_SOCKETCALL): Likewise.
5197
5198 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5199
5200 [BZ #23509]
5201 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5202 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5203 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5204 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5205 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5206 lc_unknown.
5207
5208 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5209
5210 [BZ #17630]
5211 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5212
5213 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5214
5215 [BZ #23867]
5216 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5217 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5218 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5219 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5220
5221 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5222
5223 * support/support_test_compare_string.c
5224 (support_test_compare_string): Fix printf format.
5225
5226 2018-11-07 Florian Weimer <fweimer@redhat.com>
5227
5228 Implement TEST_COMPARE_STRING.
5229 * support/check.h (TEST_COMPARE_STRING): Define.
5230 (support_test_compare_string): Declare.
5231 * support/Makefile (libsupport-routines): Add
5232 support_test_compare_string.
5233 (tests): Add tst-test_compare_string.
5234 * support/support_test_compare_string.c: New file.
5235 * support/tst-test_compare_string.c: Likewise.
5236
5237 2018-11-07 Andreas Schwab <schwab@suse.de>
5238
5239 [BZ #23864]
5240 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5241 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5242 Undef.
5243
5244 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5245
5246 [BZ #23862]
5247 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5248 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5249 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5250 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5251 Likewise.
5252
5253 2018-11-06 Florian Weimer <fweimer@redhat.com>
5254
5255 [BZ #17405]
5256 * posix/Makefile (routines): Add spawn_faction_addchdir.
5257 (tests): Add tst-spawn-chdir.
5258 * posix/Versions (GLIBC_2.29): Add
5259 posix_spawn_file_actions_addchdir_np.
5260 * posix/spawn_faction_addchdir.c: New file.
5261 * posix/spawn_faction_destroy.c
5262 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5263 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5264 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5265 chdir_action.
5266 * posix/tst-spawn-chdir.c: New file.
5267 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5268 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5269 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5270 posix_spawn_file_actions_addchdir_np.
5271 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5272 Likewise.
5273 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5274 Likewise.
5275 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5276 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5277 Likewise.
5278 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5279 Likewise.
5280 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5281 Likewise.
5282 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5283 Likewise.
5284 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5285 Likewise.
5286 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5287 Likewise.
5288 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5289 (GLIBC_2.29): Likewise.
5290 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5291 (GLIBC_2.29): Likewise.
5292 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5293 (GLIBC_2.29): Likewise.
5294 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5295 (GLIBC_2.29): Likewise.
5296 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5297 Likewise.
5298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5299 (GLIBC_2.29): Likewise.
5300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5301 (GLIBC_2.29): Likewise.
5302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5303 (GLIBC_2.29): Likewise.
5304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5305 (GLIBC_2.29): Likewise.
5306 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5307 Likewise.
5308 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5309 Likewise.
5310 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5311 Likewise.
5312 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5313 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5314 Likewise.
5315 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5316 Likewise.
5317 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5318 Likewise.
5319 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5320 Likewise.
5321
5322 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5323
5324 * misc/Makefile (tests): Add tst-ldbl-error.
5325 * misc/tst-ldbl-error.c: New file.
5326
5327 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5328
5329 * misc/Makefile (tests): Add tst-ldbl-warn.
5330 * misc/tst-ldbl-warn.c: New file.
5331
5332 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5333
5334 * argp/Makefile (tests): Add tst-ldbl-argp.
5335 * argp/tst-ldbl-argp.c: New file.
5336
5337 2018-11-05 Arjun Shankar <arjun@redhat.com>
5338
5339 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5340 __gconv_path_elem and call __gconv_get_path unconditionally.
5341
5342 2018-11-05 Andreas Schwab <schwab@suse.de>
5343
5344 [BZ #22927]
5345 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5346 creating the first helper thread failed.
5347
5348 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5349
5350 * sysdeps/mach/hurd/msync.c: New file.
5351
5352 2018-11-02 Florian Weimer <fweimer@redhat.com>
5353
5354 * support/shell-container.c (copy_func): Call
5355 support_copy_file_range instead of copy_file_range to support
5356 cross-device copies.
5357
5358 2018-11-02 Florian Weimer <fweimer@redhat.com>
5359
5360 * support/test-container.c: Include <libc-pointer-arith.h> for
5361 ALIGN_UP.
5362
5363 2018-11-01 Zong Li <zong@andestech.com>
5364
5365 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5366 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5367 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5368 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5369
5370 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5371 variable to avoid overlap arguments.
5372
5373 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5374
5375 * posix/bug-regex22.c (main): Use puts with distinct error
5376 messages for unexpected success of re_compile_pattern, not printf
5377 with NULL argument to %s.
5378
5379 * stdio-common/bug22.c: Include <libc-diag.h>.
5380 (do_test): Disable -Wformat-overflow= warnings around fprintf
5381 calls outputting more than INT_MAX characters.
5382 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5383 around printf call with NULL %s argument.
5384
5385 [BZ #23848]
5386 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5387 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5388 Undefine.
5389 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5390 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5391 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5392 (__ASSUME_SENDTO_SYSCALL): Likewise.
5393 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5394 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5395 [!__arch64__].
5396 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5397 (__ASSUME_CONNECT_SYSCALL): Likewise.
5398 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5399 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5400 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5401 Define.
5402 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5403 Likewise.
5404 [__LINUX_KERNEL_VERSION >= 0x040400]
5405 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5406 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5407 Remove.
5408 (listen): Likewise.
5409 (setsockopt): Likewise.
5410
5411 2018-11-01 Fredrik Noring <noring@nocrew.org>
5412
5413 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5414 with the ISA override.
5415
5416 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5417
5418 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5419 #endif.
5420
5421 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5422
5423 * manual/errno.texi (EIEIO): Document how translators should
5424 translate the error message.
5425 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5426 printing trailing whitespaces refused by git.
5427 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5428 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5429 * hurd/Makefile (user-interfaces): Add pci.
5430
5431 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5432
5433 * conform/linknamespace.py: New file.
5434 * conform/linknamespace.pl: Remove file.
5435 * conform/Makefile ($(linknamespace-header-tests)): Use
5436 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5437 option.
5438
5439 2018-10-30 Florian Weimer <fweimer@redhat.com>
5440
5441 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5442 memory leaks.
5443
5444 2018-10-30 Florian Weimer <fweimer@redhat.com>
5445
5446 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5447
5448 2018-10-30 Florian Weimer <fweimer@redhat.com>
5449
5450 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5451 support_blob_repeat.
5452
5453 2018-10-30 Florian Weimer <fweimer@redhat.com>
5454
5455 Avoid spurious test failures in stdlib/test-bz22786.
5456 * support/Makefile (libsupport-routines): Add blob_repeat.
5457 (tests): Add tst-support_blob_repeat.
5458 * support/blob_repeat.h: New file.
5459 * support/blob_repeat.c: Likewise.
5460 * support/tst-support_blob_repeat.c: Likewise.
5461 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5462 support_blob_repeat_allocate.
5463
5464 2018-10-30 Andreas Schwab <schwab@suse.de>
5465
5466 [BZ #23125]
5467 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5468 Don't use tail call.
5469 * elf/tst-unwind-main.c: New file.
5470 * elf/Makefile (tests): Add tst-unwind-main.
5471 (CFLAGS-tst-unwind-main.c): Define.
5472
5473 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5474
5475 [BZ #23791]
5476 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5477 n_cs_precedes to 0.
5478 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5479
5480 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5481
5482 * conform/glibcconform.py: Do not import shutil.
5483 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5484 of mkdtemp.
5485
5486 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5487 critic_missing for versions before 3.4.
5488 * configure: Regenerated.
5489 * manual/install.texi (Tools for Compilation): Document
5490 requirement for Python to build glibc.
5491 * INSTALL: Regenerated.
5492 * Rules [PYTHON]: Make code unconditional.
5493 * benchtests/Makefile [PYTHON]: Likewise.
5494 * conform/Makefile [PYTHON]: Likewise.
5495 * manual/Makefile [PYTHON]: Likewise.
5496 * math/Makefile [PYTHON]: Likewise.
5497
5498 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5499
5500 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5501 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5502 answer to interrupt_operation, return EIEIO instead of EINTR.
5503 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5504 _hurd_intr_rpc_msg_about_to global point to start of controlled
5505 assembly snippet. Make it check canceled flag.
5506 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5507 the _hurd_intr_rpc_msg_about_to point.
5508 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5509 issue, remove cancel flag check.
5510
5511 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5512
5513 * scripts/build-many-glibcs.py: Remove compatibility for missing
5514 os.cpu_count and re.fullmatch.
5515
5516 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5517
5518 [BZ #23822]
5519 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5520 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5521 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5522
5523 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5524
5525 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5526 macro.
5527
5528 2018-10-25 Florian Weimer <fweimer@redhat.com>
5529
5530 [BZ #23562]
5531 [BZ #23821]
5532 XFAIL siginfo_t si_band conform test on sparc64.
5533 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5534 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5535 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5536 (conformtest-xfail-conds): Add sparc64-linux.
5537 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5538 sparc64.
5539 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5540
5541 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5542
5543 * elf/elf.h (NT_MIPS_DSP): New macro.
5544 (NT_MIPS_FP_MODE): Likewise.
5545
5546 2018-10-25 Zong Li <zong@andestech.com>
5547
5548 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5549 name by adding the file extension (.so).
5550
5551 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5552
5553 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5554 (test-xfail-ISO11/threads.h/linknamespace,
5555 test-xfail-ISO11/threads.h/conform): Add.
5556
5557 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5558
5559 * math/gen-libm-test.py: Import os.
5560 (ALL_FLOATS_MANUAL): New constant.
5561 (ALL_FLOATS_SUFFIX): Likewise.
5562 (Ulps.all_functions): New function.
5563 (real_all_ulps): Likewise.
5564 (generate_err_table_sub): Likewise.
5565 (generate_err_table): Likewise.
5566 (main): Handle -s and -m options.
5567 * manual/libm-err-tab.pl: Remove.
5568 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5569 instead of libm-err-tab.pl.
5570 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5571 != no].
5572 * manual/install.texi (Tools for Compilation): Document
5573 requirement for Python to build manual.
5574 * INSTALL: Regenerated.
5575
5576 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5577
5578 * bits/time64.h: New file.
5579 * include/time.h: Replace internal_time_t with __time64_t.
5580 * posix/bits/types (__time64_t): Add.
5581 * stdlib/Makefile: Add bits/time64.h to includes.
5582 * time/tzfile.c: Replace internal_time_t with __time64_t.
5583
5584 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5585
5586 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5587 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5588 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5589 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5590 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5591 prototype.
5592 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5593 * posix/spawn_faction_addclose.c
5594 (__posix_spawn_file_actions_addclose): Add hidden definition.
5595 * posix/spawn_faction_adddup2.c
5596 (__posix_spawn_file_actions_adddup2): Likewise.
5597 * posix/spawn_faction_destroy.c
5598 (__posix_spawn_file_actions_destroy): Likewise.
5599 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5600 Likewise.
5601 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5602 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5603 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5604 Likewise.
5605 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5606 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5607 Likewise.
5608
5609 2018-10-24 Andreas Schwab <schwab@suse.de>
5610
5611 [BZ #18093]
5612 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5613 format cache.
5614 * elf/cache.c (print_cache): Likewise.
5615
5616 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5617
5618 * bits/timesize.h: New file.
5619 * stdlib/Makefile (headers): Add bits/timesize.h.
5620 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5621 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5622 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5623 (__SEM_PAD_AFTER_TIME): Likewise.
5624 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5625 (__SHM_PAD_AFTER_TIME): Likewise.
5626 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5627 (__MSQ_PAD_BEFORE_TIME): Likewise.
5628 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5629 (__SEM_PAD_BEFORE_TIME): Likewise.
5630 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5631 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5632 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5633 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5634 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5635 (__MSQ_PAD_BEFORE_TIME): Likewise.
5636 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5637 (__SEM_PAD_BEFORE_TIME): Likewise.
5638 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5639 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5640 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5641 (__MSQ_PAD_BEFORE_TIME): Likewise.
5642 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5643 (__SEM_PAD_BEFORE_TIME): Likewise.
5644 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5645 (__SHM_PAD_BEFORE_TIME): Likewise.
5646 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5647 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5648 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5649
5650 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5651
5652 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5653 USE_RDTSCP is defined.
5654 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5655 USE_RDTSCP is defined.
5656
5657 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5658
5659 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5660 defined.
5661
5662 [BZ #23709]
5663 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5664 independently of other flags.
5665
5666 2018-10-23 Florian Weimer <fweimer@redhat.com>
5667
5668 * time/tst-mktime2.c (N_STRINGS): Remove.
5669 (set_timezone): New function.
5670 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5671 (mktime_test1): Report localtime failure and check errno value.
5672 Use TEST_COMPARE.
5673 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5674 (do_test): Remove alarm call. Use set_timezone and array_length.
5675
5676 2018-10-23 Andreas Schwab <schwab@suse.de>
5677
5678 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5679 (__start_context): Use END instead of PSEUDO_END.
5680
5681 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5682
5683 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5684 version to 4.19.
5685
5686 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5687 version to 4.19.
5688
5689 [BZ #23793]
5690 * wcsmbs/c32rtomb.c: New file.
5691 * wcsmbs/mbrtoc32.c: Likewise.
5692 * wcsmbs/tst-c32-state.c: Likewise.
5693 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5694 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5695 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5696 (tests): Add tst-c32-state.
5697 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5698 $(gen-locales).
5699
5700 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5701
5702 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5703 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5704
5705 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5706
5707 [BZ #23794]
5708 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5709 pair and return 0 in that case, and use saved character to
5710 interpret following character.
5711 * wcsmbs/tst-c16-surrogate.c: New file.
5712 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5713 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5714 Depend on $(gen-locales)
5715
5716 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5717
5718 [BZ #23562]
5719 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5720 (struct siginfo_t): Use correct type for si_band.
5721
5722 2018-10-19 Florian Weimer <fweimer@redhat.com>
5723
5724 [BZ #23689]
5725 * resource/bits/types/struct_rusage.h (struct rusage): Update
5726 comment on struct. Remove extraneous field comment.
5727
5728 2018-10-18 David S. Miller <davem@davemloft.net>
5729
5730 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5731 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5732 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5733 sysdep_routines in subdir elf.
5734 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5735 version for __vdso_clock_gettime.
5736 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5737 Define.
5738 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5739 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5740
5741 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5742
5743 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5744
5745 * sysdeps/i386/init-arch.h: Removed.
5746 * sysdeps/i386/i586/init-arch.h: Likewise.
5747 * sysdeps/i386/i686/init-arch.h: Likewise.
5748 * sysdeps/i386/i686/hp-timing.h: Likewise.
5749 * sysdeps/x86_64/hp-timing.h: Likewise.
5750 * sysdeps/i386/isa.h: New file.
5751 * sysdeps/i386/i586/isa.h: Likewise.
5752 * sysdeps/i386/i686/isa.h: Likewise.
5753 * sysdeps/x86_64/isa.h: Likewise.
5754 * sysdeps/x86/hp-timing.h: New file.
5755 * sysdeps/x86/init-arch.h: Include <isa.h>.
5756
5757 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5758
5759 * math/libm-test-pow.inc (pow_test_data): Do not allow
5760 divide-by-zero exception for pow(+/- 0, -Inf).
5761
5762 2018-10-17 Zack Weinberg <zackw@panix.com>
5763
5764 * manual/job.texi (Job Control is Optional): Remove node, as
5765 job control has not been optional in quite some time.
5766 (Job Control): Mention briefly that systems older than
5767 POSIX.1-2001 might not support job control.
5768 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5769 defined on systems conforming to POSIX.1-2001.
5770
5771 2018-10-17 Arjun Shankar <arjun@redhat.com>
5772
5773 [BZ #22062]
5774 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5775 indentation.
5776 * (__gconv_read_conf): Mark function static.
5777 * (once): New static variable.
5778 * (__gconv_load_conf): New function.
5779 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5780 * iconv/gconv_db.c (once): Remove static variable.
5781 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5782 __gconv_read_conf.
5783 * (__gconv_find_transform): Likewise.
5784 * iconv/tst-iconv-mt.c: New test.
5785 * iconv/Makefile: Add tst-iconv_mt.
5786
5787 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5788
5789 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5790 bits/shm-pad.h.
5791 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5792 (shmatt_t): Define as __syscall_ulong_t.
5793 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5794 and [__SHM_PAD_AFTER_TIME].
5795 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5796 Define shm_segsz and associated padding based on
5797 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5798 Use __syscall_ulong_t instead of unsigned long int.
5799 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5800 unsigned long int.
5801 [__USE_MISC] (struct shm_info): Likewise.
5802 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5803 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5804 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5805 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5806 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5807 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5808 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5809 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5810 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5811 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5812 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5813
5814 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5815 bits/shmlba.h.
5816 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5817 (SHMLBA): Remove macro.
5818 (__getpagesize): Remove function declaration.
5819 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5820 <bits/shmlba.h>.
5821 (SHMLBA): Remove macro.
5822 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5823 <bits/shmlba.h>.
5824 (SHMLBA): Remove macro.
5825 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5826 <bits/shmlba.h>.
5827 (SHMLBA): Remove macro.
5828 (__getpagesize): Remove function declaration.
5829 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5830 <bits/shmlba.h>.
5831 (SHMLBA): Remove macro.
5832 (__getshmlba): Remove function declaration.
5833 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5834 (SHMLBA): Remove macro.
5835 (__getpagesize): Remove function declaration.
5836 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5837 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5838 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5839 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5840 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5841 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5842 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5843 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5844 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5845 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5846
5847 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5848
5849 [BZ #23275]
5850 * nptl/tst-mutex10.c: New File.
5851 * nptl/Makefile (tests): Add tst-mutex10.
5852 (tst-mutex10-ENV): New variable.
5853 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5854 Ensure that elision path is used if elision is available.
5855 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5856 Likewise.
5857 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5858 Likewise.
5859 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5860 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5861 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5862 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5863 Likewise.
5864 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5865 (__pthread_mutex_cond_lock_adjust): Likewise.
5866 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5867 Likewise.
5868 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5869 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5870 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5871 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5872 Add comments.
5873 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5874 Use atomic_load_relaxed and atomic_store_relaxed.
5875 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5876 Use atomic_store_relaxed.
5877
5878 2018-10-17 Andreas Schwab <schwab@suse.de>
5879
5880 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5881 * crypt/badsalttest.c (TIMEOUT): Likewise.
5882 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5883 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5884 * io/test-lfs.c (TIMEOUT): Likewise.
5885 * libio/tst-atime.c (TIMEOUT): Likewise.
5886 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5887 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5888 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5889 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5890 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5891 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5892 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5893 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5894 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5895 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5896 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5897 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5898 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5899 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5900 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5901 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5902 * nptl/tst-once2.c (TIMEOUT): Likewise.
5903 * nptl/tst-once3.c (TIMEOUT): Likewise.
5904 * nptl/tst-once4.c (TIMEOUT): Likewise.
5905 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5906 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5907 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5908 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5909 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5910 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5911 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5912 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5913 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5914 * posix/tst-chmod.c (TIMEOUT): Likewise.
5915 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5916 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5917 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5918 * posix/tst-regex2.c (TIMEOUT): Likewise.
5919 * posix/tst-waitid.c (TIMEOUT): Likewise.
5920 * rt/tst-aio.c (TIMEOUT): Likewise.
5921 * rt/tst-aio10.c (TIMEOUT): Likewise.
5922 * rt/tst-aio4.c (TIMEOUT): Likewise.
5923 * rt/tst-aio5.c (TIMEOUT): Likewise.
5924 * rt/tst-aio6.c (TIMEOUT): Likewise.
5925 * rt/tst-aio64.c (TIMEOUT): Likewise.
5926 * rt/tst-aio7.c (TIMEOUT): Likewise.
5927 * rt/tst-aio9.c (TIMEOUT): Likewise.
5928 * rt/tst-clock.c (TIMEOUT): Likewise.
5929 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5930 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5931 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5932 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5933 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5934 * rt/tst-timer4.c (TIMEOUT): Likewise.
5935 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5936 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5937 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5938 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5939 * time/tst-ftime.c (TIMEOUT): Likewise.
5940 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5941
5942 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5943
5944 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5945 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5946 for thunderX2.
5947
5948 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5949
5950 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5951 bits/sem-pad.h.
5952 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5953 instead of <bits/wordsize.h>.
5954 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5955 and [__SEM_PAD_AFTER_TIME].
5956 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5957 __syscall_ulong_t instead of unsigned long int.
5958 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5959 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5960 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5961 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5962 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5963 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5964 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5965 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5966 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5967 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5968 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5969
5970 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5971
5972 regex: simplify by using intprops.h
5973 [BZ#23744]
5974 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5975 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5976 intprops.h defines them.
5977
5978 regex: __builtin_expect → __glibc_unlikely
5979 [BZ#23744]
5980 This refactoring was prompted by a problem when the regex code is
5981 used as part of Gnulib and when the builder’s compiler does not grok
5982 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5983 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5984 Although this refactoring does not fix the problem directly,
5985 we might as well have Gawk use the now-preferred glibc style for when
5986 __builtin_expect is unavailable.
5987 * posix/regex_internal.h (BE): Remove.
5988 All uses replaced by __glibc_unlikely or __glibc_likely.
5989
5990 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5991
5992 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5993 bits/msq-pad.h.
5994 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5995 instead of <bits/wordsize.h>.
5996 (msgqnum_t): Define as __syscall_ulong_t.
5997 (msglen_t): Likewise.
5998 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5999 and [__MSQ_PAD_AFTER_TIME].
6000 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6001 __syscall_ulong_t instead of unsigned long int.
6002 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6003 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6004 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6005 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6006 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6007 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6008 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6009 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6010 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6011 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6012 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6013
6014 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6015
6016 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6017 (struct shmid_ds): Condition padding after time fields on
6018 [__WORDSIZE == 32].
6019 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6020 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6021 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6022
6023 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6024 (struct semid_ds): Condition padding after time fields on
6025 [__WORDSIZE == 32].
6026 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6027 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6028 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6029 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6030
6031 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6032 (struct msqid_ds): Condition padding after time fields on
6033 [__WORDSIZE == 32].
6034 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6035 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6036 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6037 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6038
6039 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6040
6041 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6042
6043 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6044
6045 * libio/tst-readline.c (TIMEOUT): Define.
6046
6047 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6048
6049 mktime fix for Gnulib + coreutils
6050 [BZ#23745]
6051 This fix affects only Gnulib. Problem discovered when
6052 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6053 * time/mktime.c:
6054 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6055 Do not define since it is not used. Defining an unused static
6056 function prompts a warning from GCC when Coreutils is configured
6057 with --enable-gcc-warnings.
6058
6059 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6060
6061 * benchtests/scripts/compare_bench.py (main): set float type on
6062 threshold argument.
6063
6064 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6065
6066 [BZ #23740]
6067 * localedata/locales/kl_GL (mon): Update, the relative case.
6068 (alt_mon): Add, fill with month names in the nominative case.
6069 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6070 (d_fmt): Set to "%b %d %Y".
6071
6072 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6073
6074 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6075 <bits/mman-linux.h>.
6076 (PROT_READ): Don't define here.
6077 (PROT_WRITE): Likewise.
6078 (PROT_EXEC): Likewise.
6079 (PROT_NONE): Likewise.
6080 (PROT_GROWSDOWN): Likewise.
6081 (PROT_GROWSUP): Likewise.
6082 (MAP_SHARED): Likewise.
6083 (MAP_PRIVATE): Likewise.
6084 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6085 [__USE_MISC] (MAP_FILE): Likewise.
6086 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6087 [__USE_MISC] (MAP_ANON): Likewise.
6088 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6089 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6090 (MCL_CURRENT): Likewise.
6091 (MCL_FUTURE): Likewise.
6092 (MCL_ONFAULT): Likewise.
6093 [__USE_MISC] (MADV_NORMAL): Likewise.
6094 [__USE_MISC] (MADV_RANDOM): Likewise.
6095 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6096 [__USE_MISC] (MADV_WILLNEED): Likewise.
6097 [__USE_MISC] (MADV_DONTNEED): Likewise.
6098 [__USE_MISC] (MADV_FREE): Likewise.
6099 [__USE_MISC] (MADV_REMOVE): Likewise.
6100 [__USE_MISC] (MADV_DONTFORK): Likewise.
6101 [__USE_MISC] (MADV_DOFORK): Likewise.
6102 [__USE_MISC] (MADV_HWPOISON): Likewise.
6103 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6104 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6105 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6106 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6107 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6108 (__MAP_ANONYMOUS): New macro.
6109 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6110 <bits/mman-linux.h> inclusion.
6111 (MAP_FIXED): Likewise.
6112 (MS_SYNC): Likewise.
6113 (MS_ASYNC): Likewise.
6114 (MS_INVALIDATE): Likewise.
6115 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6116 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6117 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6118 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6119 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6120 [__USE_MISC] (MADV_DODUMP): Likewise.
6121 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6122 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6123
6124 [BZ #23735]
6125 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6126 Define.
6127 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6128 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6129 Add test-nldbl-redirect.
6130 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6131 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6132 $(objpfx)libnldbl_nonshared.a.
6133
6134 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6135
6136 * support/support.h (support_objdir_elf_ldso): New variable.
6137 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6138 * support/Makefile (CFLAGS-support_paths.c): Add definition
6139 for OBJDIR_ELF_LDSO_PATH.
6140 * support/test-container.c (main): Search for the ld.so
6141 which is also used by the testsuite.
6142
6143 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6144
6145 [BZ #20209]
6146 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6147 should be "sap" rather than "sab".
6148 (day): Fix spelling of Sunday, should be "sapaat" rather than
6149 "sabaat".
6150
6151 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6152
6153 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6154
6155 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6156
6157 [BZ #19444]
6158 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6159 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6160 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6161
6162 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6163
6164 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6165
6166 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6167
6168 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6169 Add -mrtm.
6170 (CFLAGS-elision-unlock.c): Likewise.
6171 (CFLAGS-elision-timed.c): Likewise.
6172 (CFLAGS-elision-trylock.c): Likewise.
6173 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6174
6175 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6176
6177 [BZ #21037]
6178 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6179 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6180 new fd_to_filename interface.
6181 * libio/freopen64.c (freopen64): Likewise.
6182 * libio/tst-memstream.h: New file.
6183 * libio/tst-memstream4.c: Likewise.
6184 * libio/tst-wmemstream4.c: Likewise.
6185 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6186 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6187 and remove internal dynamic allocation.
6188
6189 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6190
6191 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6192 (MREMAP_MAYMOVE): Do not define here.
6193 [__USE_GNU] (MREMAP_FIXED): Likewise.
6194 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6195 (MREMAP_MAYMOVE): Define here instead.
6196 [__USE_GNU] (MREMAP_FIXED): Likewise.
6197 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6198 (MREMAP_MAYMOVE): Remove.
6199 [__USE_GNU] (MREMAP_FIXED): Likewise.
6200
6201 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6202
6203 * math/fromfp.h: Do not include <math_private.h>.
6204 * math/s_cacosh_template.c: Likewise.
6205 * math/s_casin_template.c: Likewise.
6206 * math/s_casinh_template.c: Likewise.
6207 * math/s_ccos_template.c: Likewise.
6208 * math/s_cproj_template.c: Likewise.
6209 * math/s_fdim_template.c: Likewise.
6210 * math/s_fmaxmag_template.c: Likewise.
6211 * math/s_fminmag_template.c: Likewise.
6212 * math/s_iseqsig_template.c: Likewise.
6213 * math/s_ldexp_template.c: Likewise.
6214 * math/s_nextdown_template.c: Likewise.
6215 * math/w_log1p_template.c: Likewise.
6216 * math/w_scalbln_template.c: Likewise.
6217 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6218 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6219 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6220 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6221 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6222 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6223 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6224 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6225 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6226 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6227 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6228 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6229 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6230 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6231 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6232 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6233 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6234 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6235 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6236 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6237 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6238 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6239 * sysdeps/ieee754/k_standardf.c: Likewise.
6240 * sysdeps/ieee754/k_standardl.c: Likewise.
6241 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6242 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6243 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6244 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6245 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6246 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6247 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6248 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6249 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6250 * sysdeps/ieee754/s_signgam.c: Likewise.
6251 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6252 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6253 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6254 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6255 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6256 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6257 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6258 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6259 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6260 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6261 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6262 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6263 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6264 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6265 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6266 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6267 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6268 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6269 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6270 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6271 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6272 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6273 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6274 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6275 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6276 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6277 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6278 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6279 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6280 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6281 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6282 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6283 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6284 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6285 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6286 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6287 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6288 <math_private.h>.
6289 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6290
6291 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6292
6293 [BZ #23716]
6294 * sysdeps/i386/dl-cet.c: Removed.
6295 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6296 prototype.
6297 (_dl_runtime_profile_shstk): Likewise.
6298 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6299 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6300
6301 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6302
6303 [BZ #23579]
6304 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6305 do_test_with_invalid_iov): New tests.
6306 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6307 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6308 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6309 errno is ENOSYS.
6310 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6311 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6312 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6313
6314 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6315
6316 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6317 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6318 (MATH_REDIRECT_BINARY_ARGS): New macro.
6319 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6320 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6321 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6322 header inclusion.
6323 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6324 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6325 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6326 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6327 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6328 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6329 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6331 Likewise.
6332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6333 Likewise.
6334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6336 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6337 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6338 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6339 Likewise.
6340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6341 Likewise.
6342 * sysdeps/generic/math_private_calls.h
6343 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6344 Do not declare and define as an inline function.
6345 * math/divtc3.c (__divtc3): Use copysign functions instead of
6346 __copysign variants.
6347 * math/multc3.c (__multc3): Likewise.
6348 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6349 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6350 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6351 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6352 Likewise.
6353 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6354 (__ieee754_yn): Likewise.
6355 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6356 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6357 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6358 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6359 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6360 (__sin): Likewise.
6361 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6362 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6363 Likewise.
6364 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6365 Likewise.
6366 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6367 Likewise.
6368 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6369 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6370 Likewise.
6371 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6372 (__ieee754_ynf): Likewise.
6373 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6374 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6375 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6376 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6377 Likewise.
6378 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6379 (__ieee754_ynl): Likewise.
6380 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6381 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6382 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6383 Likewise.
6384 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6385 (__ieee754_ynl): Likewise.
6386 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6387 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6388 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6389 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6390 Likewise.
6391 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6392 (__ieee754_ynl)
6393 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6394 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6395 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6396 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6397 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6398
6399 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6400 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6401 using MATH_REDIRECT.
6402 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6403 header inclusion.
6404 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6405 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6406 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6407 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6408 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6409 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6410 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6411 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6415 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6416 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6417 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6418 (round): Redirect to __round.
6419 (__roundl): Call round instead of __round.
6420 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6421 Remove macro.
6422 [_ARCH_PWR5X] (__roundf): Likewise.
6423 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6424 functions instead of __round variants.
6425 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6426 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6427 Likewise.
6428 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6429 Likewise.
6430 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6431 Likewise.
6432 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6433 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6434 __lroundl.
6435 (__ieee754_expl): Call roundl instead of __roundl.
6436
6437 2018-09-27 Andreas Schwab <schwab@suse.de>
6438
6439 [BZ #23717]
6440 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6441 (do_test): Make st1 static.
6442
6443 2018-09-26 Andreas Schwab <schwab@suse.de>
6444
6445 [BZ #23707]
6446 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6447 * elf/Makefile (tests): Add tst-unwind-ctor.
6448 (modules-names): Add tst-unwind-ctor-lib.
6449 ($(objpfx)tst-unwind-ctor): Depend on
6450 $(objpfx)tst-unwind-ctor-lib.so.
6451
6452 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6453
6454 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6455 file. Most contents moved from ....
6456 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6457 and include <bits/mman-map-flags-generic.h>.
6458 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6459 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6460 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6461 <bits/mman-map-flags-generic.h>.
6462 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6463 macros defined in <bits/mman-map-flags-generic.h>.
6464 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6465 <bits/mman-map-flags-generic.h>.
6466 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6467 defined in <bits/mman-map-flags-generic.h>.
6468
6469 2018-09-26 Andreas Schwab <schwab@suse.de>
6470
6471 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6472 output.
6473
6474 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6475 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6476 Fangrui Song <maskray@google.com>
6477
6478 [BZ #20480]
6479 * config.make.in (have-textrel_ifunc): New define.
6480 * configure.ac: Add check if linker supports textrel relocation with
6481 ifunc.
6482 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6483 tst-ifunc-textrel.
6484 (CFLAGS-tst-ifunc-textrel.c): New rule.
6485 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6486 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6487 * elf/tst-ifunc-textrel.c: New file.
6488
6489 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6490
6491 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6492 <bits/procfs-prregset.h>.
6493 (prgregset_t): Define using __prgregset_t.
6494 (prfpregset_t): Define using __prfpregset_t.
6495 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6496 (sysdep_headers): Add bits/procfs-prregset.h.
6497 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6498 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6499 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6500 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6501
6502 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6503 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6504 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6505 pr_uid and pr_gid.
6506 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6507 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6508 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6509 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6510 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6511 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6512 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6513 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6514 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6515 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6516 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6517 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6518 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6519 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6520 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6521 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6522 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6523 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6524 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6525 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6526 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6527 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6528 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6529 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6530
6531 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6532 AArch64 version. Include <bits/procfs.h>.
6533 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6534 (sysdep_headers): Add bits/procfs.h.
6535 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6536 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6537 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6538 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6539 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6540 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6541 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6542 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6543 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6544 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6545 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6546 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6547 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6548 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6549 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6550 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6551 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6552
6553 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6554
6555 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6556 Use libsupport.
6557
6558 2018-09-25 Arjun Shankar <arjun@redhat.com>
6559
6560 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6561 (__gconv_max_path_elem_len): Likewise.
6562 (__gconv_nmodules): Likewise.
6563 (__gconv_get_path): Likewise.
6564 (path_elem): Move to ...
6565 * iconv/gconv_conf.c: ... here.
6566 (__gconv_get_path): Mark function static.
6567 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6568 * iconv/gconv_open.c: ... here.
6569
6570 2018-09-24 Andreas Schwab <schwab@suse.de>
6571
6572 * scripts/haveversions.awk: New file.
6573 * Makerules ($(common-objpfx)Versions.def)
6574 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6575 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6576 Move rules ...
6577 * Makeconfig ($(common-objpfx)Versions.def)
6578 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6579 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6580 ... here.
6581 ($(common-objpfx)Versions.mk): New rule. Include it.
6582 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6583 Emit error if build-obsolete-nsl = yes.
6584 * manual/install.texi (Configuring and compiling): Describe
6585 --enable-obsolete-nsl as unavaiable after version 2.28.
6586 * INSTALL: Regenerate.
6587
6588 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6589
6590 * NEWS: Add note about new TLE support on powerpc64le.
6591 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6592 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6593 __ununsed1.
6594 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6595 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6596 * sysdeps/powerpc/powerpc32/sysdep.h,
6597 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6598 ABORT_TRANSACTION): Remove macros.
6599 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6600 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6601 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6603 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6604 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6605 usage.
6606 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6607
6608 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6609
6610 [BZ #10425]
6611 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6612 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6613 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6614 which is the same as in it_IT.
6615 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6616 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6617
6618 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6619
6620 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6621 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6622 using MATH_REDIRECT.
6623 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6624 header inclusion.
6625 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6626 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6627 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6628 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6629 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6630 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6631 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6635 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6636 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6637 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6638 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6639 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6640 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6641 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6642 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6643 (ceil): Redirect to __ceil.
6644 (floor): Redirect to __floor.
6645 (trunc): Redirect to __trunc.
6646 (__truncl): Call trunc instead of __trunc.
6647 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6648 Remove macro.
6649 [_ARCH_PWR5X] (__truncf): Likewise.
6650 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6651 trunc functions instead of __trunc variants.
6652 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6653 Likewise.
6654 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6655 Likewise.
6656 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6657 Likewise.
6658 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6659 Likewise.
6660
6661 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6662 [__i586__ || __pentium__].
6663 [__i486__]: Handle explicitly.
6664 (HAS_CPUID): Define to 1 if above macros are undefined.
6665 (HAS_I586): Likewise.
6666 (HAS_I686): Likewise.
6667
6668 2018-09-20 Florian Weimer <fweimer@redhat.com>
6669
6670 * misc/tst-gethostid.c: New file.
6671 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6672 (tst-gethostid): Link with -ldl.
6673
6674 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6675
6676 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6677 value from gethostbyname_r.
6678
6679 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6680
6681 * stdlib/tst-setcontext9.c (f1): Rename to...
6682 (f1a): ... this.
6683 (f1b): New function implementing lower half of f1 in alternate stack.
6684
6685 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6686
6687 Fix mktime localtime offset confusion
6688 [BZ #23603]
6689 * include/time.h (__mktime_internal): The localtime offset is now
6690 of type long int instead of time_t. This is the longstanding type
6691 in glibc, and it is more than enough to represent difference
6692 between localtime and gmtime even if it is 32 bits and time_t is
6693 64. Changing it now will let us avoid an unnecessary change when
6694 time_t is widened to 64 bits on 32-bit platforms.
6695 * time/mktime-internal.h (mktime_offset_t): Now long int.
6696
6697 Merge mktime, timegm from upstream Gnulib
6698 [BZ #23603][BZ #16346]
6699 This fixes some obscure problems with integer overflow.
6700 Although it looks scary, it is almost all a byte-for-byte copy
6701 from Gnulib, and the Gnulib code has been tested reasonably well.
6702 * include/intprops.h: New file, copied from Gnulib.
6703 * include/verify.h, time/mktime-internal.h:
6704 New tiny files, simplified from Gnulib.
6705 * time/mktime.c: Copy from Gnulib. This has the following changes:
6706 Do not include config.h if DEBUG_MKTIME is nonzero.
6707 Include stdbool.h, intprops.h, verify.h.
6708 Include string.h only if needed.
6709 Include stdlib.h on MS-Windows.
6710 Include mktime-internal.h.
6711 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6712 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6713 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6714 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6715 simplify later conditionals; default the others to zero. Use
6716 these conditionals to express only the code needed on the current
6717 platform. In uses of these conditionals, explicitly spell out how
6718 _LIBC affects things, so it’s easier to review from a glibc
6719 viewpoint.
6720 (WRAPV): Remove; no longer needed now that we have
6721 systematic overflow checking.
6722 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6723 compartmentalize tzset issues. Move system-dependent tzsettish
6724 code here from mktime.
6725 (verify): Remove; now done by verify.h. All uses changed.
6726 (long_int): Use a more-conservative definition, to avoid
6727 integer overflow.
6728 (SHR): Remove, replacing with ...
6729 (shr): New function, which means we needn’t worry about side
6730 effects in args, and conversion analysis is simpler.
6731 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6732 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6733 (time_t_avg, time_t_add_ok): Remove.
6734 (mktime_min, mktime_max): New constants.
6735 (leapyear, isdst_differ): Use bool for booleans.
6736 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6737 Use long_int, not time_t, for mktime differences.
6738 (long_int_avg): New function, replacing time_t_avg.
6739 INT_ADD_WRAPV replaces time_t_add_ok.
6740 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6741 All uses changed.
6742 (convert_time): New function.
6743 (ranged_convert): Use it.
6744 (__mktime_internal): Last arg now points to mktime_offset_t, not
6745 time_t. All uses changed. This is a no-op on glibc, where
6746 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6747 offset guess. Directly check for integer overflow instead of
6748 using a heuristic that works only 99.9...% of the time.
6749 Access *OFFSET only once, to avoid an unlikely race if the
6750 compiler delays a load and if this cascades into a signed integer
6751 overflow.
6752 (mktime): Move tzsettish code to my_tzset, and move
6753 localtime_offset to within mktime so that it doesn’t
6754 need a separate ifdef.
6755 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6756 instead of localtime.
6757 * time/timegm.c: Copy from Gnulib. This has the following changes:
6758 Include mktime-internal.h.
6759 [!_LIBC]: Include config.h and time.h. Do not include
6760 timegm.h or time_r.h. Make __mktime_internal a macro,
6761 and include mktime-internal.h to get its declaration.
6762 (timegm): Temporary is now mktime_offset_t, not time_t.
6763 This affects only Gnulib.
6764
6765 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6766
6767 [BZ #23637]
6768 * string/test-strstr.c (pr23637): New function.
6769 (test_main): Add tests with longer needles.
6770 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6771 * string/strstr.c (AVAILABLE): Likewise.
6772
6773 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6774
6775 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6776
6777 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6778
6779 * NEWS: Mention pow improvements.
6780 * math/Makefile (type-double-routines): Add e_pow_log_data.
6781 * sysdeps/generic/math_private.h (__exp1): Remove.
6782 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6783 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6784 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6785 contraction.
6786 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6787 (exp_inline): Remove.
6788 (__ieee754_exp): Only single double input is handled.
6789 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6790 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6791 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6792 (__pow_log_data): Define.
6793 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6794 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6795 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6796 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6797 contraction.
6798 (CFLAGS-e_pow-fma4.c): Likewise.
6799
6800 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6801
6802 Simplify tzfile fstat failure code
6803 [BZ #21716]
6804 * time/tzfile.c (__tzfile_read): Simplify slightly.
6805
6806 Fix tzfile low-memory assertion failure
6807 [BZ #21716]
6808 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6809 when registering time zone abbreviations.
6810
6811 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6812
6813 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6814 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6815 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6816 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6817 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6818 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6819 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6820 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6821 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6822
6823 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6824 __ceil.
6825 (__ceill): Call ceil instead of __ceil.
6826 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6827 __floor.
6828 (__floorl): Call floor instead of __floor.
6829
6830 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6831
6832 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6833 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6834 using MATH_REDIRECT.
6835 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6836 header inclusion.
6837 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6838 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6839 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6840 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6841 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6842 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6843 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6844 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6849 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6850 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6851 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6852 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6853 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6854 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6855 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6856 Remove macro.
6857 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6858 functions instead of __ceil variants.
6859 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6860 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6861 Likewise.
6862 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6863 Likewise.
6864 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6865 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6866 Likewise.
6867 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6868 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6869
6870 [BZ #21286]
6871 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6872 constant.
6873 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6874 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6875 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6876 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6877 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6878 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6879 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6880 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6881 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6882 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6883 (ILL_BADIADDR): Remove constant.
6884 (TRAP_BRANCH): Likewise.
6885 (TRAP_HWBKPT): Likewise.
6886
6887 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6888
6889 [BZ #23656]
6890 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6891 Remove [_MIPS_SIM = _ABIN32] conditional case.
6892 (struct elf_prpsinfo): Likewise.
6893
6894 [BZ #23649]
6895 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6896 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6897 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6898 Likewise.
6899 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6900 elf_prpsinfo): Likewise.
6901 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6902 elf_prpsinfo): Likewise.
6903 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6904 Likewise.
6905
6906 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6907 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6908 using MATH_REDIRECT.
6909 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6910 header inclusion.
6911 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6912 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6913 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6914 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6915 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6916 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6917 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6918 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6919 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6920 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6921 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6922 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6923 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6924 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6925 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6926 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6927 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6928 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6929 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6931 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6932 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6933 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6934 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6935 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6936 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6937 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6938 __rint variants.
6939 * math/e_scalbf.c (invalid_fn): Likewise.
6940 * math/e_scalbl.c (invalid_fn): Likewise.
6941 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6942 Likewise.
6943 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6944 Likewise.
6945 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6946 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6947 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6948 Likewise.
6949 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6950 Likewise.
6951 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6952 Likewise.
6953 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6954 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6955
6956 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6957 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6958 New macro.
6959 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6960 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6961 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6962 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6963 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6964 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6965 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6966 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6967 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6968 && !NO_MATH_REDIRECT] (floor): Likewise.
6969 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6970 header inclusion.
6971 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6972 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6973 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6974 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6975 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6976 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6977 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6978 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6983 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6984 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6985 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6986 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6987 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6988 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6989 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6990 Remove macro.
6991 [_ARCH_PWR5X] (__floorf): Likewise.
6992 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6993 inline function.
6994 [__SSE4_1__] (__floorf): Likewise.
6995 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6996 instead of __floor variants.
6997 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6998 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6999 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7000 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7001 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7002 * math/w_tgamma_compat.c (__tgamma): Likewise.
7003 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7004 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7005 * math/w_tgammal_compat.c (__tgammal): Likewise.
7006 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7007 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7008 Likewise.
7009 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7010 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7011 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7012 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7013 Likewise.
7014 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7015 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7016 Likewise.
7017 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7018 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7019 Likewise.
7020 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7021 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7022 Likewise.
7023 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7024 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7025 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7026 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7027 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7028 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7029
7030 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7031
7032 * elf/Makefile (modules-names-tests): New variable.
7033
7034 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7035
7036 * NEWS: Mention log2 improvements.
7037 * math/Makefile (type-double-routines): Add e_log2_data.
7038 * sysdeps/i386/fpu/e_log2_data.c: New file.
7039 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7040 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7041 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7042 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7043 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7044 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7045
7046 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7047
7048 * NEWS: Mention log improvement.
7049 * math/Makefile (type-double-routines): Add e_log_data.
7050 * sysdeps/i386/fpu/e_log_data.c: New file.
7051 * sysdeps/ia64/fpu/e_log_data.c: New file.
7052 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7053 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7054 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7055 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7056 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7057 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7058
7059 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7060 Xuepeng Guo <xuepeng.guo@intel.com>
7061
7062 [BZ #23606]
7063 * sysdeps/i386/start.S: Include <sysdep.h>
7064 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7065 enabled. Add cfi_undefined (eip).
7066
7067 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7068
7069 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7070 (MOVQ): Likewise.
7071 (EXTRACT_WORDS64): Likewise.
7072 (INSERT_WORDS64): Likewise.
7073 (GET_FLOAT_WORD): Likewise.
7074 (SET_FLOAT_WORD): Likewise.
7075
7076 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7077 argument.
7078 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7079 build, but not for second build if --full-gcc. Use
7080 --enable-languages=all for second build if --full-gcc.
7081 (get_parser): Add --full-gcc option.
7082 (main): Update call to Context.
7083
7084 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7085
7086 [BZ #10797]
7087 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7088 Single Quotation Mark).
7089 (thousands_sep): Likewise.
7090 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7091 * localedata/locales/it_IT (thousands_sep): Use ".".
7092 (grouping): Use "3;3".
7093
7094 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7095
7096 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7097 x86_64 and i686 configs using --enable-obsolete-rpc
7098 --enable-obsolete-nsl.
7099
7100 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7101
7102 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7103
7104 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7105
7106 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7107 Increment size of new_argv by one.
7108
7109 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7110
7111 [BZ #17426]
7112 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7113 * localedata/locales/ar_IN (d_fmt): Likewise.
7114 * localedata/locales/bhb_IN (d_fmt): Likewise.
7115 * localedata/locales/bho_IN (d_fmt): Likewise.
7116 * localedata/locales/bn_BD (d_fmt): Likewise.
7117 * localedata/locales/bn_IN (d_fmt): Likewise.
7118 * localedata/locales/doi_IN (d_fmt): Likewise.
7119 * localedata/locales/gu_IN (d_fmt): Likewise.
7120 * localedata/locales/hi_IN (d_fmt): Likewise.
7121 * localedata/locales/hne_IN (d_fmt): Likewise.
7122 * localedata/locales/kn_IN (d_fmt): Likewise.
7123 * localedata/locales/mag_IN (d_fmt): Likewise.
7124 * localedata/locales/mai_IN (d_fmt): Likewise.
7125 * localedata/locales/mjw_IN (d_fmt): Likewise.
7126 * localedata/locales/ml_IN (d_fmt): Likewise.
7127 * localedata/locales/mni_IN (d_fmt): Likewise.
7128 * localedata/locales/mr_IN (d_fmt): Likewise.
7129 * localedata/locales/pa_IN (d_fmt): Likewise.
7130 * localedata/locales/raj_IN (d_fmt): Likewise.
7131 * localedata/locales/sat_IN (d_fmt): Likewise.
7132 * localedata/locales/sd_IN (d_fmt): Likewise.
7133 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7134 * localedata/locales/ta_IN (d_fmt): Likewise.
7135 * localedata/locales/ta_LK (d_fmt): Likewise.
7136 * localedata/locales/tcy_IN (d_fmt): Likewise.
7137 * localedata/locales/ur_IN (d_fmt): Likewise.
7138
7139 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7140 * localedata/locales/ks_IN (d_fmt): Likewise.
7141 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7142
7143 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7144 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7145 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7146 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7147
7148 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7149
7150 * NEWS: Mention exp and exp2 improvements.
7151 * math/Makefile (libm-support): Remove t_exp.
7152 (type-double-routines): Add math_err and e_exp_data.
7153 * sysdeps/aarch64/libm-test-ulps: Update.
7154 * sysdeps/arm/libm-test-ulps: Update.
7155 * sysdeps/i386/fpu/e_exp_data.c: New file.
7156 * sysdeps/i386/fpu/math_err.c: New file.
7157 * sysdeps/i386/fpu/t_exp.c: Remove.
7158 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7159 * sysdeps/ia64/fpu/math_err.c: New file.
7160 * sysdeps/ia64/fpu/t_exp.c: Remove.
7161 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7162 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7163 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7164 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7165 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7166 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7167 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7168 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7169 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7170 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7171 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7172 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7173 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7174 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7175 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7176 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7177
7178 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7179
7180 * sysdeps/alpha/fpu/math_private.h: Remove.
7181
7182 * sysdeps/generic/math_private.h
7183 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7184 Move this inline function ....
7185 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7186 * include/math.h [!_ISOMAC]: To here....
7187
7188 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7189
7190 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7191 code ....
7192 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7193 * include/fenv.h [!_ISOMAC]: ... to here.
7194 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7195 (feraiseexcept): Likewise.
7196 * math/fromfp.h: Do not include <fenv_private.h>.
7197 * math/s_cexp_template.c: Likewise.
7198 * math/s_csin_template.c: Likewise.
7199 * math/s_csinh_template.c: Likewise.
7200 * math/s_ctan_template.c: Likewise.
7201 * math/s_ctanh_template.c: Likewise.
7202 * math/s_iseqsig_template.c: Likewise.
7203 * math/w_acos_compat.c: Likewise.
7204 * math/w_acosf_compat.c: Likewise.
7205 * math/w_acosl_compat.c: Likewise.
7206 * math/w_asin_compat.c: Likewise.
7207 * math/w_asinf_compat.c: Likewise.
7208 * math/w_asinl_compat.c: Likewise.
7209 * math/w_j0_compat.c: Likewise.
7210 * math/w_j0f_compat.c: Likewise.
7211 * math/w_j0l_compat.c: Likewise.
7212 * math/w_j1_compat.c: Likewise.
7213 * math/w_j1f_compat.c: Likewise.
7214 * math/w_j1l_compat.c: Likewise.
7215 * math/w_jn_compat.c: Likewise.
7216 * math/w_jnf_compat.c: Likewise.
7217 * math/w_log10_compat.c: Likewise.
7218 * math/w_log10f_compat.c: Likewise.
7219 * math/w_log10l_compat.c: Likewise.
7220 * math/w_log2_compat.c: Likewise.
7221 * math/w_log2f_compat.c: Likewise.
7222 * math/w_log2l_compat.c: Likewise.
7223 * math/w_log_compat.c: Likewise.
7224 * math/w_logf_compat.c: Likewise.
7225 * math/w_logl_compat.c: Likewise.
7226 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7227 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7228 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7229 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7230 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7231 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7232 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7233 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7234 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7235 * sysdeps/ieee754/k_standardl.c: Likewise.
7236 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7237 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7238 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7239 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7240 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7241 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7242 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7243 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7244 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7245 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7246 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7247 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7248 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7249 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7250 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7251 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7252 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7253 * math/w_ilogb_template.c: Include <fenv.h> instead of
7254 <fenv_private.h>.
7255 * math/w_llogb_template.c: Likewise.
7256 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7257 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7258
7259 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7260
7261 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7262 * math/fromfp.h: Include <fenv_private.h>.
7263 * math/math-narrow.h: Likewise.
7264 * math/s_cexp_template.c: Likewise.
7265 * math/s_csin_template.c: Likewise.
7266 * math/s_csinh_template.c: Likewise.
7267 * math/s_ctan_template.c: Likewise.
7268 * math/s_ctanh_template.c: Likewise.
7269 * math/s_iseqsig_template.c: Likewise.
7270 * math/w_acos_compat.c: Likewise.
7271 * math/w_acosf_compat.c: Likewise.
7272 * math/w_acosl_compat.c: Likewise.
7273 * math/w_asin_compat.c: Likewise.
7274 * math/w_asinf_compat.c: Likewise.
7275 * math/w_asinl_compat.c: Likewise.
7276 * math/w_ilogb_template.c: Likewise.
7277 * math/w_j0_compat.c: Likewise.
7278 * math/w_j0f_compat.c: Likewise.
7279 * math/w_j0l_compat.c: Likewise.
7280 * math/w_j1_compat.c: Likewise.
7281 * math/w_j1f_compat.c: Likewise.
7282 * math/w_j1l_compat.c: Likewise.
7283 * math/w_jn_compat.c: Likewise.
7284 * math/w_jnf_compat.c: Likewise.
7285 * math/w_llogb_template.c: Likewise.
7286 * math/w_log10_compat.c: Likewise.
7287 * math/w_log10f_compat.c: Likewise.
7288 * math/w_log10l_compat.c: Likewise.
7289 * math/w_log2_compat.c: Likewise.
7290 * math/w_log2f_compat.c: Likewise.
7291 * math/w_log2l_compat.c: Likewise.
7292 * math/w_log_compat.c: Likewise.
7293 * math/w_logf_compat.c: Likewise.
7294 * math/w_logl_compat.c: Likewise.
7295 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7296 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7297 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7298 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7299 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7300 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7301 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7302 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7303 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7304 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7305 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7306 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7307 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7308 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7309 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7310 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7311 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7312 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7313 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7314 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7315 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7316 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7317 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7318 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7319 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7320 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7321 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7322 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7323 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7324 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7325 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7326 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7327 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7328 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7329 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7330 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7331 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7332 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7333 * sysdeps/ieee754/k_standardl.c: Likewise.
7334 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7335 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7336 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7337 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7338 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7339 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7340 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7341 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7342 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7343 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7344 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7345 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7346 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7347 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7348 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7349 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7350 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7351 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7352 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7353 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7354 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7355 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7356 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7357 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7358 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7359 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7360 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7361 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7362 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7363 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7364 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7365 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7366 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7367 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7368 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7369 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7370 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7371 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7372 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7373 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7374 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7375 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7376 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7377 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7378 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7379 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7380 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7381 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7382 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7383 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7384 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7385 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7386 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7387 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7388 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7389 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7390 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7391 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7392 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7393 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7394 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7395 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7396 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7397 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7398 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7399 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7400 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7401 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7402 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7403 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7404 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7405
7406 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7407
7408 [BZ #20271]
7409 * include/stdio.h (__libc_fatal): Mention newline in comment.
7410 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7411 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7412 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7413 * nss/nsswitch.c (__nss_next2): Likewise.
7414 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7415 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7416 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7417 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7418 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7419 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7420 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7421 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7422 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7423 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7424 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7425 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7426 (__netlink_assert_response): Likewise.
7427
7428 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7429
7430 * conform/glibcconform.py: New file.
7431 * conform/list-header-symbols.py: Likewise.
7432 * conform/list-header-symbols.pl: Remove.
7433 * conform/Makefile (tests-special): Only add linknamespace tests
7434 if [PYTHON].
7435 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7436
7437 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7438
7439 [BZ #23597]
7440 * support/Makefile (libsupport-routines): Add
7441 support_copy_file_range and xcopy_file_range.
7442 * support/support.h: Include <sys/types.h>.
7443 (support_copy_file_range): New prototype.
7444 * support/support_copy_file_range.c: New file. Copied and
7445 modified from io/copy_file_range-compat.c.
7446 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7447 instead of copy_file_range.
7448 * support/xcopy_file_range.c: New file.
7449 * support/xunistd.h (xcopy_file_range): New prototype.
7450
7451 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7452
7453 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7454 xpthread_create and xpthread_join.
7455
7456 2018-08-30 Florian Weimer <fweimer@redhat.com>
7457
7458 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7459
7460 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7461
7462 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7463 if malloc fails.
7464
7465 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7466
7467 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7468 and minus_oflow as non-finite.
7469
7470 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7471
7472 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7473 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7474 moved to fenv_private.h except for ...
7475 (TOINT_INTRINSICS): Kept in math_private.h.
7476 (roundtoint): Likewise.
7477 (converttoint): Likewise.
7478 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7479 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7480 * sysdeps/arm/math_private.h: Remove.
7481 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7482 ....
7483 * sysdeps/generic/math_private.h: ... this file. Include
7484 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7485 Include <fenv_private.h>. Remove functions and macros moved to
7486 fenv_private.h.
7487 * sysdeps/i386/fpu/math_private.h: Remove.
7488 * sysdeps/mips/math_private.h: Move to ....
7489 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7490 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7491 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7492 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7493 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7494 * sysdeps/powerpc/fpu/math_private.h: Do not include
7495 <fenv_private.h>.
7496 * sysdeps/riscv/rvf/math_private.h: Move to ....
7497 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7498 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7499 <fenv_private.h>.
7500 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7501 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7502 * sysdeps/sparc/fpu/math_private.h: Remove.
7503 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7504 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7505 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7506 <fenv_private.h>.
7507 * sysdeps/x86_64/fpu/math_private.h: Do not include
7508 <sysdeps/i386/fpu/fenv_private.h>.
7509
7510 2018-08-28 Florian Weimer <fweimer@redhat.com>
7511
7512 [BZ #23578]
7513 * posix/tst-regcomp-truncated.c: New file.
7514 * posix/Makefile (tests): Add it.
7515 (tst-regcomp-truncated.out): Depend on generated locales.
7516
7517 2018-08-28 Florian Weimer <fweimer@redhat.com>
7518
7519 * support/test-container.c (main): Treat unshare failure with
7520 EPERM as an unsupported test.
7521
7522 2018-08-28 Florian Weimer <fweimer@redhat.com>
7523
7524 [BZ #23520]
7525 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7526 * nscd/netgroupcache.c
7527 (addgetnetgrentX): Add tofreep parameter. Do not free
7528 heap-allocated buffer.
7529 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7530 (addgetnetgrentX_ignore): New function.
7531 (addgetnetgrent): Call it.
7532 (readdgetnetgrent): Likewise.
7533
7534 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7535
7536 * string/memmem.c: Use memcmp for first match.
7537
7538 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7539
7540 [BZ #17426]
7541 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7542
7543 2018-08-27 DJ Delorie <dj@redhat.com>
7544
7545 * support/Makefile (others): Don't list programs explicitly as a
7546 dependency of "others".
7547
7548 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7549
7550 * sysdeps/generic/math-tests-trap-force.h: New file.
7551 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7552 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7553 * sysdeps/powerpc/math-tests.h: Remove file.
7554 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7555
7556 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7557 Torvald Riegel <triegel@redhat.com>
7558
7559 [BZ #23538]
7560 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7561 Update r to include the set wake-request flag if waiters are
7562 remaining after spinning.
7563
7564 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7565
7566 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7567
7568 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7569
7570 [BZ #23578]
7571 regex: fix uninitialized memory access
7572 I introduced this bug into gnulib in commit
7573 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7574 eventually it was merged into glibc. The bug was found by
7575 project-repo <bugs@feusi.co> and reported here:
7576 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7577 Diagnosis and draft fix reported by Assaf Gordon here:
7578 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7579 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7580 * posix/regex_internal.c (build_wcs_upper_buffer):
7581 Fix bug when mbrtowc returns 0.
7582
7583 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7584
7585 * po/be.po: Update translation.
7586
7587 2018-08-24 DJ Delorie <dj@delorie.com>
7588
7589 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7590 $(libunwind).
7591
7592 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7593
7594 [BZ #23400]
7595 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7596 create temporary files in source tree.
7597
7598 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7599
7600 * sysdeps/generic/math-tests-trap.h: New file.
7601 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7602 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7603 * sysdeps/aarch64/math-tests.h: Remove file.
7604 * sysdeps/arm/math-tests.h: Likewise.
7605 * sysdeps/riscv/math-tests.h: Likewise.
7606 * sysdeps/aarch64/math-tests-trap.h: New file.
7607 * sysdeps/arm/math-tests-trap.h: Likewise.
7608 * sysdeps/riscv/math-tests-trap.h: Likewise.
7609
7610 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7611
7612 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7613 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7614 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7615 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7616 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7617 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7618 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7619 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7620 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7621 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7622 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7623 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7624 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7625 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7626 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7627 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7628 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7629 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7630
7631 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7632
7633 * sysdeps/generic/math-tests-exceptions.h: New file.
7634 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7635 (EXCEPTION_TESTS_float): Do not define here.
7636 (EXCEPTION_TESTS_double): Likewise.
7637 (EXCEPTION_TESTS_long_double): Likewise.
7638 (EXCEPTION_TESTS_float128): Likewise.
7639 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7640 Likewise.
7641 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7642 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7643 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7644 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7645 * sysdeps/mips/math-tests.h: Likewise.
7646 * sysdeps/nios2/math-tests.h: Likewise.
7647 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7648 (EXCEPTION_TESTS_float): Do not define here.
7649 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7650 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7651 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7652
7653 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7654
7655 * NEWS: Move optimized sinf entry to 2.29.
7656
7657 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7658
7659 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7660
7661 2018-08-22 DJ Delorie <dj@redhat.com>
7662
7663 * Makefile (testroot.pristine): New rules to initialize the
7664 test-in-container "testroot".
7665 * Makerules (all-testsuite): Add tests-container.
7666 * Rules (tests-expected): Add tests-container.
7667 (binaries-all-tests): Likewise.
7668 (tests-container): New, run these tests in the testroot container.
7669 * support/Makefile (others): Add *-container, support_paths.c,
7670 xmkdirp, and links-dso-program.
7671 * support/links-dso-program-c.c: New.
7672 * support/links-dso-program.cc: New.
7673 * support/test-container.c: New.
7674 * support/shell-container.c: New.
7675 * support/echo-container.c: New.
7676 * support/true-container.c: New.
7677 * support/xmkdirp.c: New.
7678 * support/xsymlink.c: New.
7679 * support/support_paths.c: New.
7680 * support/support.h: Add support paths prototypes.
7681 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7682
7683 * nss/tst-nss-test3.c: Convert to test-in-container.
7684 * nss/tst-nss-test3.root/: New.
7685
7686 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7687
7688 regex: port Gnulib code to z/OS POSIX environment
7689 Problem reported by Arnold Robbins in:
7690 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7691 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7692 Undef.
7693
7694 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7695
7696 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7697 (ROUNDING_TESTS_double): Remove.
7698 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7699 (ROUNDING_TESTS_double): Remove.
7700 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7701 (ROUNDING_TESTS_double): Remove.
7702 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7703 (ROUNDING_TESTS_float): Remove.
7704 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7705 (ROUNDING_TESTS_float): Remove.
7706 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7707 (ROUNDING_TESTS_float): Remove.
7708 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7709 !TEST_MATHVEC here.
7710 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7711 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7712
7713 * sysdeps/generic/math-tests-rounding.h: New file.
7714 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7715 (ROUNDING_TESTS_float): Do not define here.
7716 (ROUNDING_TESTS_double): Likewise.
7717 (ROUNDING_TESTS_long_double): Likewise.
7718 (ROUNDING_TESTS_float128): Likewise.
7719 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7720 (ROUNDING_TESTS_double): Undefine before defining.
7721 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7722 (ROUNDING_TESTS_double): Undefine before defining.
7723 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7724 (ROUNDING_TESTS_double): Undefine before defining.
7725 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7726 (ROUNDING_TESTS_float): Undefine before defining.
7727 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7728 (ROUNDING_TESTS_float): Undefine before defining.
7729 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7730 (ROUNDING_TESTS_float): Undefine before defining.
7731 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7732 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7733 not define here.
7734 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7735 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7736 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7737 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7738 (ROUNDING_TESTS_float): Do not define here.
7739 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7740 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7741 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7742 (ROUNDING_TESTS_float): Likewise.
7743 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7744 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7745 * sysdeps/mips/math-tests.h [__mips_soft_float]
7746 (ROUNDING_TESTS_float): Likewise.
7747 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7748 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7749 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7750 (ROUNDING_TESTS_double): Likewise.
7751 (ROUNDING_TESTS_long_double): Likewise.
7752
7753 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7754
7755 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7756 (PF_XDP): New macro.
7757 (AF_XDP): New macro.
7758 (SOL_XDP): New macro.
7759
7760 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7761
7762 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7763 (TCP_INQ): Likewise.
7764 (TCP_CM_INQ): Likewise.
7765 (TCP_REPAIR_ON): Likewise.
7766 (TCP_REPAIR_OFF): Likewise.
7767 (TCP_REPAIR_OFF_NO_WP): Likewise.
7768 (struct tcp_zerocopy_receive): New type.
7769
7770 2018-08-21 Florian Weimer <fweimer@redhat.com>
7771
7772 * support/support.h (support_descriptor_supports_holes): Declare.
7773 * support/Makefile (libsupport-routines): Add
7774 support_descriptor_supports_holes.
7775 * support/support_descriptor_supports_holes.c: New file.
7776 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7777 and stop testing if holes are not supported.
7778 * io/test-lfs.c (do_prepare): Likewise.
7779 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7780 Likewise.
7781 * timezone/tst-tzset.c (create_tz_file): Likewise.
7782 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7783 variable.
7784 (do_prepare): Set it.
7785 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7786
7787 2018-08-21 Florian Weimer <fweimer@redhat.com>
7788
7789 [BZ #17248]
7790 * Makeconfig (+cflags): Do not sort (and deduplicate).
7791
7792 2018-08-21 Florian Weimer <fweimer@redhat.com>
7793
7794 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7795 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7796
7797 2018-08-20 Florian Weimer <fweimer@redhat.com>
7798
7799 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7800 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7801
7802 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7803
7804 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7805 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7806 and ssi_arch members.
7807
7808 * elf/elf.c (NT_VMCOREDD): New macro.
7809 (AT_MINSIGSTKSZ): Likewise.
7810
7811 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7812
7813 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7814 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7815 s_cosf-ppc64 and s_cosf-power8.
7816 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7817 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7818 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7819 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7826 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7827 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7828
7829 2018-08-17 Florian Weimer <fweimer@redhat.com>
7830
7831 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7832
7833 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7834
7835 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7836
7837 2018-08-16 Florian Weimer <fweimer@redhat.com>
7838
7839 * configure.ac: Add --with-nonshared-cflags option.
7840 * config.make.in (extra-nonshared-cflags): Set variable.
7841 * Makeconfig (CFLAGS-.oS): Use it.
7842 * manual/install.texi (Configuring and compiling): Document
7843 --with-nonshared-cflags.
7844 * configure: Regenerate.
7845 * INSTALL: Likewise.
7846
7847 2018-08-16 Florian Weimer <fweimer@redhat.com>
7848
7849 * Makeconfig (ASFLAGS): Always append required assembler flags.
7850
7851 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7852
7853 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7854 (malloc_consolidate): Likewise.
7855
7856 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7857
7858 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7859
7860 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7861
7862 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7863 every strlen call.
7864
7865 * benchtests/bench-strlen.c: Print performance numbers in json.
7866
7867 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7868
7869 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7870 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7871 only for little endian.
7872 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7873 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7874 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7875 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7876 Add check for little endian.
7877 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7878 (__strcmp_power9): Add check for little endian.
7879 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7880 Add check for little endian.
7881 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7882 (__strncmp_power9): Add check for little endian.
7883 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7884 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7885 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7886 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7887 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7888
7889 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7890
7891 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7892 [!STRLEN](STRLEN): Set to __strlen.
7893 * sysdeps/aarch64/multiarch/strlen.c: New file.
7894 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7895 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7896 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7897 (__libc_ifunc_impl_list): Add strlen.
7898 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7899 strlen_generic and strlen_asimd.
7900
7901 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7902
7903 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7904 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7905 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7906
7907 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7908
7909 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7910
7911 2018-08-14 Florian Weimer <fweimer@redhat.com>
7912
7913 [BZ #23519]
7914 * include/stdio.h (__vfxprintf): Declare.
7915 * stdio-common/fxprintf.c (__vfxprintf): New function.
7916 (__fxprintf): Call it.
7917 * misc/err.c (convert_and_print): Remove function.
7918 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7919 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7920 * misc/Makefile (tests): Add tst-warn-wide.
7921 * misc/tst-warn-wide.c: New file.
7922
7923 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7924 Szabolcs Nagy <szabolcs.nagy@arm.com>
7925
7926 * NEWS: Mention sinf, cosf, sincosf.
7927 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7928 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7929 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7930 constants rather than including generic sincosf.h.
7931 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7932 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7933 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7934 (reduced_cos): Remove.
7935 (sinf_poly): New function.
7936 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7937
7938 2018-08-14 Florian Weimer <fweimer@redhat.com>
7939
7940 [BZ #23521]
7941 [BZ #23522]
7942 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7943 processing, bail out if no room, and close the stream before
7944 returning ERANGE.
7945 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7946 (tst-nss-files-alias-leak): Link with libdl.
7947 (tst-nss-files-alias-leak.out): Depend on nss_files.
7948
7949 * nss/tst-nss-files-alias-leak.c: New file.
7950
7951 2018-08-14 Florian Weimer <fweimer@redhat.com>
7952
7953 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7954 server_user, stat_user.
7955
7956 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7957
7958 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7959 version to 4.18.
7960 (io_pgetevents): New syscall.
7961 (rseq): Likewise.
7962
7963 * manual/install.texi (Configuring and compiling): Do not list
7964 tools used for testing pretty printers here.
7965 (Tools for Compilation): List Python, PExpect and GDB here.
7966 Update descriptions of uses of Perl and Python.
7967 * INSTALL: Regenerate.
7968
7969 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7970 version to 4.18.
7971
7972 2018-08-13 Florian Weimer <fweimer@redhat.com>
7973
7974 * misc/error.c (error): Add missing va_end call.
7975 (error_at_line): Likewise.
7976
7977 2018-08-13 Florian Weimer <fweimer@redhat.com>
7978
7979 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7980
7981 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7982
7983 * benchtests/scripts/benchout.schema.json (properties): Add
7984 new properties.
7985
7986 * benchtests/bench-skeleton.c (main): Add duration and
7987 iterations attributes.
7988
7989 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7990
7991 regex: Gnulib unibyte RRI uses bytes not chars
7992 Adjust the non-glibc code to agree with what Gawk needs for
7993 rational range interpretation (RRI) for regular expression ranges.
7994 In unibyte locales, Gawk wants ranges to use the underlying byte
7995 rather than the character code point. This change does not affect
7996 glibc proper.
7997 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7998 In unibyte locales, use the byte value rather than
7999 running it through btowc.
8000
8001 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8002
8003 * sysdeps/generic/math-tests-snan.h: New file.
8004 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8005 (SNAN_TESTS_float): Do not define here.
8006 (SNAN_TESTS_double): Likewise.
8007 (SNAN_TESTS_long_double): Likewise.
8008 (SNAN_TESTS_float128): Likewise.
8009 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8010 * sysdeps/i386/fpu/math-tests.h: Remove file.
8011 * sysdeps/ia64/math-tests-snan.h: New file.
8012 * sysdeps/ia64/math-tests.h: Remove file.
8013 * sysdeps/x86/math-tests.h: Likewise.
8014 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8015
8016 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8017 Szabolcs Nagy <szabolcs.nagy@arm.com>
8018
8019 * math/Makefile: Add s_sincosf_data.c.
8020 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8021 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8022 (sincosf_poly): Likewise.
8023 (reduce_small): Likewise.
8024 (reduce_large): Likewise.
8025 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8026 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8027 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8028 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8029
8030 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8031 Szabolcs Nagy <szabolcs.nagy@arm.com>
8032
8033 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8034 (converttoint): Use lround.
8035 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8036 document the semantics when TOINT_INTRINSICS is set.
8037 (converttoint): Likewise.
8038 (TOINT_RINT): Remove.
8039 (TOINT_SHIFT): Remove.
8040 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8041 path.
8042
8043 2018-08-10 Florian Weimer <fweimer@redhat.com>
8044
8045 [BZ #23497]
8046 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8047 function.
8048 (__old_getdents64): Use getdents64. Convert entries without
8049 moving them.
8050 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8051 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8052 tst-readdir64-compat.
8053
8054 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8055
8056 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8057 Fix unwind.
8058
8059 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8060
8061 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8062 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8063 code to s390x-mcount.h and #include it.
8064 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8065 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8066 (__fentry__): Add.
8067
8068 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8069
8070 * stdlib/Versions: Remove __fentry__.
8071 * sysdeps/i386/Versions: Add __fentry__.
8072 * sysdeps/x86_64/Versions: Add __fentry__.
8073
8074 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8075
8076 * sysdeps/s390/Makefile: Register the new tests.
8077 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8078 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8079 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8080 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8081 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8082 * sysdeps/s390/tst-dl-runtime.c: New file.
8083
8084 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8085
8086 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8087 Do not clobber R0.
8088
8089 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8090
8091 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8092 Do not clobber R0.
8093
8094 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8095
8096 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8097 Do not clobber R0.
8098
8099 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8100
8101 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8102 Do not clobber R0.
8103
8104 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8105
8106 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8107 Use symbolic offsets for stack variables.
8108
8109 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8110
8111 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8112 Use symbolic offsets for stack variables.
8113
8114 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8115
8116 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8117 Use symbolic offsets for stack variables.
8118
8119 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8120
8121 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8122 Use symbolic offsets for stack variables.
8123
8124 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8125
8126 * math/gen-libm-test.py: New file.
8127 * math/gen-libm-test.pl: Remove.
8128 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8129 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8130 gen-libm-test.pl.
8131 ($(libm-test-c-noauto-obj)): Likewise.
8132 ($(libm-test-c-auto-obj)): Likewise.
8133 ($(libm-test-c-narrow-obj)): Likewise.
8134 (regen-ulps): Likewise.
8135 * math/README.libm-test: Update references to gen-libm-test.pl.
8136 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8137 referencing gen-libm-test.pl.
8138 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8139 * math/libm-test-support.c: Likewise.
8140 * math/libm-test-support.h: Likewise.
8141 * sysdeps/generic/libm-test-ulps: Likewise.
8142
8143 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8144
8145 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8146 Fix value.
8147
8148 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8149
8150 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8151 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8152
8153 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8154
8155 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8156 symbols.
8157 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8158 __pthread_setspecific): Add hidden proto.
8159 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8160 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8161
8162 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8163
8164 * benchtests/bench-string.h (buf1_size, buf2_size): New
8165 variables.
8166 (init_sizes): New function.
8167 (test_init): Use it.
8168 (alloc_buf, exit_error): New functions.
8169 (alloc_bufs): Use ALLOC_BUF.
8170 (realloc_bufs): Remove.
8171 * benchtests/bench-memcmp.c (do_test): Adjust.
8172 * benchtests/bench-memset-large.c (do_test): Likewise.
8173 * benchtests/bench-memset-walk.c (do_test): Likewise.
8174 * benchtests/bench-memset.c (do_test): Likewise.
8175 * benchtests/bench-strncmp.c (do_test): Likewise.
8176
8177 2018-08-06 Andreas Schwab <schwab@suse.de>
8178
8179 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8180 of CONST_THREAD_AREA.
8181
8182 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8183
8184 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8185 (STATE_SAVE_MASK): Likewise.
8186 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8187 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8188 (STATE_SAVE_MASK): Likewise.
8189 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8190 instead of <cpu-features.h>.
8191
8192 2018-08-03 DJ Delorie <dj@redhat.com>
8193
8194 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8195 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8196
8197 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8198
8199 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8200
8201 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8202 after TEST_* calls.
8203 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8204 * math/libm-test-logb.inc (logb_test_data): Likewise.
8205
8206 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8207
8208 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8209 * string/strstr.c (AVAILABLE): Likewise.
8210
8211 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8212
8213 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8214 <init-arch.h>.
8215 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8216 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8217 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8218
8219 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8220
8221 * po/be.po: Update translation.
8222
8223 * po/be.po: Update translation.
8224
8225 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8226
8227 * sysdeps/x86/cpu-features-offsets.sym
8228 (rtld_global_ro_offsetof): Removed.
8229 (CPU_FEATURES_SIZE): Likewise.
8230 (CPUID_OFFSET): Likewise.
8231 (CPUID_SIZE): Likewise.
8232 (CPUID_EAX_OFFSET): Likewise.
8233 (CPUID_EBX_OFFSET): Likewise.
8234 (CPUID_ECX_OFFSET): Likewise.
8235 (CPUID_EDX_OFFSET): Likewise.
8236 (FAMILY_OFFSET): Likewise.
8237 (MODEL_OFFSET): Likewise.
8238 (FEATURE_OFFSET): Likewise.
8239 (FEATURE_SIZ): Likewise.
8240 (COMMON_CPUID_INDEX_1): Likewise.
8241 (COMMON_CPUID_INDEX_7): Likewise.
8242 (FEATURE_INDEX_1): Likewise.
8243 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8244
8245 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8246
8247 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8248 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8249 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8250 (install-locales): Depend on install-locale-archive.
8251 (install-locale-archive): Define.
8252 (install-locale-files): Define.
8253 (build-one-locale): Define macro.
8254 * manual/install.texi (Running make install): Document.
8255 * manual/INSTALL: Regenerate.
8256
8257 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8258
8259 * benchtests/scripts/compare_strings.py: Import traceback.
8260 (parse_file): Pretty-print error.
8261
8262 * NEWS: Mention the change.
8263 * elf/dl-tunables.list: Rename tune namespace to cpu.
8264 * sysdeps/powerpc/dl-tunables.list: Likewise.
8265 * sysdeps/x86/dl-tunables.list: Likewise.
8266 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8267 cpu.name.
8268 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8269 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8270 * manual/README.tunables: Likewise.
8271 * manual/tunables.texi: Likewise.
8272 * sysdeps/powerpc/cpu-features.c: Likewise.
8273 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8274 (init_cpu_features): Likewise.
8275 * sysdeps/x86/cpu-features.c: Likewise.
8276 * sysdeps/x86/cpu-features.h: Likewise.
8277 * sysdeps/x86/cpu-tunables.c: Likewise.
8278 * sysdeps/x86_64/Makefile: Likewise.
8279 * sysdeps/x86/dl-cet.c: Likewise.
8280
8281 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8282
8283 [BZ #23479]
8284 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8285 [__mips_hard_float].
8286 (FE_UNDERFLOW): Likewise.
8287 (FE_OVERFLOW): Likewise.
8288 (FE_DIVBYZERO): Likewise.
8289 (FE_INVALID): Likewise.
8290 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8291 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8292 (FE_UPWARD): Likewise.
8293 (FE_DOWNWARD): Likewise.
8294 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8295 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8296 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8297 [__mips_hard_float].
8298 (FP_ROUNDMODE): Likewise.
8299 (FP_RND_NEAREST): Likewise.
8300 (FP_RND_ZERO): Likewise.
8301 (FP_RND_PINF): Likewise.
8302 (FP_RND_MINF): Likewise.
8303 (FP_EX_INVALID): Likewise.
8304 (FP_EX_OVERFLOW): Likewise.
8305 (FP_EX_UNDERFLOW): Likewise.
8306 (FP_EX_DIVZERO): Likewise.
8307 (FP_EX_INEXACT): Likewise.
8308 (FP_INIT_ROUNDMODE): Likewise.
8309 * sysdeps/mips/nofpu/fesetenv.c: New file.
8310 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8311
8312 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8313
8314 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8315 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8316 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8317 conditional on [FE_UPWARD].
8318
8319 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8320
8321 regex: fix memory leak in Gnulib
8322 Problem and fix reported by Assaf Gordon in:
8323 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8324 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8325 range_ends members too, as they are defined in 'struct
8326 re_charset_t' even if not _LIBC. This affects only Gnulib.
8327
8328 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8329
8330 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8331 ...
8332 (get_common_indices): This.
8333 (init_cpu_features): Updated.
8334
8335 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8336
8337 * sysdeps/generic/math-tests-snan-payload.h: New file.
8338 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8339 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8340 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8341 * sysdeps/generic/math-tests.h: Include
8342 <math-tests-snan-payload.h>.
8343 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8344 * sysdeps/hppa/math-tests.h: Remove file.
8345 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8346 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8347 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8348 Likewise.
8349
8350 * sysdeps/generic/math-tests-snan-cast.h: New file.
8351 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8352 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8353 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8354 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8355
8356 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8357
8358 * version.h (RELEASE): Set to "development".
8359 (VERSION): Set to "2.28.9000".
8360 * NEWS (2.29): New section.
8361
8362 * version.h (RELEASE): Set to "stable".
8363 (VERSION): Set to "2.28".
8364 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8365 * NEWS: Add the list of bugs fixed in 2.28.
8366
8367 * po/ca.po: Update to latest version.
8368 * po/cs.po: Likewise
8369 * po/da.po: Likewise
8370 * po/el.po: Likewise
8371 * po/eo.po: Likewise
8372 * po/es.po: Likewise
8373 * po/fi.po: Likewise
8374 * po/fr.po: Likewise
8375 * po/gl.po: Likewise
8376 * po/hu.po: Likewise
8377 * po/ia.po: Likewise
8378 * po/id.po: Likewise
8379 * po/it.po: Likewise
8380 * po/ja.po: Likewise
8381 * po/ko.po: Likewise
8382 * po/lt.po: Likewise
8383 * po/nb.po: Likewise
8384 * po/nl.po: Likewise
8385 * po/pt_BR.po: Likewise
8386 * po/ru.po: Likewise
8387 * po/rw.po: Likewise
8388 * po/sk.po: Likewise
8389 * po/sl.po: Likewise
8390 * po/tr.po: Likewise
8391 * po/zh_CN.po: Likewise
8392 * po/zh_TW.po: Likewise
8393
8394 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8395
8396 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8397 initialization...
8398 (init): ... before initializing libpthread.
8399
8400 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8401 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8402 (__mach_setup_tls): ... new function.
8403 (mach_setup_tls): New alias.
8404 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8405 __mach_setup_thread.
8406 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8407 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8408 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8409 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8410
8411 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8412
8413 * manual/install.texi: Update versions.
8414 * INSTALL: Regenerate.
8415
8416 * manual/contrib.texi (Contributors): Update contributions.
8417
8418 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8419
8420 * po/be.po: Update translations.
8421
8422 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8423
8424 * sysdeps/sh/libm-test-ulps: Update.
8425
8426 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8427
8428 * po/bg.po: Update translations.
8429 * po/de.po: Likewise.
8430 * po/hr.po: Likewise.
8431 * po/pt_BR.po: Likewise.
8432 * po/sv.po: Likewise.
8433 * po/vi.po: Likewise.
8434
8435 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8436
8437 [BZ #23467]
8438 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8439 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8440 (CFLAGS-tst-cet-property-1.o): New.
8441 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8442 ($(objpfx)tst-cet-property-2): Likewise.
8443 ($(objpfx)tst-cet-property-2.out): Likewise.
8444 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8445 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8446 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8447 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8448 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8449
8450 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8451
8452 [BZ #23458]
8453 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8454
8455 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8456
8457 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8458 __sbrk): Do not set attribute_hidden.
8459 * sysdeps/mach/hurd/not-errno.h: New file.
8460 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8461 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8462
8463 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8464
8465 * po/uk.po: Update translations.
8466 * po/cs.po: Likewise.
8467 * po/pl.po: Likewise.
8468
8469 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8470
8471 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8472 parse beyond the note end.
8473
8474 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8475
8476 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8477 kernel does not support OFD locks.
8478 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8479
8480 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8481
8482 * sysdeps/mach/hurd/Versions (libc): Make __access and
8483 __access_noerrno external so they can override the ld symbols.
8484 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8485 __writev, __open64, __access_noerrno extern so they can be overrided.
8486 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8487 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8488
8489 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8490
8491 * po/libc.pot: Regenerate.
8492
8493 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8494
8495 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8496
8497 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8498
8499 [BZ #23459]
8500 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8501 function.
8502 (init_cpu_features): Call get_extended_indices for both Intel
8503 and AMD CPUs.
8504 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8505 Remove "for AMD" comment.
8506
8507 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8508
8509 [BZ # 23456]
8510 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8511 COMMON_CPUID_INDEX_80000001.
8512
8513 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8514
8515 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8516 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8517
8518 2018-07-26 Florian Weimer <fweimer@redhat.com>
8519
8520 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8521 aliases for symbols not in the implementation namespace.
8522
8523 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8524
8525 [BZ #23393]
8526 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8527 lowercase in LATIN script.
8528 * localedata/Makefile (test-input): Add en_US.UTF-8.
8529 * localedata/en_US.UTF-8.in: New file.
8530 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8531 and restore old tests.
8532 * posix/tst-regexloc.c (do_test): Add back range expression test.
8533
8534 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8535
8536 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8537
8538 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8539
8540 * nptl/threads.h: Move to ...
8541 * sysdeps/nptl/threads.h: ... here.
8542 * sysdeps/hurd/stdc-predef.h: New file.
8543
8544 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8545
8546 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8547 tst-cet-setcontext-1 if CET is enabled.
8548 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8549 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8550
8551 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8552
8553 * include/threads.h: Move to ...
8554 * sysdeps/nptl/threads.h: ... here.
8555 * sysdeps/htl/threads.h: New file.
8556 * conform/Makefile (linknamespace-libs-ISO11): Use
8557 static-thread-library instead of linking libpthread.
8558 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8559
8560 2018-07-25 Florian Weimer <fweimer@redhat.com>
8561
8562 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8563 nanoseconds into seconds.
8564 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8565 (do_test): Likewise.
8566 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8567 (do_test): Likewise. Avoid nanosecond overflow and spurious
8568 timeouts due to system load.
8569 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8570 (child_wait): Increment it.
8571 (do_test): Wait as long as necessary until all expected threads
8572 have arrived.
8573
8574 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8575 H.J. Lu <hongjiu.lu@intel.com>
8576
8577 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8578 __ssp.
8579 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8580 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8581 (__push___start_context): New.
8582 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8583 <asm/prctl.h>.
8584 (__getcontext): Record the current shadow stack base. Save the
8585 caller's shadow stack pointer and base.
8586 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8587 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8588 (__push___start_context): New prototype.
8589 (__makecontext): Call __push___start_context to allocate a new
8590 shadow stack, push __start_context onto the new stack as well
8591 as the new shadow stack.
8592 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8593 <asm/prctl.h>.
8594 (__setcontext): Restore the target shadow stack.
8595 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8596 <asm/prctl.h>.
8597 (__swapcontext): Record the current shadow stack base. Save
8598 the caller's shadow stack pointer and base. Restore the target
8599 shadow stack.
8600 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8601 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8602 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8603
8604 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8607 tst-setcontext8 and tst-setcontext9.
8608 * stdlib/tst-setcontext6.c: New file.
8609 * stdlib/tst-setcontext7.c: Likewise.
8610 * stdlib/tst-setcontext8.c: Likewise.
8611 * stdlib/tst-setcontext9.c: Likewise.
8612
8613 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8614
8615 * stdlib/Makefile ((tests): Add tst-setcontext5.
8616 * stdlib/tst-setcontext5.c: New file.
8617
8618 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8619
8620 * stdlib/Makefile (tests): Add tst-setcontext4.
8621 * stdlib/tst-setcontext4.c: New file.
8622
8623 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8624
8625 * stdlib/Makefile (tests): Add tst-swapcontext1.
8626 * stdlib/tst-swapcontext1.c: New test.
8627
8628 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8629
8630 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8631 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8632 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8633 and tst-cet-legacy-4c.
8634 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8635 and tst-cet-legacy-mod-4.
8636 (CFLAGS-tst-cet-legacy-2.c): New.
8637 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8638 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8639 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8640 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8641 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8642 ($(objpfx)tst-cet-legacy-1): Likewise.
8643 ($(objpfx)tst-cet-legacy-2): Likewise.
8644 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8645 ($(objpfx)tst-cet-legacy-2a): Likewise.
8646 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8647 ($(objpfx)tst-cet-legacy-4): Likewise.
8648 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8649 ($(objpfx)tst-cet-legacy-4a): Likewise.
8650 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8651 (tst-cet-legacy-4a-ENV): Likewise.
8652 ($(objpfx)tst-cet-legacy-4b): Likewise.
8653 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8654 (tst-cet-legacy-4b-ENV): Likewise.
8655 ($(objpfx)tst-cet-legacy-4c): Likewise.
8656 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8657 (tst-cet-legacy-4c-ENV): Likewise.
8658 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8659 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8660 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8661 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8662 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8663 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8664 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8665 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8666 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8667 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8668 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8669
8670 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8671
8672 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8673 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8674 with ssp_base.
8675 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8676 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8677 with ssp_base.
8678
8679 2018-07-25 Andreas Schwab <schwab@suse.de>
8680
8681 [BZ #23442]
8682 * locale/weightwc.h (findidx): Handle the case where usrc is a
8683 prefix of cp but one character too short.
8684
8685 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8686
8687 * NEWS: Add ISO C threads addition.
8688
8689 2018-07-24 Florian Weimer <fweimer@redhat.com>
8690
8691 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8692 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8693 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8694 4.13.
8695
8696 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8697
8698 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8699 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8700 <sys/prctl.h> and <asm/prctl.h>.
8701 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8702 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8703 and <asm/prctl.h>.
8704 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8705 ARCH_CET_LEGACY_BITMAP.
8706 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8707 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8708 * sysdeps/x86/libc-start.c: Include <startup.h>.
8709
8710 2018-07-24 Florian Weimer <fweimer@redhat.com>
8711
8712 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8713 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8714
8715 2018-07-24 Rical Jasan <rj@2c3t.io>
8716 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8717 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8718
8719 [BZ #14092]
8720 * manual/debug.texi: Update adjacent chapter name.
8721 * manual/probes.texi: Likewise.
8722 * manual/threads.texi (ISO C Threads): New section.
8723 (POSIX Threads): Convert to a section.
8724
8725 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8726 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8727
8728 [BZ# 14092]
8729 * nptl/Makefile (tests): Add new test files.
8730 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8731 * nptl/tst-cnd-basic.c: Likewise.
8732 * nptl/tst-cnd-broadcast.c: Likewise.
8733 * nptl/tst-cnd-timedwait.c: Likewise.
8734 * nptl/tst-mtx-basic.c: Likewise.
8735 * nptl/tst-mtx-recursive.c: Likewise.
8736 * nptl/tst-mtx-timedlock.c: Likewise.
8737 * nptl/tst-mtx-trylock.c: Likewise.
8738 * nptl/tst-thrd-basic.c: Likewise.
8739 * nptl/tst-thrd-detach.c: Likewise.
8740 * nptl/tst-thrd-sleep.c: Likewise.
8741 * nptl/tst-tss-basic.c: Likewise.
8742
8743 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8744
8745 [BZ #14092]
8746 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8747 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8748 symbols.
8749 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8750 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8751 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8752 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8753 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8754 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8755 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8756 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8757 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8758 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8759 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8760 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8762 Likewise.
8763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8764 Likewise.
8765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8766 Likewise.
8767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8768 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8769 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8770 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8771 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8772 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8773 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8774 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8775 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8776 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8777 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8778 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8779 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8780 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8781 Likewise.
8782 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8783 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8784 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8785 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8786 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8787 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8788 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8789 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8790 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8791 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8794 ikewise.
8795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8797 Likewise.
8798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8799 Likewise.
8800 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8801 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8802 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8803 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8804 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8808
8809 [BZ #14092]
8810 * conform/data/threads.h-data (thread_local): New macro.
8811 (TSS_DTOR_ITERATIONS): Likewise.
8812 (tss_t): New type.
8813 (tss_dtor_t): Likewise.
8814 (tss_create): New function.
8815 (tss_get): Likewise.
8816 (tss_set): Likewise.
8817 (tss_delete): Likewise.
8818 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8819 tss_get, and tss_set objects.
8820 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8821 * nptl/tss_create.c: New file.
8822 * nptl/tss_delete.c: Likewise.
8823 * nptl/tss_get.c: Likewise.
8824 * nptl/tss_set.c: Likewise.
8825 * sysdeps/nptl/threads.h (thread_local): New define.
8826 (TSS_DTOR_ITERATIONS): Likewise.
8827 (tss_t): New typedef.
8828 (tss_dtor_t): Likewise.
8829 (tss_create): New prototype.
8830 (tss_get): Likewise.
8831 (tss_set): Likewise.
8832 (tss_delete): Likewise.
8833
8834 [BZ #14092]
8835 * conform/data/threads.h-data (cnd_t): New type.
8836 (cnd_init): New function.
8837 (cnd_signal): Likewise.
8838 (cnd_broadcast): Likewise.
8839 (cnd_wait): Likewise.
8840 (cnd_timedwait): Likewise.
8841 (cnd_destroy): Likewise.
8842 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8843 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8844 object.
8845 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8846 * nptl/cnd_broadcast.c: New file.
8847 * nptl/cnd_destroy.c: Likewise.
8848 * nptl/cnd_init.c: Likewise.
8849 * nptl/cnd_signal.c: Likewise.
8850 * nptl/cnd_timedwait.c: Likewise.
8851 * nptl/cnd_wait.c: Likewise.
8852 * sysdeps/nptl/threads.h (cnd_t): New type.
8853 (cnd_init): New prototype.
8854 (cnd_signa): Likewise.
8855 (cnd_broadcast): Likewise.
8856 (cnd_wait): Likewise.
8857 (cnd_timedwait): Likewise.
8858 (cnd_destroy): Likewise.
8859
8860 [BZ #14092]
8861 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8862 (once_flag): New type.
8863 (call_once): New function.
8864 * nptl/Makefile (libpthread-routines): Add call_once object.
8865 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8866 * nptl/call_once.c: New file.
8867 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8868 (once_flag): New type.
8869 (call_once): New prototype.
8870
8871 [BZ #14092]
8872 * conform/data/threads.h-data (mtx_plain): New constant.
8873 (mtx_recursive): Likewise.
8874 (mtx_timed): Likewise.
8875 (mtx_t): New type.
8876 (mtx_init): New function.
8877 (mtx_lock): Likewise.
8878 (mtx_timedlock): Likewise.
8879 (mtx_trylock): Likewise.
8880 (mtx_unlock): Likewise.
8881 (mtx_destroy): Likewise.
8882 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8883 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8884 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8885 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8886 * nptl/mtx_destroy.c: New file.
8887 * nptl/mtx_init.c: Likewise.
8888 * nptl/mtx_lock.c: Likewise.
8889 * nptl/mtx_timedlock.c: Likewise.
8890 * nptl/mtx_trylock.c: Likewise.
8891 * nptl/mtx_unlock.c: Likewise.
8892 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8893 (mtx_recursive): Likewise.
8894 (mtx_timed): Likewise.
8895 (mtx_t): New type.
8896 (mtx_init): New prototype.
8897 (mtx_lock): Likewise.
8898 (mtx_timedlock): Likewise.
8899 (mtx_trylock): Likewise.
8900 (mtx_unlock): Likewise.
8901 (mtx_destroy): Likewise.
8902
8903 [BZ #14092]
8904 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8905 (linknamespace-libs-ISO11): Add libpthread.a.
8906 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8907 functions.
8908 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8909 * nptl/Makefile (headers): Add threads.h.
8910 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8911 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8912 thrd_yield.
8913 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8914 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8915 thrd_join, thrd_sleep, and thrd_yield symbols.
8916 * nptl/descr.h (struct pthread): Add c11 field.
8917 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8918 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8919 routine with expected function prototype.
8920 (__pthread_create_2_1): Add C11 threads check based on attribute
8921 value.
8922 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8923 * nptl/thrd_create.c: New file.
8924 * nptl/thrd_current.c: Likewise.
8925 * nptl/thrd_detach.c: Likewise.
8926 * nptl/thrd_equal.c: Likewise.
8927 * nptl/thrd_exit.c: Likewise.
8928 * nptl/thrd_join.c: Likewise.
8929 * nptl/thrd_priv.h: Likewise.
8930 * nptl/thrd_sleep.c: Likewise.
8931 * nptl/thrd_yield.c: Likewise.
8932 * include/threads.h: Likewise.
8933
8934 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8935
8936 * bits/indirect-return.h: New file.
8937 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8938 * sysdeps/x86/bits/indirect-return.h: Likewise.
8939 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8940 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8941 (swapcontext): Add __INDIRECT_RETURN.
8942 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8943 (prepare_test_buffer): Use it.
8944
8945 2018-07-24 Andreas Schwab <schwab@suse.de>
8946
8947 [BZ #23448]
8948 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8949 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8950
8951 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8952
8953 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8954 Redefine if shadow stack is enabled.
8955 (SYSCALL_ERROR_LABEL): Likewise.
8956 (__vfork): Pop shadow stack and jump back to to caller directly
8957 when shadow stack is in use.
8958 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8959 Redefine if shadow stack is enabled.
8960 (SYSCALL_ERROR_LABEL): Likewise.
8961 (__vfork): Pop shadow stack and jump back to to caller directly
8962 when shadow stack is in use.
8963
8964 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8965
8966 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8967 enabled.
8968 (foo): Likewise.
8969 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8970 (foo): Likewise.
8971
8972 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8973
8974 * scripts/build-many-glibcs.py (Context.checkout): Default
8975 binutils version to 2.31 branch.
8976
8977 2018-07-20 Zong Li <zong@andestech.com>
8978
8979 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8980 URL of gcc's tarball.
8981
8982 2018-07-20 Florian Weimer <fweimer@redhat.com>
8983
8984 [BZ #23396]
8985 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8986 not compare an extra byte after the end of the weights.
8987
8988 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8989
8990 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8991 to 1.
8992 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8993 hidden prototypes.
8994 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8995 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8996 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8997 list of libraries whose stack executability is expected.
8998 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8999 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9000 variable.
9001 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9002 libc.so libpthread.so.
9003
9004 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9005
9006 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9007 SOCK_NONBLOCK.
9008 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9009 and SOCK_NONBLOCK.
9010 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9011 implement __pipe2.
9012 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9013
9014 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9015
9016 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9017 library to improve command line parsing.
9018 (__main__): make schema file as optional parameter (--schema),
9019 defaulting to benchtests/scripts/benchout.schema.json.
9020 (main): move out of the parsing stuff to __main_  and leave it
9021 only as caller of main comparison functions.
9022
9023 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9024
9025 * NEWS: Add a note for Intel CET status.
9026 * manual/install.texi: Likewise.
9027 * INSTALL: Regenerated.
9028
9029 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9030
9031 [BZ #23140]
9032 * localedata/locales/oc_FR (mon): Rename to...
9033 (alt_mon): This, then update October (typo fix).
9034 (mon): New content (genitive case, month names preceded by
9035 "de" or "d’").
9036
9037 [BZ #23422]
9038 * localedata/locales/oc_FR (abday): Update all items.
9039 (day): Update Wednesday and Saturday (typo fixes).
9040 (abmon): Update all items, except May.
9041 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9042 (LC_IDENTIFICATION): Bump the revision number and date.
9043 Keep the "category" entries in alphabetic order.
9044 (LC_ADDRESS): Remove no longer needed comment.
9045 (LC_COLLATE): Use “copy "ca_ES"”.
9046 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9047 "name_mrs".
9048
9049 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9050
9051 * grp/tst_fgetgrent.c: Include <unistd.h>.
9052 (main): Use mkstemp instead of tmpnam.
9053 * io/test-utime.c (main): Likewise.
9054 * posix/annexc.c (macrofile): Change to modifiable array.
9055 (main): Remove macrofile here.
9056 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9057 macrofile here.
9058 (check_header): Do not remove macrofile here.
9059 * posix/bug-getopt1.c: Include <stdlib.h>.
9060 (do_test): Use mkstemp instead of tmpnam.
9061 * posix/bug-getopt2.c: Include <stdlib.h>.
9062 (do_test): Use mkstemp instead of tmpnam.
9063 * posix/bug-getopt3.c: Include <stdlib.h>.
9064 (do_test): Use mkstemp instead of tmpnam.
9065 * posix/bug-getopt4.c: Include <stdlib.h>.
9066 (do_test): Use mkstemp instead of tmpnam.
9067 * posix/bug-getopt5.c: Include <stdlib.h>.
9068 (do_test): Use mkstemp instead of tmpnam.
9069 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9070 (main): Use mkstemp instead of tmpnam.
9071 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9072 (main): Use mkstemp instead of tmpnam.
9073 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9074 (main): use mkstemp instead of tmpnam.
9075 * stdlib/isomac.c (macrofile): Change to modifiable array.
9076 (main): Remove macrofile here.
9077 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9078 macrofile here.
9079 (check_header): Do not remove macrofile here.
9080
9081 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9082
9083 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9084 glibc.tune.x86_shstk.
9085
9086 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9087
9088 * NEWS: Mention --enable-cet.
9089 * manual/install.texi: Document --enable-cet.
9090 * INSTALL: Regenerated.
9091
9092 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9093
9094 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9095 Add _CET_NOTRACK before indirect jump to jump table.
9096
9097 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9098
9099 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9100 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9101 to jump table.
9102
9103 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9104
9105 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9106 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9107 to jump table.
9108
9109 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9110
9111 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9112 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9113 to jump table.
9114
9115 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9116
9117 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9118 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9119 to jump table.
9120
9121 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9122
9123 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9124 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9125 to jump table.
9126 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9127
9128 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9129
9130 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9131 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9132 to jump table.
9133
9134 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9135
9136 * sysdeps/i386/i686/multiarch/memset-sse2.S
9137 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9138 to jump table.
9139
9140 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9141
9142 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9143 indirect jump to jump table.
9144
9145 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9146
9147 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9148 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9149 to jump table.
9150 (MEMCPY): Likewise.
9151
9152 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9153
9154 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9155 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9156 to jump table.
9157 (MEMCPY): Likewise.
9158
9159 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9162 _CET_NOTRACK before indirect jump to jump table.
9163
9164 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9165
9166 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9167 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9168 to jump table.
9169
9170 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9171
9172 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9173 indirect jump to jump table.
9174
9175 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9176
9177 [BZ #22241]
9178 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9179 (LOCALES): Likewise.
9180 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9181 * localedata/locales/sah_RU: New file.
9182 * localedata/sah_RU.UTF-8.in: New file.
9183
9184 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9185
9186 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9187 "sysdep.h".
9188 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9189 _CET_ENDBR to indirect jump targets and adjust jump destination
9190 for _CET_ENDBR.
9191 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9192 "sysdep.h".
9193 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9194 _CET_ENDBR to indirect jump targets and adjust jump destination
9195 for _CET_ENDBR.
9196 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9197 "sysdep.h".
9198 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9199 _CET_ENDBR to indirect jump targets and adjust jump destination
9200 for _CET_ENDBR.
9201
9202 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9203
9204 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9205 _CET_ENDBR.
9206
9207 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9208
9209 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9210 _CET_ENDBR.
9211 (_dl_tlsdesc_undefweak): Likewise.
9212 (_dl_tlsdesc_dynamic): Likewise.
9213 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9214 (_dl_tlsdesc_resolve_rel): Likewise.
9215 (_dl_tlsdesc_resolve_rela): Likewise.
9216 (_dl_tlsdesc_resolve_hold): Likewise.
9217 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9218 (_dl_tlsdesc_undefweak): Likewise.
9219 (_dl_tlsdesc_dynamic): Likewise.
9220 (_dl_tlsdesc_resolve_rela): Likewise.
9221 (_dl_tlsdesc_resolve_hold): Likewise.
9222
9223 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9224
9225 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9226 (_fini): Likewise.
9227 * sysdeps/x86_64/crti.S (_init): Likewise.
9228 (_fini): Likewise.
9229
9230 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9231
9232 [BZ #23140]
9233 * localedata/locales/os_RU (mon): Rename to...
9234 (alt_mon): This.
9235 (mon): Import from CLDR (genitive case).
9236
9237 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9238
9239 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9240 cet-tunables.h> when CET is enabled.
9241
9242 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9243
9244 [BZ #21598]
9245 * configure.ac: Add --enable-cet.
9246 * configure: Regenerated.
9247 * elf/Makefille (all-built-dso): Add a comment.
9248 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9249 Include <dl-prop.h>.
9250 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9251 segment.
9252 * elf/dl-open.c: Include <dl-prop.h>.
9253 (dl_open_worker): Call _dl_open_check.
9254 * elf/rtld.c: Include <dl-prop.h>.
9255 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9256 _rtld_main_check.
9257 * sysdeps/generic/dl-prop.h: New file.
9258 * sysdeps/i386/dl-cet.c: Likewise.
9259 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9260 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9261 * sysdeps/x86/cet-tunables.h: Likewise.
9262 * sysdeps/x86/check-cet.awk: Likewise.
9263 * sysdeps/x86/configure: Likewise.
9264 * sysdeps/x86/configure.ac: Likewise.
9265 * sysdeps/x86/dl-cet.c: Likewise.
9266 * sysdeps/x86/dl-procruntime.c: Likewise.
9267 * sysdeps/x86/dl-prop.h: Likewise.
9268 * sysdeps/x86/libc-start.h: Likewise.
9269 * sysdeps/x86/link_map.h: Likewise.
9270 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9271 _CET_ENDBR.
9272 (_dl_runtime_profile): Likewise.
9273 (_dl_runtime_resolve_shstk): New.
9274 (_dl_runtime_profile_shstk): Likewise.
9275 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9276 if CET is enabled.
9277 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9278 (CFLAGS-.os): Likewise.
9279 (CFLAGS-.op): Likewise.
9280 (CFLAGS-.oS): Likewise.
9281 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9282 is enabled.
9283 (tests-special): Add $(objpfx)check-cet.out.
9284 (cet-built-dso): New.
9285 (+$(cet-built-dso:=.note)): Likewise.
9286 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9287 ($(objpfx)check-cet.out): New.
9288 (generated): Add check-cet.out.
9289 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9290 <cet-tunables.h>.
9291 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9292 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9293 (init_cpu_features): Call get_cet_status to check CET status
9294 and update dl_x86_feature_1 with CET status. Call
9295 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9296 (set_x86_shstk). Disable and lock CET in libc.a.
9297 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9298 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9299 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9300 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9301 (_CET_ENDBR): Define if not defined.
9302 (ENTRY): Add _CET_ENDBR.
9303 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9304 x86_shstk.
9305 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9306 _CET_ENDBR.
9307 (_dl_runtime_profile): Likewise.
9308
9309 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9310
9311 [BZ #21895]
9312 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9313 restore r2 on longjmp.
9314 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9315 test list.
9316 Added rules to build test tst-setjmp-bug21895-static.
9317 Added module setjmp-bug21895 and rules to build a shared object from it.
9318 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9319 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9320
9321 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9322
9323 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9324 * benchtests/bench-strstr.c: Likewise.
9325 * string/memmem.c (FASTSEARCH): Define.
9326 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9327 Add support for FASTSEARCH.
9328 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9329 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9330 (FASTSEARCH): Define.
9331 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9332 * string/test-strstr.c: Likewise.
9333
9334 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9335
9336 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9337 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9338
9339 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9340 H.J. Lu <hongjiu.lu@intel.com>
9341
9342 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9343 (__longjmp): Restore shadow stack pointer if shadow stack is
9344 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9345 isn't defined for __longjmp_cancel.
9346 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9347 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9348 and SHADOW_STACK_POINTER_OFFSET is defined.
9349 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9350 (setjmp): Save shadow stack pointer if shadow stack is enabled
9351 and SHADOW_STACK_POINTER_OFFSET is defined.
9352 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9353 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9354 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9355 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9356 <jmp_buf-ssp.h>.
9357 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9358 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9359 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9360 Remove jmp_buf-ssp.sym.
9361 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9362 <jmp_buf-ssp.h>.
9363 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9364 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9365 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9366 jmp_buf-ssp.sym.
9367 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9368 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9369 (__longjmp): Restore shadow stack pointer if shadow stack is
9370 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9371 isn't defined for __longjmp_cancel.
9372 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9373 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9374 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9375
9376 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9377
9378 [BZ #22563]
9379 * nptl/pthread_create.c: Include <tls-setup.h>.
9380 (__pthread_create_2_1): Call tls_setup_tcbhead.
9381 * sysdeps/generic/tls-setup.h: New file.
9382 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9383 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9384 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9385 Likewise.
9386 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9387 to feature_1.
9388 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9389 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9390 (X86_FEATURE_1_SHSTK): Likewise.
9391 (CET_ENABLED): Likewise.
9392 (IBT_ENABLED): Likewise.
9393 (SHSTK_ENABLED): Likewise.
9394
9395 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9396
9397 [BZ #23208]
9398 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9399 (LOCALES): Likewise.
9400 * localedata/dsb_DE.UTF-8.in: New file.
9401 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9402
9403 2018-07-12 Florian Weimer <fweimer@redhat.com>
9404
9405 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9406 __mprotect, not mprotect.
9407
9408 2018-07-11 Florian Weimer <fweimer@redhat.com>
9409
9410 * io/Makefile (headers): Add bits/statx.h.
9411
9412 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9413
9414 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9415 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9416 and headers.
9417 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9418 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9419 for utf8_gen.py
9420
9421 2018-07-10 Florian Weimer <fweimer@redhat.com>
9422
9423 * io/Makefile (routines): Add statx.
9424 (tests-internal): Add tst-statx.
9425 * io/Versions (GLIBC_2.28): Export statx.
9426 * io/bits/statx.h: New file.
9427 * io/sys/stat.h [__USE_GNU]: Include it.
9428 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9429 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9430 Define.
9431 * io/statx.c: New file.
9432 * io/statx_generic.: Likewise.
9433 * io/tst-statx.: Likewise.
9434 * include/bits/statx.h: Likewise.
9435 * sysdeps/unix/sysv/linux/kernel-features.h
9436 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9437 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9438 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9439 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9440 Undefine.
9441 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9442 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9443 * sysdeps/unix/sysv/linux/statx.c: New file.
9444 * manual/filesys.texi: Note that statx is undocumented.
9445 * sysdeps/**/libc*.abilist: Update.
9446
9447 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9448
9449 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9450 a kernel issue which lead to test failure in some cases.
9451
9452 2018-07-10 Florian Weimer <fweimer@redhat.com>
9453
9454 [BZ #23036]
9455 * posix/regexec.c (check_node_accept_bytes): When comparing
9456 weights, do not compare an extra byte after the end of the
9457 weights.
9458
9459 2018-07-10 Florian Weimer <fweimer@redhat.com>
9460
9461 * libio/readline.c: Fix copyright year.
9462 * libio/tst-readline.c Likewise.
9463 * nss/tst-nss-files-hosts-getent.c: Likewise.
9464
9465 2018-07-06 Florian Weimer <fweimer@redhat.com>
9466
9467 [BZ #18991]
9468 * nss/nss_files/files-XXX.c (internal_getent): Use
9469 __libc_readline_unlocked. Seek back to the start of the line if
9470 parsing failes with ERANGE.
9471 (get_contents_ret, get_contents): Remove.
9472 * nss/tst-nss-files-hosts-getent.c: New file.
9473 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9474 (tst-nss-files-hosts-getent): Link with -ldl.
9475
9476 2018-07-06 Florian Weimer <fweimer@redhat.com>
9477
9478 * include/stdio.h (__libc_readline_unlocked): Declare.
9479 (__ftello64, __fseeko64): Declare aliases.
9480 * libio/readline.c: New file.
9481 * libio/tst-readline.c: Likewise.
9482 (routines): Add readline.
9483 (tests-internal): Add tst-readlime.
9484 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9485 __libc_readline_unlocked.
9486 * libio/fseeko.c (__fseeko): Rename from fseeko.
9487 (fseeko): Add alias.
9488 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9489 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9490 (fseeko64): Add alias.
9491 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9492 * libio/ftello64.c (__ftello64): Rename from ftello64.
9493 (ftello64): Add alias.
9494
9495 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9496
9497 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9498 HWCAP_ATOMICS.
9499
9500 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9501
9502 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9503 Use dl_hwcap without masking.
9504 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9505 Remove HWCAP_CPUID.
9506
9507 2018-07-06 Florian Weimer <fweimer@redhat.com>
9508
9509 * conform/conformtest.pl (checknamespace): Escape literal braces
9510 in regular expressions.
9511
9512 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9513
9514 * sysdeps/x86/cpu-features.c (get_common_indeces):
9515 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9516 * sysdeps/x86/cpu-features.c (init_cpu_features):
9517 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9518
9519 2018-07-05 Florian Weimer <fweimer@redhat.com>
9520
9521 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9522 protector.
9523 (CFLAGS-elf-init.oS): Likewise.
9524
9525 2018-07-05 Florian Weimer <fweimer@redhat.com>
9526 Carlos O'Donell <carlos@redhat.com>
9527
9528 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9529 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9530 with stack protector enabled because there is no risk of infinite
9531 recursion.
9532
9533 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9534
9535 [BZ #19818]
9536 [BZ #23307]
9537 * libc-abis (ABSOLUTE): New ABI.
9538 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9539 * NEWS: Mention the new ABI.
9540
9541 2018-07-05 Florian Weimer <fweimer@redhat.com>
9542
9543 [BZ # 17662]
9544 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9545 (RENAME_WHITEOUT): Define.
9546 [__USE_GNU] (renameat2): Declare.
9547 * stdio-common/Makefile (routines): Add renameat2.
9548 (tests): Add tst-renameat2.
9549 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9550 * stdio-common/renameat2.c: New file.
9551 * stdio-common/tst-renameat2.c: Likewise.
9552 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9553 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9554 undocumented.
9555 * sysdeps/unix/sysv/linux/kernel-features.h
9556 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9557 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9558 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9559 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9560 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9561 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9562 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9563 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9564 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9565 * include/stdio.h (__renameat): Add alias for renameat.
9566 * stdio-common/renameat.c (__renameat): Rename from renameat.
9567 Add hidden definition and alias.
9568 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9569 * sysdeps/mach/hurd/renameat.c: Likewise.
9570 * sysdeps/**/libc*.abilist: Add renameat2.
9571
9572 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9573
9574 * posix/bug-regex33.c: Fix build after regex sync.
9575
9576 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9577
9578 [BZ #23164]
9579 * localedata/tst-langinfo-setlocale.c: New file.
9580 * localedata/tst-langinfo-setlocale-static.c: New file.
9581 * localedata/tst-langinfo-newlocale.c: New file.
9582 * localedata/tst-langinfo-newlocale-static.c: New file.
9583 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9584 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9585 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9586 (tests-static): Remove tst-langinfo-static. Add
9587 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9588 (tests-special): Remove $(objpfx)tst-langinfo.out,
9589 $(objpfx)tst-langinfo-static.out. Add
9590 $(objpfx)tst-langinfo-setlocale.out,
9591 $(objpfx)tst-langinfo-newlocale.out,
9592 $(objpfx)tst-langinfo-setlocale-static.out,
9593 $(objpfx)tst-langinfo-newlocale-static.out.
9594 ($(objpfx)tst-langinfo.out): Remove.
9595 ($(objpfx)tst-langinfo-static.out): Remove.
9596 ($(objpfx)tst-langinfo-newlocale.out): New target.
9597 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9598 (test-xfail-tst-langinfo-newlocale-static): Add.
9599 ($(objpfx)tst-langinfo-setlocale.out): New target.
9600 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9601 * localedata/tst-langinfo.c: Call test_locale.
9602 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9603 data.
9604
9605 2018-07-04 Florian Weimer <fweimer@redhat.com>
9606
9607 testrun.sh: Implement --tool=strace, --tool=valgrind
9608 * Makefile (testrun-script): Define variable.
9609 (testrun.sh): Use variable.
9610 * manual/install.texi (Tools for Compilation): make 4.0 or later
9611 is required.
9612 * configure.ac: Check for make 4.0 or later.
9613 * INSTALL: Regenerate.
9614 * configure: Likewise.
9615
9616 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9617
9618 [BZ #23233]
9619 [BZ #21163]
9620 [BZ #18986]
9621 [BZ #13762]
9622 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9623 * posix/PCRE.tests: Remove invalid test.
9624 * posix/bug-regex28.c: Fix expected values for used syntax.
9625 * posix/bug-regex37.c: New file.
9626 * posix/bug-regex38.c: Likewise.
9627 * posix/regcomp.c: Sync with gnulib.
9628 * posix/regex.c: Likewise.
9629 * posix/regex.h: Likewise.
9630 * posix/regex_internal.c: Likewise.
9631 * posix/regex_internal.h: Likewise.
9632 * posix/regexec.c: Likewise.
9633
9634 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9635
9636 [BZ #23308]
9637 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9638 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9639 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9640 * localedata/unicode-gen/PropList.txt: likewise.
9641 * localedata/unicode-gen/UnicodeData.txt: likewise.
9642 * localedata/charmaps/UTF-8: Regenerate.
9643 * localedata/locales/i18n_ctype: likewise.
9644 * localedata/locales/tr_TR: likewise.
9645 * localedata/locales/translit_circle: likewise.
9646 * localedata/locales/translit_cjk_compat: likewise.
9647 * localedata/locales/translit_combining: likewise.
9648 * localedata/locales/translit_compat: likewise.
9649 * localedata/locales/translit_font: likewise.
9650 * localedata/locales/translit_fraction: likewise.
9651
9652 2018-07-03 Florian Weimer <fweimer@redhat.com>
9653
9654 [BZ #23363]
9655 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9656 * stdio-common/tst-printf.sh: Adjust expected output.
9657 * LICENSES: Update.
9658
9659 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9660
9661 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9662 symbol.
9663
9664 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9665
9666 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9667 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9668 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9669 * stdio-common/tst-printfsz-islongdouble.c: New file.
9670 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9671 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9672 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9673 [subdir == stdio-common] (tests-internal): Add
9674 test-printf-size-ieee128, and test-printf-size-ibm128.
9675 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9676 (CFLAGS-test-printf-size-ibm128.c): New variables.
9677 [subdir == stdio-common] (tests-special): Add
9678 $(objpfx)test-printf-size-ieee128.out and
9679 $(objpfx)test-printf-size-ibm128.out.
9680 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9681 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9682 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9683 __printf_sizeieee128.
9684 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9685 New file.
9686 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9687 Likewise.
9688 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9689 Likewise.
9690
9691 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9692
9693 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9694 (exp2f_inline): Likewise.
9695 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9696 (__math_uflowf): Likewise.
9697 (__math_may_uflowf): Likewise.
9698 (__math_divzerof): Likewise.
9699 (__math_invalidf): Likewise.
9700 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9701 (__math_oflowf): Likewise.
9702 (__math_uflowf): Likewise.
9703 (__math_may_uflowf): Likewise.
9704 (__math_divzerof): Likewise.
9705 (__math_invalidf): Likewise.
9706
9707 2018-06-29 DJ Delorie <dj@redhat.com>
9708 Carlos O'Donell <carlos@redhat.com>
9709
9710 [BZ #23329]
9711 * include/libc-symbols.h: Comment the freeres framework.
9712 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9713 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9714 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9715 * dlfcn/dlerror.c: Include libc-symbols.h
9716 (__dlerror_main_freeres): New function.
9717 * dlfcn/dlfreeres.c: New file.
9718 * dlfcn/sdlfreeres.c: New file.
9719 * include/dlfcn.h: Declare __dlerror_main_freeres.
9720 * malloc/set-freeres.c: Declare __libdl_freeres, and
9721 __libpthread_freeres.
9722 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9723 the releavant libraries are loaded.
9724 * malloc/thread-freeres.c: Add comments.
9725 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9726 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9727 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9728 (__free_stacks): Rename to...
9729 (free_stacks): ...this. Mark static.
9730 (queue_stack): Call free_stacks.
9731 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9732 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9733 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9734 ptr_freeres element from struct.
9735 (pthread_functions): Remove .ptr_freeres from struct initializer.
9736 [SHARED] (nptl_freeres): Remove.
9737 * nptl/nptlfreeres.c: New file.
9738 * nptl/pthreadP.h
9739 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9740 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9741 attribute_hidden.
9742 (__free_stacks): Rename to...
9743 (__nptl_stacks_freeres): ...this.
9744 (__shm_directory_freeres): Declare.
9745 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9746 (__nptl_unwind_freeres): ...this.
9747 * resolv/res-close.c: Add comment.
9748 * resolv/resolv_conf.c: Include libc-symbols.h.
9749 * string/strerror_l.c: Include libc-symbols.h.
9750 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9751 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9752 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9753 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9754
9755 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9756
9757 * stdlib/tst-strfmon_l.c: Add tests for long double.
9758
9759 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9760
9761 [BZ #23208]
9762 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9763 * localedata/locales/dsb_DE: New file.
9764
9765 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9766
9767 [BZ #23140]
9768 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9769 genitive case).
9770 (alt_mon): New entry, import from CLDR (nominative case).
9771
9772 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9773
9774 [BZ #22996]
9775 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9776
9777 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9778
9779 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9780 Use vector registers.
9781
9782 * sysdeps/aarch64/multiarch/memmove_falkor.S
9783 (__memcpy_falkor): Use vector registers.
9784
9785 2018-06-29 Martin Sebor <msebor@redhat.com>
9786
9787 * manual/stdio.texi (Customizing Printf): Mention interaction
9788 with GCC built-ins.
9789
9790 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9791
9792 [BZ #23307]
9793 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9794 `st_value' is 0 if `st_shndx' is SHN_ABS.
9795 * elf/tst-absolute-zero.c: New file.
9796 * elf/tst-absolute-zero-lib.c: New file.
9797 * elf/tst-absolute-zero-lib.lds: New file.
9798 * elf/Makefile (tests): Add `tst-absolute-zero'.
9799 (modules-names): Add `tst-absolute-zero-lib'.
9800 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9801 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9802 ($(objpfx)tst-absolute-zero: New dependency.
9803
9804 2018-06-29 Zack Weinberg <zackw@panix.com>
9805
9806 * configure.ac: New command-line option --disable-crypt.
9807 Force --disable-nss-crypt when --disable-crypt is given, with a
9808 warning if it was explicitly enabled.
9809 * configure: Regenerate.
9810 * config.make.in: New boolean substitution variable $(build-crypt).
9811 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9812 when $(build-crypt).
9813 * manual/install.texi: Document --disable-crypt.
9814 * INSTALL: Regenerate.
9815
9816 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9817 which is never set.
9818 * conform/Makefile: Only include libcrypt.a in
9819 linknamespace-libs-xsi and linknamespace-libs-XPG4
9820 when $(build-crypt).
9821 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9822 USE_CRYPT to 1 when $(build-crypt).
9823 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9824 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9825 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9826
9827 2018-06-29 Zack Weinberg <zackw@panix.com>
9828
9829 * crypt/crypt.h, posix/unistd.h: Update comments and
9830 prototypes for crypt and crypt_r.
9831
9832 * manual/crypt.texi (Cryptographic Functions): New initial
9833 exposition.
9834 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9835 (Unpredictable Bytes): Improve initial exposition. Clarify error
9836 behavior of getentropy and getrandom.
9837 * manual/examples/genpass.c: Generate a salt using getentropy
9838 instead of the current time. Use hash $5$ (SHA-2-256).
9839 * manual/examples/testpass.c: Demonstrate validation against
9840 hashes generated with three different one-way functions.
9841
9842 * manual/intro.texi: crypt.texi does not need an overview
9843 anymore.
9844
9845 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9846 * manual/terminal.texi: Consistently refer to "passphrases"
9847 * instead of "passwords", and to the "user database" instead
9848 * of the "password database".
9849 * manual/users.texi: Similarly. Add notes about how actual
9850 passphrase hashes are now stored in the shadow database.
9851 Remove 20-year-old junk todo note.
9852
9853 2018-06-29 Zack Weinberg <zackw@panix.com>
9854
9855 * manual/crypt.texi: Use a normal top-level @node declaration.
9856 Move most of the introductory text to the 'crypt' section.
9857 Move the example programs below the @deftypefun for 'crypt_r'.
9858 Move the 'getpass' section...
9859 * manual/terminal.texi: ...here.
9860
9861 2018-06-29 Zack Weinberg <zackw@panix.com>
9862 Florian Weimer <fweimer@redhat.com>
9863
9864 * posix/unistd.h: Do not declare encrypt.
9865 (_XOPEN_CRYPT): Remove macro definition.
9866 (crypt): Declare only for _USE_MISC.
9867 * stdlib/stdlib.h: Do not declare setkey.
9868 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9869 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9870
9871 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9872 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9873 into compat symbols. Don't define initial_perm if it's not
9874 going to be used.
9875 * crypt/cert.c: Link explicitly with the expected versions for
9876 setkey and encrypt. If they are not available at all, mark
9877 the test as unsupported.
9878
9879 * sunrpc/des_crypt.c: Unconditionally block linkage with
9880 cbc_crypt and ecb_crypt for new binaries.
9881 * sunrpc/des_soft.c: Unconditionally block linkage with
9882 des_setparity for new binaries.
9883
9884 * manual/crypt.texi: Remove the entire "DES Encryption"
9885 section. Also remove the paragraph talking about FIPS 140-2
9886 from the introduction.
9887 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9888 of libgcrypt for "real" encryption, not DES.
9889 * manual/conf.texi (Constants for Sysconf): Mention that
9890 _XOPEN_CRYPT is no longer impelemented.
9891
9892 * conform/data/unistd.h-data: Remove crypt function declaration.
9893
9894 2018-06-29 Florian Weimer <fweimer@redhat.com>
9895
9896 [BZ #23351]
9897 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9898 (disallow_malloc_check): Remove variable.
9899 (__malloc_check_init): Adjust.
9900 (malloc_set_state): Update comment.
9901 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9902 declarations.
9903
9904 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9905
9906 [BZ #23140]
9907 * localedata/locales/ast_ES (mon): Rename to...
9908 (alt_mon): This.
9909 (mon): Import from CLDR (genitive case).
9910
9911 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9912 Jakub Sitnicki <jkbs@redhat.com>
9913
9914 [BZ #21812]
9915 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9916 on NLM_F_DUMP_INTR.
9917
9918 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9919
9920 * manual/llio.texi: Remove spurious space.
9921
9922 2018-06-28 Florian Weimer <fweimer@redhat.com>
9923
9924 [BZ #23349]
9925 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9926 _STRUCT_TIMESPEC.
9927
9928 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9929
9930 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9931 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9932 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9933 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9934 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9935 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9936 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9937
9938 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9939
9940 [BZ #23266]
9941 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9942 Copy and null-terminate entries that are not terminated, in
9943 addition to empty ones.
9944
9945 2018-06-27 Florian Weimer <fweimer@redhat.com>
9946
9947 [BZ #18023]
9948 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9949 (extend_alloca_account): Remove.
9950 * manual/stdio.texi (Variable Arguments Output): Update comment.
9951
9952 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9953
9954 * nptl/sockperf.c: Remove file.
9955
9956 2018-06-27 Florian Weimer <fweimer@redhat.com>
9957
9958 [BZ #18023]
9959 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9960 scratch_buffer instead of extend_alloca.
9961
9962 2018-06-27 Florian Weimer <fweimer@redhat.com>
9963
9964 [BZ #18023]
9965 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9966 scratch_buffer instead of extend_alloca. Update comments.
9967
9968 2018-06-27 Florian Weimer <fweimer@redhat.com>
9969
9970 [BZ #18023]
9971 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9972 instead of extend_alloca.
9973
9974 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9975
9976 [BZ #13888]
9977 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9978 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9979 /tmp.
9980 * scripts/test-installation.pl: Put temporary files in build
9981 directory, not /tmp.
9982 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9983 (CFLAGS-bug4.c): Likewise.
9984 (CFLAGS-bug5.c): Likewise.
9985 (CFLAGS-test-fseek.c): Likewise.
9986 (CFLAGS-test-popen.c): Likewise.
9987 (CFLAGS-test_rdwr.c): Likewise.
9988 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9989 /tmp.
9990 * stdio-common/bug4.c (main): Likewise.
9991 * stdio-common/bug5.c (main): Likewise.
9992 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9993 * stdio-common/test-popen.c (do_test): Likewise.
9994 * stdio-common/test_rdwr.c (main): Likewise.
9995
9996 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9997
9998 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9999 (sem_open): Set sem.newsem.pad to zero for valgrind.
10000
10001 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10002
10003 [BZ #20251]
10004 * NEWS: Mention fcntl64 addition.
10005 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10006 * login/utmp_file.c: Likewise.
10007 * sysdeps/posix/fdopendir.c: Likewise.
10008 * sysdeps/posix/opendir.c: Likewise.
10009 * sysdeps/unix/pt-fcntl.c: Likewise.
10010 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10011 __fcntl64_nocancel_adjusted): New prototype.
10012 (__fcntl_nocancel_adjusted): Remove prototype.
10013 * io/Makefile (routines): Add fcntl64.
10014 (CFLAGS-fcntl64.c): New rule.
10015 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10016 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10017 * io/fcntl.h (fcntl64): Add prototype and redirect if
10018 __USE_FILE_OFFSET64 is defined.
10019 * io/fcntl64.c: New file.
10020 * manual/llio.text: Add a note for which commands fcntl acts a
10021 cancellation point.
10022 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10023 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10024 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10025 New symbols.
10026 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10027 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10028 non-LFS case.
10029 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10030 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10031 to __fcntl64_nocancel.
10032 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10033 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10034 to __fcntl64_nocancel.
10035 * sysdeps/generic/not-cancel.h: Likewise.
10036 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10037 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10038 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10039 (fcntl64): New symbol.
10040 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10041 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10042 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10045 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10046 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10047 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10048 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10049 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10050 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10051 fcntl64): Likewise.
10052 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10053 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10054 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10055 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10056 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10057 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10058 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10059 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10060 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10062 Likewise.
10063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10064 Likewise.
10065 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10066 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10067 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10068
10069 2018-06-26 Florian Weimer <fweimer@redhat.com>
10070
10071 Run thread shutdown functions in an explicit order.
10072 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10073 definition.
10074 (__libc_thread_freeres): Call thread shutdown functions
10075 explicitly.
10076 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10077 * include/string.h (__strerror_thread_freeres): Declare.
10078 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10079 arena_thread_freeres. No longer static. Remove thread shutdown
10080 hook registration.
10081 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10082 Declare.
10083 * resolv/res-close.c (__res_thread_freeres): Renamed from
10084 res_thread_freeres. No longer static. Remove thread shutdown
10085 hook registration.
10086 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10087 * resolv/resolv_conf.c (freeres): Remove incorrect section
10088 attribute and use libc_freeres_fn.
10089 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10090 strerror_thread_freeres. No longer static. Remove thread
10091 shutdown hook registration.
10092 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10093 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10094 shutdown hook registration.
10095 * Makerules (shlib.lds): Do not provide section boundary symbols
10096 for __libc_thread_subfreeres.
10097 * manual/memory.texi (Basic Allocation): Update comment.
10098
10099 2018-06-26 Florian Weimer <fweimer@redhat.com>
10100
10101 Remove always-defined _RPC_THREAD_SAFE_ macro.
10102 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10103 Do not define _RPC_THREAD_SAFE_.
10104 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10105 conditional.
10106 * sunrpc/clnt_perr.c: Likewise.
10107 * sunrpc/clnt_raw.c: Likewise.
10108 * sunrpc/clnt_simp.c: Likewise.
10109 * sunrpc/key_call.c: Likewise.
10110 * sunrpc/rpc_common.c: Likewise.
10111 * sunrpc/rpc_main.c: Likewise.
10112 * sunrpc/rpc_thread.c: Likewise.
10113 * sunrpc/svc.c: Likewise.
10114 * sunrpc/svc_raw.c: Likewise.
10115 * sunrpc/svc_simple.c: Likewise.
10116 * sumrpc/svcauth_des.c: Likewise.
10117
10118 2018-06-26 Florian Weimer <fweimer@redhat.com>
10119
10120 * libio/Makefile (tests-internal): Add tst-vtables,
10121 tst-vtables-interposed.
10122 * libio/tst-vtables.c: New file.
10123 * libio/tst-vtables-common.c: Likewise.
10124 * libio/tst-vtables-interposed.c: Likewise.
10125
10126 2018-06-26 Florian Weimer <fweimer@redhat.com>
10127
10128 * support/support_test_main.c (support_test_main): Only call
10129 setvbuf if not disables.
10130 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10131 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10132
10133 2018-06-26 Florian Weimer <fweimer@redhat.com>
10134
10135 [BZ #23313]
10136 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10137
10138 2018-06-25 Florian Weimer <fweimer@redhat.com>
10139
10140 [BZ #18023]
10141 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10142 Use struct scratch_buffer instead of extend_alloca.
10143
10144 2018-06-25 Florian Weimer <fweimer@redhat.com>
10145
10146 [BZ #18023]
10147 * nss/getent.c (initgroups_keys): Use dynarray instead of
10148 extend_alloca.
10149
10150 2018-06-25 Florian Weimer <fweimer@redhat.com>
10151
10152 [BZ #18023]
10153 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10154 Use struct scratch_buffer instead of extend_alloca.
10155
10156 2018-06-25 Florian Weimer <fweimer@redhat.com>
10157
10158 [BZ #18023]
10159 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10160 back to malloc directly, without stack allocations.
10161
10162 2018-06-25 Florian Weimer <fweimer@redhat.com>
10163
10164 [BZ #18023]
10165 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10166 of extend_alloca.
10167
10168 2018-06-25 Florian Weimer <fweimer@redhat.com>
10169
10170 [BZ #18023]
10171 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10172 of extend_alloca.
10173 * nscd/hstcache.c (addhstbyX): Likewise.
10174 * nscd/pwdcache.c (addpwbyX): Likewise.
10175 * nscd/servicescache.c (addservbyX): Likewise.
10176
10177 2018-06-25 Florian Weimer <fweimer@redhat.com>
10178
10179 [BZ #18023]
10180 * nscd/connections.c (read_cmdline): New function.
10181 (restart): Use it. Update comment.
10182
10183 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10184
10185 [BZ #23140]
10186 * localedata/locales/csb_PL (mon): Rename to...
10187 (alt_mon): This.
10188 (abmon): Rename to...
10189 (ab_alt_mon): This.
10190 (mon): Add with proper genitive forms, copy from Wikipedia.
10191 (abmon): Likewise.
10192
10193 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10194
10195 [BZ #19485]
10196 * localedata/locales/csb_PL (mon): Fix typos:
10197 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10198 (yesstr): Add, value is "jo".
10199 (nostr): Add, value is "nié".
10200
10201 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10202
10203 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10204 all log1p and significand functions on m680x0.
10205 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10206 of s_significand.c..
10207 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10208 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10209 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10210 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10211 s_log1p.c and include it..
10212
10213 2018-06-21 Vincent Chen <vincentc@andestech.com>
10214
10215 * elf/elf.h (R_NDS32_NONE): New define.
10216 (R_NDS32_32_RELA): Likewise.
10217 (R_NDS32_COPY): Likewise.
10218 (R_NDS32_GLOB_DAT): Likewise.
10219 (R_NDS32_JUMP_SLOT): Likewise.
10220 (R_NDS32_RELATIVE): Likewise.
10221 (R_NDS32_TLS_TPOFF): Likewise.
10222 (R_NDS32_TLS_DESC): Likewise.
10223
10224 2018-06-21 Mark Wielaard <mark@klomp.org>
10225
10226 * elf/elf.h (R_BPF_MAP_FD): Removed.
10227 (R_BPF_64_64, R_BPF_64_32): New.
10228
10229 2018-06-21 Florian Weimer <fweimer@redhat.com>
10230
10231 [BZ #23253]
10232 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10233 Renamed from libc_feholdsetround_ctx.
10234 (default_libc_feresetround_ctx): Renamed from
10235 libc_feresetround_ctx.
10236 (default_libc_feholdsetround_noex_ctx): Renamed from
10237 libc_feholdsetround_noex_ctx.
10238 (default_libc_feresetround_noex_ctx): Renamed from
10239 libc_feresetround_noex_ctx.
10240 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10241 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10242 forwardning to the old implementations under the new names.
10243 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10244 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10245 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10246 (libc_feresetround_ctx): Forward to default implements for i386
10247 and MATH_SET_BOTH_ROUNDING_MODES.
10248 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10249 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10250
10251 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10252
10253 * string/tst-cmp.c: Include <libc-diag.h>.
10254 (strncmp_max): Disable -Wstringop-overflow= around call to
10255 strncmp.
10256 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10257 strncasecmp.
10258
10259 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10260 (main): Disable -Wunused-value around call to strpbrk.
10261 * string/bug-strspn1.c: Include <libc-diag.h>.
10262 (main): Disable -Wunused-value around call to strspn.
10263
10264 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10265 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10266
10267 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10268 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10269
10270 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10271
10272 * math/Makefile (libm-calls): Move s_significandF to...
10273 (gen-libm-calls): ... here.
10274 * math/s_significand_template.c: New file.
10275 * math/s_significand.c: Removed.
10276 * math/s_significandf.c: Removed.
10277 * math/s_significandl.c: Removed.
10278 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10279 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10280
10281 * math/e_exp2_template.c (declare_mgen_finite_alias,
10282 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10283 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10284 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10285
10286 2018-06-20 Florian Weimer <fweimer@redhat.com>
10287
10288 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10289
10290 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10291
10292 [BZ #23280]
10293 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10294 floating-point number to strtod functions rather than possibly
10295 negating result of those functions.
10296 * stdio-common/tst-scanf-round.c: New file.
10297 * stdio-common/Makefile (tests): Add tst-scanf-round.
10298 ($(objpfx)tst-scanf-round): Depend on $(libm).
10299
10300 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10301
10302 * sysdeps/mach/hurd/localplt.data: Move to...
10303 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10304 R_386_GLOB_DAT like on Linux i386.
10305
10306 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10307
10308 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10309 (SHM_STAT_ANY): New macro.
10310 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10311 (SHM_STAT_ANY): Likewise.
10312 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10313 (SHM_STAT_ANY): Likewise.
10314 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10315 (SHM_STAT_ANY): Likewise.
10316 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10317 (SHM_STAT_ANY): Likewise.
10318 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10319 (SHM_STAT_ANY): Likewise.
10320 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10321 (SHM_STAT_ANY): Likewise.
10322 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10323 (SHM_STAT_ANY): Likewise.
10324 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10325 (SHM_STAT_ANY): Likewise.
10326 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10327 (SHM_STAT_ANY): Likewise.
10328 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10329 (SHM_STAT_ANY): Likewise.
10330 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10331 (SHM_STAT_ANY): Likewise.
10332
10333 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10334 (SEM_STAT_ANY): New macro.
10335 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10336 (SEM_STAT_ANY): Likewise.
10337 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10338 (SEM_STAT_ANY): Likewise.
10339 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10340 (SEM_STAT_ANY): Likewise.
10341 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10342 (SEM_STAT_ANY): Likewise.
10343 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10344 (SEM_STAT_ANY): Likewise.
10345 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10346 (SEM_STAT_ANY): Likewise.
10347 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10348 (SEM_STAT_ANY): Likewise.
10349 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10350 (SEM_STAT_ANY): Likewise.
10351 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10352 (SEM_STAT_ANY): Likewise.
10353
10354 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10355 (MSG_STAT_ANY): New macro.
10356 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10357 (MSG_STAT_ANY): Likewise.
10358 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10359 (MSG_STAT_ANY): Likewise.
10360 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10361 (MSG_STAT_ANY): Likewise.
10362 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10363 (MSG_STAT_ANY): Likewise.
10364 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10365 (MSG_STAT_ANY): Likewise.
10366 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10367 (MSG_STAT_ANY): Likewise.
10368 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10369 (MSG_STAT_ANY): Likewise.
10370 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10371 (MSG_STAT_ANY): Likewise.
10372 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10373 (MSG_STAT_ANY): Likewise.
10374
10375 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10376 (MAP_TYPE): Change value to 0x2b.
10377
10378 2018-06-18 Florian Weimer <fweimer@redhat.com>
10379
10380 [BZ #15722]
10381 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10382 socket with SOCK_CLOEXEC.
10383
10384 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10385
10386 [BZ #23303]
10387 * sysdeps/powerpc/powerpc64/le/Makefile
10388 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10389 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10390 (gnulib-tests): Also add $(f128-loader-link) for
10391 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10392
10393 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10394
10395 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10396 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10397 of sendfile.
10398 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10399 (sendfile64): New strong alias.
10400 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10401 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10402 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10403 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10404 attribute.
10405 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10406 ___pthread_get_cleanup_stack.
10407 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10408 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10409 * mach/shortcut.awk: Make syscall stubs include
10410 <mach-shortcuts-hidden.h> and add hidden definition.
10411 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10412 (__mach_msg): Add hidden prototype.
10413 * mach/msg.c: Include <mach.h>.
10414 (__mach_msg): Add hidden definition.
10415 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10416 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10417 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10418 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10419 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10420 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10421 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10422 prototype and definition.
10423 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10424 hidden target for _hurd_self_sigstate.
10425
10426 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10427
10428 [BZ #23007]
10429 * stdlib/tst-strtod-nan-sign-main.c: New file.
10430 * stdlib/tst-strtod-nan-sign.c: Likewise.
10431 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10432 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10433 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10434 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10435 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10436
10437 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10438
10439 [BZ #23007]
10440 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10441 appropriate sign.
10442
10443 2018-06-14 Florian Weimer <fweimer@redhat.com>
10444
10445 [BZ #23290]
10446 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10447 that the result stays within the ISO-8859-1 range.
10448 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10449 characters are defined in IBM273.
10450
10451 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10452
10453 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10454 __mach_task_self): Remove attribute_hidden.
10455
10456 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10457
10458 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10459 ignore -Wrestrict for one test.
10460
10461 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10462 Szabolcs Nagy <szabolcs.nagy@arm.com>
10463
10464 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10465
10466 2018-06-14 Florian Weimer <fweimer@redhat.com>
10467
10468 * scripts/update-abilist.sh: Accept empty list of files to patch.
10469
10470 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10471
10472 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10473 test-xfail-check-abi-libmachuser): Add.
10474 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10475 __libc_read and __libc_write to __read and __write.
10476 * sysdeps/hurd/include/hurd/port.h: New file.
10477 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10478 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10479 __thread_switch, __evc_wait): Move declarations to...
10480 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10481 attribute_hidden.
10482 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10483 use PLT to call _hurd_self_sigstate.
10484
10485 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10486
10487 [BZ #23279]
10488 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10489 MAX_EXP as overflowing.
10490 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10491 overflow flag.
10492 (round_str): Output also whether result overflows in each rounding
10493 mode.
10494 * stdlib/tst-strtod-round-data: Add more tests.
10495 * stdlib/tst-strtod-round-data.h: Regenerated.
10496 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10497 (TEST): Handle extra arguments for overflow flags.
10498 (struct test_overflow): New type.
10499 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10500 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10501 (test_in_one_mode): Take argument with overflow information.
10502 (do_test): Update calls to test_in_one_mode.
10503
10504 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10505
10506 * elf/dl-load (_dl_dst_substitute): Correct comment.
10507 (_dl_dst_count): Likewise.
10508
10509 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10510 lll_futex_timed_wait.
10511
10512 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10513
10514 [BZ #23277]
10515 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10516 attribute.
10517 * math/test-nan-const.c: New file.
10518 * math/Makefile (tests): Add test-nan-const.
10519 (CFLAGS-test-nan-const.c): New variable.
10520
10521 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10522
10523 * benchtests/scripts/compare_strings.py (process_results): Add
10524 funcs argument. Compare only functions which are selected.
10525 (main): Check if base function is among selected functions.
10526 Pass selected functions to process_results.
10527 (__main__): Add -f/--functions argument.
10528
10529 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10530 Hongbo Zhang <hongbo.zhang@linaro.org>
10531
10532 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10533 __memcpy_falkor for phecda core.
10534 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10535 __memmove_falkor for phecda core.
10536 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10537 __memset_falkor for phecda core.
10538 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10539 for phecda core.
10540 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10541 macro to identify phecda core.
10542
10543 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10544 Andreas Schwab <schwab@suse.de>
10545 Dmitry V. Levin <ldv@altlinux.org>
10546 Florian Weimer <fweimer@redhat.com>
10547
10548 [BZ #23102]
10549 [BZ #21942]
10550 [BZ #18018]
10551 [BZ #23259]
10552 CVE-2011-0536
10553 * elf/dl-dst.h: Remove DL_DST_COUNT.
10554 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10555 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10556 (is_dst): Comment. Support ELF gABI.
10557 (_dl_dst_count): Comment. Simplify and count DSTs.
10558 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10559 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10560 locals.
10561
10562 2018-06-12 Zack Weinberg <zackw@panix.com>
10563
10564 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10565 * sysdeps/unix/sysv/linux/dl-sysdep.c
10566 Include not-cancel.h. Use __close_nocancel instead of __close,
10567 __open64_nocancel instead of __open, __read_nocancel instead of
10568 __libc_read, and __write_nocancel instead of __libc_write.
10569
10570 * csu/check_fds.c (check_one_fd)
10571 * sysdeps/posix/fdopendir.c (__fdopendir)
10572 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10573 instead of __fcntl and/or __libc_fcntl.
10574
10575 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10576 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10577 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10578 Use __open64_nocancel instead of __open_nocancel.
10579
10580 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10581 hidden_proto declarations to the end and issue them if either
10582 IS_IN(libc) or IS_IN(rtld).
10583 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10584 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10585 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10586 read_nocancel, waitpid_nocancel, write_nocancel.
10587
10588 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10589 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10590 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10591
10592 * nptl/pt-fcntl.c: New file.
10593 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10594 (libpthread-routines): Add pt-fcntl.
10595 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10596 (__libc_fcntl): Remove attribute_hidden.
10597 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10598 __fcntl_nocancel_adjusted, not fcntl_common.
10599 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10600 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10601 to fcntl_nocancel.c.
10602 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10605 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10606
10607 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10608 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10609 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10610 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10611 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10612 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10613 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10614 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10615 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10616 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10617 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10618 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10619 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10620 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10621 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10622 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10623 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10624 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10625 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10626 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10627
10628 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10629 libpthread-routines.
10630 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10631 defines nothing.
10632
10633 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10634 __libc_read, and __write instead of __libc_write. Define
10635 __open64 in addition to __open.
10636
10637 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10638
10639 [BZ #23250]
10640 [BZ #10686]
10641 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10642 to _private_tm[3] and add __glibc_reserved2.
10643 Add _Static_assert of offset of __private_ss == 0x30.
10644 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10645 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10646
10647 2018-06-12 Florian Weimer <fweimer@redhat.com>
10648
10649 x86: Make strncmp usable from rtld.
10650 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10651 __strncmp_ia32 if in libc (and not in rtld).
10652 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10653 strncmp if not in libc (and not to __strncmp_sse2).
10654
10655 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10656
10657 [BZ #23140]
10658 * localedata/locales/gd_GB (mon): Rename to...
10659 (alt_mon): This.
10660 (mon): Import from CLDR (genitive case).
10661 * localedata/locales/hsb_DE (mon): Rename to...
10662 (alt_mon): This.
10663 (mon): Import from CLDR (genitive case).
10664 * localedata/locales/wa_BE (mon): Rename to...
10665 (alt_mon): This.
10666 (mon): Add, fill with the proper genitive forms, but CLDR data
10667 is incomplete; completed according to the comments in this file.
10668 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10669
10670 * localedata/locales/wa_BE (country_name): Reword
10671 "Beljike" -> "Beldjike".
10672
10673 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10674
10675 [BZ #23272]
10676 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10677 cases of non-finite arguments.
10678 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10679
10680 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10681
10682 [BZ #23174]
10683 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10684
10685 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10686
10687 [BZ #23264]
10688 * include/unistd.h (__execvpex): New prototype.
10689 * posix/Makefile (tests): Add tst-spawn4.
10690 (tests-internal): Add tst-spawn4-compat.
10691 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10692 * posix/tst-spawn4-compat.c: New file.
10693 * posix/tst-spawn4.c: Likewise.
10694 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10695 binaries as shell scripts.
10696 * sysdeps/posix/spawni.c (__spawni): Likewise.
10697
10698 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10699
10700 [BZ #23145]
10701 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10702 ($(all-built-dso:=.dynsym): New target.
10703 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10704 ($(objpfx)check-initfini.out): New target.
10705 (generated): Add check-initfini.out.
10706 * scripts/check-initfini.awk: New file.
10707 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10708 (_fini): Likewise.
10709 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10710 (_fini): Likewise.
10711 * sysdeps/arm/crti.S (_init): Mark as hidden.
10712 (_fini): Likewise.
10713 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10714 (_fini): Likewise.
10715 * sysdeps/i386/crti.S (_init): Mark as hidden.
10716 (_fini): Likewise.
10717 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10718 (_fini): Likewise.
10719 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10720 (_fini): Likewise.
10721 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10722 (_fini): Likewise.
10723 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10724 (_fini): Likewise.
10725 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10726 (_fini): Likewise.
10727 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10728 (_fini): Likewise.
10729 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10730 (_fini): Likewise.
10731 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10732 (_fini): Likewise.
10733 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10734 (_fini): Likewise.
10735 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10736 (_fini): Likewise.
10737 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10738 (_fini): Likewise.
10739 * sysdeps/sh/crti.S (_init): Mark as hidden.
10740 (_fini): Likewise.
10741 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10742 (_fini): Likewise.
10743 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10744 (_fini): Likewise.
10745
10746 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10747
10748 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10749 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10750 and TF redirection to KFtype and KF only when the default
10751 long double type is not the IEEE 128-bit floating point type.
10752
10753 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10754
10755 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10756 macro.
10757 (HWCAP_USCAT): Likewise.
10758 (HWCAP_ILRCPC): Likewise.
10759 (HWCAP_FLAGM): Likewise.
10760 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10761 Increase to 28.
10762 (_dl_aarch64_cap_flags): Add new flag names.
10763
10764 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10765 (MAP_FIXED_NOREPLACE): New macro.
10766 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10767 (MAP_FIXED_NOREPLACE): Likewise.
10768 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10769 (MAP_FIXED_NOREPLACE): Likewise.
10770 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10771 (MAP_FIXED_NOREPLACE): Likewise.
10772 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10773 (MAP_FIXED_NOREPLACE): Likewise.
10774 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10775 (MAP_FIXED_NOREPLACE): Likewise.
10776 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10777 (MAP_FIXED_NOREPLACE): Likewise.
10778 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10779 (MAP_FIXED_NOREPLACE): Likewise.
10780 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10781 (MAP_FIXED_NOREPLACE): Likewise.
10782 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10783 (MAP_FIXED_NOREPLACE): Likewise.
10784 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10785 (MAP_FIXED_NOREPLACE): Likewise.
10786 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10787 (MAP_FIXED_NOREPLACE): Likewise.
10788 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10789 (MAP_FIXED_NOREPLACE): Likewise.
10790 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10791 (MAP_FIXED_NOREPLACE): Likewise.
10792 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10793 (MAP_FIXED_NOREPLACE): Likewise.
10794
10795 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10796 version to 4.17.
10797
10798 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10799
10800 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10801 version to 4.17
10802
10803 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10804
10805 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10806 int.
10807 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10808
10809 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10810
10811 * benchtests/scripts/compare_string.py: (process_results) Catch
10812 exception in non-existent base_func and catch exception in
10813 non-existent attribute.
10814 (parse_file) Catch exception if input file does not exist.
10815
10816 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10817
10818 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10819 options to avoid diff calculation and omit header, respectively.
10820 (main): process --no-diff and --no-header
10821
10822 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10823 H.J. Lu <hongjiu.lu@intel.com>
10824
10825 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10826 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10827 wcsncmp-sse2.
10828 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10829 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10830 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10831 and __wcsncmp_sse2.
10832 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10833 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10834 AVX unaligned load is fast and vzeroupper is preferred.
10835 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10836 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10837 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10838 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10839 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10840 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10841 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10842 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10843 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10844 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10845 is undefined.
10846
10847 2018-06-01 Florian Weimer <fweimer@redhat.com>
10848
10849 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10850 configuring with --disable-multi-arch, building with
10851 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10852 Haswell-era CPU.
10853
10854 2018-06-01 Florian Weimer <fweimer@redhat.com>
10855
10856 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10857 results from building with “-march=x86-64 -mtune=generic
10858 -mfpmath=sse” and running on a Haswell-era CPU.
10859
10860 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10861
10862 [BZ #18473]
10863 * soft-fp/sqrttf2.c: Remove file.
10864 * soft-fp/sqrtdf2.c: Move to ....
10865 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10866 <shlib-compat.h>.
10867 (__sqrtdf2): Make conditional on
10868 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10869 symbol.
10870 * soft-fp/sqrtsf2.c: Move to ....
10871 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10872 <shlib-compat.h>.
10873 (__sqrtsf2): Make conditional on
10874 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10875 symbol.
10876 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10877 (gcc-double-routines): Remove sqrtdf2.
10878 (gcc-quad-routines): Remove sqrttf2.
10879 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10880 Do not filter out sqrtsf2 and sqrtdf2.
10881 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10882 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10883
10884 2018-06-01 Florian Weimer <fweimer@redhat.com>
10885
10886 * sysdeps/generic/libcidn.abilist: Remove file.
10887
10888 2018-06-01 Florian Weimer <fweimer@redhat.com>
10889
10890 [BZ #23236]
10891 * libio/strfile.h (struct _IO_str_fields): Rename members to
10892 discourage their use and add comment.
10893 (_IO_STR_DYNAMIC): Remove unused macro.
10894 * libio/strops.c (_IO_str_init_static_internal): Do not use
10895 callback pointers. Call malloc and free.
10896 (_IO_str_overflow): Do not use callback pointers. Call malloc
10897 and free.
10898 (enlarge_userbuf): Likewise.
10899 (_IO_str_finish): Call free.
10900 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10901 _allocate_buffer_unused.
10902 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10903 and free.
10904 (enlarge_userbuf): Likewise.
10905 (_IO_wstr_finish): Call free.
10906 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10907 _allocate_buffer_unused, _free_buffer_unused.
10908 * libio/memstream.c (__open_memstream): Likewise.
10909 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10910 * libio/wmemstream.c (open_wmemstream): Likewise.
10911
10912 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10913
10914 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10915 AMD Ryzen 7 1800X.
10916
10917 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10918
10919 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10920 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10921 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10922 New file.
10923 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10924 Likewise.
10925 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10926
10927 2018-05-29 Florian Weimer <fweimer@redhat.com>
10928
10929 * support/Makefile (libsupport-routines): Add
10930 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10931 xpthread_barrierattr_setpshared.
10932 * support/xpthread_barrierattr_destroy.c: New file.
10933 * support/xpthread_barrierattr_init.c: Likewise.
10934 * support/xpthread_barrierattr_setpshared.c: Likewise.
10935
10936 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10937
10938 [BZ #23206]
10939 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10940 _r_debug and update DT_DEBUG for debugger.
10941
10942 2018-05-29 Florian Weimer <fweimer@redhat.com>
10943
10944 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10945 (tst-strtod5i.out): Likewise.
10946
10947 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10948
10949 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10950 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10951 (sparc64-quad-routines): New variable. Moved from ....
10952 [$(subdir) = soft-fp] (sysdep_routines): Add
10953 $(sparc64-quad-routines). Moved from ....
10954 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10955 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10956 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10957 moved from ....
10958 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10959 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10960 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10961 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10962 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10963 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10964 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10965 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10966 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10967 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10968 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10969 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10970 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10971 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10972 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10973 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10974 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10975 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10976 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10977 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10978 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10979 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10980 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10981 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10982 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10983 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10984 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10985 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10986 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10987 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10988 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10989 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10990 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10991 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10992 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10993 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10994 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10995 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10996 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10997 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10998 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10999 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11000 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11001 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11002 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11003 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11004 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11005 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11006 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11007 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11008 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11009 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11010 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11011 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11012 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11013 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11014 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11015 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11016
11017 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11018 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11019 (sparc32-quad-routines): New variable. Moved from ....
11020 [$(subdir) = soft-fp] (sysdep_routines): Add
11021 $(sparc32-quad-routines). Moved from ....
11022 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11023 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11024 moved from ....
11025 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11026 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11027 * sysdeps/sparc/sparc32/q_add.c: ... here.
11028 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11029 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11030 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11031 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11032 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11033 * sysdeps/sparc/sparc32/q_div.c: ... here.
11034 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11035 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11036 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11037 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11038 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11039 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11040 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11041 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11042 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11043 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11044 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11045 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11046 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11047 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11048 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11049 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11050 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11051 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11052 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11053 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11054 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11055 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11056 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11057 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11058 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11059 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11060 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11061 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11062 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11063 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11064 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11065 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11066 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11067 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11068 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11069 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11070 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11071 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11072 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11073 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11074 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11075 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11076 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11077 * sysdeps/sparc/sparc32/q_util.c: ... here.
11078 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11079 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11080 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11081 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11082
11083 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11084 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11085
11086 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11087 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11088 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11089 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11090
11091 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11092
11093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11094 powerpc/soft-fp.
11095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11096 Likewise.
11097 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11098 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11099
11100 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11101
11102 [BZ #23171]
11103 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11104 double version.
11105
11106 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11107
11108 * sysdeps/sh/Implies: Remove sh/soft-fp.
11109 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11110 * sysdeps/sh/sfp-machine.h: ... here.
11111
11112 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11113
11114 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11115 (__mempcpy_erms): Skip zero length.
11116 (__memmove_erms): Likewise.
11117 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11118 (__memset_erms): Likewise.
11119
11120 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11121
11122 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11123 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11124 Add functions moved from ....
11125 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11126 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11127 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11128 from ....
11129 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11130 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11131 * sysdeps/alpha/e_sqrtl.c: ... here.
11132 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11133 * sysdeps/alpha/local-soft-fp.h: ... here.
11134 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11135 * sysdeps/alpha/ots_add.c: ... here.
11136 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11137 * sysdeps/alpha/ots_cmp.c: ... here.
11138 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11139 * sysdeps/alpha/ots_cmpe.c: ... here.
11140 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11141 * sysdeps/alpha/ots_cvtqux.c: ... here.
11142 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11143 * sysdeps/alpha/ots_cvtqx.c: ... here.
11144 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11145 * sysdeps/alpha/ots_cvttx.c: ... here.
11146 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11147 * sysdeps/alpha/ots_cvtxq.c: ... here.
11148 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11149 * sysdeps/alpha/ots_cvtxt.c: ... here.
11150 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11151 * sysdeps/alpha/ots_div.c: ... here.
11152 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11153 * sysdeps/alpha/ots_mul.c: ... here.
11154 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11155 * sysdeps/alpha/ots_nintxq.c: ... here.
11156 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11157 * sysdeps/alpha/ots_sub.c: ... here.
11158 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11159 * sysdeps/alpha/sfp-machine.h: ... here.
11160
11161 2018-05-23 Florian Weimer <fweimer@redhat.com>
11162
11163 [BZ #19728]
11164 [BZ #19729]
11165 [BZ #22247]
11166 CVE-2016-6261
11167 CVE-2016-6263
11168 CVE-2017-14062
11169 Switch to extern IDNA implementation (libidn2).
11170 * libidn: Remove subdirectory.
11171 * LICENSES: Do not mention licensing conditions for the removed
11172 libidn code.
11173 * config.h.in (HAVE_LIBIDN): Remove.
11174 * include/dlfcn.h (__libc_dlopen): Update comment.
11175 * include/idna.h: Remove file.
11176 * inet/Makefile (routines): Add idna.
11177 (tests-static, tests-internal): Add tst-idna_name_classify.
11178 (LOCALES): Generate locales for tests.
11179 (tst-idna_name_classify.out): Depend on generated locales.
11180 * inet/idna_name_classify.c: New file.
11181 * inet/tst-idna_name_classify.c: Likewise.
11182 * inet/net-internal.h (__idna_to_dns_encoding)
11183 (__idna_from_dns_encoding): Declare.
11184 * inet/net-internal.h (enum idna_name_classification): Define.
11185 (__idna_name_classify): Declare.
11186 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11187 __idna_from_dns_encoding.
11188 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11189 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11190 name as a fallback in case of encoding errors.
11191 (getnameinfo): Use DEPRECATED_NI_IDN.
11192 * inet/idna.c: New file.
11193 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11194 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11195 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11196 (modules-names): Add tst-no-libidn2.
11197 (extra-test-objs): Add tst-no-libidn2.os.
11198 (LDFLAGS-tst-no-libidn2.so): Set soname.
11199 (LOCALES): Set, and generate locales.
11200 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11201 (tst-resolv-ai_idn-latin1): Likewise.
11202 (tst-resolv-ai_idn-nolibidn2): Likewise.
11203 (tst-resolv-ai_idn.out): Depend on locales.
11204 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11205 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11206 tst-no-libidn2.so.
11207 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11208 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11209 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11210 * resolv/tst-resolv-ai_idn.c: New file.
11211 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11212 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11213 * resolv/tst-no-libidn2.c: Likewise.
11214 * support/support_format_addrinfo.c (format_ai_flags): Do not
11215 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11216 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11217 (gaih_inet): Call __idna_to_dns_encoding and
11218 __idna_from_dns_encoding, and use the original (punycode) name if
11219 __idna_from_dns_encoding fails due to an encoding error.
11220 (getaddrinfo): Use DEPRECATED_AI_IDN.
11221 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11222 * sysdeps/unix/inet/configure: Remove file.
11223 * sysdeps/unix/inet/configure.ac: Likewise.
11224
11225 2018-05-23 Florian Weimer <fweimer@redhat.com>
11226
11227 Implement allocate_once.
11228 * include/allocate_once.h: New file.
11229 * misc/allocate_once.c: Likewise.
11230 * misc/tst-allocate_once.c: Likewise.
11231 * misc/Makefile (routines): Add allocate_once.
11232 (tests-internal): Add tst-allocate_once.
11233 (generated): Add tst-allocate_once.mtrace,
11234 tst-allocate_once-mem.out.
11235 (tests-special): Add tst-allocate_once-mem.out.
11236 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11237 (tst-allocate_once-mem.out): Call mtrace.
11238 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11239
11240 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11241
11242 [BZ #23196]
11243 * string/test-memcpy.c (do_test1): New function.
11244 (test_main): Call it.
11245
11246 2018-05-23 Andreas Schwab <schwab@suse.de>
11247
11248 [BZ #23196]
11249 CVE-2018-11237
11250 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11251 (L(preloop_large)): Save initial destination pointer in %r11 and
11252 use it instead of %rax after the loop.
11253 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11254
11255 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11256
11257 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11258 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11259 -I../soft-fp. Moved from ....
11260 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11261 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11262 * sysdeps/aarch64/e_sqrtl.c: ... here.
11263 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11264 * sysdeps/aarch64/sfp-machine.h: ... here.
11265
11266 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11267 -Wmaybe-uninitialized around access to fq[0].
11268 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11269 Likewise.
11270
11271 [BZ #18471]
11272 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11273 aliases for non-libc case of versioned symbols.
11274 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11275 (llseek): Define as compat symbol if
11276 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11277 with link warning.
11278 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11279 Make into a compat symbol, disabled for minimum symbol version
11280 GLIBC_2.28 and later.
11281 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11282
11283 2018-05-22 Florian Weimer <fweimer@redhat.com>
11284
11285 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11286 not add -mpreferred-stack-boundary=4.
11287 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11288 (stack-align-test-flags): Likewise.
11289 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11290 Likewise.
11291 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11292 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11293 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11294 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11295 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11296 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11297 (CFLAGS-tst-align2.c): Likewise.
11298
11299 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11300
11301 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11302 (index_arch_Prefer_FSRM): Likewise.
11303 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11304 Also check Prefer_FSRM.
11305 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11306 Also return OPTIMIZE (erms) for Prefer_FSRM.
11307
11308 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11309
11310 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11311 (index_cpu_FSRM): Likewise.
11312 (reg_FSRM): Likewise.
11313
11314 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11315
11316 * math/gen-tgmath-tests.py: Import sys.
11317 (Tests.__init__): Initialize macros_seen.
11318 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11319 if requested to do so for this macro.
11320 (Tests.add_all_tests): Take argument for macro for which to
11321 generate tests.
11322 (Tests.check_macro_list): New function.
11323 (main): Handle check-list argument and argument specifying macro
11324 for which to generate tests.
11325 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11326 [PYTHON] (tgmath3-macro-tests): Likewise.
11327 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11328 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11329 not test-tgmath3.c.
11330 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11331 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11332 to CFLAGS.
11333 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11334 [PYTHON] ($(foreach
11335 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11336 rule.
11337 [PYTHON] (tests-special): Add
11338 $(objpfx)test-tgmath3-macro-list.out.
11339 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11340
11341 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11342 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11343 later.
11344
11345 [BZ #22639]
11346 * time/tzset.c (SECSPERDAY): Cast to time_t.
11347 * time/tst-y2039.c: New file.
11348 * time/Makefile (tests): Add tst-y2039.
11349
11350 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11351
11352 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11353 (PREFETCH_ONE_SET): Remove duplicate line.
11354
11355 2018-05-17 Florian Weimer <fweimer@redhat.com>
11356
11357 * sysdeps/generic/math-type-macros-double.h: Include
11358 <math-nan-payload-double.h> after <libm-alias-double.h>.
11359 * sysdeps/generic/math-type-macros-float.h: Include
11360 <math-nan-payload-float.h> after <libm-alias-float.h>.
11361 * sysdeps/generic/math-type-macros-float128.h: Include
11362 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11363 * sysdeps/generic/math-type-macros-ldouble.h: Include
11364 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11365
11366 2018-05-17 Andreas Schwab <schwab@suse.de>
11367
11368 * resolv/res_send.c (__res_context_send): Don't set errno when
11369 returing error after malloc failure.
11370
11371 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11372
11373 * nptl/allocatestack.c (allocate_stack): Remove the
11374 !__ASSUME_PRIVATE_FUTEX paths.
11375 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11376 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11377 Likewise.
11378 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11379 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11380 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11381 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11382 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11383 !__ASSUME_PRIVATE_FUTEX path.
11384 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11385 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11386 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11387 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11388 !__ASSUME_PRIVATE_FUTEX macros.
11389 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11390 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11391 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11392 * sysdeps/unix/sysv/linux/kernel-features.h
11393 (__ASSUME_PRIVATE_FUTEX): Removed.
11394
11395 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11396
11397 * math/Makefile (libm-narrow-fns): Add div.
11398 (libm-test-funcs-narrow): Likewise.
11399 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11400 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11401 * math/gen-auto-libm-tests.c (test_functions): Add div.
11402 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11403 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11404 (NARROW_DIV_TRIVIAL): Likewise.
11405 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11406 macro.
11407 (__ddivl): Likewise.
11408 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11409 ddiv.
11410 (CFLAGS-nldbl-ddiv.c): New variable.
11411 (CFLAGS-nldbl-fdiv.c): Likewise.
11412 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11413 __nldbl_ddivl.
11414 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11415 prototype.
11416 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11417 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11418 * math/auto-libm-test-in: Add tests of div.
11419 * math/auto-libm-test-out-narrow-div: New generated file.
11420 * math/libm-test-narrow-div.inc: New file.
11421 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11422 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11423 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11424 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11425 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11426 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11427 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11428 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11429 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11430 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11431 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11432 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11433 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11434 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11435 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11436 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11437 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11438 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11439 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11440 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11441 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11442 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11443 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11445 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11446 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11447 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11448 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11449 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11450 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11457 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11458 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11459 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11460 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11461 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11462 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11465
11466 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11467
11468 [BZ #23178]
11469 * nscd/nscd-client.h (sendfileall): Remove prototype.
11470 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11471 (handle_request): Use writeall instead of sendfileall.
11472 * nscd/aicache.c (addhstaiX): Likewise.
11473 * nscd/grpcache.c (cache_addgr): Likewise.
11474 * nscd/hstcache.c (cache_addhst): Likewise.
11475 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11476 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11477 * nscd/pwdcache.c (cache_addpw): Likewise.
11478 * nscd/servicescache.c (cache_addserv): Likewise.
11479 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11480 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11481 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11482 Remove define.
11483
11484 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11485
11486 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11487 Include <string/strncat.c>.
11488 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11489 alias.
11490 (__GI___strncat): New hidden alias.
11491
11492 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11493
11494 * sysdeps/mips/mips32/libm-test-ulps: Update.
11495 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11496
11497 2018-05-16 Florian Weimer <fweimer@redhat.com>
11498
11499 * support/Makefile (libsupport-routines): Add support_quote_blob,
11500 support_test_compare_blob.
11501 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11502 * support/check.h (TEST_COMPARE_BLOB): Define.
11503 (support_test_compare_blob): Declare.
11504 * support/support.h (support_quote_blob): Declare.
11505 * support/support_quote_blob.c: New file.
11506 * support/support_test_compare_blob.c: Likewise.
11507 * support/tst-support_quote_blob.c: Likewise.
11508 * support/tst-test_compare_blob.c: Likewise.
11509
11510 2018-05-16 Florian Weimer <fweimer@redhat.com>
11511
11512 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11513 of <strtod_nan_double.h>.
11514 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11515 instead of SET_MANTISSA.
11516 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11517 of include <strtod_nan_float.h>.
11518 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11519 instead of <strtod_nan_ldouble.h>.
11520 * stdlib/strtod_nan_double.h: Move to ...
11521 * sysdeps/generic/math-nan-payload-double.h: ... here.
11522 (FLOAT): Remove definition.
11523 (SET_MANTISSA): Rename to ...
11524 (SET_NAN_PAYLOAD): ... this.
11525 * stdlib/strtod_nan_float.h: Move to ...
11526 * sysdeps/generic/math-nan-payload-float.h: ... here.
11527 (FLOAT): Remove definition.
11528 (SET_MANTISSA): Rename to ...
11529 (SET_NAN_PAYLOAD): ... this.
11530 * sysdeps/generic/math-type-macros-double.h: Include
11531 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11532 instead of <math-svid-compat.h>.
11533 * sysdeps/generic/math-type-macros-float.h: Include
11534 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11535 instead of <math-svid-compat.h>.
11536 * sysdeps/generic/math-type-macros-float128.h: Include
11537 <math-nan-payload-float128.h>.
11538 * sysdeps/generic/math-type-macros-ldouble.h: Include
11539 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11540 instead of <math-svid-compat.h>.
11541 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11542 check for definition.
11543 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11544 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11545 Include <ieee754_float128.h>.
11546 (FLOAT): Remove definition.
11547 (SET_MANTISSA): Rename to ...
11548 (SET_NAN_PAYLOAD): ... this.
11549 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11550 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11551 Do not include <float128_private.h>.
11552 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11553 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11554 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11555 (FLOAT): Remove definition.
11556 (SET_MANTISSA): Rename to ...
11557 (SET_NAN_PAYLOAD): ... this.
11558 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11559 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11560 (FLOAT): Remove definition.
11561 (SET_MANTISSA): Rename to ...
11562 (SET_NAN_PAYLOAD): ... this.
11563 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11564 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11565 (FLOAT): Remove definition.
11566 (SET_MANTISSA): Rename to ...
11567 (SET_NAN_PAYLOAD): ... this.
11568 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11569 of "../stdlib/strtod_nan_double.h".
11570 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11571 of "../stdlib/strtod_nan_float.h".
11572 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11573 instead of "../stdlib/strtod_nan_ldouble.h".
11574 * manual/arith.texi (Parsing of Floats): Adjust comment.
11575
11576 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11577
11578 * math/Makefile (libm-narrow-fns): Add mul.
11579 (libm-test-funcs-narrow): Likewise.
11580 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11581 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11582 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11583 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11584 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11585 (NARROW_MUL_TRIVIAL): Likewise.
11586 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11587 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11588 macro.
11589 (__dmull): Likewise.
11590 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11591 dmul.
11592 (CFLAGS-nldbl-dmul.c): New variable.
11593 (CFLAGS-nldbl-fmul.c): Likewise.
11594 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11595 __nldbl_dmull.
11596 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11597 prototype.
11598 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11599 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11600 * math/auto-libm-test-in: Add tests of mul.
11601 * math/auto-libm-test-out-narrow-mul: New generated file.
11602 * math/libm-test-narrow-mul.inc: New file.
11603 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11604 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11605 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11606 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11607 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11608 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11609 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11610 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11611 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11612 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11613 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11614 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11615 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11616 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11617 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11618 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11619 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11620 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11621 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11622 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11647
11648 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11649
11650 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11651 with *%eax in call.
11652
11653 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11654
11655 * sysdeps/i386/ldsodefs.h: Removed.
11656 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11657 * sysdeps/x86/ldsodefs.h: This.
11658 (La_i86_regs): New.
11659 (La_i86_retval): Likewise.
11660 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11661 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11662
11663 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11664
11665 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11666 unnecessary testl.
11667
11668 2018-05-13 Alan Modra <amodra@gmail.com>
11669
11670 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11671 R_PARISC_TLS_DTPOFF32 reloc addend.
11672
11673 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11674
11675 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11676 * math/math.h: Restrict the prototype definition for the functions
11677 issignaling(_Float128) and iszero(_Float128); and template
11678 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11679 __HAVE_FLOAT128_UNLIKE_LDBL.
11680 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11681 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11682 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11683 __f128() constants; define the type _Float128 as long double;
11684 and reuse long double in __CFLOAT128.
11685
11686 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11687
11688 * sysdeps/generic/math_private.h: Do not include
11689 <math-barriers.h>.
11690 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11691 <math_private.h>.
11692 * math/fromfp.h: Include <math-barriers.h>.
11693 * math/math-narrow.h: Likewise.
11694 * math/s_nextafter.c: Likewise.
11695 * math/s_nexttowardf.c: Likewise.
11696 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11697 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11698 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11699 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11700 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11701 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11702 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11703 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11704 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11705 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11706 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11707 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11708 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11709 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11710 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11711 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11712 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11713 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11714 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11715 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11716 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11717 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11718 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11719 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11720 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11721 * sysdeps/ieee754/k_standardl.c: Likewise.
11722 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11723 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11724 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11725 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11726 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11727 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11728 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11729 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11730 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11731 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11732 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11733 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11734 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11735 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11736 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11737 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11738 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11739 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11740 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11741 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11742 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11743 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11744
11745 2018-05-11 Florian Weimer <fweimer@redhat.com>
11746
11747 Use 64-bit epoch values in the time zone file parser.
11748 * include/time.h (internal_time_t): Define.
11749 (__tzfile_compute): Use it.
11750 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11751 member.
11752 (transitions): Switch to internal_time_t.
11753 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11754 types.
11755 (__tzfile_compute): Use internal_time_t for timer argument. Check
11756 for truncation before calling __offtime.
11757
11758 2018-05-11 Florian Weimer <fweimer@redhat.com>
11759
11760 [BZ #23166]
11761 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11762 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11763 Likewise.
11764 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11765 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11766 export without --enable-obsolete-rpc.
11767 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11768 symbol. This should not have been exported, ever.
11769
11770 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11771
11772 [BZ #23152]
11773 * localedata/locales/gd_GB (abmon): Fix typo in May:
11774 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11775
11776 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11777
11778 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11779 Use multiple registers to copy data in loop tail.
11780
11781 * sysdeps/aarch64/multiarch/memmove_falkor.S
11782 (__memmove_falkor): Use multiple registers to move data in
11783 loop tail.
11784
11785 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11786
11787 * math/math-underflow.h: New file.
11788 * sysdeps/generic/math_private.h: Do not include <float.h>.
11789 (fabs_tg): Remove macro. Moved to math-underflow.h.
11790 (min_of_type_f): Likewise.
11791 (min_of_type_): Likewise.
11792 (min_of_type_l): Likewise.
11793 (min_of_type_f128): Likewise.
11794 (min_of_type): Likewise.
11795 (math_check_force_underflow): Likewise.
11796 (math_check_force_underflow_nonneg): Likewise.
11797 (math_check_force_underflow_complex): Likewise.
11798 * math/e_exp2_template.c: Include <math-underflow.h>.
11799 * math/k_casinh_template.c: Likewise.
11800 * math/s_catan_template.c: Likewise.
11801 * math/s_catanh_template.c: Likewise.
11802 * math/s_ccosh_template.c: Likewise.
11803 * math/s_cexp_template.c: Likewise.
11804 * math/s_clog10_template.c: Likewise.
11805 * math/s_clog_template.c: Likewise.
11806 * math/s_csin_template.c: Likewise.
11807 * math/s_csinh_template.c: Likewise.
11808 * math/s_csqrt_template.c: Likewise.
11809 * math/s_ctan_template.c: Likewise.
11810 * math/s_ctanh_template.c: Likewise.
11811 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11812 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11813 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11814 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11815 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11816 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11817 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11818 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11819 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11820 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11821 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11822 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11823 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11824 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11825 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11826 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11827 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11828 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11829 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11830 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11831 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11832 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11833 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11834 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11835 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11836 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11837 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11838 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11839 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11840 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11841 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11842 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11843 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11844 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11845 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11846 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11847 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11848 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11849 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11850 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11851 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11852 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11853 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11854 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11855 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11856 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11857 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11858 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11859 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11860 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11861 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11862 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11863 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11864 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11865 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11866 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11867 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11868 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11869 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11870 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11871 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11872 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11873 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11874 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11875 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11876 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11877 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11878 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11879 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11880 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11881 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11882 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11883 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11884 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11885 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11886 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11887 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11888 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11889 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11890 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11891 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11892 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11893 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11894 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11895
11896 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11897
11898 * sysdeps/generic/math-barriers.h: New file.
11899 * sysdeps/generic/math_private.h [!math_opt_barrier]
11900 (math_opt_barrier): Move to math-barriers.h.
11901 [!math_opt_barrier] (math_force_eval): Likewise.
11902 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11903 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11904 math-barriers.h.
11905 (math_force_eval): Likewise.
11906 * sysdeps/alpha/fpu/math-barriers.h: New file.
11907 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11908 math-barriers.h.
11909 (math_force_eval): Likewise.
11910 * sysdeps/x86/fpu/math-barriers.h: New file.
11911 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11912 math-barriers.h.
11913 (math_force_eval): Likewise.
11914 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11915 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11916 multiple-include guard for rename.
11917 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11918 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11919 math-barriers.h.
11920 (math_force_eval): Likewise.
11921
11922 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11923
11924 [BZ #22786]
11925 CVE-2018-11236
11926 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11927 computation.
11928 * stdlib/Makefile (test-bz22786): New test.
11929 * stdlib/test-bz22786.c: New test.
11930
11931 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11932
11933 * include/math-narrow-eval.h: New file. Contents moved from ....
11934 * sysdeps/generic/math_private.h: ... here.
11935 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11936 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11937 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11938 * stdlib/strtod_l.c: Likewise.
11939 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11940 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11941 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11942 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11943 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11944 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11945 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11946 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11947 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11948 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11949 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11950 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11951 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11952 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11953 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11954 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11955 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11956 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11957 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11958 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11959 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11960 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11961 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11962 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11963 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11964 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11965 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11966 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11967 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11968
11969 2018-05-08 Andreas Schwab <schwab@suse.de>
11970
11971 * sysdeps/nptl/internaltypes.h: Fix comment.
11972
11973 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11974
11975 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11976 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11977 hidden.
11978
11979 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11980
11981 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11982 of I into loop header.
11983 * benchtests/bench-memmove-walk.c
11984 (test_main): Likewise.
11985
11986 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11987
11988 Revert:
11989 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11990 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11991
11992 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11993
11994 [BZ #20419]
11995 * elf/dl-load.c (open_verify): Fix stack overflow.
11996 * elf/Makefile (tst-big-note): New test.
11997 * elf/tst-big-note-lib.S: New.
11998 * elf/tst-big-note.c: New.
11999
12000 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12001
12002 * scripts/abilist.awk: Ignore absolute symbols.
12003 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12004 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12005 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12006 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12007 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12008 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12009 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12010 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12011 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12012 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12013 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12014 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12025 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12026 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12029 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12030 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12031 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12032 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12033 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12034 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12035 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12036 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12039 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12040 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12045 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12046 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12047 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12048 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12049 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12050 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12061 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12062 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12063 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12064 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12065 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12066 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12073 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12074 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12078 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12080 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12095 Likewise.
12096 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12109 Likewise.
12110 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12137 Likewise.
12138 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12158 Likewise.
12159 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12191 Likewise.
12192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12197 Likewise.
12198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12199 Likewise.
12200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12202 Likewise.
12203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12205 Likewise.
12206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12207 Likewise.
12208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12211 Likewise.
12212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12213 Likewise.
12214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12215 Likewise.
12216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12220 Likewise.
12221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12227 Likewise.
12228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12230 Likewise.
12231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12232 Likewise.
12233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12234 Likewise.
12235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12236 Likewise.
12237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12240 Likewise.
12241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12242 Likewise.
12243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12244 Likewise.
12245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12248 Likewise.
12249 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12263 Likewise.
12264 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12276 Likewise.
12277 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12302 Likewise.
12303 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12316 Likewise.
12317 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12355
12356 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12357
12358 [BZ #23137]
12359 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12360 Use atomic_load_acquire to load __tid.
12361
12362 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12363
12364 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12365 Restore the pointer into %rdx, after syscall and use %rdx,
12366 instead of %rsi, to restore context.
12367
12368 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12369
12370 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12371 Pop the pointer into %rdx after syscall and use %rdx, instead
12372 of %rsi, to restore context.
12373
12374 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12375
12376 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12377 handlers after setjmp.
12378 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12379 defined.
12380 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12381 <libc-pointer-arith.h>.
12382 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12383 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12384 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12385 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12386 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12387 * sysdeps/x86/__longjmp_cancel.S: New file.
12388 * sysdeps/x86/longjmp.c: Likewise.
12389 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12390
12391 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12392
12393 * NEWS: Add ustat.h deprecation entry.
12394 * bits/ustat.h: Remove file.
12395 * misc/sys/ustat.h: Likewise.
12396 * misc/ustat.h: Likewise.
12397 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12398 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12399 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12400 compatibility mode.
12401 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12402 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12403 generic Linux implementation.
12404
12405 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12406
12407 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12408 * math/w_expl_compat.c: Likewise.
12409 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12410
12411 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12412
12413 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12414
12415 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12416
12417 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12418 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12419 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12420 Remove.
12421 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12423 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12424 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12425 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12426 and SYSCALL_LL64.
12427
12428 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12429
12430 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12431
12432 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12433 * math/w_asin_template.c: Likewise.
12434 * math/w_atanh_template.c: Likewise.
12435
12436 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12437
12438 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12439 to powerpc/powerpc64/be for big-endian.
12440 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12441 little-endian.
12442
12443 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12444 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12445 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12446 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12447 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12448 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12449 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12450 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12451 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12452 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12453 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12454 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12455 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12456 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12457 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12458 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12459 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12460 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12461 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12462 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12463 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12464 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12465 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12466 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12467 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12468 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12469 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12470 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12471 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12472 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12473 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12474 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12475
12476 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12477 adjusted to imply powerpc64 and older processors on powerpc64/be.
12478 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12479 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12480 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12481 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12482 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12483 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12484 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12485 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12486 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12487 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12488 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12489 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12490 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12491 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12492 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12493 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12494 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12495 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12496 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12497 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12498 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12499 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12500 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12501 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12502 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12503 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12504 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12505 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12506 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12507 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12508 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12509
12510 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12511 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12512 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12513 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12514
12515 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12516 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12517 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12518 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12519
12520 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12521 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12522 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12523 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12524 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12525 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12526 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12527 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12528 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12529 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12530 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12531
12532 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12533 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12534 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12535 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12536 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12537 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12538 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12539 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12540 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12541 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12542 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12543
12544 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12545 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12546 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12547 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12548 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12549 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12550 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12551 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12552 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12553 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12554 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12555 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12556
12557 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12558 and adjusted to imply olders processors.
12559 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12560 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12561 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12562 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12563 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12564 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12565 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12566 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12567 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12568 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12569 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12570
12571 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12572 powerpc64/le.
12573 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12574 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12575
12576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12577 powerpc64le.
12578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12580
12581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12582 powerpc64/be.
12583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12586
12587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12588 powerpc64 and adjusted.
12589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12592 Likewise.
12593
12594 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12595
12596 * sysdeps/tile: Remove.
12597 * sysdeps/unix/sysv/linux/tile: Likewise.
12598 * README (tilegx-*-linux-gnu): Remove from list of supported
12599 configurations.
12600 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12601 contribution of support for generic Linux kernel syscall
12602 interface.
12603 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12604 tilegx configurations.
12605 (Config.install_linux_headers): Do not handle tile.
12606 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12607 in comment.
12608 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12609 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12610 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12611 conditional undefine and redefine.
12612 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12613 in comment.
12614 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12615 conditional undefine and redefine.
12616
12617 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12618
12619 * signal/tst-sigaction.c: New file to test BZ #23069.
12620 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12621
12622 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12623
12624 [BZ #22766]
12625 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12626 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12627 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12628 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12629
12630 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12631
12632 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12633 _DIRENT_MATCHES_DIRENT64 is not defined.
12634 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12635 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12636 is defined.
12637 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12638 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12639
12640 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12641
12642 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12643 version to GCC 8 branch.
12644
12645 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12646
12647 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12648 (check_no_hidden): Use type of original function when declaring
12649 alias.
12650
12651 * sysdeps/unix/sysv/linux/sys/ptrace.h
12652 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12653 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12654 (struct __ptrace_seccomp_metadata): New type.
12655 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12656 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12657 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12658 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12659 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12660 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12661 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12662 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12663 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12664 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12665 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12666 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12667 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12668 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12669 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12670 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12671
12672 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12673
12674 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12675 defined.
12676 * dirent/versionsort.c (versionsort): Likewise.
12677 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12678 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12679 * dirent/versionsort64.c (versionsort64): Likewise.
12680 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12681 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12682 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12683 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12684 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12685 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12686 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12687 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12688 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12689 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12692 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12693 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12694
12695 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12696
12697 * elf/elf.h (NT_PPC_PKEY): New macro.
12698
12699 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12700
12701 [BZ #23094]
12702 * localedata/locales/hr_HR: fix thousands_sep and
12703 mon_thousands_sep
12704
12705 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12706
12707 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12708 (XTABS): Define to TAB3.
12709
12710 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12711
12712 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12713
12714 * dirent/scandir-tail-common.c: New file.
12715 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12716 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12717 * dirent/scandir.c: Use scandir-tail-common.c.
12718 * dirent/scandirat.c: Likewise.
12719 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12720 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12721 if _DIRENT_MATCHES_DIRENT64 is defined.
12722 * dirent/scandirat64.c (scandirat64): Likewise.
12723 * include/dirent.h (__scandir_tail): Only define iff
12724 _DIRENT_MATCHES_DIRENT64 is not defined.
12725 (__scandir64_tail): Define regardless.
12726 (__scandirat, scandirat64): Remove libc_hidden_proto.
12727 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12728 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12730 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12731 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12732 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12733 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12734
12735 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12736
12737 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12738 New macro.
12739 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12740 Increase to 24.
12741 (_dl_aarch64_cap_flags): Add asimdfhm.
12742
12743 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12744
12745 * sysdeps/nios2/libm-test-ulps: Update.
12746
12747 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12748
12749 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12750 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12751
12752 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12753 requirements.
12754 (_DIRENT_MATCHES_DIRENT64): Undef
12755 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12756 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12757 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12758 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12759 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12760 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12761 use getdents64 syscalls as base.
12762 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12763 symbol if required.
12764 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12765 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12766 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12767 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12768 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12769 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12770 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12771 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12772 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12773 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12774 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12775
12776 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12777
12778 * scripts/test_printers_common.py (init_test): Disable lock elision.
12779
12780 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12781
12782 * math/test-tgmath.c (count_double, count_float,
12783 count_ldouble, count_cdouble, count_cfloat,
12784 count_cldouble): Use volatile int.
12785
12786 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12787
12788 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12789 (conformtest-xfail-conds): Add i386-gnu.
12790 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12791 i386-gnu.
12792 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12793 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12794 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12795 msqid_ds.msg_lrpid): Likewise.
12796 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12797 Likewise.
12798 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12799 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12800 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12801 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12802 unsigned int.
12803 (struct statvfs64): Likewise.
12804 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12805 Likewise.
12806 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12807 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12808 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12809 instead of wait_queue.
12810 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12811 instead of vm_area_struct.
12812 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12813 struct sched_param definition to it.
12814 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12815 * bits/types/struct_sched_param.h: New file.
12816 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12817 <bits/types/struct_sched_param.h> instead of <sched.h>.
12818 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12819 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12820 generic version but include <bits/pthreadtypes.h> to make struct
12821 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12822 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12823 non-compliant.
12824 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12825 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12826 [__USE_XOPEN] (OFDEL): New macro.
12827 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12828 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12829 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12830 prototypes.
12831 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12832 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12833 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12834 non-compliant.
12835 * sysdeps/i386/sys/ucontext.h: Likewise.
12836 * sysdeps/m68k/sys/ucontext.h: Likewise.
12837 * sysdeps/mips/sys/ucontext.h: Likewise.
12838 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12839 * sysdeps/mach/hurd/i386/Makefile
12840 (test-xfail-POSIX/fcntl.h/conform): Add.
12841 (test-xfail-POSIX/signal.h/conform): Add.
12842 (test-xfail-POSIX/semaphore.h/conform): Add.
12843 (test-xfail-POSIX/regex.h/conform): Add.
12844 (test-xfail-POSIX/aio.h/conform): Add.
12845 (test-xfail-POSIX/mqueue.h/conform): Add.
12846 (test-xfail-POSIX/sys/types.h/conform): Add.
12847 (test-xfail-UNIX98/fcntl.h/conform): Add.
12848 (test-xfail-UNIX98/netdb.h/conform): Add.
12849 (test-xfail-UNIX98/signal.h/conform): Add.
12850 (test-xfail-UNIX98/semaphore.h/conform): Add.
12851 (test-xfail-UNIX98/regex.h/conform): Add.
12852 (test-xfail-UNIX98/aio.h/conform): Add.
12853 (test-xfail-UNIX98/ftw.h/conform): Add.
12854 (test-xfail-UNIX98/mqueue.h/conform): Add.
12855 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12856 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12857 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12858 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12859 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12860 (test-xfail-UNIX98/sys/types.h/conform): Add.
12861 (test-xfail-UNIX98/stdlib.h/conform): Add.
12862 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12863 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12864 (test-xfail-POSIX2008/netdb.h/conform): Add.
12865 (test-xfail-POSIX2008/signal.h/conform): Add.
12866 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12867 (test-xfail-POSIX2008/regex.h/conform): Add.
12868 (test-xfail-POSIX2008/aio.h/conform): Add.
12869 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12870 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12871 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12872 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12873 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12874 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12875 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12876 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12877 (test-xfail-XOPEN2K/signal.h/conform): Add.
12878 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12879 (test-xfail-XOPEN2K/regex.h/conform): Add.
12880 (test-xfail-XOPEN2K/aio.h/conform): Add.
12881 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12882 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12883 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12884 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12885 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12886 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12887 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12888 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12889 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12890 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12891 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12892 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12893 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12894 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12895 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12896 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12897 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12898 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12899 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12900 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12901 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12902 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12903 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12904 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12905 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12906 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12907 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12908 i386-gnu.
12909 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12910 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12911
12912 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12913
12914 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12915 --enable-obsolete for powerpc-linux-gnuspe.
12916
12917 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12918
12919 * conform/data/sys/un.h-data: Allow sun_ prefix.
12920 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12921 prototypes.
12922 * sysdeps/mach/include/mach.h: Likewise.
12923 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12924 * sysdeps/mach/include/mach_error.h: Likewise.
12925
12926 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12927
12928 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12929 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12930 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12931 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12932
12933 2018-04-16 Andreas Schwab <schwab@suse.de>
12934
12935 [BZ #19527]
12936 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12937
12938 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12939
12940 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12941 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12942
12943 2018-04-12 DJ Delorie <dj@redhat.com>
12944
12945 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12946 version to 4.16.
12947
12948 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12949
12950 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12951 (struct kernel_sigaction): Use the same definition on 31bit as is used
12952 on 64bit.
12953
12954 2018-04-09 Florian Weimer <fweimer@redhat.com>
12955
12956 [BZ #23037]
12957 * resolv/res_send.c (send_dg): Use designated initializers instead
12958 of assignment to zero-initialize other fields of struct mmsghdr.
12959
12960 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12961
12962 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12963 __READDIR_ALIAS): Undefine after usage.
12964 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12965 __READDIR_R_ALIAS): Likewise.
12966 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12967 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12968 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12969 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12970 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12971 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12972 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12973 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12974 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12975 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12976 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12977 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12978 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12979 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12980 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12981 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12982 * sysdeps/unix/sysv/linux/readdir.c: New file.
12983 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12984 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12985 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12986
12987 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12988
12989 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12990
12991 * manual/charset.texi (Converting a Character): Fix typo.
12992
12993 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12994
12995 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12996
12997 * sysdeps/arm/libm-test-ulps: Update.
12998
12999 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13000 as base implementation.
13001 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13002 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13003 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13004 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13005 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13006 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13007 remove unrequired definitions and update comments.
13008 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13009 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13010 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13011 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13012 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13013 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13014 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13015 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13016 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13017 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13018 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13019 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13020 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13021 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13022 and RESET_SA_RESTORER hooks.
13023
13024 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13025
13026 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13027
13028 2018-04-05 Florian Weimer <fweimer@redhat.com>
13029
13030 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13031 integer overflow, memory leak on error, and indeterminate errno
13032 value. Add a null wide character to terminate the result string.
13033 * manual/charset.texi (Converting a Character): Mention embedded
13034 null bytes in the mbrtowc input string. Explain what happens in
13035 the -2 result case. Do not claim that mbrtowc is simple or
13036 obvious to use. Adjust the description of the code example. Use
13037 @code, not @var, for concrete variables.
13038
13039 2018-04-05 Florian Weimer <fweimer@redhat.com>
13040
13041 * manual/examples/mbstouwcs.c: New file.
13042 * manual/charset.texi (Converting a Character): Include it.
13043
13044 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13045
13046 * include/dirent.h (dirfd): Add hidden proto.
13047 * dirent/dirfd.c (dirfd): Add hidden def.
13048 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13049 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13050
13051 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13052
13053 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13054 sin, cos and sincos to 1 ULP.
13055
13056 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13057
13058 [BZ #19818]
13059 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13060 symbols.
13061 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13062 * elf/tst-absolute-sym.c: New file.
13063 * elf/tst-absolute-sym-lib.c: New file.
13064 * elf/tst-absolute-sym-lib.lds: New file.
13065 * elf/Makefile (tests): Add `tst-absolute-sym'.
13066 (modules-names): Add `tst-absolute-sym-lib'.
13067 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13068 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13069 ($(objpfx)tst-absolute-sym): New dependency.
13070
13071 [BZ #19818]
13072 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13073 parameter.
13074 (SYMBOL_ADDRESS): New macro.
13075 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13076 SYMBOL_ADDRESS for symbol address calculation.
13077 * elf/dl-runtime.c (_dl_fixup): Likewise.
13078 (_dl_profile_fixup): Likewise.
13079 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13080 * elf/rtld.c (dl_main): Likewise.
13081 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13082 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13083 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13084 (elf_machine_rela): Likewise.
13085 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13086 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13087 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13088 (elf_machine_rela): Likewise.
13089 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13090 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13091 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13092 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13093 Likewise.
13094 (elf_machine_reloc): Likewise.
13095 (elf_machine_got_rel): Likewise.
13096 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13097 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13098 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13099 Likewise.
13100 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13101 Likewise.
13102 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13103 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13104 Likewise.
13105 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13106 Likewise.
13107 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13108 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13109 Likewise.
13110 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13111 Likewise.
13112 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13113 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13114
13115 2018-04-04 Zack Weinberg <zackw@panix.com>
13116
13117 * sysdeps/generic/internal-signals.h: Include signal.h,
13118 sigsetops.h, and stdbool.h.
13119 (__libc_signal_block_all): Actually block all signals.
13120 (__libc_signal_block_app): Likewise.
13121 (__libc_signal_restore_set): Actually restore the signal mask.
13122
13123 2018-04-04 Florian Weimer <fweimer@redhat.com>
13124
13125 inet: Actually build and run tst-deadline.
13126 * inet/Makefile (tests-internal): Add tst-deadline and do not
13127 overwrite the variable.
13128 (tests-static-internal): Remove variable.
13129
13130 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13131
13132 [BZ #22947]
13133 * bits/uio-ext.h (RWF_APPEND): New.
13134 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13135 * manual/llio.texi: Document RWF_APPEND.
13136 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13137 (RWF_SUPPORTED): Add RWF_APPEND.
13138
13139 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13140
13141 [BZ #22391]
13142 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13143 check for internal nptl signals.
13144 * nptl/sigaction.c (__sigaction): Likewise.
13145 * signal/sigaddset.c (sigaddset): Likewise.
13146 * signal/sigdelset.c (sigdelset): Likewise.
13147 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13148 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13149 value.
13150 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13151 to filter out internal nptl signals.
13152 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13153 also check realtime signals using standard macros.
13154 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13155 __is_internal_signal, __libc_signal_block_all,
13156 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13157 * sysdeps/nptl/sigfillset.c: Remove file.
13158 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13159 Change return to bool.
13160 (__clear_internal_signals): Remove SIGTIMER clean since it is
13161 equal to SIGCANEL on Linux.
13162 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13163 signal set was constructed using standard functions.
13164
13165 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13166
13167 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13168 ifname is too long.
13169 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13170 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13171 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13172 hidden def.
13173 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13174 * signal/sigaddset.c: Include <sigsetopts.h>.
13175 * signal/sigdelset.c: Likewise.
13176
13177 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13178
13179 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13180 (__cos): Likewise.
13181 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13182 logic as sin and cos.
13183
13184 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13185
13186 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13187 inputs. Return correct sign.
13188 (do_sincos): Remove small input check before do_sin, let do_sin set
13189 the sign.
13190 (__sin): Likewise.
13191 (__cos): Likewise.
13192
13193 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13194
13195 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13196 (do_cos_slow): Likewise.
13197 (do_sin_slow): Likewise.
13198 (reduce_and_compute): Likewise.
13199 (slow): Likewise.
13200 (slow1): Likewise.
13201 (slow2): Likewise.
13202 (sloww): Likewise.
13203 (sloww1): Likewise.
13204 (sloww2): Likewise.
13205 (bslow): Likewise.
13206 (bslow1): Likewise.
13207 (bslow2): Likewise.
13208 (cslow2): Likewise.
13209
13210 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13211
13212 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13213 (do_cos): Remove corp parameter and calculations.
13214 (do_sin): Likewise.
13215 (do_sincos): Remove cor variable.
13216 (__sin): Use do_sincos for huge inputs.
13217 (__cos): Likewise.
13218 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13219 (reduce_and_compute_sincos): Remove unused function.
13220
13221 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13222
13223 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13224 reduce_sincos, improve accuracy to 136 bits.
13225 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13226 (__sin): Use improved reduction and simplified do_sincos calculation.
13227 (__cos): Likewise.
13228 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13229
13230 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13231
13232 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13233 (do_sincos_2): Likewise.
13234 (__sin): Remove middle range reduction case.
13235 (__cos): Likewise.
13236 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13237 reduction case.
13238
13239 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13240
13241 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13242 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13243 inputs.
13244 (__cos): Likewise.
13245 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13246
13247 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13248
13249 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13250 version to 4.16
13251
13252 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13253
13254 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13255 Remove definitions.
13256 (opendir_oflags): Use O_DIRECTORY regardless.
13257 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13258 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13259
13260 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13261
13262 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13263 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13264 macros.
13265 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13266 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13267 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13268 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13269 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13270 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13271
13272 * htl/Makefile: Bump licence to LGPL 2.1+.
13273 * htl/alloca_cutoff.c: Likewise.
13274 * htl/cthreads-compat.c: Likewise.
13275 * htl/lockfile.c: Likewise.
13276 * htl/pt-alloc.c: Likewise.
13277 * htl/pt-cancel.c: Likewise.
13278 * htl/pt-cleanup.c: Likewise.
13279 * htl/pt-create.c: Likewise.
13280 * htl/pt-dealloc.c: Likewise.
13281 * htl/pt-detach.c: Likewise.
13282 * htl/pt-exit.c: Likewise.
13283 * htl/pt-getattr.c: Likewise.
13284 * htl/pt-initialize.c: Likewise.
13285 * htl/pt-internal.h: Likewise.
13286 * htl/pt-join.c: Likewise.
13287 * htl/pt-self.c: Likewise.
13288 * htl/pt-setcancelstate.c: Likewise.
13289 * htl/pt-setcanceltype.c: Likewise.
13290 * htl/pt-sigmask.c: Likewise.
13291 * htl/pt-spin-inlines.c: Likewise.
13292 * htl/pt-testcancel.c: Likewise.
13293 * htl/pt-yield.c: Likewise.
13294 * htl/tests/test-1.c: Likewise.
13295 * htl/tests/test-10.c: Likewise.
13296 * htl/tests/test-11.c: Likewise.
13297 * htl/tests/test-12.c: Likewise.
13298 * htl/tests/test-13.c: Likewise.
13299 * htl/tests/test-14.c: Likewise.
13300 * htl/tests/test-15.c: Likewise.
13301 * htl/tests/test-16.c: Likewise.
13302 * htl/tests/test-17.c: Likewise.
13303 * htl/tests/test-2.c: Likewise.
13304 * htl/tests/test-3.c: Likewise.
13305 * htl/tests/test-4.c: Likewise.
13306 * htl/tests/test-5.c: Likewise.
13307 * htl/tests/test-6.c: Likewise.
13308 * htl/tests/test-7.c: Likewise.
13309 * htl/tests/test-8.c: Likewise.
13310 * htl/tests/test-9.c: Likewise.
13311 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13312 * sysdeps/htl/bits/cancelation.h: Likewise.
13313 * sysdeps/htl/bits/pthread-np.h: Likewise.
13314 * sysdeps/htl/bits/pthread.h: Likewise.
13315 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13316 * sysdeps/htl/bits/semaphore.h: Likewise.
13317 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13318 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13319 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13320 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13321 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13322 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13323 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13324 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13325 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13326 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13327 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13328 * sysdeps/htl/old_pt-atfork.c: Likewise.
13329 * sysdeps/htl/pt-atfork.c: Likewise.
13330 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13331 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13332 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13333 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13334 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13335 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13336 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13337 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13338 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13339 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13340 * sysdeps/htl/pt-attr-init.c: Likewise.
13341 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13342 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13343 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13344 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13345 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13346 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13347 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13348 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13349 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13350 * sysdeps/htl/pt-attr.c: Likewise.
13351 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13352 * sysdeps/htl/pt-barrier-init.c: Likewise.
13353 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13354 * sysdeps/htl/pt-barrier.c: Likewise.
13355 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13356 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13357 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13358 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13359 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13360 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13361 * sysdeps/htl/pt-cond-init.c: Likewise.
13362 * sysdeps/htl/pt-cond-signal.c: Likewise.
13363 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13364 * sysdeps/htl/pt-cond-wait.c: Likewise.
13365 * sysdeps/htl/pt-cond.c: Likewise.
13366 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13367 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13368 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13369 * sysdeps/htl/pt-condattr-init.c: Likewise.
13370 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13371 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13372 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13373 * sysdeps/htl/pt-equal.c: Likewise.
13374 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13375 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13376 * sysdeps/htl/pt-getschedparam.c: Likewise.
13377 * sysdeps/htl/pt-getspecific.c: Likewise.
13378 * sysdeps/htl/pt-init-specific.c: Likewise.
13379 * sysdeps/htl/pt-key-create.c: Likewise.
13380 * sysdeps/htl/pt-key-delete.c: Likewise.
13381 * sysdeps/htl/pt-key.h: Likewise.
13382 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13383 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13384 * sysdeps/htl/pt-mutex-init.c: Likewise.
13385 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13386 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13387 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13388 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13389 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13390 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13391 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13392 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13393 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13394 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13395 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13396 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13397 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13398 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13399 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13400 * sysdeps/htl/pt-mutexattr.c: Likewise.
13401 * sysdeps/htl/pt-once.c: Likewise.
13402 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13403 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13404 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13405 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13406 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13407 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13408 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13409 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13410 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13411 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13412 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13413 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13414 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13415 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13416 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13417 * sysdeps/htl/pt-setschedparam.c: Likewise.
13418 * sysdeps/htl/pt-setschedprio.c: Likewise.
13419 * sysdeps/htl/pt-setspecific.c: Likewise.
13420 * sysdeps/htl/pt-spin.c: Likewise.
13421 * sysdeps/htl/pt-startup.c: Likewise.
13422 * sysdeps/htl/pthread.h: Likewise.
13423 * sysdeps/htl/sem-close.c: Likewise.
13424 * sysdeps/htl/sem-destroy.c: Likewise.
13425 * sysdeps/htl/sem-getvalue.c: Likewise.
13426 * sysdeps/htl/sem-init.c: Likewise.
13427 * sysdeps/htl/sem-open.c: Likewise.
13428 * sysdeps/htl/sem-post.c: Likewise.
13429 * sysdeps/htl/sem-timedwait.c: Likewise.
13430 * sysdeps/htl/sem-trywait.c: Likewise.
13431 * sysdeps/htl/sem-unlink.c: Likewise.
13432 * sysdeps/htl/sem-wait.c: Likewise.
13433 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13434 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13435 * sysdeps/mach/htl/pt-block.c: Likewise.
13436 * sysdeps/mach/htl/pt-spin.c: Likewise.
13437 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13438 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13439 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13440 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13441 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13442 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13443 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13444 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13445 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13446 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13447 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13448 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13449 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13450 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13451 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13452 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13453 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13454 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13455 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13456 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13457 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13458 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13459 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13460 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13461 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13462 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13463 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13464 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13465 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13466 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13467 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13468 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13469 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13470 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13471 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13472 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13473 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13474 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13475 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13476 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13477 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13478 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13479 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13480
13481 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13482 * README: Remove the mention of out-of-tree patches needed for
13483 GNU/Hurd.
13484
13485 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13486 (UTIME_NOW, UTIME_OMIT): Define macros.
13487
13488 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13489 instead of pthread_detach.
13490 (__cthread_fork): Call __pthread_create instead of pthread_create.
13491 (__cthread_keycreate): Call __pthread_key_create instead of
13492 pthread_key_create.
13493 (__cthread_getspecific): Call __pthread_getspecific instead of
13494 pthread_getspecific.
13495 (__cthread_setspecific): Call __pthread_setspecific instead of
13496 pthread_setspecific.
13497 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13498 __pthread_mutex_unlock instead of pthread_mutex_lock and
13499 pthread_mutex_unlock.
13500 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13501 ___pthread_get_cleanup_stack.
13502 (__pthread_get_cleanup_stack): New strong alias.
13503 * htl/pt-create.c: Include <pthreadP.h>.
13504 (entry_point): Call __pthread_exit instead of pthread_exit.
13505 (pthread_create): Rename to __pthread_create.
13506 (pthread_create): New strong alias.
13507 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13508 (pthread_detach): New strong alias.
13509 (__pthread_detach): Call __pthread_cond_broadcast instead of
13510 pthread_cond_broadcast.
13511 * htl/pt-exit.c: Include <pthreadP.h>.
13512 (__pthread_exit): Call __pthread_setcancelstate and
13513 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13514 __pthread_get_cleanup_stack.
13515 * htl/pt-testcancel.c: Include <pthreadP.h>.
13516 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13517 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13518 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13519 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13520 pthread_attr_getstacksize.
13521 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13522 Rename to __pthread_attr_getstackaddr.
13523 (pthread_attr_getstackaddr): New strong alias.
13524 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13525 Rename to __pthread_attr_getstacksize.
13526 (pthread_attr_getstacksize): New strong alias.
13527 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13528 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13529 (pthread_attr_setstack): New strong alias.
13530 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13531 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13532 pthread_attr_getstacksize, pthread_attr_setstacksize and
13533 pthread_attr_setstackaddr.
13534 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13535 Rename to __pthread_attr_setstackaddr.
13536 (pthread_attr_setstackaddr): New strong alias.
13537 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13538 Rename to __pthread_attr_setstacksize.
13539 (pthread_attr_setstacksize): New strong alias.
13540 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13541 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13542 pthread_exit.
13543 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13544 (__pthread_key_create): New hidden def.
13545 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13546 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13547 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13548 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13549 __pthread_setspecific, __pthread_setcancelstate,
13550 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13551 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13552 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13553 declarations.
13554 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13555 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13556 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13557 (pthread_attr_setstackaddr): New strong alias.
13558 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13559 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13560 (pthread_attr_setstacksize): New strong alias.
13561 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13562 (call_exit): Call __pthread_exit instead of pthread_exit.
13563 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13564 (_pthread_mutex_init): New hidden definition.
13565 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13566 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13567 instead of pthread_attr_init and pthread_attr_setstack.
13568
13569 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13570 __vm_deallocate instead of vm_allocate and vm_deallocate.
13571 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13572 setenv.
13573 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13574 of geteuid.
13575 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13576 strdup.
13577 * hurd/siginfo.c: Include <libioP.h>.
13578 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13579 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13580 munmap.
13581 * mach/devstream.c: Include <libioP.h>.
13582 (dealloc_ref): Call __mach_port_deallocate instead of
13583 mach_port_deallocate.
13584 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13585 Call __mach_port_deallocate instead of mach_port_deallocate.
13586 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13587 pathconf.
13588 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13589 munmap.
13590 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13591 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13592 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13593 of munmap.
13594 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13595 of close.
13596 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13597 instead of sysconf.
13598 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13599 __clock_gettime instead of clock_gettime.
13600 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13601 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13602 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13603 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13604 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13605 tcgetattr.
13606 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13607 __clock_gettime and __nanosleep instead of clock_gettime and
13608 nanosleep.
13609 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13610 __hurd_catch_signal.
13611 (hurd_catch_signal): New strong alias.
13612 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13613 __hurd_catch_signal instead of hurd_catch_signal.
13614 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13615 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13616 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13617 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13618 (_hurd_thread_sigstate): Add hidden def.
13619 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13620 mutex_unlock.
13621 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13622 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13623 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13624 __hurd_file_name_path_lookup.
13625 (hurd_file_name_path_lookup): New strong alias.
13626 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13627 hurd_file_name_path_lookup.
13628 * mach/errstring.c (mach_error_type): Add hidden def.
13629 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13630 * mach/mutex-init.c (__mutex_init): Add hidden def.
13631 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13632 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13633 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13634 * sysdeps/mach/hurd/getcwd.c
13635 (_hurd_canonicalize_directory_name_internal): Rename to
13636 __hurd_canonicalize_directory_name_internal.
13637 (_hurd_canonicalize_directory_name_internal): New strong alias.
13638 (__canonicalize_directory_name_internal, __getcwd): Call
13639 __hurd_canonicalize_directory_name_internal instead of
13640 _hurd_canonicalize_directory_name_internal.
13641 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13642 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13643 hidden defs.
13644 * sysdeps/hurd/include/hurd.h: New file.
13645 * sysdeps/hurd/include/hurd/fd.h: New file.
13646 * sysdeps/hurd/include/hurd/signal.h: New file.
13647 * sysdeps/mach/include/lock-intern.h: New file.
13648 * sysdeps/mach/include/mach.h: New file.
13649 * sysdeps/mach/include/mach/mig_support.h: New file.
13650 * sysdeps/mach/include/mach_error.h: New file.
13651 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13652 prototype.
13653 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13654 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13655 _HEADER_H_HIDDEN_DEF macro.
13656 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13657 _hurd_fd_error_signal): Add hidden prototype.
13658 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13659 hidden def.
13660 * libio/iolibio.h (_IO_puts): New hidden prototype.
13661 * libio/ioputs.c (_IO_puts): New hidden def.
13662 * sysdeps/mach/hurd/localplt.data: New file.
13663
13664 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13665 Amos Jeffries <squid3@treenet.co.nz>
13666 David Michael <fedora.dm0@gmail.com>
13667 Marco Gerards <marco@gnu.org>
13668 Marcus Brinkmann <marcus@gnu.org>
13669 Neal H. Walfield <neal@gnu.org>
13670 Pino Toscano <toscano.pino@tiscali.it>
13671 Richard Braun <rbraun@sceen.net>
13672 Roland McGrath <roland@gnu.org>
13673 Samuel Thibault <samuel.thibault@ens-lyon.org>
13674 Thomas DiModica <ricinwich@yahoo.com>
13675 Thomas Schwinge <tschwinge@gnu.org>
13676
13677 * htl: New directory.
13678 * sysdeps/htl: New directory.
13679 * sysdeps/hurd/htl: New directory.
13680 * sysdeps/i386/htl: New directory.
13681 * sysdeps/mach/htl: New directory.
13682 * sysdeps/mach/hurd/htl: New directory.
13683 * sysdeps/mach/hurd/i386/htl: New directory.
13684 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13685 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13686 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13687
13688 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13689
13690 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13691 signals in thread created for runing timers.
13692
13693 2018-04-01 Florian Weimer <fweimer@redhat.com>
13694
13695 * support/support_format_addrinfo.c (support_format_addrinfo):
13696 Include unknown error number in formatted result.
13697
13698 2018-03-29 Florian Weimer <fweimer@redhat.com>
13699
13700 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13701 capture SIGBUS.
13702
13703 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13704
13705 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13706 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13707 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13708 (__ASSUME_CLONE_BACKWARDS): Define.
13709
13710 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13711
13712 [BZ #23024]
13713 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13714 early when linux sentinel value is set.
13715
13716 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13717
13718 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13719
13720 2018-03-27 Andreas Schwab <schwab@suse.de>
13721
13722 [BZ #23005]
13723 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13724 allocation of private copy of nsaddr_list fails.
13725
13726 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13727
13728 [BZ #16552]
13729 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13730 * sysdeps/unix/sysv/linux/umount.c: ... here.
13731 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13732 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13733 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13734 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13736 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13737 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13738
13739 2018-03-26 Andreas Schwab <schwab@suse.de>
13740
13741 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13742 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13743 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13744 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13745 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13746 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13747 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13748 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13749 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13750 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13751 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13752 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13753 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13754 (R_RISCV_NUM): Define.
13755
13756 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13757
13758 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13759 TLS declaration of errno.
13760 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13761 __libc_setup_tls.
13762 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13763 (ARCH_SETUP_TLS): Likewise.
13764 * sysdeps/mach/hurd/libc-start.h: New file copied from
13765 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13766 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13767 instead of __libc_setup_tls.
13768 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13769 __libc_setup_tls before initializing libpthread and running _hurd_init
13770 which starts the signal thread.
13771 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13772 Declare function.
13773 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13774
13775 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13776
13777 [BZ #22998]
13778 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13779 after it is defined.
13780
13781 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13782 Max Horn <max@quendi.de>
13783
13784 [BZ #22644]
13785 CVE-2017-18269
13786 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13787 branch conditions.
13788 * string/test-memmove.c (do_test2): New testcase.
13789
13790 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13791
13792 * sysdeps/generic/frame.h: Remove file.
13793 * sysdeps/arm/frame.h: Likewise.
13794 * sysdeps/hppa/frame.h: Likewise.
13795 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13796 macro.
13797 (GET_FRAME): Likewise.
13798 (GET_STACK): Likewise.
13799 (CALL_SIGHANDLER): Likewise.
13800 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13801 Likewise.
13802 (GET_FRAME): Likewise.
13803 (GET_STACK): Likewise.
13804 (CALL_SIGHANDLER): Likewise.
13805 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13806 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13807 (GET_FRAME): Likewise.
13808 (GET_STACK): Likewise.
13809 (CALL_SIGHANDLER): Likewise.
13810 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13811 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13812 (GET_FRAME): Likewise.
13813 (GET_STACK): Likewise.
13814 (ADVANCE_STACK_FRAME): Likewise.
13815 (CALL_SIGHANDLER): Likewise.
13816 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13817 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13818 (GET_FRAME): Likewise.
13819 (GET_STACK): Likewise.
13820 (CALL_SIGHANDLER): Likewise.
13821 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13822 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13823 (GET_FRAME): Likewise.
13824 (GET_STACK): Likewise.
13825 (CALL_SIGHANDLER): Likewise.
13826 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13827 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13828 (GET_FRAME): Likewise.
13829 (GET_STACK): Likewise.
13830 (CALL_SIGHANDLER): Likewise.
13831 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13832 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13833 (GET_FRAME): Likewise.
13834 (GET_STACK): Likewise.
13835 (CALL_SIGHANDLER): Likewise.
13836 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13837 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13838 (GET_FRAME): Likewise.
13839 (GET_STACK): Likewise.
13840 (CALL_SIGHANDLER): Likewise.
13841 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13842 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13843 (GET_FRAME): Likewise.
13844 (GET_STACK): Likewise.
13845 (CALL_SIGHANDLER): Likewise.
13846 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13847 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13848 (GET_FRAME): Likewise.
13849 (GET_STACK): Likewise.
13850 (CALL_SIGHANDLER): Likewise.
13851 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13852 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13853 (GET_FRAME): Likewise.
13854 (GET_STACK): Likewise.
13855 (CALL_SIGHANDLER): Likewise.
13856 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13857 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13858 (GET_FRAME): Likewise.
13859 (GET_STACK): Likewise.
13860 (CALL_SIGHANDLER): Likewise.
13861 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13862 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13863 (FIRST_FRAME_POINTER): Likewise.
13864 (ADVANCE_STACK_FRAME): Likewise.
13865 (GET_STACK): Likewise.
13866 (GET_FRAME): Likewise.
13867 (CALL_SIGHANDLER): Likewise.
13868 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13869 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13870 (ADVANCE_STACK_FRAME): Likewise.
13871 (GET_STACK): Likewise.
13872 (GET_FRAME): Likewise.
13873 (CALL_SIGHANDLER): Likewise.
13874 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13875 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13876 (GET_FRAME): Likewise.
13877 (GET_STACK): Likewise.
13878 (CALL_SIGHANDLER): Likewise.
13879 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13880 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13881 (GET_FRAME): Likewise.
13882 (GET_STACK): Likewise.
13883 (CALL_SIGHANDLER): Likewise.
13884
13885 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13886
13887 * sysdeps/x86_64/backtrace.c: Move to ....
13888 * debug/backtrace.c: ... here.
13889 * sysdeps/aarch64/backtrace.c: Remove file.
13890 * sysdeps/alpha/backtrace.c: Likewise.
13891 * sysdeps/hppa/backtrace.c: Likewise.
13892 * sysdeps/ia64/backtrace.c: Likewise.
13893 * sysdeps/mips/backtrace.c: Likewise.
13894 * sysdeps/nios2/backtrace.c: Likewise.
13895 * sysdeps/riscv/backtrace.c: Likewise.
13896 * sysdeps/sh/backtrace.c: Likewise.
13897 * sysdeps/tile/backtrace.c: Likewise.
13898
13899 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13900
13901 [BZ #22987]
13902 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13903 function.
13904 (fdimf): Likewise.
13905 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13906
13907 [BZ #17343]
13908 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13909 possibly overflowing computations.
13910
13911 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13912
13913 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13914 values from Linux-specific section now that it is in the GNU section.
13915 * sysdeps/gnu/errlist.c: Regenerate.
13916
13917 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13918
13919 * math/Makefile (libm-narrow-fns): Add sub.
13920 (libm-test-funcs-narrow): Likewise.
13921 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13922 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13923 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13924 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13925 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13926 (NARROW_SUB_TRIVIAL): Likewise.
13927 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13928 macro.
13929 (__dsubl): Likewise.
13930 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13931 dsub.
13932 (CFLAGS-nldbl-dsub.c): New variable.
13933 (CFLAGS-nldbl-fsub.c): Likewise.
13934 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13935 __nldbl_dsubl.
13936 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13937 prototype.
13938 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13939 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13940 * math/auto-libm-test-in: Add tests of sub.
13941 * math/auto-libm-test-out-narrow-sub: New generated file.
13942 * math/libm-test-narrow-sub.inc: New file.
13943 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13944 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13945 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13946 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13947 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13948 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13949 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13950 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13951 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13952 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13953 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13954 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13955 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13956 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13957 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13958 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13959 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13960 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13961 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13962 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13963 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13964 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13965 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13966 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13969 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13970 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13984 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13989
13990 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13991
13992 [BZ #20079]
13993 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13994
13995 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13996
13997 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13998
13999 2018-03-18 Richard Braun <rbraun@sceen.net>
14000
14001 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14002 thread reference.
14003
14004 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14005
14006 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14007 (__libc_cleanup_fct): Define function.
14008 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14009 __libc_cleanup_end): Rewrite implementation using
14010 __attribute__ ((__cleanup__)).
14011 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14012 * hurd/Makefile (routines): Add hurdlock.
14013 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14014 interface.
14015 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14016 * hurd/hurdpid.c: Include <lowlevellock.h>
14017 (_S_msg_proc_newids): Use lll_wait to synchronize.
14018 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14019 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14020 * mach/Makefile (lock-headers): Remove machine-lock.h.
14021 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14022 <machine-lock.h>.
14023 (__spin_lock_t): New type.
14024 (__SPIN_LOCK_INITIALIZER): New macro.
14025 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14026 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14027 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14028 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14029 (__mutex_init): Initialize with lll.
14030 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14031 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14032 needing lll.
14033 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14034 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14035 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14036 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14037 (__setpgid): Use lll for synchronization.
14038 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14039 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14040 instead of <cthreads.h>.
14041 (_IO_lock_inexpensive): New macro
14042 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14043 (__libc_lock_self0): New declaration.
14044 (__libc_lock_owner_self): New macro.
14045 (__libc_key_t): Remove type.
14046 (_LIBC_LOCK_INITIALIZER): New macro.
14047 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14048 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14049 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14050 __libc_lock_define_initialized_recursive,
14051 __rtld_lock_define_initialized_recursive,
14052 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14053 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14054 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14055 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14056 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14057 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14058 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14059 New macros.
14060 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14061 * hurd/hurdlock.c: New file.
14062 * hurd/hurdlock.h: New file.
14063 * mach/lowlevellock.h: New file
14064
14065 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14066
14067 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14068 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14069 when opening a symlink with O_NOFOLLOW.
14070 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14071 path when flags contains O_NOFOLLOW.
14072 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14073 if flags contains O_DIRECTORY and the result is a directory.
14074 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14075 oneself when the pointer given in D is nul (as set by ext2fs).
14076 * sysdeps/mach/hurd/mlockall.c: New file.
14077 * sysdeps/mach/hurd/munlockall.c: New file.
14078
14079 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14080
14081 * hurd/hurdsig.c: Include <pthread.h>.
14082 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14083 get the signal thread stack layout.
14084 * hurd/Makefile (headers): Remove threadvar.h.
14085 (inline-headers): Remove threadvar.h.
14086 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14087 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14088 __hurd_threadvar_max, __hurd_errno_location.
14089 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14090 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14091 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14092 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14093 unless TLS is not initialized yet, in which case we do not need a
14094 critical section yet anyway.
14095 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14096 <machine-sp.h>.
14097 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14098 declarations.
14099 (__hurd_threadvar_index): Remove enum.
14100 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14101 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14102 inlines.
14103 (__hurd_reply_port0): New variable declaration.
14104 (__hurd_local_reply_port): New macro.
14105 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14106 (interrupted_reply_port_location): Add thread_t parameter. Use it
14107 with THREAD_TCB to access thread-local variables.
14108 (_hurdsig_abort_rpcs): Pass ss->thread to
14109 interrupted_reply_port_location.
14110 (_hurd_internal_post_signal): Likewise.
14111 (_hurdsig_init): Use presence of cthread_fork instead of
14112 __hurd_threadvar_stack_mask to start signal thread by hand.
14113 Remove signal thread threadvar initialization.
14114 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14115 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14116 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14117 of threadvar.
14118 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14119 __libc_lock_self0.
14120 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14121 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14122 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14123 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14124 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14125 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14126 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14127 define variables.
14128 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14129 <hurd/threadvar.h>.
14130 [IS_IN(rtld)] (rtld_errno): New variable.
14131 [IS_IN(rtld)] (__errno_location): New weak function.
14132 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14133 * sysdeps/mach/hurd/errno.c: Remove file.
14134 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14135 (__fork): Remove THREADVAR_SPACE macro and its use.
14136 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14137 variable.
14138 (init): Do not initialize threadvar.
14139 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14140 symbol.
14141 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14142 __hurd_local_reply_port instead of threadvar.
14143 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14144 _hurd_sigstate fields.
14145 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14146 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14147 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14148 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14149 instead of threadvar.
14150 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14151 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14152 (use_threadvar, global_reply_port): Remove variables.
14153 (__hurd_reply_port0): New variable.
14154 (__mig_get_reply_port): Use __hurd_local_reply_port and
14155 __hurd_reply_port0 instead of threadvar.
14156 (__mig_dealloc_reply_port): Likewise.
14157 (__mig_init): Do not initialize threadvar.
14158 * sysdeps/mach/hurd/profil.c: Fix comment.
14159 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14160 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14161 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14162 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14163 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14164 __cthread_setspecific.
14165 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14166 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14167 __cthread_t instead of cthread_fork, cthread_detach,
14168 pthread_getattr_np, pthread_attr_getstack.
14169 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14170 __cthread_keycreate.
14171 (cthread_getspecific): Rename to __cthread_getspecific.
14172 (cthread_setspecific): Rename to __cthread_setspecific.
14173 (__libc_getspecific): Use __cthread_getspecific instead of
14174 cthread_getspecific.
14175 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14176 __cthread_keycreate instead of cthread_keycreate.
14177 (__libc_setspecific): Use __cthread_setspecific instead of
14178 cthread_setspecific.
14179 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14180 Likewise.
14181 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14182 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14183 testing whether it is defined.
14184
14185 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14186
14187 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14188 Define macro.
14189 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14190 * sysdeps/mach/i386/thread_state.h
14191 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14192 i386_THREAD_STATE.
14193 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14194 i386_THREAD_STATE.
14195 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14196
14197 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14198 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14199
14200 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14201 macros.
14202 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14203 descriptor instead of creating a new one.
14204 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14205
14206 * mach/setup-thread.c: Include <ldsodefs.h>.
14207 (__mach_setup_thread): Call _dl_allocate_tls, pass
14208 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14209 MACHINE_THREAD_STATE_FLAVOR, before getting
14210 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14211 MACHINE_THREAD_STATE_FLAVOR with the result.
14212 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14213 MACHINE_THREAD_STATE_FIX_NEW.
14214 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14215 too. Add original thread parameter.
14216
14217 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14218
14219 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14220 Remove inline function.
14221
14222 * sysdeps/i386/fpu/libm-test-ulps: Update.
14223 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14224
14225 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14226
14227 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14228 commit.
14229
14230 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14231
14232 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14233 (__sincos_code): Remove define and undefine.
14234 [__FAST_MATH__] (__sincos): Remove inline function.
14235 [__FAST_MATH__] (__sincosf): Remove inline function.
14236 [__FAST_MATH__] (__sincosl): Remove inline function.
14237 (__atan2l): Remove inline functions.
14238 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14239 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14240 function.
14241 (floor): Remove inline function.
14242 (ceil): Likewise.
14243 [__FAST_MATH__] (__ldexp_code): Remove macro.
14244 [__FAST_MATH__] (ldexp): Remove inline function.
14245 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14246 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14247 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14248 [__USE_ISOC99] (__lrint_code): Remove macro.
14249 [__USE_ISOC99] (__llrint_code): Likewise.
14250 [__USE_ISOC99] (lrintf): Remove inline function.
14251 [__USE_ISOC99] (lrint): Likewise.
14252 [__USE_ISOC99] (lrintl): Likewise.
14253 [__USE_ISOC99] (llrint): Likewise.
14254 [__USE_ISOC99] (llrintf): Likewise.
14255 [__USE_ISOC99] (llrintl): Likewise.
14256
14257 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14258
14259 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14260 (__ieee754_sqrtf): Remove.
14261 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14262 (__ieee754_sqrtf): Remove.
14263 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14264 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14265 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14266 (__ieee754_sqrtf): Remove.
14267 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14268 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14269 (sqrtf): Remove.
14270 (sqrtl): Remove.
14271 (__ieee754_sqrt): Remove.
14272 (__ieee754_sqrtf): Remove.
14273 (__ieee754_sqrtl): Remove.
14274 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14275 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14276 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14277 (__ieee754_sqrtf): Remove.
14278 (__ieee754_sqrtl): Remove.
14279
14280 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14281
14282 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14283 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14284 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14285 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14286 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14287 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14288 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14289 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14290 Likewise.
14291 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14292 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14293 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14294 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14295 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14296 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14297 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14298 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14299 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14300 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14301 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14302 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14303 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14304 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14305 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14306 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14307 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14308 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14309 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14310 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14311 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14312 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14313 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14314 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14315 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14316 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14317 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14318 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14319 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14320 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14321 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14322 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14323 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14324 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14325 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14326 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14327 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14328 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14329 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14330 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14331
14332 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14333
14334 * include/math.h (sqrt): Declare with asm redirect.
14335 (sqrtf): Likewise.
14336 (sqrtl): Likewise.
14337 (sqrtf128): Likewise.
14338 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14339 nonlib and libnldbl with -fmath-errno.
14340 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14341 * math/w_sqrt_template.c: Likewise.
14342 * math/w_sqrtf_compat.c: Likewise.
14343 * math/w_sqrtl_compat.c: Likewise.
14344 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14345 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14346 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14347 complex.h.
14348
14349 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14350
14351 * benchtests/Makefile: Define _ISOMAC.
14352 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14353 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14354 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14355 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14356 * benchtests/bench-timing.h: Define attribute_hidden.
14357
14358 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14359
14360 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14361 mov + lsr.
14362
14363 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14364
14365 [BZ #22963]
14366 * localedata/locales/cs_CZ (mon): Rename to...
14367 (alt_mon): This.
14368 (mon): Import from CLDR (genitive case).
14369
14370 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14371
14372 [BZ #22937]
14373 * localedata/locales/el_CY (abmon): Rename to...
14374 (ab_alt_mon): This.
14375 (abmon): Import from CLDR (abbreviated genitive case).
14376 * localedata/locales/el_GR (abmon): Rename to...
14377 (ab_alt_mon): This.
14378 (abmon): Import from CLDR (abbreviated genitive case).
14379
14380 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14381
14382 [BZ #22932]
14383 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14384
14385 2018-03-15 Robert Buj <robert.buj@gmail.com>
14386
14387 [BZ #22848]
14388 * localedata/locales/ca_ES (abmon): Rename to...
14389 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14390 (mon): Rename to...
14391 (alt_mon): This.
14392 (abmon): Import from CLDR (genitive case, month names preceded by
14393 "de" or "d’").
14394 (mon): Likewise.
14395 (abday): Synchronize with CLDR.
14396 (d_t_fmt): Likewise.
14397 (d_fmt): Likewise.
14398 (am_pm): Likewise.
14399
14400 (LC_TIME): Improve indentation.
14401 (LC_TELEPHONE): Likewise.
14402 (LC_NAME): Likewise.
14403 (LC_ADDRESS): Likewise.
14404
14405 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14406
14407 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14408 (lrintf): Remove definitions used only with old GCC.
14409 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14410 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14411 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14412 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14413 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14414 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14415 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14416 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14417 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14418 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14419 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14420 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14421 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14422 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14423 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14424 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14425 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14426 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14427 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14428 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14429 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14430 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14431 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14432 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14433 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14434 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14435 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14436 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14437
14438 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14439
14440 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14441 instruction to unbreak builds with binutils 2.26 and older.
14442
14443 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14444
14445 * sysdeps/aarch64/strncmp.S (count): New macro.
14446 (strncmp): Store misaligned length in SRC1 in COUNT.
14447 (mutual_align): Adjust.
14448 (misaligned8): Load dword at a time when it is safe.
14449
14450 2018-03-12 Zack Weinberg <zackw@panix.com>
14451
14452 [BZ #1190]
14453 [BZ #19476]
14454 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14455 if the _IO_EOF_SEEN bit is already set; update commentary.
14456 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14457 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14458
14459 * support/support_openpty.c, support/tty.h: New files.
14460 * support/Makefile (libsupport-routines): Add support_openpty.
14461
14462 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14463 New test cases.
14464 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14465 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14466
14467 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14468
14469 * po/pt_BR.po: Update translations.
14470
14471 2018-03-12 David Michael <fedora.dm0@gmail.com>
14472
14473 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14474 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14475 get a port to the startup server.
14476
14477 2018-03-11 Zack Weinberg <zackw@panix.com>
14478
14479 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14480 before nldbl-compat.h.
14481
14482 2018-03-10 Zack Weinberg <zackw@panix.com>
14483
14484 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14485 math.h or math_private.h.
14486
14487 * sysdeps/alpha/fpu/s_isnan.c
14488 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14489 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14490 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14491 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14492 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14493 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14494 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14495 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14496 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14499 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14500 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14501 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14502 Include math_private.h.
14503
14504 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14505 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14506 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14507 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14508 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14509 * sysdeps/powerpc/power7/fpu/s_logb.c:
14510 Include math.h and math_private.h.
14511
14512 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14513 uses of $at in .set noat / .set at.
14514
14515 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14516
14517 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14518 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14519 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14520 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14521 Likewise.
14522
14523 2018-03-09 Florian Weimer <fweimer@redhat.com>
14524
14525 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14526 in comment.
14527
14528 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14529
14530 [BZ #22919]
14531 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14532 Add nop before __startcontext, add explaining comments.
14533
14534 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14535
14536 [BZ #22926]
14537 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14538 empty for __SPE__.
14539 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14540 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14541 Do not build hardware transactional code for __SPE__.
14542 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14543 (__lll_trylock_elision): Likewise.
14544 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14545 (__lll_unlock_elision): Likewise.
14546
14547 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14548 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14549 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14550 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14551 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14552 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14553 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14554 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14555 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14556 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14557 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14558 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14559 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14560 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14561 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14562 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14563 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14564 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14565 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14566 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14567 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14568 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14569 (__ASSUME_CLONE_BACKWARDS): Define.
14570 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14571 __clone2 if __NR_clone2 is defined.
14572 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14573 (__ASSUME_CLONE_BACKWARDS): Likewise.
14574 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14575 (__ASSUME_CLONE_BACKWARDS): Likewise.
14576 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14577 (__ASSUME_CLONE2): Likewise.
14578 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14579 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14580 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14581 variants and the define architecture can use.
14582 (__ASSUME_CLONE_DEFAULT): Define as default.
14583 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14584 (__ASSUME_CLONE_BACKWARDS): Likewise.
14585 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14586 (__ASSUME_CLONE_BACKWARDS): Likewise.
14587 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14588 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14589
14590 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14591
14592 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14593
14594 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14595 time.
14596
14597 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14598 (do_test_limit): Likewise.
14599
14600 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14601 for every implementation.
14602 (do_test): Likewise.
14603
14604 * benchtests/bench-strncmp.c: Convert output to json.
14605
14606 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14607
14608 * io/futimens.c: Add missing start-of-file descriptive comment.
14609 * io/utime.c: Likewise.
14610 * misc/futimesat.c: Likewise.
14611 * misc/utimes.c: Likewise.
14612 * sysdeps/mach/hurd/futimesat.c: Likewise.
14613 * sysdeps/mach/hurd/utimes.c: Likewise.
14614 * sysdeps/posix/utime.c: Likewise.
14615 * sysdeps/posix/utimes.c: Likewise.
14616 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14617 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14618 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14619 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14620
14621 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14622
14623 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14624 hurd_futimes.
14625 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14626 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14627 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14628 (__futimens): Move implementation to...
14629 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14630 utime_tvalue_from_tspec): ... new helper functions.
14631 (hurd_futimens): New function.
14632 * sysdeps/mach/hurd/futimesat.c: New file.
14633 * sysdeps/mach/hurd/utimensat.c: New file.
14634
14635 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14636
14637 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14638 UTIME_OMIT): New macros.
14639 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14640 before reverting to converting time spec to time value and calling
14641 __file_utimes.
14642 * sysdeps/mach/hurd/utime-helper.c: New file.
14643 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14644 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14645 reverting to utime_tvalue_from_tval and __file_utimes.
14646 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14647 (__lutimes): Just call hurd_futimens after lookup.
14648 * sysdeps/mach/hurd/utimes.c: Likewise.
14649
14650 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14651
14652 * bits/sigaction.h: Add include guard.
14653 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14654 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14655 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14656 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14657 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14658 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14659 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14660 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14661 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14662
14663 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14664
14665 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14666 -Wmaybe-uninitialized for -Os.
14667 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14668 this disabling.
14669
14670 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14671
14672 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14673 __INO_T_MATCHES_INO64_T is defined.
14674 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14675 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14676 of definition.
14677 * dirent/alphasort64.c: Likewise.
14678 * dirent/scandir.c: Likewise.
14679 * dirent/scandir64-tail.c: Likewise.
14680 * dirent/scandir64.c: Likewise.
14681 * dirent/scandirat.c: Likewise.
14682 * dirent/scandirat64.c: Likewise.
14683 * dirent/versionsort.c: Likewise.
14684 * dirent/versionsort64.c: Likewise.
14685 * include/dirent.h: Likewise.
14686
14687 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14688 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14689 for socketpair endpoint.
14690 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14691 WRITE_BUFFER_SIZE as buffer size for sending socket.
14692 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14693 issue on system where send is implemented with sendto syscall.
14694 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14695 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14696 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14697 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14698
14699 [BZ #21269]
14700 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14701 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14702 sa_restorer for vDSO case.
14703 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14704
14705 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14706
14707 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14708 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14709 * hurd/hurd/ioctl.h: Include <mach/port.h>
14710 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14711 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14712 <mach/mach_types.h> and <mach/message.h>.
14713 (headers): Move mach/param.h to bits/mach/param.h.
14714 * sysdeps/mach/i386/mach/param.h: Move file to ...
14715 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14716 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14717 of <mach/param.h>.
14718 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14719 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14720 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14721 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14722 trivial, for C++ conformity.
14723 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14724 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14725 Process mig output through $(migheadersed).
14726 * hurd/Makefile (migheadersed): Define variable.
14727 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14728 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14729 headers.
14730 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14731 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14732 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14733 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14734 <bits/types/sigset_t.h>.
14735 [!defined __USE_GNU]: Do not #error out.
14736 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14737 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14738 Include <stddef.h> and <bits/types/sigset_t.h>
14739 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14740 instead of sighandler_t.
14741 * stdlib/errno.h (error_t): Move definition to...
14742 * bits/types/error_t.h: ... new header.
14743 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14744 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14745 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14746 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14747 * hurd/hurd.h: Include <bits/types/error_t.h>
14748 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14749 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14750 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14751 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14752 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14753 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14754 * sysdeps/mach/hurd/futimens.c: New file.
14755
14756 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14757
14758 [BZ #22918]
14759 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14760 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14761 * nscd/gai.c (__nss_hosts_database): Readd definition.
14762 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14763 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14764 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14765
14766 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14767
14768 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14769 (ifunc_one): Likewise.
14770
14771 2018-03-01 DJ Delorie <dj@delorie.com>
14772
14773 [BZ #22342]
14774 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14775 key value.
14776
14777 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14778
14779 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14780 `match_pid' parameter.
14781 (td_ta_thr_iter): Update accordingly.
14782
14783 2018-03-01 Florian Weimer <fweimer@redhat.com>
14784
14785 * nptl/Makefile (install-lib-ldscripts): Remove.
14786 (install): Remove rule.
14787 ($(inst_libdir)/libpthread.so): Likewise.
14788
14789 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14790
14791 [BZ #22896]
14792 * localedata/locales/an_ES: update month and day names,
14793 improve d_fmt, improve postal_fmt, add country_post,
14794 add country_isbn
14795
14796 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14797
14798 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14799 Ukrainian instead of Bulgarian.
14800
14801 2018-03-01 Florian Weimer <fweimer@redhat.com>
14802
14803 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14804 reference.
14805
14806 2018-03-01 Florian Weimer <fweimer@redhat.com>
14807
14808 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14809 * nptl/Makefile (routines): Add pthread_atfork.
14810 (static-only-routines): Set to pthread_atfork.
14811 (libpthread-routines): Remove pthread_atfork.
14812 (libpthread-static-only-routines): Remove.
14813 (install): Update comment.
14814 (libpthread.so): Do not install libpthread_nonshared.a.
14815 (tests): Do not link with libpthread_nonshared.a.
14816 (generated): Remove libpthread_nonshared.a.
14817 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14818 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14819 with libpthread_nonshared.a.
14820
14821 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14822
14823 [BZ #22902]
14824 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14825 (libc_feholdexcept_setroundf128): New macro.
14826 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14827
14828 [BZ #15105]
14829 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14830 libc_hidden_def.
14831 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14832 * include/inttypes.h: New file.
14833
14834 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14835
14836 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14837 -Os in two more places.
14838
14839 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14840
14841 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14842 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14843 be sorted correctly at the moment because of a bug.
14844
14845 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14846
14847 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14848 treat ñ as a primary different character, sync the collation
14849 for Spanish with CLDR.
14850 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14851 * localedata/Makefile: Add new test files.
14852 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14853 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14854 collation order.
14855 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14856 * localedata/am_ET.UTF-8.in: New test file.
14857 * localedata/az_AZ.UTF-8.in: Likewise.
14858 * localedata/be_BY.UTF-8.in: Likewise.
14859 * localedata/ber_DZ.UTF-8.in: Likewise.
14860 * localedata/ber_MA.UTF-8.in: Likewise.
14861 * localedata/bg_BG.UTF-8.in: Likewise.
14862 * localedata/br_FR.UTF-8.in: Likewise.
14863 * localedata/cmn_TW.UTF-8.in: Likewise.
14864 * localedata/crh_UA.UTF-8.in: Likewise.
14865 * localedata/csb_PL.UTF-8.in: Likewise.
14866 * localedata/cv_RU.UTF-8.in: Likewise.
14867 * localedata/cy_GB.UTF-8.in: Likewise.
14868 * localedata/dz_BT.UTF-8.in: Likewise.
14869 * localedata/eo.UTF-8.in: Likewise.
14870 * localedata/es_ES.UTF-8.in: Likewise.
14871 * localedata/fa_IR.UTF-8.in: Likewise.
14872 * localedata/fi_FI.UTF-8.in: Likewise.
14873 * localedata/fil_PH.UTF-8.in: Likewise.
14874 * localedata/fur_IT.UTF-8.in: Likewise.
14875 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14876 * localedata/ha_NG.UTF-8.in: Likewise.
14877 * localedata/ig_NG.UTF-8.in: Likewise.
14878 * localedata/ik_CA.UTF-8.in: Likewise.
14879 * localedata/kk_KZ.UTF-8.in: Likewise.
14880 * localedata/ku_TR.UTF-8.in: Likewise.
14881 * localedata/ky_KG.UTF-8.in: Likewise.
14882 * localedata/ln_CD.UTF-8.in: Likewise.
14883 * localedata/mi_NZ.UTF-8.in: Likewise.
14884 * localedata/ml_IN.UTF-8.in: Likewise.
14885 * localedata/mn_MN.UTF-8.in: Likewise.
14886 * localedata/mr_IN.UTF-8.in: Likewise.
14887 * localedata/mt_MT.UTF-8.in: Likewise.
14888 * localedata/nb_NO.UTF-8.in: Likewise.
14889 * localedata/om_KE.UTF-8.in: Likewise.
14890 * localedata/os_RU.UTF-8.in: Likewise.
14891 * localedata/ps_AF.UTF-8.in: Likewise.
14892 * localedata/ro_RO.UTF-8.in: Likewise.
14893 * localedata/ru_RU.UTF-8.in: Likewise.
14894 * localedata/sc_IT.UTF-8.in: Likewise.
14895 * localedata/se_NO.UTF-8.in: Likewise.
14896 * localedata/sq_AL.UTF-8.in: Likewise.
14897 * localedata/sv_SE.UTF-8.in: Likewise.
14898 * localedata/szl_PL.UTF-8.in: Likewise.
14899 * localedata/tg_TJ.UTF-8.in: Likewise.
14900 * localedata/tk_TM.UTF-8.in: Likewise.
14901 * localedata/tt_RU.UTF-8.in: Likewise.
14902 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14903 * localedata/ug_CN.UTF-8.in: Likewise.
14904 * localedata/uz_UZ.UTF-8.in: Likewise.
14905 * localedata/vi_VN.UTF-8.in: Likewise.
14906 * localedata/yi_US.UTF-8.in: Likewise.
14907 * localedata/yo_NG.UTF-8.in: Likewise.
14908 * localedata/zh_CN.UTF-8.in: Likewise.
14909 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14910 file and fix bugs in the collation.
14911 * localedata/locales/az_AZ: Likewise.
14912 * localedata/locales/be_BY: Likewise.
14913 * localedata/locales/ber_DZ: Likewise.
14914 * localedata/locales/ber_MA: Likewise.
14915 * localedata/locales/bg_BG: Likewise.
14916 * localedata/locales/br_FR: Likewise.
14917 * localedata/locales/br_FR@euro: Likewise.
14918 * localedata/locales/ca_ES: Likewise.
14919 * localedata/locales/cns11643_stroke: Likewise.
14920 * localedata/locales/crh_UA: Likewise.
14921 * localedata/locales/cs_CZ: Likewise.
14922 * localedata/locales/csb_PL: Likewise.
14923 * localedata/locales/cv_RU: Likewise.
14924 * localedata/locales/cy_GB: Likewise.
14925 * localedata/locales/da_DK: Likewise.
14926 * localedata/locales/dz_BT: Likewise.
14927 * localedata/locales/en_CA: Likewise.
14928 * localedata/locales/eo: Likewise.
14929 * localedata/locales/es_CU: Likewise.
14930 * localedata/locales/es_EC: Likewise.
14931 * localedata/locales/es_ES: Likewise.
14932 * localedata/locales/es_US: Likewise.
14933 * localedata/locales/et_EE: Likewise.
14934 * localedata/locales/fa_IR: Likewise.
14935 * localedata/locales/fi_FI: Likewise.
14936 * localedata/locales/fil_PH: Likewise.
14937 * localedata/locales/fur_IT: Likewise.
14938 * localedata/locales/gez_ER@abegede: Likewise.
14939 * localedata/locales/ha_NG: Likewise.
14940 * localedata/locales/hr_HR: Likewise.
14941 * localedata/locales/hsb_DE: Likewise.
14942 * localedata/locales/hu_HU: Likewise.
14943 * localedata/locales/ig_NG: Likewise.
14944 * localedata/locales/ik_CA: Likewise.
14945 * localedata/locales/is_IS: Likewise.
14946 * localedata/locales/iso14651_t1_pinyin: Likewise.
14947 * localedata/locales/kk_KZ: Likewise.
14948 * localedata/locales/ku_TR: Likewise.
14949 * localedata/locales/ky_KG: Likewise.
14950 * localedata/locales/ln_CD: Likewise.
14951 * localedata/locales/lt_LT: Likewise.
14952 * localedata/locales/lv_LV: Likewise.
14953 * localedata/locales/mi_NZ: Likewise.
14954 * localedata/locales/ml_IN: Likewise.
14955 * localedata/locales/mn_MN: Likewise.
14956 * localedata/locales/mr_IN: Likewise.
14957 * localedata/locales/mt_MT: Likewise.
14958 * localedata/locales/nb_NO: Likewise.
14959 * localedata/locales/om_KE: Likewise.
14960 * localedata/locales/os_RU: Likewise.
14961 * localedata/locales/pl_PL: Likewise.
14962 * localedata/locales/ps_AF: Likewise.
14963 * localedata/locales/ro_RO: Likewise.
14964 * localedata/locales/ru_RU: Likewise.
14965 * localedata/locales/ru_UA: Likewise.
14966 * localedata/locales/sc_IT: Likewise.
14967 * localedata/locales/se_NO: Likewise.
14968 * localedata/locales/si_LK: Likewise.
14969 * localedata/locales/sq_AL: Likewise.
14970 * localedata/locales/sv_FI: Likewise.
14971 * localedata/locales/sv_FI@euro: Likewise.
14972 * localedata/locales/sv_SE: Likewise.
14973 * localedata/locales/szl_PL: Likewise.
14974 * localedata/locales/tg_TJ: Likewise.
14975 * localedata/locales/ti_ER: Likewise.
14976 * localedata/locales/tk_TM: Likewise.
14977 * localedata/locales/tl_PH: Likewise.
14978 * localedata/locales/tr_TR: Likewise.
14979 * localedata/locales/tt_RU: Likewise.
14980 * localedata/locales/tt_RU@iqtelif: Likewise.
14981 * localedata/locales/ug_CN: Likewise.
14982 * localedata/locales/uk_UA: Likewise.
14983 * localedata/locales/uz_UZ: Likewise.
14984 * localedata/locales/uz_UZ@cyrillic: Likewise.
14985 * localedata/locales/vi_VN: Likewise.
14986 * localedata/locales/yi_US: Likewise.
14987 * localedata/locales/yo_NG: Likewise.
14988
14989 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14990
14991 * gen-locales.mk: Make test files which contain @ modifiers in their
14992 name work.
14993 * localedata/gen-locale.sh: Likewise.
14994
14995 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14996
14997 * posix/tst-fnmatch.input: Fix results for range expressions
14998 for non C locales.
14999 * posix/tst-regexloc.c: Do not use a range expression for
15000 de_DE.ISO-8859-1 locale.
15001
15002 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15003
15004 * posix/bug-regex5.c: Fix test case because with the new
15005 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15006 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15007 file.
15008
15009 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15010
15011 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15012 downloaded from ISO, the collation order of @-. and space has changed.
15013 Therefore, this test file needed to be adapted.
15014 * localedata/fr_CA.UTF-8.in: Likewise.
15015 * localedata/fr_FR.UTF-8.in: Likewise.
15016 * localedata/uk_UA.UTF-8.in: Likewise.
15017
15018 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15019
15020 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15021 order of ȥ in the new iso14651_t1_common file.
15022 * localedata/pl_PL.UTF-8.in: Likewise.
15023
15024 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15025
15026 * localedata/locales/iso14651_t1_common: Add sections for various
15027 scripts to the iso14651_t1_common file.
15028
15029 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15030
15031 * localedata/locales/iso14651_t1_common: Use the code point of a
15032 character in the fourth collation level instead of IGNORE for all
15033 entries which have IGNORE on all 4 levels.
15034
15035 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15036
15037 * localedata/locales/iso14651_t1_common: Add some convenient collation
15038 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15039 rules similar to those in CLDR.
15040
15041 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15042
15043 * localedata/locales/iso14651_t1_common: The new version of this
15044 file downloaded from ISO contained several syntax errors which
15045 are fixed by this patch.
15046
15047 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15048
15049 * localedata/locales/iso14651_t1_common: replace all <U.....>
15050 with <U000.....> because glibc understands only 4 digit or 8 digit
15051
15052 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15053
15054 * localedata/locales/iso14651_t1_common: Necessary changes
15055 to make the file downloaded from ISO usable by glibc.
15056
15057 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15058
15059 [BZ #14095]
15060 * localedata/locales/iso14651_t1_common: Update file to
15061 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15062
15063 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15064
15065 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15066 of <nptl/pthreadP.h>
15067 (thread_attr_compare): Move function to...
15068 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15069 * sysdeps/nptl/timer_routines.h: ... new header.
15070 * sysdeps/mach/hurd/gai_misc.h: New file.
15071
15072 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15073
15074 * string/strcoll_l.c: Include <libc-diag.h>.
15075 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15076 declarations of seq1 and seq2.
15077
15078 [BZ #15105]
15079 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15080 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15081
15082 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15083
15084 [BZ #22433]
15085 [BZ #22807]
15086 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15087 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15088 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15089 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15090 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15091 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15092
15093 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15094
15095 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15096 macros used in __ptrace_request.
15097
15098 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15099
15100 [BZ #22792]
15101 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15102 to $(CC).
15103 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15104 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15105 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15106 <tcb-offsets.h>.
15107
15108 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15109
15110 [BZ #15105]
15111 * ctype/ctype.c (tolower): Use libc_hidden_def.
15112 (toupper): Likewise.
15113 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15114 [!_ISOMAC] (toupper): Likewise.
15115
15116 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15117
15118 * localedata/Makefile: Remove --quiet argument when
15119 installing locales
15120
15121 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15122
15123 [BZ #17438]
15124 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15125 in d_fmt.
15126 * localedata/locales/pt_PT (LC_TIME): likewise
15127
15128 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15129
15130 [BZ #22646]
15131 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15132 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15133 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15134
15135 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15136
15137 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15138
15139 * nptl/Makefile (routines): Remove unregister-atfork.
15140 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15141 (fork_handler_alloc): Remove function.
15142 (fork_handlers, fork_handler_init): New variables.
15143 (__fork_lock): Rename to atfork_lock.
15144 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15145 to use a dynamic array to add/remove atfork handlers.
15146 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15147 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15148 Remove declaration.
15149 (fork_handler): Remove next, refcntr, and need_signal member.
15150 (__run_fork_handler_type): New enum.
15151 (__run_fork_handlers): New prototype.
15152 * nptl/register-atfork.c: Remove file.
15153 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15154
15155 * sysdeps/nptl/nptl-signals.h: Move to ...
15156 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15157 comments.
15158 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15159 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15160 unnecessary check for SIGTIMER.
15161 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15162 remove unnecessary removal of SIGTIMER.
15163 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15164 include-signals.h rename.
15165 * nptl/pthreadP.h: Likewise.
15166 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15167 __is_internal_signal instead of __nptl_is_internal_signal.
15168
15169 2018-02-22 Andrew Waterman <andrew@sifive.com>
15170
15171 [BZ # 22884]
15172 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15173 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15174 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15175 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15176
15177 2018-02-22 DJ Delorie <dj@delorie.com>
15178
15179 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15180
15181 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15182
15183 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15184 do_misaligned, not misaligned8.
15185
15186 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15187
15188 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15189 Add memcpy_thunderx2.
15190 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15191 Increment to 4.
15192 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15193 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15194 and IS_THUNDERX2PA checks.
15195 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15196 Use macro to set name appropriately.
15197 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15198 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15199 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15200 New macro.
15201 (IS_THUNDERX2): New macro.
15202
15203 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15204
15205 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15206
15207 2018-02-21 Zack Weinberg <zackw@panix.com>
15208
15209 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15210 Define here, unconditionally.
15211 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15212 * libio/libioP.h: Remove #if 0 blocks.
15213 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15214 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15215 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15216
15217 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15218 Assume weak_alias is always defined.
15219
15220 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15221 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15222 Remove #if 0 and #ifdef TODO blocks.
15223 Assume text_set_element is always defined.
15224
15225 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15226 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15227 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15228
15229 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15230 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15231 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15232 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15233 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15234 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15235 Reformat bit flags for _flags field to make occupancy clearer.
15236 Update commentary.
15237 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15238 Keep definitions consistent with those in libio/libio.h.
15239
15240 * libio/libio.h (_IO_file_flags): Remove macro.
15241 All uses changed to _flags.
15242
15243 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15244 (__HAVE_COLUMN, _IO_BE): Don't define.
15245 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15246 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15247 * libio/libioP.h (EOF): Don't define.
15248 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15249 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15250 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15251 testing _IO_UNIFIED_JUMPTABLES.
15252
15253 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15254 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15255 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15256 (_IO_size_t): Delete; all uses changed to size_t.
15257 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15258 (_IO_off_t): Delete; all uses changed to off_t.
15259 (_IO_off64_t): Delete; all uses changed to off64_t.
15260 (_IO_pid_t): Delete; all uses changed to pid_t.
15261 (_IO_uid_t): Delete; all uses changed to uid_t.
15262 (_IO_wint_t): Delete; all uses changed to wint_t.
15263 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15264 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15265 (_IO_cookie_io_functions_t): Delete; all uses changed to
15266 cookie_io_functions_t.
15267 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15268 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15269 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15270 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15271
15272 * libio/iofopncook.c: Remove unnecessary forward declarations.
15273 * libio/iolibio.h: Correct outdated commentary.
15274 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15275 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15276 Remove unnecessary casts.
15277 * stdio-common/getline.c: Use _IO_getdelim directly.
15278 Don't redefine ssize_t.
15279 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15280 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15281 Remove outdated comments.
15282 * stdio-common/vfscanf.c: Don't redefine va_list.
15283
15284 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15285 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15286 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15287 which are always true, and __cplusplus, which is always false.
15288
15289 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15290
15291 [BZ #15105]
15292 [BZ #19463]
15293 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15294 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15295 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15296 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15297 libc_hidden_proto.
15298 [!_ISOMAC] (putc_unlocked): Likewise.
15299 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15300 define inline if [__USE_EXTERN_INLINES].
15301 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15302 putc_unlocked.
15303
15304 [BZ #15105]
15305 [BZ #19463]
15306 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15307 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15308 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15309 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15310 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15311 getc_unlocked.
15312 * time/tzfile.c (__tzfile_read): Likewise.
15313
15314 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15315
15316 [BZ #22517]
15317 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15318
15319 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15320
15321 * io/fcntl.h: Fix a typo in a comment.
15322
15323 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15324
15325 [BZ #22862]
15326 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15327 define _DEFAULT_SOURCE.
15328 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15329
15330 2018-02-21 Florian Weimer <fweimer@redhat.com>
15331
15332 [BZ #20890]
15333 * elf/cache.c (save_cache): Call fsync on temporary file before
15334 renaming it.
15335 (save_aux_cache): Call fdatasync on temporary file before renaming
15336 it.
15337
15338 2018-02-21 Florian Weimer <fweimer@redhat.com>
15339
15340 [BZ #22787]
15341 * include/caller.h: Remove file.
15342 * elf/dl-caller.c: Likewise.
15343 * elf/Makefile (dl-routines): Remove dl-caller.
15344 (shared-only-routines): Do not add dl-caller.
15345 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15346 __check_caller.
15347 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15348 member.
15349 (dl_open_worker): Do not call __check_caller.
15350 (_dl_open): Do not set caller_dl_open member.
15351 * elf/rtld.c (_rtld_global_ro): Do not initialize
15352 _dl_check_caller member.
15353 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15354 _dl_check_caller member.
15355 (_dl_check_caller): Remove declaration.
15356 * sysdeps/unix/sysv/linux/dl-execstack.c
15357 (_dl_make_stack_executable): Do not call __check_caller.
15358
15359 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15360
15361 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15362 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15363
15364 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15365
15366 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15367 description.
15368
15369 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15370
15371 [BZ #16335]
15372 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15373 of 199606L, 200112L, and 200809L.
15374 (_XOPEN_SOURCE): Document special values of 600 and 700.
15375 (_ISOC11_SOURCE): Document macro.
15376 (_ATFILE_SOURCE): Likewise.
15377 (_FORTIFY_SOURCE): Likewise.
15378
15379 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15380
15381 [BZ #15105]
15382 [BZ #19463]
15383 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15384 and define as weak alias of __ferror_unlocked. Use
15385 libc_hidden_weak.
15386 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15387 libc_hidden_proto.
15388 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15389 function if [__USE_EXTERN_INLINES].
15390 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15391 ferror_unlocked.
15392
15393 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15394
15395 [BZ #6889]
15396 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15397
15398 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15399
15400 [BZ #22818]
15401 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15402 the GLIBC_2.1 version.
15403
15404 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15405
15406 [BZ #21508]
15407 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15408 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15409 intl/tst-gettext-de.po from po/de.po by removing the
15410 POT-Creation-Date line.
15411 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15412 ../po/de.po.
15413 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15414 ../po/de.po.
15415
15416 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15417
15418 * mach/Makefile (headers): Add mach/param.h.
15419 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15420 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15421 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15422 (__ptsname_r): Move implementation to...
15423 (__ptsname_internal): ... new function. Add filling the STP
15424 structure.
15425
15426 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15427
15428 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15429 idouble to 1 ULP.
15430
15431 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15432
15433 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15434 syntax.
15435
15436 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15437
15438 * nptl/Makefile (tst-mutex8-ENV): Delete.
15439 * nptl/tst-mutex8.c (check_type):
15440 Add runtime check if mutex will be elided.
15441
15442 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15443
15444 [BZ #20980]
15445 [BZ #21234]
15446 * manual/install.texi (Configuring and compiling): Describe
15447 passing CC and CFLAGS on configure command line, not as
15448 environment variables. Use @code markup on those variables.
15449 Specify what options go in CC and what go in CFLAGS. Note the
15450 requirement to compile with optimization.
15451 * INSTALL: Regenerated.
15452
15453 [BZ #18124]
15454 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15455 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15456 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15457 __sigprocmask instead of sigprocmask.
15458 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15459 Likewise.
15460 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15461 __sigsetjmp and sigprocmask.
15462
15463 [BZ #15105]
15464 * include/argz.h (argz_next): Use libc_hidden_proto.
15465 (__argz_next): Likewise.
15466 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15467 (argz_next): Use libc_hidden_weak.
15468
15469 [BZ #15105]
15470 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15471 libc_hidden_proto.
15472 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15473 libc_hidden_def.
15474
15475 [BZ #15105]
15476 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15477 libc_hidden_proto.
15478 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15479
15480 [BZ #15105]
15481 [BZ #19463]
15482 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15483 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15484 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15485 (__feof_unlocked): New declaration, and inline function if
15486 [__USE_EXTERN_INLINES].
15487 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15488 instead of feof_unlocked.
15489 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15490 * nss/nsswitch.c (nss_parse_file): Likewise.
15491 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15492 Likewise.
15493 * time/getdate.c (__getdate_r): Likewise.
15494 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15495 Define as macro to call __feof_unlocked.
15496
15497 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15498
15499 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15500
15501 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15502
15503 * math/Makefile: Remove mpexp.c and mplog.c
15504 * sysdeps/i386/fpu/mpexp.c: Delete file.
15505 * sysdeps/i386/fpu/mplog.c: Likewise.
15506 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15507 * sysdeps/ia64/fpu/mplog.c: Likewise.
15508 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15509 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15510 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15511 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15512 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15513 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15514 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15515 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15516 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15517 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15518 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15519 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15520 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15521 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15522 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15523 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15524
15525 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15526
15527 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15528
15529 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15530
15531 * sysdeps/sh/libm-test-ulps: Update.
15532
15533 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15534
15535 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15536 idouble to 1 ULP.
15537
15538 2018-02-12 Zack Weinberg <zackw@panix.com>
15539
15540 [BZ #19239]
15541 * posix/sys/types.h: Don't include sys/sysmacros.h.
15542 * misc/sys/sysmacros.h: Remove the conditional deprecation
15543 warnings for the macros defined by this header.
15544
15545 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15546
15547 * manual/probes.texi: Remove slowexp probes.
15548 * math/Makefile: Remove slowexp.
15549 * sysdeps/generic/math_private.h (__slowexp): Remove.
15550 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15551 document error bounds.
15552 * sysdeps/i386/fpu/slowexp.c: Remove.
15553 * sysdeps/ia64/fpu/slowexp.c: Remove.
15554 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15555 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15556 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15557 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15558 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15559 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15560 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15561 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15562 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15563 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15564 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15565
15566 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15567
15568 [BZ #13932]
15569 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15570 * benchtests/pow-inputs: Update comment for slow path cases.
15571 * manual/probes.texi (slowpow_p10): Delete removed probe.
15572 (slowpow_p10): Likewise.
15573 * math/Makefile: Remove halfulp.c and slowpow.c.
15574 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15575 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15576 (__halfulp): Remove.
15577 (__slowpow): Remove.
15578 * sysdeps/i386/fpu/halfulp.c: Delete file.
15579 * sysdeps/i386/fpu/slowpow.c: Likewise.
15580 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15581 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15582 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15583 improve comments and add error analysis.
15584 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15585 (power1): Remove function:
15586 (log1): Remove error argument, add error analysis.
15587 (my_log2): Remove function.
15588 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15589 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15590 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15591 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15592 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15593 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15594 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15595 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15596 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15597 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15598 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15599 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15600 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15601 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15602
15603 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15604
15605 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15606 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15607
15608 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15609
15610 [BZ #22433]
15611 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15612 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15613 and PTRACE_SETHBPREGS.
15614
15615 2018-02-10 Zack Weinberg <zackw@panix.com>
15616
15617 [BZ #22830]
15618 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15619 correctly.
15620 * malloc/tst-malloc-stats-cancellation.c: New test case.
15621 * malloc/Makefile: Add new test case.
15622
15623 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15624
15625 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15626
15627 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15628
15629 * math/Makefile (libm-narrow-fns): Add add.
15630 (libm-test-funcs-narrow): Likewise.
15631 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15632 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15633 * math/gen-auto-libm-tests.c (test_functions): Add add.
15634 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15635 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15636 (NARROW_ADD_TRIVIAL): Likewise.
15637 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15638 macro.
15639 (__daddl): Likewise.
15640 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15641 dadd.
15642 (CFLAGS-nldbl-dadd.c): New variable.
15643 (CFLAGS-nldbl-fadd.c): Likewise.
15644 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15645 __nldbl_daddl.
15646 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15647 prototype.
15648 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15649 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15650 * math/auto-libm-test-in: Add tests of add.
15651 * math/auto-libm-test-out-narrow-add: New generated file.
15652 * math/libm-test-narrow-add.inc: New file.
15653 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15654 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15655 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15656 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15657 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15658 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15659 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15660 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15661 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15662 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15663 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15664 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15665 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15666 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15667 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15668 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15669 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15670 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15671 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15672 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15673 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15674 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15675 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15676 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15677 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15678 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15679 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15680 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15681 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15682 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15683 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15684 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15689 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15690 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15691 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15692 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15693 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15694 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15695 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15696 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15697 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15698 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15699
15700 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15701 (f128-pairs): New variable.
15702 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15703 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15704 to CFLAGS.
15705 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15706 Also make tests add $(f128-loader-link) to gnulib-tests.
15707
15708 2018-02-09 DJ Delorie <dj@redhat.com>
15709
15710 [BZ #22827]
15711 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15712 64-bit ELF type for 64-bit ELF objects.
15713
15714 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15715
15716 * math/libm-test-driver.c (snan_tests_arg): New variable.
15717 * math/libm-test-support.h (snan_tests_arg): New declaration.
15718 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15719
15720 * math/Makefile (test-type-pairs): New variable.
15721 (test-type-pairs-f64xf128-yes): Likewise.
15722 (tests): Add test-narrow-macros.
15723 (libm-test-funcs-narrow): New variable.
15724 (libm-test-c-narrow): Likewise.
15725 (generated): Add $(libm-test-c-narrow).
15726 (libm-tests-base-narrow): New variable.
15727 (libm-tests-narrow): Likewise.
15728 (libm-tests): Add $(libm-tests-narrow).
15729 (libm-tests-for-type): Handle $(libm-tests-narrow).
15730 (libm-test-c-narrow-obj): New variable.
15731 ($(libm-test-c-narrow-obj)): New rule.
15732 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15733 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15734 $(o-iterator) to set dependencies and CFLAGS.
15735 * math/gen-auto-libm-tests.c: Document use for narrowing
15736 functions.
15737 (output_for_one_input_case): Take argument NARROW.
15738 (generate_output): Likewise. Update call to
15739 output_for_one_input_case.
15740 (main): Take --narrow option. Update call to generate_output.
15741 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15742 (apply_lit): Update call to _apply_lit.
15743 (apply_arglit): New function.
15744 (parse_args): Handle "a" arguments.
15745 (parse_auto_input): Handle format names using ":".
15746 * math/README.libm-test: Document "a" parameter type.
15747 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15748 (ARG_TYPE_TRUE_MIN): Likewise.
15749 (ARG_TYPE_MAX): Likwise.
15750 (ARG_MIN_EXP): Likewise.
15751 (ARG_MAX_EXP): Likewise.
15752 (ARG_MANT_DIG): Likewise.
15753 (TEST_COND_arg_ibm128): Likewise.
15754 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15755 (TEST_COND_arg_fmt): New macro.
15756 (init_max_error): Update prototype.
15757 * math/libm-test-support.c (test_ibm128): New variable.
15758 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15759 instead of using [TEST_COND_ibm128] conditional.
15760 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15761 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15762 [TEST_NARROW] (TEST_MSG): New definition.
15763 (arg_plus_zero): New macro.
15764 (arg_minus_zero): Likewise.
15765 (arg_plus_infty): Likewise.
15766 (arg_minus_infty): Likewise.
15767 (arg_qnan_value_pl): Likewise.
15768 (arg_qnan_value): Likewise.
15769 (arg_snan_value_pl): Likewise.
15770 (arg_snan_value): Likewise.
15771 (arg_max_value): Likewise.
15772 (arg_min_value): Likewise.
15773 (arg_min_subnorm_value): Likewise.
15774 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15775 (RUN_TEST_LOOP_aa_f): New macro.
15776 (TEST_SUFF): New macro.
15777 (TEST_SUFF_STR): Likewise.
15778 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15779 (TEST_COND_any_ibm128): New macro.
15780 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15781 this_func. Update call to init_max_error.
15782 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15783 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15784 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15785 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15786 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15787 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15788 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15789 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15790 * math/test-math-vector.h (TEST_NARROW): Likewise.
15791 * math/test-arg-double.h: New file.
15792 * math/test-arg-float128.h: Likewise.
15793 * math/test-arg-float32x.h: Likewise.
15794 * math/test-arg-float64.h: Likewise.
15795 * math/test-arg-float64x.h: Likewise.
15796 * math/test-arg-ldouble.h: Likewise.
15797 * math/test-math-narrow.h: Likewise.
15798 * math/test-narrow-macros.c: Likewise.
15799 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15800 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15801 test-narrow-macros-ldbl-64.
15802 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15803
15804 * math/bits/mathcalls-narrow.h: New file.
15805 * include/bits/mathcalls-narrow.h: Likewise.
15806 * math/math-narrow.h: Likewise.
15807 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15808 (__MATHCALL_NARROW_ARGS_2): Likewise.
15809 (__MATHCALL_NARROW_ARGS_3): Likewise.
15810 (__MATHCALL_NARROW_NORMAL): Likewise.
15811 (__MATHCALL_NARROW_REDIR): Likewise.
15812 (__MATHCALL_NARROW): Likewise.
15813 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15814 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15815 defined.
15816 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15817 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15818 (libm-narrow-fns): New variable.
15819 (libm-narrow-types-basic): Likewise.
15820 (libm-narrow-types-ldouble-yes): Likewise.
15821 (libm-narrow-types-float128-yes): Likewise.
15822 (libm-narrow-types-float128-alias-yes): Likewise.
15823 (libm-narrow-types): Likewise.
15824 (libm-routines): Add narrowing functions.
15825 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15826 (libc_feholdexcept_setroundf128): New macro.
15827 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15828 * sysdeps/ieee754/float128/float128_private.h: Include
15829 <math/math-narrow.h>.
15830 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15831 Undefine and redefine.
15832 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15833 (libm_alias_float_ldouble): Undefine and redefine.
15834 (libm_alias_double_ldouble): Likewise.
15835
15836 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15837
15838 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15839
15840 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15841 FPCR/FPSR.
15842
15843 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15844
15845 * manual/creature.texi: Convert references to gcc.info to gcc.
15846 * manual/stdio.texi: Likewise.
15847 * manual/string.texi: Likewise.
15848
15849 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15850
15851 [BZ #17979]
15852 * posix/bits/types.h (__int_least8_t): New typedef.
15853 (__uint_least8_t): Likewise.
15854 (__int_least16_t): Likewise.
15855 (__uint_least16_t): Likewise.
15856 (__int_least32_t): Likewise.
15857 (__uint_least32_t): Likewise.
15858 (__int_least64_t): Likewise.
15859 (__uint_least64_t): Likewise.
15860 * sysdeps/generic/stdint.h (int_least8_t): Define using
15861 __int_least8_t.
15862 (int_least16_t): Define using __int_least16_t.
15863 (int_least32_t): Define using __int_least32_t.
15864 (int_least64_t): Define using __int_least64_t.
15865 (uint_least8_t): Define using __uint_least8_t.
15866 (uint_least16_t): Define using __uint_least16_t.
15867 (uint_least32_t): Define using __uint_least32_t.
15868 (uint_least64_t): Define using __uint_least64_t.
15869 * wcsmbs/uchar.h: Include <bits/types.h>.
15870 (char16_t): Define using __uint_least16_t conditional only on
15871 [!__USE_ISOCXX11].
15872 (char32_t): Define using __uint_least32_t conditional only on
15873 [!__USE_ISOCXX11].
15874 * wcsmbs/test-char-types.c: New file.
15875 * wcsmbs/Makefile (tests): Add test-char-types.
15876
15877 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15878 version to 4.0.1.
15879
15880 2018-02-07 Zack Weinberg <zackw@panix.com>
15881
15882 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15883 Delete all contents except for definitions of _G_HAVE_MMAP and
15884 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15885 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15886 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15887 change as above.
15888
15889 * libio/libio.h: Don't include bits/_G_config.h here.
15890 Include stddef.h with __need_wchar_t defined. Include
15891 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15892 Define _IO_iconv_t here, directly.
15893 Don't define _IO_HAVE_ST_BLKSIZE.
15894 * libio/libioP.h: Include _G_config.h here. Move include of
15895 shlib-compat.h up with rest of includes. Simplify conditionals
15896 controlling definition of _IO_JUMPS_OFFSET.
15897
15898 * csu/init.c: Remove always-true #if around entire file.
15899 Don't include stdio.h. Set _IO_stdin_used to hardwired
15900 constant 0x20001, and update commentary.
15901 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15902 Replace all uses of _G_va_list with __gnuc_va_list.
15903 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15904 instead of #if _IO_HAVE_ST_BLKSIZE.
15905 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15906 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15907 not #ifdef.
15908
15909 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15910 multiple-include guard to match.
15911 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15912 into this file.
15913 Remove preprocessor conditionals that are always true and/or
15914 redundant to other preprocessor conditionals in the same nest.
15915 Include shlib-compat.h unconditionally.
15916 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15917 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15918 defined after including stdio.h.
15919 Use __BEGIN_DECLS/__END_DECLS.
15920
15921 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15922 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15923 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15924
15925 2018-02-07 Zack Weinberg <zackw@panix.com>
15926
15927 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15928 New single-type headers split from _G_config.h.
15929 * libio/bits/types/cookie_io_functions_t.h
15930 * libio/bits/types/struct_FILE.h
15931 New single-type headers split from libio.h.
15932
15933 * libio/Makefile: Install the above new headers. Don't install
15934 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15935 bits/libio-ldbl.h.
15936 * libio/_G_config.h, libio/libio.h: Delete file.
15937
15938 * libio/bits/libio.h: Remove improper-inclusion guard.
15939 Include stdio.h and don't repeat anything that it does.
15940 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15941 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15942 __io_read_fn as cookie_read_function_t,
15943 __io_write_fn as cookie_write_function_t,
15944 __io_seek_fn as cookie_seek_function_t,
15945 __io_close_fn as cookie_close_function_t,
15946 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15947 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15948 here, in the "compatibility defines" section. Remove an #if 0
15949 block. Use the "body" macros from bits/types/struct_FILE.h to
15950 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15951 and _IO_ferror_unlocked.
15952 Move prototypes of __uflow and __overflow...
15953
15954 * libio/stdio.h: ...here. Don't include bits/libio.h.
15955 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15956 directly from stdarg.h. Include bits/types/__fpos_t.h,
15957 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15958 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15959 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15960 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15961 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15962 __ssize_t, not _IO_ssize_t. Unconditionally define
15963 BUFSIZ as 8192 and EOF as (-1).
15964
15965 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15966 macros from bits/types/struct_FILE.h instead of _IO_* macros
15967 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15968 instead of _IO_ssize_t.
15969 * libio/bits/stdio2.h: Similarly.
15970
15971 * libio/iolibio.h: Add multiple-include guard.
15972 Include bits/libio.h after stdio.h.
15973 * libio/libioP.h: Add multiple-include guard.
15974 Include stdio.h and bits/libio.h before iolibio.h.
15975
15976 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15977 * include/bits/types/cookie_io_functions_t.h
15978 * include/bits/types/struct_FILE.h: New wrappers.
15979
15980 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15981 Get definitions of _G_fpos_t and _G_fpos64_t from
15982 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15983 respectively. Remove improper-inclusion guards.
15984
15985 * conform/data/stdio.h-data: Update expectations of va_list.
15986 * scripts/check-installed-headers.sh: Remove special case for
15987 libio.h and _G_config.h.
15988
15989 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15990
15991 [BZ #15105]
15992 [BZ #19463]
15993 * include/sys/sysmacros.h [!_ISOMAC]
15994 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15995 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15996 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15997 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15998 libc_hidden_proto.
15999 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16000 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16001 Likewise.
16002 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16003 Undefine and redefine to add use __gnu_dev_ prefix.
16004 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16005 Likewise.
16006 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16007 and define as hidden inline function.
16008 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16009 Likewise.
16010 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16011 Likewise.
16012 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16013 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16014 (gnu_dev_minor): Likewise.
16015 (gnu_dev_makedev): Likewise.
16016 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16017 makedev.
16018 * posix/wordexp.c (exec_comm_child): Likewise.
16019 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16020 instead of minor and __gnu_dev_major instead of major.
16021 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16022 __gnu_dev_major instead of major.
16023 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16024 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16025 instead of gnu_dev_minor.
16026 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16027 (SLAVE_P): Likewise.
16028 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16029 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16030 instead of major.
16031
16032 [BZ #21313]
16033 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16034 in another place.
16035 * locale/weightwc.h (findidx): Likewise.
16036
16037 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16038
16039 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16040 (slowlog_inexact): Likewise
16041 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16042 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16043
16044 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16045
16046 [BZ #22797]
16047 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16048 missing second underscore to parameter name.
16049
16050 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16051
16052 [BZ #14508]
16053 [BZ #15512]
16054 [BZ #17082]
16055 [BZ #20530]
16056 * bits/byteswap.h: Update file comment. Do not include
16057 <bits/byteswap-16.h>.
16058 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16059 constant.
16060 (__bswap_16): Define as inline function.
16061 (__bswap_constant_32): Reformat definition.
16062 (__bswap_32): Always define as inline function, not macro, using
16063 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16064 otherwise __bswap_constant_32.
16065 (__bswap_constant_64): Reformat definition. Do not use
16066 __extension__ here.
16067 (__bswap_64): Always define as inline function, not macro. Use
16068 __extension__ on function definition. Use __builtin_bswap64 if
16069 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16070 * string/test-endian-file-scope.c: New file.
16071 * string/test-endian-sign-conversion.c: Likewise.
16072 * string/Makefile (headers): Remove bits/byteswap-16.h.
16073 (tests): Add test-endian-file-scope and
16074 test-endian-sign-conversion.
16075 (CFLAGS-test-endian-sign-conversion.c): New variable.
16076 * bits/byteswap-16.h: Remove file.
16077 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16078 * sysdeps/ia64/bits/byteswap.h: Likewise.
16079 * sysdeps/m68k/bits/byteswap.h: Likewise.
16080 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16081 * sysdeps/s390/bits/byteswap.h: Likewise.
16082 * sysdeps/tile/bits/byteswap.h: Likewise.
16083 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16084 * sysdeps/x86/bits/byteswap.h: Likewise.
16085
16086 [BZ #17721]
16087 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16088 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16089 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16090 199901L] (__restrict): Define to restrict.
16091
16092 [BZ #19667]
16093 * string/testcopy.c: Include <support/support.h>. Do not include
16094 <malloc.h>. Use <support/test-driver.c>.
16095 (main): Rename to do_test. Make static. Use xmalloc instead of
16096 malloc.
16097
16098 [BZ #13575]
16099 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16100 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16101 (SSIZE_MAX): Define to INT_MAX.
16102 * posix/test-ssize-max.c: New file.
16103 * posix/Makefile (tests): Add test-ssize-max.
16104
16105 [BZ #19668]
16106 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16107 <support/support.h>. Do not include <malloc.h>.
16108 (query_auxv): Use xmalloc instead of malloc.
16109
16110 [BZ #14553]
16111 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16112 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16113 instead of loff_t.
16114
16115 2018-02-06 Florian Weimer <fweimer@redhat.com>
16116
16117 [BZ #18023]
16118 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16119 Use scratch_buffer instead of extend_alloca.
16120
16121 2018-02-06 Zack Weinberg <zackw@panix.com>
16122
16123 * libio/stdio.h: Don't define getc or putc as macros.
16124 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16125 not _IO_getc and _IO_putc.
16126
16127 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16128 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16129
16130 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16131
16132 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16133 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16134
16135 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16136
16137 [BZ #14890]
16138 * elf/elf.h (NT_PRFPREG): New macro.
16139 (NT_S390_VXRS_LOW): Likewise.
16140 (NT_S390_VXRS_HIGH): Likewise.
16141 (NT_S390_GS_CB): Likewise.
16142 (NT_S390_GS_BC): Likewise.
16143 (NT_S390_RI_CB): Likewise.
16144
16145 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16146 (MAP_SYNC): New macro.
16147 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16148 Likewise.
16149 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16150 (MAP_SYNC): Likewise.
16151 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16152 (MAP_SYNC): Likewise.
16153 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16154 (MAP_SYNC): Likewise.
16155 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16156 (MAP_SYNC): Likewise.
16157 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16158 (MAP_SYNC): Likewise.
16159 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16160 (MAP_SYNC): Likewise.
16161 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16162 Likewise.
16163 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16164 Likewise.
16165
16166 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16167 (MAP_SHARED_VALIDATE): New macro.
16168 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16169 (MAP_SHARED_VALIDATE): Likewise.
16170
16171 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16172
16173 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16174 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16175 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16176
16177 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16178
16179 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16180 (DT_NUM): Updated to 35.
16181
16182 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16183
16184 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16185 __builtin_expect with __glibc_likely and __glibc_unlikely.
16186 (elf_machine_rela): Likewise.
16187 (elf_machine_lazy_rel): Likewise.
16188
16189 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16190
16191 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16192 __builtin_expect with __glibc_likely and __glibc_unlikely.
16193 (elf_machine_lazy_rel): Likewise.
16194
16195 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16196
16197 [BZ #22638]
16198 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16199 SHARED.
16200 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16201
16202 2018-02-05 Andreas Schwab <schwab@suse.de>
16203
16204 [BZ #22761]
16205 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16206 string.
16207
16208 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16209
16210 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16211 not check against PTHREAD_STACK_MIN.
16212
16213 2018-02-02 Sean McKean <smckean83@gmail.com>
16214
16215 [BZ #22735]
16216 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16217
16218 2018-02-02 Florian Weimer <fweimer@redhat.com>
16219
16220 [BZ #22753]
16221 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16222 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16223 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16224 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16225 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16226 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16227 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16228 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16229 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16230 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16231 * misc/tst-preadvwritev2.c (do_test): Call it.
16232 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16233
16234 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16235
16236 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16237
16238 * benchtests/bench-memcmp.c: Print json instead of plain text.
16239
16240 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16241 every test run.
16242
16243 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16244
16245 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16246 version to 4.15.
16247 (s390_sthyi): New syscall.
16248
16249 * sysdeps/generic/ldbl-classify-compat.h: New file.
16250 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16251 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16252 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16253 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16254 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16255 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16256 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16257 <ldbl-classify-compat.h>.
16258 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16259 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16260 <ldbl-classify-compat.h>.
16261 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16262 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16263 <ldbl-classify-compat.h>.
16264 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16265 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16266 <ldbl-classify-compat.h>.
16267 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16268 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16269 <ldbl-classify-compat.h>.
16270 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16271 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16272 <ldbl-classify-compat.h>.
16273 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16274 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16275 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16276 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16277 * sysdeps/microblaze/math_private.h: Likewise.
16278 * sysdeps/nios2/math_private.h: Likewise.
16279 * sysdeps/sh/math_private.h: Likewise.
16280
16281 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16282 * sysdeps/m68k/coldfire/math_private.h: ... here.
16283 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16284 * sysdeps/tile/math_private.h: Likewise.
16285 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16286 Remove macro.
16287 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16288 Likewise.
16289
16290 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16291 Remove macro.
16292 (libc_fetestexcept): Likewise.
16293 (libc_feupdateenv_test): Likewise.
16294 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16295 (libc_fetestexcept): Likewise.
16296 (libc_feupdateenv_test): Likewise.
16297 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16298 (libc_fetestexcept): Likewise.
16299 (libc_feupdateenv_test): Likewise.
16300 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16301 (libc_fetestexcept): Likewise.
16302 (libc_feupdateenv_test): Likewise.
16303
16304 * sysdeps/generic/math_private.h
16305 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16306 New inline function.
16307 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16308 Likewise.
16309
16310 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16311 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16312 * sysdeps/generic/math_private.h
16313 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16314 inline function.
16315 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16316 Likewise.
16317 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16318 Likewise.
16319 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16320 Likewise.
16321 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16322 Likewise.
16323 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16324 Likewise.
16325 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16326 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16327 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16328 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16329 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16330 (__fegetenv): Likewise.
16331 (fesetenv): Likewise.
16332 (__fesetenv): Likewise.
16333 (feupdateenv): Likewise.
16334 (__feupdateenv): Likewise.
16335 (fegetround): Likewise.
16336 (__fegetround): Likewise.
16337 (fesetround): Likewise.
16338 (__fesetround): Likewise.
16339
16340 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16341 (feraiseexcept): New macro.
16342 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16343 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16344 Remove macro.
16345 (__feraiseexcept): Likewise.
16346 (feclearexcept): Likewise.
16347 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16348 (__feraiseexcept): Likewise.
16349 (feclearexcept): Likewise.
16350 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16351 (__feraiseexcept): Likewise.
16352 (feclearexcept): Likewise.
16353 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16354 (__feraiseexcept): Likewise.
16355 (feclearexcept): Likewise.
16356 (fetestexcept): Likewise.
16357
16358 * sysdeps/m68k/coldfire/math-tests.h: New file.
16359
16360 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16361 * sysdeps/m68k/bits/fenv.h: ... here.
16362 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16363 not define.
16364 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16365 Likewise.
16366 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16367 Likewise.
16368 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16369 Likewise.
16370 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16371 Likewise.
16372 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16373 Define to 0.
16374 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16375 (__FE_UNDEFINED): New enum constant.
16376 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16377 Do not define.
16378 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16379 Likewise.
16380 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16381 Likewise.
16382 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16383 to match generic bits/fenv.h.
16384 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16385 Do not define.
16386
16387 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16388 packed on bits.
16389 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16390 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16391 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16392 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16393
16394 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16395 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16396 Joseph Myers <joseph@codesourcery.com>
16397
16398 [BZ #21314]
16399 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16400 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16401 computation using c.
16402 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16403 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16404 computation using c.
16405
16406 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16407
16408 * version.h (RELEASE): Set to "development".
16409 (VERSION): Set to "2.27.9000".
16410 * NEWS (2.28): New section.
16411
16412 * version.h (RELEASE): Set to "stable".
16413 (VERSION): Set to "2.27".
16414 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16415
16416 * NEWS: Add the list of bugs fixed in 2.27.
16417
16418 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16419
16420 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16421 against PTHREAD_STACK_MIN.
16422
16423 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16424
16425 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16426 New entries.
16427 (Rafal Luzynski, Andreas Schwab): Update.
16428
16429 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16430
16431 [BZ #10871]
16432 * NEWS: List the languages which actually use the alternative
16433 months feature in this release. Also explain that "alt_mon" and
16434 "ab_alt_mon" are optional.
16435
16436 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16437
16438 [BZ #22765]
16439 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16440
16441 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16442
16443 * manual/install.texi (Tools for Compilation): Update the newest
16444 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16445 * INSTALL: Regenerated.
16446
16447 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16448
16449 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16450 instead of __builtin_expect.
16451
16452 2018-01-30 Florian Weimer <fweimer@redhat.com>
16453
16454 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16455 data.
16456 * nss/tst-nss-getpwent.c (do_test): Likewise.
16457
16458 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16459
16460 [BZ #10871]
16461 * localedata/locales/hr_HR (mon): Rename to...
16462 (alt_mon): This.
16463 (mon): Import from CLDR (genitive case).
16464 (d_t_fmt): Update the comment.
16465
16466 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16467
16468 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16469 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16470 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16471
16472 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16473
16474 * mach/Versions: Fix version when __mach_host_self_ was added.
16475 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16476 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16477 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16478 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16479 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16480 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16481 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16482 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16483 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16484 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16485 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16486 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16487 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16488 || to respect codestyle.
16489 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16490 (do_test_bz20181): Rename accordingly.
16491 * malloc/malloc.c: Include <assert.h>.
16492 (assert): Do not define.
16493 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16494 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16495 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16496 * sysdeps/mach/hurd/hp-timing.h: New file.
16497 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16498
16499 2018-01-29 Darius Rad <darius@bluespec.com>
16500
16501 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16502
16503 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16504
16505 * sysdeps/init_array/crti.S (.section .init_array): Add
16506 PREINIT_FUNCTION when defined.
16507 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16508 * config.h.in: Regenerate.
16509 * manual/platform.texi: Add RISC-V documenation for
16510 __riscv_flush_icache.
16511 * sysdeps/riscv/__longjmp.S: New file.
16512 * sysdeps/riscv/backtrace.c: Likewise.
16513 * sysdeps/riscv/bits/endian.h: Likewise.
16514 * sysdeps/riscv/bits/setjmp.h: Likewise.
16515 * sysdeps/riscv/bits/wordsize.h: Likewise.
16516 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16517 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16518 * sysdeps/riscv/dl-trampoline.S: Likewise.
16519 * sysdeps/riscv/gccframe.h: Likewise.
16520 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16521 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16522 * sysdeps/riscv/machine-gmon.h: Likewise.
16523 * sysdeps/riscv/memusage.h: Likewise.
16524 * sysdeps/riscv/setjmp.S: Likewise.
16525 * sysdeps/riscv/sys/asm.h: Likewise.
16526 * sysdeps/riscv/tls-macros.h: Likewise.
16527 * sysdeps/riscv/dl-tls.h: New file.
16528 * sysdeps/riscv/libc-tls.c: Likewise.
16529 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16530 * sysdeps/riscv/nptl/tls.h: Likewise.
16531 * sysdeps/riscv/stackinfo.h: Likewise.
16532 * sysdeps/riscv/bits/fenv.h: New file.
16533 * sysdeps/riscv/e_sqrtl.c: Likewise.
16534 * sysdeps/riscv/fpu_control.h: Likewise.
16535 * sysdeps/riscv/math-tests.h: Likewise.
16536 * sysdeps/riscv/nofpu/Implies: Likewise.
16537 * sysdeps/riscv/sfp-machine.h: Likewise.
16538 * sysdeps/riscv/tininess.h: Likewise.
16539 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16540 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16541 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16542 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16543 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16544 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16545 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16546 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16547 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16548 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16549 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16550 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16551 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16552 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16553 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16554 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16555 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16556 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16557 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16558 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16559 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16560 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16561 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16562 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16563 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16564 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16565 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16566 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16567 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16568 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16569 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16570 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16571 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16572 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16573 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16574 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16575 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16576 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16577 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16578 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16579 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16580 * sysdeps/riscv/rvf/math_private.h: Likewise.
16581 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16582 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16583 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16584 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16585 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16586 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16587 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16588 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16589 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16590 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16591 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16592 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16593 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16594 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16595 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16596 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16597 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16598 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16599 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16600 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16601 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16602 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16603 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16604 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16605 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16606 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16607 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16608 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16609 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16610 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16611 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16612 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16613 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16614 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16615 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16616 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16617 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16618 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16619 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16620 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16621 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16622 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16623 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16624 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16625 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16626 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16627 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16628 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16629 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16630 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16631 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16632 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16633 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16634 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16635 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16636 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16637 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16638 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16639 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16640 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16641 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16642 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16643 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16644 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16645 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16646 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16647 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16648 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16649 * sysdeps/riscv/Implies: New file.
16650 * sysdeps/riscv/Makefile: Likewise.
16651 * sysdeps/riscv/configure: Likewise.
16652 * sysdeps/riscv/configure.ac: Likewise.
16653 * sysdeps/riscv/nptl/Makefile: Likewise.
16654 * sysdeps/riscv/preconfigure: Likewise.
16655 * sysdeps/riscv/rv64/Implies-after: Likewise.
16656 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16657 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16658 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16659 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16660 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16661 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16662 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16663 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16664 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16665 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16666 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16667 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16668 (Config): Likewise.
16669
16670 2018-01-29 Florian Weimer <fweimer@redhat.com>
16671
16672 [BZ #22701]
16673 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16674 libnsl_hidden_proto.
16675 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16676 libnsl_hidden_proto.
16677 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16678 * nis/Makefile (libnsl-routines): Add nss-default only for
16679 build-obsolete-nsl.
16680 * nis/nis_defaults.c (__nis_default_ttl): Add
16681 libnsl_hidden_nolink_def.
16682 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16683 declaration.
16684 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16685 * nis/ypclnt.c (yp_maplist): Likewise.
16686
16687 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16688
16689 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16690 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16691
16692 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16693
16694 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16695 clean -dxfq for git updates when replacing sources.
16696
16697 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16698 --disable-libcilkrts unconditionally, not just for the final GCC
16699 build for Hurd.
16700
16701 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16702 version to 4.15.
16703
16704 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16705
16706 [BZ #10871]
16707 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16708 case).
16709
16710 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16711
16712 [BZ #10871]
16713 * localedata/locales/be_BY (mon): Rename to...
16714 (alt_mon): This, then synchronize with CLDR (nominative case).
16715 (abmon): Rename to...
16716 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16717 (mon): Import from CLDR (genitive case).
16718 (abmon): Likewise.
16719 * localedata/locales/be_BY@latin (mon): Rename to...
16720 (alt_mon): This.
16721 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16722
16723 * localedata/locales/be_BY@latin (lang_name): Reworded to
16724 "biełaruskaja mova".
16725
16726 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16727
16728 [BZ #10871]
16729 * localedata/locales/el_CY (mon): Renamed to...
16730 (alt_mon): This.
16731 (mon): Import from CLDR (genitive case).
16732 * localedata/locales/el_GR: Likewise.
16733
16734 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16735
16736 [BZ #10871]
16737 * localedata/locales/ru_RU (mon): Rename to...
16738 (alt_mon): This.
16739 (abmon): Rename to...
16740 (ab_alt_mon): This.
16741 (mon): Import from CLDR (genitive case).
16742 (abmon): Copy from the old content except the 5th month which is
16743 now in the genitive case, even when abbreviated.
16744 * localedata/locales/ru_UA: Likewise.
16745 * time/tst-strptime.c (day_tests): Add an actual example of
16746 a difference between %b and %Ob in Russian.
16747
16748 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16749
16750 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16751 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16752 a `c' variable.
16753 * resolv/res-close.c: Include <stdlib.h>.
16754 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16755 <sys/wait.h>, <time.h>, <sys/uio.h>.
16756 (NOT_CANCEL_H): Add inclusion guard.
16757 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16758 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16759 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16760 return 0.
16761 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16762 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16763 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16764 instead of void *.
16765 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16766 timer_ptr2id to cast struct timer_node * to void *.
16767 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16768 --disable-libcilkrts to gcc configure.
16769 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16770 and make them the default for now.
16771 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16772 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16773 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16774 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16775 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16776 MACH_IPC_COMPAT.
16777 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16778 __task_terminate would ever return successfully.
16779 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16780 to global scope.
16781 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16782 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16783 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16784 critical section to make code simpler and avoid warning.
16785 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16786 critical section to make code simpler and avoid warning.
16787 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16788 const char * instead of char *.
16789 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16790 __hurd_file_name_split, hurd_file_name_split,
16791 __hurd_directory_name_split, hurd_directory_name_split,
16792 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16793 hurd_file_name_path_lookup): Make lookup function parameter take a
16794 const char *name instead of char *name.
16795 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16796 __hurd_directory_name_split): Likewise.
16797 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16798 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16799 * sysdeps/mach/hurd/check_native.c: New file.
16800 * sysdeps/mach/hurd/check_pf.c: New file.
16801 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16802 (__freeifaddrs): Define macro to freeifaddrs.
16803 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16804 * sysdeps/mach/libmachuser.abilist: New file.
16805 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16806 (do_test_bz20181): Rename accordingly.
16807 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16808 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16809 <sys/mount.h>.
16810 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16811 version only if __USE_EXTERN_INLINES is defined.
16812 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16813 __hurd_sockfail): Likewise.
16814 (_hurd_fd_get): Always declare functions, and provide inline versions
16815 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16816 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16817 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16818 _hurd_port_set): Always declare functions, and provide inline versions
16819 only if __USE_EXTERN_INLINES and _LIBC are defined and
16820 IS_IN(libc).
16821 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16822 _hurd_critical_section_unlock): Likewise.
16823 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16824 * __hurd_threadvar_location): Likewise.
16825 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16826 _hurd_userlink_clear): Likewise.
16827 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16828 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16829 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16830 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16831 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16832 __spin_lock_locked): Likewise.
16833 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16834 __spin_lock_locked): Likewise.
16835 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16836 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16837 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16838 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16839 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16840 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16841 _POSIX_NO_TRUNC): Define to 0.
16842 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16843 check size against PTHREAD_STACK_MIN.
16844 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16845 IS_IN(libpthread)]: Include <sigsetops.h>.
16846 * mach/Makefile (user-interfaces): Add mach/gnumach.
16847 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16848 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16849 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16850 instead of invalid -1.
16851 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16852 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16853 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16854 <net/ppp_defs.h>.
16855
16856 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16857
16858 * hurd/fcntl-internal.h: New file.
16859
16860 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16861
16862 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16863
16864 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16865
16866 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16867
16868 [BZ #22701]
16869 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16870 Build only shared objects.
16871
16872 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16873
16874 * README: Update for hppa.
16875
16876 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16877
16878 * sysdeps/sparc/fpu/libm-test-ulps: Update
16879 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16880
16881 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16882
16883 Revert:
16884
16885 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16886
16887 [BZ #22563]
16888 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16889 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16890 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16891 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16892 to feature_1.
16893
16894 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16895
16896 [BZ #22563]
16897 * bits/types/__cancel_jmp_buf_tag.h: New file.
16898 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16899 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16900 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16901 * nptl/Makefile (headers): Add
16902 bits/types/__cancel_jmp_buf_tag.h.
16903 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16904 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16905 * sysdeps/nptl/pthread.h: Include
16906 <bits/types/__cancel_jmp_buf_tag.h>.
16907 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16908 __cancel_jmp_buf.
16909 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16910
16911 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16912
16913 [BZ #10871]
16914 * localedata/locales/uk_UA (mon): Renamed to...
16915 (alt_mon): This.
16916 (alt_digits): "0" removed and then renamed to...
16917 (mon): This.
16918 (date_fmt): Definition changed not to use the alternative
16919 digits hack.
16920
16921 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16922
16923 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16924 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16925 * elf/elf.h (EF_RISCV_RVC): New define.
16926 (EF_RISCV_FLOAT_ABI): Likewise.
16927 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16928 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16929 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16930 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16931 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16932 define.
16933 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16934
16935 2018-01-25 Andreas Schwab <schwab@suse.de>
16936
16937 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16938 single quotes.
16939 * sysdeps/gnu/configure: Regenerate.
16940 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16941 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16943 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16944 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16945 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16946 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16947 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16948
16949 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16950
16951 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16952 URL, and run autoconf, make it the default for now.
16953
16954 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16955
16956 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16957 soft-float ColdFire configuration.
16958
16959 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16960 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16961 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16962
16963 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16964 MicroBlaze file.
16965
16966 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16967 ....
16968 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16969 ... here.
16970 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16971 New file.
16972
16973 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16974 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16975 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16976 file.
16977
16978 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16979
16980 [BZ #22742]
16981 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16982 Rename to __reserved and add comment.
16983 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16984 Rename to __reserved.
16985
16986 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16987
16988 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16989 i686-gnu configurations.
16990 (Context.run_builds): Include mig, gnumach and hurd in components
16991 considered.
16992 (Context.checkout): Add mig, gnumach and hurd to components.
16993 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16994 hurd.
16995 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16996 (Config.build): Install gnumach headers, build mig and install
16997 hurd headers for 'gnu' OS.
16998 (Config.install_gnumach_headers): New function.
16999 (Config.install_hurd_headers): Likewise.
17000 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17001 when building for 'gnu' OS.
17002
17003 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17004
17005 * manual/tunables.texi (Hardware Capability Tunables): Fix
17006 spelling.
17007
17008 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17009
17010 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17011 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17012 (ALTMON_11, ALTMON_12): Improve documentation.
17013 * manual/time.texi (strftime): Likewise.
17014
17015 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17016
17017 [BZ #10871]
17018 * localedata/locales/pl_PL: Alternative month names added,
17019 primary month names are genitive now.
17020 * time/tst-strptime.c (day_tests): Actually use a genitive case
17021 of a month name in Polish language.
17022
17023 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17024
17025 [BZ #10871]
17026 * manual/locale.texi: Document ALTMON_1..12 constants for
17027 nl_langinfo. Specify when to use ALTMON instead of MON.
17028 * manual/time.texi (strftime, strptime): Document GNU extension
17029 permitting O modifier with %B and %b. Specify when to use
17030 %OB instead of %B.
17031
17032 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17033
17034 [BZ #10871]
17035 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17036 names, define them as the same as abbreviated month names explicitly.
17037 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17038 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17039 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17040 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17041 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17042 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17043 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17044 _NL_WABALTMON_12): New enum constants.
17045 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17046 wab_alt_mon, and ab_alt_mon_defined members.
17047 (time_output): Output ab_alt_mon and wab_alt_mon members.
17048 (time_read): Read them, initialize them as copies of abmon and wabmon
17049 respectively if they are missing, initialize ab_alt_mon_defined.
17050 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17051 * locale/programs/locfile-kw.h: Regenerate.
17052 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17053 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17054 and ru_RU.UTF-8.
17055 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17056 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17057 (__strftime_internal): Handle %Ob and %Oh formats.
17058 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17059 (__strptime_internal): Handle %Ob and %Oh formats.
17060 * time/tst-strptime.c (day_tests): Add more tests to parse different
17061 forms of month names including the new %Ob format specifier.
17062
17063 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17064
17065 [BZ #10871]
17066 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17067 define them as the same as primary full month names explicitly.
17068 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17069 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17070 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17071 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17072 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17073 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17074 _NL_WALTMON_12): New enum constants.
17075 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17076 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17077 macros.
17078 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17079 walt_mon, and alt_mon_defined members.
17080 (time_output): Output alt_mon and walt_mon members.
17081 (time_read): Read them, initialize them as copies of mon and wmon
17082 respectively if they are missing, initialize alt_mon_defined.
17083 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17084 * locale/programs/locfile-kw.h: Regenerate.
17085 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17086 * localedata/tst-langinfo.c (map): Add tests for the new constants
17087 ALTMON_1 .. ALTMON_12.
17088 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17089 and pl_PL.UTF-8.
17090 * time/strftime_l.c (f_altmonth): New macro.
17091 (__strftime_internal): Handle %OB format.
17092 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17093 (__strptime_internal): Handle %OB format.
17094 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17095 of month names including the new %OB format specifier.
17096
17097 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17098
17099 [BZ #22685]
17100 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17101 from ABORT_TRANSACTION.
17102 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17103 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17104 ABORT_TRANSACTION_IMPL): Likewise.
17105 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17106 Linux code, but remove the code that aborts transactions.
17107
17108 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17109
17110 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17111
17112 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17113
17114 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17115 in date: "2004-14-09" should be "2004-09-14".
17116 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17117 "2003-15-09" should be "2003-09-15".
17118
17119 2018-01-18 Arjun Shankar <arjun@redhat.com>
17120
17121 [BZ #22343]
17122 [BZ #22774]
17123 CVE-2018-6485
17124 CVE-2018-6551
17125 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17126 after padding.
17127 (_int_memalign): check for integer overflow before calling
17128 _int_malloc.
17129 * malloc/tst-malloc-too-large.c: New test.
17130 * malloc/Makefile: Add tst-malloc-too-large.
17131
17132 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17133
17134 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17135 in date: "2017-24-07" should be "2017-07-24".
17136 * localedata/locales/mai_IN: Likewise.
17137 * localedata/locales/mai_NP: Likewise.
17138
17139 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17140
17141 * po/ru.po: Update translations.
17142
17143 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17144
17145 [BZ #22719]
17146 * sysdeps/hppa/backtrace.c: New file.
17147
17148 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17149
17150 [BZ #22715]
17151 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17152 align La_x86_64_retval to VEC_SIZE.
17153
17154 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17155
17156 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17157 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17158
17159 2018-01-16 Florian Weimer <fweimer@redhat.com>
17160
17161 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17162 Move tst-thread-exit-clobber ...
17163 [$(CXX)] (tests-unsupported): ... to here.
17164
17165 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17166
17167 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17168 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17169 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17170 (_dl_aarch64_cap_flags): Update.
17171 (_DL_HWCAP_COUNT): Update.
17172
17173 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17174
17175 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17176 (_DL_HWCAP_LAST): Remove.
17177 (_DL_HWCAP_COUNT): Move to ...
17178 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17179 (_DL_HWCAP_COUNT): ... here.
17180
17181 2018-01-16 Florian Weimer <fweimer@redhat.com>
17182
17183 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17184 mode with GNU extensions.
17185
17186 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17187
17188 * elf/elf.h (NT_ARM_SVE): Define.
17189
17190 2018-01-15 Florian Weimer <fweimer@redhat.com>
17191
17192 [BZ #22636]
17193 * nptl/tst-minstack-throw.cc: New file.
17194 * nptl/Makefile (tests): Add tst-minstack-throw.
17195 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17196 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17197
17198 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17199
17200 * scripts/build-many-glibcs.py (Context.checkout): Default
17201 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17202 version to 1.1.0.
17203
17204 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17205
17206 [BZ #22707]
17207 * elf/elf.h (DF_1_STUB): Define.
17208 (DF_1_PIE): Define.
17209
17210 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17211
17212 [BZ #22697]
17213 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17214 Do not add 0.5 to integer or out-of-range arguments.
17215
17216 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17217
17218 * po/bg.po: Update translations.
17219 * po/cs.po: Likewise.
17220 * po/de.po: Likewise.
17221 * po/ko.po: Likewise.
17222 * po/pl.po: Likewise.
17223 * po/sv.po: Likewise.
17224 * po/uk.po: Likewise.
17225 * po/vi.po: Likewise.
17226
17227 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17228
17229 * aarch64/start.S (_start): Use __wrap_main.
17230 (__wrap_main): New local symbol.
17231
17232 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17233
17234 [BZ #22679]
17235 CVE-2018-1000001
17236 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17237 generic_getcwd if the path returned by getcwd syscall is not absolute.
17238 * io/tst-getcwd-abspath.c: New test.
17239 * io/Makefile (tests): Add tst-getcwd-abspath.
17240
17241 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17242
17243 * malloc/malloc.c (malloc_consolidate): Add size check.
17244
17245 2018-01-12 Florian Weimer <fweimer@redhat.com>
17246
17247 * support/write_message.c (write_message): Preserve errno.
17248 * support/check.c (print_failure): Likewise.
17249 * support/support_test_verify_impl.c (support_test_verify_impl):
17250 Likewise.
17251 * support/support_test_compare_failure.c
17252 (support_test_compare_failure): Likewise.
17253
17254 2018-01-12 Florian Weimer <fweimer@redhat.com>
17255
17256 [BZ #22701]
17257 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17258 Prevent installation of libnsl.so.
17259 (libnsl-inhibit-o): Do not build (or install) static libraries.
17260
17261 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17262
17263 [BZ #22657]
17264 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17265 before the day number which may produce a double space.
17266 (date_fmt): Likewise.
17267
17268 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17269
17270 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17271 instead of fegetenv.
17272
17273 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17274
17275 [BZ #22702]
17276 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17277 comment to say exceptions are discarded.
17278 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17279 __fegetenv.
17280 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17281 be enabled.
17282
17283 2018-01-11 Florian Weimer <fweimer@redhat.com>
17284
17285 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17286 and error message.
17287
17288 2018-01-11 Florian Weimer <fweimer@redhat.com>
17289
17290 [BZ #22636]
17291 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17292 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17293
17294 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17295
17296 [BZ #22693]
17297 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17298 negative arguments in test for NaN or infinity argument.
17299
17300 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17301
17302 * po/libc.pot: Regenerate.
17303
17304 2018-01-10 Florian Weimer <fweimer@redhat.com>
17305
17306 [BZ #22636]
17307 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17308 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17309
17310 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17311
17312 * hurd/hurd/fd.h: Include <fcntl.h>
17313 (__hurd_at_flags): New function.
17314 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17315 with call to __hurd_at_flags.
17316 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17317 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17318 __faccessat
17319 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17320 (__access_noerrno): Use __faccessat_common instead of access_common.
17321 (__access): Likewise.
17322 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17323 with a call to __faccessat.
17324 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17325 (__faccessat_common): ... this. Move implementation of __access into it when
17326 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17327 reauthenticate_cwdir_at helper to implement AT mechanism.
17328 (__faccessat_noerrno): New function, just calls __faccessat_common.
17329 (__faccessat): New function, just calls __faccessat_common.
17330 (faccessat): Define weak alias.
17331
17332 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17333
17334 [BZ #22691]
17335 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17336 (CFLAGS-s_fmaxmagl.c): New variable.
17337 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17338
17339 [BZ #22690]
17340 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17341 long int for arguments of possibly overflowing addition or
17342 subtraction.
17343 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17344
17345 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17346
17347 [BZ #22688]
17348 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17349 (CFLAGS-e_remainderl.c): New variable.
17350
17351 [BZ #22687]
17352 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17353 variable.
17354 (CFLAGS-s_cacoshl.c): Likewise.
17355 (CFLAGS-s_casinhl.c): Likewise.
17356 (CFLAGS-s_catanl.c): Likewise.
17357 (CFLAGS-s_catanhl.c): Likewise.
17358 (CFLAGS-s_cexpl.c): Likewise.
17359 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17360 (CFLAGS-s_csinhl.c): Likewise.
17361 (CFLAGS-s_clogl.c): Likewise.
17362 (CFLAGS-s_clog10l.c): Likewise.
17363 (CFLAGS-s_csinl.c): Likewise.
17364 (CFLAGS-s_csqrtl.c): Likewise.
17365
17366 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17367 2017-01-09 Svante Signell <svante.signell@gmail.com>
17368
17369 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17370 (_hurd_exec_paths): New function.
17371 * hurd/hurd.h (_hurd_exec): Deprecate function.
17372 (_hurd_exec_paths): Declare function.
17373 * hurd/Versions: Export _hurd_exec_paths.
17374 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17375 (__execve): Use __getcwd to build absolute path, and use
17376 _hurd_exec_paths instead of _hurd_exec.
17377 * sysdeps/mach/hurd/spawni.c: Likewise.
17378 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17379 _hurd_exec.
17380
17381 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17382
17383 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17384 test instead of failing in case of ENOENT returned by posix_openpt.
17385
17386 2018-01-08 Florian Weimer <fweimer@redhat.com>
17387
17388 resolv: Support binary labels in test framework.
17389 * support/resolv_test.c (struct to_be_freed): Remove.
17390 (struct compressed_name): New.
17391 (allocate_compressed_name, ascii_tolower)
17392 (compare_compressed_name): New functions.
17393 (struct resolv_response_builder): Update type of
17394 compression_offsets for use with tsearch. Rempve to_be_freed.
17395 (response_push_pointer_to_free): Remove function.
17396 (resolv_response_add_name): Rewrite using struct compressed_name
17397 and tsearch instead of hsearch_r.
17398 (response_builder_allocate): Remove initialization of
17399 compression_offsets.
17400 (response_builder_free): Update for removal of to_be_freed. Use
17401 tdestroy instead of hdestroy_r.
17402 * resolv/Makefile (tests): Add tst-resolv-binary.
17403 (tst-resolv-binary): Link with -lresolv -lpthread.
17404
17405 2018-01-08 Florian Weimer <fweimer@redhat.com>
17406
17407 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17408 time. Pass positive flag instead of negative flag to
17409 support_test_compare_failure.
17410 (support_test_compare_failure): Change negative parameter to
17411 positive.
17412 * support/support_test_compare_failure.c (report)
17413 (support_test_compare_failure): Likewise.
17414 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17415 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17416
17417 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17418
17419 [BZ #22637]
17420 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17421 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17422 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17423 stacksize.
17424 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17425
17426 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17427
17428 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17429 Add s_sincosf-sse2 and s_sincosf-fma.
17430 (CFLAGS-s_sincosf-fma.c): New.
17431 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17432 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17433 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17434 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17435 __sincosf is defined.
17436
17437 2018-01-08 Florian Weimer <fweimer@redhat.com>
17438
17439 * nptl/tst-thread-exit-clobber.cc: New file.
17440 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17441 C++11 mode.
17442 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17443 (tests): Add tst-thread-exit-clobber.
17444 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17445
17446 2018-01-08 Florian Weimer <fweimer@redhat.com>
17447
17448 * support/check.h (support_static_assert): Define.
17449 (TEST_COMPARE): Use it.
17450
17451 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17452
17453 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17454 [!__RLIM_T_MATCHES_RLIM64_T]
17455 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17456 __getrlimit64. Add libc_hidden_weak.
17457
17458 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17459
17460 * elf/elf.h (R_RISCV_NONE): New define.
17461 (R_RISCV_32): Likewise.
17462 (R_RISCV_64): Likewise.
17463 (R_RISCV_RELATIVE): Likewise.
17464 (R_RISCV_COPY): Likewise.
17465 (R_RISCV_JUMP_SLOT): Likewise.
17466 (R_RISCV_TLS_DTPMOD32): Likewise.
17467 (R_RISCV_TLS_DTPMOD64): Likewise.
17468 (R_RISCV_TLS_DTPREL32): Likewise.
17469 (R_RISCV_TLS_DTPREL64): Likewise.
17470 (R_RISCV_TLS_TPREL32): Likewise.
17471 (R_RISCV_TLS_TPREL64): Likewise.
17472 * Makerules (make-link-multidir): Make directories before linking into
17473 them.
17474 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17475 define.
17476 (VDSO_HASH_LINUX_4_15): Likewise.
17477 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17478 in subdirectories of lib.
17479 * nptl/Makefile (/librt.so): Always depend on
17480 "$(shared-thread-library)".
17481
17482 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17483
17484 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17485 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17486 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17487 (___tls_get_addr).
17488 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17489 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17490 "-O2 -march=i686".
17491 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17492 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17493 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17494 * sysdeps/gnu/glob-lstat-compat.c: New file.
17495 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17496 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17497
17498 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17499
17500 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17501 Reserve 16 chars to reloc_addr before calling _itoa_word.
17502
17503 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17504
17505 [BZ #22678]
17506 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17507 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17508
17509 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17510 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17511
17512 * resource/tst-getrlimit.c: Add copyright header.
17513
17514 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17515 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17516
17517 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17518 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17519 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17520 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17521 instead.
17522 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17523 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17524 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17525 RLIM64_INFINITY): Fix values to match the kernel ones.
17526 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17527 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17528 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17529 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17530 getrlimit64@@GLIBC_2_27.
17531 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17532 and setrlimit64.
17533 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17534 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17535 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17536 setrlimit, getrlimit64 and setrlimit64.
17537
17538 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17539
17540 [BZ #22648]
17541 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17542 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17543
17544 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17545
17546 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17547 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17548 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17549
17550 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17551
17552 [BZ #15479]
17553 [BZ #22666]
17554 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17555 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17556
17557 [BZ #15479]
17558 [BZ #22665]
17559 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17560 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17561 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17562 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17563
17564 2018-01-04 Florian Weimer <fweimer@redhat.com>
17565
17566 [BZ #22667]
17567 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17568 Align the stack before calling exit.
17569 * stdlib/tst-makecontext-align.c: New file.
17570 * stdlib/Makefile (tests): Add tst-makecontext-align.
17571
17572 2018-01-04 Florian Weimer <fweimer@redhat.com>
17573
17574 Add support for calling dlvsym from libc.so.
17575 * include/dlfcn.h (__libc_dlvsym): Declare.
17576 * elf/Makefile (tests-static-internal): Add
17577 tst-libc_dlvsym-static.
17578 (tests-internal): Add tst-libc_dlvsym.
17579 (modules-names): Add tst-libc_dlvsym-dso.
17580 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17581 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17582 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17583 object tst-libc_dlvsym-dso.so needs to be built before running
17584 these tests.
17585 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17586 * elf/Versions: Export __libc_dlvsym.
17587 * elf/dl-libc.c (struct do_dlvsym_args): New.
17588 (do_dlvsym, __libc_dlvsym): New functions.
17589 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17590 (_dl_open_hook2): New variable.
17591 (__libc_register_dl_open_hook): Set it.
17592 * elf/tst-libc_dlvsym-dso.c: New file.
17593 * elf/tst-libc_dlvsym-static.c: Likewise.
17594 * elf/tst-libc_dlvsym.c: Likewise.
17595 * elf/tst-libc_dlvsym.h: Likewise.
17596
17597 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17598
17599 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17600 include <sys/mount.h>.
17601
17602 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17603
17604 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17605 Add __NO_MATH_ERRNO__ check.
17606
17607 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17608
17609 * sysdeps/mips/mips32/libm-test-ulps: Update.
17610 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17611
17612 2018-01-02 Florian Weimer <fweimer@redhat.com>
17613
17614 * misc/tst-pselect.c: Add copyright header.
17615
17616 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17617
17618 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17619 comment.
17620 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17621 comment.
17622 (settrlimit): Rename into setrlimit.
17623 (__sttrlimit): Rename into __setrlimit.
17624
17625 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17626 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17627 never defined in that case.
17628
17629 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17630
17631 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17632
17633 * sysdeps/arm/libm-test-ulps: Update.
17634
17635 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17636 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17637
17638 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17639
17640 * NEWS: Add cosf and sincosf to list of optimized functions.
17641
17642 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17643
17644 [BZ #22660]
17645 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17646 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17647 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17648 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17649
17650 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17651
17652 [BZ #22433]
17653 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17654
17655 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17656 making a copy of it.
17657
17658 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17659
17660 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17661 trailing whitespace removed.
17662 * scripts/config.guess: Update to version 2018-01-01.
17663 * scripts/config.sub: Update to version 2018-01-01.
17664 * scripts/move-if-change: Update from gnulib.
17665
17666 * NEWS: Update copyright dates.
17667 * catgets/gencat.c (print_version): Likewise.
17668 * csu/version.c (banner): Likewise.
17669 * debug/catchsegv.sh: Likewise.
17670 * debug/pcprofiledump.c (print_version): Likewise.
17671 * debug/xtrace.sh (do_version): Likewise.
17672 * elf/ldconfig.c (print_version): Likewise.
17673 * elf/ldd.bash.in: Likewise.
17674 * elf/pldd.c (print_version): Likewise.
17675 * elf/sotruss.sh: Likewise.
17676 * elf/sprof.c (print_version): Likewise.
17677 * iconv/iconv_prog.c (print_version): Likewise.
17678 * iconv/iconvconfig.c (print_version): Likewise.
17679 * locale/programs/locale.c (print_version): Likewise.
17680 * locale/programs/localedef.c (print_version): Likewise.
17681 * login/programs/pt_chown.c (print_version): Likewise.
17682 * malloc/memusage.sh (do_version): Likewise.
17683 * malloc/memusagestat.c (print_version): Likewise.
17684 * malloc/mtrace.pl: Likewise.
17685 * manual/libc.texinfo: Likewise.
17686 * nptl/version.c (banner): Likewise.
17687 * nscd/nscd.c (print_version): Likewise.
17688 * nss/getent.c (print_version): Likewise.
17689 * nss/makedb.c (print_version): Likewise.
17690 * posix/getconf.c (main): Likewise.
17691 * scripts/test-installation.pl: Likewise.
17692 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17693
17694 * All files with FSF copyright notices: Update copyright dates
17695 using scripts/update-copyrights.
17696 * locale/programs/charmap-kw.h: Regenerated.
17697 * locale/programs/locfile-kw.h: Likewise.
17698
17699 2017-12-31 Zack Weinberg <zackw@panix.com>
17700
17701 * libio/bits/libio-ldbl.h: Correct check for improper
17702 inclusion. Add own multiple include guard.
17703
17704 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17705 Dmitry V. Levin <ldv@altlinux.org>
17706
17707 [BZ #22625]
17708 CVE-2017-16997
17709 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17710 string token expansion. Check for NULL pointer or empty string possibly
17711 returned by expand_dynamic_string_token.
17712 (decompose_rpath): Check for empty path after dynamic string
17713 token expansion.
17714
17715 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17716
17717 [BZ #22433]
17718 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17719
17720 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17721 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17722 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17723 and PTRACE_SYSCALL.
17724 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17725 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17726 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17727 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17728 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17729 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17730
17731 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17732 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17733 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17734 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17735 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17736 bits/ptrace-shared.h.
17737 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17738 <bits/ptrace-shared.h>.
17739 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17740 __ptrace_peeksiginfo_flags, ptrace): Remove.
17741 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17742 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17743 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17744 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17745 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17746
17747 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17748
17749 [BZ #17804]
17750 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17751 end of the loop. Improve comments.
17752
17753 2017-12-29 Zack Weinberg <zackw@panix.com>
17754
17755 [BZ #22615]
17756 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17757 might be set on success.
17758
17759 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17760
17761 [BZ #22611]
17762 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17763 is unchanged on success.
17764
17765 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17766
17767 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17768 updated.
17769 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17770 expand_dynamic_string_token): Likewise.
17771 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17772 is_path argument.
17773
17774 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17775 contains ':'.
17776
17777 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17778 is set and name contains ':', and all code depending on these checks.
17779
17780 2017-12-24 Zack Weinberg <zackw@panix.com>
17781
17782 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17783 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17784 respectively.
17785 * libio/libio.h: Rename the original version of this file to
17786 libio/bits/libio.h. Error out if not included by stdio.h or the
17787 stub libio.h.
17788 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17789 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17790 if not included by bits/libio.h or the stub _G_config.h.
17791 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17792 sysdeps/unix/sysv/linux/bits. Error out if not included by
17793 bits/libio.h or the stub _G_config.h.
17794 * libio/stdio.h: Include bits/libio.h, not libio.h.
17795 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17796 well as libio.h and _G_config.h.
17797
17798 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17799 * libio/strfile.h, stdio-common/vfscanf.c
17800 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17801 Include stdio.h, not _G_config.h nor libio.h.
17802 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17803 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17804
17805 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17806
17807 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17808
17809 [BZ #22347]
17810 * stdlib/getrandom.c (getrandom): Fix comment.
17811 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17812
17813 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17814
17815 [BZ #21161]
17816 * manual/arith.texi (strtoul): Fix a typo.
17817
17818 [BZ #22596]
17819 * manual/arith.texi (finite): Fix the description of the return
17820 value.
17821
17822 2017-12-22 Eric Blake <ebb9@byu.net>
17823
17824 Avoid gcc warnings on cygwin
17825 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17826 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17827 Avoid unused variable.
17828
17829 2017-12-22 Florian Weimer <fweimer@redhat.com>
17830
17831 * io/Makefile (routines): Add copy_file_range.
17832 (tests): Add tst-copy_file_range.
17833 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17834 * io/Versions (GLIBC_2.27): Export copy_file_range.
17835 * io/copy_file_range-compat.c: New file.
17836 * io/copy_file_range.c: Likewise.
17837 * io/tst-copy_file_range-compat.c: Likewise.
17838 * io/tst-copy_file_range.c: Likewise.
17839 * manual/llio.texi (Copying File Data): New section.
17840 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17841 * support/Makefile (libsupport-routines): Add support-xfstat,
17842 xftruncate, xlseek.
17843 * support/support-xfstat.c: New file.
17844 * support/xftruncate.c: Likewise.
17845 * support/xlseek.c: Likewise.
17846 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17847 * sysdeps/unix/sysv/linux/**.abilist: Update.
17848 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17849
17850 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17851
17852 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17853 disable-multi-arch variant to aarch64-linux-gnu.
17854
17855 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17856
17857 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17858 trailing whitespace removed.
17859 * scripts/config.guess: Update to version 2017-12-17.
17860 * scripts/config.sub: Update to version 2017-11-23.
17861 * scripts/install-sh: Update to version 2017-09-23.17.
17862 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17863
17864 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17865
17866 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17867 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17868 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17869 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17870 * sysdeps/tile/crtn.S: Likewise.
17871 * sysdeps/tile/dl-start.S (_start): Likewise.
17872 * sysdeps/tile/dl-trampoline.S: Likewise.
17873 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17874 * sysdeps/tile/start.S (_start): Likewise.
17875 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17876 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17877 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17878 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17879 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17880 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17881 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17882
17883 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17884 comment.
17885 * sysdeps/tile/preconfigure: Remove tilegx folder.
17886 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17887 * sysdeps/tile/Implies: ... here.
17888 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17889 * sysdeps/tile/Makefile: ... here.
17890 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17891 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17892 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17893 * sysdeps/tile/bits/wordsize.h: ... here.
17894 * sysdeps/tile/tilegx/*: Move to ...
17895 * sysdeps/tile/*: ... here.
17896 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17897 * sysdeps/tile/tilegx32/Implies: ... here.
17898 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17899 * sysdeps/tile/tilegx64/Implies: ... here.
17900 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17901 to ...
17902 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17903 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17904 * sysdeps/unix/sysv/linux/tile/*: ... here.
17905 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17906 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17907 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17908 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17909
17910 * README: Remove tilepro-*-linux-gnu from supported architecture.
17911 * scripts/build-many-glibcs.py: Likewise.
17912 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17913 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17914 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17915 elf_machine_matches_host, elf_machine_dynamic,
17916 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17917 howto, elf_machine_rela): Likewise.
17918 * sysdeps/tile/dl-start.S (_start): Likewise.
17919 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17920 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17921 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17922 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17923 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17924 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17925 Likewise.
17926 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17927 * sysdeps/tile/preconfigure: Likewise.
17928 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17929 POINTER_CHK_GUARD): Likewise.
17930 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17931 * sysdeps/tile/start.S (_start): Likewise.
17932 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17933 Likewise.
17934 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17935 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17936 CMOVNEZ): Remove.
17937 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17938 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17939 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17940 Likewise.
17941 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17942 * sysdeps/tile/tilepro/Implies: Remove file.
17943 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17944 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17945 * sysdeps/tile/tilepro/memchr.c: Likewise.
17946 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17947 * sysdeps/tile/tilepro/memset.c: Likewise.
17948 * sysdeps/tile/tilepro/memusage.h: Likewise.
17949 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17950 * sysdeps/tile/tilepro/strchr.c: Likewise.
17951 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17952 * sysdeps/tile/tilepro/strlen.c: Likewise.
17953 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17954 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17955 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17956 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17957 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17959 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17960 Likewise.
17961 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17973 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17974 tilepro mention in comment.
17975
17976 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17977 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17978 * nptl/pthread_join_common.c: New file: common function used on
17979 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17980 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17981 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17982 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17983 (cleanup): Move definition to pthread_join_common.c.
17984 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17985 Remove superflous checks.
17986 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17987 Likewise.
17988
17989 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17990
17991 * sysdeps/aarch64/libm-test-ulps: Update.
17992
17993 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17994
17995 * sysdeps/aarch64/memset.S (MEMSET): Define.
17996
17997 2017-12-20 Florian Weimer <fweimer@redhat.com>
17998
17999 [BZ #22635]
18000 nptl: Provide full implementation of pthread_self in libc.so.
18001 * nptl/Makefile (routines): Add pthread_self.
18002 (libpthread-routines): Replace pthread_self with
18003 compat-pthread_self.
18004 * nptl/forward.c (pthread_self): Remove.
18005 * nptl/nptl-init.c (pthread_functions): Do not initialize
18006 ptr_pthread_self.
18007 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18008 * nptl/compat-pthread_self.c: New file.
18009 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18010 Remove ptr_pthread_self.
18011
18012 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18013
18014 * posix/regcomp.c: Fix spelling in comments.
18015 * posix/regex.h: Likewise.
18016 * posix/regex_internal.c: Likewise.
18017 * posix/regexec.c: Likewise.
18018
18019 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18020
18021 [BZ #22377]
18022 * math/Makefile [C++] (tests): Add test for iseqsig.
18023 * math/math.h [C++] (iseqsig): New implementation, which does
18024 not rely on __MATH_TG/__builtin_types_compatible_p.
18025 * math/test-math-iseqsig.cc: New file.
18026 * sysdeps/powerpc/powerpc64le/Makefile
18027 (CFLAGS-test-math-iseqsig.cc): New variable.
18028
18029 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18030
18031 * elf/dl-load.c (is_trusted_path): Remove.
18032 (fillin_rpath): Remove check_trusted argument and its use,
18033 all callers changed.
18034
18035 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18036
18037 [BZ #22630]
18038 * Makeconfig (link-pie-before-libc): Replace -pie with
18039 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18040 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18041 (tst-dlopen-aout-no-pie): New.
18042 (LDFLAGS-tst-prelink): Removed.
18043 (tst-prelink-no-pie): New.
18044 (LDFLAGS-tst-main1): Removed.
18045 (tst-main1-no-pie): New.
18046 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18047 (tst-gmon-no-pie): New.
18048
18049 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18050
18051 * manual/install.texi: Document that --enable-static-pie
18052 implies PIE.
18053 * INSTALL: Regenerated.
18054
18055 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18056
18057 [BZ #21309]
18058 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18059 unsigned.
18060
18061 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18062
18063 Revert:
18064
18065 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18066
18067 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18068
18069 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18070
18071 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18072 <errno.h>. Include "eexp.tbl".
18073 (half): New constant.
18074 (one): Likewise.
18075 (__ieee754_exp): Rewrite.
18076 (__slowexp): Remove prototype.
18077 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18078 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18079 * sysdeps/i386/fpu/slowexp.c: Likewise.
18080 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18081 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18082 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18083 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18084 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18085 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18086 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18087 comment.
18088 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18089 (CPPFLAGS-slowexp.c): Remove variable.
18090 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18091 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18092 (CFLAGS-slowexp-fma.c): Remove variable.
18093 (CFLAGS-slowexp-fma4.c): Likewise.
18094 (CFLAGS-slowexp-avx.c): Likewise.
18095 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18096 define as macro.
18097 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18098 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18099 * math/Makefile (type-double-routines): Remove slowexp.
18100 * manual/probes.texi (slowexp_p6): Remove.
18101 (slowexp_p32): Likewise.
18102
18103 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18104
18105 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18106 arithmetic.
18107
18108 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18109
18110 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18111
18112 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18113
18114 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18115
18116 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18117 <errno.h>. Include "eexp.tbl".
18118 (half): New constant.
18119 (one): Likewise.
18120 (__ieee754_exp): Rewrite.
18121 (__slowexp): Remove prototype.
18122 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18123 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18124 * sysdeps/i386/fpu/slowexp.c: Likewise.
18125 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18126 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18127 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18128 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18129 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18130 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18131 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18132 comment.
18133 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18134 (CPPFLAGS-slowexp.c): Remove variable.
18135 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18136 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18137 (CFLAGS-slowexp-fma.c): Remove variable.
18138 (CFLAGS-slowexp-fma4.c): Likewise.
18139 (CFLAGS-slowexp-avx.c): Likewise.
18140 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18141 define as macro.
18142 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18143 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18144 * math/Makefile (type-double-routines): Remove slowexp.
18145 * manual/probes.texi (slowexp_p6): Remove.
18146 (slowexp_p32): Likewise.
18147
18148 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18149 James Clarke <jrtc27@jrtc27.com>
18150
18151 [BZ #22603]
18152 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18153 addition.
18154
18155 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18156
18157 [BZ #22605]
18158 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18159 code.
18160
18161 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18162
18163 [BZ #22563]
18164 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18165 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18166 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18167 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18168 to feature_1.
18169
18170 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18171
18172 [BZ #22563]
18173 * bits/types/__cancel_jmp_buf_tag.h: New file.
18174 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18175 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18176 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18177 * nptl/Makefile (headers): Add
18178 bits/types/__cancel_jmp_buf_tag.h.
18179 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18180 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18181 * sysdeps/nptl/pthread.h: Include
18182 <bits/types/__cancel_jmp_buf_tag.h>.
18183 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18184 __cancel_jmp_buf.
18185 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18186
18187 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18190 --enable-static-pie variants to x86_64, x32 and i686.
18191
18192 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18193
18194 [BZ #22631]
18195 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18196 argument for attrubutes. All callers changed.
18197 (__inline_mathop1): Likewise. All callers changed.
18198 (__inline_mathop): Likewise. All callers changed.
18199 [__USE_MISC] (scalbn): Use __inline_forward instead of
18200 __inline_forward_c.
18201 [__USE_ISOC99] (scalbln): Likewise.
18202 [__USE_ISOC99] (nearbyint): Likewise.
18203 [__USE_ISOC99] (lrint): Likewise.
18204 [__USE_MISC] (scalbnf): Likewise.
18205 [__USE_ISOC99] (scalblnf): Likewise.
18206 [__USE_ISOC99] (nearbyintf): Likewise.
18207 [__USE_ISOC99] (lrintf): Likewise.
18208 [__USE_MISC] (scalbnl): Likewise.
18209 [__USE_ISOC99] (scalblnl): Likewise.
18210 [__USE_ISOC99] (nearbyintl): Likewise.
18211 [__USE_ISOC99] (lrintl): Likewise.
18212 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18213 __inline_mathop and __m81_defun changed.
18214
18215 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18216 CPU or FPU for ARM hard-float configurations.
18217
18218 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18219
18220 * nptl/tst-attr3.c: Include <libc-diag.h>.
18221 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18222
18223 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18224
18225 * string/tester.c (test_strncat): Also disable -Warray-bounds
18226 warnings for two tests.
18227
18228 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18229
18230 [BZ #22614]
18231 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18232 $(cc-pie-default) == yes.
18233 * config.make.in (cc-pie-default): New.
18234 * configure.ac (libc_cv_pie_default): Renamed to ...
18235 (libc_cv_cc_pie_default): This.
18236 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18237 * configure: Regenerated.
18238
18239 2017-12-18 Florian Weimer <fweimer@redhat.com>
18240
18241 [BZ #20204]
18242 ld.so: Harden dl-libc/libdl hooks.
18243 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18244 (rtld_active): New function.
18245 * dlfcn/dladdr.c (__dladdr): Call it.
18246 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18247 * dlfcn/dlclose.c (__dlcose): Likewise.
18248 * dlfcn/dlerror.c (__dlerror): Likewise.
18249 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18250 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18251 * dlfcn/dlopen.c (__dlopen): Likewise.
18252 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18253 * dlfcn/dlsym.c (__dlsym): Likewise.
18254 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18255 * libio/vtables.c (_IO_vtable_check): Likewise.
18256 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18257 (__libc_dlclose): Likewise.
18258 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18259 assignment.
18260
18261 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18262
18263 [BZ #22446]
18264 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18265 buffers for readlink input and output.
18266
18267 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18268
18269 [BZ #22624]
18270 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18271 inhibit_stack_protector.
18272
18273 [BZ #22624]
18274 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18275 inhibit_stack_protector.
18276
18277 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18278
18279 [BZ #22627]
18280 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18281 code and invocation.
18282
18283 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18284
18285 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18286
18287 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18288
18289 [BZ #22505]
18290 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18291
18292 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18293
18294 * sysdeps/s390/fpu/libm-test-ulps: Update.
18295
18296 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18297
18298 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18299
18300 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18301
18302 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18303 constants to s_sincosf.h file.
18304 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18305 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18306 implementation.
18307 * sysdeps/ieee754/flt-32/s_sincosf.h:
18308 New file.
18309
18310 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18311
18312 [BZ #14681]
18313 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18314 before mtrace.
18315
18316 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18317
18318 [BZ #19574]
18319 * INSTALL: Regenerated.
18320 * Makeconfig (real-static-start-installed-name): New.
18321 (pic-default): Updated for --enable-static-pie.
18322 (pie-default): New for --enable-static-pie.
18323 (default-pie-ldflag): Likewise.
18324 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18325 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18326 Replace $(static-start-installed-name) with
18327 $(real-static-start-installed-name).
18328 (+prectorT): Updated for --enable-static-pie.
18329 (+postctorT): Likewise.
18330 (CFLAGS-.o): Add $(pie-default).
18331 (CFLAGS-.op): Likewise.
18332 * NEWS: Mention --enable-static-pie.
18333 * config.h.in (ENABLE_STATIC_PIE): New.
18334 * configure.ac (--enable-static-pie): New configure option.
18335 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18336 (have-static-pie): Likewise.
18337 Enable static PIE if linker supports --no-dynamic-linker.
18338 (ENABLE_STATIC_PIE): New AC_DEFINE.
18339 (enable-static-pie): New LIBC_CONFIG_VAR.
18340 * configure: Regenerated.
18341 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18342 gr$(start-installed-name) for --enable-static-pie.
18343 (extra-objs): Likewise.
18344 (install-lib): Likewise.
18345 (extra-objs): Add static-reloc.o and static-reloc.os
18346 ($(objpfx)$(start-installed-name)): Also depend on
18347 $(objpfx)static-reloc.o.
18348 ($(objpfx)r$(start-installed-name)): New.
18349 ($(objpfx)g$(start-installed-name)): Also depend on
18350 $(objpfx)static-reloc.os.
18351 ($(objpfx)gr$(start-installed-name)): New.
18352 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18353 in libc.a.
18354 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18355 initimage.
18356 * csu/static-reloc.c: New file.
18357 * elf/Makefile (routines): Add dl-reloc-static-pie.
18358 (elide-routines.os): Likewise.
18359 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18360 (tst-tls1-static-non-pie-no-pie): New.
18361 * elf/dl-reloc-static-pie.c: New file.
18362 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18363 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18364 STATIC_PIE_BOOTSTRAP.
18365 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18366 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18367 (tests-static): Likewise.
18368 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18369 (tst-gmon-static-no-pie): New.
18370 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18371 (CRT-tst-gmon-static-pie): Likewise.
18372 (tst-gmon-static-pie-ENV): Likewise.
18373 (tests-special): Likewise.
18374 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18375 (clean-tst-gmon-static-pie-data): Likewise.
18376 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18377 * gmon/tst-gmon-static-pie.c: New file.
18378 * manual/install.texi: Document --enable-static-pie.
18379 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18380 (_dl_get_dl_main_map): Likewise.
18381 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18382 * sysdeps/x86_64/configure.ac: Likewise.
18383 * sysdeps/i386/configure: Regenerated.
18384 * sysdeps/x86_64/configure: Likewise.
18385 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18386 (ASFLAGS-.op): Likewise.
18387
18388 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18389
18390 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18391 * posix/tst-mmap-offset.c (fname): Use /tmp.
18392 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18393
18394 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18395
18396 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18397
18398 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18399
18400 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18401 errno.
18402
18403 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18404
18405 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18406 --with-float=hard for arm-linux-gnueabihf configurations.
18407
18408 [BZ #14121]
18409 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18410 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18411 ($(mo-installed)): Use $(objpfx)%.mo.
18412 (realclean): Remove rule.
18413
18414 * po/Makefile (linguas): Remove rule and dependencies.
18415 (linguas.mo): Likewise.
18416 (.PHONY): Do not depend on linguas and linguas.mo.
18417 (podir): Remove variable.
18418 (pofiles): Likewise.
18419 [$(pofiles)] (%.po): Remove rule.
18420
18421 * sysdeps/sparc/sparc32/Makefile
18422 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18423 start-of-line whitespace in argument of echo.
18424 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18425 with whitespace. Generate __wrap_.udiv alias.
18426 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18427 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18428 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18429 * sysdeps/sparc/sparc32/urem.S: Likewise.
18430
18431 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18432
18433 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18434 for aligned inputs.
18435
18436 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18437
18438 * benchtests/bench-strcmp.c: Print output in JSON format.
18439
18440 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18441
18442 2017-12-14 Florian Weimer <fweimer@redhat.com>
18443
18444 [BZ #22607]
18445 CVE-2017-1000409
18446 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18447 the expanded path string.
18448
18449 2017-12-14 Florian Weimer <fweimer@redhat.com>
18450
18451 [BZ #22606]
18452 CVE-2017-1000408
18453 * elf/dl-load.c (system_dirs): Update comment.
18454 (nsystem_dirs_len): Use array_length.
18455 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18456
18457 2017-12-14 Florian Weimer <fweimer@redhat.com>
18458
18459 Simplify compiling most of support/ outside of glibc.
18460 * support/check_addrinfo.c: Include <string.h>.
18461 * support/check_dns_packet.c: Likewise.
18462 * support/check_hostent.c: Likewise.
18463 * support/support_can_chroot.c: Include <support/xunistd.h>.
18464 * support/support_format_addrinfo.c: Include <stdlib.h>
18465 * support/support_format_dns_packet.c: Include <stdbool.h>.
18466 * support/support_format_hostent.c: Include <stdlib.h>.
18467 * support/support_format_netent.c: Likewise.
18468 * support/support_write_string.c: Include <support/xunistd.h>.
18469 * support/xdlfcn.c: Include <stddef.h>.
18470
18471 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18472
18473 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18474
18475 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18476 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18477
18478 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18479 (sysdeps_routines): Add memset-niagara7.
18480 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18481 Likewise.
18482 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18483 file.
18484 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18485 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18486 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18487 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18488 Add niagara7 option.
18489 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18490 memset.
18491
18492 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18493 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18494 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18495 Likewise.
18496 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18497 New file.
18498 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18499 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18500 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18501 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18502 and __memmove_niagara7.
18503 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18504 Add niagara7 option.
18505 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18506 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18507 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18508 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18509 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18510
18511 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18512
18513 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18514 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18515 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18516 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18517
18518 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18519 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18520 _dl_sparc_cap_flags array.
18521 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18522
18523 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18524
18525 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18526 time whenever possible.
18527
18528 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18529
18530 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18531 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18532
18533 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18534
18535 * soft-fp/fmadf4.c: Move to ....
18536 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18537 * soft-fp/fmasf4.c: Move to ....
18538 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18539 * soft-fp/fmatf4.c: Move to ....
18540 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18541 * sysdeps/ieee754/soft-fp/Makefile: New file.
18542 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18543 * sysdeps/arm/preconfigure: Regenerated.
18544 * sysdeps/arm/nofpu/Implies: New file.
18545 * sysdeps/arm/s_fma.c: Remove file.
18546 * sysdeps/arm/s_fmaf.c: Likewise.
18547 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18548 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18549 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18550 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18551 * sysdeps/microblaze/s_fma.c: Remove file.
18552 * sysdeps/microblaze/s_fmaf.c: Likewise.
18553 * sysdeps/mips/mips32/nofpu/Implies: New file.
18554 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18555 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18556 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18557 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18558 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18559 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18560 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18561 implementation.
18562 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18563 * sysdeps/nios2/s_fma.c: Remove file.
18564 * sysdeps/nios2/s_fmaf.c: Likewise.
18565 * sysdeps/sh/nofpu/Implies: New file.
18566 * sysdeps/sh/s_fma.c: Remove file.
18567 * sysdeps/sh/s_fmaf.c: Likewise.
18568 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18569 * sysdeps/tile/s_fma.c: Remove file.
18570 * sysdeps/tile/s_fmaf.c: Likewise.
18571
18572 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18575 Add s_cosf-sse2 and s_cosf-fma.
18576 (CFLAGS-s_cosf-fma.c): New.
18577 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18578 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18579 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18580
18581 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18582
18583 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18584
18585 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18586
18587 * libio/Makefile (tests): Add tst-bz22415.
18588 (tst-bz22415-ENV): New rule.
18589 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18590 (tests-special): Add tst-bz22415-mem.out.
18591 ($(objpfx)tst-bz22415-mem.out): New rule.
18592 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18593 in case of a successful seek operation.
18594 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18595 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18596 buffer is required.
18597 * libio/tst-bz22415.c: New test.
18598
18599 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18600
18601 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18602
18603 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18604 __IPC_64 to 0 to avoid IPC_64 being set.
18605
18606 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18607
18608 [BZ #22593]
18609 * math/bits/mathcalls.h (nextafter): Remove const.
18610 (nexttoward): Likewise.
18611
18612 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18613
18614 * configure.ac (--with-fp): Remove configure option.
18615 (with_fp_cond): New variable.
18616 (libc_cv_with_fp): New configure test. Use this variable instead
18617 of with_fp.
18618 * configure: Regenerated.
18619 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18620 * manual/install.texi (Configuring and compiling): Remove
18621 --without-fp.
18622 * INSTALL: Regenerated.
18623 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18624 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18625 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18626 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18627 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18628 use --without-fp to configure glibc.
18629
18630 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18631
18632 * manual/locale.texi (nl_langinfo): Fix a typo.
18633
18634 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18635
18636 [BZ #22588]
18637 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18638
18639 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18640
18641 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18642 (CFLAGS-argp-parse.c): Likewise.
18643 (CFLAGS-argp-fmtstream.c): Likewise.
18644 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18645 (CPPFLAGS-sha512-crypt.c): Likewise.
18646 (CPPFLAGS-md5-crypt.c): Likewise.
18647 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18648 (CFLAGS-stack_chk_fail_local.c): Likewise.
18649 (CFLAGS-backtrace.c): Likewise.
18650 (CFLAGS-sprintf_chk.c): Likewise.
18651 (CFLAGS-snprintf_chk.c): Likewise.
18652 (CFLAGS-vsprintf_chk.c): Likewise.
18653 (CFLAGS-vsnprintf_chk.c): Likewise.
18654 (CFLAGS-asprintf_chk.c): Likewise.
18655 (CFLAGS-vasprintf_chk.c): Likewise.
18656 (CFLAGS-obprintf_chk.c): Likewise.
18657 (CFLAGS-dprintf_chk.c): Likewise.
18658 (CFLAGS-vdprintf_chk.c): Likewise.
18659 (CFLAGS-printf_chk.c): Likewise.
18660 (CFLAGS-fprintf_chk.c): Likewise.
18661 (CFLAGS-vprintf_chk.c): Likewise.
18662 (CFLAGS-vfprintf_chk.c): Likewise.
18663 (CFLAGS-gets_chk.c): Likewise.
18664 (CFLAGS-fgets_chk.c): Likewise.
18665 (CFLAGS-fgets_u_chk.c): Likewise.
18666 (CFLAGS-fread_chk.c): Likewise.
18667 (CFLAGS-fread_u_chk.c): Likewise.
18668 (CFLAGS-swprintf_chk.c): Likewise.
18669 (CFLAGS-vswprintf_chk.c): Likewise.
18670 (CFLAGS-wprintf_chk.c): Likewise.
18671 (CFLAGS-fwprintf_chk.c): Likewise.
18672 (CFLAGS-vwprintf_chk.c): Likewise.
18673 (CFLAGS-vfwprintf_chk.c): Likewise.
18674 (CFLAGS-fgetws_chk.c): Likewise.
18675 (CFLAGS-fgetws_u_chk.c): Likewise.
18676 (CFLAGS-read_chk.c): Likewise.
18677 (CFLAGS-pread_chk.c): Likewise.
18678 (CFLAGS-pread64_chk.c): Likewise.
18679 (CFLAGS-recv_chk.c): Likewise.
18680 (CFLAGS-recvfrom_chk.c): Likewise.
18681 (CFLAGS-tst-longjmp_chk.c): Likewise.
18682 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18683 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18684 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18685 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18686 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18687 (CFLAGS-tst-chk1.c): Likewise.
18688 (CFLAGS-tst-chk2.c): Likewise.
18689 (CFLAGS-tst-chk3.c): Likewise.
18690 (CFLAGS-tst-chk4.cc): Likewise.
18691 (CFLAGS-tst-chk5.cc): Likewise.
18692 (CFLAGS-tst-chk6.cc): Likewise.
18693 (CFLAGS-tst-lfschk1.c): Likewise.
18694 (CFLAGS-tst-lfschk2.c): Likewise.
18695 (CFLAGS-tst-lfschk3.c): Likewise.
18696 (CFLAGS-tst-lfschk4.cc): Likewise.
18697 (CFLAGS-tst-lfschk5.cc): Likewise.
18698 (CFLAGS-tst-lfschk6.cc): Likewise.
18699 (CFLAGS-tst-ssp-1.c): Likewise.
18700 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18701 (CFLAGS-scandir64.c): Likewise.
18702 (CFLAGS-scandir-tail.c): Likewise.
18703 (CFLAGS-scandir64-tail.c): Likewise.
18704 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18705 (CFLAGS-dl-tunables.c): Likewise.
18706 (CFLAGS-dl-runtime.c): Likewise.
18707 (CFLAGS-dl-lookup.c): Likewise.
18708 (CFLAGS-dl-iterate-phdr.c): Likewise.
18709 (CFLAGS-vismain.c): Likewise.
18710 (CFLAGS-tst-linkall-static.c): Likewise.
18711 (CFLAGS-tst-linkall-static.c): Likewise.
18712 (CPPFLAGS-dl-load.c): Likewise.
18713 (CFLAGS-ldconfig.c): Likewise.
18714 (CFLAGS-dl-cache.c): Likewise.
18715 (CFLAGS-cache.c): Likewise.
18716 (CFLAGS-rtld.c): Likewise.
18717 (CFLAGS-multiload.c): Likewise.
18718 (CFLAGS-filtmod1.c): Likewise.
18719 (CFLAGS-tst-align.c): Likewise.
18720 (CFLAGS-tst-align2.c): Likewise.
18721 (CFLAGS-tst-alignmod.c): Likewise.
18722 (CFLAGS-tst-alignmod2.c): Likewise.
18723 (CPPFLAGS-tst-execstack.c): Likewise.
18724 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18725 (CFLAGS-tst-latepthreadmod.c): Likewise.
18726 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18727 (CFLAGS-getgrnam_r.c): Likewise.
18728 (CFLAGS-getgrent_r.c): Likewise.
18729 (CFLAGS-getgrent.c): Likewise.
18730 (CFLAGS-fgetgrent.c): Likewise.
18731 (CFLAGS-fgetgrent_r.c): Likewise.
18732 (CFLAGS-putgrent.c): Likewise.
18733 (CFLAGS-initgroups.c): Likewise.
18734 (CFLAGS-getgrgid.c): Likewise.
18735 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18736 (CFLAGS-getsgent.c): Likewise.
18737 (CFLAGS-fgetsgent.c): Likewise.
18738 (CFLAGS-fgetsgent_r.c): Likewise.
18739 (CFLAGS-putsgent.c): Likewise.
18740 (CFLAGS-getsgnam.c): Likewise.
18741 (CFLAGS-getsgnam_r.c): Likewise.
18742 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18743 (CFLAGS-iconv_charmap.c): Likewise.
18744 (CFLAGS-dummy-repertoire.c): Likewise.
18745 (CFLAGS-charmap.c): Likewise.
18746 (CFLAGS-linereader.c): Likewise.
18747 (CFLAGS-simple-hash.c): Likewise.
18748 (CFLAGS-gconv_conf.c): Likewise.
18749 (CFLAGS-iconvconfig.c): Likewise.
18750 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18751 (CFLAGS-gethstbyad.c): Likewise.
18752 (CFLAGS-gethstbynm_r.c): Likewise.
18753 (CFLAGS-gethstbynm.c): Likewise.
18754 (CFLAGS-gethstbynm2_r.c): Likewise.
18755 (CFLAGS-gethstbynm2.c): Likewise.
18756 (CFLAGS-gethstent_r.c): Likewise.
18757 (CFLAGS-gethstent.c): Likewise.
18758 (CFLAGS-rcmd.c): Likewise.
18759 (CFLAGS-getnetbynm_r.c): Likewise.
18760 (CFLAGS-getnetbynm.c): Likewise.
18761 (CFLAGS-getnetbyad_r.c): Likewise.
18762 (CFLAGS-getnetbyad.c): Likewise.
18763 (CFLAGS-getnetent_r.c): Likewise.
18764 (CFLAGS-getnetent.c): Likewise.
18765 (CFLAGS-getaliasent_r.c): Likewise.
18766 (CFLAGS-getaliasent.c): Likewise.
18767 (CFLAGS-getrpcent_r.c): Likewise.
18768 (CFLAGS-getrpcent.c): Likewise.
18769 (CFLAGS-getservent_r.c): Likewise.
18770 (CFLAGS-getservent.c): Likewise.
18771 (CFLAGS-getprtent_r.c): Likewise.
18772 (CFLAGS-getprtent.c): Likewise.
18773 (CFLAGS-either_ntoh.c): Likewise.
18774 (CFLAGS-either_hton.c): Likewise.
18775 (CFLAGS-getnetgrent.c): Likewise.
18776 (CFLAGS-getnetgrent_r.c): Likewise.
18777 (CFLAGS-tst-checks-posix.c): Likewise.
18778 (CFLAGS-tst-sockaddr.c): Likewise.
18779 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18780 (CFLAGS-tst-translit.c): Likewise.
18781 (CFLAGS-tst-gettext2.c): Likewise.
18782 (CFLAGS-tst-codeset.c): Likewise.
18783 (CFLAGS-tst-gettext3.c): Likewise.
18784 (CFLAGS-tst-gettext4.c): Likewise.
18785 (CFLAGS-tst-gettext5.c): Likewise.
18786 (CFLAGS-tst-gettext6.c): Likewise.
18787 * io/Makefile (CFLAGS-open.c): Likewise.
18788 (CFLAGS-open64.c): Likewise.
18789 (CFLAGS-creat.c): Likewise.
18790 (CFLAGS-creat64.c): Likewise.
18791 (CFLAGS-fcntl.c): Likewise.
18792 (CFLAGS-poll.c): Likewise.
18793 (CFLAGS-ppoll.c): Likewise.
18794 (CFLAGS-lockf.c): Likewise.
18795 (CFLAGS-statfs.c): Likewise.
18796 (CFLAGS-fstatfs.c): Likewise.
18797 (CFLAGS-statvfs.c): Likewise.
18798 (CFLAGS-fstatvfs.c): Likewise.
18799 (CFLAGS-fts.c): Likewise.
18800 (CFLAGS-fts64.c): Likewise.
18801 (CFLAGS-ftw.c): Likewise.
18802 (CFLAGS-ftw64.c): Likewise.
18803 (CFLAGS-lockf.c): Likewise.
18804 (CFLAGS-posix_fallocate.c): Likewise.
18805 (CFLAGS-posix_fallocate64.c): Likewise.
18806 (CFLAGS-fallocate.c): Likewise.
18807 (CFLAGS-fallocate64.c): Likewise.
18808 (CFLAGS-read.c): Likewise.
18809 (CFLAGS-write.c): Likewise.
18810 (CFLAGS-test-stat.c): Likewise.
18811 (CFLAGS-test-lfs.c): Likewise.
18812 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18813 (CFLAGS-fputc.c): Likewise.
18814 (CFLAGS-fputwc.c): Likewise.
18815 (CFLAGS-freopen64.c): Likewise.
18816 (CFLAGS-freopen.c): Likewise.
18817 (CFLAGS-fseek.c): Likewise.
18818 (CFLAGS-fseeko64.c): Likewise.
18819 (CFLAGS-fseeko.c): Likewise.
18820 (CFLAGS-ftello64.c): Likewise.
18821 (CFLAGS-ftello.c): Likewise.
18822 (CFLAGS-fwide.c): Likewise.
18823 (CFLAGS-genops.c): Likewise.
18824 (CFLAGS-getc.c): Likewise.
18825 (CFLAGS-getchar.c): Likewise.
18826 (CFLAGS-getwc.c): Likewise.
18827 (CFLAGS-getwchar.c): Likewise.
18828 (CFLAGS-iofclose.c): Likewise.
18829 (CFLAGS-iofflush.c): Likewise.
18830 (CFLAGS-iofgetpos64.c): Likewise.
18831 (CFLAGS-iofgetpos.c): Likewise.
18832 (CFLAGS-iofgets.c): Likewise.
18833 (CFLAGS-iofgetws.c): Likewise.
18834 (CFLAGS-iofputs.c): Likewise.
18835 (CFLAGS-iofputws.c): Likewise.
18836 (CFLAGS-iofread.c): Likewise.
18837 (CFLAGS-iofsetpos64.c): Likewise.
18838 (CFLAGS-iofsetpos.c): Likewise.
18839 (CFLAGS-ioftell.c): Likewise.
18840 (CFLAGS-iofwrite.c): Likewise.
18841 (CFLAGS-iogetdelim.c): Likewise.
18842 (CFLAGS-iogetline.c): Likewise.
18843 (CFLAGS-iogets.c): Likewise.
18844 (CFLAGS-iogetwline.c): Likewise.
18845 (CFLAGS-ioputs.c): Likewise.
18846 (CFLAGS-ioseekoff.c): Likewise.
18847 (CFLAGS-ioseekpos.c): Likewise.
18848 (CFLAGS-iosetbuffer.c): Likewise.
18849 (CFLAGS-iosetvbuf.c): Likewise.
18850 (CFLAGS-ioungetc.c): Likewise.
18851 (CFLAGS-ioungetwc.c): Likewise.
18852 (CFLAGS-oldfileops.c): Likewise.
18853 (CFLAGS-oldiofclose.c): Likewise.
18854 (CFLAGS-oldiofgetpos64.c): Likewise.
18855 (CFLAGS-oldiofgetpos.c): Likewise.
18856 (CFLAGS-oldiofsetpos64.c): Likewise.
18857 (CFLAGS-oldiofsetpos.c): Likewise.
18858 (CFLAGS-peekc.c): Likewise.
18859 (CFLAGS-putc.c): Likewise.
18860 (CFLAGS-putchar.c): Likewise.
18861 (CFLAGS-putwc.c): Likewise.
18862 (CFLAGS-putwchar.c): Likewise.
18863 (CFLAGS-rewind.c): Likewise.
18864 (CFLAGS-wfileops.c): Likewise.
18865 (CFLAGS-wgenops.c): Likewise.
18866 (CFLAGS-oldiofopen.c): Likewise.
18867 (CFLAGS-iofopen.c): Likewise.
18868 (CFLAGS-iofopen64.c): Likewise.
18869 (CFLAGS-oldtmpfile.c): Likewise.
18870 (CFLAGS-tst_putwc.c): Likewise.
18871 * locale/Makefile (CFLAGS-md5.c): Likewise.
18872 (CFLAGS-charmap.c): Likewise.
18873 (CFLAGS-locfile.c): Likewise.
18874 (CFLAGS-charmap-dir.c): Likewise.
18875 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18876 (CFLAGS-getpt.c): Likewise.
18877 (CFLAGS-pt_chown.c): Likewise.
18878 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18879 (CFLAGS-obstack.c): Likewise.
18880 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18881 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18882 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18883 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18884 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18885 (CFLAGS-test-tgmath.c): Likewise.
18886 (CFLAGS-test-tgmath2.c): Likewise.
18887 (CFLAGS-test-tgmath-ret.c): Likewise.
18888 (CFLAGS-test-powl.c): Likewise.
18889 (CFLAGS-test-snan.c): Likewise.
18890 (CFLAGS-test-signgam-finite.c): Likewise.
18891 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18892 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18893 (CFLAGS-test-signgam-uchar.c): Likewise.
18894 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18895 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18896 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18897 (CFLAGS-test-signgam-uint.c): Likewise.
18898 (CFLAGS-test-signgam-uint-init.c): Likewise.
18899 (CFLAGS-test-signgam-uint-static.c): Likewise.
18900 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18901 (CFLAGS-test-signgam-ullong.c): Likewise.
18902 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18903 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18904 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18905 (CFLAGS-test-math-cxx11.cc): Likewise.
18906 (CFLAGS-test-math-isinff.cc): Likewise.
18907 (CFLAGS-test-math-iszero.cc): Likewise.
18908 (CFLAGS-test-math-issignaling.cc): Likewise.
18909 (CFLAGS-test-math-iscanonical.cc): Likewise.
18910 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18911 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18912 (CFLAGS-test-flt-eval-method.c): Likewise.
18913 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18914 (CFLAGS-test-finite-macros.c): Likewise.
18915 * misc/Makefile (CFLAGS-select.c): Likewise.
18916 (CFLAGS-tsearch.c): Likewise.
18917 (CFLAGS-lsearch.c): Likewise.
18918 (CFLAGS-pselect.c): Likewise.
18919 (CFLAGS-readv.c): Likewise.
18920 (CFLAGS-writev.c): Likewise.
18921 (CFLAGS-preadv.c): Likewise.
18922 (CFLAGS-preadv64.c): Likewise.
18923 (CFLAGS-pwritev.c): Likewise.
18924 (CFLAGS-pwritev64.c): Likewise.
18925 (CFLAGS-preadv2.c): Likewise.
18926 (CFLAGS-preadv64v2.c): Likewise.
18927 (CFLAGS-pwritev2.c): Likewise.
18928 (CFLAGS-pwritev64v2.c): Likewise.
18929 (CFLAGS-usleep.c): Likewise.
18930 (CFLAGS-syslog.c): Likewise.
18931 (CFLAGS-error.c): Likewise.
18932 (CFLAGS-getpass.c): Likewise.
18933 (CFLAGS-mkstemp.c): Likewise.
18934 (CFLAGS-mkstemp64.c): Likewise.
18935 (CFLAGS-getsysstats.c): Likewise.
18936 (CFLAGS-getusershell.c): Likewise.
18937 (CFLAGS-err.c): Likewise.
18938 (CFLAGS-tst-tsearch.c): Likewise.
18939 (CFLAGS-msync.c): Likewise.
18940 (CFLAGS-fdatasync.c): Likewise.
18941 (CFLAGS-fsync.c): Likewise.
18942 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18943 (CFLAGS-unwind.c): Likewise.
18944 (CFLAGS-unwind-forcedunwind.c): Likewise.
18945 (CFLAGS-pthread_cancel.c): Likewise.
18946 (CFLAGS-pthread_setcancelstate.c): Likewise.
18947 (CFLAGS-pthread_setcanceltype.c): Likewise.
18948 (CFLAGS-cancellation.c): Likewise.
18949 (CFLAGS-libc-cancellation.c): Likewise.
18950 (CFLAGS-pthread_exit.c): Likewise.
18951 (CFLAGS-forward.c): Likewise.
18952 (CFLAGS-pthread_testcancel.c): Likewise.
18953 (CFLAGS-pthread_join.c): Likewise.
18954 (CFLAGS-pthread_timedjoin.c): Likewise.
18955 (CFLAGS-pthread_once.c): Likewise.
18956 (CFLAGS-pthread_cond_wait.c): Likewise.
18957 (CFLAGS-sem_wait.c): Likewise.
18958 (CFLAGS-sem_timedwait.c): Likewise.
18959 (CFLAGS-fcntl.c): Likewise.
18960 (CFLAGS-lockf.c): Likewise.
18961 (CFLAGS-pread.c): Likewise.
18962 (CFLAGS-pread64.c): Likewise.
18963 (CFLAGS-pwrite.c): Likewise.
18964 (CFLAGS-pwrite64.c): Likewise.
18965 (CFLAGS-wait.c): Likewise.
18966 (CFLAGS-waitpid.c): Likewise.
18967 (CFLAGS-sigwait.c): Likewise.
18968 (CFLAGS-msgrcv.c): Likewise.
18969 (CFLAGS-msgsnd.c): Likewise.
18970 (CFLAGS-tcdrain.c): Likewise.
18971 (CFLAGS-open.c): Likewise.
18972 (CFLAGS-open64.c): Likewise.
18973 (CFLAGS-pause.c): Likewise.
18974 (CFLAGS-recv.c): Likewise.
18975 (CFLAGS-send.c): Likewise.
18976 (CFLAGS-accept.c): Likewise.
18977 (CFLAGS-sendto.c): Likewise.
18978 (CFLAGS-connect.c): Likewise.
18979 (CFLAGS-recvfrom.c): Likewise.
18980 (CFLAGS-recvmsg.c): Likewise.
18981 (CFLAGS-sendmsg.c): Likewise.
18982 (CFLAGS-close.c): Likewise.
18983 (CFLAGS-read.c): Likewise.
18984 (CFLAGS-write.c): Likewise.
18985 (CFLAGS-nanosleep.c): Likewise.
18986 (CFLAGS-sigsuspend.c): Likewise.
18987 (CFLAGS-msync.c): Likewise.
18988 (CFLAGS-fdatasync.c): Likewise.
18989 (CFLAGS-fsync.c): Likewise.
18990 (CFLAGS-pt-system.c): Likewise.
18991 (CFLAGS-tst-cleanup2.c): Likewise.
18992 (CFLAGS-tst-cleanupx2.c): Likewise.
18993 (CFLAGS-flockfile.c): Likewise.
18994 (CFLAGS-ftrylockfile.c): Likewise.
18995 (CFLAGS-funlockfile.c): Likewise.
18996 (CFLAGS-tst-initializers1.c): Likewise.
18997 (CFLAGS-tst-initializers1-c89.c): Likewise.
18998 (CFLAGS-tst-initializers1-c99.c): Likewise.
18999 (CFLAGS-tst-initializers1-c11.c): Likewise.
19000 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19001 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19002 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19003 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19004 (CFLAGS-nscd_getgr_r.c): Likewise.
19005 (CFLAGS-nscd_gethst_r.c): Likewise.
19006 (CFLAGS-nscd_getai.c): Likewise.
19007 (CFLAGS-nscd_initgroups.c): Likewise.
19008 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19009 (CFLAGS-pause.c): Likewise.
19010 (CFLAGS-pread.c): Likewise.
19011 (CFLAGS-pread64.c): Likewise.
19012 (CFLAGS-pwrite.c): Likewise.
19013 (CFLAGS-pwrite64.c): Likewise.
19014 (CFLAGS-sleep.c): Likewise.
19015 (CFLAGS-wait.c): Likewise.
19016 (CFLAGS-waitid.c): Likewise.
19017 (CFLAGS-waitpid.c): Likewise.
19018 (CFLAGS-getopt.c): Likewise.
19019 (CFLAGS-wordexp.c): Likewise.
19020 (CFLAGS-sysconf.c): Likewise.
19021 (CFLAGS-pathconf.c): Likewise.
19022 (CFLAGS-fpathconf.c): Likewise.
19023 (CFLAGS-spawn.c): Likewise.
19024 (CFLAGS-spawnp.c): Likewise.
19025 (CFLAGS-spawni.c): Likewise.
19026 (CFLAGS-glob.c): Likewise.
19027 (CFLAGS-glob64.c): Likewise.
19028 (CFLAGS-getconf.c): Likewise.
19029 (CFLAGS-nanosleep.c): Likewise.
19030 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19031 (CFLAGS-getpwent.c): Likewise.
19032 (CFLAGS-getpw.c): Likewise.
19033 (CFLAGS-fgetpwent_r.c): Likewise.
19034 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19035 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19036 (CFLAGS-mq_timedreceive.c): Likewise.
19037 (CFLAGS-mq_timedsend.c): Likewise.
19038 (CFLAGS-clock_nanosleep.c): Likewise.
19039 (CFLAGS-librt-cancellation.c): Likewise.
19040 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19041 (CFLAGS-getspent.c): Likewise.
19042 (CFLAGS-fgetspent.c): Likewise.
19043 (CFLAGS-fgetspent_r.c): Likewise.
19044 (CFLAGS-putspent.c): Likewise.
19045 (CFLAGS-getspnam.c): Likewise.
19046 (CFLAGS-getspnam_r.c): Likewise.
19047 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19048 (CFLAGS-sigsuspend.c): Likewise.
19049 (CFLAGS-sigtimedwait.c): Likewise.
19050 (CFLAGS-sigwait.c): Likewise.
19051 (CFLAGS-sigwaitinfo.c): Likewise.
19052 (CFLAGS-sigreturn.c): Likewise.
19053 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19054 (CFLAGS-vfwprintf.c): Likewise.
19055 (CFLAGS-tmpfile.c): Likewise.
19056 (CFLAGS-tmpfile64.c): Likewise.
19057 (CFLAGS-tempname.c): Likewise.
19058 (CFLAGS-psignal.c): Likewise.
19059 (CFLAGS-vprintf.c): Likewise.
19060 (CFLAGS-cuserid.c): Likewise.
19061 (CFLAGS-errlist.c): Likewise.
19062 (CFLAGS-siglist.c): Likewise.
19063 (CFLAGS-scanf15.c): Likewise.
19064 (CFLAGS-scanf17.c): Likewise.
19065 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19066 (CFLAGS-msort.c): Likewise.
19067 (CFLAGS-qsort.c): Likewise.
19068 (CFLAGS-system.c): Likewise.
19069 (CFLAGS-fmtmsg.c): Likewise.
19070 (CFLAGS-strfmon.c): Likewise.
19071 (CFLAGS-strfmon_l.c): Likewise.
19072 (CFLAGS-strfromd.c): Likewise.
19073 (CFLAGS-strfromf.c): Likewise.
19074 (CFLAGS-strfroml.c): Likewise.
19075 (CFLAGS-tst-bsearch.c): Likewise.
19076 (CFLAGS-tst-qsort.c): Likewise.
19077 (CFLAGS-tst-makecontext2.c): Likewise.
19078 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19079 (CFLAGS-xnlm_prot.c): Likewise.
19080 (CFLAGS-xrstat.c): Likewise.
19081 (CFLAGS-xyppasswd.c): Likewise.
19082 (CFLAGS-xklm_prot.c): Likewise.
19083 (CFLAGS-xrex.c): Likewise.
19084 (CFLAGS-xsm_inter.c): Likewise.
19085 (CFLAGS-xmount.c): Likewise.
19086 (CFLAGS-xrusers.c): Likewise.
19087 (CFLAGS-xspray.c): Likewise.
19088 (CFLAGS-xnfs_prot.c): Likewise.
19089 (CFLAGS-xrquota.c): Likewise.
19090 (CFLAGS-xkey_prot.c): Likewise.
19091 (CFLAGS-auth_unix.c): Likewise.
19092 (CFLAGS-key_call.c): Likewise.
19093 (CFLAGS-pmap_rmt.c): Likewise.
19094 (CFLAGS-clnt_perr.c): Likewise.
19095 (CFLAGS-openchild.c): Likewise.
19096 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19097 (CFLAGS-msgsnd.c): Likewise.
19098 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19099 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19100 (CFLAGS-tzset.c): Likewise.
19101 (CFLAGS-getdate.c): Likewise.
19102 (CFLAGS-test_time.c): Likewise.
19103 (CPPFLAGS-tst-tzname.c): Likewise.
19104 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19105 (CFLAGS-zic.c): Likewise.
19106 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19107 (CFLAGS-wcswidth.c): Likewise.
19108 (CFLAGS-wcstol.c): Likewise.
19109 (CFLAGS-wcstoul.c): Likewise.
19110 (CFLAGS-wcstoll.c): Likewise.
19111 (CFLAGS-wcstoull.c): Likewise.
19112 (CFLAGS-wcstod.c): Likewise.
19113 (CFLAGS-wcstold.c): Likewise.
19114 (CFLAGS-wcstof128.c): Likewise.
19115 (CFLAGS-wcstof.c): Likewise.
19116 (CFLAGS-wcstol_l.c): Likewise.
19117 (CFLAGS-wcstoul_l.c): Likewise.
19118 (CFLAGS-wcstoll_l.c): Likewise.
19119 (CFLAGS-wcstoull_l.c): Likewise.
19120 (CFLAGS-wcstod_l.c): Likewise.
19121 (CFLAGS-wcstold_l.c): Likewise.
19122 (CFLAGS-wcstof128_l.c): Likewise.
19123 (CFLAGS-wcstof_l.c): Likewise.
19124 (CPPFLAGS-tst-wchar-h.c): Likewise.
19125 (CPPFLAGS-wcstold_l.c): Likewise.
19126
19127 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19128
19129 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19130
19131 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19132 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19133
19134 * manual/tunables.texi (Hardware Capability Tunables): Document
19135 glibc.tune.cached_memopt.
19136 * sysdeps/powerpc/cpu-features.c: New file.
19137 * sysdeps/powerpc/cpu-features.h: New file.
19138 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19139 _dl_powerpc_cpu_features.
19140 * sysdeps/powerpc/dl-tunables.list: New file.
19141 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19142 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19143 (INIT_ARCH): Initialize use_aligned_memopt.
19144 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19145 IS_IN(rtld))]: Restrict dl_platform_init availability and
19146 initialize CPU features used by tunables.
19147 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19148 Add memcpy-power8-cached.
19149 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19150 __memcpy_power8_cached.
19151 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19152 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19153 New file.
19154
19155 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19156
19157 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19158 (CFLAGS-noinl-tester.c): Likewise.
19159 (CFLAGS-tst-strlen.c): Likewise.
19160 (CFLAGS-stratcliff.c): Likewise.
19161 (CFLAGS-test-ffs.c): Likewise.
19162 (CFLAGS-tst-inlcall.c): Likewise.
19163 (CFLAGS-tst-xbzero-opt.c): Likewise.
19164 (CFLAGS-memcpy.c): Likewise.
19165 (CFLAGS-wordcopy.c): Likewise.
19166
19167 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19168
19169 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19170 Store r15 on stack and add cfi rule.
19171 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19172 Likewise.
19173
19174 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19175
19176 [BZ #22577]
19177 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19178 call.
19179
19180 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19181
19182 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19183 Add s_sinf-sse2 and s_sinf-fma.
19184 (CFLAGS-s_sinf-fma.c): New.
19185 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19186 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19187 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19188
19189 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19190
19191 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19192
19193 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19194
19195 [BZ #22568]
19196 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19197 part of result to imaginary part of argument if it is zero and the
19198 real part of the argument is not finite.
19199 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19200 of result to real part of argument if it is zero and the imaginary
19201 part of the argument is not finite.
19202
19203 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19204
19205 [BZ #22524]
19206 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19207 and to the list of locales to be built for testing.
19208 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19209 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19210 and build the collation rules upon that.
19211
19212 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19213
19214 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19215 * manual/math.texi (Mathematics): Document support for _Float32.
19216 * math/Makefile (test-types): Add float32.
19217 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19218 * stdlib/Versions (GLIBC_2.27): Likewise.
19219 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19220 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19221 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19222 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19223 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19224 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19225 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19226 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19227 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19228 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19229 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19230 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19231 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19232 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19233 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19234 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19235 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19236 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19237 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19238 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19239 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19240 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19241 Likewise.
19242 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19243 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19244 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19245 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19246 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19247 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19248 Likewise.
19249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19250 Likewise.
19251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19252 Likewise.
19253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19254 Likewise.
19255
19256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19257 Likewise.
19258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19259 Likewise.
19260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19261 Likewise.
19262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19263 Likewise.
19264 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19265 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19266 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19267 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19268 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19269 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19270 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19271 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19272 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19273 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19274 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19275 Likewise.
19276 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19277 Likewise.
19278 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19279 Likewise.
19280 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19281 Likewise.
19282 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19283 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19284 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19285 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19286 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19287 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19288 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19289 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19290
19291 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19292
19293 * stdlib/strtof.c: Include <bits/floatn.h>
19294 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19295 and later undefine as macro. Define as weak alias if
19296 [!USE_WIDE_CHAR].
19297 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19298 and later undefine as macro. Define as weak alias if
19299 [USE_WIDE_CHAR].
19300 * stdlib/strtof_l.c: Include <bits/floatn.h>
19301 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19302 and later undefine as macro. Define as weak alias if
19303 [!USE_WIDE_CHAR].
19304 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19305 and later undefine as macro. Define as weak alias if
19306 [USE_WIDE_CHAR].
19307
19308 * stdlib/strfromf.c: Include <bits/floatn.h>.
19309 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19310 and later undefine as macro and define as weak alias.
19311
19312 * math/test-float32.h: New file.
19313
19314 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19315 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19316 (libm_alias_float_other_r): Create f32 alias.
19317 (libm_alias_float_r): Use semicolon before call to
19318 libm_alias_float_other_r.
19319
19320 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19321 second argument to libm_alias_float_other.
19322 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19323 second argument to libm_alias_float_other.
19324 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19325 argument to libm_alias_float_other.
19326
19327 [BZ #22561]
19328 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19329 real part of result for argument 0 + i * NaN.
19330 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19331 results for tests of 0 + i * NaN.
19332
19333 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19334
19335 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19336
19337 2017-12-06 David S. Miller <davem@davemloft.net>
19338
19339 * sysdeps/sparc/fpu/libm-test-ulps: Update
19340 exp_{downward,towardzero,upward} ulps.
19341
19342 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19343
19344 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19345 variables static.
19346
19347 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19348 (Y0_2D): Likewise.
19349 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19350 (Y0_2D): Likewise.
19351 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19352 (Y0_2D): Likewise.
19353 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19354 (Y0_2D): Likewise.
19355
19356 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19357
19358 [BZ #22515]
19359 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19360 and to the list of locales to be built for testing.
19361 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19362 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19363 and build the collation rules upon that.
19364
19365 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19366
19367 * NEWS: Add sinf to list of optimized functions.
19368
19369 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19370
19371 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19372 (__HAVE_FLOAT32X): Likewise.
19373 * manual/math.texi (Mathematics): Document support for _Float64
19374 and _Float32x.
19375 * math/Makefile (test-types): Add float64 and float32x.
19376 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19377 functions.
19378 * stdlib/Versions (GLIBC_2.27): Likewise.
19379 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19380 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19381 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19382 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19383 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19384 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19385 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19386 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19387 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19388 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19389 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19390 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19391 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19392 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19393 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19394 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19395 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19396 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19397 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19398 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19399 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19400 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19401 Likewise.
19402 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19403 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19404 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19405 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19406 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19408 Likewise.
19409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19410 Likewise.
19411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19412 Likewise.
19413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19414 Likewise.
19415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19416 Likewise.
19417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19418 Likewise.
19419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19420 Likewise.
19421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19422 Likewise.
19423 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19424 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19425 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19426 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19427 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19428 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19429 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19430 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19431 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19432 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19433 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19434 Likewise.
19435 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19436 Likewise.
19437 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19438 Likewise.
19439 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19440 Likewise.
19441 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19442 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19443 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19444 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19445 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19446 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19447 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19448 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19449
19450 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19451
19452 * bits/floatn-common.h: Include <bits/long-double.h>.
19453 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19454 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19455 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19456 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19457 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19458 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19459 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19460 (__builtin_huge_valf64): Use __builtin_huge_vall.
19461 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19462 (__builtin_inff64): Use __builtin_infl.
19463 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19464 (__builtin_nanf64): Use __builtin_nanl.
19465 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19466 (__builtin_nansf64): Use __builtin_nansl.
19467
19468 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19469 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19470 Carlos O'Donnell <carlos@redhat.com>
19471
19472 * elf/dl-tunables.list: Add elision parameters.
19473 * manual/tunables.texi: Add entries about elision tunable.
19474 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19475 Add callback functions to dynamically enable/disable elision.
19476 Add multiple callbacks functions to set elision parameters.
19477 Deleted __libc_enable_secure check.
19478 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19479 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19480 * configure: Regenerated.
19481 * configure.ac: Option enable_lock_elision was deleted.
19482 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19483 * config.make.in: Remove references to enable_lock_elision.
19484 * manual/install.texi: Elision configure option was removed.
19485 * INSTALL: Regenerated to remove enable_lock_elision.
19486 * nptl/Makefile:
19487 Disable elision so it can verify error case for destroying a mutex.
19488 * sysdeps/powerpc/nptl/elide.h:
19489 Cleanup ENABLE_LOCK_ELISION check.
19490 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19491 * sysdeps/s390/configure: Regenerated.
19492 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19493 * nptl/tst-mutex8.c:
19494 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19495 * sysdeps/powerpc/powerpc32/sysdep.h:
19496 Deleted all ENABLE_LOCK_ELISION checks.
19497 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19498 * sysdeps/powerpc/sysdep.h: Likewise.
19499 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19500 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19501 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19502 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19503 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19504 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19505 enable-lock-elision.
19506
19507 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19508
19509 * stdlib/strtod.c: Include <bits/floatn.h>.
19510 (BUILD_DOUBLE): New macro.
19511 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19512 (strtof64): Define and later undefine as macro. Define as weak
19513 alias if [!USE_WIDE_CHAR].
19514 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19515 (wcstof64): Define and later undefine as macro. Define as weak
19516 alias if [USE_WIDE_CHAR].
19517 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19518 (strtof32x): Define and later undefine as macro. Define as weak
19519 alias if [!USE_WIDE_CHAR].
19520 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19521 (wcstof32x): Define and later undefine as macro. Define as weak
19522 alias if [USE_WIDE_CHAR].
19523 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19524 (BUILD_DOUBLE): New macro.
19525 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19526 (strtof64_l): Define and later undefine as macro. Define as weak
19527 alias if [!USE_WIDE_CHAR].
19528 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19529 (wcstof64_l): Define and later undefine as macro. Define as weak
19530 alias if [USE_WIDE_CHAR].
19531 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19532 (strtof32x_l): Define and later undefine as macro. Define as weak
19533 alias if [!USE_WIDE_CHAR].
19534 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19535 (wcstof32x_l): Define and later undefine as macro. Define as weak
19536 alias if [USE_WIDE_CHAR].
19537
19538 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19539
19540 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19541 (reduced): Use ones as double instead of integer.
19542
19543 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19544
19545 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19546
19547 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19548
19549 * stdlib/strfromd.c: Include <bits/floatn.h>.
19550 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19551 and later undefine as macro and define as weak alias.
19552 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19553 Likewise.
19554
19555 * math/test-float32x.h: New file.
19556 * math/test-float64.h: Likewise.
19557
19558 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19559 (libm_alias_double_other_r_f64): New macro.
19560 (libm_alias_double_other_r_f32x): Likewise.
19561 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19562 libm_alias_double_other_r_f32x.
19563 (libm_alias_double_r): Use semicolon before call to
19564 libm_alias_double_other_r.
19565 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19566 <bits/floatn.h>.
19567 (libm_alias_double_other_r_f64): New macro.
19568 (libm_alias_double_other_r_f32x): Likewise.
19569 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19570 libm_alias_double_other_r_f32x.
19571
19572 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19573
19574 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19575 int.
19576 (SINF_FUNC): Likewise. Replace floor with simple casts.
19577
19578 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19579
19580 [BZ #22517]
19581 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19582 and to the list of locales to be built for testing.
19583 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19584 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19585 and build the collation rules upon that.
19586
19587 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19588
19589 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19590 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19591 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19592 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19593 instead of __insn__xxx.
19594 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19595 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19596 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19597 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19598 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19599 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19600
19601 2017-12-05 Florian Weimer <fweimer@redhat.com>
19602
19603 Linux: Implement interfaces for memory protection keys
19604 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19605 xsignal, xsysconf.
19606 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19607 * support/xunistd.h (xsysconf): Declare.
19608 * support/xraise.c: New file.
19609 * support/xsigaction.c: Likewise.
19610 * support/xsignal.c: Likewise.
19611 * support/xsysconf.c: Likewise.
19612 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19613 pkey_set, pkey_get, pkey_mprotect.
19614 [misc] (tests): Add tst-pkey.
19615 (tst-pkey): Link with -lpthread.
19616 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19617 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19618 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19619 (PKEY_DISABLE_WRITE): Define.
19620 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19621 Declare.
19622 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19623 (SEGV_PKUERR): Add.
19624 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19625 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19626 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19627 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19628 Add.
19629 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19630 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19631 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19632 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19633 * sysdeps/unix/sysv/linux/**.abilist: Update.
19634
19635 2017-12-05 Florian Weimer <fweimer@redhat.com>
19636
19637 * support/tst-test_compare.c (subprocess): Use long long instead
19638 of long argument for consistent type width across 32-bit and
19639 64-bit architectures.
19640 (do_test): Adjust expected output.
19641
19642 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19643
19644 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19645 (cosf): Define using libm_alias_float.
19646 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19647 (fabsf): Define using libm_alias_float.
19648 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19649 (fmaf): Define using libm_alias_float.
19650 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19651 (rintf): Define using libm_alias_float.
19652 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19653 (sinf): Define using libm_alias_float.
19654 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19655 <libm-alias-float.h>.
19656 (modff): Define using libm_alias_float.
19657 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19658 <libm-alias-float.h>.
19659 (logbf): Define using libm_alias_float.
19660 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19661 <libm-alias-float.h>.
19662 (ceilf): Define using libm_alias_float.
19663 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19664 <libm-alias-float.h>.
19665 (copysignf): Define using libm_alias_float.
19666 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19667 <libm-alias-float.h>.
19668 (floorf): Define using libm_alias_float.
19669 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19670 <libm-alias-float.h>.
19671 (llrintf): Define using libm_alias_float.
19672 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19673 <libm-alias-float.h>.
19674 (llroundf): Define using libm_alias_float.
19675 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19676 <libm-alias-float.h>.
19677 (lrintf): Define using libm_alias_float.
19678 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19679 <libm-alias-float.h>.
19680 (lroundf): Define using libm_alias_float.
19681 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19682 <libm-alias-float.h>.
19683 (nearbyintf): Define using libm_alias_float.
19684 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19685 <libm-alias-float.h>.
19686 (rintf): Define using libm_alias_float.
19687 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19688 <libm-alias-float.h>.
19689 (roundf): Define using libm_alias_float.
19690 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19691 <libm-alias-float.h>.
19692 (truncf): Define using libm_alias_float.
19693 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19694 Include <libm-alias-float.h>.
19695 (ceilf): Define using libm_alias_float.
19696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19697 Include <libm-alias-float.h>.
19698 (copysignf): Define using libm_alias_float.
19699 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19700 Include <libm-alias-float.h>.
19701 (floorf): Define using libm_alias_float.
19702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19703 Include <libm-alias-float.h>.
19704 (llrintf): Define using libm_alias_float.
19705 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19706 Include <libm-alias-float.h>.
19707 (llroundf): Define using libm_alias_float.
19708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19709 Include <libm-alias-float.h>.
19710 (logbf): Define using libm_alias_float.
19711 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19712 Include <libm-alias-float.h>.
19713 (lrintf): Define using libm_alias_float.
19714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19715 Include <libm-alias-float.h>.
19716 (lroundf): Define using libm_alias_float.
19717 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19718 Include <libm-alias-float.h>.
19719 (modff): Define using libm_alias_float.
19720 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19721 Include <libm-alias-float.h>.
19722 (roundf): Define using libm_alias_float.
19723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19724 Include <libm-alias-float.h>.
19725 (truncf): Define using libm_alias_float.
19726 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19727 <libm-alias-float.h>.
19728 (llrintf): Define using libm_alias_float.
19729 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19730 <libm-alias-float.h>.
19731 (llroundf): Define using libm_alias_float.
19732 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19733 <libm-alias-float.h>.
19734 (ceilf): Define using libm_alias_float.
19735 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19736 <libm-alias-float.h>.
19737 (floorf): Define using libm_alias_float.
19738 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19739 <libm-alias-float.h>.
19740 (llroundf): Define using libm_alias_float.
19741 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19742 <libm-alias-float.h>.
19743 (lroundf): Define using libm_alias_float.
19744 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19745 <libm-alias-float.h>.
19746 (roundf): Define using libm_alias_float.
19747 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19748 <libm-alias-float.h>.
19749 (truncf): Define using libm_alias_float.
19750 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19751 <libm-alias-float.h>.
19752 (copysignf): Define using libm_alias_float.
19753 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19754 <libm-alias-float.h>.
19755 (llrintf): Define using libm_alias_float.
19756 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19757 <libm-alias-float.h>.
19758 (llroundf): Define using libm_alias_float.
19759 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19760 <libm-alias-float.h>.
19761 (lrintf): Define using libm_alias_float.
19762 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19763 <libm-alias-float.h>.
19764 (lroundf): Define using libm_alias_float.
19765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19766 <libm-alias-float.h>.
19767 (ceilf): Define using libm_alias_float.
19768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19769 <libm-alias-float.h>.
19770 (copysignf): Define using libm_alias_float.
19771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19772 <libm-alias-float.h>.
19773 (cosf): Define using libm_alias_float.
19774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19775 <libm-alias-float.h>.
19776 (floorf): Define using libm_alias_float.
19777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19778 <libm-alias-float.h>.
19779 (llrintf): Define using libm_alias_float.
19780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19781 <libm-alias-float.h>.
19782 (llroundf): Define using libm_alias_float.
19783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19784 <libm-alias-float.h>.
19785 (logbf): Define using libm_alias_float.
19786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19787 <libm-alias-float.h>.
19788 (modff): Define using libm_alias_float.
19789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19790 <libm-alias-float.h>.
19791 (roundf): Define using libm_alias_float.
19792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19793 <libm-alias-float.h>.
19794 (sinf): Define using libm_alias_float.
19795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19796 <libm-alias-float.h>.
19797 (truncf): Define using libm_alias_float.
19798 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19799 <libm-alias-float.h>.
19800 (ceilf): Define using libm_alias_float.
19801 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19802 <libm-alias-float.h>.
19803 (copysignf): Define using libm_alias_float.
19804 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19805 <libm-alias-float.h>.
19806 (floorf): Define using libm_alias_float.
19807 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19808 <libm-alias-float.h>.
19809 (llrintf): Define using libm_alias_float.
19810 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19811 <libm-alias-float.h>.
19812 (llroundf): Define using libm_alias_float.
19813 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19814 <libm-alias-float.h>.
19815 (nearbyintf): Define using libm_alias_float.
19816 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19817 <libm-alias-float.h>.
19818 (rintf): Define using libm_alias_float.
19819 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19820 <libm-alias-float.h>.
19821 (roundf): Define using libm_alias_float.
19822 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19823 <libm-alias-float.h>.
19824 (truncf): Define using libm_alias_float.
19825 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19826 <libm-alias-float.h>.
19827 (ceilf): Define using libm_alias_float.
19828 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19829 <libm-alias-float.h>.
19830 (floorf): Define using libm_alias_float.
19831 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19832 <libm-alias-float.h>.
19833 (llroundf): Define using libm_alias_float.
19834 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19835 <libm-alias-float.h>.
19836 (roundf): Define using libm_alias_float.
19837 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19838 <libm-alias-float.h>.
19839 (truncf): Define using libm_alias_float.
19840 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19841 <libm-alias-float.h>.
19842 (copysignf): Define using libm_alias_float.
19843 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19844 <libm-alias-float.h>.
19845 (llrintf): Define using libm_alias_float.
19846 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19847 <libm-alias-float.h>.
19848 (llroundf): Define using libm_alias_float.
19849 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19850 <libm-alias-float.h>.
19851 (cosf): Define using libm_alias_float.
19852 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19853 <libm-alias-float.h>.
19854 (llrintf): Define using libm_alias_float.
19855 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19856 <libm-alias-float.h>.
19857 (llroundf): Define using libm_alias_float.
19858 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19859 <libm-alias-float.h>.
19860 (sinf): Define using libm_alias_float.
19861
19862 2017-12-04 Florian Weimer <fweimer@redhat.com>
19863
19864 * support/check.h (TEST_COMPARE): Define.
19865 (support_test_compare_failure): Declare.
19866 * support/Makefile (libsupport-routines): Add
19867 support_test_compare_failure.
19868 (tests): Add tst-test_compare.
19869 * support /support_test_compare_failure.c: New file.
19870 * support/tst-test_compare.c: Likewise.
19871
19872 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19873
19874 [BZ #22527]
19875 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19876 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19877 available, this rewrite of the collation rules does reproduce
19878 the test file in the same order.
19879
19880 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19881
19882 [BZ #10580]
19883 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19884 digraphs in the month and day names. Using single code points for
19885 digraphs is deprecated. While there are dedicated Unicode
19886 codepoints, for the digraphs, these are included for backwards
19887 compatibility and modern texts use a sequence of Basic Latin
19888 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19889 This makes the month and day names agree exactly with CLDR now,
19890 CLDR does not use the single code points for the digraphs either.
19891
19892 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19893
19894 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19895
19896 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19897
19898 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19899 of floor.
19900
19901 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19902
19903 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19904 Define only for libc.so.
19905
19906 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19907
19908 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19909 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19910 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19911 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19912 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19913
19914 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19915
19916 [BZ #5997]
19917 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19918
19919 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19920
19921 [BZ libc/19170]
19922 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19923 PREINIT_FUNCTION_WEAK is nonzero.
19924 (gmon_initializer): New function. Put procedure label for it in
19925 .init_array section.
19926 (_init): Don't call PREINIT_FUNCTION.
19927 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19928 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19929 value when map argument is null.
19930
19931 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19932 depi instruction from PIC pc-relative sequence.
19933 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19934 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19935 (elf_machine_load_address): Likewise.
19936 (elf_machine_runtime_setup): Likewise.
19937
19938 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19939
19940 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19941 <libm-alias-double.h>.
19942 (logb): Define using libm_alias_double.
19943 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19944 <libm-alias-double.h>.
19945 (copysign): Define using libm_alias_double.
19946 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19947 <libm-alias-double.h>.
19948 (llrint): Define using libm_alias_double.
19949 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19950 <libm-alias-double.h>.
19951 (llround): Define using libm_alias_double.
19952 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19953 <libm-alias-double.h>.
19954 (lrint): Define using libm_alias_double.
19955 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19956 <libm-alias-double.h>.
19957 (lround): Define using libm_alias_double.
19958 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19959 Include <libm-alias-double.h>.
19960 (copysign): Define using libm_alias_double.
19961 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19962 Include <libm-alias-double.h>.
19963 (llrint): Define using libm_alias_double.
19964 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19965 Include <libm-alias-double.h>.
19966 (llround): Define using libm_alias_double.
19967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19968 <libm-alias-double.h>.
19969 (logb): Define using libm_alias_double.
19970 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19971 Include <libm-alias-double.h>.
19972 (lrint): Define using libm_alias_double.
19973 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19974 Include <libm-alias-double.h>.
19975 (lround): Define using libm_alias_double.
19976 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19977 <libm-alias-double.h>.
19978 (llrint): Define using libm_alias_double.
19979 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19980 <libm-alias-double.h>.
19981 (llround): Define using libm_alias_double.
19982 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19983 <libm-alias-double.h>.
19984 (llround): Define using libm_alias_double.
19985 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19986 <libm-alias-double.h>.
19987 (lround): Define using libm_alias_double.
19988 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19989 <libm-alias-double.h>.
19990 (copysign): Define using libm_alias_double.
19991 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19992 <libm-alias-double.h>.
19993 (llrint): Define using libm_alias_double.
19994 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19995 <libm-alias-double.h>.
19996 (llround): Define using libm_alias_double.
19997 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19998 <libm-alias-double.h>.
19999 (lrint): Define using libm_alias_double.
20000 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20001 <libm-alias-double.h>.
20002 (lround): Define using libm_alias_double.
20003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20004 <libm-alias-double.h>.
20005 (copysign): Define using libm_alias_double.
20006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20007 <libm-alias-double.h>.
20008 (llrint): Define using libm_alias_double.
20009 (lrint): Likewise.
20010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20011 <libm-alias-double.h>.
20012 (llround): Define using libm_alias_double.
20013 (lround): Likewise.
20014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20015 <libm-alias-double.h>.
20016 (logb): Define using libm_alias_double.
20017 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20018 <libm-alias-double.h>.
20019 (copysign): Define using libm_alias_double.
20020 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20021 <libm-alias-double.h>.
20022 (llrint): Define using libm_alias_double.
20023 (lrint): Likewise.
20024 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20025 <libm-alias-double.h>.
20026 (llround): Define using libm_alias_double.
20027 (lround): Likewise.
20028 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20029 <libm-alias-double.h>.
20030 (llround): Define using libm_alias_double.
20031 (lround): Likewise.
20032 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20033 <libm-alias-double.h>.
20034 (copysign): Define using libm_alias_double.
20035 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20036 <libm-alias-double.h>.
20037 (llrint): Define using libm_alias_double.
20038 (lrint): Likewise.
20039 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20040 <libm-alias-double.h>.
20041 (llround): Define using libm_alias_double.
20042 (lround): Likewise.
20043 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20044 <libm-alias-double.h>.
20045 (llrint): Define using libm_alias_double.
20046 (lrint): Likewise.
20047 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20048 <libm-alias-double.h>.
20049 (llround): Define using libm_alias_double.
20050 (lround): Likewise.
20051
20052 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20053
20054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20055 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20056 compat symbol based on llround.
20057
20058 * sysdeps/powerpc/power7/fpu/s_logb.c
20059 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20060 symbol based on __logb, not on logb.
20061 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20062 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20064 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20065
20066 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20067 (rint): Define using libm_alias_double.
20068 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20069 <libm-alias-double.h>.
20070 (modf): Define using libm_alias_double.
20071 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20072 <libm-alias-double.h>.
20073 (ceil): Define using libm_alias_double.
20074 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20075 <libm-alias-double.h>.
20076 (floor): Define using libm_alias_double.
20077 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20078 <libm-alias-double.h>.
20079 (nearbyint): Define using libm_alias_double.
20080 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20081 <libm-alias-double.h>.
20082 (rint): Define using libm_alias_double.
20083 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20084 <libm-alias-double.h>.
20085 (round): Define using libm_alias_double.
20086 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20087 <libm-alias-double.h>.
20088 (trunc): Define using libm_alias_double.
20089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20090 <libm-alias-double.h>.
20091 (ceil): Define using libm_alias_double.
20092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20093 Include <libm-alias-double.h>.
20094 (floor): Define using libm_alias_double.
20095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20096 <libm-alias-double.h>.
20097 (modf): Define using libm_alias_double.
20098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20099 Include <libm-alias-double.h>.
20100 (round): Define using libm_alias_double.
20101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20102 Include <libm-alias-double.h>.
20103 (trunc): Define using libm_alias_double.
20104 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20105 <libm-alias-double.h>.
20106 (ceil): Define using libm_alias_double.
20107 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20108 <libm-alias-double.h>.
20109 (floor): Define using libm_alias_double.
20110 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20111 <libm-alias-double.h>.
20112 (round): Define using libm_alias_double.
20113 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20114 <libm-alias-double.h>.
20115 (trunc): Define using libm_alias_double.
20116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20117 <libm-alias-double.h>.
20118 (ceil): Define using libm_alias_double.
20119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20120 <libm-alias-double.h>.
20121 (floor): Define using libm_alias_double.
20122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20123 <libm-alias-double.h>.
20124 (modf): Define using libm_alias_double.
20125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20126 <libm-alias-double.h>.
20127 (round): Define using libm_alias_double.
20128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20129 <libm-alias-double.h>.
20130 (trunc): Define using libm_alias_double.
20131 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20132 <libm-alias-double.h>.
20133 (ceil): Define using libm_alias_double.
20134 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20135 <libm-alias-double.h>.
20136 (floor): Define using libm_alias_double.
20137 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20138 <libm-alias-double.h>.
20139 (nearbyint): Define using libm_alias_double.
20140 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20141 <libm-alias-double.h>.
20142 (rint): Define using libm_alias_double.
20143 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20144 <libm-alias-double.h>.
20145 (round): Define using libm_alias_double.
20146 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20147 <libm-alias-double.h>.
20148 (trunc): Define using libm_alias_double.
20149 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20150 <libm-alias-double.h>.
20151 (ceil): Define using libm_alias_double.
20152 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20153 <libm-alias-double.h>.
20154 (floor): Define using libm_alias_double.
20155 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20156 <libm-alias-double.h>.
20157 (round): Define using libm_alias_double.
20158 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20159 <libm-alias-double.h>.
20160 (trunc): Define using libm_alias_double.
20161
20162 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20163 (fabs): Define using libm_alias_double.
20164 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20165 (fma): Define using libm_alias_double.
20166 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20167 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20168 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20169 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20170
20171 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20172
20173 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20174
20175 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20176 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20177 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20178
20179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20180 due redirect macro.
20181
20182 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20183
20184 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20185
20186 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20187
20188 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20189 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20190 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20191 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20192
20193 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20194 (libm-sysdep_routines): Add s_nearbyintf-generic and
20195 s_nearbyint-generic.
20196 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20197 New file.
20198 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20199 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20200 Likewise.
20201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20202 Likewise.
20203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20204 file.
20205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20206 Likewise.
20207
20208 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20209 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20210 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20211 file.
20212 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20214 Likewise.
20215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20216 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20217 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20218
20219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20220 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20221 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20222 file.
20223 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20225 Likewise.
20226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20229
20230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20231 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20232 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20233 file.
20234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20235 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20236 Likewise.
20237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20240
20241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20242 (sysdep_calls): New rule.
20243 (sysdep_routines): Use sysdep_calls as base.
20244 (libm-sysdep_routines): Add generic rule for symbols shared with
20245 libc. Add s_copysign-generic and s_copysign-generic objects.
20246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20247 New file.
20248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20250 Likewise.
20251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20253 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20254
20255 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20256
20257 [BZ #22519]
20258 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20259 the list of locales to be built for testing.
20260 * localedata/is_IS.UTF-8.in: New file.
20261 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20262 on iso14651_t1.
20263
20264 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20265
20266 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20267 <libm-alias-float.h>.
20268 (fabsf): Define using libm_alias_float.
20269
20270 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20271
20272 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20273
20274 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20275
20276 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20277 <libm-alias-float.h>.
20278 (fabsf): Define using libm_alias_float.
20279 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20280 <libm-alias-float.h>.
20281 (lrintf): Define using libm_alias_float.
20282 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20283 <libm-alias-float.h>.
20284 (rintf): Define using libm_alias_float.
20285
20286 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20287 <libm-alias-double.h>.
20288 (fabs): Define using libm_alias_double.
20289 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20290 <libm-alias-double.h>.
20291 (lrint): Define using libm_alias_double.
20292 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20293 <libm-alias-double.h>.
20294 (rint): Define using libm_alias_double.
20295
20296 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20297 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20298 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20299 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20300 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20301 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20302 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20303 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20304 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20305 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20306 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20307 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20308 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20309 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20310 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20311 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20312 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20313 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20314 s_atan_template.c.
20315 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20316 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20317 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20318 s_ceil_template.c.
20319 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20320 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20321 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20322 s_cos_template.c.
20323 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20324 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20325 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20326 s_expm1_template.c.
20327 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20328 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20329 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20330 s_fabs_template.c.
20331 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20332 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20333 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20334 s_floor_template.c.
20335 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20336 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20337 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20338 s_frexp_template.c.
20339 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20340 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20341 s_lrint_template.c.
20342 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20343 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20344 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20345 s_modf_template.c.
20346 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20347 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20348 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20349 s_nearbyint_template.c.
20350 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20351 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20352 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20353 s_remquo_template.c.
20354 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20355 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20356 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20357 s_rint_template.c.
20358 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20359 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20360 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20361 s_sin_template.c.
20362 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20363 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20364 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20365 s_sincos_template.c.
20366 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20367 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20368 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20369 s_tan_template.c.
20370 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20371 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20372 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20373 s_tanh_template.c.
20374 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20375 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20376 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20377 s_trunc_template.c.
20378 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20379 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20380 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20381 s_atan.c instead of including s_atan.c.
20382 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20383 s_atanf.c instead of including s_atanf.c.
20384 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20385 s_atanl.c instead of including s_atanl.c.
20386 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20387 instead of s_atan.c.
20388 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20389 instead of s_atanf.c.
20390 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20391 instead of s_atanl.c.
20392
20393 * scripts/update-copyrights: Do not handle intl/plural.c
20394 specially.
20395
20396 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20397
20398 [BZ #22432]
20399 * configure.ac (BISON): Require to be present.
20400 * configure: Regenerated.
20401 * intl/Makefile (generated): Add plural.c.
20402 [$(BISON) != no]: Make code unconditional.
20403 (plural.c): Change rule to $(objpfx)plural.c.
20404 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20405 * intl/plural.c: Remove.
20406 * manual/install.texi (Tools for Compilation): Document bison as
20407 required.
20408 * INSTALL: Regenerated.
20409
20410 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20411
20412 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20413 <libm-alias-double.h>.
20414 (llrint): Define using libm_alias_double.
20415 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20416 <libm-alias-float.h>.
20417 (llrintf): Define using libm_alias_float.
20418 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20419 <libm-alias-ldouble.h>.
20420 (llrintl): Define using libm_alias_ldouble.
20421
20422 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20423 declare_mgen_alias instead of weak_alias.
20424 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20425 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20426 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20427
20428 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20429
20430 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20431 Add add_n-generic.
20432 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20433 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20434 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20435
20436 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20437 Add submul_1-generic.
20438 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20439 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20440 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20441
20442 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20443 Add addmul_1-generic.
20444 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20445 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20446 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20447
20448 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20449 Add sub_n-generic.
20450 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20451 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20452 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20453
20454 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20455 Add mul_1-generic.
20456 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20457 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20458 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20459
20460 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20461
20462 According to CLDR, collation rules for Serbian and Bosnian
20463 should be the same as for Croatian.
20464
20465 [BZ #22534]
20466 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20467 and to the list of locales to be built for testing.
20468 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20469 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20470 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20471 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20472
20473 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20474
20475 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20476 to make test case pass.
20477 * localedata/hr_HR.UTF-8.in: Add more test strings.
20478
20479 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20480
20481 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20482
20483 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20484
20485 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20486 the list of locales to built for testing.
20487 * localedata/hr_HR.UTF-8.in: New file.
20488
20489 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20490
20491 [BZ #10580]
20492 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20493 iso14651_t1.
20494 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20495 CLDR (except use ligatures for the digraphs, CLDR does not use
20496 the ligatures), add first_workday, some fixes in the date and time
20497 formats.
20498 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20499 for Đ and đ.
20500 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20501 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20502 Add int_p_cs_precedes and int_n_cs_precedes.
20503 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20504 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20505 LC_MONETARY now).
20506 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20507 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20508 name_miss.
20509 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20510 and lang_lib. Change postal_fmt.
20511
20512 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20513
20514 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20515 <setjmp.h>.
20516 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20517 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20518 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20519 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20520 * sysdeps/generic/setjmpP.h: New file.
20521 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20522 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20523 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20524 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20525 Add jmp_buf-ssp.sym.
20526 (tests): Add tst-saved_mask-1.
20527
20528 2017-11-30 Arjun Shankar <arjun@redhat.com>
20529
20530 [BZ #22375]
20531 CVE-2017-17426
20532 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20533 instead of request2size.
20534
20535 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20536
20537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20538 (__lllrint): Remove alias.
20539 (lllrint): Likewise.
20540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20541 (__lllrintf): Likewise.
20542 (lllrintf): Likewise.
20543
20544 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20545 <libm-alias-float.h>.
20546 (copysignf): Define using libm_alias_float.
20547 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20548 <libm-alias-float.h>.
20549 (fabsf): Define using libm_alias_float.
20550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20551 Include <libm-alias-float.h>.
20552 (copysignf): Define using libm_alias_float.
20553 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20554 <libm-alias-float.h>.
20555 (fabsf): Define using libm_alias_float.
20556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20557 <libm-alias-float.h>.
20558 (fdimf): Define using libm_alias_float.
20559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20560 <libm-alias-float.h>.
20561 (fmaf): Define using libm_alias_float.
20562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20563 <libm-alias-float.h>.
20564 (llrintf): Define using libm_alias_float.
20565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20566 Include <libm-alias-float.h>.
20567 (nearbyintf): Define using libm_alias_float.
20568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20569 <libm-alias-float.h>.
20570 (rintf): Define using libm_alias_float.
20571 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20572 <libm-alias-float.h>.
20573 (llrintf): Define using libm_alias_float.
20574 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20575 <libm-alias-float.h>.
20576 (lrintf): Define using libm_alias_float.
20577 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20578 <libm-alias-float.h>.
20579 (nearbyintf): Define using libm_alias_float.
20580 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20581 <libm-alias-float.h>.
20582 (rintf): Define using libm_alias_float.
20583 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20584 <libm-alias-float.h>.
20585 (ceilf): Define using libm_alias_float.
20586 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20587 <libm-alias-float.h>.
20588 (floorf): Define using libm_alias_float.
20589 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20590 <libm-alias-float.h>.
20591 (fmaf): Define using libm_alias_float.
20592 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20593 <libm-alias-float.h>.
20594 (lrintf): Define using libm_alias_float.
20595 (llrintf): Likewise.
20596 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20597 <libm-alias-float.h>.
20598 (nearbyintf): Define using libm_alias_float.
20599 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20600 <libm-alias-float.h>.
20601 (rintf): Define using libm_alias_float.
20602 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20603 <libm-alias-float.h>.
20604 (truncf): Define using libm_alias_float.
20605 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20606 <libm-alias-float.h>.
20607 (copysignf): Define using libm_alias_float.
20608 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20609 <libm-alias-float.h>.
20610 (fabsf): Define using libm_alias_float.
20611 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20612 <libm-alias-float.h>.
20613 (lrintf): Define using libm_alias_float.
20614 (llrintf): Likewise.
20615 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20616 <libm-alias-float.h>.
20617 (nearbyintf): Define using libm_alias_float.
20618 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20619 <libm-alias-float.h>.
20620 (rintf): Define using libm_alias_float.
20621
20622 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20623
20624 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20625 <libm-alias-double.h>.
20626 (copysign): Define using libm_alias_double.
20627 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20628 <libm-alias-double.h>.
20629 (fabs): Define using libm_alias_double.
20630 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20631 Include <libm-alias-double.h>.
20632 (copysign): Define using libm_alias_double.
20633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20634 <libm-alias-double.h>.
20635 (fabs): Define using libm_alias_double.
20636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20637 <libm-alias-double.h>.
20638 (fdim): Define using libm_alias_double.
20639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20640 <libm-alias-double.h>.
20641 (fma): Define using libm_alias_double.
20642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20643 <libm-alias-double.h>.
20644 (llrint): Define using libm_alias_double.
20645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20646 Include <libm-alias-double.h>.
20647 (nearbyint): Define using libm_alias_double.
20648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20649 <libm-alias-double.h>.
20650 (rint): Define using libm_alias_double.
20651 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20652 <libm-alias-double.h>.
20653 (fabs): Define using libm_alias_double.
20654 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20655 <libm-alias-double.h>.
20656 (llrint): Define using libm_alias_double.
20657 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20658 <libm-alias-double.h>.
20659 (nearbyint): Define using libm_alias_double.
20660 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20661 <libm-alias-double.h>.
20662 (rint): Define using libm_alias_double.
20663 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20664 <libm-alias-double.h>.
20665 (ceil): Define using libm_alias_double.
20666 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20667 <libm-alias-double.h>.
20668 (floor): Define using libm_alias_double.
20669 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20670 <libm-alias-double.h>.
20671 (fma): Define using libm_alias_double.
20672 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20673 <libm-alias-double.h>.
20674 (lrint): Define using libm_alias_double.
20675 (llrint): Likewise.
20676 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20677 <libm-alias-double.h>.
20678 (nearbyint): Define using libm_alias_double.
20679 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20680 <libm-alias-double.h>.
20681 (rint): Define using libm_alias_double.
20682 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20683 <libm-alias-double.h>.
20684 (trunc): Define using libm_alias_double.
20685 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20686 <libm-alias-double.h>.
20687 (copysign): Define using libm_alias_double.
20688 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20689 <libm-alias-double.h>.
20690 (fabs): Define using libm_alias_double.
20691 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20692 <libm-alias-double.h>.
20693 (lrint): Define using libm_alias_double.
20694 (llrint): Likewise.
20695 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20696 <libm-alias-double.h>.
20697 (nearbyint): Define using libm_alias_double.
20698 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20699 <libm-alias-double.h>.
20700 (rint): Define using libm_alias_double.
20701
20702 [BZ #22229]
20703 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20704 <math_ldbl_opt.h>.
20705 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20706
20707 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20708 SPARC --disable-multi-arch glibc variants.
20709
20710 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20711 <libm-alias-float.h>.
20712 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20713 if [SHARED].
20714 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20715 <libm-alias-float.h>.
20716 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20717 if [SHARED].
20718 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20719 <libm-alias-float.h>.
20720 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20721 if [SHARED].
20722 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20723 <libm-alias-float.h>.
20724 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20725 if [SHARED].
20726 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20727 <libm-alias-float.h>.
20728 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20729 if [SHARED].
20730 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20731 <libm-alias-float.h>.
20732 (ceilf): Define using libm_alias_float.
20733 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20734 <libm-alias-float.h>.
20735 (floorf): Define using libm_alias_float.
20736 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20737 <libm-alias-float.h>.
20738 (fmaf): Define using libm_alias_float.
20739 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20740 <libm-alias-float.h>.
20741 (nearbyintf): Define using libm_alias_float.
20742 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20743 <libm-alias-float.h>.
20744 (rintf): Define using libm_alias_float.
20745 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20746 <libm-alias-float.h>.
20747 (truncf): Define using libm_alias_float.
20748 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20749 (copysignf): Define using libm_alias_float.
20750 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20751 (cosf): Define using libm_alias_float.
20752 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20753 (fabsf): Define using libm_alias_float.
20754 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20755 (fmaxf): Define using libm_alias_float.
20756 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20757 (fminf): Define using libm_alias_float.
20758 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20759 (llrintf): Define using libm_alias_float.
20760 [!__ILP32__] (lrintf): Likewise.
20761 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20762 (sincosf): Define using libm_alias_float.
20763 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20764 (sinf): Define using libm_alias_float.
20765 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20766 (lrintf): Define using libm_alias_float.
20767
20768 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20769 <libm-alias-double.h>.
20770 (atan): Define using libm_alias_double.
20771 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20772 <libm-alias-double.h>.
20773 (ceil): Define using libm_alias_double.
20774 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20775 <libm-alias-double.h>.
20776 (floor): Define using libm_alias_double.
20777 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20778 <libm-alias-double.h>.
20779 (fma): Define using libm_alias_double.
20780 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20781 <libm-alias-double.h>.
20782 (nearbyint): Define using libm_alias_double.
20783 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20784 <libm-alias-double.h>.
20785 (rint): Define using libm_alias_double.
20786 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20787 <libm-alias-double.h>.
20788 (sin): Define using libm_alias_double.
20789 (cos): Likewise.
20790 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20791 <libm-alias-double.h>.
20792 (tan): Define using libm_alias_double.
20793 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20794 <libm-alias-double.h>.
20795 (trunc): Define using libm_alias_double.
20796 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20797 (copysign): Define using libm_alias_double.
20798 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20799 (fabs): Define using libm_alias_double.
20800 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20801 (fmax): Define using libm_alias_double.
20802 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20803 (fmin): Define using libm_alias_double.
20804 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20805 (llrint): Define using libm_alias_double.
20806 [!__ILP32__] (lrint): Likewise.
20807 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20808 (lrint): Define using libm_alias_double.
20809
20810 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20811
20812 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20813 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20814 objects.
20815 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20816 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20817 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20818 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20819 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20820 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20821
20822 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20823 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20824 objects.
20825 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20826 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20827 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20828 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20829 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20830 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20831
20832 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20833 (libm-sysdep_routines): Add s_nearbyint-generic and
20834 s_nearbyintf-generic objects.
20835 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20836 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20837 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20838 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20839 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20840 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20841
20842 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20843 Add s_finitef-generic and s_finite-generic objects.
20844 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20845 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20846 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20847 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20848 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20849 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20850
20851 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20852 Add s_isinff-generic and s_isinf-generic objects.
20853 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20854 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20855 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20856 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20857 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20858 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20859
20860 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20861 Add s_isnanf-generic and s_isnan-generic objects.
20862 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20863 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20864 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20865 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20866 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20867 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20868
20869 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20870 macro.
20871 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20872 rule.
20873 (sysdep_routines): Use sysdep_calls as base.
20874 (libm-sysdep_routines): Add generic rule for symbols shared with
20875 libc. Add s_signbit-generic and s_signbitf-generic objects.
20876 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20877 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20878 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20879 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20880 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20881 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20882
20883 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20884
20885 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20886 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20887 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20888 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20889 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20890 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20891 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20892 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20893 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20894 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20895 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20896 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20897 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20898 libm_alias_float_r.
20899 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20900 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20901 (logf): Likewise.
20902 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20903 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20904 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20905 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20906 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20907 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20908 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20909 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20910 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20911 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20912 libm_alias_float.
20913 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20914 (cosf): Likewise.
20915 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20916 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20917 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20918 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20919 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20920 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20921 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20922 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20923 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20924 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20925 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20926 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20927 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20928 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20929 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20930 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20931 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20932 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20933 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20934 libm_alias_float.
20935 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20936 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20937 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20938 * sysdeps/ia64/fpu/w_lgammaf_main.c
20939 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20940 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20941
20942 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20943 Alexandre Oliva <aoliva@redhat.com>
20944
20945 [BZ #17750]
20946 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20947 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20948 accents sorting.
20949 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20950 sorting.
20951 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20952 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20953 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20954 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20955 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20956 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20957 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20958 instead of “ifdef DIACRIT_BACKWARD”.
20959
20960 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20961
20962 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20963 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20964 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20965 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20966 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20967 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20968 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20969 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20970 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20971 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20972 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20973 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20974 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20975 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20976 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20977 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20978 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20979 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20981 ($(have-as-vis3) == yes): Remove conditional.
20982 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20983 Likewise.
20984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20985 file.
20986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20987 file.
20988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20989 file.
20990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20991 file.
20992 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20993 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20994 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20995 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20996 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20997 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20998 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20999 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21000
21001 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21002
21003 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21004 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21005 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21006 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21007 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21008 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21009 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21010 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21011 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21012 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21013 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21014 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21015 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21016 libm_alias_double_r.
21017 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21018 (log): Likewise.
21019 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21020 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21021 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21022 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21023 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21024 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21025 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21026 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21027 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21028 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21029 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21030 libm_alias_double.
21031 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21032 (cos): Likewise.
21033 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21034 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21035 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21036 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21037 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21038 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21039 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21040 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21041 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21042 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21043 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21044 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21045 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21046 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21047 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21048 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21049 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21050 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21051 libm_alias_double.
21052 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21053 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21054 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21055 * sysdeps/ia64/fpu/w_lgamma_main.c
21056 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21057 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21058
21059 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21060
21061 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21062 address of $global$ into %dp register earlier. Use pc-relative
21063 instruction sequence for PIC case.
21064
21065 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21066
21067 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21068 (asinhf): Define using libm_alias_float.
21069 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21070 (atanf): Define using libm_alias_float.
21071 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21072 (cbrtf): Define using libm_alias_float.
21073 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21074 (ceilf): Define using libm_alias_float.
21075 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21076 (copysignf): Define using libm_alias_float.
21077 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21078 (expm1f): Define using libm_alias_float.
21079 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21080 (fabsf): Define using libm_alias_float.
21081 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21082 (floorf): Define using libm_alias_float.
21083 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21084 (fmaxf): Define using libm_alias_float.
21085 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21086 (fminf): Define using libm_alias_float.
21087 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21088 (frexpf): Define using libm_alias_float.
21089 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21090 (llrintf): Define using libm_alias_float.
21091 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21092 (logbf): Define using libm_alias_float.
21093 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21094 (lrintf): Define using libm_alias_float.
21095 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21096 (nearbyintf): Define using libm_alias_float.
21097 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21098 (remquof): Define using libm_alias_float.
21099 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21100 (rintf): Define using libm_alias_float.
21101 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21102 (truncf): Define using libm_alias_float.
21103 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21104 <libm-alias-float.h>.
21105 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21106 if [SHARED].
21107 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21108 <libm-alias-float.h>.
21109 (expf): Define using libm_alias_float, or libm_alias_float_other
21110 if [SHARED].
21111 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21112 <libm-alias-float.h>.
21113 (log2f): Define using libm_alias_float, or libm_alias_float_other
21114 if [SHARED].
21115 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21116 <libm-alias-float.h>.
21117 (logf): Define using libm_alias_float, or libm_alias_float_other
21118 if [SHARED].
21119 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21120 <libm-alias-float.h>.
21121 (powf): Define using libm_alias_float, or libm_alias_float_other
21122 if [SHARED].
21123 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21124 <libm-alias-float.h>.
21125 (cosf): Define using libm_alias_float.
21126 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21127 <libm-alias-float.h>.
21128 (sincosf): Define using libm_alias_float.
21129 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21130 <libm-alias-float.h>.
21131 (sinf): Define using libm_alias_float.
21132 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21133 (fmaxf): Define using libm_alias_float.
21134 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21135 (fminf): Define using libm_alias_float.
21136 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21137 <libm-alias-float.h>.
21138 (fmaf): Define using libm_alias_float.
21139
21140 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21141 (asinh): Define using libm_alias_double.
21142 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21143 (atan): Define using libm_alias_double.
21144 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21145 (cbrt): Define using libm_alias_double.
21146 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21147 (ceil): Define using libm_alias_double.
21148 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21149 (copysign): Define using libm_alias_double.
21150 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21151 (expm1): Define using libm_alias_double.
21152 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21153 (fabs): Define using libm_alias_double.
21154 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21155 (fdim): Define using libm_alias_double.
21156 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21157 (floor): Define using libm_alias_double.
21158 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21159 (fmax): Define using libm_alias_double.
21160 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21161 (fmin): Define using libm_alias_double.
21162 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21163 (frexp): Define using libm_alias_double.
21164 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21165 (llrint): Define using libm_alias_double.
21166 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21167 (logb): Define using libm_alias_double.
21168 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21169 (lrint): Define using libm_alias_double.
21170 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21171 (nearbyint): Define using libm_alias_double.
21172 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21173 (remquo): Define using libm_alias_double.
21174 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21175 (rint): Define using libm_alias_double.
21176 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21177 (trunc): Define using libm_alias_double.
21178 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21179 (fmax): Define using libm_alias_double.
21180 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21181 (fmin): Define using libm_alias_double.
21182 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21183 (fma): Define using libm_alias_double.
21184
21185 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21186
21187 [BZ #22370]
21188 * elf/dl-hwcaps.c (ROUND): Removed.
21189 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21190 and ELF_NOTE_NEXT_OFFSET.
21191 * elf/dl-load.c (ROUND): Removed.
21192 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21193 * elf/readelflib.c (ROUND): Removed.
21194 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21195 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21196 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21197 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21198
21199 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21200
21201 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21202 [!__fmaf] (fmaf): Define using libm_alias_float.
21203
21204 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21205 [!__fma] (fma): Define using libm_alias_double.
21206 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21207
21208 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21209
21210 [BZ #22336]
21211 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21212 and implement the collation rules for cs from CLDR on top of that.
21213 * Makefile: Add cs_CZ.UTF-8 to test-input.
21214 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21215
21216 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21217
21218 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21219
21220 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21221 Icarus Sparry <icarus.w.sparry@intel.com>
21222
21223 * benchtests/Makefile:Add BENCHSET to allow subsets of
21224 benchmarks to be run.
21225 * benchtests/README: Add documentation for: Running subsets of
21226 benchmarks.
21227
21228 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21229
21230 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21231 range of tests names.
21232
21233 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21234 result from property and remove "max", min" and "mean" from
21235 required properties based on benchtests/bench-skeleton.c.
21236
21237 2017-11-28 Florian Weimer <fweimer@redhat.com>
21238
21239 [BZ #20826]
21240 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21241 due to Internet requirement.
21242 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21243 tst-getaddrinfo5.
21244 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21245
21246 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21247
21248 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21249 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21250 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21251 (sysdep_routines): Add memset-ultra1.
21252 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21253 file.
21254 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21255 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21256 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21257 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21258 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21259 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21260 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21261 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21262
21263 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21264 file.
21265 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21266 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21267 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21268 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21269 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21270 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21271 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21272 macro.
21273 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21274 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21275 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21276 (sysdep_routines): Add memcpy-ultra1.
21277 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21278 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21279
21280 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21281
21282 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21283 (cfloat_versions): Take function argument without trailing 'f'.
21284 Call libm_alias_float_other.
21285 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21286 * sysdeps/alpha/fpu/cargf.c: Likewise.
21287 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21288 * sysdeps/alpha/fpu/conjf.c: Likewise.
21289 * sysdeps/alpha/fpu/crealf.c: Likewise.
21290 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21291 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21292 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21293 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21294 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21295 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21296 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21297 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21298 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21299 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21300 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21301 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21302 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21303 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21304 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21305 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21306 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21307 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21308 (clog10f): Use libm_alias_float_other.
21309 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21310 (ceilf): Define using libm_alias_float.
21311 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21312 (copysignf): Define using libm_alias_float.
21313 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21314 (fabsf): Define using libm_alias_float.
21315 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21316 (floorf): Define using libm_alias_float.
21317 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21318 (fmaxf): Define using libm_alias_float.
21319 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21320 (fminf): Define using libm_alias_float.
21321 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21322 (lrintf): Define using libm_alias_float.
21323 (llrintf): Likewise.
21324 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21325 (lroundf): Define using libm_alias_float.
21326 (llroundf): Likewise.
21327 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21328 (rintf): Define using libm_alias_float.
21329 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21330 (truncf): Define using libm_alias_float.
21331
21332 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21333 (ceilf): Define using libm_alias_float.
21334 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21335 (floorf): Define using libm_alias_float.
21336 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21337 (fmaf): Define using libm_alias_float.
21338 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21339 (fmaxf): Define using libm_alias_float.
21340 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21341 (fminf): Define using libm_alias_float.
21342 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21343 (llrintf): Define using libm_alias_float.
21344 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21345 (llroundf): Define using libm_alias_float.
21346 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21347 (lrintf): Define using libm_alias_float.
21348 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21349 (lroundf): Define using libm_alias_float.
21350 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21351 <libm-alias-float.h>.
21352 (nearbyintf): Define using libm_alias_float.
21353 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21354 (rintf): Define using libm_alias_float.
21355 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21356 (roundf): Define using libm_alias_float.
21357 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21358 (truncf): Define using libm_alias_float.
21359
21360 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21361 (ceil): Define using libm_alias_double.
21362 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21363 (copysign): Define using libm_alias_double.
21364 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21365 (fabs): Define using libm_alias_double.
21366 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21367 (floor): Define using libm_alias_double.
21368 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21369 (fmax): Define using libm_alias_double.
21370 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21371 (fmin): Define using libm_alias_double.
21372 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21373 (lrint): Define using libm_alias_double.
21374 (llrint): Likewise.
21375 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21376 (lround): Define using libm_alias_double.
21377 (llround): Likewise.
21378 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21379 (rint): Define using libm_alias_double.
21380 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21381 (trunc): Define using libm_alias_double.
21382
21383 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21384 (libm_alias_double_r): Add semicolon after weak_alias call.
21385
21386 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21387
21388 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21389 (ceil): Define using libm_alias_double.
21390 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21391 (floor): Define using libm_alias_double.
21392 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21393 (fma): Define using libm_alias_double.
21394 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21395 (fmax): Define using libm_alias_double.
21396 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21397 (fmin): Define using libm_alias_double.
21398 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21399 (llrint): Define using libm_alias_double.
21400 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21401 (llround): Define using libm_alias_double.
21402 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21403 (lrint): Define using libm_alias_double.
21404 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21405 (lround): Define using libm_alias_double.
21406 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21407 (nearbyint): Define using libm_alias_double.
21408 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21409 (rint): Define using libm_alias_double.
21410 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21411 (round): Define using libm_alias_double.
21412 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21413 (trunc): Define using libm_alias_double.
21414
21415 2017-11-27 Florian Weimer <fweimer@redhat.com>
21416
21417 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21418 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21419 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21420 (tests): Add tst-mlock2.
21421 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21422 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21423 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21424 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21425 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21426 for mlock. Document mlock2.
21427
21428 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21429
21430 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21431 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21432 Likewise.
21433 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21434 Likewise.
21435 * sysdeps/x86/Makeconfig: New file.
21436 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21437 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21438 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21439 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21440 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21441 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21442 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21443 Likewise.
21444 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21445 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21446 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21447 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21448 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21449 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21450 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21451 * manual/math.texi (Mathematics): Document support for _Float64x.
21452 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21453 * stdlib/Versions (GLIBC_2.27): Likewise.
21454 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21455 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21456 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21457 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21458 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21459 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21460 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21461 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21462 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21463 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21464 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21465 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21467 Likewise.
21468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21469 Likewise.
21470 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21471 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21472 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21473 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21474 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21475 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21476 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21477 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21478 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21480 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21481 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21482 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21483 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21484
21485 2017-11-27 Andreas Schwab <schwab@suse.de>
21486
21487 * elf/Makefile (dl-routines): Add dl-sort-maps.
21488 * elf/dl-sort-maps.c: New file.
21489 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21490 (_dl_sort_maps): Declare.
21491 * elf/dl-fini.c (_dl_sort_fini): Remove.
21492 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21493 * elf/dl-close.c (_dl_close_worker): Likewise.
21494 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21495 open-coding it.
21496 * elf/dl-open.c (dl_open_worker): Likewise.
21497
21498 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21499
21500 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21501 using libm_alias_float128.
21502 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21503 Likewise.
21504 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21505 Likewise.
21506 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21507 (setpayloadsigf128): Likewise.
21508 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21509 Likewise.
21510 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21511 Likewise.
21512
21513 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21514 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21515 -mfloat128 to CFLAGS.
21516 ($(foreach
21517 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21518 Likewise.
21519 (CFLAGS-libm-test-support-float64x.c): New variable.
21520 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21521 $(f128-loader-link) to gnulib-tests.
21522
21523 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21524 (libm_alias_float128_other_r): If
21525 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21526 alias.
21527 (libm_alias_float128_r): Add semicolon after weak_alias call.
21528 * sysdeps/generic/libm-alias-ldouble.h
21529 (libm_alias_ldouble_other_r_f128): New macro.
21530 (libm_alias_ldouble_other_r_f64x): Likewise.
21531 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21532 and libm_alias_ldouble_other_r_f64x.
21533 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21534 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21535 (libm_alias_ldouble_other_r_f128): New macro.
21536 (libm_alias_ldouble_other_r_f64x): Likewise.
21537 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21538 and libm_alias_ldouble_other_r_f64x.
21539
21540 * stdlib/strfroml.c: Always include <stdlib.h>.
21541 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21542 undefine as macro and define as weak alias.
21543 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21544 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21545 <stdlib.h>.
21546 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21547 Define and later undefine as macro and define as weak alias.
21548
21549 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21550 Define and later undefine as macro. Define as weak alias if
21551 [!USE_WIDE_CHAR].
21552 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21553 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21554 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21555 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21556 Define and later undefine as macro. Define as weak alias if
21557 [!USE_WIDE_CHAR].
21558 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21559 Define and later undefine as macro. Define as weak alias if
21560 [USE_WIDE_CHAR].
21561 * sysdeps/ieee754/float128/strtof128_l.c
21562 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21563 Define and later undefine as macro. Define as weak alias if
21564 [!USE_WIDE_CHAR].
21565 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21566 Define and later undefine as macro. Define as weak alias if
21567 [USE_WIDE_CHAR].
21568 * sysdeps/ieee754/ldbl-128/strtold_l.c
21569 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21570 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21571 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21572 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21573 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21574 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21575 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21576 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21577 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21578 * sysdeps/ieee754/ldbl-96/strtold_l.c
21579 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21580 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21581 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21582 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21583
21584 * math/test-float64x.h: New file.
21585 * math/Makefile (type-float64x-yes): New variable.
21586 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21587
21588 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21589 function-like macro.
21590 (min_of_type_): Likewise.
21591 (min_of_type_l): Likewise.
21592 (min_of_type_f128): Likewise.
21593 (min_of_type): Pass () as last argument of __MATH_TG.
21594
21595 * stdlib/tst-strtod-round-skeleton.c
21596 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21597 headers.
21598
21599 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21600 for combinations of long double with _Float64 and _Float64x.
21601
21602 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21603 (__DECL_SIMD_cosf32): Likewise.
21604 (__DECL_SIMD_cosf64): Likewise.
21605 (__DECL_SIMD_cosf32x): Likewise.
21606 (__DECL_SIMD_cosf64x): Likewise.
21607 (__DECL_SIMD_cosf128x): Likewise.
21608 (__DECL_SIMD_sinf16): Likewise.
21609 (__DECL_SIMD_sinf32): Likewise.
21610 (__DECL_SIMD_sinf64): Likewise.
21611 (__DECL_SIMD_sinf32x): Likewise.
21612 (__DECL_SIMD_sinf64x): Likewise.
21613 (__DECL_SIMD_sinf128x): Likewise.
21614 (__DECL_SIMD_sincosf16): Likewise.
21615 (__DECL_SIMD_sincosf32): Likewise.
21616 (__DECL_SIMD_sincosf64): Likewise.
21617 (__DECL_SIMD_sincosf32x): Likewise.
21618 (__DECL_SIMD_sincosf64x): Likewise.
21619 (__DECL_SIMD_sincosf128x): Likewise.
21620 (__DECL_SIMD_logf16): Likewise.
21621 (__DECL_SIMD_logf32): Likewise.
21622 (__DECL_SIMD_logf64): Likewise.
21623 (__DECL_SIMD_logf32x): Likewise.
21624 (__DECL_SIMD_logf64x): Likewise.
21625 (__DECL_SIMD_logf128x): Likewise.
21626 (__DECL_SIMD_expf16): Likewise.
21627 (__DECL_SIMD_expf32): Likewise.
21628 (__DECL_SIMD_expf64): Likewise.
21629 (__DECL_SIMD_expf32x): Likewise.
21630 (__DECL_SIMD_expf64x): Likewise.
21631 (__DECL_SIMD_expf128x): Likewise.
21632 (__DECL_SIMD_powf16): Likewise.
21633 (__DECL_SIMD_powf32): Likewise.
21634 (__DECL_SIMD_powf64): Likewise.
21635 (__DECL_SIMD_powf32x): Likewise.
21636 (__DECL_SIMD_powf64x): Likewise.
21637 (__DECL_SIMD_powf128x): Likewise.
21638
21639 * stdlib/Versions (libc): Move entries for wcstof128 and
21640 wcstof128_l to ....
21641 * wcsmbs/Versions (libc): ... here.
21642 Include <float128-abi.h>.
21643
21644 2017-11-24 Florian Weimer <fweimer@redhat.com>
21645
21646 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21647 bits/mman-shared.h.
21648 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21649 <bits/mman-shared.h>.
21650 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21651 to ...
21652 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21653 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21654 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21655 <bits/mman-shared.h>.
21656
21657 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21658
21659 [BZ #22457]
21660 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21661 posix_memalign/free.
21662 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21663
21664 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21665
21666 [BZ #22469]
21667 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21668 and implement the collation rules for pl from CLDR on top of that.
21669 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21670 of locales to be built for testing.
21671 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21672
21673 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21674
21675 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21676 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21677 libm_alias_ldouble_other.
21678 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21679 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21680 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21681 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21682 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21683 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21684 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21685 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21686 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21687 libm_alias_ldouble_r.
21688 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21689 libm_alias_ldouble_other.
21690 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21691 (log10l): Likewise.
21692 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21693 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21694 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21695 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21696 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21697 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21698 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21699 (atan2l): Likewise.
21700 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21701 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21702 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21703 libm_alias_ldouble.
21704 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21705 (cosl): Likewise.
21706 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21707 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21708 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21709 (expl): Likewise.
21710 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21711 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21712 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21713 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21714 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21715 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21716 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21717 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21718 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21719 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21720 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21721 libm_alias_ldouble.
21722 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21723 libm_alias_ldouble_other.
21724 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21725 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21726 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21727 libm_alias_ldouble.
21728 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21729 libm_alias_ldouble_other.
21730 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21731 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21732 * sysdeps/ia64/fpu/w_lgammal_main.c
21733 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21734 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21735
21736 2017-11-23 Florian Weimer <fweimer@redhat.com>
21737
21738 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21739 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21740 alike. Remove freeres marker.
21741 * malloc/arena.c (arena_thread_freeres): Call
21742 tcache_thread_shutdown.
21743
21744 2017-11-23 Florian Weimer <fweimer@redhat.com>
21745
21746 [BZ #22459]
21747 Export nscd hash function as __nss_hash.
21748 * include/nss.h (__nss_hash): Declare.
21749 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21750 symbol.
21751 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21752 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21753 of __nscd_hash.
21754 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21755 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21756 * nss/Makefiles (routines): Add nss_hash.
21757 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21758 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21759 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21760 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21761
21762 2017-11-23 Florian Weimer <fweimer@redhat.com>
21763
21764 [BZ #22478]
21765 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21766 Return error code, not -1.
21767 * signal/tst-sigwait-eintr.c: New file.
21768 * signal/Makefile (tests): Add tst-sigwait-eintr.
21769
21770 2017-11-23 Florian Weimer <fweimer@redhat.com>
21771
21772 Linux: Add memfd_create system call wrapper
21773 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21774 tst-memfd_create.
21775 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21776 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21777 [__USE_GNU] (memfd_create): Declare.
21778 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21779 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21780 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21781 * sysdeps/unix/sysv/linux/**.abilist: Update.
21782 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21783
21784 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21785
21786 * localedata/gen-locale.sh: Fix typo in variable name.
21787
21788 * resolv/res_debug.c (p_secstodate): Condition definition on
21789 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21790 directly as __p_secstodate, and as a compat symbol. Do not use
21791 libresolv_hidden_def.
21792 * resolv/resolv.h (p_secstodate): Remove macro and function
21793 declaration.
21794 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21795 using p_secstodate.
21796 * include/resolv.h (__p_secstodate): Do not use
21797 libresolv_hidden_proto.
21798 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21799 (tests-internal): ... here.
21800 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21801 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21802 and declare and use __p_secstodate and use compat_symbol_reference
21803 in that case.
21804 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21805 implementation returning 77.
21806
21807 [BZ #22463]
21808 * resolv/res_debug.c: Include <libc-diag.h>.
21809 (p_secstodate): Assert time_t at least as wide as u_long. On
21810 overflow, use integer seconds since the epoch as output, or use
21811 "<overflow>" as output and set errno to EOVERFLOW if integer
21812 seconds since the epoch would be 14 or more characters.
21813 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21814 for sprintf call.
21815 * resolv/tst-p_secstodate.c: New file.
21816 * resolv/Makefile (tests): Add tst-p_secstodate.
21817 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21818
21819 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21820 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21821 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21822
21823 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21824
21825 * posix/regcomp.c (init_word_char): Add comments.
21826
21827 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21828
21829 [BZ #22447]
21830 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21831 strlen to compute length of ut_user and set trailing NUL byte of
21832 result explicitly.
21833
21834 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21835
21836 [BZ #15537]
21837 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21838 using “copy "iso14651_t1"” and then implementing the
21839 collation rules for lv from CLDR on top of that.
21840 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21841 of locales to be built for testing.
21842 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21843 sorting.
21844
21845 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21846
21847 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21848 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21849 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21850 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21851 [__USE_MISC] (MADV_HWPOISON): New macro.
21852 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21853
21854 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21855
21856 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21857 -Wmissing-braces on GCC 4.9.
21858
21859 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21860
21861 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21862 * sysdeps/s390/s390-32/start.S (_start): Likewise
21863 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21864 (thread_start): Likewise.
21865 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21866 (thread_start): Likewise.
21867 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21868 (__makecontext_ret): Likewise.
21869 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21870 (__makecontext_ret): Likewise.
21871
21872 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21873
21874 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21875 __wcschrnul): Remove attribute_hidden.
21876
21877 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21878
21879 regex: don't assume uint64_t or uint32_t
21880 This avoids -Werror=overflow errors for 32-bit systems in
21881 the 64-bit case. Problem reported by Joseph Myers in:
21882 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21883 Also, when this code is used in Gnulib it ports to platforms
21884 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21885 them, and on some 32-bit compilers there is no uint64_t.
21886 Problem reported by Gianluigi Tiesi in:
21887 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21888 * posix/regcomp.c (init_word_char): Don't assume that the types
21889 uint64_t and uint32_t exist. Adapted from Gnulib patch
21890 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21891 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21892
21893 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21894
21895 * sysdeps/aarch64/memset-reg.h: New file.
21896 * sysdeps/aarch64/memset.S: Use it.
21897 (__memset): Rename to MEMSET macro.
21898 [ZVA_MACRO]: Use zva_macro.
21899 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21900 Add memset_generic and memset_falkor.
21901 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21902 (__libc_ifunc_impl_list): Add memset ifuncs.
21903 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21904 local variable zva_size.
21905 * sysdeps/aarch64/multiarch/memset.c: New file.
21906 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21907 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21908 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21909 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21910 (DCZID_DZP_MASK): New macro.
21911 (DCZID_BS_MASK): Likewise.
21912 (init_cpu_features): Read and set zva_size.
21913 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21914 (struct cpu_features): New member zva_size.
21915
21916 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21917 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21918 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21919
21920 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21921 backwards. Fix timing computation.
21922 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21923 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21924 on memset by N at a time. Fix timing computation.
21925
21926 2017-11-20 Florian Weimer <fweimer@redhat.com>
21927
21928 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21929 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21930
21931 2017-11-19 Florian Weimer <fweimer@redhat.com>
21932
21933 manual: Document mprotect
21934 * manual/memory.texi (Memory Protection): New section.
21935 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21936 documentation of PROT_* flags and reference the Memory Protection
21937 section instead.
21938
21939 2017-11-19 Florian Weimer <fweimer@redhat.com>
21940
21941 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21942 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21943 (Scatter-Gather): ... to here. Remove misleading comment.
21944
21945 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21946
21947 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21948 style.
21949
21950 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21951 when /proc/<pid>/setgroups does not exist.
21952
21953 2017-11-18 Florian Weimer <fweimer@redhat.com>
21954
21955 * sysdeps/unix/sysv/linux/tst-ttyname.c
21956 (become_root_in_mount_ns): Remove.
21957 (do_in_chroot_1): Call support_enter_mount_namespace.
21958 (do_in_chroot_2): Likewise.
21959 (do_test): Call support_become_root early.
21960
21961 2017-11-18 Florian Weimer <fweimer@redhat.com>
21962
21963 * support/namespace.h (support_enter_mount_namespace): Declare.
21964 * support/support_enter_mount_namespace.c: New file.
21965 * support/Makefile (libsupport-routines): Add
21966 support_enter_mount_namespace.
21967
21968 2017-11-18 Florian Weimer <fweimer@redhat.com>
21969
21970 * support/temp_file.c (support_create_temp_directory): Use
21971 test_dir and do not rely on the presence of the XXXXXX suffix.
21972 * support/temp_file.h (support_create_temp_directory): Update
21973 comment.
21974 * support/tst-xreadlink.c (do_test): Adjust.
21975 * support/support_chroot.c (support_chroot_create): Likewise.
21976
21977 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21978
21979 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21980 macro.
21981 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21982 htm-no-suspend.
21983
21984 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21985
21986 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21987 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21988 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21989 (ceill): Define using libm_alias_ldouble.
21990 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21991 <libm-alias-ldouble.h>.
21992 (copysignl): Define using libm_alias_ldouble.
21993 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21994 (fabsl): Define using libm_alias_ldouble.
21995 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21996 (floorl): Define using libm_alias_ldouble.
21997 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21998 (fmaxl): Define using libm_alias_ldouble.
21999 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22000 (fminl): Define using libm_alias_ldouble.
22001 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22002 (llrintl): Define using libm_alias_ldouble.
22003 (lrintl): Likewise.
22004 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22005 <libm-alias-ldouble.h>.
22006 (nearbyintl): Define using libm_alias_ldouble.
22007 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22008 (truncl): Define using libm_alias_ldouble.
22009 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22010 <libm-alias-ldouble.h>.
22011 (lrintl): Define using libm_alias_ldouble.
22012
22013 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22014 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22015 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22016 (asinhl): Define using libm_alias_ldouble.
22017 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22018 (atanl): Define using libm_alias_ldouble.
22019 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22020 (cbrtl): Define using libm_alias_ldouble.
22021 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22022 (ceill): Define using libm_alias_ldouble.
22023 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22024 (copysignl): Define using libm_alias_ldouble.
22025 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22026 (fabsl): Define using libm_alias_ldouble.
22027 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22028 (floorl): Define using libm_alias_ldouble.
22029 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22030 (fmaxl): Define using libm_alias_ldouble.
22031 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22032 (fminl): Define using libm_alias_ldouble.
22033 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22034 (frexpl): Define using libm_alias_ldouble.
22035 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22036 (llrintl): Define using libm_alias_ldouble.
22037 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22038 (logbl): Define using libm_alias_ldouble.
22039 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22040 (lrintl): Define using libm_alias_ldouble.
22041 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22042 (nearbyintl): Define using libm_alias_ldouble.
22043 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22044 (nextafterl): Define using libm_alias_ldouble.
22045 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22046 (remquol): Define using libm_alias_ldouble.
22047 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22048 (rintl): Define using libm_alias_ldouble.
22049 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22050 (truncl): Define using libm_alias_ldouble.
22051 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22052 (fmaxl): Define using libm_alias_ldouble.
22053 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22054 (fminl): Define using libm_alias_ldouble.
22055
22056 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22057 to C syntax instead of availability and properties of types.
22058 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22059 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22060 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22061 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22062 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22063 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22064
22065 2017-11-17 Florian Weimer <fweimer@redhat.com>
22066
22067 support_become_root: Enable file creation in namespaces.
22068 * support/support_become_root.c (setup_mapping): New function.
22069 (support_become_root): Call it.
22070
22071 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22072
22073 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22074 macro.
22075
22076 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22077
22078 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22079 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22080
22081 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22082
22083 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22084
22085 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22086 version to 4.14.
22087
22088 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22089
22090 * INSTALL: Fix botched up regeneration.
22091
22092 * NEWS: Update sourceare link to https.
22093 * configure.ac: Likewise.
22094 * crypt/md5test-giant.c: Likewise.
22095 * dlfcn/bug-atexit1.c: Likewise.
22096 * dlfcn/bug-atexit2.c: Likewise.
22097 * localedata/README: Likewise.
22098 * malloc/tst-mallocfork.c: Likewise.
22099 * manual/install.texi: Likewise.
22100 * nptl/tst-pthread-getattr.c: Likewise.
22101 * stdio-common/tst-fgets.c: Likewise.
22102 * stdio-common/tst-fwrite.c: Likewise.
22103 * sunrpc/Makefile: Likewise.
22104 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22105 * wcsmbs/tst-mbrtowc2.c: Likewise.
22106 * configure: Regenerate.
22107 * INSTALL: Regenerate.
22108
22109 2017-11-15 Martin Sebor <msebor@redhat.com>
22110
22111 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22112 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22113 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22114
22115 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22116
22117 [BZ #22145]
22118 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22119 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22120
22121 [BZ #22145]
22122 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22123 Defer is_pty check until end of the function.
22124 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22125
22126 [BZ #22145]
22127 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22128 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22129 (ttyname): Likewise.
22130 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22131 (__ttyname_r): Likewise.
22132
22133 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22134 int to bool.
22135
22136 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22137
22138 * manual/terminal.texi (Is It a Terminal):
22139 Mention ENODEV for ttyname and ttyname_r.
22140
22141 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22142
22143 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22144 constant and macro.
22145
22146 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22147 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22148 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22149 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22150 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22151 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22152
22153 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22154
22155 * signal/sigrelse.c (sigrelse): Optimize implementation.
22156
22157 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22158 (__sigpause): Rely on __sigsuspend to implement single thread
22159 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22160
22161 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22162
22163 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22164 kernel version to 4.14.
22165
22166 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22167
22168 [BZ #22442]
22169 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22170 Check if ifname is too long.
22171
22172 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22173
22174 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22175
22176 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22177
22178 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22179 was accidentally lost.
22180
22181 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22182
22183 * localedata/locales/az_IR: Add standard copyright header.
22184
22185 2017-11-15 Florian Weimer <fweimer@redhat.com>
22186
22187 [BZ #22439]
22188 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22189 not just the top one. Output a new "subheaps" statistic.
22190
22191 2017-11-15 Florian Weimer <fweimer@redhat.com>
22192
22193 [BZ #22408]
22194 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22195 under the per-arena lock.
22196 * malloc/Makefile (tests): Add tst-malloc_info.
22197 (tst-malloc_info): Link with libpthread.
22198 * malloc/tst-malloc_info.c: New file.
22199
22200 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22201
22202 [BZ #21660]
22203 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22204 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22205 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22206 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22207 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22208 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22209 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22210 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22211 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22212 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22213 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22214 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22215 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22216 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22217 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22218 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22219 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22220 (__floating_type): Likewise.
22221 (__real_integer_type): Likewise.
22222 (__complex_integer_type): Likewise.
22223 (__expr_is_real): Likewise.
22224 (__tgmath_real_type_sub): Likewise.
22225 (__tgmath_real_type): Likewise.
22226 (__tgmath_complex_type_sub): Likewise.
22227 (__tgmath_complex_type): Likewise.
22228 (__TGMATH_F128): Likewise.
22229 (__TGMATH_CF128): Likewise.
22230 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22231 new macros.
22232 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22233 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22234 Likewise.
22235 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22236 Likewise.
22237 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22238 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22239 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22240 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22241 Likewise.
22242 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22243 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22244 Likewise.
22245 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22246 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22247 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22248 Likewise.
22249 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22250 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22251 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22252 (cimag): Likewise.
22253 (creal): Likewise.
22254
22255 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22256
22257 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22258 for stpncpy calls for GCC 8.
22259 (test_strncat): Disable -Wstringop-truncation warning for strncat
22260 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22261 strncat call for GCC 7.
22262 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22263 calls for GCC 8.
22264 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22265 trailing NUL.
22266
22267 * string/bug-strncat1.c: Include <libc-diag.h>.
22268 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22269
22270 2017-11-13 Claude Paroz <claude@2xlibre.net>
22271
22272 [BZ #22387]
22273 * localedata/locales/aa_DJ: Improved readibility by replacing
22274 <Uxxxx> sequences in the ASCII printable range by their ASCII
22275 character equivalents.
22276 * localedata/locales/aa_ER: Likewise.
22277 * localedata/locales/aa_ER@saaho: Likewise.
22278 * localedata/locales/aa_ET: Likewise.
22279 * localedata/locales/af_ZA: Likewise.
22280 * localedata/locales/agr_PE: Likewise.
22281 * localedata/locales/ak_GH: Likewise.
22282 * localedata/locales/am_ET: Likewise.
22283 * localedata/locales/anp_IN: Likewise.
22284 * localedata/locales/ar_AE: Likewise.
22285 * localedata/locales/ar_BH: Likewise.
22286 * localedata/locales/ar_DZ: Likewise.
22287 * localedata/locales/ar_EG: Likewise.
22288 * localedata/locales/ar_IN: Likewise.
22289 * localedata/locales/ar_IQ: Likewise.
22290 * localedata/locales/ar_JO: Likewise.
22291 * localedata/locales/ar_KW: Likewise.
22292 * localedata/locales/ar_LB: Likewise.
22293 * localedata/locales/ar_LY: Likewise.
22294 * localedata/locales/ar_MA: Likewise.
22295 * localedata/locales/ar_OM: Likewise.
22296 * localedata/locales/ar_QA: Likewise.
22297 * localedata/locales/ar_SA: Likewise.
22298 * localedata/locales/ar_SD: Likewise.
22299 * localedata/locales/ar_SS: Likewise.
22300 * localedata/locales/ar_SY: Likewise.
22301 * localedata/locales/ar_TN: Likewise.
22302 * localedata/locales/ar_YE: Likewise.
22303 * localedata/locales/as_IN: Likewise.
22304 * localedata/locales/ast_ES: Likewise.
22305 * localedata/locales/ayc_PE: Likewise.
22306 * localedata/locales/az_AZ: Likewise.
22307 * localedata/locales/az_IR: Likewise.
22308 * localedata/locales/be_BY: Likewise.
22309 * localedata/locales/be_BY@latin: Likewise.
22310 * localedata/locales/bem_ZM: Likewise.
22311 * localedata/locales/ber_DZ: Likewise.
22312 * localedata/locales/ber_MA: Likewise.
22313 * localedata/locales/bg_BG: Likewise.
22314 * localedata/locales/bhb_IN: Likewise.
22315 * localedata/locales/bho_IN: Likewise.
22316 * localedata/locales/bi_VU: Likewise.
22317 * localedata/locales/bn_BD: Likewise.
22318 * localedata/locales/bn_IN: Likewise.
22319 * localedata/locales/bo_CN: Likewise.
22320 * localedata/locales/bo_IN: Likewise.
22321 * localedata/locales/br_FR: Likewise.
22322 * localedata/locales/brx_IN: Likewise.
22323 * localedata/locales/bs_BA: Likewise.
22324 * localedata/locales/byn_ER: Likewise.
22325 * localedata/locales/ca_AD: Likewise.
22326 * localedata/locales/ca_ES: Likewise.
22327 * localedata/locales/ca_FR: Likewise.
22328 * localedata/locales/ca_IT: Likewise.
22329 * localedata/locales/ce_RU: Likewise.
22330 * localedata/locales/chr_US: Likewise.
22331 * localedata/locales/cmn_TW: Likewise.
22332 * localedata/locales/crh_UA: Likewise.
22333 * localedata/locales/cs_CZ: Likewise.
22334 * localedata/locales/csb_PL: Likewise.
22335 * localedata/locales/cv_RU: Likewise.
22336 * localedata/locales/cy_GB: Likewise.
22337 * localedata/locales/da_DK: Likewise.
22338 * localedata/locales/de_AT: Likewise.
22339 * localedata/locales/de_BE: Likewise.
22340 * localedata/locales/de_CH: Likewise.
22341 * localedata/locales/de_DE: Likewise.
22342 * localedata/locales/de_IT: Likewise.
22343 * localedata/locales/de_LI: Likewise.
22344 * localedata/locales/de_LU: Likewise.
22345 * localedata/locales/doi_IN: Likewise.
22346 * localedata/locales/dv_MV: Likewise.
22347 * localedata/locales/dz_BT: Likewise.
22348 * localedata/locales/el_CY: Likewise.
22349 * localedata/locales/el_GR: Likewise.
22350 * localedata/locales/en_AG: Likewise.
22351 * localedata/locales/en_AU: Likewise.
22352 * localedata/locales/en_BW: Likewise.
22353 * localedata/locales/en_CA: Likewise.
22354 * localedata/locales/en_DK: Likewise.
22355 * localedata/locales/en_GB: Likewise.
22356 * localedata/locales/en_HK: Likewise.
22357 * localedata/locales/en_IE: Likewise.
22358 * localedata/locales/en_IL: Likewise.
22359 * localedata/locales/en_IN: Likewise.
22360 * localedata/locales/en_NG: Likewise.
22361 * localedata/locales/en_NZ: Likewise.
22362 * localedata/locales/en_PH: Likewise.
22363 * localedata/locales/en_SG: Likewise.
22364 * localedata/locales/en_US: Likewise.
22365 * localedata/locales/en_ZA: Likewise.
22366 * localedata/locales/en_ZM: Likewise.
22367 * localedata/locales/en_ZW: Likewise.
22368 * localedata/locales/eo: Likewise.
22369 * localedata/locales/es_AR: Likewise.
22370 * localedata/locales/es_BO: Likewise.
22371 * localedata/locales/es_CL: Likewise.
22372 * localedata/locales/es_CO: Likewise.
22373 * localedata/locales/es_CR: Likewise.
22374 * localedata/locales/es_CU: Likewise.
22375 * localedata/locales/es_DO: Likewise.
22376 * localedata/locales/es_EC: Likewise.
22377 * localedata/locales/es_ES: Likewise.
22378 * localedata/locales/es_GT: Likewise.
22379 * localedata/locales/es_HN: Likewise.
22380 * localedata/locales/es_MX: Likewise.
22381 * localedata/locales/es_NI: Likewise.
22382 * localedata/locales/es_PA: Likewise.
22383 * localedata/locales/es_PE: Likewise.
22384 * localedata/locales/es_PR: Likewise.
22385 * localedata/locales/es_PY: Likewise.
22386 * localedata/locales/es_SV: Likewise.
22387 * localedata/locales/es_US: Likewise.
22388 * localedata/locales/es_UY: Likewise.
22389 * localedata/locales/es_VE: Likewise.
22390 * localedata/locales/et_EE: Likewise.
22391 * localedata/locales/eu_ES: Likewise.
22392 * localedata/locales/eu_ES@euro: Likewise.
22393 * localedata/locales/fa_IR: Likewise.
22394 * localedata/locales/ff_SN: Likewise.
22395 * localedata/locales/fi_FI: Likewise.
22396 * localedata/locales/fil_PH: Likewise.
22397 * localedata/locales/fo_FO: Likewise.
22398 * localedata/locales/fr_BE: Likewise.
22399 * localedata/locales/fr_CA: Likewise.
22400 * localedata/locales/fr_CH: Likewise.
22401 * localedata/locales/fr_FR: Likewise.
22402 * localedata/locales/fr_LU: Likewise.
22403 * localedata/locales/fur_IT: Likewise.
22404 * localedata/locales/fy_DE: Likewise.
22405 * localedata/locales/fy_NL: Likewise.
22406 * localedata/locales/ga_IE: Likewise.
22407 * localedata/locales/gd_GB: Likewise.
22408 * localedata/locales/gez_ER: Likewise.
22409 * localedata/locales/gez_ET: Likewise.
22410 * localedata/locales/gl_ES: Likewise.
22411 * localedata/locales/gu_IN: Likewise.
22412 * localedata/locales/gv_GB: Likewise.
22413 * localedata/locales/ha_NG: Likewise.
22414 * localedata/locales/hak_TW: Likewise.
22415 * localedata/locales/he_IL: Likewise.
22416 * localedata/locales/hi_IN: Likewise.
22417 * localedata/locales/hif_FJ: Likewise.
22418 * localedata/locales/hne_IN: Likewise.
22419 * localedata/locales/hr_HR: Likewise.
22420 * localedata/locales/hsb_DE: Likewise.
22421 * localedata/locales/ht_HT: Likewise.
22422 * localedata/locales/hu_HU: Likewise.
22423 * localedata/locales/hy_AM: Likewise.
22424 * localedata/locales/i18n: Likewise.
22425 * localedata/locales/ia_FR: Likewise.
22426 * localedata/locales/id_ID: Likewise.
22427 * localedata/locales/ig_NG: Likewise.
22428 * localedata/locales/ik_CA: Likewise.
22429 * localedata/locales/is_IS: Likewise.
22430 * localedata/locales/it_CH: Likewise.
22431 * localedata/locales/it_IT: Likewise.
22432 * localedata/locales/iu_CA: Likewise.
22433 * localedata/locales/ja_JP: Likewise.
22434 * localedata/locales/ka_GE: Likewise.
22435 * localedata/locales/kk_KZ: Likewise.
22436 * localedata/locales/kl_GL: Likewise.
22437 * localedata/locales/kn_IN: Likewise.
22438 * localedata/locales/ko_KR: Likewise.
22439 * localedata/locales/kok_IN: Likewise.
22440 * localedata/locales/ks_IN: Likewise.
22441 * localedata/locales/ks_IN@devanagari: Likewise.
22442 * localedata/locales/ku_TR: Likewise.
22443 * localedata/locales/kw_GB: Likewise.
22444 * localedata/locales/ky_KG: Likewise.
22445 * localedata/locales/lb_LU: Likewise.
22446 * localedata/locales/lg_UG: Likewise.
22447 * localedata/locales/li_BE: Likewise.
22448 * localedata/locales/li_NL: Likewise.
22449 * localedata/locales/lij_IT: Likewise.
22450 * localedata/locales/ln_CD: Likewise.
22451 * localedata/locales/lo_LA: Likewise.
22452 * localedata/locales/lt_LT: Likewise.
22453 * localedata/locales/lv_LV: Likewise.
22454 * localedata/locales/lzh_TW: Likewise.
22455 * localedata/locales/mag_IN: Likewise.
22456 * localedata/locales/mai_IN: Likewise.
22457 * localedata/locales/mg_MG: Likewise.
22458 * localedata/locales/mhr_RU: Likewise.
22459 * localedata/locales/mi_NZ: Likewise.
22460 * localedata/locales/mk_MK: Likewise.
22461 * localedata/locales/ml_IN: Likewise.
22462 * localedata/locales/mn_MN: Likewise.
22463 * localedata/locales/mni_IN: Likewise.
22464 * localedata/locales/mr_IN: Likewise.
22465 * localedata/locales/ms_MY: Likewise.
22466 * localedata/locales/mt_MT: Likewise.
22467 * localedata/locales/my_MM: Likewise.
22468 * localedata/locales/nan_TW: Likewise.
22469 * localedata/locales/nan_TW@latin: Likewise.
22470 * localedata/locales/nb_NO: Likewise.
22471 * localedata/locales/nds_DE: Likewise.
22472 * localedata/locales/nds_NL: Likewise.
22473 * localedata/locales/ne_NP: Likewise.
22474 * localedata/locales/nhn_MX: Likewise.
22475 * localedata/locales/niu_NU: Likewise.
22476 * localedata/locales/niu_NZ: Likewise.
22477 * localedata/locales/nl_AW: Likewise.
22478 * localedata/locales/nl_BE: Likewise.
22479 * localedata/locales/nl_NL: Likewise.
22480 * localedata/locales/nn_NO: Likewise.
22481 * localedata/locales/nr_ZA: Likewise.
22482 * localedata/locales/nso_ZA: Likewise.
22483 * localedata/locales/oc_FR: Likewise.
22484 * localedata/locales/om_ET: Likewise.
22485 * localedata/locales/om_KE: Likewise.
22486 * localedata/locales/or_IN: Likewise.
22487 * localedata/locales/os_RU: Likewise.
22488 * localedata/locales/pa_IN: Likewise.
22489 * localedata/locales/pa_PK: Likewise.
22490 * localedata/locales/pap_AW: Likewise.
22491 * localedata/locales/pap_CW: Likewise.
22492 * localedata/locales/pl_PL: Likewise.
22493 * localedata/locales/ps_AF: Likewise.
22494 * localedata/locales/pt_BR: Likewise.
22495 * localedata/locales/pt_PT: Likewise.
22496 * localedata/locales/quz_PE: Likewise.
22497 * localedata/locales/raj_IN: Likewise.
22498 * localedata/locales/ro_RO: Likewise.
22499 * localedata/locales/ru_RU: Likewise.
22500 * localedata/locales/ru_UA: Likewise.
22501 * localedata/locales/rw_RW: Likewise.
22502 * localedata/locales/sa_IN: Likewise.
22503 * localedata/locales/sat_IN: Likewise.
22504 * localedata/locales/sc_IT: Likewise.
22505 * localedata/locales/sd_IN: Likewise.
22506 * localedata/locales/sd_IN@devanagari: Likewise.
22507 * localedata/locales/se_NO: Likewise.
22508 * localedata/locales/sgs_LT: Likewise.
22509 * localedata/locales/shs_CA: Likewise.
22510 * localedata/locales/si_LK: Likewise.
22511 * localedata/locales/sid_ET: Likewise.
22512 * localedata/locales/sk_SK: Likewise.
22513 * localedata/locales/sl_SI: Likewise.
22514 * localedata/locales/sm_WS: Likewise.
22515 * localedata/locales/so_DJ: Likewise.
22516 * localedata/locales/so_ET: Likewise.
22517 * localedata/locales/so_KE: Likewise.
22518 * localedata/locales/so_SO: Likewise.
22519 * localedata/locales/sq_AL: Likewise.
22520 * localedata/locales/sq_MK: Likewise.
22521 * localedata/locales/sr_ME: Likewise.
22522 * localedata/locales/sr_RS: Likewise.
22523 * localedata/locales/sr_RS@latin: Likewise.
22524 * localedata/locales/ss_ZA: Likewise.
22525 * localedata/locales/st_ZA: Likewise.
22526 * localedata/locales/sv_FI: Likewise.
22527 * localedata/locales/sv_SE: Likewise.
22528 * localedata/locales/sw_KE: Likewise.
22529 * localedata/locales/sw_TZ: Likewise.
22530 * localedata/locales/szl_PL: Likewise.
22531 * localedata/locales/ta_IN: Likewise.
22532 * localedata/locales/ta_LK: Likewise.
22533 * localedata/locales/tcy_IN: Likewise.
22534 * localedata/locales/te_IN: Likewise.
22535 * localedata/locales/tg_TJ: Likewise.
22536 * localedata/locales/th_TH: Likewise.
22537 * localedata/locales/the_NP: Likewise.
22538 * localedata/locales/ti_ER: Likewise.
22539 * localedata/locales/ti_ET: Likewise.
22540 * localedata/locales/tig_ER: Likewise.
22541 * localedata/locales/tk_TM: Likewise.
22542 * localedata/locales/tl_PH: Likewise.
22543 * localedata/locales/tn_ZA: Likewise.
22544 * localedata/locales/to_TO: Likewise.
22545 * localedata/locales/tpi_PG: Likewise.
22546 * localedata/locales/tr_CY: Likewise.
22547 * localedata/locales/tr_TR: Likewise.
22548 * localedata/locales/ts_ZA: Likewise.
22549 * localedata/locales/tt_RU: Likewise.
22550 * localedata/locales/tt_RU@iqtelif: Likewise.
22551 * localedata/locales/ug_CN: Likewise.
22552 * localedata/locales/uk_UA: Likewise.
22553 * localedata/locales/unm_US: Likewise.
22554 * localedata/locales/ur_IN: Likewise.
22555 * localedata/locales/ur_PK: Likewise.
22556 * localedata/locales/uz_UZ: Likewise.
22557 * localedata/locales/uz_UZ@cyrillic: Likewise.
22558 * localedata/locales/ve_ZA: Likewise.
22559 * localedata/locales/vi_VN: Likewise.
22560 * localedata/locales/wa_BE: Likewise.
22561 * localedata/locales/wae_CH: Likewise.
22562 * localedata/locales/wal_ET: Likewise.
22563 * localedata/locales/wo_SN: Likewise.
22564 * localedata/locales/xh_ZA: Likewise.
22565 * localedata/locales/yi_US: Likewise.
22566 * localedata/locales/yo_NG: Likewise.
22567 * localedata/locales/yue_HK: Likewise.
22568 * localedata/locales/yuw_PG: Likewise.
22569 * localedata/locales/zh_CN: Likewise.
22570 * localedata/locales/zh_HK: Likewise.
22571 * localedata/locales/zh_SG: Likewise.
22572 * localedata/locales/zh_TW: Likewise.
22573 * localedata/locales/zu_ZA: Likewise.
22574
22575 2017-11-13 Florian Weimer <fweimer@redhat.com>
22576
22577 * support/next_to_fault.h, support/next_to_fault.c: New files.
22578 * support/Makefile (libsupport-routines): Add next_to_fault.
22579 * resolv/tst-inet_pton.c (struct next_to_fault)
22580 (next_to_fault_allocate, next_to_fault_free): Remove.
22581 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22582
22583 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22584
22585 * elf/dl-support.c: Include <dl-procruntime.c>.
22586 * include/link.h: Include <link_map.h>.
22587 * sysdeps/generic/dl-procruntime.c: New file.
22588 * sysdeps/generic/link_map.h: Likewise.
22589 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22590 the writable ld.so namespace.
22591
22592 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22593
22594 timezone: pacify GCC -Wstringop-truncation
22595 Problem reported by Martin Sebor in:
22596 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22597 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22598
22599 2017-11-12 Florian Weimer <fweimer@redhat.com>
22600
22601 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22602 tst-xreadlink.
22603 (tests): Add tst-xreadlink.
22604 * support/support.h (xstrndup): Declare.
22605 * support/xunistd.h (xunlink, xreadlink): Declare.
22606 * support/temp_file.h (support_create_temp_directory): Declare.
22607 * support/temp_file.c (support_create_temp_directory): New function.
22608 * support/support_chroot.c (support_chroot_create): Use it.
22609 * support/xreadlink.c: New file.
22610 * support/xstrndup.c: Likewise.
22611 * support/xunlink.c: Likewise.
22612 * support/tst-xreadlink.c: Likewise.
22613
22614 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22615
22616 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22617
22618 2017-11-11 Florian Weimer <fweimer@redhat.com>
22619
22620 [BZ #22409]
22621 [BZ #22412]
22622 * resolv/res_comp.c (printable_string, binary_hnok)
22623 (binary_leading_dash): New functions.
22624 (res_hnok): Reimplement using these functions and ns_name_pton.
22625 (res_ownok): Likewise.
22626 (res_mailok): Reimplement using printable_string, ns_name_pton and
22627 binary_hnok.
22628 (res_dnok): Reimplement using printable_string and ns_name_pton.
22629 * resolv/tst-res_hnok.c (tests): Add additional tests.
22630 (LETTERDIGITS, PRINTABLE): Define.
22631 (do_test): Adjust one_char results.
22632
22633 2017-11-11 Florian Weimer <fweimer@redhat.com>
22634
22635 [BZ #22413]
22636 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22637 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22638
22639 2017-11-11 Florian Weimer <fweimer@redhat.com>
22640
22641 * resolv/tst-ns_name_pton.c: New file.
22642 * resolv/Makefile (tests): Add tst-ns_name_pton.
22643 (tst-ns_name_pton): Link against libresolv.
22644
22645 2017-11-11 Florian Weimer <fweimer@redhat.com>
22646
22647 * resolv/tst-res_hnok.c: New file.
22648 * resolv/Makefile (tests): Add tst-res_hnok.
22649 (tst-res_hnok): Link against libresolv.
22650
22651 2017-11-11 Florian Weimer <fweimer@redhat.com>
22652
22653 * resolv/tst-resolv-network.c: Use test framework instead explicit
22654 main function.
22655
22656 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22657
22658 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22659 <jmp_buf-macros.h>.
22660 [!_ISOMAC] (STR_HELPER): New.
22661 [!_ISOMAC] (STR): Likewise.
22662 [!_ISOMAC] (TEST_SIZE): Likewise.
22663 [!_ISOMAC] (TEST_ALIGN): Likewise.
22664 [!_ISOMAC] (TEST_OFFSET): Likewise.
22665 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22666 field offsets of jmp_buf as well as sigjmp_buf.
22667 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22668 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22669 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22670 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22671 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22672 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22673 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22674 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22675 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22676 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22677 Likewise.
22678 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22679 Likewise.
22680 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22682 Likewise.
22683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22684 Likewise.
22685 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22686 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22687 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22688 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22689 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22690 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22691 Likewise.
22692 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22693 Likewise.
22694 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22695 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22696 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22697
22698 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22699
22700 * include/float.h
22701 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22702 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22703 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22704 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22705 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22706 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22707 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22708 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22709 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22710 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22711 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22712 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22713 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22714 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22715 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22716 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22717 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22718 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22719 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22720 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22721 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22722 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22723 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22724 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22725 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22726 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22727 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22728 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22729 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22730 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22731 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22732 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22733 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22734 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22735 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22736 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22737 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22738 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22739 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22740 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22741 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22742 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22743 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22744 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22745 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22746 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22747 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22748 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22749 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22750 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22751 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22752 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22753 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22754 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22755 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22756 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22757 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22758 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22759 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22760 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22761 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22762 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22763 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22764 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22765 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22766 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22767 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22768 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22769 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22770 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22771 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22772 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22774 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22776 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22778 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22779 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22780 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22781 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22782 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22783 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22784 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22785 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22786 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22787 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22788 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22789
22790 * stdlib/tst-strtod.h (F16): New macro.
22791 (F32): Likewise.
22792 (F64): Likewise.
22793 (F32X): Likewise.
22794 (F64X): Likewise.
22795 (F128X): Likewise.
22796 (IF_FLOAT16): Likewise.
22797 (IF_FLOAT32): Likewise.
22798 (IF_FLOAT64): Likewise.
22799 (IF_FLOAT32X): Likewise.
22800 (IF_FLOAT64X): Likewise.
22801 (IF_FLOAT128X): Likewise.
22802 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22803 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22804 (STRTOD_TEST_FOREACH): Likewise.
22805 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22806 (CHOOSE_f64): Likewise.
22807 (CHOOSE_f32x): Likewise.
22808 (CHOOSE_f64x): Likewise.
22809
22810 2017-11-07 Andreas Schwab <schwab@suse.de>
22811
22812 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22813
22814 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22815
22816 [BZ #22403]
22817 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22818 to be escaped.
22819 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22820 to be escaped.
22821
22822 2017-11-07 Claude Paroz <claude@2xlibre.net>
22823
22824 [BZ #22403]
22825 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22826 to be escaped.
22827 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22828 to be escaped.
22829 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22830 to be escaped.
22831
22832 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22833
22834 [BZ #22298]
22835 * nptl/allocatestack.c (allocate_stack): Check if
22836 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22837 __PTHREAD_MUTEX_HAVE_PREV is defined.
22838 * nptl/descr.h (pthread): Likewise.
22839 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22840 Likewise.
22841 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22842 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22843 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22844 * sysdeps/nptl/bits/thread-shared-types.h
22845 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22846 defines.
22847 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22848 of __WORDSIZE for internal layout.
22849 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22850 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22851 instead of __WORDSIZE whether to use an union for __spins and __list
22852 fields.
22853 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22854 case.
22855 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22856 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22857 defines.
22858 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22859 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22860 Likewise.
22861 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22862 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22863 Likewise.
22864 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22865 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22866 Likewise.
22867 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22868 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22869 Likewise.
22870 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22871 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22872 Likewise.
22873 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22874 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22875 Likewise.
22876 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22877 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22878 Likewise.
22879 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22880 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22881 Likewise.
22882 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22883 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22884 Likewise.
22885 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22886 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22887 Likewise.
22888 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22889 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22890 Likewise.
22891 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22892 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22893 Likewise.
22894 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22895 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22896 Likewise.
22897 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22898 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22899 Likewise.
22900
22901 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22902 New macros.
22903 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22904 checks for expected input type size.
22905 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22906 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22907 Likewise.
22908 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22909 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22910 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22911 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22912 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22913 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22914 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22915 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22916 superflous runtime assert check.
22917 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22918 Likewise.
22919 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22920 Likewise.
22921 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22922 Likewise.
22923 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22924 Likewise.
22925 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22926 Likewise.
22927 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22928 Likewise.
22929 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22930 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22931 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22932 Likewise.
22933 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22934 Likewise.
22935 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22936 Likewise.
22937 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22938 Likewise.
22939 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22940 Likewise.
22941 * nptl/pthread_attr_setinheritsched.c
22942 (__pthread_attr_setinheritsched): Likewise.
22943 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22944 Likewise.
22945 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22946 Likewise.
22947 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22948 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22949 __old_pthread_attr_setstack): Likewise.
22950 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22951 Likewise.
22952 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22953 Likewise.
22954 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22955 Likewise.
22956 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22957 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22958 Likewise.
22959 * nptl/tst-typesizes.c: Remove file.
22960
22961 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22962 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22963 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22964 checks for internal pthread_mutex_t offsets.
22965 * sysdeps/aarch64/nptl/pthread-offsets.h
22966 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22967 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22968 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22969 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22970 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22971 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22972 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22973 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22974 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22975 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22976 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22977 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22978 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22979 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22980 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22981 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22982 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22983 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22984
22985 2017-11-07 Florian Weimer <fweimer@redhat.com>
22986
22987 * bits/mman-linux.h: Move ...
22988 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22989 comment.
22990 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22991 outdated comment.
22992
22993 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22994
22995 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22996 Redefine STRNLEN as __strnlen_power8.
22997
22998 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22999
23000 * signal/sighold.c (sighold): Optimize implementation.
23001
23002 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23003 __NR_rt_sigqueueinfo.
23004
23005 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23006 __sigtimedwait.
23007 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23008 assume __NR_rt_sigtimedwait.
23009 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23010 and add LIBC_CANCEL_HANDLED for cancellation marking.
23011 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23012
23013 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23014 (sysdeps_routines): Add memchr_noneon.
23015 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23016 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23017 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23018 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23019 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23020 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23021 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23022
23023 * sysdeps/arm/arm-ifunc.h: New file.
23024 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23025 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23026 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23027 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23028 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23029 (__memcpy_neon): Avoid create hidden alias.
23030 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23031 (__memcpy_vfp): Likewise.
23032 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23033 (sysdep_routines): Add memcpy_arm.
23034 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23035
23036 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23037
23038 [BZ #22362]
23039 * Makerules (make-link-multidir): New.
23040 * config.make.in (multidir): New.
23041 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23042 * configure: Regenerated.
23043 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23044 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23045 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23046 New target.
23047
23048 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23049
23050 [BZ #22402]
23051 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23052 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23053
23054 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23055
23056 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23057 to be escaped.
23058
23059 2017-11-04 Florian Weimer <fweimer@redhat.com>
23060
23061 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23062
23063 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23064
23065 * math/math.h [__HAVE_DISTINCT_FLOAT16
23066 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23067 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23068 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23069 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23070 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23071 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23072 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23073 (__MATH_TG_F32): New macro.
23074 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23075 (__MATH_TG_F64X): Likewise.
23076 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23077 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23078
23079 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23080
23081 * po/de.po: Update translations.
23082 * po/ru.po: Likewise.
23083
23084 2017-11-03 Florian Weimer <fweimer@redhat.com>
23085
23086 * manual/filesys.texi (Hard Links): Document linkat.
23087
23088 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23089
23090 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23091 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23092 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23093 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23094 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23095 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23096 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23097 the same as _Float128.
23098 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23099 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23100 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23101
23102 * stdlib/stdlib.h
23103 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23104 Declare.
23105 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23106 Likewise.
23107 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23108 Likewise.
23109 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23110 (strtof32x): Likewise.
23111 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23112 (strtof64x): Likewise.
23113 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23114 (strtof128x): Likewise.
23115 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23116 (strfromf16): Likewise.
23117 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23118 (strfromf32): Likewise.
23119 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23120 (strfromf64): Likewise.
23121 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23122 (strfromf32x): Likewise.
23123 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23124 (strfromf64x): Likewise.
23125 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23126 (strfromf128x): Likewise.
23127 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23128 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23129 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23130 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23131 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23132 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23133
23134 2017-11-03 Richard Henderson <rth@twiddle.net>
23135
23136 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23137
23138 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23139
23140 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23141
23142 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23143
23144 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23145 DT_TLSDESC_GOT initialization.
23146 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23147 (_dl_tlsdesc_resolve_hold): Likewise.
23148 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23149 (_dl_tlsdesc_resolve_hold): Likewise.
23150 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23151 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23152
23153 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23154
23155 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23156
23157 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23158
23159 [BZ #18572]
23160 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23161 non-lazily for R_ARM_TLS_DESC.
23162
23163 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23164
23165 [BZ #17078]
23166 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23167 R_ARM_TLS_DESC case.
23168 (elf_machine_lazy_rel): Remove the prelink check.
23169
23170 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23171
23172 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23173 DT_TLSDESC_GOT initialization.
23174 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23175 (_dl_tlsdesc_resolve_rela): Likewise.
23176 (_dl_tlsdesc_resolve_hold): Likewise.
23177 (_dl_tlsdesc_undefweak): Remove ldar.
23178 (_dl_tlsdesc_dynamic): Likewise.
23179 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23180 (_dl_tlsdesc_resolve_rela): Likewise.
23181 (_dl_tlsdesc_resolve_hold): Likewise.
23182 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23183 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23184 (_dl_tlsdesc_resolve_rela): Likewise.
23185 (_dl_tlsdesc_resolve_hold): Likewise.
23186
23187 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23188
23189 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23190 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23191
23192 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23193
23194 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23195 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23196
23197 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23198
23199 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23200 Declare.
23201 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23202 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23203 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23204 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23205 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23206 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23207 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23208 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23209 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23210 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23211 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23212
23213 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23214
23215 [BZ #22382]
23216 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23217 * localedata/locales/tpi_PG: Add standard header.
23218
23219 2017-11-02 Florian Weimer <fweimer@redhat.com>
23220
23221 test-errno-linux: quotactl can fail with EPERM in containers.
23222 * sysdeps/unix/sysv/linux/test-errno-linux.c
23223 (LIST, LIST_FORWARD): New macros.
23224 (check_error_in_list): New function.
23225 (test_wrp_rv): Accept list of permitted error codes.
23226 (test_wrp_rv2): Remove.
23227 (test_wrp): Call test_wrp_rv with list of error codes.
23228 (test_wrp2): Accept list of error codes.
23229 (do_test): Adjust. Allow EPERM for quotactl.
23230
23231 2017-11-02 Florian Weimer <fweimer@redhat.com>
23232
23233 * stdio-common/bug16.c (do_test): Use array_length.
23234 * stdio-common/errlist.c (_sys_nerr): Likewise.
23235 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23236 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23237 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23238 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23239 (do_test): Use array_length.
23240 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23241 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23242 * stdio-common/tst-printf-round.c (do_test): Likewise.
23243 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23244 (CHECK): Use array_length.
23245 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23246 * stdio-common/tstscanf.c (main): Likewise.
23247 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23248
23249 2017-11-02 Florian Weimer <fweimer@redhat.com>
23250
23251 Add array_length and array_end macros.
23252 * include/array_length.h: New file.
23253
23254 2017-11-02 Florian Weimer <fweimer@redhat.com>
23255
23256 [BZ #22332]
23257 * posix/tst-glob-tilde.c (do_noescape): New variable.
23258 (one_test): Process it.
23259 (do_test): Set do_noescape. Add unescaping test case.
23260
23261 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23262
23263 * math/complex.h
23264 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23265 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23266 with appropriate macros defined and undefined.
23267 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23268 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23269 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23270 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23271 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23272 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23273 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23274 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23275 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23276 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23277
23278 * math/complex.h
23279 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23280 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23281 that for long double. Do not condition define and undefine of
23282 _Mdouble_complex_ on [__CFLOAT128].
23283
23284 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23285
23286 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23287 of <sysdeps/generic/sysdep.h>.
23288 (ALIGNARG): Removed.
23289 (ASM_SIZE_DIRECTIVE): Likewise.
23290 (ENTRY): Likewise.
23291 (END): Likewise.
23292 (ENTRY_CHK): Likewise.
23293 (END_CHK): Likewise.
23294 (syscall_error): Likewise.
23295 (mcount): Likewise.
23296 (PSEUDO_END): Likewise.
23297 (L): Likewise.
23298 (atom_text_section): Likewise.
23299 * sysdeps/x86/sysdep.h: New file.
23300 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23301 of <sysdeps/generic/sysdep.h>.
23302 (ALIGNARG): Removed.
23303 (ASM_SIZE_DIRECTIVE): Likewise.
23304 (ENTRY): Likewise.
23305 (END): Likewise.
23306 (ENTRY_CHK): Likewise.
23307 (END_CHK): Likewise.
23308 (syscall_error): Likewise.
23309 (mcount): Likewise.
23310 (PSEUDO_END): Likewise.
23311 (L): Likewise.
23312 (atom_text_section): Likewise.
23313
23314 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23315
23316 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23317 category of LC_CTYPE set to "i18n:2012".
23318 * localedata/locales/i18n_ctype: Regenerate.
23319
23320 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23321
23322 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23323 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23324 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23325 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23326
23327 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23328 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23329 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23330 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23331
23332 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23333
23334 * math/complex.h
23335 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23336 New macro.
23337 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23338 Likewise.
23339 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23340 Likewise.
23341 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23342 (CMPLXF32X): Likewise.
23343 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23344 (CMPLXF64X): Likewise.
23345 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23346 (CMPLXF128X): Likewise.
23347
23348 * math/math.h
23349 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23350 (__MATH_EVAL_FMT2): Define to add 0.0f.
23351
23352 2017-10-31 Alan Modra <amodra@gmail.com>
23353
23354 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23355 include sysdep.h.
23356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23370 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23371 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23372 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23373 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23374 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23375 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23376 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23377 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23378 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23379 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23380 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23381 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23382 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23383 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23384 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23385 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23386 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23387 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23388 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23389 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23390 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23391 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23392 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23393 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23394 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23395 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23396 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23397 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23398 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23399 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23400 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23401 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23402 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23403 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23404 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23405 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23406 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23407 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23408 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23409 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23410 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23411 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23412 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23413 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23414 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23415 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23416 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23417 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23418 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23419 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23420 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23421 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23422 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23423 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23424 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23425
23426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23427 include sysdep.h and math_ldbl_opt.h.
23428
23429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23430 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23455
23456 2017-10-31 Alan Modra <amodra@gmail.com>
23457
23458 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23459 string/strncase_l.c, not string/strncase.c.
23460 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23461 (libc_hidden_def): Redefine.
23462
23463 2017-10-31 Alan Modra <amodra@gmail.com>
23464
23465 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23466 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23467 (__strcasecmp): Don't define.
23468
23469 2017-10-31 Alan Modra <amodra@gmail.com>
23470
23471 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23472 IS_IN (libc).
23473 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23474 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23475 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23476
23477 2017-10-31 Alan Modra <amodra@gmail.com>
23478
23479 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23480 USE_AS_STPNCPY.
23481
23482 2017-10-31 Alan Modra <amodra@gmail.com>
23483
23484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23485 Redefine only when SHARED.
23486
23487 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23488
23489 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23490 Include <bits/math-finite.h> with appropriate macros defined and
23491 undefined.
23492 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23493 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23494 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23495 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23496 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23497
23498 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23499 [!_Mlong_double_] (_Mlong_double_): Likewise.
23500 [!_Mfloat16_] (_Mfloat16_): Likewise.
23501 [!_Mfloat32_] (_Mfloat32_): Likewise.
23502 [!_Mfloat64_] (_Mfloat64_): Likewise.
23503 [!_Mfloat128_] (_Mfloat128_): Likewise.
23504 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23505 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23506 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23507 (_Mdouble_): Define without indirection through those macros.
23508 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23509 [!_Mfloat128_] (_Mfloat128_): Likewise.
23510 [_Mlong_double_] (_Mlong_double_): Likewise.
23511 (_Mdouble_): Define without indirection through those macros.
23512 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23513 not add -D_Mlong_double_=double.
23514 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23515 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23516
23517 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23518
23519 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23520
23521 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23522
23523 * sysdeps/x86/libc-start.c: Reformat.
23524
23525 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23526
23527 [BZ #22353]
23528 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23529 (1): Renamed to ...
23530 (L(Src0)): This.
23531 (L(Src1)): New.
23532 (L(Src2)): Likewise.
23533 (L(1)): Renamed to ...
23534 (L(Src3)): This.
23535
23536 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23537
23538 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23539 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23540 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23541 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23542 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23543 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23544 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23545 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23546 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23547 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23548 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23549 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23550 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23551 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23552 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23553 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23554 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23555 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23556 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23557 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23558 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23559 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23560 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23561 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23562 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23563 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23564 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23565 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23566 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23567 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23568 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23569 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23570 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23571 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23572 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23573 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23574 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23575 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23576 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23577 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23578 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23579 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23580 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23581 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23582 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23583 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23584 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23585 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23586 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23587 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23588 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23589 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23590 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23591 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23592 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23593 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23594 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23595 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23596 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23597 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23598 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23599 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23600 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23601 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23602 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23603 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23604
23605 2017-10-30 Florian Weimer <fweimer@redhat.com>
23606
23607 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23608 always defined.
23609 * io/tst-mkdirat.c (do_test): Likewise.
23610 * io/tst-mkfifoat.c (do_test): Likewise.
23611 * io/tst-mknodat.c (do_test): Likewise.
23612 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23613 * locale/programs/locale.c (select_dirs): Likewise.
23614 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23615 * posix/bug-glob2.c (my_readdir): Likewise.
23616 * posix/tst-dir.c (main): Likewise.
23617 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23618 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23619
23620 2017-10-30 Florian Weimer <fweimer@redhat.com>
23621
23622 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23623 just __USE_GNU.
23624
23625 2017-10-30 Florian Weimer <fweimer@redhat.com>
23626
23627 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23628 Convert to support/test-driver.c.
23629 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23630 New macro parameters.
23631 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23632 * posix/tst-gnuglob.c: New file.
23633 * posix/tst-gnuglob64.c: Likewise.
23634 * posix/Makefile (tests): Add tst-gnuglob64.
23635
23636 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23637
23638 [BZ #19485]
23639 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23640 and use a better translation for March in “mon”.
23641 * localedata/locales/csb_PL: Use more ASCII to improve the
23642 readability of the source.
23643
23644 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23645
23646 [BZ #13953]
23647 * localedata/locales/km_KH: Use ASCII as much
23648 as possible for better readability of the source and
23649 remove useless comments.
23650 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23651 was commented out and apparently wrong anyway because it was
23652 using Lao characters. If Buddhist era should be used
23653 for km_KH, a native speaker should write the correct formaat
23654 for Khmer.
23655 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23656 (According to CLDR, the first weekday for Cambodia is Sunday).
23657 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23658 (These were using Lao characters which must be wrong. If we get
23659 the correct data from a native speaker, we could add it back, until
23660 then it is better not to have name_mr and name_mrs at all than
23661 having it wrong).
23662
23663 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23664
23665 * locale/loadlocale.c: Correct size of
23666 _nl_value_type_LC_<category> arrays.
23667
23668 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23669
23670 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23671 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23672 with appropriate macros defined and undefined.
23673 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23674 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23675 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23676 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23677 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23678
23679 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23680
23681 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23682 "-O2 -march=i586".
23683
23684 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23685
23686 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23687 with lowercase letters to make it agree with CLDR.
23688
23689 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23690
23691 [BZ #15260]
23692 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23693 first letters of yesstr and nostr in yesexpr and noexpr,
23694 not for the full words.
23695 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23696 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23697 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23698 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23699 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23700 first letters of yesstr and nostr in yesexpr and noexpr,
23701 until now only English was matched in yesexpr and noexpr.
23702 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23703 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23704 fil but not for tl. As tl and fil are very similar, using fil
23705 is probably better than using English.
23706
23707 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23708
23709 [BZ #21706]
23710 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23711 in yesstr and nostr.
23712
23713 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23714
23715 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23716 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23717 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23718 Likewise.
23719 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23720 Likewise.
23721 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23722 Likewise.
23723 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23724 Likewise.
23725 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23726 (SNANF128X): Likewise.
23727
23728 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23729 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23730 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23731 (HUGE_VAL_F32): Likewise.
23732 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23733 (HUGE_VAL_F64): Likewise.
23734 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23735 (HUGE_VAL_F32X): Likewise.
23736 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23737 (HUGE_VAL_F64X): Likewise.
23738 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23739 (HUGE_VAL_F128X): Likewise.
23740
23741 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23742
23743 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23744 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23745 for the br_FR locale.
23746
23747 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23748
23749 [BZ #21706]
23750 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23751
23752 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23753
23754 * locale/programs/record-status.h: Define globals, and function
23755 prototypes. Move function bodies...
23756 * locale/programs/record-status.c: ... to here. New file.
23757 * iconv/Makefile (iconv_prog-modules): Add record-status.
23758 * locale/Makefile (lib-modules): Likewise.
23759 * iconv/iconv_prog.c: Remove verbose.
23760 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23761 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23762 record a warning about ASCII compatibility.
23763 * locale/programs/ld-monetary.c (monetary_finish): If
23764 warn_int_curr_symbol is true then record a warning about the symbol
23765 not being in our ISO 4217 list.
23766 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23767 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23768 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23769 (OPT_NO_WARN): Define.
23770 (OPT_WARN): Define.
23771 (options): Add entry for --no-warnings, and --warnings.
23772 (set_warnings): New function to enable/disable warnings.
23773 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23774 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23775 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23776 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23777 Pass flags to generate_locale.
23778 (generate_locale): Accept new flag argument and pass it to localedef
23779 invocation.
23780 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23781 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23782
23783 * localedata/Makefile (test-input-data): Use full file name.
23784 * localedata/da_DK.in: Rename to...
23785 * localedata/da_DK.ISO-8859-1.in: ...this.
23786 * localedata/de_DE.in: Rename to...
23787 * localedata/de_DE.ISO-8859-1.in: ...this.
23788 * localedata/en_US.in: Rename to...
23789 * localedata/en_US.ISO-8859-1.in: ...this.
23790 * localedata/fr_FR.in: Rename to...
23791 * localedata/fr_FR.UTF-8.in: ... this.
23792 * localedata/hr_HR.in: Rename to...
23793 * localedata/hr_HR.ISO-8859-2.in: ...this.
23794 * localedata/hu_HU.in: Rename to...
23795 * localedata/hu_HU.UTF-8.in: ...this.
23796 * localedata/si_LK.in: Rename to...
23797 * localedata/si_LK.UTF-8.in: ...this.
23798 * localedata/sv_SE.in: Rename to...
23799 * localedata/sv_SE.ISO-8859-1.in: ...this.
23800 * localedata/tr_TR.in: Rename to...
23801 * localedata/tr_TR.UTF-8.in: ...this.
23802 * localedata/uk_UA.in: Rename to...
23803 * localedata/uk_UA.UTF-8.in: ...this.
23804 * localedata/sort-test.sh: Test file is locale name with the
23805 suffix.
23806
23807 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23808 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23809 file.
23810 * localedata/locales/i18n_ctype: Regenerate.
23811 * localedata/locales/tr_TR: Likewise.
23812 * localedata/locales/translit_circle: Likewise.
23813 * localedata/locales/translit_cjk_compat: Likewise.
23814 * localedata/locales/translit_combining: Likewise.
23815 * localedata/locales/translit_compat: Likewise.
23816 * localedata/locales/translit_font: Likewise.
23817 * localedata/locales/translit_fraction: Likewise.
23818
23819 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23820
23821 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23822 lxvd2x/stxvd2x with lvx/stvx.
23823 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23824
23825 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23826
23827 * include/alloc_buffer.h: Replace "if if " with "if " in
23828 comments.
23829 * sysdeps/mips/memcpy.S: Likkewise.
23830 * sysdeps/mips/memset.S: Likewise.
23831 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23832 Likewise.
23833 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23834 Likewise.
23835 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23836 Likewise.
23837
23838 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23839
23840 [BZ #15261]
23841 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23842 yesexpr and noexpr.
23843 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23844 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23845 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23846 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23847 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23848 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23849 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23850
23851 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23852
23853 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23854 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23855 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23856 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23857 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23858 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23859 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23860 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23861 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23862 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23863 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23864 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23865
23866 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23867
23868 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23869 as possible for better readability of the source.
23870 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23871 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23872 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23873 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23874 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23875 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23876 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23877 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23878 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23879 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23880 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23881 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23882 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23883 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23884 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23885 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23886 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23887 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23888 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23889 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23890 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23891 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23892 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23893 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23894 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23895 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23896 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23897 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23898 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23899 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23900 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23901 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23902 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23903 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23904 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23905 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23906 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23907 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23908 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23909 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23910 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23911 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23912 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23913 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23914 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23915 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23916 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23917 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23918 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23919 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23920 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23921 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23922 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23923 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23924 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23925 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23926 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23927 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23928 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23929 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23930 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23931 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23932 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23933 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23934 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23935 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23936 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23937 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23938 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23939 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23940 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23941 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23942 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23943 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23944 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23945 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23946 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23947 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23948 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23949 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23950 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23951 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23952 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23953 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23954 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23955 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23956 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23957 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23958 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23959 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23960 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23961 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23962 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23963 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23964 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23965 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23966 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23967 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23968 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23969 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23970 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23971 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23972 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23973 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23974 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23975 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23976 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23977 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23978 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23979 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23980 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23981 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23982 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23983 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23984 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23985 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23986 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23987 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23988 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23989 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23990 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23991 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23992 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23993 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23994 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23995 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23996 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23997 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23998 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23999 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24000 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24001 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24002 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24003 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24004 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24005 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24006 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24007 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24008 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24009 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24010 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24011 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24012 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24013 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24014 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24015 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24016 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24017 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24018 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24019 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24020 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24021 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24022 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24023 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24024 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24025 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24026 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24027 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24028 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24029 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24030 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24031 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24032 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24033 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24034 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24035 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24036 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24037 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24038 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24039 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24040 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24041 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24042 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24043 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24044
24045 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24046
24047 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24048 (Use first letters of yesstr and nostr correctly instead of using
24049 full words).
24050
24051 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24052
24053 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24054 (Use first letters of yesstr and nostr correctly).
24055
24056 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24057
24058 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24059 also check for the first characters of yesstr and nostr.
24060 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24061 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24062
24063 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24064
24065 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24066 also check for Chinese characters.
24067
24068 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24069
24070 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24071 match also for the contents of yesstr and nostr. As the first letter
24072 of yesstr and nostr is equal, checking only for the first letter
24073 is not enough.
24074
24075 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24076
24077 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24078 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24079
24080 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24081
24082 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24083 of main contributor.
24084
24085 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24086
24087 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24088 instead of using English.
24089
24090 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24091
24092 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24093 by including the first letters of nostr and yesexpr in the regexp.
24094 Also make it more readable by using ASCII where possible.
24095
24096 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24097
24098 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24099 the first letter of nostr in the regexp. It agrees with CLDR now.
24100 Also make it more readable by using ASCII where possible.
24101
24102 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24103
24104 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24105 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24106 these strings contain a U+17D6 (which somewhat looks like a colon)
24107 instead of a real colon to separate the full words for “yes”
24108 and “no” from the single letter responses.
24109
24110 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24111
24112 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24113 it agree with CLDR (include the first letter of yesstr).
24114 Also make it more readable by using ASCII where possible.
24115
24116 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24117
24118 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24119 and improve yesexpr and noexpr. The yesstr and nostr apparently
24120 came from CLDR. And CLDR has a bug there: these strings contain
24121 a U+0903 (which looks like a colon) instead of a real colon
24122 to separate the full words for “yes” and “no” from the single
24123 letter responses.
24124
24125 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24126
24127 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24128 letters of the full yesstr and nostr in yesexpr and noexpr.
24129
24130 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24131
24132 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24133 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24134 * localedata/locales/an_ES: Make source more readable by using ASCII
24135 where possible.
24136
24137 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24138
24139 [BZ #20952]
24140 * localedata/locales/yuw_PG: New file.
24141 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24142 * locale/iso-639.def: Add Yau (Uruwa).
24143
24144 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24145
24146 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24147
24148 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24149
24150 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24151 (__libc_realloc): Likewise.
24152 (_mid_memalign): Likewise.
24153 (__libc_calloc): Likewise.
24154
24155 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24156
24157 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24158 by adding the generic +1 and -0 as in all other locales.
24159 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24160 day names and make it more readable by using ASCII where possible.
24161
24162 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24163
24164 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24165 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24166
24167 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24168
24169 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24170 WNOHANG in waitpid call.
24171
24172 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24173
24174 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24175 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24176
24177 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24178 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24179 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24180 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24181 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24182 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24183 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24184 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24185 variables.
24186
24187 2017-10-23 Michael Collison <michael.collison@arm.com>
24188
24189 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24190 with __builtin_sqrt.
24191 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24192 with __builtin_sqrtf.
24193 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24194 with __builtin_ceil.
24195 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24196 with __builtin_ceilf.
24197 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24198 with __builtin_floor.
24199 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24200 with __builtin_floorf.
24201 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24202 with __builtin_fma.
24203 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24204 with __builtin_fmaf.
24205 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24206 with __builtin_fmax.
24207 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24208 with __builtin_fmaxf.
24209 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24210 with __builtin_fmin.
24211 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24212 with __builtin_fminf.
24213 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24214 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24215 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24216 with builtin_rint and conversion to int.
24217 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24218 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24219 with builtin_llround.
24220 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24221 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24222 with builtin_rint and conversion to long int.
24223 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24224 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24225 with builtin_lround.
24226 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24227 with builtin_lroundf.
24228 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24229 statements with __builtin_nearbyint.
24230 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24231 statements with __builtin_nearbyintf.
24232 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24233 with __builtin_rint.
24234 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24235 with __builtin_rintf.
24236 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24237 with __builtin_round.
24238 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24239 with __builtin_roundf.
24240 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24241 with __builtin_trunc.
24242 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24243 with __builtin_truncf.
24244 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24245 and s_l[l]round[f].c too.
24246
24247 2017-10-23 Alan Modra <amodra@gmail.com>
24248
24249 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24250 Adjust stack after restoring regs. Add missing LR cfi_restore.
24251
24252 2017-10-23 Alan Modra <amodra@gmail.com>
24253
24254 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24255 Move LR save and frame setup/teardown and LR restore to
24256 immediately around memset call. Provide cfi.
24257
24258 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24259
24260 * sysdeps/i386/fpu/e_powf.S: Removed.
24261 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24262 * sysdeps/i386/fpu/w_powf.c: Likewise.
24263 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24264 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24265 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24266 Add e_powf-sse2.
24267 (CFLAGS-e_powf-sse2.c): New.
24268 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24269 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24270
24271 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24272
24273 * sysdeps/i386/fpu/e_log2f.S: Removed.
24274 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24275 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24276 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24277 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24278 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24279 Add e_log2f-sse2.
24280 (CFLAGS-e_log2f-sse2.c): New.
24281 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24282 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24283
24284 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24285
24286 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24287 Add e_powf-fma.
24288 (CFLAGS-e_powf-fma.c): New.
24289 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24290 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24291
24292 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24293
24294 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24295 Add e_log2f-fma.
24296 (CFLAGS-e_log2f-fma.c): New.
24297 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24298 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24299
24300 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24301
24302 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24303 Add e_logf-fma.
24304 (CFLAGS-e_logf-fma.c): New.
24305 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24306 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24307
24308 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24309
24310 * sysdeps/i386/fpu/e_logf.S: Removed.
24311 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24312 * sysdeps/i386/fpu/w_logf.c: Likewise.
24313 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24314 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24315 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24316 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24317 Add e_logf-sse2.
24318 (CFLAGS-e_logf-sse2.c): New.
24319 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24320 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24321
24322 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24323
24324 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24325 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24326 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24327 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24328 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24329 Add e_exp2f-sse2.
24330 (CFLAGS-e_exp2f-sse2.c): New.
24331 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24332 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24333
24334 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24335
24336 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24337 Add e_exp2f-fma.
24338 (CFLAGS-e_exp2f-fma.c): New.
24339 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24340 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24341
24342 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24343
24344 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24345 * sysdeps/i386/fpu/e_expf.S: Likewise.
24346 * sysdeps/i386/fpu/math_errf.c: Likewise.
24347 * sysdeps/i386/fpu/w_expf.c: Likewise.
24348 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24349 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24350 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24351 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24352 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24353 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24354 Remove e_expf-ia32.
24355 (CFLAGS-e_expf-sse2.c): New.
24356 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24357 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24358
24359 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24360
24361 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24362 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24363 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24364 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24365 e_expf.c.
24366 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24367 New.
24368 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24369 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24370 Renamed to ...
24371 (__redirect_expf): This.
24372 (SYMBOL_NAME): Changed to expf.
24373 (__ieee754_expf): Renamed to ...
24374 (__expf): This.
24375 (__GI___expf): This.
24376 (__ieee754_expf): Add strong_alias.
24377 (__expf_finite): Likewise.
24378 (__expf): New.
24379 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24380
24381 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24382
24383 [BZ #22332]
24384 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24385 unescaping.
24386
24387 2017-10-21 Florian Weimer <fweimer@redhat.com>
24388
24389 * posix/Makefile (tests): Add tst-glob-tilde.
24390 (tests-special): Add tst-glob-tilde-mem.out
24391 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24392 (tst-glob-tilde-mem.out): Add mtrace check.
24393 * posix/tst-glob-tilde.c: New file.
24394
24395 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24396
24397 * bits/floatn-common.h: New file.
24398 * math/Makefile (headers): Add bits/floatn-common.h.
24399 * bits/floatn.h: Include <bits/floatn-common.h>.
24400 * sysdeps/ia64/bits/floatn.h: Likewise.
24401 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24402 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24403 * sysdeps/powerpc/bits/floatn.h: Likewise.
24404 * sysdeps/x86/bits/floatn.h: Likewise.
24405
24406 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24407
24408 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24409 indicates whether compiler emits an warning for alias for
24410 functions with incompatible types.
24411
24412 [BZ #22273]
24413 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24414 the auxiliary process is terminated by a signal before calling _exit
24415 or execve.
24416
24417 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24418
24419 [BZ #21265]
24420 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24421 New.
24422 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24423 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24424 and bit_arch_XSAVEC_Usable if needed.
24425 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24426 and bit_arch_Use_dl_runtime_resolve_opt.
24427 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24428 Removed.
24429 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24430 (bit_arch_Prefer_No_AVX512): Updated.
24431 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24432 (bit_arch_XSAVEC_Usable): New.
24433 (STATE_SAVE_OFFSET): Likewise.
24434 (STATE_SAVE_MASK): Likewise.
24435 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24436 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24437 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24438 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24439 (index_arch_XSAVEC_Usable): New.
24440 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24441 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24442 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24443 is enabled.
24444 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24445 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24446 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24447 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24448 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24449 _dl_runtime_resolve_xsavec.
24450 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24451 Removed.
24452 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24453 instead of VEC_SIZE.
24454 (REGISTER_SAVE_BND0): Removed.
24455 (REGISTER_SAVE_BND1): Likewise.
24456 (REGISTER_SAVE_BND3): Likewise.
24457 (REGISTER_SAVE_RAX): Always defined to 0.
24458 (VMOV): Removed.
24459 (_dl_runtime_resolve_avx): Likewise.
24460 (_dl_runtime_resolve_avx_slow): Likewise.
24461 (_dl_runtime_resolve_avx_opt): Likewise.
24462 (_dl_runtime_resolve_avx512): Likewise.
24463 (_dl_runtime_resolve_avx512_opt): Likewise.
24464 (_dl_runtime_resolve_sse): Likewise.
24465 (_dl_runtime_resolve_sse_vex): Likewise.
24466 (USE_FXSAVE): New.
24467 (_dl_runtime_resolve_fxsave): Likewise.
24468 (USE_XSAVE): Likewise.
24469 (_dl_runtime_resolve_xsave): Likewise.
24470 (USE_XSAVEC): Likewise.
24471 (_dl_runtime_resolve_xsavec): Likewise.
24472 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24473 Removed.
24474 (_dl_runtime_resolve_avx512_opt): Likewise.
24475 (_dl_runtime_resolve_avx): Likewise.
24476 (_dl_runtime_resolve_avx_opt): Likewise.
24477 (_dl_runtime_resolve_sse): Likewise.
24478 (_dl_runtime_resolve_sse_vex): Likewise.
24479 (_dl_runtime_resolve_fxsave): New.
24480 (_dl_runtime_resolve_xsave): Likewise.
24481 (_dl_runtime_resolve_xsavec): Likewise.
24482
24483 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24484
24485 [BZ #22320]
24486 CVE-2017-15670
24487 * posix/glob.c (__glob): Fix one-byte overflow.
24488
24489 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24490
24491 * malloc/malloc.c (sysdep-cancel.h): Add include.
24492
24493 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24494
24495 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24496
24497 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24498
24499 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24500 (tests): Remove $(objpfx)ga_test depdendency.
24501 * resolv/ga_test.c: Remove file.
24502
24503 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24504
24505 [BZ #18812]
24506 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24507 * localedata/locales/kab_DZ: New file.
24508
24509 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24510
24511 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24512 _dl_relocate_static_pie instead of _dl_start to compute load
24513 address in static PIE.
24514
24515 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24516
24517 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24518
24519 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24520
24521 [BZ #13605]
24522 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24523 * localedata/locales/shn_MM: New file.
24524
24525 2017-10-20 Florian Weimer <fweimer@redhat.com>
24526
24527 [BZ #22321]
24528 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24529 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24530 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24531 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24532 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24533 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24534
24535 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24536
24537 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24538
24539 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24540
24541 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24542
24543 [BZ #22322]
24544 * sysdeps/mips/bits/long-double.h: Move to ....
24545 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24546
24547 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24548
24549 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24550
24551 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24552 H.J. Lu <hongjiu.lu@intel.com>
24553
24554 [BZ #22299]
24555 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24556 GLRO(dl_platform) to NULL.
24557 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24558 (modules-names): Add tst-platformmod-1 and
24559 x86_64/tst-platformmod-2.
24560 (CFLAGS-tst-platform-1.c): New.
24561 (CFLAGS-tst-platformmod-1.c): Likewise.
24562 (CFLAGS-tst-platformmod-2.c): Likewise.
24563 (LDFLAGS-tst-platformmod-2.so): Likewise.
24564 ($(objpfx)tst-platform-1): Likewise.
24565 ($(objpfx)tst-platform-1.out): Likewise.
24566 (tst-platform-1-ENV): Likewise.
24567 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24568 * sysdeps/x86_64/tst-platform-1.c: New file.
24569 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24570 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24571
24572 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24573
24574 [BZ #13994]
24575 * locale/iso-639.def: Add Karbi.
24576 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24577 * localedata/locales/mjw_IN: New file.
24578
24579 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24580
24581 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24582 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24583 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24584 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24585 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24586 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24587 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24588 <bits/floatn.h>.
24589 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24590 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24591 * manual/math.texi (Mathematics): Document additional architecture
24592 support for _Float128.
24593 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24594 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24595 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24596 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24597 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24598 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24599 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24600 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24601 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24602 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24603 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24604 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24605 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24606 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24607 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24608
24609 2017-10-18 Renlin Li <renlin.li@arm.com>
24610
24611 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24612 _DYNAMIC symbol to calculate load address.
24613
24614 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24615
24616 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24617 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24618 summary bits.
24619 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24620 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24621
24622 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24623
24624 [BZ #16777]
24625 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24626 and improve readability by using more ASCII.
24627 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24628 and improve readability by using more ASCII.
24629
24630 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24631
24632 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24633 not all targets support atomics on bool.
24634
24635 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24636
24637 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24638 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24639 __f128.
24640 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24641 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24642 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24643 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24644 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24645 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24646
24647 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24648
24649 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24650 defines.
24651
24652 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24653
24654 [BZ #22159]
24655 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24656 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24657 (do_check_remalloced_chunk): Fix build bug.
24658 (do_check_malloc_state): Add assert that checks arena->top.
24659 (malloc_consolidate): Remove initialization.
24660 (int_mallinfo): Remove call to malloc_consolidate.
24661 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24662
24663 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24664
24665 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24666 (have_fastchunks): Remove.
24667 (clear_fastchunks): Remove.
24668 (set_fastchunks): Remove.
24669 (malloc_state): Add have_fastchunks.
24670 (malloc_init_state): Use have_fastchunks.
24671 (do_check_malloc_state): Remove incorrect invariant checks.
24672 (_int_malloc): Use have_fastchunks.
24673 (_int_free): Likewise.
24674 (malloc_consolidate): Likewise.
24675
24676 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24677
24678 * malloc/malloc.c (tcache_put): Inline.
24679 (tcache_get): Inline.
24680
24681 2017-10-17 Jordi Mallach <jordi@gnu.org>
24682
24683 Aurelien Jarno <aurelien@aurel32.net>
24684 [BZ #2522]
24685 * localedata/locales/ca_ES@valencia: New file.
24686 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24687
24688 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24689
24690 [BZ #22296]
24691 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24692 < 6.x
24693
24694 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24695
24696 * scripts/build-many-glibcs.py (Context.add_all_configs):
24697 Add arm-linux-gnueabihf multiarch extra_glibcs.
24698
24699 * sysdeps/generic/ifunc-init.h: New file.
24700 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24701
24702 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24703
24704 [BZ #22019]
24705 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24706 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24707 * stdlib/tst-strfmon_l.c: adapt test case.
24708
24709 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24710
24711 * sysdeps/generic/float128-abi.h: New file.
24712 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24713 non-__prefixed symbols to ....
24714 * math/Versions: ... here. Include <float128-abi.h>.
24715 * stdlib/Versions ... and here. Include <float128-abi.h>
24716
24717 2017-10-16 Florian Weimer <fweimer@redhat.com>
24718
24719 * version.h (VERSION): Switch to ".9000" as the development
24720 version suffix.
24721
24722 2017-10-16 Florian Weimer <fweimer@redhat.com>
24723
24724 [BZ #22050]
24725 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24726 compat_symbol_reference to access non-default version.
24727
24728 2017-10-16 Florian Weimer <fweimer@redhat.com>
24729
24730 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24731
24732 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24733
24734 * include/shlib-compat.h (compat_symbol_reference): Update
24735 comment.
24736
24737 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24738
24739 * math/Makefile (test-types): Add
24740 $(type-float128-$(float128-alias-fcts)).
24741 * math/test-float128.h (TYPE_STR): Define conditional on
24742 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24743 (ULP_IDX): Likewise.
24744 (ULP_I_IDX): Likewise.
24745
24746 * stdlib/strtold.c: Include <bits/floatn.h>
24747 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24748 and later undefine as macro. Define as weak alias if
24749 [!USE_WIDE_CHAR].
24750 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24751 and later undefine as macro. Define as weak alias if
24752 [USE_WIDE_CHAR].
24753 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24754 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24755 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24756 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24757 Define and later undefine as macro. Define as weak alias if
24758 [USE_WIDE_CHAR].
24759 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24760 <bits/floatn.h>.
24761 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24762 Define and later undefine as macro. Define as weak alias if
24763 [!USE_WIDE_CHAR].
24764 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24765 Define and later undefine as macro. Define as weak alias if
24766 [USE_WIDE_CHAR].
24767
24768 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24769
24770 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24771 record_verbose messages.
24772
24773 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24774
24775 [BZ #22052]
24776 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24777 to silence -O3 -Wall warning with GCC 7.
24778
24779 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24780
24781 * Makeconfig (+link-static-before-libc): Use the first of
24782 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24783 * gmon/Makefile (tests): Add tst-gmon-static.
24784 (tests-static): Likewise.
24785 (CFLAGS-tst-gmon-static.c): New.
24786 (CRT-tst-gmon-static): Likewise.
24787 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24788 (tst-gmon-static-ENV): Likewise.
24789 (tests-special): Likewise.
24790 ($(objpfx)tst-gmon-static.out): Likewise.
24791 (clean-tst-gmon-static-data): Likewise.
24792 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24793 * gmon/tst-gmon-static-gprof.sh: New file.
24794 * gmon/tst-gmon-static.c: Likewise.
24795
24796 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24797
24798 [BZ #22295]
24799 * locale/programs/linereader.c (get_string): Don't warn on
24800 non-symbolic character.
24801
24802 [BZ #22294]
24803 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24804 int_curr_symbol.
24805
24806 [BZ #22292]
24807 * locale/programs/record-status.h: New file
24808 * locale/programs/locale.c: Add comment.
24809 * locale/programs/charmap-dir.c: Don't include error.h.
24810 (charmap_opendir): Use record_error.
24811 * locale/programs/charmap.c: Don't include error.h.
24812 (charmap_read): Use record_error, and record_warning.
24813 (parse_charmap): Likewise.
24814 * locale/programs/ld-address.c: Don't include error.h.
24815 (address_finish): Use record_error, and record_warning.
24816 * locale/programs/ld-collate.c: Don't include error.h.
24817 (collate_finish): Use record_error, and record_error_at_line.
24818 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24819 (ctype_class_new): Likewise.
24820 (ctype_map_new): Likewise.
24821 (set_one_default): Likewise.
24822 (set_class_defaults): Likewise.
24823 (translit_flatten): Likewise.
24824 (allocate_arrays): Use record_error, and record_verbose.
24825 * locale/programs/ld-identification.c: Don't include error.h.
24826 (indentation_finish): Use record_error and record_warning.
24827 * locale/programs/ld-measurement.c: Don't include error.h.
24828 (measurement_finish): Use record_error.
24829 * locale/programs/ld-messages.c
24830 (message_finish): Likewise.
24831 * locale/programs/ld-monetary.c
24832 (monetary_finish): Likewise.
24833 * locale/programs/ld-name.c (name_finish): Use record_error
24834 and record_warning.
24835 * locale/programs/ld-numeric.c
24836 (numeric_finish): Use record_error.
24837 * locale/programs/ld-paper.c: Don't include error.h.
24838 (paper_finish): Use record_error.
24839 * locale/programs/ld-telephone.c: Don't include error.h.
24840 (telephone_finish): Use record_error.
24841 * locale/programs/ld-time.c (time_finish): Likewise.
24842 * locale/programs/linereader.h (lr_error): Make inline func.
24843 * locale/programs/localedef.c: Define recorded_warning_count,
24844 and recorded_error_count.
24845 (main): Use record_error. Use recorded_error_count and
24846 recorded_warning_count to issue correct error returns.
24847 (add_to_readlist): Use record_error.
24848 (find_locale): Likewise.
24849 (load_locale): Likewise.
24850 * locale/programs/localedef.h: Remove be_quiet
24851 and WITH_CUR_LOCALE.
24852 * locale/programs/locarchive.c (compare_from_file): Use
24853 record_error.
24854 * locale/programs/locfile.c (write_locale_data): Use
24855 record_error.
24856 * locale/programs/repertoire.c: Dont include error.h.
24857 (repertoire_complain): Use record_error.
24858 * localedata/tst-fmon.sh: Expect failures from localedef.
24859 * localedata/tst-locale.sh: Likewise.
24860 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24861
24862 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24863 (REPORTS): Likewise.
24864 (check): Likewise.
24865 (i18n): Rename to...
24866 (i18n_ctype): ...this.
24867 (i18n-report): Rename to...
24868 (i18n_ctype-report): ...this.
24869 * localedata/locales/i18n_ctype: Regenerate.
24870 * localedata/locales/i18n: copy i18n_ctype.
24871
24872 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24873
24874 * stdlib/strfroml.c: Include <bits/floatn.h>.
24875 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24876 Define before include of <stdlib.h> and undefine afterwards, then
24877 define as weak alias.
24878
24879 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24880 Undefine and restore default definition. Use
24881 libm_alias_ldouble_other.
24882
24883 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24884
24885 [BZ #22153]
24886 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24887 in coredumps.
24888
24889 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24890
24891 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24892 Assign sym_map to be map for local symbols, as TLS relocations
24893 use sym_map to determine whether the symbol is defined and to
24894 extract the TLS information.
24895 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24896 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24897
24898 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24899
24900 [BZ #22189]
24901 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24902 (math_force_eval): Add powerpc version.
24903
24904 [BZ #22142]
24905 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24906 -DBL_MAX.
24907 (do_test): Likewise.
24908 * stdio-common/tst-printf.sh: Likewise.
24909 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24910 ifdef clause in order to set the carry bit right. Replace r0 by
24911 0 without changing the behavior.
24912
24913 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24914
24915 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24916 <libm-alias-ldouble.h>.
24917 (fabsl): Define using libm_alias_ldouble.
24918 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24919 <libm-alias-ldouble.h>.
24920 (fabsl): Define using libm_alias_ldouble.
24921
24922 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24923 Remove conditional code.
24924
24925 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24926 Rename to __clog10_internal_l.
24927 (__clog10_internal_l): Define aliases using
24928 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24929 with __clog10.
24930
24931 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24932
24933 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24934 * benchtests/sincosf-inputs: New file.
24935 * benchtests/cosf-inputs: New file.
24936 * benchtests/sinf-inputs: New file.
24937
24938 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24939
24940 * posix/tst-spawn.c (do_test): Wait for both children.
24941
24942 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24943
24944 [BZ #22284]
24945 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24946 tests-pie): Add tst-gmon-pie.
24947 (CFLAGS-tst-gmon-pie.c): New.
24948 (CRT-tst-gmon-pie): Likewise.
24949 (tst-gmon-pie-ENV): Likewise.
24950 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24951 ($(objpfx)tst-gmon-pie.out): Likewise.
24952 (clean-tst-gmon-pie-data): Likewise.
24953 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24954 * gmon/gmon.c [PIC]: Include <link.h>.
24955 [PIC] (callback): New function.
24956 (write_hist): Add an argument for load address. Subtract load
24957 address from PCs.
24958 (write_call_graph): Likewise.
24959 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24960 it to write_hist and write_call_graph.
24961 * gmon/tst-gmon-pie.c: New file.
24962
24963 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24964
24965 * math/Makefile (test-types-basic): New variable.
24966 (test-types): Likewise.
24967 (libm-test-support): Use $(test-types) instead of $(types).
24968 (libm-tests-base-normal): Likewise.
24969 (libm-tests-base-finite): Likewise.
24970 (libm-tests-base-inline): Likewise.
24971 (generated): Likewise.
24972 ($(objpfx)libm-test-support-$(t).c): Likewise.
24973 (libm-tests-for-type iterator): Likewise.
24974 (libm-test-support iterator): Likewise.
24975 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24976 (ulp_idx): Use ULP_IDX.
24977 * math/test-ldouble.h: Include <float.h>.
24978 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24979 (ULP_IDX): New macro.
24980 (ULP_I_IDX): Likewise.
24981 * math/test-double.h (ULP_IDX): Likewise.
24982 (ULP_I_IDX): Likewise.
24983 * math/test-float.h (ULP_IDX): Likewise.
24984 (ULP_I_IDX): Likewise.
24985 * math/test-float128.h (ULP_IDX): Likewise.
24986 (ULP_I_IDX): Likewise.
24987
24988 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24989
24990 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24991 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24992 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24993 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24994 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24995 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24996 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24997 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24998 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24999 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25000 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25001 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25002 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25003 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25004 (SINGLE_THREAD_BY_GLOBAL): Define.
25005 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25006 Likewise.
25007 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25008 Likewise.
25009 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25010 Likewise.
25011 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25012 Likewise.
25013 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25014 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25016 Likewise.
25017
25018 2017-10-11 Andreas Schwab <schwab@suse.de>
25019
25020 * nis/Makefile (aux): Remove.
25021 * nscd/Makefile (aux): Add nscd_hash.
25022 (nscd-modules): Likewise.
25023 ($(objpfx)nscd): Don't depend on libnsl.
25024 * nscd/nscd_hash.c: New file.
25025 * nscd/nscd_hash.h: Likewise.
25026 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25027 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25028 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25029 instead of <nis/rpcsvc/nis.h>.
25030 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25031
25032 2017-10-11 Florian Weimer <fweimer@redhat.com>
25033
25034 [BZ #22078]
25035 Avoid large NSS buffers with many addresses, aliases.
25036 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25037 using dynarrays and struct alloc_buffer.
25038 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25039 (tst-nss-files-hosts-multi): Link with -ldl.
25040 * nss/tst-nss-files-hosts-multi.c: New file.
25041
25042 2017-10-11 Florian Weimer <fweimer@redhat.com>
25043
25044 [BZ #18023]
25045 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25046 scratch_buffer. Eliminate gotos.
25047
25048 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25049
25050 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25051 libm_alias_ldouble_other.
25052 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25053 undefine and redefine.
25054 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25055 (exp10l): Do not define here.
25056 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25057 (weak_alias): Undefine and redefine.
25058 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25059 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25060 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25061 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25062
25063 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25064 [!__fma] (fma): Define using libm_alias_double.
25065 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25066 [!__fmaf] (fmaf): Define using libm_alias_float.
25067 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25068 (fmal): Define using libm_alias_ldouble.
25069
25070 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25071
25072 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25073 New macro.
25074 (libm_alias_double_other): Likewise.
25075 (libm_alias_double_r): Use libm_alias_double_other_r.
25076 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25077 New macro.
25078 (libm_alias_float_other): Likewise.
25079 (libm_alias_float_r): Use libm_alias_float_other_r.
25080 * sysdeps/generic/libm-alias-float128.h
25081 (libm_alias_float128_other_r): New macro.
25082 (libm_alias_float128_other): Likewise.
25083 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25084 * sysdeps/generic/libm-alias-ldouble.h
25085 (libm_alias_ldouble_other_r): New macro.
25086 (libm_alias_ldouble_other): Likewise.
25087 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25088 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25089 (libm_alias_double_other_r): New macro.
25090 (libm_alias_double_other): Likewise.
25091 (libm_alias_double_r): Use libm_alias_double_other_r.
25092 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25093 (libm_alias_ldouble_other_r): New macro.
25094 (libm_alias_ldouble_other): Likewise.
25095 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25096 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25097 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25098 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25099 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25100 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25101 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25102 * math/w_exp2f.c: Use libm_alias_float_other.
25103 * math/w_expf.c: Likewise.
25104 * math/w_log2f.c: Likewise.
25105 * math/w_logf.c: Likewise.
25106 * math/w_powf.c: Likewise.
25107 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25108 [!__exp2f]: Use libm_alias_float_other.
25109 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25110 [!__expf]: Use libm_alias_float_other.
25111 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25112 [!__log2f]: Use libm_alias_float_other.
25113 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25114 [!__logf]: Use libm_alias_float_other.
25115 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25116 [!__powf]: Use libm_alias_float_other.
25117
25118 2017-10-10 Florian Weimer <fweimer@redhat.com>
25119
25120 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25121 function.
25122 (_nss_files_gethostbyname3_r): Call it.
25123
25124 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25125
25126 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25127 error. Remove default definition of declare_mgen_alias.
25128 [!declare_mgen_alias_r]: Likewise.
25129 * sysdeps/generic/math-type-macros-double.h
25130 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25131 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25132 (declare_mgen_alias_r): Likewise.
25133 * sysdeps/generic/math-type-macros-float128.h
25134 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25135 * sysdeps/generic/math-type-macros-ldouble.h
25136 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25137 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25138 macro.
25139 (declare_mgen_alias_r_s): Likewise.
25140 (declare_mgen_alias_r): Likewise.
25141 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25142 (lgamma_r): Define using libm_alias_double_r.
25143 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25144 (lgammaf_r): Define using libm_alias_float_r.
25145 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25146 (lgammal_r): Define using libm_alias_ldouble_r.
25147 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25148 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25149
25150 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25151
25152 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25153 extern declaration.
25154
25155 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25156
25157 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25158
25159 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25160
25161 [BZ #21326]
25162 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25163 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25164 * math/Makefile (test-math-cxx11): New test.
25165 * math/test-math-cxx11.cc: New file.
25166
25167 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25168
25169 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25170
25171 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25172 call to allocate the slave pty file descriptor.
25173
25174 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25175
25176 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25177 [!__fma] (fma): Define using libm_alias_double.
25178 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25179 [!__fma] (fma): Define using libm_alias_double.
25180
25181 * sysdeps/ieee754/float128/float128_private.h: Include
25182 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25183 (libm_alias_ldouble_r): Undefine and redefine.
25184 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25185 <libm-alias-ldouble.h>.
25186 (asinhl): Define using libm_alias_ldouble.
25187 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25188 <libm-alias-ldouble.h>.
25189 (atanl): Define using libm_alias_ldouble.
25190 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25191 <libm-alias-ldouble.h>.
25192 (cbrtl): Define using libm_alias_ldouble.
25193 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25194 <libm-alias-ldouble.h>.
25195 (ceill): Define using libm_alias_ldouble.
25196 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25197 <libm-alias-ldouble.h>.
25198 (copysignl): Define using libm_alias_ldouble.
25199 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25200 <libm-alias-ldouble.h>.
25201 (cosl): Define using libm_alias_ldouble.
25202 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25203 <libm-alias-ldouble.h>.
25204 (erfl): Define using libm_alias_ldouble.
25205 (erfcl): Likewise.
25206 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25207 <libm-alias-ldouble.h>.
25208 (expm1l): Define using libm_alias_ldouble.
25209 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25210 <libm-alias-ldouble.h>.
25211 (fabsl): Define using libm_alias_ldouble.
25212 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25213 <libm-alias-ldouble.h>.
25214 (floorl): Define using libm_alias_ldouble.
25215 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25216 <libm-alias-ldouble.h>.
25217 (fmal): Define using libm_alias_ldouble.
25218 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25219 <libm-alias-ldouble.h>.
25220 (frexpl): Define using libm_alias_ldouble.
25221 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25222 libm_alias_ldouble.
25223 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25224 <libm-alias-ldouble.h>.
25225 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25226 libm_alias_ldouble.
25227 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25228 <libm-alias-ldouble.h>.
25229 (getpayloadl): Define using libm_alias_ldouble.
25230 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25231 <libm-alias-ldouble.h>.
25232 (llrintl): Define using libm_alias_ldouble.
25233 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25234 <libm-alias-ldouble.h>.
25235 (llroundl): Define using libm_alias_ldouble.
25236 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25237 <libm-alias-ldouble.h>.
25238 (logbl): Define using libm_alias_ldouble.
25239 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25240 <libm-alias-ldouble.h>.
25241 (lrintl): Define using libm_alias_ldouble.
25242 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25243 <libm-alias-ldouble.h>.
25244 (lroundl): Define using libm_alias_ldouble.
25245 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25246 <libm-alias-ldouble.h>.
25247 (modfl): Define using libm_alias_ldouble.
25248 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25249 <libm-alias-ldouble.h>.
25250 (nearbyintl): Define using libm_alias_ldouble.
25251 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25252 <libm-alias-ldouble.h>.
25253 (nextafterl): Define using libm_alias_ldouble.
25254 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25255 <libm-alias-ldouble.h>.
25256 (nextupl): Define using libm_alias_ldouble.
25257 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25258 <libm-alias-ldouble.h>.
25259 (remquol): Define using libm_alias_ldouble.
25260 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25261 <libm-alias-ldouble.h>.
25262 (rintl): Define using libm_alias_ldouble.
25263 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25264 <libm-alias-ldouble.h>.
25265 (roundevenl): Define using libm_alias_ldouble.
25266 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25267 <libm-alias-ldouble.h>.
25268 (roundl): Define using libm_alias_ldouble.
25269 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25270 using libm_alias_ldouble.
25271 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25272 <libm-alias-ldouble.h>.
25273 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25274 Define using libm_alias_ldouble.
25275 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25276 <libm-alias-ldouble.h>.
25277 (sincosl): Define using libm_alias_ldouble.
25278 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25279 <libm-alias-ldouble.h>.
25280 (sinl): Define using libm_alias_ldouble.
25281 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25282 <libm-alias-ldouble.h>.
25283 (tanhl): Define using libm_alias_ldouble.
25284 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25285 <libm-alias-ldouble.h>.
25286 (tanl): Define using libm_alias_ldouble.
25287 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25288 <libm-alias-ldouble.h>.
25289 (totalorderl): Define using libm_alias_ldouble.
25290 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25291 <libm-alias-ldouble.h>.
25292 (totalordermagl): Define using libm_alias_ldouble.
25293 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25294 <libm-alias-ldouble.h>.
25295 (truncl): Define using libm_alias_ldouble.
25296 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25297 libm_alias_ldouble.
25298 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25299 libm_alias_ldouble.
25300 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25301 <libm-alias-ldouble.h>.
25302 (weak_alias): Do not undefine and redefine.
25303 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25304 (copysignl): Define with long_double_symbol only if [IS_IN
25305 (libc)].
25306 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25307 <libm-alias-ldouble.h>.
25308 (weak_alias): Do not undefine and redefine.
25309 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25310 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25311 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25312 <libm-alias-ldouble.h>.
25313 (weak_alias): Do not undefine and redefine.
25314 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25315 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25316 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25317 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25318 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25319 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25320 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25321 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25322 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25323 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25324 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25325 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25326 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25327 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25328 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25329 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25330 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25331 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25332 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25333 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25334 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25335 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25336 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25337 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25338 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25339 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25340
25341 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25342
25343 [BZ #22111]
25344 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25345 (tcache_thread_freeres): Set tcache_shutting_down before
25346 freeing the tcache.
25347 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25348 * malloc/tst-malloc-tcache-leak.c: New file.
25349
25350 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25351
25352 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25353 back to powerpc32 file.
25354 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25355 (memrchr): Add __memrchr_power8 to ifunc list.
25356 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25357 extra bytes for unaligned inputs.
25358
25359 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25360
25361 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25362 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25363 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25364 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25365 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25366
25367 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25368
25369 * sysdeps/arm/libm-test-ulps: Update.
25370
25371 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25372 <libm-alias-ldouble.h>.
25373 (asinhl): Define using libm_alias_ldouble.
25374 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25375 <libm-alias-ldouble.h>.
25376 (cbrtl): Define using libm_alias_ldouble.
25377 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25378 <libm-alias-ldouble.h>.
25379 (copysignl): Define using libm_alias_ldouble.
25380 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25381 <libm-alias-ldouble.h>.
25382 (cosl): Define using libm_alias_ldouble.
25383 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25384 <libm-alias-ldouble.h>.
25385 (erfl): Define using libm_alias_ldouble.
25386 (erfcl): Likewise.
25387 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25388 <libm-alias-ldouble.h>.
25389 (fmal): Define using libm_alias_ldouble.
25390 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25391 <libm-alias-ldouble.h>.
25392 (frexpl): Define using libm_alias_ldouble.
25393 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25394 libm_alias_ldouble.
25395 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25396 <libm-alias-ldouble.h>.
25397 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25398 libm_alias_ldouble.
25399 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25400 <libm-alias-ldouble.h>.
25401 (getpayloadl): Define using libm_alias_ldouble.
25402 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25403 <libm-alias-ldouble.h>.
25404 (llrintl): Define using libm_alias_ldouble.
25405 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25406 <libm-alias-ldouble.h>.
25407 (llroundl): Define using libm_alias_ldouble.
25408 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25409 <libm-alias-ldouble.h>.
25410 (lrintl): Define using libm_alias_ldouble.
25411 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25412 <libm-alias-ldouble.h>.
25413 (lroundl): Define using libm_alias_ldouble.
25414 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25415 <libm-alias-ldouble.h>.
25416 (modfl): Define using libm_alias_ldouble.
25417 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25418 <libm-alias-ldouble.h>.
25419 (nextupl): Define using libm_alias_ldouble.
25420 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25421 <libm-alias-ldouble.h>.
25422 (remquol): Define using libm_alias_ldouble.
25423 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25424 <libm-alias-ldouble.h>.
25425 (roundevenl): Define using libm_alias_ldouble.
25426 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25427 <libm-alias-ldouble.h>.
25428 (roundl): Define using libm_alias_ldouble.
25429 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25430 using libm_alias_ldouble.
25431 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25432 <libm-alias-ldouble.h>.
25433 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25434 <libm-alias-ldouble.h>.
25435 (setpayloadsigl): Define using libm_alias_ldouble.
25436 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25437 <libm-alias-ldouble.h>.
25438 (sincosl): Define using libm_alias_ldouble.
25439 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25440 <libm-alias-ldouble.h>.
25441 (sinl): Define using libm_alias_ldouble.
25442 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25443 <libm-alias-ldouble.h>.
25444 (tanhl): Define using libm_alias_ldouble.
25445 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25446 <libm-alias-ldouble.h>.
25447 (tanl): Define using libm_alias_ldouble.
25448 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25449 <libm-alias-ldouble.h>.
25450 (totalorderl): Define using libm_alias_ldouble.
25451 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25452 <libm-alias-ldouble.h>.
25453 (totalordermagl): Define using libm_alias_ldouble.
25454 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25455 libm_alias_ldouble.
25456 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25457 libm_alias_ldouble.
25458
25459 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25460
25461 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25462 memmove_falkor.
25463 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25464 (__libc_ifunc_impl_list): Likewise.
25465 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25466 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25467
25468 * benchtests/bench-memmove-walk.c: New file.
25469 * benchtests/Makefile (string-benchset): Add it.
25470
25471 * benchtests/bench-memset-walk.c: New file.
25472 * benchtests/Makefile (string-benchset): Add it.
25473
25474 * benchtests/bench-memcpy-walk.c: New file.
25475 * benchtests/Makefile (string-benchset): Add it.
25476
25477 2017-10-05 Florian Weimer <fweimer@redhat.com>
25478
25479 nscd: Eliminate compilation time dependency in the build output.
25480 * nscd/nscd_stat.c (STATDATA_VERSION)
25481 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25482 (STATDATA_VERSION_FULL): New macro definitions.
25483 (compilation): Remove.
25484 (struct statdata): Adjust version member.
25485 (send_stats): Set version from STATDATA_VERSION_FULL.
25486 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25487
25488 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25489
25490 * configure.ac (--enable-add-ons): Remove option.
25491 (machine): Do not mention add-ons in comment.
25492 (LIBC_PRECONFIGURE): Likewise.
25493 (add_ons): Remove variable and sanity checks and logic to locate
25494 add-ons.
25495 (add_ons_automatic): Remove variable.
25496 (configured_add_ons): Likewise.
25497 (add_ons_sfx): Likewise.
25498 (add_ons_pfx): Likewise.
25499 (add_on_subdirs): Likewise.
25500 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25501 consideration of add-ons in Implies handling.
25502 (sysdeps_add_ons): Likewise.
25503 * configure: Regenerated.
25504 * libidn/configure.ac: Remove.
25505 * libidn/configure: Likewise.
25506 * sysdeps/unix/inet/configure.ac: New file.
25507 * sysdeps/unix/inet/configure: New generated file.
25508 * sysdeps/unix/inet/Subdirs: Add libidn.
25509 * Makeconfig (sysdeps-srcdirs): Remove variable.
25510 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25511 ($(common-objpfx)config.status): Do not depend on add-on files.
25512 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25513 comment.
25514 (all-subdirs): Do not include $(add-on-subdirs).
25515 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25516 * config.make.in (add-ons): Remove variable.
25517 (add-on-subdirs): Likewise.
25518 (sysdeps-add-ons): Likewise.
25519 * manual/Makefile (add-chapters): Remove.
25520 ($(objpfx)texis): Do not depend on $(add-chapters).
25521 (nonexamples): Do not handle $(add-chapters).
25522 (examples): Do not handle $(add-ons).
25523 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25524 libc-texinfo.sh.
25525 * manual/install.texi (Installation): Do not mention add-ons.
25526 (--enable-add-ons): Do not document configure option.
25527 * INSTALL: Regenerated.
25528 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25529 * manual/maint.texi (Hierarchy Conventions): Do not mention
25530 add-ons.
25531 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25532 --enable-add-ons.
25533 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25534 add-ons.
25535 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25536 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25537
25538 2017-10-05 Andreas Schwab <schwab@suse.de>
25539
25540 [BZ #15142]
25541 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25542 (_IO_flush_all_lockp): Always lock list_all_lock.
25543 (_IO_flush_all_linebuffered): Likewise.
25544 (_IO_unbuffer_all): Likewise.
25545
25546 2017-10-05 Florian Weimer <fweimer@redhat.com>
25547
25548 [BZ #15436]
25549 Do not flush stdio streams on abort.
25550 * stdlib/abort.c (fflush): Remove macro definition.
25551 (abort): Remove stages related to stdio flushing.
25552
25553 2017-10-05 Florian Weimer <fweimer@redhat.com>
25554
25555 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25556
25557 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25558
25559 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25560
25561 2017-10-05 Florian Weimer <fweimer@redhat.com>
25562
25563 * support/support_format_hostent.c (support_format_hostent): Add
25564 more error information for NETDB_INTERNAL.
25565
25566 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25567
25568 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25569 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25570 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25571 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25572 AC_DEFINE if multi-arch is enabled.
25573 * sysdeps/i386/configure: Regenerated.
25574
25575 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25576
25577 * Makeconfig (+link-static-before-libc): Use
25578 $(DEFAULT-LDFLAGS-$(@F)).
25579 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25580 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25581 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25582
25583 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25584
25585 * elf/Makefile (tests): Add tst-main1.
25586 (modules-names): Add tst-main1mod.
25587 ($(objpfx)tst-main1): New.
25588 (CRT-tst-main1): Likewise.
25589 (LDFLAGS-tst-main1): Likewise.
25590 (LDLIBS-tst-main1): Likewise.
25591 (tst-main1mod.so-no-z-defs): Likewise.
25592 * elf/tst-main1.c: New file.
25593 * elf/tst-main1mod.c: Likewise.
25594
25595 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25596
25597 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25598
25599 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25600
25601 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25602 (fma): Define using libm_alias_double.
25603 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25604 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25605 <math_ldbl_opt.h>.
25606 (fmal): Do not define as compat symbol here.
25607 * sysdeps/alpha/fpu/s_fma.c: New file.
25608
25609 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25610
25611 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25612
25613 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25614
25615 [BZ #22229]
25616 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25617 <math_ldbl_opt.h>
25618 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25619 and libc.
25620 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25621 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25622 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25623 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25625 Include <math_ldbl_opt.h>
25626 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25627 and libc.
25628 (compat_symbol): Undefine and redefine.
25629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25630 <math_ldbl_opt.h>
25631 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25632 (compat_symbol): Undefine and redefine.
25633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25634 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25635 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25636 GLIBC_2_1 for libm.
25637 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25638 GLIBC_2.0 copysignl symbol.
25639 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25640 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25641
25642 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25643
25644 2017-10-04 Florian Weimer <fweimer@redhat.com>
25645
25646 * scripts/check-local-headers.sh: Ignore nspr4 header file
25647 directory in addition to nspr.
25648
25649 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25650
25651 [BZ #17956]
25652 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25653 * configure: Regenerate.
25654 * crypt/Makefile (nss-cpp-flags): New variable.
25655 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25656 (CPPFLAGS-md5-crypt.c): Use it.
25657 * scripts/check-local-headers.sh: Ignore nspr header file
25658 directory.
25659
25660 2017-10-04 Andreas Schwab <schwab@suse.de>
25661
25662 * nis/Makefile (services): Remove compat.
25663 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25664 ($(objpfx)libnss_compat.so): Remove rule.
25665 * nis/Versions (libnss_compat): Remove.
25666 * nss/Makefile (services): Add compat.
25667 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25668 * nss/Versions (libnss_compat): Define.
25669 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25670 Don't include <rpc/types.h>. Replace bool_t by bool.
25671 * nss/nss_compat/compat-initgroups.c: Likewise.
25672 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25673 instead of <rpcsrv/ypclnt.h>.
25674 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25675 yp_get_default_domain.
25676 * nss/nss_compat/compat-pwd.c: Likewise.
25677 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25678 yp_get_default_domain.
25679 * nss/nss_compat/nisdomain.c: New file.
25680 * nss/nss_compat/nisdomain.h: Likewise.
25681
25682 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25683
25684 [BZ #22244]
25685 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25686 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25687
25688 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25689
25690 [BZ #22243]
25691 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25692 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25693
25694 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25695
25696 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25697 "movl main@GOTOFF(%ebx), %eax".
25698
25699 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25700
25701 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25702 allow undefined _DYNAMIC in PIE libc.a.
25703 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25704 Likewse.
25705
25706 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25707
25708 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25709 check _DYNAMIC.
25710
25711 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25714 check _DYNAMIC.
25715
25716 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25717
25718 * math/test-math-iscanonical.cc (error): Replace bool with int.
25719
25720 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25721
25722 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25723 (modf): Define using libm_alias_double, only if [!__modf].
25724 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25725 <libm-alias-double.h>.
25726 (modf): Define using libm_alias_double, only if [!__modf].
25727 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25728 compat symbol here.
25729 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25730 (weak_alias): Do not undefine and redefine.
25731 (strong_alias): Likewise.
25732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25733 (weak_alias): Likewise.
25734 (strong_alias): Likewise.
25735
25736 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25737 (logb): Define using libm_alias_double, only if [!__logb].
25738 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25739 <libm-alias-double.h>.
25740 (logb): Define using libm_alias_double, only if [!__logb].
25741 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25742 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25743 (weak_alias): Do not undefine and redefine.
25744 (strong_alias): Likewise.
25745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25746 (weak_alias): Likewise.
25747 (strong_alias): Likewise.
25748
25749 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25750
25751 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25752 Check SHARED instead PIC.
25753
25754 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25755
25756 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25757 [!__fmaf] (fmaf): Define using libm_alias_float.
25758
25759 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25760 (frexp): Define using libm_alias_double.
25761 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25762 <libm-alias-double.h>.
25763 (frexp): Define using libm_alias_double.
25764 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25765 compat symbol here.
25766
25767 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25768
25769 [BZ #22235]
25770 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25771 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25772 (CFLAGS-test-math-iscanonical.cc): New variable.
25773 * math/test-math-iscanonical.cc: New file.
25774 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25775 Provide a C++ implementation based on function overloading,
25776 rather than using __MATH_TG, which uses C-only builtins.
25777 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25778 Likewise.
25779 * sysdeps/powerpc/powerpc64le/Makefile
25780 (CFLAGS-test-math-iscanonical.cc): New variable.
25781
25782 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25783
25784 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25785 (ceil): Define using libm_alias_double.
25786 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25787 (floor): Define using libm_alias_double.
25788 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25789 <libm-alias-double.h>.
25790 (llround): Define using libm_alias_double.
25791 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25792 <libm-alias-double.h>.
25793 (lround): Define using libm_alias_double.
25794 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25795 <libm-alias-double.h>.
25796 (nearbyint): Define using libm_alias_double.
25797 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25798 <libm-alias-double.h>.
25799 (remquo): Define using libm_alias_double.
25800 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25801 (rint): Define using libm_alias_double.
25802 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25803 (round): Define using libm_alias_double.
25804 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25805 (trunc): Define using libm_alias_double.
25806 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25807 <libm-alias-double.h>.
25808 (ceil): Define using libm_alias_double.
25809 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25810 <libm-alias-double.h>.
25811 (floor): Define using libm_alias_double.
25812 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25813 <libm-alias-double.h>.
25814 (llround): Define using libm_alias_double.
25815 [_LP64] (lround): Likewise.
25816 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25817 <libm-alias-double.h>.
25818 [!_LP64] (lround): Define using libm_alias_double.
25819 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25820 <libm-alias-double.h>.
25821 (nearbyint): Define using libm_alias_double.
25822 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25823 <libm-alias-double.h>.
25824 (remquo): Define using libm_alias_double.
25825 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25826 <libm-alias-double.h>.
25827 (rint): Define using libm_alias_double.
25828 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25829 <libm-alias-double.h>.
25830 (round): Define using libm_alias_double.
25831 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25832 <libm-alias-double.h>.
25833 (trunc): Define using libm_alias_double.
25834 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25835 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25836 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25837 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25838 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25839 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25840 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25841 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25842 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25843
25844 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25845
25846 * math/w_remainder.c: New file.
25847 * math/w_remainderf.c: New file.
25848 * math/w_remainderl.c: New file.
25849
25850 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25851
25852 * elf/rtld.c (BOOTSTRAP_MAP): New.
25853 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25854 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25855 Likewise.
25856 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25857 Likewise.
25858 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25859 Likewise.
25860
25861 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25862
25863 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25864 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25865 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25866 rtld_hidden_data_ver): Define to empty.
25867 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25868 __assert_perror_fail): Likewise.
25869 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25870 (__rewinddir): Likewise.
25871 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25872 (__profile_frequency): Likewise.
25873 * include/setjmp.h (__sigsetjmp): Likewise.
25874 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25875 __libc_sigaction): Likewise.
25876 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25877 not set hidden attribute.
25878 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25879 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25880 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25881 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25882 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25883 __fxstatat64): Likewise.
25884 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25885 (__uname): Likewise.
25886 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25887 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25888 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25889 (NO_RTLD_HIDDEN): Set.
25890 * sysdeps/mach/hurd/configure: Refresh.
25891 * config.h.in: Refresh.
25892
25893 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25894
25895 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25896 (atan): Define using libm_alias_double.
25897 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25898 (tan): Define using libm_alias_double.
25899 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25900 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25901
25902 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25903 define as weak alias of __atan. Do not define any aliases if
25904 [__atan].
25905 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25906 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25907 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25908 as weak alias of __tan. Do not define any aliases if [__tan].
25909 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25910 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25911 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25912 __atan.
25913 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25914 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25915 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25916 and define as weak alias of __atan.
25917 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25918 __atan.
25919 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25920 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25921 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25922 define as weak alias of __tan.
25923
25924 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25925
25926 * math/w_lgamma.c: New file.
25927 * math/w_lgammaf.c: New file.
25928 * math/w_lgammal.c: New file.
25929
25930 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25931
25932 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25933 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25934 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25935 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25936 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25937 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25938 * sysdeps/i386/fpu/w_log2f.c: New file.
25939 * sysdeps/i386/fpu/w_logf.c: New file.
25940 * sysdeps/i386/fpu/w_powf.c: New file.
25941 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25942 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25943 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25944
25945 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25946 H.J. Lu <hongjiu.lu@intel.com>
25947
25948 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25949 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25950 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25951 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25952 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25953 the new expf code.
25954 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25955 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25956 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25957 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25958 * sysdeps/i386/fpu/w_exp2f.c: New file.
25959 * sysdeps/i386/fpu/w_expf.c: New file.
25960 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25961 * sysdeps/x86_64/fpu/w_expf.c: New file.
25962
25963 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25964
25965 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25966 (log2f): Likewise.
25967 (powf): Likewise.
25968 * math/w_log2f.c: New file.
25969 * math/w_logf.c: New file.
25970 * math/w_powf.c: New file.
25971 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25972 * math/w_logf_compat.c (__logf_compat): Likewise.
25973 * math/w_powf_compat.c (__powf_compat): Likewise.
25974 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25975 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25976 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25977 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25978 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25979 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25980 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25981 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25982 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25983 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25984 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25985 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25986 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25987 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25988 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25990 Likewise.
25991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25992 Likewise.
25993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25994 Likewise.
25995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25996 Likewise.
25997 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25998 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25999 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26000 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26001 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26002 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26003 Likewise.
26004 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26005 Likewise.
26006 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26007 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26008 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26009
26010 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26011
26012 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26013 (sysdep_routines): Add memrchr_power8.
26014 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26015 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26016 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26017 New file.
26018 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26019 (memrchr): Add __memrchr_power8 to ifunc list.
26020 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26021
26022 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26023
26024 [BZ #18822]
26025 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26026 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26027 libc_hidden_def.
26028 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26029 (__posix_fallocate64_l64): Likewise.
26030
26031 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26032
26033 [BZ #18822]
26034 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26035 (__sched_setaffinity_new): Add libc_hidden_proto and
26036 libc_hidden_def.
26037
26038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26039
26040 [BZ #18822]
26041 * include/glob.h (__glob64): Add libc_hidden_proto.
26042 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26043 libc_hidden_def.
26044
26045 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26046
26047 [BZ #18822]
26048 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26049 attribute_hidden.
26050
26051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26052
26053 [BZ #18822]
26054 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26055
26056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26057
26058 [BZ #18822]
26059 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26060 libc_hidden_def.
26061
26062 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26063
26064 [BZ #18822]
26065 * csu/version.c (__libc_print_version): Add attribute_hidden.
26066
26067 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26068
26069 [BZ #18822]
26070 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26071
26072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26073
26074 [BZ #18822]
26075 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26076
26077 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26078
26079 [BZ #18822]
26080 * nscd/nscd_helper.c (__nis_hash): New prototype.
26081
26082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26083
26084 [BZ #18822]
26085 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26086 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26087 libc_hidden_def.
26088 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26089 * termios/tcgetattr.c (__tcgetattr): Likewise.
26090
26091 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26092
26093 [BZ #18822]
26094 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26095 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26096 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26097 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26098 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26099
26100 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 [BZ #18822]
26103 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26104
26105 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26106
26107 [BZ #18822]
26108 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26109 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26110
26111 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26112
26113 [BZ #18822]
26114 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26115
26116 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26117
26118 [BZ #18822]
26119 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26120 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26121
26122 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26123
26124 [BZ #18822]
26125 * include/ifreq.h: New file.
26126 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26127 (__ifreq): Likewise.
26128 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26129 (__ifreq): Likewise.
26130
26131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26132
26133 [BZ #18822]
26134 * include/idna.h: New file.
26135 * inet/getnameinfo.c: Include <idna.h> instead of
26136 <libidn/idna.h>.
26137 (__idna_to_unicode_lzlz): Removed.
26138 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26139 <libidn/idna.h>.
26140 (__idna_to_ascii_lz): Removed.
26141 (__idna_to_unicode_lzlz): Likewise.
26142
26143 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26144
26145 [BZ #18822]
26146 * include/plural-exp.h: New file.
26147 * intl/plural-exp.c: Include <plural-exp.h> instead of
26148 "plural-exp.h".
26149
26150 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26151
26152 [BZ #18822]
26153 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26154 "getsourcefilter.h".
26155 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26156 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26157 "getsourcefilter.h".
26158 (__get_sol): Removed.
26159
26160 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26161
26162 [BZ #18822]
26163 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26164 to ...
26165 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26166
26167 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26168
26169 [BZ #18822]
26170 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26171 attribute_hidden.
26172
26173 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26174
26175 [BZ #18822]
26176 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26177
26178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26179
26180 [BZ #18822]
26181 * include/search.h (__tdestroy): Add libc_hidden_proto.
26182 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26183
26184 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26185
26186 [BZ #18822]
26187 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26188
26189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 [BZ #18822]
26192 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26193 attribute_hidden.
26194
26195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26196
26197 [BZ #18822]
26198 * include/signal.h (__kill): Add libc_hidden_proto.
26199 (__sigblock): Likewise.
26200 (__sigprocmask): Likewise.
26201 (__sigaltstack): Likewise.
26202 * signal/kill.c (__kill): Add libc_hidden_def.
26203 * signal/sigblock.c (__sigblock): Likewise.
26204 * signal/sigprocmask.c (__sigprocmask): Likewise.
26205 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26206 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26207 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26208 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26209 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26210 Likewise.
26211 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26212 Likewise.
26213 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26214 (__sigprocmask): Likewise.
26215 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26216 Likewise.
26217 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26218 (__sigprocmask): Likewise.
26219 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26220 Likewise.
26221
26222 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26223
26224 [BZ #18822]
26225 * include/string.h (__strsep): Add libc_hidden_proto.
26226 * string/strsep.c (__strsep): Add libc_hidden_def.
26227
26228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 [BZ #18822]
26231 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26232 attribute_hidden.
26233 (__spawni): Likewise.
26234
26235 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26236
26237 [BZ #18822]
26238 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26239 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26240 libc_hidden_def.
26241
26242 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26243
26244 [BZ #18822]
26245 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26251 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26252 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26253 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26254 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26255 Likewise.
26256 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26257 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26258
26259 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26260
26261 [BZ #18822]
26262 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26263 (__dcigettext): Likewise.
26264
26265 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26266
26267 [BZ #18822]
26268 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26269 libc_hidden_proto.
26270 (__get_nprocs): Likewise.
26271 (__get_phys_pages): Likewise.
26272 (__get_avphys_pages): Likewise.
26273 (__get_child_max): Add attribute_hidden.
26274 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26275 (__get_nprocs): Likewise.
26276 (__get_phys_pages): Likewise.
26277 (__get_avphys_pages): Likewise.
26278 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26279 libc_hidden_def.
26280 (__get_nprocs): Likewise.
26281 (__get_phys_pages): Likewise.
26282 (__get_avphys_pages): Likewise.
26283 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26284 libc_hidden_def.
26285 (__get_nprocs_conf): Likewise.
26286 (__get_phys_pages): Likewise.
26287 (__get_avphys_pages): Likewise.
26288
26289 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26290
26291 [BZ #18822]
26292 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26293 attribute_hidden.
26294 (__netlink_close): Likewise.
26295 (__netlink_free_handle): Likewise.
26296 (__netlink_request): Likewise.
26297
26298 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26299
26300 [BZ #18822]
26301 * include/rpc/rpc.h (__rpc_thread_variables): Add
26302 attribute_hidden.
26303 (__rpc_thread_svc_cleanup): Likewise.
26304 (__rpc_thread_clnt_cleanup): Likewise.
26305 (__rpc_thread_key_cleanup): Likewise.
26306
26307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26308
26309 [BZ #18822]
26310 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26311 (__writev): Likewise.
26312 * misc/readv.c (__readv): Add libc_hidden_def.
26313 * misc/writev.c (__writev): Likewise.
26314 * sysdeps/posix/readv.c (__readv): Likewise.
26315 * sysdeps/posix/writev.c (__writev): Likewise.
26316 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26317 (__readv): Likewise.
26318 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26319 (__writev): Likewise.
26320
26321 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26322
26323 [BZ #18822]
26324 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26325 (__regcomp): Add libc_hidden_proto.
26326 (__regexec): Likewise.
26327 (__regfree): Likewise.
26328 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26329 (__regfree): Likewise.
26330 * posix/regexec.c (__regexec): Likewise.
26331
26332 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26333
26334 [BZ #18822]
26335 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26336 (__getutent): Likewise.
26337 (__getutid): Likewise.
26338 (__getutline): Likewise.
26339 (__pututline): Likewise.
26340 (__getutent_r): Likewise.
26341 (__getutid_r): Likewise.
26342 (__getutline_r): Likewise.
26343 (__utmpname): Add attribute_hidden.
26344 (__setutent): Likewise.
26345 (__endutent): Likewise.
26346 * login/getutent.c (__getutent): Add libc_hidden_def.
26347 * login/getutent_r.c (__getutent_r): Likewise.
26348 (__pututline): Likewise.
26349 * login/getutid.c (__getutid): Likewise.
26350 * login/getutid_r.c (__getutid_r): Likewise.
26351 * login/getutline.c (__getutline): Likewise.
26352 * login/getutline_r.c (__getutline_r): Likewise.
26353 * login/updwtmp.c (__updwtmp): Likewise.
26354
26355 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26356
26357 [BZ #18822]
26358 * include/dirent.h (__opendir): Always add attribute_hidden.
26359 (__fdopendir): Likewise.
26360 (__closedir): Likewise.
26361 (__readdir): Likewise.
26362 (__readdir64): Add libc_hidden_proto.
26363 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26364 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26365 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26366 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26367 New alias.
26368
26369 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26370
26371 [BZ #18822]
26372 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26373 * include/netdb.h (__gethostbyaddr_r): Likewise.
26374 (__gethostbyname_r): Likewise.
26375 (__gethostbyname2_r): Likewise.
26376 (__getnetbyaddr_r): Likewise.
26377 (__getnetbyname_r): Likewise.
26378 (__getservbyname_r): Likewise.
26379 (__getservbyport_r): Likewise.
26380 (__getprotobyname_r): Likewise.
26381 (__getprotobynumber_r): Likewise.
26382 (__getnetgrent_r): Likewise.
26383 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26384 (__getrpcbynumber_r): Likewise.
26385 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26386
26387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26388
26389 [BZ #18822]
26390 * include/stdio.h (__fcloseall): Add attribute_hidden.
26391 (__getline): Likewise.
26392 (__path_search): Likewise.
26393 (__gen_tempname): Likewise.
26394 (__libc_message): Likewise.
26395 (__flockfile): Likewise.
26396 (__funlockfile): Likewise.
26397 (__fxprintf): Likewise.
26398 (__fxprintf_nocancel): Likewise.
26399
26400 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26401
26402 [BZ #18822]
26403 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26404 (__sgetsgent_r): Likewise.
26405
26406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26407
26408 [BZ #18822]
26409 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26410 (__statfs64): Likewise.
26411 (__fstatfs64): Likewise.
26412 * include/sys/statvfs.h (__statvfs64): Likewise.
26413 (__fstatvfs64): Likewise.
26414 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26415 (__statfs_filesize_max): Likewise.
26416 (__statfs_symlinks): Likewise.
26417 (__statfs_chown_restricted): Likewise.
26418
26419 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26420
26421 [BZ #18822]
26422 * include/time.h (__tzstring): Add attribute_hidden.
26423 (__tzfile_read): Likewise.
26424 (__tzfile_compute): Likewise.
26425 (__tzfile_default): Likewise.
26426 (__tzset_parse_tz): Likewise.
26427 (__offtime): Likewise.
26428 (__asctime_r): Likewise.
26429 (__tzset): Likewise.
26430 (__tz_convert): Likewise.
26431 (__getdate_r): Likewise.
26432 (__getclktck): Likewise.
26433
26434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26435
26436 [BZ #18822]
26437 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26438 (__nscd_unmap): Likewise.
26439 (__nscd_cache_search): Likewise.
26440 (__nscd_get_nl_timestamp): Likewise.
26441 (__nscd_getpwnam_r): Likewise.
26442 (__nscd_getpwuid_r): Likewise.
26443 (__nscd_getgrnam_r): Likewise.
26444 (__nscd_getgrgid_r): Likewise.
26445 (__nscd_gethostbyname_r): Likewise.
26446 (__nscd_gethostbyname2_r): Likewise.
26447 (__nscd_gethostbyaddr_r): Likewise.
26448 (__nscd_getai): Likewise.
26449 (__nscd_getgrouplist): Likewise.
26450 (__nscd_getservbyname_r): Likewise.
26451 (__nscd_getservbyport_r): Likewise.
26452 (__nscd_innetgr): Likewise.
26453 (__nscd_setnetgrent): Likewise.
26454
26455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26456
26457 [BZ #18822]
26458 * include/gmp.h: Declare internal functions only if _ISOMAC is
26459 undefined.
26460 (__mpn_extract_double): Add attribute_hidden.
26461 (__mpn_extract_long_double): Likewise.
26462 (__mpn_extract_float128): Likewise.
26463 (__mpn_construct_float): Likewise.
26464 (__mpn_construct_double): Likewise.
26465 (__mpn_construct_long_double): Likewise.
26466 (__mpn_construct_float128): Likewise.
26467 (mpn_add_1): Likewise.
26468 (mpn_addmul_1): Likewise.
26469 (mpn_add_n): Likewise.
26470 (mpn_cmp): Likewise.
26471 (mpn_divrem): Likewise.
26472 (mpn_lshift): Likewise.
26473 (mpn_mul): Likewise.
26474 (mpn_mul_1): Likewise.
26475 (mpn_rshift): Likewise.
26476 (mpn_sub_1): Likewise.
26477 (mpn_submul_1): Likewise.
26478 (mpn_sub_n): Likewise.
26479
26480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26481
26482 [BZ #18822]
26483 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26484 (__wcscat): Likewise.
26485 (__btowc): Likewise.
26486 (__wcrtomb): Likewise.
26487 (__mbsrtowcs): Likewise.
26488 (__wcsrtombs): Likewise.
26489 (__mbsnrtowcs): Likewise.
26490 (__wcsnrtombs): Likewise.
26491 (__wcsncpy): Likewise.
26492 (__wcpncpy): Likewise.
26493 (__wmemcpy): Likewise.
26494 (__wmempcpy): Likewise.
26495 (__wmemmove): Likewise.
26496 (__wcschrnul): Likewise.
26497 (__vfwscanf): Likewise.
26498 (__vswprintf): Likewise.
26499 (__fwprintf): Likewise.
26500 (__vfwprintf): Likewise.
26501
26502 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26503
26504 [BZ #18822]
26505 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26506 (__getgrgid_r): Likewise.
26507 (__getgrnam_r): Likewise.
26508 * include/pwd.h (__getpwuid_r): Likewise.
26509 (__getpwnam_r): Likewise.
26510 (__fgetpwent_r): Likewise.
26511 * include/shadow.h (__getspnam_r): Likewise.
26512 (__sgetspent_r): Likewise.
26513 (__fgetspent_r): Likewise.
26514
26515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26516
26517 [BZ #18822]
26518 * include/unistd.h (__access): Add attribute_hidden.
26519 (__lseek64): Likewise.
26520 (__libc_pread64): Likewise.
26521 (__pipe2): Likewise.
26522 (__sleep): Likewise.
26523 (__chdir): Likewise.
26524 (__fchdir): Likewise.
26525 (__getcwd): Likewise.
26526 (__rmdir): Likewise.
26527 (__execvpe): Likewise.
26528 (__execve): Likewise.
26529 (__setsid): Likewise.
26530 (__getuid): Likewise.
26531 (__geteuid): Likewise.
26532 (__getgid): Likewise.
26533 (__getegid): Likewise.
26534 (__getgroups): Likewise.
26535 (__group_member): Likewise.
26536 (__ttyname_r): Likewise.
26537 (__isatty): Likewise.
26538 (__readlink): Likewise.
26539 (__unlink): Likewise.
26540 (__gethostname): Likewise.
26541 (__profil): Likewise.
26542 (__getdtablesize): Likewise.
26543 (__brk): Likewise.
26544 (__ftruncate): Likewise.
26545 (__ftruncate64): Likewise.
26546
26547 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26548
26549 [BZ #18822]
26550 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26551 * argp/argp-fs-xinl.c: Likewise.
26552 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26553 * argp/argp-parse.c: Include <argp.h>.
26554 * argp/argp-xinl.c: Likewise.
26555 * include/argp-fmtstream.h: New file.
26556 * include/argp.h (__argp_error): Add attribute_hidden.
26557 (__argp_failure): Likewise.
26558 (__argp_input): Likewise.
26559 (__argp_state_help): Likewise.
26560
26561 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26562
26563 [BZ #18822]
26564 * include/wchar.h (____wcstof_l_internal): New prototype.
26565 (____wcstod_l_internal): Likewise.
26566 (____wcstold_l_internal): Likewise.
26567 (____wcstol_l_internal): Likewise.
26568 (____wcstoul_l_internal): Likewise.
26569 (____wcstoll_l_internal): Likewise.
26570 (____wcstoull_l_internal): Likewise.
26571 (____wcstof128_l_internal): Likewise.
26572 * sysdeps/ieee754/float128/wcstof128.c
26573 (____wcstof128_l_internal): Removed.
26574 * sysdeps/ieee754/float128/wcstof128_l.c
26575 (____wcstof128_l_internal): Likewise.
26576 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26577 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26578 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26579 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26580 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26581 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26582 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26583 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26584 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26585 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26586
26587 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26588
26589 [BZ #18822]
26590 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26591 instead of <sys/statvfs.h>.
26592 (__internal_statvfs): Removed.
26593 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26594 instead of <sys/statvfs.h>.
26595 (__internal_statvfs64): Removed.
26596 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26597 "internal_statvfs.h" instead of <sys/statvfs.h>.
26598 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26599 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26600 instead of <sys/statvfs.h>.
26601 (__internal_statvfs): Removed.
26602 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26603 instead of <sys/statvfs.h>.
26604 (__internal_statvfs64): Removed.
26605
26606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26607
26608 [BZ #18822]
26609 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26610 (__gconv_close): Likewise.
26611 (__gconv): Likewise.
26612 (__gconv_find_transform): Likewise.
26613 (__gconv_lookup_cache): Likewise.
26614 (__gconv_compare_alias_cache): Likewise.
26615 (__gconv_load_cache): Likewise.
26616 (__gconv_get_path): Likewise.
26617 (__gconv_close_transform): Likewise.
26618 (__gconv_release_cache): Likewise.
26619 (__gconv_find_shlib): Likewise.
26620 (__gconv_release_shlib): Likewise.
26621 (__gconv_get_builtin_trans): Likewise.
26622 (__gconv_compare_alias): Likewise.
26623 * include/dlfcn.h (_dlerror_run): Likewise.
26624 * include/stdio.h (__fortify_fail_abort): Likewise.
26625 * include/time.h (__tz_compute): Likewise.
26626 (__strptime_internal): Likewise.
26627 * intl/gettextP.h (_nl_find_domain): Likewise.
26628 (_nl_load_domain): Likewise.
26629 (_nl_find_msg): Likewise.
26630 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26631 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26632 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26633 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26634 (__gai_find_request): Likewise.
26635 (__gai_remove_request): Likewise.
26636 (__gai_notify): Likewise.
26637 (__gai_notify_only): Likewise.
26638 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26639 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26640 (_dl_non_dynamic_init): Likewise.
26641 (_dl_aux_init): Likewise.
26642 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26643 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26644 Likewise.
26645 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26646 (__wcsmbs_clone_conv): Likewise.
26647 (__wcsmbs_named_conv): Likewise.
26648
26649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26650
26651 [BZ #18822]
26652 * include/stdlib.h (__random): Add attribute_hidden.
26653 (__random_r): Likewise.
26654 (__srandom_r): Likewise.
26655 (__initstate_r): Likewise.
26656 (__setstate_r): Likewise.
26657 (__erand48_r): Likewise.
26658 (__nrand48_r): Likewise.
26659 (__jrand48_r): Likewise.
26660 (__srand48_r): Likewise.
26661 (__seed48_r): Likewise.
26662 (__lcong48_r): Likewise.
26663 (__drand48_iterate): Likewise.
26664 (__setenv): Likewise.
26665 (__unsetenv): Likewise.
26666 (__clearenv): Likewise.
26667 (__ptsname_r): Likewise.
26668 (__posix_openpt): Likewise.
26669 (__add_to_environ): Likewise.
26670 (__realpath): Add libc_hidden_proto.
26671 (__ecvt_r): Likewise.
26672 (__fcvt_r): Likewise.
26673 (__qecvt_r): Likewise.
26674 (__qfcvt_r): Likewise.
26675 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26676 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26677
26678 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26679
26680 [BZ #18822]
26681 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26682 * include/time.h (__mktime_internal): Likewise.
26683 * libio/iolibio.h (__fopen_internal): Likewise.
26684
26685 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26686
26687 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26688 pointer in frame.
26689 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26690 Correct offset used to restore PIC register.
26691
26692 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26693
26694 [BZ libc/22165]
26695 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26696 code to load address of __getcontext_ret when generating PIC code.
26697
26698 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26699
26700 * elf/Makefile (tests-static-internal): Add
26701 tst-tls1-static-non-pie.
26702 (LDFLAGS-tst-tls1-static-non-pie): New.
26703 * elf/tst-tls1-static-non-pie.c: New file.
26704
26705 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26706
26707 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26708 (asinh): Define using libm_alias_double.
26709 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26710 (cbrt): Define using libm_alias_double.
26711 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26712 <libm-alias-double.h>.
26713 (copysign): Define using libm_alias_double.
26714 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26715 (erf): Define using libm_alias_double.
26716 (erfc): Likewise.
26717 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26718 (expm1): Define using libm_alias_double.
26719 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26720 (fabs): Define using libm_alias_double.
26721 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26722 libm_alias_double.
26723 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26724 <libm-alias-double.h>.
26725 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26726 libm_alias_double.
26727 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26728 <libm-alias-double.h>.
26729 (getpayload): Define using libm_alias_double.
26730 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26731 <libm-alias-double.h>.
26732 (llrint): Define using libm_alias_double.
26733 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26734 (lrint): Define using libm_alias_double.
26735 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26736 <libm-alias-double.h>.
26737 (nextup): Define using libm_alias_double.
26738 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26739 <libm-alias-double.h>.
26740 (roundeven): Define using libm_alias_double.
26741 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26742 libm_alias_double.
26743 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26744 <libm-alias-double.h>.
26745 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26746 using libm_alias_double.
26747 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26748 (cos): Define using libm_alias_double.
26749 (sin): Likewise.
26750 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26751 <libm-alias-double.h>.
26752 (sincos): Define using libm_alias_double.
26753 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26754 (tanh): Define using libm_alias_double.
26755 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26756 <libm-alias-double.h>.
26757 (totalorder): Define using libm_alias_double.
26758 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26759 <libm-alias-double.h>.
26760 (totalordermag): Define using libm_alias_double.
26761 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26762 libm_alias_double.
26763 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26764 libm_alias_double.
26765 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26766 <libm-alias-double.h>.
26767 (getpayload): Define using libm_alias_double.
26768 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26769 <libm-alias-double.h>.
26770 (roundeven): Define using libm_alias_double.
26771 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26772 <libm-alias-double.h>.
26773 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26774 <libm-alias-double.h>.
26775 (totalorder): Define using libm_alias_double.
26776 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26777 <libm-alias-double.h>.
26778 (totalordermag): Define using libm_alias_double.
26779 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26780 libc compat symbol here.
26781 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26782 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26783 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26784 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26785 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26786 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26787 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26788 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26789 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26790 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26791
26792 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26793
26794 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26795 _dl_relocate_static_pie instead of _dl_start to compute load
26796 address in static PIE. Return 0 if _DYNAMIC is undefined for
26797 static executable.
26798
26799 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26800
26801 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26802 _DYNAMIC is undefined for static executable.
26803
26804 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26805
26806 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26807
26808 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26809
26810 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26811
26812 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26813
26814 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26815 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26816 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26817 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26818 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26819 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26820 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26821 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26822 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26823 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26824 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26825 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26826 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26827 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26828 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26829 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26830 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26831
26832 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26833
26834 * math/bits/cmathcalls.h (cimag): Remove inline.
26835 (creal): Remove inline.
26836 (conj): Remove inline.
26837
26838 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26839
26840 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26841 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26842 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26843 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26844 (issignalingf_inline): Likewise.
26845 (POWF_LOG2_TABLE_BITS): Likewise.
26846 (POWF_LOG2_POLY_ORDER): Likewise.
26847 (POWF_SCALE_BITS): Likewise.
26848 (POWF_SCALE): Likewise.
26849 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26850 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26851 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26852
26853 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26854
26855 * math/Makefile (type-float-routines): Add e_log2f_data.
26856 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26857 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26858 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26859 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26860 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26861 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26862 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26863
26864 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26865
26866 * math/Makefile (type-float-routines): Add e_logf_data.
26867 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26868 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26869 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26870 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26871 * sysdeps/i386/fpu/e_logf_data.c: New file.
26872 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26873 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26874
26875 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26878 undefined _DYNAMIC in PIE libc.a.
26879 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26880 Likewse.
26881
26882 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26883
26884 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26885 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26886 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26887 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26888 (__signbit): Remove.
26889 (__signbitl): Remove.
26890 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26891 (__signbit): Remove.
26892 (__signbitl): Remove.
26893 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26894 (__signbit): Remove.
26895 (__signbitl): Remove.
26896 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26897 (__signbit): Remove.
26898 (__signbitl): Remove.
26899 * sysdeps/tile/bits/mathinline.h: Delete file.
26900 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26901 (__signbit): Remove.
26902 (__signbitl): Remove.
26903
26904 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26905
26906 * math/math.h: Improve handling of C99 isgreater macros.
26907 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26908 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26909 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26910 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26911 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26912
26913 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26914
26915 * sysdeps/aarch64/libm-test-ulps: Update.
26916
26917 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26918
26919 [BZ #22225]
26920 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26921 math_opt_barrier on argument when doing arithmetic on it.
26922 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26923 Likewise. Use math_force_eval not math_opt_barrier after
26924 arithmetic.
26925 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26926 math_opt_barrier on argument when doing arithmetic on it.
26927 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26928 Likewise.
26929
26930 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26931
26932 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26933 libc_hidden_def.
26934 (__freeifaddrs): Likewise.
26935
26936 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26937
26938 * include/dirent.h (__dirfd): New declaration.
26939 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26940 alias.
26941 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26942 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26943 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26944 * include/unistd.h (__revoke): New declaration.
26945 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26946 alias.
26947 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26948 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26949 revoke.
26950 * include/dirent.h (__seekdir): New declaration.
26951 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26952 redefine as weak alias.
26953 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26954 of seekdir.
26955 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26956 and use libc_hidden_def on them.
26957 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26958 them.
26959 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26960 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26961 instead of getifaddrs and freeifaddrs.
26962
26963 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26964
26965 [BZ #18822]
26966 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26967 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26968 (__dso_handle): Remove declaration.
26969 * dlfcn/tstatexit.c (__dso_handle): Removed.
26970 (main): Don't check __dso_handle.
26971 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26972 (main): Don't check __dso_handle.
26973 * include/dso_handle.h: New file.
26974 * malloc/mtrace.c: Include <dso_handle.h>.
26975 (mtrace): Pass __dso_handle directly.
26976 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26977 (__dso_handle): Remove declaration.
26978 (__pthread_atfork): Pass __dso_handle directly.
26979 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26980 (__dso_handle): Removed.
26981 * posix/wordexp-test.c: Include <dso_handle.h>.
26982 (__dso_handle): Remove declaration.
26983 (__app_register_atfork): Pass __dso_handle directly.
26984 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26985 (__dso_handle): Remove declaration.
26986 (at_quick_exit): Pass __dso_handle directly.
26987 * stdlib/atexit.c: Include <dso_handle.h>.
26988 (__dso_handle): Remove declaration.
26989 (atexit): Pass __dso_handle directly.
26990 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26991 (__dso_handle): Removed.
26992
26993 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26994
26995 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26996 using VDSO.
26997
26998 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26999
27000 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27001 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27002 values to correct default value for given type.
27003
27004 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27005
27006 [BZ #22101]
27007 * elf/Makefile (tests): Add tst-debug1.
27008 ($(objpfx)tst-debug1): New.
27009 ($(objpfx)tst-debug1.out): Likewise.
27010 ($(objpfx)tst-debug1mod1.so): Likewise.
27011 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27012 with p_filesz == 0.
27013 * elf/tst-debug1.c: New file.
27014
27015 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27016
27017 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27018 Define using __ifunc.
27019
27020 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27021
27022 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27023 exp2f() values.
27024
27025 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27026
27027 [BZ #22156]
27028 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27029
27030 2017-09-26 Florian Weimer <fweimer@redhat.com>
27031
27032 * resolv/Makefile (tests-internal): Fix typo in comment.
27033
27034 2017-09-26 Florian Weimer <fweimer@redhat.com>
27035
27036 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27037
27038 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27039
27040 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27041 Use an union instead of a max_align_t array for __space,
27042 so that __space is the same size on all platforms.
27043 * malloc/scratch_buffer_grow_preserve.c
27044 (__libc_scratch_buffer_grow_preserve): Likewise.
27045
27046 [BZ #22183]
27047 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27048 version to 2.
27049 * posix/Makefile (routines): Add glob-lstat-compat and
27050 glob64-lstat-compat.
27051 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27052 * posix/glob-lstat-compat.c: New file.
27053 * posix/glob64-lstat-compat.c: Likewise.
27054 * posix/tst-glob_lstat_compat.c: Likewise.
27055 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27056 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27057 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27058 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27059 Likewise.
27060 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27061 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27062 * posix/glob.c (glob_lstat): New function.
27063 (glob): Rename to __glob and add versioned symbol to 2.27.
27064 (glob_in_dir): Use glob_lstat.
27065 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27066 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27067 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27068 2.27.
27069 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27070 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27071 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27072 gl_lstat on glob call.
27073 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27074 and glob64 symbols.
27075 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27076 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27077 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27078 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27079 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27080 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27081 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27082 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27083 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27084 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27085 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27086 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27088 Likewise.
27089 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27091 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27092 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27093 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27094 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27095 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27096 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27097 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27098 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27099 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27100 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27101
27102 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27103
27104 * configure.ac (AS): Require binutils 2.25 or later.
27105 * configure: Regenerated.
27106
27107 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27108
27109 [BZ #22207]
27110 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27111 VM size.
27112
27113 2017-09-25 DJ Delorie <dj@redhat.com>
27114
27115 [BZ #22161]
27116 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27117 resetting timeout.
27118
27119 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27120
27121 * sysdeps/ieee754/dbl-64/sincos32.h
27122 [SINCCOS32_H]: Remove define.
27123 [SINCOS32_H]: Define.
27124
27125 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27126
27127 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27128 (exp2f): Likewise.
27129 * math/w_exp2f.c: New file.
27130 * math/w_expf.c: New file.
27131 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27132 * math/w_expf_compat.c (__expf_compat): Likewise.
27133 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27134 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27135 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27136 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27137 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27138 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27139 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27140 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27141 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27142 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27143 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27144 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27145 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27146 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27148 Likewise.
27149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27150 Likewise.
27151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27152 Likewise.
27153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27154 Likewise.
27155 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27156 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27157 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27158 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27159 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27160 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27161 Likewise.
27162 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27163 Likewise.
27164 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27165 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27166 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27167
27168 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27169
27170 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27171 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27172 (roundtoint, converttoint): Likewise.
27173 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27174 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27175 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27176 * sysdeps/ieee754/flt-32/math_config.h: New file.
27177 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27178 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27179 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27180 * sysdeps/i386/fpu/math_errf.c: New file.
27181 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27182 * sysdeps/ia64/fpu/math_errf.c: New file.
27183 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27184 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27185
27186 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27187
27188 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27189 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27190 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27191 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27192 to make sure that these symbols are defined.
27193 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27194 of <limits.h>
27195 (__need_NULL): Do not define.
27196 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27197 alignment.
27198 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27199 CMGROUP_MAX, cmsgcred): Do not define.
27200 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27201 NULL.
27202 * bits/socket.h: Likewise.
27203 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27204 __gettimeofday instead of gettimeofday.
27205 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27206 instead of settimeofday.
27207
27208 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27209
27210 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27211 (asinhf): Define using libm_alias_float.
27212 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27213 (atanf): Define using libm_alias_float.
27214 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27215 (cbrtf): Define using libm_alias_float.
27216 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27217 (ceilf): Define using libm_alias_float.
27218 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27219 <libm-alias-float.h>.
27220 (copysignf): Define using libm_alias_float.
27221 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27222 (cosf): Define using libm_alias_float.
27223 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27224 (erff): Define using libm_alias_float.
27225 (erfcf): Likewise.
27226 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27227 (expm1f): Define using libm_alias_float.
27228 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27229 (fabsf): Define using libm_alias_float.
27230 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27231 (floorf): Define using libm_alias_float.
27232 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27233 (frexpf): Define using libm_alias_float.
27234 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27235 libm_alias_float.
27236 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27237 <libm-alias-float.h>.
27238 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27239 libm_alias_float.
27240 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27241 <libm-alias-float.h>.
27242 (getpayloadf): Define using libm_alias_float.
27243 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27244 <libm-alias-float.h>.
27245 (llrintf): Define using libm_alias_float.
27246 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27247 <libm-alias-float.h>.
27248 (llroundf): Define using libm_alias_float.
27249 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27250 (logbf): Define using libm_alias_float.
27251 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27252 (lrintf): Define using libm_alias_float.
27253 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27254 (lroundf): Define using libm_alias_float.
27255 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27256 (modff): Define using libm_alias_float.
27257 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27258 <libm-alias-float.h>.
27259 (nearbyintf): Define using libm_alias_float.
27260 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27261 <libm-alias-float.h>.
27262 (nextafterf): Define using libm_alias_float.
27263 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27264 <libm-alias-float.h>.
27265 (nextupf): Define using libm_alias_float.
27266 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27267 <libm-alias-float.h>.
27268 (remquof): Define using libm_alias_float.
27269 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27270 (rintf): Define using libm_alias_float.
27271 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27272 <libm-alias-float.h>.
27273 (roundevenf): Define using libm_alias_float.
27274 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27275 (roundf): Define using libm_alias_float.
27276 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27277 using libm_alias_float.
27278 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27279 <libm-alias-float.h>.
27280 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27281 Define using libm_alias_float.
27282 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27283 <libm-alias-float.h>.
27284 (sincosf): Define using libm_alias_float.
27285 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27286 (sinf): Define using libm_alias_float.
27287 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27288 (tanf): Define using libm_alias_float.
27289 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27290 (tanhf): Define using libm_alias_float.
27291 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27292 <libm-alias-float.h>.
27293 (totalorderf): Define using libm_alias_float.
27294 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27295 <libm-alias-float.h>.
27296 (totalordermagf): Define using libm_alias_float.
27297 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27298 (truncf): Define using libm_alias_float.
27299 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27300 libm_alias_float.
27301 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27302 libm_alias_float.
27303
27304 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27305
27306 [BZ #22146]
27307 math/math.h: Let fpclassify use the builtin in C++ mode, even
27308 when optimazing for size.
27309
27310 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27311
27312 * csu/Makefile (generated): Do not add version-info.h.
27313 (before-compile): Likewise.
27314 (all-Banner-files): Remove variable.
27315 ($(objpfx)version-info.h): Remove rule.
27316 * csu/version.c (banner): Do not include "version-info.h".
27317 * libidn/Banner: Remove.
27318 * manual/contrib.texi (Simon Josefsson): New entry.
27319
27320 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27321
27322 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27323 Remove conditionals on LDBL_MANT_DIG.
27324 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27325 (__ieee754_lgammal_r): Likewise.
27326
27327 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27328
27329 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27330 _Float128 and L().
27331 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27332 _Float128 and L(). Replace _Float128 with long double and L(x)
27333 with xL, throughout the file.
27334 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27335 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27336 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27337 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27338
27339 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27340
27341 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27342 sysdeps/ieee754/ldbl-128ibm.
27343 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27344 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27345 of including it. Keep _Float128 and L() intact. These will be
27346 reviewed by a separate patch.
27347 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27348 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27349 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27350 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27351
27352 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27353
27354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27355 (__finitef128): Define to __redirect___finitef128.
27356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27357 (__isinff128): Define to __redirect___isinff128.
27358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27359 (__isnanf128): Define to __redirect___isnanf128.
27360
27361 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27362
27363 * sysdeps/powerpc/powerpc64le/Makefile
27364 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27365 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27366
27367 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27368 Carlos O'Donell <carlos@redhat.com>
27369
27370 [BZ #22180]
27371 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27372 * stdlib/test-dlclose-exit-race.c: New file.
27373 * stdlib/test-dlclose-exit-race-helper.c: New file.
27374 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27375
27376 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27377
27378 * crypt/Banner: Remove file.
27379 * nptl/Banner: Likewise.
27380 * resolv/Banner: Likewise.
27381 * soft-fp/Banner: Likewise.
27382 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27383 ($(objpfx)version.d): Remove dependency on banner.h.
27384 ($(objpfx)version.os): Likewise.
27385 * nptl/version.c (banner): Do not include banner.h.
27386 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27387 Jelinek and BIND code.
27388
27389 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27390 Carlos O'Donell <carlos@redhat.com>
27391
27392 * support/xdlfcn.h: New file.
27393 * support/xdlfcn.c: New file.
27394 * support/Makefile (libsupport-routines): Add xdlfcn.
27395 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27396
27397 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27398
27399 [BZ #20142]
27400 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27401 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27402 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27403 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27404 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27405 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27406 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27407 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27408
27409 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27410 Ricky Zhou <rickyz@google.com>
27411 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27412
27413 [BZ #14333]
27414 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27415 Remove atomics.
27416 (__new_exitfn): Fail registration when we finished at_exit processing.
27417 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27418 * stdlib/on_exit.c (__on_exit): Likewise.
27419 * stdlib/exit.c (__exit_funcs_done): New variable.
27420 (__run_exit_handlers): Use __exit_funcs_lock.
27421 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27422 declarations.
27423 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27424 (test-cxa_atexit-race, test-on_exit-race): New tests.
27425 * stdlib/test-atexit-race-common.c: New file.
27426 * stdlib/test-atexit-race.c: New file.
27427 * stdlib/test-at_quick_exit-race.c: New file.
27428 * stdlib/test-cxa_atexit-race.c: New file.
27429 * stdlib/test-on_exit-race.c: New file.
27430
27431 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27432
27433 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27434 * benchtests/exp2f-inputs: Copy of expf-inputs.
27435 * benchtests/log2f-inputs: Copy of logf-inputs.
27436
27437 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27438
27439 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27440 Explicitly take address of first element of array arguments in
27441 call to INLINE_SYSCALL.
27442
27443 2017-09-19 Andreas Schwab <schwab@suse.de>
27444
27445 [BZ #22134]
27446 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27447 execveat first.
27448 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27449 unimplemented.
27450 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27451 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27452 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27453 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27454 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27455 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27456 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27457 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27458 * posix/Makefile (tests): Add tst-fexecve.
27459 * posix/tst-fexecve.c: New file.
27460
27461 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27462
27463 * benchtests/Makefile: Add logf benchmark.
27464 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27465
27466 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27467
27468 * benchtests/Makefile: Add expf benchmark.
27469 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27470
27471 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27472
27473 * csu/Makefile: Add -funwind-tables to libc-start.c.
27474 * debug/Makefile: Add -funwind-tables to backtrace.c.
27475 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27476 * sysdeps/arm/Makefile: Likewise.
27477 * sysdeps/i386/Makefile: Likewise.
27478 * sysdeps/m68k/Makefile: Likewise.
27479 * sysdeps/mips/Makefile: Likewise.
27480 * sysdeps/nios2/Makefile: Likewise.
27481 * sysdeps/sh/Makefile: Likewise.
27482 * sysdeps/sparc/Makefile: Likewise.
27483
27484 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27485
27486 * benchtests/Makefile (bench-math): Add trunc and truncf.
27487 (CFLAGS-bench-trunc.c): New variable.
27488 (CFLAGS-bench-truncf.c): Likewise.
27489 * benchtests/trunc-inputs: New file.
27490 * benchtests/truncf-inputs: Likewise.
27491
27492 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27493
27494 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27495
27496 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27497
27498 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27499 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27500 redefine.
27501 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27502 (exp10l): Define as weak alias.
27503 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27504 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27505 and redefine.
27506 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27507 (remainderl): Define as weak alias.
27508
27509 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27510 (fmal): Define using libm_alias_ldouble.
27511 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27512 (acoshl): Define using libm_alias_ldouble.
27513 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27514 (acosl): Define using libm_alias_ldouble.
27515 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27516 (asinl): Define using libm_alias_ldouble.
27517 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27518 (atan2l): Define using libm_alias_ldouble.
27519 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27520 (atanhl): Define using libm_alias_ldouble.
27521 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27522 (coshl): Define using libm_alias_ldouble.
27523 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27524 (exp10l): Define using libm_alias_ldouble.
27525 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27526 (exp2l): Define using libm_alias_ldouble.
27527 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27528 (expl): Define using libm_alias_ldouble.
27529 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27530 (fmodl): Define using libm_alias_ldouble.
27531 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27532 (hypotl): Define using libm_alias_ldouble.
27533 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27534 (j0l): Define using libm_alias_ldouble.
27535 (y0l): Likewise.
27536 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27537 (j1l): Define using libm_alias_ldouble.
27538 (y1l): Likewise.
27539 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27540 (jnl): Define using libm_alias_ldouble.
27541 (ynl): Likewise.
27542 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27543 (log10l): Define using libm_alias_ldouble.
27544 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27545 (log2l): Define using libm_alias_ldouble.
27546 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27547 (logl): Define using libm_alias_ldouble.
27548 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27549 (powl): Define using libm_alias_ldouble.
27550 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27551 (remainderl): Define using libm_alias_ldouble.
27552 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27553 (sinhl): Define using libm_alias_ldouble.
27554 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27555 (sqrtl): Define using libm_alias_ldouble.
27556 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27557 (tgammal): Define using libm_alias_ldouble.
27558 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27559 (exp10l): Do not use long_double_symbol here.
27560 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27561 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27562 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27563 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27564 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27565 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27566 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27567 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27568 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27569 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27570 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27571 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27572 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27573 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27574 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27575 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27576 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27577 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27578 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27579 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27580 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27581 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27582
27583 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27584
27585 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27586 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27587
27588 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27589
27590 * io/read.c (read): Add libc_hidden_weak.
27591 * sysdeps/mach/hurd/read.c (read): Likewise.
27592 * io/write.c (write): Likewise.
27593 * sysdeps/mach/hurd/write.c (write): Likewise.
27594 * io/pread64.c (__pread64): Likewise.
27595 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27596 * posix/pread64.c (__pread64): Add libc_hidden_def.
27597
27598 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27599
27600 * benchtests/scripts/compare_strings.py: New option -g.
27601 (draw_graph): Print a message that a graph is being generated.
27602 (process_results): Generate graph only if -g is passed.
27603 (main): Process option -g.
27604
27605 * benchtests/scripts/compare_strings.py (process_results):
27606 Better spacing for output.
27607
27608 * benchtests/scripts/compare_strings.py: Use argparse.
27609 * benchtests/README: Document existence of compare_strings.py.
27610
27611 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27612
27613 * math/s_fma.c: Include <libm-alias-double.h>.
27614 (fma): Define using libm_alias_double.
27615 * math/s_nextafter.c: Include <libm-alias-double.h>.
27616 (nextafter): Define using libm_alias_double.
27617 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27618 (acos): Define using libm_alias_double.
27619 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27620 (aocsh): Define using libm_alias_double.
27621 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27622 (asin): Define using libm_alias_double.
27623 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27624 (atan2): Define using libm_alias_double.
27625 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27626 (atanh): Define using libm_alias_double.
27627 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27628 (cosh): Define using libm_alias_double.
27629 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27630 (exp10): Define using libm_alias_double.
27631 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27632 (exp2): Define using libm_alias_double.
27633 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27634 (exp): Define using libm_alias_double.
27635 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27636 (fmod): Define using libm_alias_double.
27637 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27638 (hypot): Define using libm_alias_double.
27639 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27640 (j0): Define using libm_alias_double.
27641 (y0): Likewise.
27642 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27643 (j1): Define using libm_alias_double.
27644 (y1): Likewise.
27645 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27646 (jn): Define using libm_alias_double.
27647 (yn): Likewise.
27648 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27649 (log10): Define using libm_alias_double.
27650 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27651 (log2): Define using libm_alias_double.
27652 * math/w_log_compat.c: Include <libm-alias-double.h>.
27653 (log): Define using libm_alias_double.
27654 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27655 (pow): Define using libm_alias_double.
27656 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27657 (remainder): Define using libm_alias_double.
27658 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27659 (sinh): Define using libm_alias_double.
27660 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27661 (sqrt): Define using libm_alias_double.
27662 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27663 (tgamma): Define using libm_alias_double.
27664 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27665 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27666 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27667 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27668 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27669 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27670 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27671 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27672 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27673 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27674 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27675 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27676 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27677 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27678 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27679 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27680 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27681 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27682 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27683 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27684 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27685 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27686 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27687 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27688 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27689
27690 * math/e_acoshl.c: Remove.
27691 * math/e_acosl.c: Likewise.
27692 * math/e_asinl.c: Likewise.
27693 * math/e_atan2l.c: Likewise.
27694 * math/e_atanhl.c: Likewise.
27695 * math/e_coshl.c: Likewise.
27696 * math/e_expl.c: Likewise.
27697 * math/e_fmodl.c: Likewise.
27698 * math/e_gammal_r.c: Likewise.
27699 * math/e_hypotl.c: Likewise.
27700 * math/e_j0l.c: Likewise.
27701 * math/e_j1l.c: Likewise.
27702 * math/e_jnl.c: Likewise.
27703 * math/e_lgammal_r.c: Likewise.
27704 * math/e_log10l.c: Likewise.
27705 * math/e_log2l.c: Likewise.
27706 * math/e_logl.c: Likewise.
27707 * math/e_powl.c: Likewise.
27708 * math/e_rem_pio2l.c: Likewise.
27709 * math/e_sinhl.c: Likewise.
27710 * math/e_sqrtf128.c: Likewise.
27711 * math/e_sqrtl.c: Likewise.
27712 * math/k_cosl.c: Likewise.
27713 * math/k_sinl.c: Likewise.
27714 * math/k_tanl.c: Likewise.
27715 * math/s_asinhl.c: Likewise.
27716 * math/s_atanl.c: Likewise.
27717 * math/s_cbrtl.c: Likewise.
27718 * math/s_erfl.c: Likewise.
27719 * math/s_expm1l.c: Likewise.
27720 * math/s_log1pl.c: Likewise.
27721 * math/s_tanhl.c: Likewise.
27722
27723 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27724
27725 [BZ #21745]
27726 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27727 [$(subdir) = math] (sysdep_calls): New variable. Has the
27728 previous contents of sysdep_routines, but re-sorted..
27729 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27730 sysdep_calls.
27731 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27732 defined in sysdep_calls and replace by the respective m_* names.
27733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27734 (compat_symbol): Undefine to avoid duplicated compat symbols in
27735 libc.
27736
27737 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27738
27739 * math/s_fmaf.c: Include <libm-alias-float.h>.
27740 (fmaf): Define using libm_alias_float.
27741 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27742 (acosf): Define using libm_alias_float.
27743 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27744 (acoshf): Define using libm_alias_float.
27745 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27746 (asinf): Define using libm_alias_float.
27747 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27748 (atan2f): Define using libm_alias_float.
27749 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27750 (atanhf): Define using libm_alias_float.
27751 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27752 (coshf): Define using libm_alias_float.
27753 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27754 (exp10f): Define using libm_alias_float.
27755 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27756 (fmodf): Define using libm_alias_float.
27757 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27758 (hypotf): Define using libm_alias_float.
27759 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27760 (j0f): Define using libm_alias_float.
27761 (y0f): Likewise.
27762 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27763 (j1f): Define using libm_alias_float.
27764 (y1f): Likewise.
27765 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27766 (jnf): Define using libm_alias_float.
27767 (ynf): Likewise.
27768 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27769 (log10f): Define using libm_alias_float.
27770 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27771 (log2f): Define using libm_alias_float.
27772 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27773 (logf): Define using libm_alias_float.
27774 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27775 (powf): Define using libm_alias_float.
27776 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27777 (remainderf): Define using libm_alias_float.
27778 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27779 (sinhf): Define using libm_alias_float.
27780 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27781 (sqrtf): Define using libm_alias_float.
27782 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27783 (tgammaf): Define using libm_alias_float.
27784
27785 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27786
27787 * include/math.h (roundeven): Change hidden_proto call to
27788 __roundeven.
27789 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27790 alias.
27791 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27792 (y0): Rename to __y0 and define as weak alias.
27793 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27794 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27795 alias.
27796 (y0f): Rename to __y0f and define as weak alias.
27797 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27798 alias.
27799 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27800 (y1): Rename to __y1 and define as weak alias.
27801 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27802 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27803 alias.
27804 (y1f): Rename to __y1f and define as weak alias.
27805 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27806 alias.
27807 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27808 (yn): Rename to __yn and define as weak alias.
27809 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27810 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27811 alias.
27812 (ynf): Rename to __ynf and define as weak alias.
27813 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27814 (fromfp): Define as weak alias.
27815 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27816 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27817 (fromfpx): Define as weak alias.
27818 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27819 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27820 __getpayload and define as weak alias.
27821 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27822 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27823 __roundeven and define as weak alias.
27824 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27825 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27826 __setpayload.
27827 (setpayload): Define as weak alias.
27828 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27829 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27830 __setpayloadsig.
27831 (setpayloadsig): Define as weak alias.
27832 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27833 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27834 __totalorder and define as weak alias.
27835 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27836 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27837 to __totalordermag and define as weak alias.
27838 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27839 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27840 (ufromfp): Define as weak alias.
27841 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27842 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27843 __ufromfpx.
27844 (ufromfpx): Define as weak alias.
27845 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27846 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27847 Rename to __getpayload and define as weak alias.
27848 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27849 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27850 Rename to __roundeven and define as weak alias.
27851 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27852 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27853 Rename to __totalorder and define as weak alias.
27854 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27855 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27856 (totalordermag): Rename to __totalordermag and define as weak
27857 alias.
27858 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27859 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27860 macro.
27861 (__roundevenl): Likewise.
27862 (__totalorderl): Likewise.
27863 (__totalordermagl): Likewise
27864 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27865 __fromfpf128.
27866 (fromfpf128): Define as weak alias.
27867 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27868 __fromfpxf128.
27869 (fromfpxf128): Define as weak alias.
27870 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27871 __setpayloadf128.
27872 (setpayloadf128): Define as weak alias.
27873 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27874 __setpayloadsigf128.
27875 (setpayloadsigf128): Define as weak alias.
27876 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27877 __ufromfpf128.
27878 (ufromfpf128): Define as weak alias.
27879 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27880 __ufromfpxf128.
27881 (ufromfpxf128): Define as weak alias.
27882 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27883 (fromfpf): Define as weak alias.
27884 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27885 __fromfpxf.
27886 (fromfpxf): Define as weak alias.
27887 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27888 __getpayloadf and define as weak alias.
27889 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27890 __roundevenf and define as weak alias.
27891 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27892 __setpayloadf.
27893 (setpayloadf): Define as weak alias.
27894 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27895 __setpayloadsigf.
27896 (setpayloadsigf): Define as weak alias.
27897 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27898 __totalorderf and define as weak alias.
27899 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27900 Rename to __totalordermagf and define as weak alias.
27901 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27902 __ufromfpf.
27903 (ufromfpf): Define as weak alias.
27904 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27905 __ufromfpxf.
27906 (ufromfpxf): Define as weak alias.
27907 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27908 __fromfpl.
27909 (fromfpl): Define as weak alias.
27910 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27911 __fromfpxl.
27912 (fromfpxl): Define as weak alias.
27913 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27914 to __getpayloadl and define as weak alias.
27915 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27916 __roundevenl and define as weak alias.
27917 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27918 __setpayloadl.
27919 (setpayloadl): Define as weak alias.
27920 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27921 __setpayloadsigl.
27922 (setpayloadsigl): Define as weak alias.
27923 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27924 to __totalorderl and define as weak alias.
27925 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27926 Rename to __totalordermagl and define as weak alias.
27927 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27928 __ufromfpl.
27929 (ufromfpl): Define as weak alias.
27930 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27931 __ufromfpxl.
27932 (ufromfpxl): Define as weak alias.
27933 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27934 __fromfpl.
27935 (fromfpl): Define as weak alias.
27936 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27937 __fromfpxl.
27938 (fromfpxl): Define as weak alias.
27939 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27940 Rename to __getpayloadl and define as weak alias.
27941 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27942 to __roundevenl and define as weak alias. Call __roundeven
27943 instead of roundeven.
27944 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27945 __setpayloadl.
27946 (setpayloadl): Define as weak alias.
27947 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27948 __setpayloadsigl.
27949 (setpayloadsigl): Define as weak alias.
27950 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27951 Rename to __totalorderl and define as weak alias.
27952 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27953 Rename to __totalordermagl and define as weak alias.
27954 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27955 __ufromfpl.
27956 (ufromfpl): Define as weak alias.
27957 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27958 __ufromfpxl.
27959 (ufromfpxl): Define as weak alias.
27960 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27961 __fromfpl.
27962 (fromfpl): Define as weak alias.
27963 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27964 __fromfpxl.
27965 (fromfpxl): Define as weak alias.
27966 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27967 __getpayloadl and define as weak alias.
27968 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27969 __roundevenl and define as weak alias.
27970 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27971 __setpayloadl.
27972 (setpayloadl): Define as weak alias.
27973 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27974 __setpayloadsigl.
27975 (setpayloadsigl): Define as weak alias.
27976 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27977 __totalorderl and define as weak alias.
27978 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27979 Rename to __totalordermagl and define as weak alias.
27980 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27981 __ufromfpl.
27982 (ufromfpl): Define as weak alias.
27983 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27984 __ufromfpxl.
27985 (ufromfpxl): Define as weak alias.
27986
27987 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27988
27989 * benchtests/bench-string.h (realloc_bufs): New function.
27990 (test_init): Call it.
27991 * benchtests/bench-memset-large.c (do_test): Likewise.
27992 * benchtests/bench-memset.c (do_test): Likewise.
27993
27994 * benchtests/bench-memset-large.c: Print output in JSON
27995 format.
27996 * benchtests/bench-memset.c: Likewise.
27997
27998 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27999
28000 [BZ #21084]
28001 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28002 * iconvdata/Makefile: Add IBM858.
28003 * iconvdata/gconv-modules: Likewise.
28004 * iconvdata/tst-tables.sh: Likewise.
28005 * iconvdata/ibm858.c: New file.
28006 * localedata/charmaps/IBM858: Likewise.
28007
28008 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28009
28010 [BZ #22023]
28011 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28012 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28013
28014 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28015
28016 [BZ #22112]
28017 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28018 and add tel_int_fmt.
28019
28020 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28021
28022 * sysdeps/generic/libm-alias-float128.h: New file.
28023 * sysdeps/generic/math-type-macros-float128.h: Include
28024 <libm-alias-float128.h>.
28025 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28026
28027 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28028
28029 * sysdeps/generic/libm-alias-ldouble.h: New file.
28030 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28031 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28032 * sysdeps/generic/math-type-macros-ldouble.h: Include
28033 <libm-alias-ldouble.h>.
28034 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28035 libm_alias_ldouble.
28036
28037 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28038
28039 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28040 * math/w_exp_compat.c: ... here.
28041 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28042 * math/w_expf_compat.c: ... here.
28043 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28044 * math/w_expl_compat.c: ... here.
28045 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28046 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28047 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28048 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28049
28050 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28051
28052 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28053 redefine.
28054 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28055 macro.
28056 (ldexpl): Only define as compat symbol for libc, not libm.
28057 (scalbnl): Define as compat symbol for libc here.
28058 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28059 define for [IS_IN (libc)].
28060 (__ldexpl_2): Remove alias.
28061 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28062 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28063 name in long_double_symbol call.
28064 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28065 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28069 Remove macro.
28070 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28071 Define as compat symbol.
28072
28073 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28074
28075 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28076 * sysdeps/unix/sysv/linux/alpha/Makefile
28077 [$(subdir) = csu] (sysdep_routines): Remove rule.
28078
28079 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28080
28081 * sysdeps/generic/libm-alias-double.h: New file.
28082 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28083 * sysdeps/generic/math-type-macros-double.h: Include
28084 <libm-alias-double.h>.
28085 [declare_mgen_alias] (declare_mgen_alias): Define to use
28086 libm_alias_double.
28087 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28088 (M_LIBM_NEED_COMPAT): Remove macro.
28089 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28090 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28091 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28092 code.
28093 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28094 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28095 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28096 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28097 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28098 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28099 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28100 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28101 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28102 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28103 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28104 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28105 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28106 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28107 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28108 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28109 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28110 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28111 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28112 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28113 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28114 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28115 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28116 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28117 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28118 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28119 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28120 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28121 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28122 macro.
28123 (declare_mgen_alias): New macro.
28124 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28125 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28127 (M_LIBM_NEED_COMPAT): Remove macro.
28128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28129 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28130 <first-versions.h>.
28131 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28132 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28133
28134 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28135
28136 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28137 (declare_mgen_alias_2): Remove.
28138 * sysdeps/generic/math-type-macros-double.h
28139 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28140 Likewise.
28141 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28142 alias.
28143 (ldexp): Define with declare_mgen_alias.
28144 (scalbn): Likewise.
28145
28146 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28147
28148 * grp/initgroups.c: Include config.h.
28149 (DEFAULT_CONFIG): New macro.
28150 (internal_getgrouplist): Use DEFAULT_CONFIG.
28151 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28152 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28153 (DEFAULT_DEFCONFIG): New macro.
28154 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28155 * nss/grp-lookup.c: Include config.h
28156 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28157 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28158 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28159 * manual/nss.texi: Update default values section.
28160
28161 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28162
28163 [BZ #21967]
28164 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28165 New.
28166 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28167 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28168 Handle MathVec_Prefer_No_AVX512.
28169 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28170 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28171 is set.
28172
28173 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28174
28175 * posix/sched_primax.c (__sched_get_priority_max): Add
28176 libc_hidden_def.
28177 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28178 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28179 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28180 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28181 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28182 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28183 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28184 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28185 Add aliases.
28186
28187 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28188
28189 * sysdeps/generic/libm-alias-float.h: New file.
28190 * sysdeps/generic/math-type-macros-float.h: Include
28191 <libm-alias-float.h>.
28192 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28193
28194 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28195
28196 [BZ #22093]
28197 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28198 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28199 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28200 (HWCAP_IMPORTANT): Likewise.
28201 (HWCAP_X86_64): New enum.
28202 (HWCAP_X86_AVX512_1): Updated.
28203 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28204 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28205 (modules-names): Add x86_64/tst-x86_64mod-1.
28206 (LDFLAGS-tst-x86_64mod-1.so): New.
28207 ($(objpfx)tst-x86_64-1): Likewise.
28208 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28209 (tst-x86_64-1-clean): Likewise.
28210 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28211 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28212
28213 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28214
28215 * po/sv.po: Update translations.
28216 * po/fr.po: Likewise.
28217
28218 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28219
28220 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28221 seconds.
28222 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28223 seconds.
28224 * elf/rtld-Rules: Fix $(error) use.
28225
28226 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28227
28228 [BZ #14925]
28229 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28230 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28231 * localedata/locales/bn_BD: “Bengali” was still used in some
28232 comments. Change it to “Bangla”.
28233
28234 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28235
28236 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28237
28238 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28239
28240 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28241 thunderx2t99p1 to list of cpu names.
28242 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28243 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28244
28245 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28246
28247 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28248 Use strcmp instead of tunable_is_name.
28249
28250 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28251
28252 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28253 (F_GET_RW_HINT): New macro.
28254 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28255 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28256 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28257 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28258 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28259 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28260 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28261 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28262 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28263
28264 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28265 (F_ADD_SEALS): New macro.
28266 [__USE_GNU] (F_GET_SEALS): Likewise.
28267 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28268 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28269 [__USE_GNU] (F_SEAL_GROW): Likewise.
28270 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28271
28272 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28273
28274 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28275 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28276 * posix/glob_internal.h (__glob_pattern_type):
28277 * posix/glob.c (glob):
28278 * posix/glob_pattern_p.c (__glob_pattern_p):
28279 Use them.
28280
28281 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28282 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28283 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28284 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28285 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28287 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28288 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28289 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28290 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28291 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28292 * sysdeps/wordsize-64/glob.c: Likewise.
28293 * sysdeps/wordsize-64/glob64.c: Likewise.
28294 * sysdeps/wordsize-64/globfree.c: Likewise.
28295 * sysdeps/wordsize-64/globfree64.c: Likewise.
28296 * sysdeps/unix/sysv/linux/glob.c: New file.
28297 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28298 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28299 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28300 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28301 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28302 adds !GLOB_NO_OLD_VERSION as an extra condition.
28303 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28304 using relative path instead of absolute one.
28305 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28306 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28307 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28308 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28309 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28310 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28311
28312 [BZ #1062]
28313 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28314 (glob): Use the same scratch buffer for both getlogin_r and
28315 getpwnam_r. Don’t require preallocation of the login name. This
28316 simplifies storage allocation, and corrects the handling of
28317 long login names.
28318
28319 [BZ #1062]
28320 * posix/glob.c (glob): Port recent patches to platforms
28321 lacking getpwnam_r.
28322 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28323 returns an error number rather than setting errno.
28324
28325 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28326 instead of GCC extension.
28327 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28328 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28329 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28330
28331 [BZ #866]
28332 [BZ #1062]
28333 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28334 * posix/bug-glob1.c: Remove file.
28335 * posix/tst-glob_symlinks.c: New file.
28336 * posix/glob.c (__lstat64): New macro.
28337 (is_dir): New function.
28338 (glob, glob_in_dir): Match symlinks even if they are dangling.
28339 (link_stat, link_exists_p): Remove. All uses removed.
28340
28341 [BZ #1062]
28342 [BZ #19971]
28343 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28344 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28345 All uses removed.
28346
28347 [BZ #1062]
28348 CVE-2017-15671
28349 * posix/Makefile (routines): Add globfree, globfree64, and
28350 glob_pattern_p.
28351 * posix/flexmember.h: New file.
28352 * posix/glob_internal.h: Likewise.
28353 * posix/glob_pattern_p.c: Likewise.
28354 * posix/globfree.c: Likewise.
28355 * posix/globfree64.c: Likewise.
28356 * sysdeps/gnu/globfree64.c: Likewise.
28357 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28358 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28359 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28360 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28361 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28362 * sysdeps/wordsize-64/globfree.c: Likewise.
28363 * sysdeps/wordsize-64/globfree64.c: Likewise.
28364 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28365 [NDEBUG): Remove comments.
28366 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28367 (dirent_type): New type. Use uint_fast8_t not
28368 uint8_t, as C99 does not require uint8_t.
28369 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28370 (struct readdir_result): Use dirent_type. Do not define skip_entry
28371 unless it is needed; this saves a byte on platforms lacking d_ino.
28372 (readdir_result_type, readdir_result_skip_entry):
28373 New functions, replacing ...
28374 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28375 these functions, which were removed. This makes the callers
28376 easier to read. All callers changed.
28377 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28378 (size_add_wrapv, glob_use_alloca): New static functions.
28379 (glob, glob_in_dir): Check for size_t overflow in several places,
28380 and fix some size_t checks that were not quite right.
28381 Remove old code using SHELL since Bash no longer
28382 uses this.
28383 (glob, prefix_array): Separate MS code better.
28384 (glob_in_dir): Remove old Amiga and VMS code.
28385 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28386 separate files.
28387 (glob_in_dir): Do not rely on undefined behavior in accessing
28388 struct members beyond their bounds. Use a flexible array member
28389 instead
28390 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28391 0/1. Caller changed.
28392 (glob): Fix memory leaks.
28393 * posix/glob64 (globfree64): Move to separate file.
28394 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28395 (globfree64): Remove hidden alias.
28396 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28397 oldglob.
28398 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28399 separate file.
28400 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28401 define.
28402 Move compat code to separate file.
28403 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28404 separate file.
28405
28406 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28407
28408 * resolv/tst-resolv-qtypes.c (domain): Changed to
28409 "const char domain[] =".
28410
28411 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28412
28413 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28414 version to 3.1.6.
28415
28416 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28417 (TCP_MD5SIG_EXT): Likewise.
28418 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28419 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28420 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28421
28422 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28423
28424 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28425
28426 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28427
28428 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28429
28430 [BZ #22100]
28431 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28432
28433 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28434
28435 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28436 before assuming that the file is empty. Avoid testing buffer content
28437 when nread == 0.
28438
28439 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28440
28441 [BZ #18858]
28442 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28443 Remove define.
28444 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28445 Likewise.
28446 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28447 Likewise.
28448 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28449 Likewise.
28450 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28451 Likewise.
28452 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28453 Likewise.
28454 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28455 Likewise.
28456
28457 2017-09-06 Florian Weimer <fweimer@redhat.com>
28458
28459 * malloc/dynarray_emplace_enlarge.c
28460 (__libc_dynarray_emplace_enlarge): Add missing else.
28461
28462 2017-09-06 Florian Weimer <fweimer@redhat.com>
28463
28464 [BZ #22096]
28465 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28466 case of failure to obtain the global conf object.
28467
28468 2017-09-06 Florian Weimer <fweimer@redhat.com>
28469
28470 [BZ #22095]
28471 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28472 dynarray allocation failure.
28473
28474 2017-09-06 Florian Weimer <fweimer@redhat.com>
28475
28476 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28477 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28478 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28479 New functions.
28480 (response): Call them. Add 'p', '6' flag processing.
28481 (test_reverse): New function.
28482 (test_get2_any): Call it.
28483 (test_no_inet6): Add 'p' test.
28484 (test_inet6): Likewise.
28485
28486 2017-09-06 Florian Weimer <fweimer@redhat.com>
28487
28488 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28489 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28490 the QNAME.
28491 (test_gai): Adjust query names. Add additional tests.
28492 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28493 test_get2. Adjust query names. Add additional tests.
28494 (test_no_inet6): New function, extracted from threadfunc.
28495 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28496 Add additional tests.
28497
28498 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28499
28500 [BZ #22070]
28501 * localedata/unicode-gen/utf8_gen.py: Set the width for
28502 characters with Prepended_Concatenation_Mark property to 1
28503 * localedata/charmaps/UTF-8: Updated using the improved script.
28504
28505 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28506
28507 [BZ #21750]
28508 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28509 use the range notation for all ranges of neighbouring characters
28510 with the same width.
28511
28512 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28513
28514 * sysdeps/generic/math-type-macros-double.h: Include
28515 <math-svid-compat.h>.
28516 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28517 * sysdeps/generic/math-type-macros-float.h: Include
28518 <math-svid-compat.h>.
28519 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28520 * sysdeps/generic/math-type-macros-ldouble.h: Include
28521 <math-svid-compat.h>.
28522 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28523 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28524 condition.
28525 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28526 * math/w_acosf_compat.c: Likewise.
28527 * math/w_acosh_compat.c: Likewise.
28528 * math/w_acoshf_compat.c: Likewise.
28529 * math/w_acoshl_compat.c: Likewise.
28530 * math/w_acosl_compat.c: Likewise.
28531 * math/w_asin_compat.c: Likewise.
28532 * math/w_asinf_compat.c: Likewise.
28533 * math/w_asinl_compat.c: Likewise.
28534 * math/w_atan2_compat.c: Likewise.
28535 * math/w_atan2f_compat.c: Likewise.
28536 * math/w_atan2l_compat.c: Likewise.
28537 * math/w_atanh_compat.c: Likewise.
28538 * math/w_atanhf_compat.c: Likewise.
28539 * math/w_atanhl_compat.c: Likewise.
28540 * math/w_cosh_compat.c: Likewise.
28541 * math/w_coshf_compat.c: Likewise.
28542 * math/w_coshl_compat.c: Likewise.
28543 * math/w_exp10_compat.c: Likewise.
28544 * math/w_exp10f_compat.c: Likewise.
28545 * math/w_exp10l_compat.c: Likewise.
28546 * math/w_exp2_compat.c: Likewise.
28547 * math/w_exp2f_compat.c: Likewise.
28548 * math/w_exp2l_compat.c: Likewise.
28549 * math/w_fmod_compat.c: Likewise.
28550 * math/w_fmodf_compat.c: Likewise.
28551 * math/w_fmodl_compat.c: Likewise.
28552 * math/w_hypot_compat.c: Likewise.
28553 * math/w_hypotf_compat.c: Likewise.
28554 * math/w_hypotl_compat.c: Likewise.
28555 * math/w_j0_compat.c: Likewise.
28556 * math/w_j0f_compat.c: Likewise.
28557 * math/w_j0l_compat.c: Likewise.
28558 * math/w_j1_compat.c: Likewise.
28559 * math/w_j1f_compat.c: Likewise.
28560 * math/w_j1l_compat.c: Likewise.
28561 * math/w_jn_compat.c: Likewise.
28562 * math/w_jnf_compat.c: Likewise.
28563 * math/w_jnl_compat.c: Likewise.
28564 * math/w_lgamma_r_compat.c: Likewise.
28565 * math/w_lgammaf_r_compat.c: Likewise.
28566 * math/w_lgammal_r_compat.c: Likewise.
28567 * math/w_log10_compat.c: Likewise.
28568 * math/w_log10f_compat.c: Likewise.
28569 * math/w_log10l_compat.c: Likewise.
28570 * math/w_log2_compat.c: Likewise.
28571 * math/w_log2f_compat.c: Likewise.
28572 * math/w_log2l_compat.c: Likewise.
28573 * math/w_log_compat.c: Likewise.
28574 * math/w_logf_compat.c: Likewise.
28575 * math/w_logl_compat.c: Likewise.
28576 * math/w_pow_compat.c: Likewise.
28577 * math/w_powf_compat.c: Likewise.
28578 * math/w_powl_compat.c: Likewise.
28579 * math/w_remainder_compat.c: Likewise.
28580 * math/w_remainderf_compat.c: Likewise.
28581 * math/w_remainderl_compat.c: Likewise.
28582 * math/w_sinh_compat.c: Likewise.
28583 * math/w_sinhf_compat.c: Likewise.
28584 * math/w_sinhl_compat.c: Likewise.
28585 * math/w_sqrt_compat.c: Likewise.
28586 * math/w_sqrtf_compat.c: Likewise.
28587 * math/w_sqrtl_compat.c: Likewise.
28588 * math/w_tgamma_compat.c: Likewise.
28589 * math/w_tgammaf_compat.c: Likewise.
28590 * math/w_tgammal_compat.c: Likewise.
28591 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28592 [LIBM_SVID_COMPAT].
28593 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28594 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28595 [LIBM_SVID_COMPAT].
28596 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28597 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28598 [LIBM_SVID_COMPAT].
28599 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28600 * sysdeps/i386/fpu/w_sqrt.c: New file.
28601 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28602 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28603 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28604 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28605 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28606 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28607 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28608 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28609 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28610 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28611 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28612 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28613 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28614 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28615 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28616 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28617 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28618 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28619 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28620 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28621 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28622 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28623 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28624 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28625 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28626 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28627 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28628 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28629 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28630 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28631 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28632 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28633 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28634 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28635 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28636 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28637 * sysdeps/ia64/fpu/w_log.c: Likewise.
28638 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28639 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28640 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28641 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28642 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28643 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28644 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28645 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28646 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28647 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28648 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28649 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28650 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28651 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28652 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28653 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28654 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28655 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28656 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28657 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28658 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28659 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28660 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28661 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28662 [LIBM_SVID_COMPAT].
28663 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28664 * sysdeps/ieee754/k_standard.c: Likewise.
28665 * sysdeps/ieee754/k_standardf.c: Likewise.
28666 * sysdeps/ieee754/k_standardl.c: Likewise.
28667 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28668 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28669 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28670 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28671 long_double_symbol call on [LIBM_SVID_COMPAT].
28672 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28673 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28674 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28675 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28676 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28677 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28678 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28679 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28680 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28681 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28682 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28683 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28684 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28685 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28686 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28687 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28688 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28689 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28690 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28691 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28692 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28693 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28694
28695 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28696
28697 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28698 * malloc/tst-mallocstate.c: Convert from test-skeleton
28699 to test-driver. Ifdef code using TEST_COMPAT macro.
28700 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28701 * math/test-matherr.c: Likewise.
28702
28703 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28704
28705 [BZ #22086]
28706 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28707 comparing word with byte-swapped constant.
28708
28709 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28710
28711 [BZ #20498]
28712 * locale/iso-639.def: add Miskito.
28713 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28714 * localedata/locales/miq_NI: New file.
28715
28716 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28717
28718 [BZ #18822]
28719 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28720 (__mkdir): Likewise.
28721 * io/chmod.c (__chmod): Add libc_hidden_def.
28722 * io/mkdir.c (__mkdir): Likewise.
28723 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28724 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28725 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28726 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28727
28728 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28729
28730 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28731 version to 4.13.
28732
28733 [BZ #22082]
28734 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28735 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28736
28737 2017-09-04 Florian Weimer <fweimer@redhat.com>
28738
28739 * math/math.h: Issue warning if log is defined.
28740
28741 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28742
28743 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28744 kernel version to 4.13.
28745
28746 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28747
28748 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28749 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28750 parameter.
28751 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28752 just <bits/types.h>.
28753 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28754 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28755 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28756 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28757 * misc/preadv2.c: Include <errno.h>.
28758 * misc/preadv64v2.c: Include <errno.h>.
28759 * misc/pwritev2.c: Include <errno.h>.
28760 * misc/pwritev64v2.c: Include <errno.h>.
28761 * sysdeps/posix/preadv2.c: Include <errno.h>.
28762 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28763 Fix <unistd.h> inclusion.
28764 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28765 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28766 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28767 __strtoul_internal): New functions.
28768 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28769 * sysdeps/posix/system.c: Include <sigsetops.h>.
28770 * sysdeps/mach/hurd/i386/Makefile
28771 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28772 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28773 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28774 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28775 __feraiseexcept_renamed to feraiseexcept instead of
28776 __GI_feraiseexcept.
28777 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28778 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28779 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28780 RWF_NOWAIT): Define to 0 if undefined already.
28781 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28782 boils down to 0.
28783 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28784 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28785
28786 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28787
28788 * manual/math.texi (pow10): Do not document.
28789 (pow10f): Likewise.
28790 (pow10l): Likewise.
28791 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28792 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28793 * math/libm-test-exp10.inc (pow10_test): Remove.
28794 (do_test): Do not call pow10.
28795 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28796 [NO_LONG_DOUBLE] (pow10l): Likewise.
28797 * math/w_exp10f_compat.c (pow10f): Likewise.
28798 * math/w_exp10l_compat.c (pow10l): Likewise.
28799 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28800 (pow10): Make into compat symbol.
28801 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28802 (pow10f): Make into compat symbol.
28803 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28804 (pow10l): Make into compat symbol.
28805 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28806 pow10.
28807 (CFLAGS-nldbl-pow10.c): Remove variable..
28808 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28809 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28810 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28811 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28812 Undefine and redefine.
28813 (pow10l): Make into compat symbol.
28814 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28815 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28816 * sysdeps/arm/libm-test-ulps: Likewise.
28817 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28818 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28819 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28820 * sysdeps/microblaze/libm-test-ulps: Likewise.
28821 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28822 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28823 * sysdeps/nios2/libm-test-ulps: Likewise.
28824 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28825 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28826 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28827 * sysdeps/sh/libm-test-ulps: Likewise.
28828 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28829 * sysdeps/tile/libm-test-ulps: Likewise.
28830 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28831
28832 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28833
28834 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28835
28836 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28837
28838 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28839 "../ChangeLog.old/ChangeLog.8".
28840 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28841 "../ChangeLog.old/ChangeLog.14".
28842
28843 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28844
28845 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28846 Threads Library.
28847
28848 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28849
28850 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28851
28852 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28853
28854 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28855 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28856
28857 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28858
28859 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28860 32 atexit handlers.
28861
28862 2017-09-01 Zack Weinberg <zackw@panix.com>
28863
28864 * math/math.h (HUGE_VAL): Improve commentary.
28865
28866 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28867 Andreas Schwab <schwab@suse.de>
28868
28869 [BZ #21530]
28870 * include/stdio.h (__gen_tempfd): New function.
28871 * stdio-common/Makefile (routines): Add gentempfd.
28872 * stdio-common/gentempfd.c: New file.
28873 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28874 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28875 unnamed file first.
28876
28877 2017-09-01 Florian Weimer <fweimer@redhat.com>
28878
28879 [BZ #21915]
28880 [BZ #21922]
28881 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28882 result to determine success or failure, not the errno value.
28883 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28884 (tst-nss-files-hosts-erange): Link with -ldl.
28885 * nss/tst-nss-files-hosts-erange.c: New file.
28886 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28887 (do_test): Add NO_DATA tests.
28888 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28889 (do_test): Call it.
28890
28891 2017-09-01 Florian Weimer <fweimer@redhat.com>
28892
28893 [BZ #21922]
28894 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28895 coming from gethostbyname2_r.
28896
28897 2017-09-01 Florian Weimer <fweimer@redhat.com>
28898
28899 * support/namespace.h (struct support_chroot_configuration): Add
28900 hosts, host_conf.
28901 (struct support_chroot): Add path_hosts, path_host_conf.
28902 * support/support_chroot.c (write_file): New function.
28903 (support_chroot_create): Call it to process /etc/resolv.conf,
28904 /etc/hosts, /etc/host.conf.
28905 (support_chroot_free): Update.
28906
28907 2017-09-01 Florian Weimer <fweimer@redhat.com>
28908
28909 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28910 status indicates it is set.
28911
28912 2017-09-01 Florian Weimer <fweimer@redhat.com>
28913
28914 [BZ #20532]
28915 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28916 function lookup failures more reliable.
28917
28918 2017-09-01 Florian Weimer <fweimer@redhat.com>
28919
28920 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28921 (getcanonname): Likewise.
28922 (gaih_inet): Likewise.
28923
28924 2017-09-01 Florian Weimer <fweimer@redhat.com>
28925
28926 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28927 (getcanonname): Likewise.
28928 (gaih_inet): Likewise.
28929
28930 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28931 Richard Henderson <rth@twiddle.net>
28932
28933 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28934 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28935 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28936 (IREG_SIZE, OREG_SIZE): New macros.
28937 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28938 (IREG_SIZE, OREG_SIZE): New macros.
28939 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28940 (IREG_SIZE): New macro.
28941 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28942 (IREG_SIZE): New macro.
28943 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28944 New includes.
28945 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28946 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28947 (__CONCATX): Handle exceptions correctly on large values that may
28948 set FE_INVALID.
28949 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28950 Initialize if not already set.
28951 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28952
28953 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28954
28955 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28956 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28957 Likewise.
28958 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28959 Likewise.
28960 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28961 Likewise.
28962 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28963 Likewise.
28964 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28965 Likewise.
28966 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28967 Likewise.
28968 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28969 Likewise.
28970 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28971 (NO_CANCELLATION): Likewise.
28972 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28973 Likewise.
28974 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28975 Likewise.
28976 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28977 Likewise.
28978 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28979 (NO_CANCELLATION): Likewise.
28980 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28981 (NO_CANCELLATION): Likewise.
28982 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28983 Likewise
28984 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28985 Likewise.
28986 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28987 Likewise.
28988 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28989 Likewise.
28990 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28991 hidden prototype.
28992 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28993 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28994
28995 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28996
28997 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28998 in resolver call.
28999
29000 2017-08-31 Florian Weimer <fweimer@redhat.com>
29001
29002 * include/libc-symbols.h (internal_function): Remove.
29003
29004 2017-08-31 Florian Weimer <fweimer@redhat.com>
29005
29006 * stdlib/fmtmsg.c (internal_addseverity): Remove
29007 internal_function.
29008
29009 2017-08-31 Florian Weimer <fweimer@redhat.com>
29010
29011 * stdio-common/printf_fp.c (group_number): Remove
29012 internal_function.
29013 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29014
29015 2017-08-31 Florian Weimer <fweimer@redhat.com>
29016
29017 * posix/fnmatch.c (internal_function): Remove definition.
29018 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29019 * posix/regcomp.c (peek_token, init_word_char)
29020 (duplicate_node_closure, fetch_token, peek_token)
29021 (peek_token_bracket, build_range_exp, build_collating_symbol):
29022 Likewise.
29023 * posix/regex_internal.c (re_string_construct_common)
29024 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29025 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29026 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29027 (re_string_translate_buffer, re_string_reconstruct)
29028 (re_string_peek_byte_case, re_string_fetch_byte_case)
29029 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29030 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29031 (re_node_set_add_intersect, re_node_set_init_union)
29032 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29033 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29034 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29035 (re_acquire_state_context): Likewise.
29036 * posix/regex_internal.h (internal_function): Remove definition.
29037 (re_string_realloc_buffers, build_wcs_buffer)
29038 (build_wcs_upper_buffer, build_upper_buffer)
29039 (re_string_translate_buffer, re_string_context_at)
29040 (re_string_char_size_at, re_string_wchar_at)
29041 (re_string_elem_size_at): Likewise.
29042 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29043 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29044 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29045 (re_search_internal, re_search_2_stub, re_search_stub)
29046 (re_copy_regs, prune_impossible_nodes, check_matching)
29047 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29048 (free_fail_stack_return, sift_states_iter_mb)
29049 (sift_states_backward, build_sifted_states)
29050 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29051 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29052 (check_subexp_limits, sift_states_bkref, merge_state_array)
29053 (find_recover_state, transit_state, merge_state_with_log)
29054 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29055 (transit_state_mb, transit_state_bkref, get_subexp)
29056 (get_subexp_sub, find_subexp_node, check_arrival)
29057 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29058 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29059 (check_node_accept_bytes, find_collation_sequence_value)
29060 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29061 (acquire_init_state_context, check_halt_node_context)
29062 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29063 (sub_epsilon_src_nodes): Likewise.
29064 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29065 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29066 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29067 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29068 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29069 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29070 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29071 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29072 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29073 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29074 (PREADV): Likewise.
29075 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29076 (PREADV): Likewise.
29077 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29078 (PWRITEV): Likewise.
29079 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29080 (PWRITEV): Likewise.
29081 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29082 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29083
29084 2017-08-31 Florian Weimer <fweimer@redhat.com>
29085
29086 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29087 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29088 Remove internal_function.
29089 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29090 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29091 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29092 (__deallocate_stack, __libc_pthread_init)
29093 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29094 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29095 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29096 Likewise.
29097 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29098 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29099 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29100 Likewise.
29101 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29102 (__pthread_mutex_unlock_usercnt): Likewise.
29103
29104 2017-08-31 Florian Weimer <fweimer@redhat.com>
29105
29106 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29107 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29108 (fts_safe_changedir): Remove internal_function.
29109 * io/ftw.c (internal_function): Remove definition.
29110 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29111
29112 2017-08-31 Florian Weimer <fweimer@redhat.com>
29113
29114 * inet/deadline.c (__deadline_current_time)
29115 (__deadline_from_timeval, __deadline_to_ms): Remove
29116 internal_function.
29117 * inet/getnameinfo.c (nrl_domainname): Likewise.
29118 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29119 * inet/inet6_option.c (add_pad): Likewise.
29120 * inet/net-internal.h (__deadline_current_time)
29121 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29122 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29123 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29124 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29125
29126 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29127
29128 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29129 include <bits/nan.h>.
29130 * math/Makefile (headers): Remove bits/nan.h.
29131 * bits/nan.h: Remove.
29132 * sysdeps/ieee754/bits/nan.h: Likewise.
29133 * sysdeps/mips/bits/nan.h: Likewise.
29134
29135 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29136 not include <bits/inf.h>.
29137 * math/Makefile (headers): Remove bits/inf.h.
29138 * bits/inf.h: Remove.
29139 * sysdeps/ieee754/bits/inf.h: Likewise.
29140
29141 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29142 bits/huge_vall.h or bits/huge_val_flt128.h.
29143 (HUGE_VAL): Define directly here.
29144 [__USE_ISOC99] (HUGE_VALF): Likewise.
29145 [__USE_ISOC99] (HUGE_VALL): Likewise.
29146 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29147 (HUGE_VAL_F128): Likewise.
29148 * math/Makefile (headers): Remove bits/huge_val.h,
29149 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29150 * bits/huge_val.h: Remove.
29151 * bits/huge_val_flt128.h: Likewise.
29152 * bits/huge_valf.h: Likewise.
29153 * bits/huge_vall.h: Likewise.
29154 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29155 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29156 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29157 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29158 * sysdeps/sh/bits/huge_val.h: Likewise.
29159 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29160 * sysdeps/x86/bits/huge_vall.h: Likewise.
29161
29162 2017-08-31 Florian Weimer <fweimer@redhat.com>
29163
29164 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29165 internal_function.
29166 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29167 Likewise.
29168 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29169 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29170 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29171 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29172 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29173 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29174 * elf/dl-libc.c (dlerror_run): Likewise.
29175 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29176 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29177 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29178 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29179 Likewise.
29180 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29181 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29182 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29183 * elf/dl-profile.c (_dl_start_profile): Likewise.
29184 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29185 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29186 Likewise.
29187 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29188 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29189 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29190 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29191 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29192 (_dl_allocate_tls_storage): Likewise.
29193 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29194 (_dl_check_all_versions): Likewise.
29195 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29196 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29197 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29198 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29199 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29200 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29201 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29202 internal_function from __dl_start.
29203 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29204 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29205 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29206 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29207 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29208 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29209 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29210 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29211 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29212 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29213 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29214 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29215 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29216 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29217 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29218 Likewise.
29219 (struct rtld_global_ro): Remove internal_function from the
29220 _dl_lookup_symbol_x member.
29221 (_dl_symbol_value): Remove. No longer defined anywhere.
29222 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29223 internal_function.
29224 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29225 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29226 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29227 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29228 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29229 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29230 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29231 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29232 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29233 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29234 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29235 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29236
29237 2017-08-31 Florian Weimer <fweimer@redhat.com>
29238
29239 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29240 Remove internal_function.
29241 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29242 Likewise.
29243 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29244 Likewise.
29245
29246 2017-08-31 Florian Weimer <fweimer@redhat.com>
29247
29248 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29249 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29250 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29251
29252 2017-08-31 Florian Weimer <fweimer@redhat.com>
29253
29254 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29255 (__gai_enqueue_request): Remove internal_function.
29256 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29257 (__gai_remove_request, __gai_notify, __gai_notify_only)
29258 (__gai_sigqueue): Likewise.
29259 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29260 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29261 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29262 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29263 Likewise.
29264
29265 2017-08-31 Florian Weimer <fweimer@redhat.com>
29266
29267 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29268 * include/dirent.h (__opendirat, __getdents, __getdents64)
29269 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29270 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29271 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29272 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29273 Likewise.
29274 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29275
29276 2017-08-31 Florian Weimer <fweimer@redhat.com>
29277
29278 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29279 internal_function.
29280 (GETCWD_RETURN_TYPE): Likewise.
29281
29282 2017-08-31 Florian Weimer <fweimer@redhat.com>
29283
29284 * include/time.h (__tz_compute, __strptime_internal): Remove
29285 internal_function.
29286 * time/strptime_l.c (__strptime_internal): Likewise.
29287 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29288
29289 2017-08-31 Florian Weimer <fweimer@redhat.com>
29290
29291 * iconv/gconv.c (__gconv): Remove internal_function.
29292 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29293 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29294 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29295 (__gconv_release_cache): Likewise.
29296 * iconv/gconv_close.c (__gconv_close): Likewise.
29297 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29298 (read_conf_file, __gconv_get_path): Likewise.
29299 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29300 (__gconv_release_step, gen_steps, increment_counter)
29301 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29302 (__gconv_close_transform, free_modules_db): Likewise.
29303 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29304 Likewise.
29305 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29306 (__gconv_find_transform, __gconv_lookup_cache)
29307 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29308 (__gconv_close_transform, __gconv_release_cache)
29309 (__gconv_loaded_object, __gconv_release_shlib)
29310 (__gconv_compare_alias): Likewise.
29311 * iconv/gconv_open.c (__gconv_open): Likewise.
29312 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29313 * iconv/iconvconfig.c (add_module): Likewise.
29314 * intl/dcigettext.c (plural_lookup, guess_category_value)
29315 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29316 * intl/eval-plural.h (plural_eval): Likewise.
29317 * intl/finddomain.c (_nl_find_domain): Likewise.
29318 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29319 (_nl_load_domain, _nl_find_msg): Likewise.
29320 (internal_function): Remove definition.
29321 * intl/loadinfo.h (internal_function): Likewise.
29322 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29323 internal_function.
29324 * intl/localealias.c (internal_function): Remove definition.
29325 (read_alias_file): Remove internal_function.
29326 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29327 * intl/plural-exp.h (internal_function): Remove definition.
29328 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29329 internal_function.
29330 * intl/plural.c: Regenerate.
29331 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29332 * locale/coll-lookup.c (__collidx_table_lookup)
29333 (__collseq_table_lookup): Likewise.
29334 * locale/coll-lookup.h (__collidx_table_lookup)
29335 (__collseq_table_lookup): Likewise.
29336 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29337 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29338 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29339 (_nl_unload_locale): Likewise.
29340 * locale/localeinfo.h (struct __locale_data): Remove
29341 internal_function from cleanup member.
29342 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29343 (_nl_remove_locale, _nl_load_locale_from_archive)
29344 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29345 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29346 (_nl_cleanup_time): Remove internal_function.
29347 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29348 (_nl_parse_alt_digit): Likewise.
29349 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29350 (_nl_select_era_entry): Likewise.
29351 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29352 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29353 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29354 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29355 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29356
29357 2017-08-31 Florian Weimer <fweimer@redhat.com>
29358
29359 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29360 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29361 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29362 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29363 Likewise.
29364 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29365 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29366 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29367 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29368 Likewise.
29369 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29370
29371 2017-08-31 Florian Weimer <fweimer@redhat.com>
29372
29373 * misc/getttyent.c (skip, value): Remove internal_function.
29374 * misc/syslog.c (openlog_internal): Likewise.
29375 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29376
29377 2017-08-31 Florian Weimer <fweimer@redhat.com>
29378
29379 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29380 (__nss_rewrite_field): Remove internal_function.
29381 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29382 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29383 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29384 * nss/nsswitch.c (nss_parse_file, nss_getline)
29385 (nss_parse_service_list, nss_new_service): Likewise.
29386 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29387 * nss/valid_field.c (__nss_valid_field): Likewise.
29388 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29389
29390 2017-08-31 Florian Weimer <fweimer@redhat.com>
29391
29392 * malloc/arena.c (__malloc_fork_lock_parent)
29393 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29394 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29395 internal_function from defintions.
29396 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29397 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29398 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29399 internal_function from declarations.
29400 * malloc/malloc.c (internal_function): Do not define.
29401 (mem2mem_check): Remove internal_function from declaration.
29402 (munmap_chunk, mremap_chunk): Remove internal_function.
29403 * malloc/mtrace.c (tr_where): Likewise.
29404
29405 2017-08-31 Florian Weimer <fweimer@redhat.com>
29406
29407 * include/rpc/pmap_clnt.h (__get_socket): Remove
29408 internal_function.
29409 * sunrpc/auth_des.c (synchronize): Likewise.
29410 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29411 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29412 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29413 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29414 (key_call): Likewise.
29415 * sunrpc/pm_getport.c (__get_socket): Likewise.
29416 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29417 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29418 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29419 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29420 (invalidate): Likewise.
29421 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29422 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29423 (set_input_fragment, get_input_bytes): Likewise.
29424
29425 2017-08-31 Florian Weimer <fweimer@redhat.com>
29426
29427 * malloc/malloc.c (_int_free): Remove locked variable and related
29428 asserts.
29429
29430 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29431
29432 [BZ #22051]
29433 * Makerules (build-module-helper-objlist): Filter out
29434 $(elf-objpfx)sofini.os.
29435 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29436 needed.
29437
29438 2017-08-31 Florian Weimer <fweimer@redhat.com>
29439
29440 * libio/fcloseall.c: Assume weak_alias is defined.
29441 * libio/feof.c: Likewise.
29442 * libio/fileno.c: Likewise.
29443 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29444 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29445 definitions.
29446 (_IO_file_open): Call __open directly.
29447 (_IO_new_file_sync): Assume ESPIPE is defined.
29448 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29449 (_IO_new_file_write): Call __write directly.
29450 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29451 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29452 * libio/genops.c: Assume _LIBC is defined.
29453 (save_for_backup): Remove internal_function.
29454 * libio/getc.c: Assume weak_alias is defined.
29455 * libio/getwc.c: Likewise.
29456 * libio/iofclose.c: Assume _LIBC is defined.
29457 * libio/iofdopen.c: Likewise.
29458 (_IO_fcntl): Remove macro definition.
29459 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29460 Call __fcntl directly.
29461 * libio/iofflush.c: Assume weak_alias is defined.
29462 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29463 defined.
29464 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29465 * libio/iofgets.c: Likewise.
29466 * libio/iofopen.c: Assume _LIBC is defined.
29467 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29468 * libio/iofputs.c: Assume weak_alias is defined.
29469 * libio/iofread.c: Likewise.
29470 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29471 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29472 * libio/ioftell.c: Assume weak_alias is defined.
29473 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29474 * libio/iofwide.c: Assume _LIBC is defined.
29475 (_IO_fwide): Drop SHARED conditional because it is implied by
29476 SHLIB_COMPAT.
29477 * libio/iofwrite.c: Assume weak_alias is defined.
29478 * libio/iogetdelim.c: Likewise.
29479 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29480 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29481 (_IO_getwline): Call __wmemcpy directly.
29482 * libio/iopopen.c: Assume _LIBC is defined.
29483 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29484 (_IO_close): Remove macro definitions.
29485 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29486 _exit directly.
29487 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29488 directly.
29489 * libio/ioputs.c: Assume weak_alias is defined.
29490 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29491 * libio/iosetbuffer.c: Assume weak_alias is defined.
29492 * libio/iosetvbuf.c: Likewise.
29493 * libio/ioungetc.c: Likewise.
29494 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29495 libc_hidden_def, libc_hidden_weak, NULL are defined.
29496 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29497 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29498 defined.
29499 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29500 definitions.
29501 (_IO_old_file_init_internal): Drop SHARED conditional because it
29502 is implied by SHLIB_COMPAT.
29503 (_IO_old_file_fopen): Call __open directly.
29504 (_IO_old_file_sync): Assume ESPIPE is defined.
29505 (_IO_old_file_write): Call __write directly.
29506 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29507 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29508 Call __fcntl directly.
29509 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29510 (_IO_old_fgetpos): Assume EIO is defined.
29511 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29512 (_IO_old_fgetpos64): Assume EIO is defined.
29513 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29514 (_IO_old_fsetpos): Assume EIO is defined.
29515 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29516 (_IO_old_fsetpos64): Assume EIO is defined.
29517 * libio/oldiopopen.c: Assume _LIBC is defined.
29518 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29519 (_IO_close): Remove macro definitions.
29520 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29521 directly.
29522 (_IO_old_proc_close): Call __close, __waitpid directly.
29523 * libio/put.c: Assume weak_alias is defined.
29524 * libio/stdfiles.c: Assume _LIBC is defined.
29525 * libio/stdio.c: Likewise.
29526 * libio/wfileops.c: Likewise.
29527 (_IO_wfile_sync): Assume ESPIPE is defined.
29528 * libio/wgenops.c: Assume _LIBC is defined.
29529 (save_for_wbackup): Remove internal_function.
29530
29531 2017-08-31 Florian Weimer <fweimer@redhat.com>
29532
29533 * malloc/malloc.c (top_check): Change return type to void. Remove
29534 internal_function.
29535 * malloc/hooks.c (top_check): Likewise.
29536 (malloc_check, realloc_check, memalign_check): Adjust.
29537
29538 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29539
29540 [BZ #21457]
29541 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29542 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29543 sigcontext and namespace requirements.
29544 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29545 * sysdeps/m68k/sys/ucontext.h: Likewise.
29546 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29547 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29548 <bits/sigcontext.h>.
29549 (__ctx): Define earlier.
29550 (mcontext_t): Define structure contents rather than using struct
29551 sigcontext.
29552 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29553 __glibc_reserved1 instead of __reserved.
29554 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29555 <bits/sigcontext.h>.
29556 (__ctx): Define earlier.
29557 (mcontext_t): Define structure contents rather than using struct
29558 sigcontext.
29559 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29560 mcontext_t instead of struct sigcontext.
29561 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29562 <bits/sigcontext.h>.
29563 (__ctx): Define earlier.
29564 (mcontext_t): Define structure contents rather than using struct
29565 sigcontext.
29566 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29567 <bits/sigcontext.h>.
29568 (__ctx): Define earlier.
29569 (mcontext_t): Define structure contents rather than using struct
29570 sigcontext.
29571 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29572 mcontext_t instead of struct sigcontext.
29573 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29574 mcontext_t instead of struct sigcontext.
29575 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29576 <bits/sigcontext.h>.
29577 (__ctx): New macro.
29578 (struct __ia64_fpreg_mcontext): New type.
29579 (mcontext_t): Define structure contents rather than using struct
29580 sigcontext.
29581 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29582 (uc_sigmask): Define using __ctx.
29583 (uc_stack): Likewise.
29584 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29585 <bits/sigcontext.h>.
29586 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29587 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29588 <bits/sigcontext.h>.
29589 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29590 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29591 <bits/sigcontext.h>.
29592 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29593 <bits/sigcontext.h>.
29594 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29595 <bits/sigcontext.h>.
29596 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29597 <bits/sigcontext.h>.
29598 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29599 <bits/sigcontext.h>.
29600 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29601 <bits/sigcontext.h>.
29602 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29603 <bits/sigcontext.h>.
29604 (__ctx): Define earlier.
29605 (mcontext_t): Define structure contents rather than using struct
29606 sigcontext.
29607 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29608 <bits/sigcontext.h>. Include <bits/types.h>.
29609 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29610 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29611 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29612 (test-xfail-UNIX98/signal.h/conform): Likewise.
29613 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29614 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29615 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29616 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29617 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29618 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29619 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29620 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29621 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29622
29623 2017-08-30 Florian Weimer <fweimer@redhat.com>
29624
29625 * malloc/dynarray_emplace_enlarge.c
29626 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29627 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29628 * malloc/tst-dynarray.c (test_long_overflow): New function.
29629 (do_test): Call it.
29630
29631 2017-08-30 Florian Weimer <fweimer@redhat.com>
29632
29633 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29634 (set_arena_corrupt): Remove definitions.
29635 (mtrim): Do not check for corrupt arena.
29636 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29637 Likewise.
29638
29639 2017-08-30 Florian Weimer <fweimer@redhat.com>
29640
29641 [BZ #21754]
29642 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29643 check_action.
29644 (ptmalloc_init): Do not set or use check_action.
29645 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29646 call to malloc_printerr. Remove return statement.
29647 (free_check): Likewise. Remove arena unlock.
29648 (top_check): Update comment. Adjust call to malloc_printerr.
29649 Remove heap repair code.
29650 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29651 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29652 (sysmalloc): Adjust call to malloc_printerr.
29653 (munmap_chunk, __libc_realloc): Likewise. Remove return
29654 statement.
29655 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29656 Remove errout label and corresponding gotos.
29657 (_int_free): Likewise. Remove arena unlock.
29658 (do_set_mallopt_check): Do not set check_action.
29659 (malloc_printerr): Adjust parameter list. Do not mark arena as
29660 corrupt.
29661 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29662 comment.
29663 * manual/probes.texi (Memory Allocation Probes): Remove
29664 memory_mallopt_check_action.
29665
29666 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29667
29668 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29669 Use pointer to uint64_t instead of long int for sp.
29670
29671 2017-08-30 Florian Weimer <fweimer@redhat.com>
29672
29673 [BZ #21754]
29674 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29675 without printing a backtrace. Do not leak any information in the
29676 error message.
29677 * manual/memory.texi (Heap Consistency Checking): Update.
29678 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29679
29680 2017-08-30 Florian Weimer <fweimer@redhat.com>
29681
29682 Do not scale NPTL tests with available number of CPUs.
29683 * nptl/tst-cond16.c (count): Set to constant value of 8.
29684 * nptl/tst-cond18.c (count): Likewise.
29685
29686 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29687
29688 [BZ #22035]
29689 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29690 Define to take a second argument that is a macro that
29691 concatentates a suffix, not the suffix itself.
29692 (__CONCAT_d): New macro.
29693 (__CONCAT_f): Likewise.
29694 (__CONCAT_l): Likewise.
29695
29696 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29697
29698 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29699 by child.
29700
29701 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29702 Aurelien Jarno <aurelien@aurel32.net>
29703 Maciej W. Rozycki <macro@imgtec.com>
29704
29705 [BZ #21956]
29706 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29707 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29708 `mips16-syscall6' and `mips16-syscall7'.
29709 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29710 (CFLAGS-mips16-syscall7.c): Remove.
29711 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29712 Remove `__mips16_syscall5', `__mips16_syscall6' and
29713 `__mips16_syscall7'.
29714 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29715 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29716 `__mips_syscall_return'.
29717 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29718 (__mips16_syscall1): Likewise.
29719 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29720 (__mips16_syscall2): Likewise.
29721 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29722 (__mips16_syscall3): Likewise.
29723 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29724 (__mips16_syscall4): Likewise.
29725 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29726 Remove.
29727 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29728 Remove.
29729 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29730 Remove.
29731 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29732 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29733 `__mips16_syscall5'. Remove prototype.
29734 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29735 `__mips16_syscall6'. Remove prototype.
29736 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29737 `__mips16_syscall7'. Remove prototype.
29738 (__nomips16, __mips16_syscall_return): Move to...
29739 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29740 (__nomips16, __mips_syscall_return): ... here.
29741 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29742 `__mips16_syscall_return' to `__mips_syscall_return'.
29743 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29744 `internal_syscall##nr'.
29745 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29746 `internal_syscall##nr'.
29747 (FORCE_FRAME_POINTER): Remove.
29748 (__mips_syscall5): New prototype.
29749 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29750 (__mips_syscall6): New prototype.
29751 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29752 (__mips_syscall7): New prototype.
29753 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29754 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29755 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29756 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29757 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29758 (sysdep_routines): Add libc-do-syscall.
29759 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29760 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29761
29762 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29763
29764 [BZ #21672]
29765 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29766 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29767 (advise_stack_range): New function.
29768 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29769 stack non required to advise_stack_range at allocatestack.c
29770
29771 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29772
29773 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29774
29775 2017-08-29 Florian Weimer <fweimer@redhat.com>
29776
29777 [BZ #22026]
29778 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29779 __end_fct. Mangle __end_fct after setting it to NULL.
29780 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29781 (modules-names, modules-names-tests): Add
29782 tst-gconv-init-failure-mod.
29783 (gconv-modules): New target.
29784 (tst-gconv-init-failure-mod.so): Link against libsupport.
29785 (tst-gconv-init-failure): Depend on gconv-modules,
29786 tst-gconv-init-failure-mod.so.
29787 * iconv/tst-gconv-init-failure-mod.c: New file.
29788 * iconv/tst-gconv-init-failure.c: Likewise.
29789 * iconv/test-gconv-modules: Likewise.
29790
29791 2017-08-29 Florian Weimer <fweimer@redhat.com>
29792
29793 [BZ #22025]
29794 * iconv/gconv_db.c (free_derivation): Remove redundant
29795 parentheses.
29796 (gen_steps): Unconditionally mangle __btowc_fct after
29797 initialization.
29798 (increment_counter): Likewise. Do not call init_fct for internal
29799 modules.
29800
29801 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29802
29803 [BZ #22028]
29804 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29805 (_MSUF_): Remove macro.
29806 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29807 Likewise.
29808 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29809 (__REDIRFROM_X): New macro.
29810 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29811 Likewise.
29812 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29813 (__REDIRTO_X): Likewise.
29814 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29815 arguments.
29816 (__MATH_REDIRCALL_2): Likewise.
29817 (__MATH_REDIRCALL_INTERNAL): Likewise.
29818 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29819 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29820 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29821 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29822 * math/test-finite-macros.c: New file.
29823 * math/Makefile (tests): Add test-finite-macros.
29824 (CFLAGS-test-finite-macros.c): New variable.
29825
29826 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29827 Jeff Law <law@redhat.com>
29828
29829 [BZ #22025]
29830 Mangle NULL pointers in iconv/gconv.
29831 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29832 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29833 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29834 is non-NULL before demangling the end_fct. Check for NULL
29835 end_fct after demangling.
29836 (__gconv_release_step): Demangle the end_fct before checking
29837 it for NULL. Remove assert on __shlibc_handle != NULL.
29838 (gen_steps): Don't check btowc_fct for NULL before mangling.
29839 Demangle init_fct before checking for NULL.
29840 (increment_counter): Likewise.
29841 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29842 end_fct for NULL before mangling.
29843 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29844 for NULL.
29845
29846 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29847
29848 [BZ #21971]
29849 * locale/iso-639.def: add Morisyen.
29850
29851 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29852
29853 [BZ #21930]
29854 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29855 (iszero): New C++ implementation that does not use
29856 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29857 signaling nans are enabled, since __builtin_types_compatible_p
29858 is a C-only feature.
29859 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29860 defined, include ieee754_float128.h for access to the union and
29861 member ieee854_float128.ieee.
29862 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29863 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29864 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29865 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29866 options of test-math-zero on powerpc64le.
29867
29868 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29869
29870 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29871 Change double to float.
29872
29873 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29874
29875 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29876 unconditional.
29877 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29878 conditional code; define contents only for [LIBM_SVID_COMPAT].
29879
29880 2017-08-28 Florian Weimer <fweimer@redhat.com>
29881
29882 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29883 (abi-lp64_be-options): Remove.
29884 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29885 (abi-hard-options): Likewise.
29886 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29887 (abi-o32_hard-options, abi-o32_soft_2008-options)
29888 (abi-o32_hard_2008-options, abi-n32_soft-options)
29889 (abi-n32_hard-options, abi-n32_soft_2008-options)
29890 (abi-n32_hard_2008-options, abi-n64_soft-options)
29891 (abi-n64_hard-options, abi-n64_soft_2008-options)
29892 (abi-n64_hard_2008-options): Likewise.
29893 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29894 (abi-64-v1-options, abi-64-v2-options): Likewise.
29895 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29896 (abi-64-options): Likewise.
29897 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29898 (abi-64-options): Likewise.
29899 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29900 (abi-64-options): Likewise.
29901 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29902 (abi-64-options, abi-x32-options): Likewise.
29903
29904 2017-08-28 Florian Weimer <fweimer@redhat.com>
29905
29906 Store supported list of SYS_* system calls in the source tree.
29907 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29908 (bits/syscall.h): Generate from list file.
29909 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29910 [$(subdir) = misc] (tests): Add tst-syscall-list.
29911 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29912 [$(subdir) = misc] (tst-syscall-list-macros.list)
29913 [$(subdir) = misc] (tst-syscall-list-nr.list)
29914 (tst-syscall-list-sys.list): Helper targets for new
29915 tst-syscall-list test.
29916 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29917 tst-syscall-list.sh.
29918 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29919 target. Do not include bits/syscall.d.
29920 [$(subdir) = misc] (generated): Do not update.
29921 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29922 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29923 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29924 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29925
29926 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29927
29928 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29929 (tst-cxa_atexit, tst-on_exit): Likewise.
29930 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29931 tst-cxa_atexit, and tst-on_exit.
29932 * stdlib/tst-atexit-common.c: New file.
29933 * stdlib/tst-atexit.c: New file.
29934 * stdlib/tst-at_quick_exit.c: New file.
29935 * stdlib/tst-cxa_atexit.c: New file.
29936 * stdlib/tst-on_exit.c: New file.
29937
29938 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29939
29940 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29941 * mach/stack_chk_fail_local.c: New file.
29942 * hurd/stack_chk_fail_local.c: New file.
29943 * mach/Machrules ($(interface-library)-routines): Add
29944 stack_chk_fail_local.
29945 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29946 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29947 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29948 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29949 * hurd/Makefile (CFLAGS-hurdstartup.o,
29950 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29951
29952 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29953
29954 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29955 (index_cpu_*, index_arch_*): Removed.
29956
29957 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29958
29959 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29960 Use uint64_t instead of unsigned long.
29961
29962 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29963
29964 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29965 [__HAVE_DISTINCT_FLOAT128].
29966
29967 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29968 of <bits/math-finite.h>.
29969 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29970 inclusion of <bits/math-finite.h>.
29971 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29972 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29973 __NO_LONG_DOUBLE_MATH].
29974 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29975 (__MATH_REDIRCALL_2): Likewise.
29976 (__MATH_REDIRCALL_INTERNAL): Likewise.
29977 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29978 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29979 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29980
29981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29982 Remove file.
29983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29984 Likewise.
29985 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29986 Likewise.
29987 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29988 Likewise.
29989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29990 Likewise.
29991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29992 Likewise.
29993 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29994 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29995 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29996 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29998 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29999 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30000 w_sqrtf_compat-ppc32.
30001
30002 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30003
30004 * math/math.h [defined __cplusplus] (issignaling): In the long
30005 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30006 is not defined. Call __issignaling, otherwise.
30007
30008 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30009
30010 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30011 syscall definitions and replace __builtin_expect with __glibc_likely.
30012 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30013 syscall.
30014 (SYSCALL_CANCELLABLE): Removedefinition
30015 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30016 definition.
30017 (PSEUDO_END): Likewise.
30018 [IS_IN (libpthread)] (CENABLE): Likewise.
30019 [IS_IN (libpthread)] (CDISABLE): Likewise.
30020 [IS_IN (libc)] (CENABLE): Likewise.
30021 [IS_IN (libc)] (CENABLE): Likewise.
30022 [IS_IN (librt)] (CDISABLE): Likewise.
30023 [IS_IN (librt)] (CDISABLE): Likewise.
30024 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30025 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30026 definition.
30027 (PSEUDO_END): Likewise.
30028 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30029 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30030 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30031 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30032 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30033 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30034 (CENABLE): Likewise.
30035 (CDISABLE): Likewise.
30036 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30037 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30038 defintion.
30039 (PSEUDO_END): Likewise.
30040 [IS_IN (libpthread)] (CENABLE): Likewise.
30041 [IS_IN (libpthread)] (CDISABLE): Likewise.
30042 [IS_IN (libc)] (CENABLE): Likewise.
30043 [IS_IN (libc)] (CENABLE): Likewise.
30044 [IS_IN (librt)] (CDISABLE): Likewise.
30045 [IS_IN (librt)] (CDISABLE): Likewise.
30046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30047 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30048 definition.
30049 (PSEUDO_END): Likewise.
30050 [IS_IN (libpthread)] (CENABLE): Likewise.
30051 [IS_IN (libpthread)] (CDISABLE): Likewise.
30052 [IS_IN (libc)] (CENABLE): Likewise.
30053 [IS_IN (libc)] (CENABLE): Likewise.
30054 [IS_IN (librt)] (CDISABLE): Likewise.
30055 [IS_IN (librt)] (CDISABLE): Likewise.
30056 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30057 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30058 definition.
30059 (PSEUDO_END): Likewise.
30060 [IS_IN (libpthread)] (CENABLE): Likewise.
30061 [IS_IN (libpthread)] (CDISABLE): Likewise.
30062 [IS_IN (libc)] (CENABLE): Likewise.
30063 [IS_IN (libc)] (CENABLE): Likewise.
30064 [IS_IN (librt)] (CDISABLE): Likewise.
30065 [IS_IN (librt)] (CDISABLE): Likewise.
30066 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30067 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30068 definition.
30069 (PSEUDO_END): Likewise.
30070 [IS_IN (libpthread)] (CENABLE): Likewise.
30071 [IS_IN (libpthread)] (CDISABLE): Likewise.
30072 [IS_IN (libc)] (CENABLE): Likewise.
30073 [IS_IN (libc)] (CENABLE): Likewise.
30074 [IS_IN (librt)] (CDISABLE): Likewise.
30075 [IS_IN (librt)] (CDISABLE): Likewise.
30076 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30077 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30078 definition.
30079 (PSEUDO_END): Likewise.
30080 [IS_IN (libpthread)] (CENABLE): Likewise.
30081 [IS_IN (libpthread)] (CDISABLE): Likewise.
30082 [IS_IN (libc)] (CENABLE): Likewise.
30083 [IS_IN (libc)] (CENABLE): Likewise.
30084 [IS_IN (librt)] (CDISABLE): Likewise.
30085 [IS_IN (librt)] (CDISABLE): Likewise.
30086 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30087 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30088 definition.
30089 (PSEUDO_END): Likewise.
30090 [IS_IN (libpthread)] (CENABLE): Likewise.
30091 [IS_IN (libpthread)] (CDISABLE): Likewise.
30092 [IS_IN (libc)] (CENABLE): Likewise.
30093 [IS_IN (libc)] (CENABLE): Likewise.
30094 [IS_IN (librt)] (CDISABLE): Likewise.
30095 [IS_IN (librt)] (CDISABLE): Likewise.
30096 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30097 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30098 Remove definition.
30099 (PSEUDO_END): Likewise.
30100 [IS_IN (libpthread)] (CENABLE): Likewise.
30101 [IS_IN (libpthread)] (CDISABLE): Likewise.
30102 [IS_IN (libc)] (CENABLE): Likewise.
30103 [IS_IN (libc)] (CENABLE): Likewise.
30104 [IS_IN (librt)] (CDISABLE): Likewise.
30105 [IS_IN (librt)] (CDISABLE): Likewise.
30106 (SINGLE_THREAD_P): Likewise.
30107 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30108 definition.
30109 (PSEUDO_END): Likewise.
30110 [IS_IN (libpthread)] (CENABLE): Likewise.
30111 [IS_IN (libpthread)] (CDISABLE): Likewise.
30112 [IS_IN (libc)] (CENABLE): Likewise.
30113 [IS_IN (libc)] (CENABLE): Likewise.
30114 [IS_IN (librt)] (CDISABLE): Likewise.
30115 [IS_IN (librt)] (CDISABLE): Likewise.
30116 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30117 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30118 definition.
30119 (PSEUDO_END): Likewise.
30120 [IS_IN (libpthread)] (CENABLE): Likewise.
30121 [IS_IN (libpthread)] (CDISABLE): Likewise.
30122 [IS_IN (libc)] (CENABLE): Likewise.
30123 [IS_IN (libc)] (CENABLE): Likewise.
30124 [IS_IN (librt)] (CDISABLE): Likewise.
30125 [IS_IN (librt)] (CDISABLE): Likewise.
30126 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30127 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30128 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30129 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30130 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30131 definition.
30132 (PSEUDO_END): Likewise.
30133 [IS_IN (libpthread)] (CENABLE): Likewise.
30134 [IS_IN (libpthread)] (CDISABLE): Likewise.
30135 [IS_IN (libc)] (CENABLE): Likewise.
30136 [IS_IN (libc)] (CENABLE): Likewise.
30137 [IS_IN (librt)] (CDISABLE): Likewise.
30138 [IS_IN (librt)] (CDISABLE): Likewise.
30139 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30140 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30141 definition.
30142 (PSEUDO_END): Likewise.
30143 [IS_IN (libpthread)] (CENABLE): Likewise.
30144 [IS_IN (libpthread)] (CDISABLE): Likewise.
30145 [IS_IN (libc)] (CENABLE): Likewise.
30146 [IS_IN (libc)] (CENABLE): Likewise.
30147 [IS_IN (librt)] (CDISABLE): Likewise.
30148 [IS_IN (librt)] (CDISABLE): Likewise.
30149 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30150 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30151 definition.
30152 (PSEUDO_END): Likewise.
30153 [IS_IN (libpthread)] (CENABLE): Likewise.
30154 [IS_IN (libpthread)] (CDISABLE): Likewise.
30155 [IS_IN (libc)] (CENABLE): Likewise.
30156 [IS_IN (libc)] (CENABLE): Likewise.
30157 [IS_IN (librt)] (CDISABLE): Likewise.
30158 [IS_IN (librt)] (CDISABLE): Likewise.
30159 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30160 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30161 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30162 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30163 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30164 definition.
30165 (PSEUDO_END): Likewise.
30166 [IS_IN (libpthread)] (CENABLE): Likewise.
30167 [IS_IN (libpthread)] (CDISABLE): Likewise.
30168 [IS_IN (libc)] (CENABLE): Likewise.
30169 [IS_IN (libc)] (CENABLE): Likewise.
30170 [IS_IN (librt)] (CDISABLE): Likewise.
30171 [IS_IN (librt)] (CDISABLE): Likewise.
30172 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30173 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30174 definition.
30175 (PSEUDO_END): Likewise.
30176 [IS_IN (libpthread)] (CENABLE): Likewise.
30177 [IS_IN (libpthread)] (CDISABLE): Likewise.
30178 [IS_IN (libc)] (CENABLE): Likewise.
30179 [IS_IN (libc)] (CENABLE): Likewise.
30180 [IS_IN (librt)] (CDISABLE): Likewise.
30181 [IS_IN (librt)] (CDISABLE): Likewise.
30182 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30183
30184 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30185
30186 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30187
30188 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30189
30190 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30191
30192 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30193
30194 [BZ #21982]
30195 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30196 middle and outer with size_t instead of int. Repleace %d and
30197 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30198 "MAX (outer, nchars - 64)" to support unsigned outer and
30199 nchars. Also exit loop when outer == 0.
30200
30201 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30202
30203 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30204 * include/signal.h (__sigsuspend_nocancel): Likewise.
30205 * include/time.h (__nanosleep_nocancel): Likewise.
30206 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30207 * login/utmp_file.c: Include non cancellable syscall header.
30208 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30209 prototype.
30210
30211 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30212
30213 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30214 .byte sequences with AVX512F instructions.
30215 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30216 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30217 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30218 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30219 Likewise.
30220 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30221 Likewise.
30222
30223 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30224 Steve Ellcey <sellcey@cavium.com>
30225
30226 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30227 Use PTR_REG macro in cmp instruction.
30228
30229 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30230
30231 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30232 Change the return type of the ifunc resolver to match the return
30233 type of the target function.
30234
30235 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30236
30237 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30238 (preadv64): Likewise.
30239 (pwrite64(: Likewise.
30240 (pwritev64): Likewise.
30241
30242 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30243 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30244 (LOAD_ARGS_0): Likewise.
30245 (LOAD_ARGS_1): Likewise.
30246 (LOAD_ARGS_2): Likewise.
30247 (LOAD_ARGS_3): Likewise.
30248 (LOAD_ARGS_4): Likewise.
30249 (LOAD_ARGS_5): Likewise.
30250 (LOAD_ARGS_6): Likewise.
30251 (LOAD_REGS_0): Likewise.
30252 (LOAD_REGS_1): Likewise.
30253 (LOAD_REGS_2): Likewise.
30254 (LOAD_REGS_3): Likewise.
30255 (LOAD_REGS_4): Likewise.
30256 (LOAD_REGS_5): Likewise.
30257 (LOAD_REGS_6): Likewise.
30258 (ASM_ARGS_0): Likewise.
30259 (ASM_ARGS_1): Likewise.
30260 (ASM_ARGS_2): Likewise.
30261 (ASM_ARGS_3): Likewise.
30262 (ASM_ARGS_4): Likewise.
30263 (ASM_ARGS_5): Likewise.
30264 (ASM_ARGS_6): Likewise.
30265 (LOAD_ARGS_TYPES_1): Likewise.
30266 (LOAD_ARGS_TYPES_2): Likewise.
30267 (LOAD_ARGS_TYPES_3): Likewise.
30268 (LOAD_ARGS_TYPES_4): Likewise.
30269 (LOAD_ARGS_TYPES_5): Likewise.
30270 (LOAD_ARGS_TYPES_6): Likewise.
30271 (LOAD_REGS_TYPES_1): Likewise.
30272 (LOAD_REGS_TYPES_2): Likewise.
30273 (LOAD_REGS_TYPES_3): Likewise.
30274 (LOAD_REGS_TYPES_4): Likewise.
30275 (LOAD_REGS_TYPES_5): Likewise.
30276 (LOAD_REGS_TYPES_6): Likewise.
30277 (TYPEFY): New define.
30278 (ARGIFY): Likewise.
30279 (internal_syscall0): Likewise.
30280 (internal_syscall1): Likewise.
30281 (internal_syscall2): Likewise.
30282 (internal_syscall3): Likewise.
30283 (internal_syscall4): Likewise.
30284 (internal_syscall5): Likewise.
30285 (internal_syscall6): Likewise.
30286 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30287 (INTERNAL_SYSCALL_NCS): Remove define.
30288 (internal_syscall1): Add define.
30289
30290 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30291
30292 * math/w_remainder_compat.c: Remove duplicate inclusion of
30293 math-svid-compat.h.
30294 * math/w_remainderf_compat.c: Likewise.
30295 * math/w_remainderl_compat.c: Likewise.
30296
30297 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30298
30299 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30300
30301 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30302
30303 [BZ #21684]
30304 * math/tgmath.h (__floating_type): Simplify definitions.
30305 (__real_integer_type): New macro.
30306 (__complex_integer_type): Likewise.
30307 (__expr_is_real): Likewise.
30308 (__tgmath_real_type_sub): Update comment to describe handling of
30309 complex types.
30310 (__tgmath_complex_type_sub): New macro.
30311 (__tgmath_complex_type): Likewise.
30312 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30313 (__TGMATH_CF128): Use __expr_is_real.
30314 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30315 __expr_is_real.
30316 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30317 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30318 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30319 integer types.
30320
30321 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30322
30323 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30324 macro.
30325 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30326 alias.
30327 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30328 Likewise.
30329
30330 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30331 nanosleep_not_cancel with __nanosleep_nocancel.
30332 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30333 (__nanosleep_nocancel): New macro.
30334 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30335 function.
30336 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30337 macro.
30338 (__nanosleep_nocancel): New prototype.
30339
30340 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30341 pause_not_cancel with __pause_nocancel.
30342 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30343 (__pause_nocancel): New macro.
30344 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30345 macro.
30346 (__pause_nocancel): New prototype.
30347 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30348
30349 2017-08-22 Martin Sebor <msebor@redhat.com>
30350
30351 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30352 to return a pointer to the same type as the target function.
30353
30354 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30355
30356 [BZ #18822]
30357 [BZ #21986]
30358 * include/printf.h (__printf_fphex): Add attribute_hidden.
30359 (__guess_grouping): New prototype.
30360 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30361 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30362 libc_hidden_proto and libc_hidden_def.
30363 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30364 (__vstrfmon_l): Remove the third argument passed to
30365 __guess_grouping.
30366
30367 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30368
30369 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30370 definition for issignaling that does not rely on __MATH_TG,
30371 since __MATH_TG uses __builtin_types_compatible_p, which is only
30372 available in C mode.
30373 (CFLAGS-test-math-issignaling.cc): New variable.
30374 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30375 * math/test-math-issignaling.cc: New test for C++ implementation
30376 of type-generic issignaling.
30377 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30378 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30379 options of test-math-issignaling on powerpc64le.
30380
30381 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30382
30383 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30384 building libc.a.
30385 (hidden_proto): Likewise.
30386 (hidden_tls_proto): Likewise.
30387 (__hidden_proto): Likewise.
30388
30389 2017-08-22 Florian Weimer <fweimer@redhat.com>
30390
30391 math: Statically link tests of internal functionality.
30392 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30393 atest-exp2.
30394 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30395 (gmp-objs): Remove assignment.
30396 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30397
30398 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30399
30400 [BZ #21987]
30401 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30402 and copy to ...
30403 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30404 ... here.
30405 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30406 ... and here.
30407
30408 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30409 variable definitions above inclusion of ../Rules.
30410
30411 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30412
30413 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30414 case calling __builtin_unreachable.
30415
30416 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30417
30418 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30419 __waitpid_nocancel.
30420 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30421 (__waitpid_nocancel): New macro.
30422 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30423 macro.
30424 (__waitpid_nocancel): Replace macro with a function.
30425 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30426 function.
30427
30428 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30429 __fcntl_nocancel.
30430 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30431 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30432
30433 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30434 __writev_nocancel_nostatus.
30435 (write_call_graph): Likewise.
30436 (write_bb_counts): Likewise.
30437 * resolv/herror.c (herror): Likewise.
30438 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30439 macro.
30440 (__writev_nocancel_nostatus): New macro.
30441 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30442 Remove macro.
30443 (__writev_nocancel_nostatus): New function.
30444
30445 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30446
30447 Revert:
30448 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30449
30450 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30451 building libc.a.
30452 (hidden_proto): Likewise.
30453 (hidden_tls_proto): Likewise.
30454 (__hidden_proto): Likewise.
30455
30456 [BZ #21973]
30457 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30458 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30460 Likewise.
30461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30462 Likewise.
30463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30464 Likewise.
30465 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30466 Likewise.
30467 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30468 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30469 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30470 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30471 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30472 GLIBC_2.0 sqrtl symbol.
30473
30474 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30475 [__USE_MISC] (_LIB_VERSION): Likewise.
30476 [__USE_MISC] (struct exception): Likewise.
30477 [__USE_MISC] (matherr): Likewise.
30478 [__USE_MISC] (DOMAIN): Likewise.
30479 [__USE_MISC] (SING): Likewise.
30480 [__USE_MISC] (OVERFLOW): Likewise.
30481 [__USE_MISC] (UNDERFLOW): Likewise.
30482 [__USE_MISC] (TLOSS): Likewise.
30483 [__USE_MISC] (PLOSS): Likewise.
30484 [__USE_MISC] (HUGE): Likewise.
30485 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30486 * math/math-svid-compat.h: New file.
30487 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30488 and matherrl.
30489 * include/math.h [!_ISOMAC] (__matherr): Remove.
30490 * manual/arith.texi (FP Exceptions): Do not document matherr.
30491 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30492 (tests-internal): New variable.
30493 (install-lib): Do not add libieee.a.
30494 (non-lib.a): Likewise.
30495 (extra-objs): Do not add libieee.a and ieee-math.o.
30496 (CPPFLAGS-s_lib_version.c): Remove variable.
30497 ($(objpfx)libieee.a): Remove rule.
30498 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30499 * math/ieee-math.c: Remove.
30500 * math/libm-test-support.c (matherr): Remove.
30501 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30502 and license notices. Include <math-svid-compat.h> and
30503 <shlib-compat.h>.
30504 (matherr): Undefine as macro. Use compat_symbol_reference.
30505 (_LIB_VERSION): Likewise.
30506 * math/test-matherr-2.c: New file.
30507 * math/test-matherr-3.c: Likewise.
30508 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30509 declaration.
30510 (__kernel_standard_f): Likewise.
30511 (__kernel_standard_l): Likewise.
30512 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30513 <math_private.h>. Include <math-svid-compat.h>.
30514 (_LIB_VERSION): Undefine as macro.
30515 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30516 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30517 [LIBM_SVID_COMPAT], use compat_symbol.
30518 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30519 <math_private.h>. Include <math-svid-compat.h>.
30520 (matherr): Undefine as macro.
30521 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30522 compat_symbol.
30523 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30524 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30525 compat_symbol_reference.
30526 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30527 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30528 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30529 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30530 (MATHERR_D): Remove declaration.
30531 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30532 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30533 [LIBM_BUILD] (pmatherrf): Likewise.
30534 [LIBM_BUILD] (pmatherr): Likewise.
30535 [LIBM_BUILD] (pmatherrl): Likewise.
30536 (DOMAIN): Likewise.
30537 (SING): Likewise.
30538 (OVERFLOW): Likewise.
30539 (UNDERFLOW): Likewise.
30540 (TLOSS): Likewise.
30541 (PLOSS): Likewise.
30542 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30543 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30544 compat_symbol.
30545 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30546 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30547 compat_symbol.
30548 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30549 * math/w_acos_compat.c: Likewise.
30550 * math/w_acosf_compat.c: Likewise.
30551 * math/w_acosh_compat.c: Likewise.
30552 * math/w_acoshf_compat.c: Likewise.
30553 * math/w_acoshl_compat.c: Likewise.
30554 * math/w_acosl_compat.c: Likewise.
30555 * math/w_asin_compat.c: Likewise.
30556 * math/w_asinf_compat.c: Likewise.
30557 * math/w_asinl_compat.c: Likewise.
30558 * math/w_atan2_compat.c: Likewise.
30559 * math/w_atan2f_compat.c: Likewise.
30560 * math/w_atan2l_compat.c: Likewise.
30561 * math/w_atanh_compat.c: Likewise.
30562 * math/w_atanhf_compat.c: Likewise.
30563 * math/w_atanhl_compat.c: Likewise.
30564 * math/w_cosh_compat.c: Likewise.
30565 * math/w_coshf_compat.c: Likewise.
30566 * math/w_coshl_compat.c: Likewise.
30567 * math/w_exp10_compat.c: Likewise.
30568 * math/w_exp10f_compat.c: Likewise.
30569 * math/w_exp10l_compat.c: Likewise.
30570 * math/w_exp2_compat.c: Likewise.
30571 * math/w_exp2f_compat.c: Likewise.
30572 * math/w_exp2l_compat.c: Likewise.
30573 * math/w_fmod_compat.c: Likewise.
30574 * math/w_fmodf_compat.c: Likewise.
30575 * math/w_fmodl_compat.c: Likewise.
30576 * math/w_hypot_compat.c: Likewise.
30577 * math/w_hypotf_compat.c: Likewise.
30578 * math/w_hypotl_compat.c: Likewise.
30579 * math/w_j0_compat.c: Likewise.
30580 * math/w_j0f_compat.c: Likewise.
30581 * math/w_j0l_compat.c: Likewise.
30582 * math/w_j1_compat.c: Likewise.
30583 * math/w_j1f_compat.c: Likewise.
30584 * math/w_j1l_compat.c: Likewise.
30585 * math/w_jn_compat.c: Likewise.
30586 * math/w_jnf_compat.c: Likewise.
30587 * math/w_jnl_compat.c: Likewise.
30588 * math/w_lgamma_main.c: Likewise.
30589 * math/w_lgamma_r_compat.c: Likewise.
30590 * math/w_lgammaf_main.c: Likewise.
30591 * math/w_lgammaf_r_compat.c: Likewise.
30592 * math/w_lgammal_main.c: Likewise.
30593 * math/w_lgammal_r_compat.c: Likewise.
30594 * math/w_log10_compat.c: Likewise.
30595 * math/w_log10f_compat.c: Likewise.
30596 * math/w_log10l_compat.c: Likewise.
30597 * math/w_log2_compat.c: Likewise.
30598 * math/w_log2f_compat.c: Likewise.
30599 * math/w_log2l_compat.c: Likewise.
30600 * math/w_log_compat.c: Likewise.
30601 * math/w_logf_compat.c: Likewise.
30602 * math/w_logl_compat.c: Likewise.
30603 * math/w_pow_compat.c: Likewise.
30604 * math/w_powf_compat.c: Likewise.
30605 * math/w_powl_compat.c: Likewise.
30606 * math/w_remainder_compat.c: Likewise.
30607 * math/w_remainderf_compat.c: Likewise.
30608 * math/w_remainderl_compat.c: Likewise.
30609 * math/w_scalb_compat.c: Likewise.
30610 * math/w_scalbf_compat.c: Likewise.
30611 * math/w_scalbl_compat.c: Likewise.
30612 * math/w_sinh_compat.c: Likewise.
30613 * math/w_sinhf_compat.c: Likewise.
30614 * math/w_sinhl_compat.c: Likewise.
30615 * math/w_sqrt_compat.c: Likewise.
30616 * math/w_sqrtf_compat.c: Likewise.
30617 * math/w_sqrtl_compat.c: Likewise.
30618 * math/w_tgamma_compat.c: Likewise.
30619 * math/w_tgammaf_compat.c: Likewise.
30620 * math/w_tgammal_compat.c: Likewise.
30621 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30622 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30623 * sysdeps/ieee754/k_standard.c: Likewise.
30624 * sysdeps/ieee754/k_standardf.c: Likewise.
30625 * sysdeps/ieee754/k_standardl.c: Likewise.
30626 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30627 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30628 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30629 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30630 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30631 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30632 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30633 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30634 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30636 Likewise.
30637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30638 Likewise.
30639 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30640 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30641 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30642 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30643
30644 2017-08-21 Florian Weimer <fweimer@redhat.com>
30645
30646 [BZ #21864]
30647 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30648 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30649 Move before inclusion of ../Rules.
30650
30651 2017-08-21 Florian Weimer <fweimer@redhat.com>
30652
30653 [BZ #21972]
30654 * assert/assert.h (assert): Use static_cast (bool) for C++.
30655 Use the ternary operator in the warning branch for GNU C.
30656 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30657 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30658 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30659 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30660 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30661
30662 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30663
30664 [BZ #18822]
30665 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30666 (__syscall_clock_gettime): Add attribute_hidden.
30667 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30668 (__start_context): Likewise.
30669
30670 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30671
30672 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30673 building libc.a.
30674 (hidden_proto): Likewise.
30675 (hidden_tls_proto): Likewise.
30676 (__hidden_proto): Likewise.
30677
30678 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30679
30680 * include/libc-symbols.h (attribute_hidden): Enable hidden
30681 visibility in libc.a compiled with PIE.
30682
30683 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30684
30685 [BZ #18822]
30686 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30687 Add attribute_hidden.
30688
30689 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30690
30691 [BZ #21864]
30692 * Makerules (all-nonlib): Add $(others-extras).
30693 * catgets/Makefile (others-extras): New.
30694 * elf/Makefile (others-extras): Likewise.
30695 * nss/Makefile (others-extras): Likewise.
30696
30697 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 [BZ #18822]
30700 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30701 * elf/dl-open.c: Include <libc-internal.h>.
30702 (__libc_multiple_libcs): Removed.
30703 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30704 <hp-timing.h>.
30705 * include/libc-internal.h (__libc_multiple_libcs): New.
30706 * misc/sbrk.c: Include <libc-internal.h>.
30707 (__libc_multiple_libcs): Removed.
30708
30709 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30710
30711 [BZ #18822]
30712 * grp/initgroups.c (__nss_group_database): Removed.
30713 (__nss_initgroups_database): Likewise.
30714 * nscd/gai.c (__nss_hosts_database): Likewise.
30715 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30716 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30717 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30718 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30719 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30720 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30721 attribute_hidden.
30722 * nss/nsswitch.c (__nss_database_custom): Define only if
30723 USE_NSCD is defined.
30724 (__nss_configure_lookup): Use __nss_database_custom only if
30725 USE_NSCD is defined.
30726 * nss/nsswitch.h (__nss_database_custom): Declare only if
30727 USE_NSCD is defined. Add attribute_hidden.
30728 (__nss_setent): Add attribute_hidden.
30729 (__nss_endent): Likewise.
30730 (__nss_getent_r): Likewise.
30731 (__nss_getent): Likewise.
30732 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30733
30734 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30735
30736 [BZ #18822]
30737 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30738 libc_hidden_proto and libc_hidden_def.
30739
30740 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30741
30742 [BZ #18822]
30743 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30744 Add libc_hidden_proto.
30745 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30746 Add libc_hidden_def.
30747
30748 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30749
30750 [BZ #21974]
30751 * gmon/Makefile (routines): Remove bb_init_func and
30752 bb_exit_func.
30753 (elide-routines.os): Removed.
30754 * gmon/bb_exit_func.c: Likewise.
30755 * gmon/bb_init_func.c: Likewise.
30756 * include/sys/gmon.h (__bb): Likewise.
30757 (__bb_init_func): Likewise.
30758 (__bb_exit_func): Likewise.
30759 * sysdeps/alpha/bb_init_func.S: Likewise.
30760
30761 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30762
30763 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30764 * include/setjmp.h (____longjmp_chk): Here. Add
30765 attribute_hidden.
30766
30767 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30768
30769 [BZ #18822]
30770 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30771 attribute_hidden.
30772 (__strspn_sse2): Likewise.
30773
30774 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30775
30776 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30777 (close_not_cancel_no_status): Likewise.
30778 (__close_nocancel): New macro.
30779 (__close_nocancel_nostatus): Likewise.
30780 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30781 macro.
30782 (close_not_cancel): Likewise.
30783 (close_not_cancel_no_status): Likewise.
30784 (__close_nocancel): New prototype.
30785 (__close_nocancel_nostatus): New function.
30786 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30787 * catgets/open_catalog.c (__open_catalog): Replace
30788 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30789 * gmon/gmon.c (write_gmon): Likewise.
30790 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30791 * intl/loadmsgcat.c (close): Likewise.
30792 * io/ftw.c (open_dir_stream): Likewise.
30793 (ftw_startup): Likewise.
30794 * libio/fileops.c (_IO_file_open): Likewise.
30795 (_IO_file_close_mmap): Likewise.
30796 (_IO_file_close): Likewise.
30797 * libio/iopopen.c (_IO_dup2): Likewise.
30798 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30799 * locale/loadlocale.c (_nl_load_locale): Likewise.
30800 * login/utmp_file.c (pututline_file): Likewise.
30801 (endutent_file): Likewise.
30802 * misc/daemon.c (daemon): Likewise.
30803 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30804 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30805 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30806 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30807 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30808 * nscd/nscd_helper.c (open_socket): Likewise.
30809 (__nscd_open_socket): Likewise.
30810 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30811 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30812 (__nscd_innetgr): Likewise.
30813 * nss/nss_db/db-open.c (internal_setent): Likewise.
30814 * resolv/res-close.c (__res_iclose): Likewise.
30815 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30816 * sysdeps/posix/closedir.c (__closedir): Likewise.
30817 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30818 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30819 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30820 (opendir_tail): Likewise.
30821 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30822 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30823 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30824 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30825 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30826 (gethostid): Likewise.
30827 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30828 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30829 Likewise.
30830 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30831 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30832 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30833 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30834 Likewise.
30835 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30836 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30837 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30838 Likewise.
30839 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30840 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30841 Likewise.
30842 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30843 Likewise.
30844 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30845 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30846 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30847 __close_nocancel.
30848
30849 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30850 (openat_not_cancel_3): Likewise.
30851 (openat64_not_cancel_3): Likewise).
30852 (openat_not_cancel_3): Likewise).
30853 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30854 macro.
30855 (openat_not_cancel_3): Likewise.
30856 (openat64_not_cancel): Likewise.
30857 (openat64_not_cancel_3): Likewise.
30858 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30859 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30860 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30861 __open{64}_nocancel.
30862 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30863 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30864 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30865
30866 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30867
30868 [BZ #18822]
30869 * include/argz.h (__argz_create_sep): New function prototype.
30870 (__argz_append): Likewise.
30871 (__argz_add): Likewise.
30872 (__argz_add_sep): Likewise.
30873 (__argz_delete): Likewise.
30874 (__argz_insert): Likewise.
30875 (__argz_replace): Likewise.
30876 * string/argz.h (__argz_create_sep): Removed.
30877 (__argz_append): Likewise.
30878 (__argz_add): Likewise.
30879 (__argz_add_sep): Likewise.
30880 (__argz_delete): Likewise.
30881 (__argz_insert): Likewise.
30882 (__argz_replace): Likewise.
30883
30884 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30885
30886 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30887 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30888 (GNU_PROPERTY_STACK_SIZE): Likewie.
30889 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30890 (GNU_PROPERTY_LOPROC): Likewise.
30891 (GNU_PROPERTY_HIPROC): Likewise.
30892 (GNU_PROPERTY_LOUSER): Likewise.
30893 (GNU_PROPERTY_HIUSER): Likewise.
30894 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30895 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30896 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30897 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30898 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30899 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30900 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30901 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30902 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30903 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30904 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30905 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30906 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30907 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30908 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30909 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30910 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30911 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30912 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30913 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30914 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30915 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30916 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30917
30918 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30919
30920 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30921 in C++ mode.
30922
30923 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30924
30925 [BZ #21930]
30926 * math/math.h (isinf): Check if in C or C++ mode before using
30927 __builtin_types_compatible_p, since this is a C mode feature.
30928
30929 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30930
30931 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30932 (__write_nocancel): New macro.
30933 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30934 Rewrite as a function prototype.
30935 (write_not_cancel): Remove macro.
30936 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30937 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30938 (write_gmon): Likewise.
30939 * libio/fileops.c (_IO_new_file_write): Likewise.
30940 * login/utmp_file.c (pututline_file): Likewise.
30941 (updwtmp_file): Likewise.
30942 * stdio-common/psiginfo.c (psiginfo): Likewise.
30943 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30944 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30945 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30946 Likewise.
30947 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30948 Likewise.
30949
30950 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30951 (__read_nocancel): New macro.
30952 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30953 __read_nocancel.
30954 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30955 macro.
30956 (__read_nocancel): New prototype.
30957 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30958 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30959 with __read_nocancel.
30960 * intl/loadmsgcat.c (read): Likewise.
30961 * libio/fileops.c (_IO_file_read): Likewise.
30962 * locale/loadlocale.c (_nl_load_locale): Likewise.
30963 * login/utmp_file.c (getutent_r_file): Likewise.
30964 (internal_getut_r): Likewise.
30965 (getutline_r_file): Likewise.
30966 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30967 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30968 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30969 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30970 Likewise.
30971 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30972 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30973 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30974 Likewise.
30975 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30976 Likewise.
30977 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30978 Likewise.
30979 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30980 Likewise.
30981 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30982
30983 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30984
30985 [BZ #21966]
30986 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30987 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30988 usable.
30989
30990 2017-08-17 DJ Delorie <dj@redhat.com>
30991
30992 * bug17079.c: Update to new test harness.
30993 * test-digits-dots.c: Likewise.
30994 * test-netdb.c: Likewise.
30995 * tst-field.c: Likewise.
30996 * tst-nss-getpwent.c: Likewise.
30997 * tst-nss-static.c: Likewise.
30998 * tst-nss-test1.c: Likewise.
30999 * tst-nss-test2.c: Likewise.
31000 * tst-nss-test3.c: Likewise.
31001 * tst-nss-test4.c: Likewise.
31002 * tst-nss-test5.c: Likewise.
31003
31004 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31005
31006 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31007 (open_not_cancel_2): Likewise.
31008 (open_nocancel): New macro.
31009 (open64_nocancel): Likewise.
31010 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31011 (open_not_cancel_2): Likewise.
31012 (__open_nocancel): New prototype.
31013 (__open64_nocancel): Likewise.
31014 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31015 __open_nocancel.
31016 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31017 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31018 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31019 with __open_nocancel.
31020 * csu/check_fds.c (check_one_fd): Likewise.
31021 * gmon/gmon.c (write_gmon): Likewise.
31022 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31023 * intl/loadmsgcat.c (open): Likewise.
31024 * libio/fileops.c (_IO_file_open): Likewise.
31025 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31026 * locale/loadlocale.c (_nl_load_locale): Likewise.
31027 * login/utmp_file.c (setutent_file): Likewise.
31028 * misc/daemon.c (daemon): Likewise.
31029 * nss/nss_db/db-open.c (internal_setent): Likewise.
31030 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31031 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31032 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31033 (__opendir): Likewise.
31034 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31035 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31036 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31037 (gethostid): Likewise.
31038 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31039 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31040 Likewise.
31041 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31042 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31043 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31044 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31045 Likewise.
31046 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31047 Likewise.
31048 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31049 Likewise.
31050 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31051 Likewise.
31052 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31053 Likewise.
31054 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31055 Likewise.
31056 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31057 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31058
31059 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31060
31061 * benchtests/bench-skeleton.c (main): Add support for
31062 latency benchmarking.
31063 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31064
31065 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31066
31067 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31068 the startup object.
31069
31070 2017-08-17 Florian Weimer <fweimer@redhat.com>
31071
31072 * include/sys/socket.h (__opensock): Remove internal_function.
31073 * socket/opensock.c (__opensock): Likewise.
31074 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31075
31076 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31077
31078 [BZ #21944]
31079 * signal/bits/types/__sigval_t.h: New file.
31080 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31081 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31082 and define sigval_t using __sigval_t.
31083 * include/bits/types/__sigval_t.h: New file.
31084 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31085 instead of <bits/types/__sigval_t.h>.
31086 (struct sigevent): Use __sigval_t instead of sigval_t.
31087 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31088 instead of <bits/types/__sigval_t.h>.
31089 (siginfo_t): Use __sigval_t instead of sigval_t.
31090 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31091 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31092 (struct sigevent): Use __sigval_t instead of sigval_t.
31093 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31094 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31095 (siginfo_t): Use __sigval_t instead of sigval_t.
31096 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31097
31098 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31099
31100 * NEWS: Remove "[Add new features here]" for 2.27.
31101
31102 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31103
31104 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31105 libc.so.
31106
31107 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31108
31109 * NEWS: Mention x86-64 FMA optimization.
31110
31111 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31112
31113 [BZ #21912]
31114 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31115 Add e_expf-fma.
31116 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31117 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31118 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31119
31120 2017-08-16 Andreas Schwab <schwab@suse.de>
31121
31122 [BZ #16750]
31123 CVE-2009-5064
31124 * elf/ldd.bash.in: Never run file directly.
31125
31126 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31127
31128 [BZ #21955]
31129 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31130 (L(SP_INF_0)): Likewise.
31131
31132 2017-08-15 Florian Weimer <fweimer@redhat.com>
31133
31134 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31135 run-built-tests.
31136
31137 2017-08-15 Florian Weimer <fweimer@redhat.com>
31138
31139 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31140 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31141 BROKEN_THREAD_SIGNALS code.
31142 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31143 request_list): Remove caller_pid member used for
31144 BROKEN_THREAD_SIGNALS.
31145 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31146 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31147 Remove BROKEN_THREAD_SIGNALS support.
31148 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31149 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31150
31151 2017-08-15 Florian Weimer <fweimer@redhat.com>
31152
31153 * gmon/Makefile (tests): Add tst-gmon.
31154 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31155 Set.
31156 (tests-special): Add tst-gmon-prof.out.
31157 (tst-gmon.out): Depend on clean-tst-gmon-data.
31158 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31159 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31160 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31161 startup object.
31162 * aclocal.m4 (GPROF): Set and substitute.
31163 * config.amke.in (GPROF): Set.
31164 * configure: Regenerate.
31165
31166 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31167
31168 * elf/elf.h A (NT_PPC_TAR): New macro.
31169 (NT_PPC_PPR): Likewise.
31170 (NT_PPC_DSCR): Likewise.
31171 (NT_PPC_EBB): Likewise.
31172 (NT_PPC_PMU): Likewise.
31173 (NT_PPC_TM_CGPR): Likewise.
31174 (NT_PPC_TM_CFPR): Likewise.
31175 (NT_PPC_TM_CVMX): Likewise.
31176 (NT_PPC_TM_CVSX): Likewise.
31177 (NT_PPC_TM_SPR): Likewise.
31178 (NT_PPC_TM_CTAR): Likewise.
31179 (NT_PPC_TM_CPPR): Likewise.
31180 (NT_PPC_TM_CDSCR): Likewise.
31181
31182 2017-08-15 Florian Weimer <fweimer@redhat.com>
31183
31184 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31185 regparm (2) instead of internal_function.
31186 (_MCOUNT_DECL): Adjust.
31187
31188 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31189
31190 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31191 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31192
31193 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31194
31195 * conform/data/sys/wait.h-data (si_value): Do not expect for
31196 XPG42.
31197
31198 2017-08-14 Florian Weimer <fweimer@redhat.com>
31199
31200 [BZ #21962]
31201 NSS: Create stubs for accidentally exported lookup functions.
31202 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31203 Remove declaration.
31204 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31205 (ether_hostton): Call __nss_ethers_lookup2 instead.
31206 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31207 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31208 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31209 (setup): Call __nss_netgroup_lookup2 instead.
31210 * nss/Makefile (routines): Add compat-lookup.
31211 * nss/Versions (GLIBC_2.27): Add symbol version.
31212 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31213 (DB_COMPAT_FCT): Remove.
31214 * nss/compat-lookup.c: New file.
31215 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31216 from databases.def.
31217 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31218 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31219 (netname2user): Call __nss_publickey_lookup2 instead.
31220 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31221 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31222 instead.
31223
31224 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31225 Sergei Trofimovich <slyfox@inbox.ru>
31226
31227 [BZ #21908]
31228 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31229 Rename to MMAP2_PAGE_UNIT.
31230 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31231 __OFF_T_MATCHES_OFF64_T is not defined.
31232 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31233 uint64_t.
31234 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31235 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31236
31237 2017-08-14 Florian Weimer <fweimer@redhat.com>
31238
31239 i386: Do not set internal_function.
31240 * config.h.in (USE_REGPARMS, internal_function): Remove.
31241 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31242 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31243
31244 2017-08-14 Florian Weimer <fweimer@redhat.com>
31245
31246 * elf/dl-init.c (_dl_init): Remove internal_function.
31247 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31248 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31249
31250 2017-08-14 Florian Weimer <fweimer@redhat.com>
31251
31252 * elf/rtld.c (_dl_start): Remove internal_function.
31253 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31254 _dl_start.
31255
31256 2017-08-14 Florian Weimer <fweimer@redhat.com>
31257
31258 * elf/dl-fini.c (_dl_fini): Remove internal_function
31259 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31260
31261 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31262
31263 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31264 (bit_cpu_SHSTK): Likewise.
31265 (index_cpu_IBT): Likewise.
31266 (index_cpu_SHSTK): Likewise.
31267 (reg_IBT): Likewise.
31268 (reg_SHSTK): Likewise.
31269 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31270 Handle index_cpu_IBT and index_cpu_SHSTK.
31271
31272 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31273
31274 [BZ #19982]
31275 * po/fr.po: Fix spelling mistake.
31276
31277 2017-08-13 Florian Weimer <fweimer@redhat.com>
31278
31279 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31280 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31281 (_dl_catch_error, _dl_receive_error): Likewise.
31282 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31283 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31284 (_dl_deallocate_tls): Likewise.
31285 * include/dlfcn.h (_dl_addr): Likewise.
31286 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31287 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31288 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31289 Likewise.
31290
31291 2017-08-13 Florian Weimer <fweimer@redhat.com>
31292
31293 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31294 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31295 internal_function.
31296 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31297
31298 2017-08-13 Florian Weimer <fweimer@redhat.com>
31299
31300 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31301 internal_function.
31302 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31303 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31304 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31305 internal_function from _dl_make_stack_executable_hook member.
31306 (_dl_make_stack_executable): Remove internal_function.
31307 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31308 Likewise.
31309 * sysdeps/unix/sysv/linux/dl-execstack.c
31310 (_dl_make_stack_executable): Likewise.
31311
31312 2017-08-13 Florian Weimer <fweimer@redhat.com>
31313
31314 * sysdeps/unix/sysv/linux/netlinkaccess.h
31315 (__netlink_assert_response): Remove internal_function.
31316 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31317 (__netlink_assert_response): Likewise.
31318
31319 2017-08-13 Florian Weimer <fweimer@redhat.com>
31320
31321 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31322 internal_function.
31323 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31324
31325 2017-08-13 Florian Weimer <fweimer@redhat.com>
31326
31327 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31328 internal_function.
31329 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31330 * inet/netgroup.h (__internal_setnetgrent)
31331 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31332 * inet/getnetgrent_r.c (__internal_setnetgrent)
31333 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31334 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31335 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31336 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31337 * nss/nsswitch.h (db_lookup_function): Likewise.
31338
31339 2017-08-13 Florian Weimer <fweimer@redhat.com>
31340
31341 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31342 Remove internal_function.
31343 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31344 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31345 message argument on the stack.
31346 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31347 Likeweise.
31348
31349 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31350
31351 Adapt test case data to the changes in the thousands
31352 separators.
31353
31354 [BZ #20756]
31355 * localedata/tst-langinfo.sh: Adapt test case data.
31356 * stdlib/tst-strfmon_l.c: Likewise.
31357 * stdlib/tst-strtod4.c: Likewise.
31358 * stdlib/tst-strtod5i.c: Likewise.
31359
31360 2017-08-11 Florian Weimer <fweimer@redhat.com>
31361
31362 [BZ #21242]
31363 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31364 Suppress pedantic warning resulting from statement expression.
31365 (__ASSERT_FUNCTION): Add missing __extension__.
31366
31367 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31368
31369 * benchtests/bench-memmove-large.c: Print output in JSON
31370 format.
31371 * benchtests/bench-memmove.c: Likewise.
31372
31373 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31374 * benchtests/bench-memchr.c (do_one_test): Likewise.
31375 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31376 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31377 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31378 * benchtests/bench-memmove.c (do_one_test): Likewise.
31379 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31380 * benchtests/bench-memset.c (do_one_test): Likewise.
31381 * benchtests/bench-string.h (test_init): Remove memsets.
31382
31383 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31384
31385 * manual/lang.texi
31386 (Computing the Width of an Integer Data Type): Rename section to
31387 "Width of an Integer Type". Remove inaccurate statement regarding
31388 lack of C language facilities for determining width of integer
31389 types, and reorder content to improve flow and context of
31390 discussion.
31391
31392 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31393
31394 * lang.texi (va_copy): Change standard from ISO to C99.
31395 (__va_copy): Add standard and header annotation.
31396 Update description for clarity of origins and current use.
31397
31398 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31399
31400 [BZ #21941]
31401 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31402 xssqrtqp requires operands to be in Vector Registers
31403 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31404 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31405 (__ieee754_sqrtf128): Likewise.
31406
31407 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31408
31409 * sysdeps/aarch64/memcmp.S (memcmp):
31410 Rewrite of optimized memcmp.
31411
31412 2017-08-10 Florian Weimer <fweimer@redhat.com>
31413
31414 Introduce ld.so exceptions.
31415 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31416 (_dl_exception_create, _dl_exception_create_format)
31417 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31418 (_dl_catch_exception): Declare.
31419 (_dl_catch_error): Update comment.
31420 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31421 errstring, malloced members with exception member.
31422 (_dl_out_of_memory): Remove.
31423 (fatal_error): New function, extracted from _dl_signal_error.
31424 (_dl_signal_exception, _dl_signal_cexception): New functions.
31425 (_dl_signal_error): Call _dl_exception_create to allocate an
31426 exception object.
31427 (_dl_catch_exception): New function, based on _dl_catch_error.
31428 (_dl_catch_error): Implement using _dl_catch_exception.
31429 * elf/dl-exception.c: New file.
31430 * elf/Makefile (dl-routines): Add dl-exception.
31431 (elide-routines.os): Likewise.
31432 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31433 _dl_exception_create_format, _dl_exception_free.
31434 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31435 _dl_signal_exception.
31436 * elf/dl-lookup.c (make_string): Remove.
31437 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31438 _dl_signal_cexception, _dl_exception_free.
31439 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31440 _dl_signal_exception.
31441 * elf/dl-sym.c (do_sym): Likewise.
31442 * elf/dl-version.c (make_string): Remove.
31443 (match_symbol): Use _dl_exception_create_format,
31444 _dl_signal_cexception, _dl_exception_free.
31445 (_dl_check_map_versions): Likewise.
31446 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31447 _dl_catch_exception.
31448 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31449 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31450 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31451 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31452 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31453 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31454 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31455 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31456 Likewise.
31457 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31459 (ld.so): Likewise.
31460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31461 (ld.so): Likewise.
31462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31463 Likewise.
31464 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31465 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31466 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31467 Likewise.
31468 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31469 Likewise.
31470 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31471
31472 2017-08-10 Florian Weimer <fweimer@redhat.com>
31473
31474 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31475 attribute_hidden, internal_function.
31476 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31477 internal_function.
31478
31479 2017-08-10 Florian Weimer <fweimer@redhat.com>
31480
31481 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31482 function which calls __builtin_unreachable.
31483
31484 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31485
31486 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31487 Indian monetary formatting
31488 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31489 test cases.
31490
31491 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31492
31493 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31494 Fix typo in comment.
31495
31496 [BZ #21928]
31497 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31498 PTRACE_SEIZE_DEVEL): Remove.
31499 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31500 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31501 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31502 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31503 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31504
31505 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31506
31507 * posix/bits/types.h (__qaddr_t): Remove.
31508
31509 [BZ #21457]
31510 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31511 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31512 __glibc_reserved1.
31513 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31514 (ucontext_t): Use __ctx with uc_flags.
31515 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31516 (__ctxt): Likewise.
31517 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31518 __glibc_reserved1.
31519 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31520 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31521 __glibc_reserved1.
31522 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31523 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31524 __glibc_reserved1.
31525 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31526 macro.
31527 (ucontext_t): Use __ctx with uc_flags.
31528 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31529 (ucontext_t): Use __ctx with uc_flags.
31530 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31531 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31532 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31533 (ucontext_t): Use __ctx with uc_flags.
31534 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31535 undefine further down.
31536 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31537 __glibc_reserved1.
31538 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31539 undefine further down.
31540 (ucontext_t): Use __ctx with uc_flags.
31541 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31542 undefine further down.
31543 (ucontext_t): Use __ctx with uc_flags.
31544 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31545 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31546 Rename uc_pad to __glibc_reserved1.
31547 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31548 undefine further down.
31549 (ucontext_t): Use __ctx with uc_flags.
31550 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31551 further down.
31552 (ucontext_t): Use __ctx with uc_flags.
31553 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31554 __ctx with uc_flags.
31555 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31556 (ucontext_t): Use __ctx with uc_flags.
31557 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31558 __ctx with uc_flags.
31559
31560 2017-08-09 Florian Weimer <fweimer@redhat.com>
31561
31562 [BZ #21932]
31563 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31564 before early return.
31565
31566 2017-08-09 Andreas Schwab <schwab@suse.de>
31567
31568 [BZ #21041]
31569 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31570 renamed alias.
31571
31572 [BZ #21041]
31573 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31574 tst-compat-forwarder.
31575 (modules-names): Add tst-compat-forwarder-mod.
31576 ($(objpfx)tst-compat-forwarder): Depend on
31577 $(objpfx)tst-compat-forwarder-mod.so.
31578 * nptl/tst-compat-forwarder.c: New file.
31579 * nptl/tst-compat-forwarder-mod.c: New file.
31580
31581 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31582
31583 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31584 comments.
31585
31586 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31587 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31588 memcpy_falkor.
31589 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31590 Bump.
31591 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31592 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31593 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31594 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31595 Add falkor.
31596 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31597 New macro.
31598
31599 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31600
31601 [BZ #759]
31602 * manual/setjmp.texi (getcontex): Document uc_stack value
31603 compatibility differences.
31604
31605 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31606
31607 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31608 (old_malloc_hook): Likewise.
31609 (old_memalign_hook): Likewise.
31610 (old_realloc_hook): Likewise.
31611 (struct hdr): Likewise.
31612 (flood): Likewise.
31613 (freehook): Likewise.
31614 (mallochook): Likewise.
31615 (memalignhook): Likewise.
31616 (reallochook): Likewise.
31617 (mprobe): Likewise.
31618 * malloc/mtrace.c (mallwatch): Likewise.
31619 (tr_old_free_hook): Likewise.
31620 (tr_old_malloc_hook): Likewise.
31621 (tr_old_realloc_hook): Likewise.
31622 (tr_old_memalign_hook): Likewise.
31623 (tr_where): Likewise.
31624 (lock_and_info): Likewise.
31625 (tr_freehook): Likewise.
31626 (tr_mallochook): Likewise.
31627 (tr_reallochook): Likewise.
31628 (tr_memalignhook): Likewise.
31629 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31630 * misc/mmap.c (__mmap): Likewise.
31631 * misc/mmap64.c (__mmap64): Likewise.
31632 * misc/mprotect.c (__mprotect): Likewise.
31633 * misc/msync.c (msync): Likewise.
31634 * misc/munmap.c (__munmap): Likewise.
31635 * posix/posix_madvise.c (posix_madvise): Likewise.
31636 * socket/send.c (__send): Likewise.
31637 * socket/sendto.c (__sendto): Likewise.
31638 * socket/setsockopt.c (__setsockopt): Likewise.
31639 * string/memcmp.c (__ptr_t): Remove macro.
31640 (MEMCMP): Use void * instead of ptr_t.
31641 * string/memrchr.c (__ptr_t): Remove macro.
31642 (__memrchr): Use void * instead of ptr_t.
31643 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31644 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31645 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31646 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31647 * sysdeps/mach/msync.c (msync): Likewise.
31648 * sysdeps/mach/munmap.c (__munmap): Likewise.
31649 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31650 Likewise.
31651 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31652 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31653 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31654 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31655 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31656 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31657 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31658 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31659 Likewise.
31660 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31661 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31662 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31663 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31664 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31665 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31666 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31667 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31668 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31669 Likewise.
31670 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31671 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31672 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31673 (MEMCMP): Use void * instead of ptr_t.
31674 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31675 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31676
31677 2017-08-08 Florian Weimer <fweimer@redhat.com>
31678
31679 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31680 return statement.
31681
31682 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31683
31684 [BZ #21913]
31685 * csu/libc-tls.c: Include <startup.h> first.
31686 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31687 * elf/dl-tunables.c: Include <startup.h> first.
31688 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31689 * sysdeps/generic/startup.h: New file.
31690 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31691 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31692 (I386_USE_SYSENTER): New. Defined to 0.
31693
31694 2017-08-08 Andreas Schwab <schwab@suse.de>
31695
31696 [BZ #21041]
31697 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31698 * nptl/pt-system.c (system): Likewise.
31699
31700 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31701
31702 [BZ #21780]
31703 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31704 EOPNOTSUPP.
31705 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31706 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31707 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31708 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31709 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31710 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31711 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31712
31713 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31714
31715 [BZ #21899]
31716 * bits/sigaction.h (struct sigaction): Define sa_handler and
31717 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31718 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31719 [__USE_XOPEN_EXTENDED].
31720 (SA_RESTART): Likewise.
31721 (SA_NODEFER): Likewise.
31722 (SA_RESETHAND): Likewise.
31723 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31724 (struct sigaction): Define sa_handler and sa_sigaction using union
31725 also for [__USE_XOPEN_EXTENDED].
31726 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31727 [__USE_XOPEN_EXTENDED].
31728 (SA_RESTART): Likewise.
31729 (SA_NODEFER): Likewise.
31730 (SA_RESETHAND): Likewise.
31731 * sysdeps/unix/sysv/linux/bits/sigaction.h
31732 (struct sigaction): Define sa_handler and sa_sigaction using union
31733 also for [__USE_XOPEN_EXTENDED].
31734 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31735 [__USE_XOPEN_EXTENDED].
31736 (SA_RESTART): Likewise.
31737 (SA_NODEFER): Likewise.
31738 (SA_RESETHAND): Likewise.
31739 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31740 (struct sigaction): Define sa_handler and sa_sigaction using union
31741 also for [__USE_XOPEN_EXTENDED].
31742 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31743 [__USE_XOPEN_EXTENDED].
31744 (SA_RESTART): Likewise.
31745 (SA_NODEFER): Likewise.
31746 (SA_RESETHAND): Likewise.
31747 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31748 (struct sigaction): Define sa_handler and sa_sigaction using union
31749 also for [__USE_XOPEN_EXTENDED].
31750 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31751 [__USE_XOPEN_EXTENDED].
31752 (SA_RESTART): Likewise.
31753 (SA_NODEFER): Likewise.
31754 (SA_RESETHAND): Likewise.
31755 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31756 (struct sigaction): Define sa_handler and sa_sigaction using union
31757 also for [__USE_XOPEN_EXTENDED].
31758 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31759 [__USE_XOPEN_EXTENDED].
31760 (SA_RESTART): Likewise.
31761 (SA_NODEFER): Likewise.
31762 (SA_RESETHAND): Likewise.
31763 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31764 (struct sigaction): Define sa_handler and sa_sigaction using union
31765 also for [__USE_XOPEN_EXTENDED].
31766 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31767 [__USE_XOPEN_EXTENDED].
31768 (SA_RESTART): Likewise.
31769 (SA_NODEFER): Likewise.
31770 (SA_RESETHAND): Likewise.
31771 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31772 (struct sigaction): Define sa_handler and sa_sigaction using union
31773 also for [__USE_XOPEN_EXTENDED].
31774 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31775 [__USE_XOPEN_EXTENDED].
31776 (SA_RESTART): Likewise.
31777 (SA_NODEFER): Likewise. Define directly rather than as alias.
31778 (SA_RESETHAND): Likewise.
31779 (SA_INTERRUPT): Define only for [__USE_MISC].
31780 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31781 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31782 [__USE_MISC].
31783 (SA_STACK): Define only for [__USE_MISC].
31784 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31785 (struct sigaction): Define sa_handler and sa_sigaction using union
31786 also for [__USE_XOPEN_EXTENDED].
31787 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31788 [__USE_XOPEN_EXTENDED].
31789 (SA_RESTART): Likewise.
31790 (SA_NODEFER): Likewise.
31791 (SA_RESETHAND): Likewise.
31792 (SA_NOPTRACE): Define only for [__USE_MISC].
31793
31794 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31795 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31796 (struct catalog_info): Likewise.
31797 * inet/htontest.c (lo): Likewise.
31798 (foo): Likewise.
31799 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31800 * inet/inet_net.c (inet_network): Likewise.
31801 * inet/inet_netof.c (inet_netof): Likewise.
31802 * inet/rcmd.c (__ivaliduser): Likewise.
31803 (iruserok): Likewise.
31804 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31805 * locale/programs/locale-spec.c (locale_special): Likewise.
31806 * nis/nis_findserv.c (struct findserv_req): Likewise.
31807 (__nis_findfastest_with_timeout): Likewise.
31808 * nss/test-netdb.c (test_network): Likewise.
31809 * resolv/inet_neta.c (inet_neta): Likewise.
31810 * resolv/ns_date.c (ns_datetosecs): Likewise.
31811 (SECS_PER_DAY): Likewise.
31812 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31813 Likewise.
31814 * resolv/res_comp.c (__putlong): Likewise.
31815 (__putshort): Likewise.
31816 (_getlong): Likewise.
31817 (_getshort): Likewise.
31818 * resolv/res_debug.c (p_time): Likewise.
31819 (precsize_ntoa): Likewise.
31820 (precsize_aton): Likewise.
31821 (latlon2ul): Likewise.
31822 (loc_aton): Likewise.
31823 (loc_ntoa): Likewise.
31824 * resolv/res_hconf.c (struct netaddr): Likewise.
31825 (_res_hconf_reorder_addrs): Likewise.
31826 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31827 (clnttcp_control): Likewise.
31828 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31829 (clntudp_control): Likewise.
31830 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31831 (clntunix_control): Likewise.
31832 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31833 * sunrpc/rpc/auth.h (union des_block): Likewise.
31834 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31835 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31836 (xdrrec_create): Likewise.
31837 (xdrrec_endofrecord): Likewise.
31838 (flush_out): Likewise.
31839 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31840 (xdrstdio_putlong): Likewise.
31841 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31842 Likewise.
31843
31844 * misc/sys/cdefs.h (__long_double_t): Remove.
31845 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31846 instead of __long_double_t,
31847 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31848
31849 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31850
31851 * benchtests/scripts/compare_strings.py: Avoid display error when
31852 running on a text terminal.
31853
31854 * benchtests/scripts/compare_strings.py (main): Add an
31855 optional -base option.
31856 (process_results): New argument base_func.
31857
31858 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31859 hardcoding memcpy.
31860 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31861 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31862
31863 2017-08-07 Andreas Schwab <schwab@suse.de>
31864
31865 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31866 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31867 * intl/Makefile ($(objpfx)tst-gettext.out)
31868 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31869 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31870 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31871 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31872 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31873 * posix/Makefile ($(objpfx)globtest.out)
31874 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31875 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31876 ($(objpfx)tst-printf.out): Likewise.
31877 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31878 ($(objpfx)tst-setcontext3.out): Likewise.
31879
31880 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31881
31882 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31883 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31884 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31885 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31886 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31887 and mptan-fma.
31888 (CFLAGS-doasin-fma.c): New.
31889 (CFLAGS-dosincos-fma.c): Likewise.
31890 (CFLAGS-e_asin-fma.c): Likewise.
31891 (CFLAGS-e_atan2-fma.c): Likewise.
31892 (CFLAGS-e_exp-fma.c): Likewise.
31893 (CFLAGS-e_log-fma.c): Likewise.
31894 (CFLAGS-e_pow-fma.c): Likewise.
31895 (CFLAGS-halfulp-fma.c): Likewise.
31896 (CFLAGS-mpa-fma.c): Likewise.
31897 (CFLAGS-mpatan-fma.c): Likewise.
31898 (CFLAGS-mpatan2-fma.c): Likewise.
31899 (CFLAGS-mpexp-fma.c): Likewise.
31900 (CFLAGS-mplog-fma.c): Likewise.
31901 (CFLAGS-mpsqrt-fma.c): Likewise.
31902 (CFLAGS-mptan-fma.c): Likewise.
31903 (CFLAGS-s_atan-fma.c): Likewise.
31904 (CFLAGS-sincos32-fma.c): Likewise.
31905 (CFLAGS-slowexp-fma.c): Likewise.
31906 (CFLAGS-slowpow-fma.c): Likewise.
31907 (CFLAGS-s_sin-fma.c): Likewise.
31908 (CFLAGS-s_tan-fma.c): Likewise.
31909 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31910 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31911 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31912 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31913 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31914 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31915 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31916 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31917 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31918 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31919 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31920 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31921 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31922 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31923 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31924 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31925 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31926 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31927 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31928 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31929 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31930 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31931 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31932 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31933 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31934 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31935 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31936 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31937 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31938 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31939 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31940
31941 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31942
31943 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31944 (min_of_type_f): New macro.
31945 (min_of_type_): Likewise.
31946 (min_of_type_l): Likewise.
31947 (min_of_type_f128): Likewise.
31948 (min_of_type): Define using __MATH_TG and taking an expression
31949 argument.
31950 (math_check_force_underflow): Pass expression instead of type to
31951 min_of_type.
31952 (math_check_force_underflow_nonneg): Likewise.
31953
31954 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31957 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31958 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31959
31960 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31961
31962 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31963 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31964 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31965 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31966 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31967 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31968 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31969 memmove_chk-nonshared and memset_chk-nonshared
31970 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31971 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31972 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31973 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31974 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31975 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31976 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31977 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31978 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31979 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31980 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31981 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31982 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31983 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31984 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31985 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31986 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31987 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31988 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31989 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31990 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31991 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31992 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31993 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31994 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31995 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31996 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31997 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31998 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31999 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32000 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32001 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32002 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32003 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32004 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32005 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32006 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32007 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32008 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32009 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32010 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32011 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32012 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32013 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32014 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32015 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32016 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32017 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32018 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32019 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32020 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32021 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32022 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32023 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32024 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32025 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32026 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32027 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32028 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32029 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32030 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32031 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32032 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32033 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32034 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32035 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32036 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32037 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32038 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32039 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32040 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32041 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32042 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32043 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32044 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32045 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32046 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32047 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32048 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32049 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32050 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32051 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32052 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32053 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32054 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32055 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32056 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32057 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32058 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32059 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32060 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32061 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32062 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32063 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32064 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32065 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32066 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32067 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32068 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32069 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32070 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32071 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32072 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32073 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32074 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32075 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32076 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32077 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32078
32079 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32080
32081 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32082 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32083 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32084 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32085 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32086 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32087 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32088 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32089 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32090 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32091 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32092 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32093 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32094 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32095 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32096 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32097 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32098 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32099 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32100 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32101 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32102 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32103 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32104 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32105 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32106 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32107 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32108 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32109 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32110 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32111 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32112 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32113 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32114 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32115 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32116 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32117 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32118 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32119 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32120 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32121 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32122 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32123 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32124 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32125 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32126 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32127 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32128 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32129 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32130 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32131 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32132 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32133 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32134 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32135 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32136 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32137 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32138 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32139 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32140 ...
32141 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32142 Don't include <sysdep.h> nor <init-arch.h>.
32143 (_ZGVbN2v_cos): Removed.
32144 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32145 ...
32146 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32147 Don't include <sysdep.h> nor <init-arch.h>.
32148 (_ZGVdN4v_cos): Removed.
32149 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32150 ...
32151 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32152 Don't include <sysdep.h> nor <init-arch.h>.
32153 (_ZGVeN8v_cos): Removed.
32154 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32155 ...
32156 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32157 Don't include <sysdep.h> nor <init-arch.h>.
32158 (_ZGVbN2v_exp): Removed.
32159 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32160 ...
32161 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32162 Don't include <sysdep.h> nor <init-arch.h>.
32163 (_ZGVdN4v_exp): Removed.
32164 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32165 ...
32166 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32167 Don't include <sysdep.h> nor <init-arch.h>.
32168 (_ZGVeN8v_exp): Removed.
32169 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32170 ...
32171 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32172 Don't include <sysdep.h> nor <init-arch.h>.
32173 (_ZGVbN2v_log): Removed.
32174 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32175 ...
32176 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32177 Don't include <sysdep.h> nor <init-arch.h>.
32178 (_ZGVdN4v_log): Removed.
32179 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32180 ...
32181 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32182 Don't include <sysdep.h> nor <init-arch.h>.
32183 (_ZGVeN8v_log): Removed.
32184 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32185 ...
32186 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32187 Don't include <sysdep.h> nor <init-arch.h>.
32188 (_ZGVbN2vv_pow): Removed.
32189 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32190 ...
32191 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32192 Don't include <sysdep.h> nor <init-arch.h>.
32193 (_ZGVdN4vv_pow): Removed.
32194 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32195 ...
32196 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32197 Don't include <sysdep.h> nor <init-arch.h>.
32198 (_ZGVeN8vv_pow): Removed.
32199 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32200 ...
32201 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32202 Don't include <sysdep.h> nor <init-arch.h>.
32203 (_ZGVbN2v_sin): Removed.
32204 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32205 ...
32206 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32207 Don't include <sysdep.h> nor <init-arch.h>.
32208 (_ZGVbN4v_sin): Removed.
32209 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32210 ...
32211 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32212 Don't include <sysdep.h> nor <init-arch.h>.
32213 (_ZGVbN8v_sin): Removed.
32214 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32215 ...
32216 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32217 Don't include <sysdep.h> nor <init-arch.h>.
32218 (_ZGVbN2vvv_sincos): Removed.
32219 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32220 ...
32221 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32222 Don't include <sysdep.h> nor <init-arch.h>.
32223 (_ZGVdN4vvv_sincos): Removed.
32224 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32225 ...
32226 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32227 Don't include <sysdep.h> nor <init-arch.h>.
32228 (_ZGVeN8vvv_sincos): Removed.
32229 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32230 ...
32231 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32232 Don't include <sysdep.h> nor <init-arch.h>.
32233 (_ZGVeN16v_cosf): Removed.
32234 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32235 ...
32236 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32237 Don't include <sysdep.h> nor <init-arch.h>.
32238 (_ZGVbN4v_cosf): Removed.
32239 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32240 ...
32241 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32242 Don't include <sysdep.h> nor <init-arch.h>.
32243 (_ZGVdN8v_cosf): Removed.
32244 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32245 ...
32246 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32247 Don't include <sysdep.h> nor <init-arch.h>.
32248 (_ZGVeN16v_expf): Removed.
32249 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32250 ...
32251 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32252 Don't include <sysdep.h> nor <init-arch.h>.
32253 (_ZGVbN4v_expf): Removed.
32254 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32255 ...
32256 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32257 Don't include <sysdep.h> nor <init-arch.h>.
32258 (_ZGVdN8v_expf): Removed.
32259 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32260 ...
32261 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32262 Don't include <sysdep.h> nor <init-arch.h>.
32263 (_ZGVeN16v_logf): Removed.
32264 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32265 ...
32266 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32267 Don't include <sysdep.h> nor <init-arch.h>.
32268 (_ZGVbN4v_logf): Removed.
32269 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32270 ...
32271 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32272 Don't include <sysdep.h> nor <init-arch.h>.
32273 (_ZGVdN8v_logf): Removed.
32274 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32275 ...
32276 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32277 Don't include <sysdep.h> nor <init-arch.h>.
32278 (_ZGVeN16vv_powf): Removed.
32279 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32280 ...
32281 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32282 Don't include <sysdep.h> nor <init-arch.h>.
32283 (_ZGVbN4vv_powf): Removed.
32284 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32285 ...
32286 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32287 Don't include <sysdep.h> nor <init-arch.h>.
32288 (_ZGVdN8vv_powf): Removed.
32289 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32290 ...
32291 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32292 Don't include <sysdep.h> nor <init-arch.h>.
32293 (_ZGVeN16vvv_sincosf): Removed.
32294 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32295 ...
32296 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32297 Don't include <sysdep.h> nor <init-arch.h>.
32298 (_ZGVbN4vvv_sincosf): Removed.
32299 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32300 ...
32301 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32302 Don't include <sysdep.h> nor <init-arch.h>.
32303 (_ZGVdN8vvv_sincosf): Removed.
32304 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32305 ...
32306 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32307 Don't include <sysdep.h> nor <init-arch.h>.
32308 (_ZGVeN16v_sinf): Removed.
32309 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32310 ...
32311 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32312 Don't include <sysdep.h> nor <init-arch.h>.
32313 (_ZGVbN4v_sinf): Removed.
32314 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32315 ...
32316 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32317 Don't include <sysdep.h> nor <init-arch.h>.
32318 (_ZGVdN8v_sinf): Removed.
32319
32320 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32321
32322 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32323 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32324 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32325 s_rint-sse4_1 and s_rintf-sse4_1.
32326 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32327 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32328 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32329 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32330 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32331 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32332 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32333 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32334 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32335 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32336 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32337 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32338 (__ceil): Removed.
32339 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32340 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32341 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32342 (__ceilf): Removed.
32343 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32344 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32345 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32346 (__floor): Removed.
32347 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32348 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32349 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32350 (__floorf): Removed.
32351 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32352 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32353 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32354 (__nearbyint): Removed.
32355 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32356 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32357 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32358 (__nearbyintf): Removed.
32359 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32360 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32361 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32362 (__rint): Removed.
32363 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32364 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32365 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32366 (__rintf): Removed.
32367
32368 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32369
32370 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32371 SHARED. Avoid dynamic relocation against main in static PIE.
32372
32373 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32374
32375 [BZ #21815]
32376 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32377 (LDFLAGS-tst-prelink): Likewise.
32378
32379 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32380
32381 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32382 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32383 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32384 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32385 (INTERNAL_SYSCALL_NCS): Likewise.
32386 (LOADARGS_1): Likewise.
32387 (LOADARGS_5): Likewise.
32388 (RESTOREARGS_1): Likewise.
32389 (RESTOREARGS_5): Likewise.
32390
32391 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32392
32393 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32394 (MEMPCPY_SYMBOL): Likewise.
32395 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32396 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32397 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32398 in libc.a.
32399 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32400 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32401 Likewise.
32402 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32403 (__hidden_ver1): Don't use in libc.a.
32404 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32405 (__mempcpy): Don't create a weak alias in libc.a.
32406 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32407 libc.a.
32408 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32409 (__hidden_ver1): Don't use in libc.a.
32410
32411 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32412
32413 * config.make.in (have-insert): New.
32414 * configure.ac (libc_cv_insert): New. Set to yes if linker
32415 supports INSERT in linker script.
32416 (AC_SUBST(libc_cv_insert): New.
32417 * configure: Regenerated.
32418 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32419 if $(have-insert) == yes.
32420
32421 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32422
32423 * elf/Makefile (tests): Add vismain only if
32424 $(have-protected-data) == yes.
32425 (tests-pie): Likewise.
32426
32427 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32428
32429 [BZ #21871]
32430 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32431 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32432
32433 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32434
32435 [BZ #21790]
32436 * sysdeps/i386/i586/memset.S
32437 (__memset_zero_constant_len_parameter): Removed.
32438 * sysdeps/i386/i686/memset.S
32439 (__memset_zero_constant_len_parameter): Likewise.
32440 * sysdeps/i386/i686/multiarch/memset_chk.S
32441 (__memset_zero_constant_len_parameter): Likewise.
32442 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32443 Likewise.
32444
32445 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32446
32447 * stdlib/getentropy.c (getentropy): Change return type to int.
32448
32449 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32450
32451 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32452
32453 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32454
32455 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32456 u_intN_t.
32457 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32458 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32459 Likewise.
32460 (ieee_float_shape_type): Likewise.
32461 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32462 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32463 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32464 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32465 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32466 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32467 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32468 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32469 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32470 Likewise.
32471 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32472 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32473 (__ieee754_yn): Likewise.
32474 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32475 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32476 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32477 Likewise.
32478 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32479 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32480 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32481 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32482 (__erfc): Likewise.
32483 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32484 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32485 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32486 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32487 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32488 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32489 Likewise.
32490 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32491 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32492 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32493 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32494 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32495 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32496 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32497 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32498 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32499 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32500 (__issignaling): Likewise.
32501 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32502 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32503 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32504 Likewise.
32505 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32506 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32507 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32508 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32509 Likewise.
32510 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32511 Likewise.
32512 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32513 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32514 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32515 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32516 (__erfcf): Likewise.
32517 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32518 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32519 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32520 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32521 Likewise.
32522 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32523 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32524 Likewise.
32525 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32526 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32527 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32528 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32529 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32530 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32531 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32532 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32533 Likewise.
32534 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32535 Likewise.
32536 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32537 Likewise.
32538 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32539 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32540 Likewise.
32541 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32542 Likewise.
32543 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32544 (__ieee754_ynl): Likewise.
32545 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32546 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32547 Likewise.
32548 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32549 Likewise.
32550 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32551 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32552 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32553 Likewise.
32554 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32555 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32556 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32557 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32558 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32559 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32560 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32561 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32562 Likewise.
32563 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32564 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32565 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32566 Likewise.
32567 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32568 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32569 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32570 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32571 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32572 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32573 Likewise.
32574 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32575 Likewise.
32576 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32577 Likewise.
32578 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32579 Likewise.
32580 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32581 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32582 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32583 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32584 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32585 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32586 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32587 Likewise.
32588 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32589 Likewise.
32590 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32591 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32592 Likewise.
32593 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32594 (__ieee754_remainderl): Likewise.
32595 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32596 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32597 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32598 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32599 Likewise.
32600 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32601 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32602 Likewise.
32603 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32604 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32605 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32606 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32607 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32608 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32609 Likewise.
32610 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32611 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32612 (__ieee754_y0l): Likewise.
32613 (pzero): Likewise.
32614 (qzero): Likewise.
32615 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32616 (__ieee754_y1l): Likewise.
32617 (pone): Likewise.
32618 (qone): Likewise.
32619 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32620 (__ieee754_ynl): Likewise.
32621 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32622 (__ieee754_lgammal_r): Likewise.
32623 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32624 Likewise.
32625 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32626 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32627 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32628 (__erfcl): Likewise.
32629 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32630 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32631 Likewise.
32632 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32633 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32634 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32635 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32636 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32637 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32638 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32639 Likewise.
32640 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32641 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32642 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32643 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32644 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32645 Likewise.
32646 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32647 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32648 Likewise.
32649 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32650 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32651 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32652 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32653 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32654
32655 2017-08-03 Florian Weimer <fweimer@redhat.com>
32656
32657 [BZ #21885]
32658 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32659 on memory allocation failure.
32660
32661 2017-08-03 Alan Modra <amodra@gmail.com>
32662
32663 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32664 tst-tlsopt-powerpc.c with function name change and no test harness.
32665 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32666 Call tls_get_addr_opt_test.
32667 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32668 (modules-names): Add mod-tlsopt-powerpc.
32669 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32670 (tst-tlsopt-powerpc): Depend on .so.
32671 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32672 define. Expand use in TLS_GD and TLS_LD.
32673
32674 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32675
32676 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32677 function.
32678 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32679
32680 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32681
32682 [BZ #21686]
32683 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32684 comparing size with that of double.
32685 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32686 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32687 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32688 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32689 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32690 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32691 unsigned __int128 types.
32692
32693 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32694
32695 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32696 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32697 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32698 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32699 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32700
32701 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32702
32703 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32704
32705 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32706
32707 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32708 of SHARED.
32709 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32710 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32711 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32712 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32713 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32714 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32715 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32716
32717 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32718
32719 [BZ #21685]
32720 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32721 bit-field expressions passed to sizeof or typeof.
32722 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32723 (__TGMATH_F128): Likewise.
32724 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32725 (__TGMATH_CF128): Likewise.
32726 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32727 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32728 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32729 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32730 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32731 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32732 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32733 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32734 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32735 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32736 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32737 (__TGMATH_UNARY_IMAG): Likewise.
32738 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32739 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32740 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32741 type.
32742 (define_vars_for_type): Handle bit_field type specially.
32743 (Tests.__init__): Declare structure with bit-field element.
32744
32745 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32746
32747 [BZ #21791]
32748 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32749 (MEMCPY_CHK): Define only if SHARED is defined.
32750 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32751 Likewise.
32752 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32753 Likewise.
32754
32755 See ChangeLog.18 for earlier changes.