]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add more spaces before '('.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2
3 * sysdeps/powerpc/powerpc32/dl-machine.c
4 (__elf_machine_fixup_plt): Use space before '('.
5 (__process_machine_rela): Likewise.
6 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
7 Likewise.
8 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
9 Likewise.
10 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
11 Likewise.
12 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
13 (pattern): Likewise.
14 (delta): Likewise.
15 (check_result): Likewise.
16 (check_excepts): Likewise.
17 (check_op): Likewise.
18 (fail_xr): Likewise.
19 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
20 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
21 (SCNHSZ): Likewise.
22 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
23 Likewise.
24 (ARGS): Likewise.
25 (__makecontext): Likewise.
26 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
27 Likewise.
28
29 2019-02-28 Florian Weimer <fweimer@redhat.com>
30
31 [BZ #23937]
32 elf: Add test with a local IFUNC resolver.
33 * elf/ifuncmain9.c: New file.
34 * elf/ifuncmain9pic.c: Likewise.
35 * elf/ifuncmain9picstatic.c: Likewise.
36 * elf/ifuncmain9pie.c: Likewise.
37 * elf/ifuncmain9static.c: Likewise.
38 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
39 ifuncmain9static, ifuncmain9picstatic.
40 * elf/Makefile [multi-arch && build-shared] (tests-internal):
41 Add ifuncmain9, ifuncmain9pic.
42 * elf/Makefile [multi-arch && build-shared && have-fpie]
43 (ifunc-pie-tests): Add ifuncmain9pie.
44 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
45 (CFLAGS-ifuncmain9picstatic.c): Likewise.
46 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
47
48 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
49
50 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
51 * configure: Regenerated.
52 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
53
54 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
55
56 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
57 symbol as __wcspcy instead of wcscpy.
58
59 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
60
61 * include/stdio.h (__renameat2): New hidden prototype.
62 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
63 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
64 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
65 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
66
67 2019-02-27 Joseph Myers <joseph@codesourcery.com>
68
69 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
70 if statement.
71
72 * benchtests/bench-strcpy.c (do_test): Use space before '('.
73 * benchtests/bench-string.h (cmdline_process_function): Likewise.
74 * benchtests/bench-strlen.c (do_test): Likewise.
75 (test_main): Likewise.
76 * catgets/gencat.c (read_old): Likewise.
77 * elf/cache.c (load_aux_cache): Likewise.
78 * iconvdata/bug-iconv8.c (do_test): Likewise.
79 * math/test-tgmath-ret.c (do_test): Likewise.
80 * nis/nis_call.c (rec_dirsearch): Likewise.
81 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
82 * nptl/tst-audit-threads.c (do_test): Likewise.
83 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
84 * nss/nss_test1.c (init): Likewise.
85 * nss/test-netdb.c (test_hosts): Likewise.
86 * posix/execvpe.c (maybe_script_execute): Likewise.
87 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
88 * stdio-common/tst-printf.c (do_test): Likewise.
89 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
90 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
91 * stdlib/qsort.c (STACK_SIZE): Likewise.
92 * stdlib/test-canon.c (do_test): Likewise.
93 * stdlib/tst-swapcontext1.c (do_test): Likewise.
94 * string/memcmp.c (OPSIZ): Likewise.
95 * string/test-strcpy.c (do_test): Likewise.
96 (do_random_tests): Likewise.
97 * string/test-strlen.c (do_test): Likewise.
98 (test_main): Likewise.
99 * string/test-strrchr.c (do_test): Likewise.
100 (do_random_tests): Likewise.
101 * string/tester.c (test_memrchr): Likewise.
102 (test_memchr): Likewise.
103 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
104 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
105 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
106 (read_encoded_value_with_base): Likewise.
107 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
108 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
109 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
110 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
111 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
112 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
113 Likewise.
114 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
115 Likewise.
116 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
117 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
118 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
119 Likewise.
120 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
121 Likewise.
122 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
123 Likewise.
124 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
125 Likewise.
126 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
127 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
128 (FP_XSTATE_MAGIC2_SIZE): Likewise.
129 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
130 * time/test_time.c (main): Likewise.
131
132 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
133
134 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
135
136 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
137 wmemcpy.
138
139 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
140 wmemcpy.
141
142 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
143
144 * include/wchar.h (__wcscpy): New prototype.
145 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
146 (__wcscpy): Route internal symbol to generic implementation.
147 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
148 Add internal __wcscpy alias.
149 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
150 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
151 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
152 * wcsmbs/wcscpy.c (wcscpy): Add
153 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
154 use generic implementation.
155 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
156
157 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
158 wmemset.
159
160 * sysdeps/m68k/wcpcpy.c: Remove file.
161 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
162
163 2019-02-26 Joseph Myers <joseph@codesourcery.com>
164
165 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
166 than after operators.
167 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
168 * sysdeps/mach/hurd/getcwd.c
169 (__hurd_canonicalize_directory_name_internal): Likewise.
170 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
171 (pthread_mutex_consistent): Likewise.
172 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
173 Likewise.
174 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
175 (__pthread_mutex_transfer_np): Likewise.
176 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
177 (__pthread_mutex_unlock): Likewise.
178 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
179 (mtx_owned_p): Likewise.
180 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
181 (pthread_mutexattr_getrobust): Likewise.
182 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
183 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
184 Likewise.
185 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
186 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
187 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
188 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
189 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
190 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
191 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
192 Likewise.
193 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
194 Likewise.
195 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
196 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
197 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
198 (____longjmp_chk): Likewise.
199 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
200 Likewise.
201 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
202 (INTERNAL_SYSCALL): Likewise.
203 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
204 (INTERNAL_SYSCALL): Likewise.
205 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
206 (__get_clockfreq_via_cpuinfo): Likewise.
207
208 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
209 comments.
210 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
211 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
212 (WORD_COPY_BWD): Likewise.
213 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
214 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
215 Likewise.
216 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
217 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
218 comment.
219 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
220
221 2019-02-25 Joseph Myers <joseph@codesourcery.com>
222
223 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
224 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
225 rather than after operators.
226 * elf/cache.c (print_cache): Likewise.
227 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
228 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
229 * hurd/hurdinit.c (_hurd_setproc): Likewise.
230 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
231 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
232 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
233 (reauth_proc): Likewise.
234 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
235 (__file_name_split_at): Likewise.
236 (__directory_name_split_at): Likewise.
237 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
238 * hurd/port2fd.c (_hurd_port2fd): Likewise.
239 * iconv/gconv_dl.c (do_print): Likewise.
240 * inet/netinet/in.h (struct sockaddr_in): Likewise.
241 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
242 * locale/setlocale.c (new_composite_name): Likewise.
243 * malloc/memusagestat.c (main): Likewise.
244 * misc/fstab.c (fstab_convert): Likewise.
245 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
246 Likewise.
247 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
248 (getgrent_next_file): Likewise.
249 (internal_getgrnam_r): Likewise.
250 (internal_getgrgid_r): Likewise.
251 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
252 Likewise.
253 (internal_getgrent_r): Likewise.
254 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
255 (getpwent_next_nss): Likewise.
256 (getpwent_next_file): Likewise.
257 (internal_getpwnam_r): Likewise.
258 (internal_getpwuid_r): Likewise.
259 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
260 Likewise.
261 (getspent_next_nss): Likewise.
262 (internal_getspnam_r): Likewise.
263 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
264 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
265 * string/strchr.c (STRCHR): Likewise.
266 * string/strchrnul.c (STRCHRNUL): Likewise.
267 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
268 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
269 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
270 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
271 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
272 Likewise.
273 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
274 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
275 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
276 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
277 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
278 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
279 (open_file): Likewise.
280 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
281 (pthread_mutexattr_setprotocol): Likewise.
282 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
283 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
284 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
285 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
286 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
287 Likewise.
288 (elf_machine_rela): Likewise.
289 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
290 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
291 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
292 * sysdeps/posix/rename.c (rename): Likewise.
293 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
294 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
295 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
296 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
297 * sysdeps/unix/grantpt.c (grantpt): Likewise.
298 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
299 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
300 Likewise.
301 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
302 Likewise.
303 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
304 * time/tzfile.c (__tzfile_compute): Likewise.
305
306 2019-02-22 Joseph Myers <joseph@codesourcery.com>
307
308 * benchtests/bench-memmem.c (simple_memmem): Break lines before
309 rather than after operators.
310 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
311 * crypt/md5.c (md5_finish_ctx): Likewise.
312 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
313 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
314 * elf/cache.c (load_aux_cache): Likewise.
315 * elf/dl-load.c (open_verify): Likewise.
316 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
317 * elf/readelflib.c (process_elf_file): Likewise.
318 * elf/rtld.c (dl_main): Likewise.
319 * elf/sprof.c (generate_call_graph): Likewise.
320 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
321 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
322 * hurd/dtable.c (reauth_dtable): Likewise.
323 * hurd/getdport.c (__getdport): Likewise.
324 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
325 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
326 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
327 Likewise.
328 * hurd/hurdioctl.c (fioctl): Likewise.
329 * hurd/hurdselect.c (_hurd_select): Likewise.
330 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
331 (STOPSIGS): Likewise.
332 * hurd/hurdstartup.c (_hurd_startup): Likewise.
333 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
334 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
335 * hurd/msgportdemux.c (msgport_server): Likewise.
336 * hurd/setauth.c (_hurd_setauth): Likewise.
337 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
338 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
339 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
340 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
341 * login/tst-utmp.c (do_check): Likewise.
342 (simulate_login): Likewise.
343 * mach/lowlevellock.h (lll_lock): Likewise.
344 (lll_trylock): Likewise.
345 * math/test-fenv.c (ALL_EXC): Likewise.
346 * math/test-fenvinline.c (ALL_EXC): Likewise.
347 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
348 * nis/nis_call.c (__do_niscall3): Likewise.
349 * nis/nis_callback.c (cb_prog_1): Likewise.
350 * nis/nis_defaults.c (searchaccess): Likewise.
351 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
352 * nis/nis_ismember.c (internal_ismember): Likewise.
353 * nis/nis_local_names.c (nis_local_principal): Likewise.
354 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
355 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
356 Likewise.
357 * nis/ypclnt.c (yp_match): Likewise.
358 (yp_first): Likewise.
359 (yp_next): Likewise.
360 (yp_master): Likewise.
361 (yp_order): Likewise.
362 * nscd/hstcache.c (cache_addhst): Likewise.
363 * nscd/initgrcache.c (addinitgroupsX): Likewise.
364 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
365 (internal_getpwuid_r): Likewise.
366 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
367 * posix/glob.h (__GLOB_FLAGS): Likewise.
368 * posix/regcomp.c (peek_token): Likewise.
369 (peek_token_bracket): Likewise.
370 (parse_expression): Likewise.
371 * posix/regexec.c (sift_states_iter_mb): Likewise.
372 (check_node_accept_bytes): Likewise.
373 * posix/tst-spawn3.c (do_test): Likewise.
374 * posix/wordexp-test.c (testit): Likewise.
375 * posix/wordexp.c (parse_tilde): Likewise.
376 (exec_comm): Likewise.
377 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
378 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
379 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
380 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
381 * stdio-common/tst-fileno.c (do_test): Likewise.
382 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
383 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
384 * stdlib/strtod_l.c (round_and_return): Likewise.
385 (____STRTOF_INTERNAL): Likewise.
386 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
387 * string/strcspn.c (STRCSPN): Likewise.
388 * string/test-memmem.c (simple_memmem): Likewise.
389 * termios/tcsetattr.c (tcsetattr): Likewise.
390 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
391 * time/asctime.c (asctime_internal): Likewise.
392 * time/strptime_l.c (__strptime_internal): Likewise.
393 * time/sys/time.h (timercmp): Likewise.
394 * time/tzfile.c (__tzfile_compute): Likewise.
395
396 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
397
398 [BZ #21915]
399 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
400
401 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
402
403 * argp/argp-help.c (__argp_error_internal): New function,
404 renamed from __argp_error, but that takes a 'mode_flags'
405 parameter to control the format of long double parameters.
406 (__argp_error): Converted into a call __argp_error_internal.
407 (__argp_failure_internal): New function, renamed from
408 __argp_failure, but that takes a 'mode_flags' parameter.
409 (__argp_failure): Converted into a call __argp_failure_internal.
410 * misc/err.c (__vwarnx_internal): New function, renamed from
411 vwarnx, but that takes a 'mode_flags' parameter.
412 (vwarnx): Converted into a call to __vwarnx_internal.
413 (__vwarn_internal): New function, renamed from vwarn, but that
414 takes a 'mode_flags' parameter.
415 (vwarn): Converted into a call to __vwarn_internal.
416 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
417 call to __vfxprintf with 'mode_flags'.
418 (__error_internal): New function, renamed from error, but that
419 takes a 'mode_flags' parameter.
420 (error): Converted into a call to __error_internal.
421 (__error_at_line_internal): New function, renamed from
422 error_at_line, but that takes a 'mode_flags' parameter.
423 (error_at_line): Converted into a call to
424 __error_at_line_internal.
425 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
426 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
427 Likewise.
428
429 2019-02-20 Martin Liska <mliska@suse.cz>
430
431 * math/Makefile: Install math-vector-fortran.h.
432 * bits/math-vector-fortran.h: New file.
433 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
434
435 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
436
437 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
438 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
439
440 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
441
442 * nptl/pthread_mutex_trylock.c: Fix comment.
443
444 2019-02-19 Carlos O'Donell <carlos@redhat.com>
445
446 * nptl/pthread_tryjoin.c: Fix comment.
447
448 2019-02-18 Joseph Myers <joseph@codesourcery.com>
449
450 [BZ #24231]
451 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
452 after R_SPARC_H34 case.
453
454 2019-02-18 Florian Weimer <fweimer@redhat.com>
455
456 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
457 (getanswer): Do not call Dprintf.
458 (res_gethostbyname2_context): Likewise.
459 (res_gethostbyaddr_context): Likewise.
460
461 2019-02-18 Florian Weimer <fweimer@redhat.com>
462
463 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
464 declaration.
465 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
466 Remove definitions.
467 * libio/stdfiles.c: Update comment.
468 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
469 set _IO_stdin, _IO_stdout, _IO_stderr.
470 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
471 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
472 inline function.
473 (_IO_deallocate_file): New inline function.
474 * libio/iolibio.h (_IO_vprintf): Remove definition.
475 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
476 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
477 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
478 _IO_legacy_file.
479 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
480 __builtin_expect. Use _IO_legacy_file.
481
482 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
483
484 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
485 Initialize ctid with a known value and remove update of ctid
486 after clone.
487 (wait_tid): Adjust arguments and call futex_wait with ctid_val
488 as assumed current value of ctid_ptr.
489
490 2019-02-15 Florian Weimer <fweimer@redhat.com>
491
492 Check that non-sysdeps headers have wrapper headers.
493 * scripts/check-wrapper-headers.py: New file.
494 * Makefile (tests-special): Add check-wrapper-headers.out.
495 (check-wrapper-headers.out): New target.
496 * Rules (tests-special): Add check-wrapper-headers.out.
497 (check-wrapper-headers.out): New target.
498
499 2019-02-15 Florian Weimer <fweimer@redhat.com>
500
501 Add missing header wrappers under include/.
502 * include/ar.h: New file.
503 * include/bits/mqueue2.h: Likewise.
504 * include/bits/stdio.h: Likewise.
505 * include/bits/stdio2.h: Likewise.
506 * include/fstab.h: Likewise.
507 * include/fts.h: Likewise.
508 * include/lastlog.h: Likewise.
509 * include/netinet/icmp6.h: Likewise.
510 * include/netinet/igmp.h: Likewise.
511 * include/netinet/ip6.h: Likewise.
512 * include/re_comp.h: Likewise.
513 * include/regexp.h: Likewise.
514 * include/rpcsvc/bootparam.h: Likewise.
515 * include/rpcsvc/yp_prot.h: Likewise.
516 * include/sys/random.h: Likewise.
517 * include/sys/stropts.h: Likewise.
518 * include/sys/ttychars.h: Likewise.
519 * include/sys/vfs.h: Likewise.
520 * include/wait.h: Likewise.
521
522 2019-02-15 Florian Weimer <fweimer@redhat.com>
523
524 * nptl_db/proc_service.h: Move to ...
525 * sysdeps/nptl/proc_service.h: ... here.
526 * nptl_db/thread_db.h: Move to ...
527 * sysdeps/nptl/thread_db.h: ... here.
528 * nptl/descr.h: Include <thread_db.h>.
529
530 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
531
532 * io/Makefile (tests): Add tst-lockf.
533 * io/lockf.c (lockf): Use __fcntl and only define for
534 !__OFF_T_MATCHES_OFF64_T.
535 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
536 __OFF_T_MATCHES_OFF64_T case.
537 * io/tst-lockf.c: New file.
538 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
539 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
540 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
541 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
542 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
544 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
545 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
546 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
547
548 2019-02-15 Florian Weimer <fweimer@redhat.com>
549
550 [BZ #24211]
551 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
552 pd->result after the thread descriptor has been freed.
553
554 2019-02-15 Joseph Myers <joseph@codesourcery.com>
555
556 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
557 from function return type.
558
559 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
560
561 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
562
563 * scripts/test_printers_common.py: Set TERM to a known harmless
564 value.
565
566 2019-02-14 Joseph Myers <joseph@codesourcery.com>
567
568 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
569 (xdr_u_int): Likewise.
570 (xdr_enum): Likewise.
571 (xdr_bytes): Reword fall-through comment.
572 (xdr_string): Likewise.
573
574 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
575
576 [BZ #2421]
577 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
578 (tests): Add tst-join8 tst-join9.
579 * nptl/lll_timedwait_tid.c: Remove file.
580 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
581 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
582 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
583 * nptl/pthread_join_common.c (timedwait_tid): New function.
584 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
585 is set.
586 * nptl/tst-join5.c (thread_join): New function.
587 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
588 check.
589 * nptl/tst-join8.c: New file.
590 * nptl/tst-join9.c: Likewise.
591 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
592 lll_futex_timed_wait_cancel): Add generic macros.
593 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
594 Remove definitions.
595 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
596 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
597 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
598 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
599 Remove function.
600 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
601 Likewise.
602 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
603 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
604 (lll_futex_timed_wait_cancel): New macro.
605
606 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
607
608 * benchtests/Makefile: Add malloc-simple benchmark.
609 * benchtests/bench-malloc-simple.c: New benchmark.
610
611 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
612
613 * benchtests/bench-memmove.c (do_one_test): Remove unused
614 ORIG_SRC.
615 (do_test): Adjust.
616 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
617 ORIG_SRC.
618 (do_test): Adjust.
619
620 2019-01-13 Jim Wilson <jimw@sifive.com>
621
622 [BZ #24040]
623 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
624 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
625 (func): New.
626 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
627 call func directly.
628 * nptl/Makefile (tests): Add tst-unwind-thread.
629 (CFLAGS-tst-unwind-thread.c): Define.
630 * nptl/tst-unwind-thread.c: New file.
631 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
632 as undefined.
633
634 2019-02-13 Joseph Myers <joseph@codesourcery.com>
635
636 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
637 comment wording.
638 * nis/nis_call.c (__do_niscall3): Likewise.
639
640 * catgets/gencat.c (normalize_line): Use braces around empty
641 'else' body.
642 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
643 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
644 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
645 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
646 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
647 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
648 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
649 definition.
650
651 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
652 execlp returns.
653
654 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
655
656 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
657 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
658 * benchtests/bench-strchr.c (stupid_strchr): Remove.
659 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
660 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
661 * benchtests/bench-strlen.c (builtin_strlen): Remove.
662 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
663 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
664 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
665 * benchtests/bench-strspn.c (stupid_strspn): Remove.
666 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
667 * benchtests/bench-bcopy.c: Delete file.
668 * benchtests/bench-bzero.c: Likewise.
669 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
670 (simple_memccpy): Remove.
671 (generic_memccpy): Add function.
672 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
673 * benchtests/bench-memmove.c (simple_bcopy): Remove.
674 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
675 (generic_mempcpy): Add new function.
676 * benchtests/bench-memset.c (simple_bzero): Remove.
677 (builtin_bzero): Remove.
678 (builtin_memset): Remove.
679 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
680 (generic_rawmemchr): Add new function.
681
682 2019-02-12 Florian Weimer <fweimer@redhat.com>
683
684 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
685
686 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
687
688 [BZ #24122]
689 * elf/Makefile (tests): Add tst-audit13.
690 (modules-names): Add tst-audit13mod1.
691 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
692 rule.
693 * elf/tst-audit13.c: New file.
694 * elf/tst-audit13mod1.c: Likewise.
695
696 2019-02-12 Florian Weimer <fweimer@redhat.com>
697
698 [BZ #24122]
699 * elf/rtld.c (unload_audit_module): New function.
700 (report_audit_module_load_error): Likewise.
701 (load_audit_module): Likewise. Extracted from dl_main. Call
702 _dl_close if the laversion symbol cannot be found. Use early
703 returns for error handling. Add malloc error check. Check for a
704 zero return value from la_version. Remove spurious comment about
705 static TLS initialization. Remove useless casts.
706 (notify_audit_modules_of_loaded_object): New function. Extracted
707 from dl_main.
708 (load_audit_module): Likewise.
709 (dl_main): Call load_audit_modules.
710
711 2019-02-12 Joseph Myers <joseph@codesourcery.com>
712
713 * elf/dl-exception.c (_dl_exception_create_format): Add
714 fall-through comments.
715 * elf/ldconfig.c (parse_conf_include): Likewise.
716 * elf/rtld.c (print_statistics): Likewise.
717 * locale/programs/charmap.c (parse_charmap): Likewise.
718 * misc/mntent_r.c (__getmntent_r): Likewise.
719 * posix/wordexp.c (parse_arith): Likewise.
720 (parse_backtick): Likewise.
721 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
722 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
723 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
724
725 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
726
727 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
728 Use float instead of double.
729
730 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
731
732 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
733
734 2019-02-08 Joseph Myers <joseph@codesourcery.com>
735
736 * sysdeps/powerpc/bits/mathinline.h: Remove.
737
738 2019-02-08 Florian Weimer <fweimer@redhat.com>
739
740 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
741 * math/bits/math-finite.h: Move to ...
742 * bits/math-finite.h: ... here.
743
744 2019-02-08 Florian Weimer <fweimer@redhat.com>
745
746 * sysdeps/generic/bits/unistd_ext.h: Move to ...
747 * bits/unistd_ext.h: here.
748
749 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
750
751 [BZ #21915]
752 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
753 * nss/tst-nss-files-hosts-long.c: New file.
754 * nss/tst-nss-files-hosts-long.root: New directory.
755 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
756 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
757
758 2019-02-08 Florian Weimer <fweimer@redhat.com>
759
760 * include/bits/unistd_ext.h: Remove file.
761 * posix/bits/unistd_ext.h: Move to ...
762 * sysdeps/generic/bits/unistd_ext.h: ... here.
763
764 2019-02-08 Florian Weimer <fweimer@redhat.com>
765
766 * include/bits/unistd_ext.h: New file.
767
768 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
769
770 * time/tst-strftime2.c: Use array_length macros instead of magic
771 numbers.
772
773 2019-02-08 Florian Weimer <fweimer@redhat.com>
774
775 [BZ #24161]
776 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
777 argument.
778 * nptl/register-atfork.c (__run_fork_handlers): Only perform
779 locking if the new do_locking argument is true.
780 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
781 __run_fork_handlers.
782
783 2019-02-08 Florian Weimer <fweimer@redhat.com>
784
785 [BZ #6399]
786 Linux: Add gettid system call wrapper.
787 * posix/Makefile (headers): Add bits/unistd_ext.h.
788 * posix/bits/unistd_ext.h: New file.
789 * posix/unistd.h: Include it.
790 * manual/process.texi (Process Identification): Document gettid.
791 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
792 tst-gettid, tst-gettid-kill.
793 (tst-gettid): Link with $(shared-thread-library).
794 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
795 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
796 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
797 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
798 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
799 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
800 Add gettid.
801 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
802 Likewise.
803 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
804 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
805 Likewise.
806 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
807 Likewise.
808 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
809 Likewise.
810 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
811 Likewise.
812 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
813 Likewise.
814 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
815 Likewise.
816 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
817 Likewise.
818 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
819 (GLIBC_2.30): Likewise.
820 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
821 (GLIBC_2.30): Likewise.
822 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
823 (GLIBC_2.30): Likewise.
824 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
825 (GLIBC_2.30): Likewise.
826 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
827 Likewise.
828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
829 (GLIBC_2.30): Likewise.
830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
831 (GLIBC_2.30): Likewise.
832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
833 (GLIBC_2.30): Likewise.
834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
835 (GLIBC_2.30): Likewise.
836 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
837 Likewise.
838 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
839 Likewise.
840 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
841 Likewise.
842 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
843 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
844 Likewise.
845 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
846 Likewise.
847 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
848 Likewise.
849 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
850 Likewise.
851 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
852
853 2019-02-07 Florian Weimer <fweimer@redhat.com>
854
855 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
856 compatibility symbols.
857
858 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
859
860 [BZ #24180]
861 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
862 Add compiler barriers and comments.
863
864 2019-02-07 Florian Weimer <fweimer@redhat.com>
865
866 * include/array_length.h (array_length): Do not use a statement
867 expression and _Static_assert, so that array_length can be used at
868 file scope and as a constant expression.
869
870 2019-02-07 Florian Weimer <fweimer@redhat.com>
871
872 * support/xdlfcn.h (xdlmopen): Declare.
873 * support/xdlmopen.c: New file.
874 * support/Makefile (libsupport-routines): Add xdlmopen.
875
876 2019-02-06 Joseph Myers <joseph@codesourcery.com>
877
878 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
879 before return type, without separate inline.
880 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
881 * elf/dl-tunables.h (tunable_is_name): Likewise.
882 * malloc/malloc.c (do_set_trim_threshold): Likewise.
883 (do_set_top_pad): Likewise.
884 (do_set_mmap_threshold): Likewise.
885 (do_set_mmaps_max): Likewise.
886 (do_set_mallopt_check): Likewise.
887 (do_set_perturb_byte): Likewise.
888 (do_set_arena_test): Likewise.
889 (do_set_arena_max): Likewise.
890 (do_set_tcache_max): Likewise.
891 (do_set_tcache_count): Likewise.
892 (do_set_tcache_unsorted_limit): Likewise.
893 * nis/nis_subr.c (count_dots): Likewise.
894 * nptl/allocatestack.c (advise_stack_range): Likewise.
895 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
896 (do_sin): Likewise.
897 (reduce_sincos): Likewise.
898 (do_sincos): Likewise.
899 * sysdeps/unix/sysv/linux/x86/elision-conf.c
900 (do_set_elision_enable): Likewise.
901 (TUNABLE_CALLBACK_FNDECL): Likewise.
902
903 2019-02-06 Florian Weimer <fweimer@redhat.com>
904
905 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
906 (xdlsym): Use dlerror to detect a NULL symbol.
907
908 2019-02-06 Florian Weimer <fweimer@redhat.com>
909
910 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
911 <stap-probe.h>.
912 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
913
914 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
915
916 * libio/tst-bz24153.c (wide): Use wide char format specifier.
917
918 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
919
920 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
921 __wmemcmp and weak alias to wmemcmp.
922
923 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
924
925 [BZ #23403]
926 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
927 TLS_TCB_AT_TP tls variant.
928 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
929 Add alignment checks.
930 * support/Makefile (libsupport-routines): Add xposix_memalign and
931 xpthread_setstack.
932 * support/support.h: Add xposix_memalign.
933 * support/xthread.h: Add xpthread_attr_setstack.
934 * support/xposix_memalign.c: New File.
935 * support/xpthread_attr_setstack.c: Likewise.
936
937 2019-02-05 Florian Weimer <fweimer@redhat.com>
938
939 [BZ #24164]
940 arm: Use "nr" constraint for Systemtap probes, to avoid the
941 compiler using memory operands for constants, due to the "o"
942 alternative in the default "nor" constraint.
943 * include/stap-probe.h [USE_STAP_PROBE]: Include
944 <stap-probe-machine.h>
945 * sysdeps/generic/stap-probe-machine.h: New file.
946 * sysdeps/arm/stap-probe-machine.h: Likewise.
947
948 2019-02-04 Joseph Myers <joseph@codesourcery.com>
949
950 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
951 with 0, not tcache->entries[tc_idx].
952
953 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
954 once.
955
956 2019-02-04 Andreas Schwab <schwab@suse.de>
957
958 [BZ #16976]
959 [BZ #17396]
960 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
961 looking up collating elements match against (wide) character
962 sequence instead of name. Correct alignment adjustment.
963 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
964 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
965 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
966 (LOCALES): Add cs_CZ.ISO-8859-2.
967 * posix/tst-fnmatch4.c: New file.
968 * posix/tst-fnmatch5.c: New file.
969 * include/wchar.h (__wmemcmp): Declare.
970 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
971 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
972 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
973 * sysdeps/s390/wmemcmp.c: Likewise.
974
975 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
976
977 [BZ #24155]
978 CVE-2019-7309
979 * NEWS: Updated for CVE-2019-7309.
980 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
981 upper 32 bits of RDX register for x32. Use unsigned Jcc
982 instructions, instead of signed.
983 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
984 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
985
986 2019-02-04 Florian Weimer <fweimer@redhat.com>
987
988 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
989 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
990 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
991 Likewise.
992 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
993 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
994 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
995 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
996 Likewise.
997 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
998 Likewise.
999 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1000 Likewise.
1001 (posix_spawn_file_actions_addopen): Likewise.
1002 (posix_spawn_file_actions_addclose): Likewise.
1003 (posix_spawn_file_actions_adddup2): Likewise.
1004 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1005 qualifiers.
1006 (posix_spawn_file_actions_addfchdir_np): Likewise.
1007
1008 2019-02-04 David Newall <glibc@davidnewall.com>
1009
1010 elf: Implement --preload option for the dynamic linker.
1011 * elf/rtld.c (preloadarg): New variable.
1012 (handle_preload_list): Pass through “where” argument to
1013 do_preload.
1014 (dl_main): Handle "--preload" and add second call to
1015 handle_preload_list.
1016 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1017 (tst-rtld-preload-OBJS): Set variable.
1018 (tst-rtld-preload.out): New target.
1019 * elf/tst-rtld-preload.sh: New file.
1020
1021 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1022
1023 * Makefile (testrun.sh): Exit in case of incorrect argument.
1024
1025 2019-02-04 Florian Weimer <fweimer@redhat.com>
1026
1027 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1028 alignment gaps.
1029
1030 2019-02-03 Florian Weimer <fweimer@redhat.com>
1031
1032 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1033 implicit overflow checks.
1034
1035 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1036
1037 * stdlib/isomac.c: Include <unistd.h>.
1038
1039 2019-02-03 Florian Weimer <fweimer@redhat.com>
1040
1041 * include/time.h (__tzfile_default): Use int, not long int, for
1042 the GMT offsets.
1043 * time/tzfile.c (struct ttinfo): Change type of the offset member
1044 to int.
1045 (__tzfile_read): Remove useless cast.
1046 (__tzfile_default): Adjust prototype.
1047 * time/tzset.c (tz_rule): Change type of the offset member to int.
1048 (parse_offset): Change the type of the sign variable to int.
1049
1050 2019-02-03 Florian Weimer <fweimer@redhat.com>
1051
1052 [BZ #24153]
1053 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1054 * libio/getchar.c (getchar): Likewise.
1055 * libio/getchar_u.c (getchar_unlocked): Likewise.
1056 * libio/getwchar.c (getwchar): Likewise.
1057 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1058 * libio/iogets.c (_IO_gets): Likewise.
1059 * libio/vscanf.c (_IO_vscanf): Likewise.
1060 * libio/vwscanf.c (__vwscanf): Likewise.
1061 * libio/tst-bz24153.c: New file.
1062 * libio/Makefile (tests): Add it.
1063
1064 2019-02-02 Florian Weimer <fweimer@redhat.com>
1065
1066 [BZ #14829]
1067 * manual/resource.texi (Basic Scheduling Functions): Add
1068 portability note. Change process to task throughout the section.
1069 Remove incorrect comment about sched_yield as it affects
1070 tasks/threads, not entire processes.
1071 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1072 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1073
1074 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1075
1076 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1077 * configure: Regenerated.
1078 * manual/install.texi (Tools for Compilation): Update minimum GCC
1079 version.
1080 * INSTALL: Regenerated.
1081
1082 2019-02-01 Florian Weimer <fweimer@redhat.com>
1083
1084 * support/support_test_compare_string.c
1085 (support_test_compare_string): Use "string" in error message.
1086 * support/tst-test_compare_string.c (do_test): Adjust.
1087
1088 2019-02-01 Florian Weimer <fweimer@redhat.com>
1089
1090 * support/support_format_address_family.c
1091 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1092
1093 2019-02-01 Florian Weimer <fweimer@redhat.com>
1094
1095 * manual/socket.texi (Internet Address Formats): Clarify the byte
1096 order of struct sockaddr_in, struct sockaddr_in6. Document
1097 sin6_flowinfo and sin6_scope_id.
1098
1099 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1100
1101 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1102 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1103 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1104 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1105 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1106 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1107
1108 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1109
1110 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1111 [!MEMCHR](MEMCHR): Set to __memchr.
1112 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1113 Add memchr_generic and memchr_nosimd.
1114 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1115 (__libc_ifunc_impl_list): Add memchr ifuncs.
1116 * sysdeps/aarch64/multiarch/memchr.c: New file.
1117 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1118 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1119
1120 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1121
1122 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1123 Add memset_emag.
1124 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1125 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1126 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1127 Add IS_EMAG check for ifunc dispatch.
1128 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1129 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1130
1131 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1132
1133 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1134 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1135 Add emag.
1136 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1137 New macro.
1138
1139 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1140
1141 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1142
1143 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1144
1145 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1146 syscall-template file.
1147
1148 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1149 Torvald Riegel <triegel@redhat.com>
1150 Rik Prohaska <prohaska7@gmail.com>
1151
1152 [BZ# 23844]
1153 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1154 tst-rwlock-trywrlock-stall.
1155 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1156 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1157 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1158 Set __wrphase_fute to 1 only if we started the write phase.
1159 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1160 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1161 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1162 * support/xpthread_rwlock_destroy.c: New file.
1163 * support/xthread.h: Declare xpthread_rwlock_destroy.
1164
1165 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1166
1167 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1168 version to 4.0.2.
1169
1170 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1171
1172 [BZ #24051]
1173 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1174 * libio/fileops.c (_IO_new_file_underflow): Likewise
1175 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1176 * libio/putchar.c (putchar): Likewise.
1177 * libio/putchar_u.c (putchar_unlocked): Likewise.
1178 * libio/putwchar.c (putchar): Likewise.
1179 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1180 * libio/tst-bz24051.c: New test.
1181 * libio/Makefile (tests): Add tst-bz24051
1182
1183 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1184
1185 regex: fix read overrun [BZ #24114]
1186 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1187 https://debbugs.gnu.org/34140
1188 * posix/regexec.c (proceed_next_node):
1189 Do not read past end of input buffer.
1190
1191 2019-01-31 Florian Weimer <fweimer@redhat.com>
1192
1193 [BZ #24059]
1194 * nss/nss_files/files-alias.c (get_next_alias): Handle
1195 continuation line without newline at the end.
1196 * nss/tst-nss-files-alias-truncated.c: New file.
1197 * nss/Makefile [$(build-shared)] (tests): Add
1198 tst-nss-files-alias-truncated.
1199 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1200 * support/namespace.h (struct support_chroot_configuration): Add
1201 aliases member.
1202 (struct support_chroot): Add path_aliases member.
1203 * support/support_chroot.c (support_chroot_create): Handle
1204 aliases.
1205 (support_chroot_free): Free path_aliases.
1206
1207 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1208
1209 * version.h (RELEASE): Set to "development".
1210 (VERSION): Set to "2.29.9000".
1211 * NEWS: Add section for 2.30.
1212
1213 * version.h (RELEASE): Set to "stable".
1214 (VERSION): Set to "2.29".
1215 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1216
1217 * NEWS: Add the list of bugs fixed in 2.29.
1218 * manual/contrib.texi: Update contributors list with some more
1219 names.
1220 * manual/install.texi: Update latest versions of packages
1221 tested.
1222 * INSTALL: Regenerated.
1223
1224 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1225
1226 * po/be.po: Update translations.
1227 * po/bg.po: Likewise.
1228 * po/ca.po: Likewise.
1229 * po/cs.po: Likewise.
1230 * po/da.po: Likewise.
1231 * po/de.po: Likewise.
1232 * po/el.po: Likewise.
1233 * po/eo.po: Likewise.
1234 * po/es.po: Likewise.
1235 * po/fi.po: Likewise.
1236 * po/fr.po: Likewise.
1237 * po/gl.po: Likewise.
1238 * po/hr.po: Likewise.
1239 * po/hu.po: Likewise.
1240 * po/ia.po: Likewise.
1241 * po/id.po: Likewise.
1242 * po/it.po: Likewise.
1243 * po/ja.po: Likewise.
1244 * po/ko.po: Likewise.
1245 * po/lt.po: Likewise.
1246 * po/nb.po: Likewise.
1247 * po/nl.po: Likewise.
1248 * po/pl.po: Likewise.
1249 * po/pt_BR.po: Likewise.
1250 * po/ru.po: Likewise.
1251 * po/rw.po: Likewise.
1252 * po/sk.po: Likewise.
1253 * po/sl.po: Likewise.
1254 * po/sv.po: Likewise.
1255 * po/tr.po: Likewise.
1256 * po/uk.po: Likewise.
1257 * po/vi.po: Likewise.
1258 * po/zh_CN.po: Likewise.
1259 * po/zh_TW.po: Likewise.
1260
1261 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1262
1263 [BZ #24130]
1264 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1265 of $f3 register on $y_is_neg path.
1266
1267 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1268
1269 [BZ #24110]
1270 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1271 sigaltstack.ss_flags.
1272
1273 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1274
1275 [BZ #23758]
1276 * manual/time.texi (strftime): Document "%Ey".
1277 * time/strftime_l.c (__strftime_internal): Set the default width
1278 padding with zero of "%Ey" to 2.
1279
1280 [BZ #24096]
1281 * manual/time.texi (strftime): Document "%EC" and "%EY".
1282 * time/Makefile (tests): Add tst-strftime2.
1283 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1284 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1285 override padding for "%Ey".
1286 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1287 "%Ey" in the subformat as if decorated with that flag.
1288 * time/tst-strftime2.c: New file.
1289
1290 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1291
1292 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1293 are not defined.
1294
1295 [BZ #24122]
1296 * elf/Makefile (tests): Add tst-audit13.
1297 (modules-names): Add tst-audit13mod1.
1298 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1299 rule.
1300 * elf/rtld.c (dl_main): Handle invalid audit module version.
1301 * elf/tst-audit13.c: New file.
1302 * elf/tst-audit13mod1.c: Likewise.
1303
1304 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1305
1306 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1307 returned by __hurd_at_flags.
1308 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1309 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1310 directly instead of __hurd_file_name_lookup.
1311
1312 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1313
1314 * scripts/build-many-glibcs.py (Context.checkout): Default
1315 binutils version to 2.32 branch.
1316
1317 2019-01-21 Florian Weimer <fweimer@redhat.com>
1318
1319 [BZ #20018]
1320 CVE-2016-10739
1321 resolv: Reject trailing characters in host names
1322 * include/arpa/inet.h (__inet_aton_exact): Declare.
1323 (inet_aton): Remove hidden prototype. No longer used internally.
1324 * nscd/gai.c (__inet_aton): Do not define.
1325 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1326 * nss/digits_dots.c (__inet_aton): Likewise.
1327 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1328 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1329 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1330 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1331 (tst-resolv-trailing): Likewise.
1332 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1333 libc.
1334 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1335 Make static. Add endp parameter.
1336 (__inet_aton_exact): New function.
1337 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1338 (__inet_addr): Call inet_aton_end.
1339 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1340 not just IPv6. Call __inet_aton_exact.
1341 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1342 (tests): Make const. Add additional test cases with trailing
1343 characters.
1344 (do_test): Use array_length.
1345 * resolv/tst-inet_aton_exact.c: New file.
1346 * resolv/tst-resolv-trailing.c: Likewise.
1347 * resolv/tst-resolv-nondecimal.c: Likewise.
1348 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1349
1350 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1351
1352 [BZ# 24097]
1353 CVE-2019-6488
1354 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1355 Clear the upper 32 bits of RSI register.
1356 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1357 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1358 and tst-size_t-wcsnlen.
1359 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1360 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1361
1362 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1363
1364 [BZ# 24097]
1365 CVE-2019-6488
1366 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1367 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1368 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1369 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1370 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1371
1372 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1373
1374 [BZ# 24097]
1375 CVE-2019-6488
1376 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1377 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1378 * sysdeps/x86_64/strcmp.S: Likewise.
1379 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1380 tst-size_t-strncmp and tst-size_t-wcsncmp.
1381 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1382 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1383 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1384
1385 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 [BZ# 24097]
1388 CVE-2019-6488
1389 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1390 RDX_LP for length. Clear the upper 32 bits of RDX register.
1391 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1392 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1393 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1394 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1395
1396 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1397
1398 [BZ# 24097]
1399 CVE-2019-6488
1400 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1401 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1402 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1403 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1404
1405 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 [BZ# 24097]
1408 CVE-2019-6488
1409 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1410 length. Clear the upper 32 bits of RDX register.
1411 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1412 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1413 Likewise.
1414 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1415 Likewise.
1416 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1417 tst-size_t-wmemchr.
1418 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1419
1420 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1421
1422 [BZ# 24097]
1423 CVE-2019-6488
1424 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1425 length. Clear the upper 32 bits of RDX register.
1426 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1427 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1428 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1429 tst-size_t-wmemcmp.
1430 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1431 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1432
1433 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 [BZ# 24097]
1436 CVE-2019-6488
1437 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1438 upper 32 bits of RDX register.
1439 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1440 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1441 tst-size_t-wmemchr.
1442 * sysdeps/x86_64/x32/test-size_t.h: New file.
1443 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1444 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1445
1446 2019-01-18 Florian Weimer <fweimer@redhat.com>
1447
1448 [BZ #24112]
1449 resolv: Do not send queries for non-host-names in nss_dns.
1450 * resolv/nss_dns/dns-host.c (check_name): New function.
1451 (_nss_dns_gethostbyname2_r): Use it.
1452 (_nss_dns_gethostbyname_r): Likewise.
1453 (_nss_dns_gethostbyname4_r): Likewise.
1454
1455 2019-01-21 Florian Weimer <fweimer@redhat.com>
1456
1457 * resolv/inet_addr.c: Reformat to GNU style.
1458 (__inet_addr, __inet_aton): Update comment.
1459
1460 2019-01-18 Florian Weimer <fweimer@redhat.com>
1461
1462 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1463 ("malloc: Use current (C11-style) atomics for fastbin access").
1464 This commit introduces a substantial performance regression on
1465 POWER and Aarch64.
1466 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1467 (REMOVE_FB): Define.
1468 (_int_malloc): Use it and reindent.
1469 (_int_free): Use CAS loop with
1470 catomic_compare_and_exchange_val_rel.
1471 (malloc_consolidate): Use atomic_exchange_acq.
1472
1473
1474 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1475
1476 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1477 -Wl,-z,now.
1478 (LDFLAGS-tst-minsigstksz-2): Likewise.
1479 (LDFLAGS-tst-minsigstksz-3): Likewise.
1480 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1481 (LDFLAGS-tst-minsigstksz-4): Likewise.
1482
1483 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1484
1485 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1486 than "alternate".
1487
1488 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1489
1490 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1491
1492 2019-01-16 Zack Weinberg <zackw@panix.com>
1493
1494 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1495 (xget_sigstack_location): New test support functions.
1496 * support/xsigstack.c: New file, implementing them.
1497 * support/tst-xsigstack.c: New test for them.
1498 * support/Makefile: Update.
1499
1500 * signal/tst-minsigstksz-1.c
1501 * signal/tst-minsigstksz-2.c
1502 * signal/tst-minsigstksz-3.c
1503 * signal/tst-minsigstksz-3a.c
1504 * signal/tst-minsigstksz-4.c: New tests.
1505 * signal/Makefile: Run them.
1506
1507 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1508
1509 * po/libc.pot: Regenerate.
1510
1511 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1512
1513 * math/libm-test-fma.inc (fma_test_data): Set
1514 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1515
1516 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1517
1518 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1519 (do_test): Changed __vector __int128_t to __vector unsigned int.
1520
1521 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1522
1523 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1524 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1525 stpcpy-avx2 and stpncpy-avx2.
1526 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1527 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1528 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1529 and __stpncpy_avx2.
1530 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1531 ifunc-strcpy.h}: rename header for a more generic name.
1532 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1533 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1534 AVX unaligned load is fast and vzeroupper is preferred.
1535 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1536 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1537 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1538 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1539 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1540 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1541
1542 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1543
1544 * argp/argp-help.c: Fix typo in comment.
1545 * misc/sys/cdefs.h: Likewise.
1546 * posix/regexec.c (sift_states_iter_mb): Likewise.
1547 * socket/sockatmark.c: Likewise.
1548 * socket/sys/socket.h: Likewise.
1549 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1550 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1551 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1552 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1553 * sysdeps/unix/sockatmark.c: Likewise.
1554 * time/strptime_l.c: Likewise.
1555
1556 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1557
1558 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1559 missing space after the cast of "_NL_CURRENT".
1560
1561 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1562
1563 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1564 ifdef to fix read of VSCR.
1565 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1566 tst-ucontext-ppc64-vscr.c to test list.
1567 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1568
1569 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1570
1571 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1572 fall-through.
1573
1574 2019-01-09 Jim Wilson <jimw@sifive.com>
1575
1576 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1577
1578 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1579
1580 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1581 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1582 __memcpy_falkor for ares.
1583 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1584 Add new define.
1585 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1586 Add ares cpu.
1587
1588 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1589
1590 [BZ #24066]
1591 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1592 4_FP_W_TYPEs are used for IEEE quad precision.
1593 * soft-fp/extendhftf2.c: Likewise.
1594 * soft-fp/extendsftf2.c: Likewise.
1595 * soft-fp/extendxftf2.c: Likewise.
1596 * soft-fp/trunctfdf2.c: Likewise.
1597 * soft-fp/trunctfhf2.c: Likewise.
1598 * soft-fp/trunctfsf2.c: Likewise.
1599 * soft-fp/trunctfxf2.c: Likewise.
1600 * sysdeps/alpha/ots_cvttx.c: Likewise.
1601 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1602 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1603 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1604 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1605 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1606 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1607 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1608 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1609 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1610 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1611 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1612 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1613 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1614 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1615 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1616 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1617 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1618
1619 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1620
1621 [BZ #24024]
1622 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1623 code with -fmath-errno.
1624 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1625 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1626 * string/test-strerror-errno.c: New file.
1627
1628 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1629
1630 [BZ #24046]
1631 * localedata/locales/en_US (date_fmt): Add, set to
1632 "%a %d %b %Y %r %Z".
1633
1634 2019-01-07 Florian Weimer <fweimer@redhat.com>
1635
1636 [BZ #24063]
1637 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1638 instead of @var{errno}.
1639 (Parsing of Integers): Likewise.
1640 (Parsing of Floats): Likewise.
1641 * manual/filesys.texi (Working with Directory Trees): Likewise.
1642 (Temporary Files): Likewise.
1643 * manual/job.texi (Terminal Access Functions): Likewise.
1644 * manual/llio.texi (Synchronizing I/O): Likewise.
1645 * manual/math.texi (SVID Random): Likewise.
1646 * manual/message.texi (The catgets Functions): Likewise.
1647 (Translation with gettext): Likewise.
1648 (Locating gettext catalog): Likewise.
1649 (Charset conversion in gettext): Likewise.
1650 * manual/nss.texi (NSS Module Function Internals): Likewise.
1651 * manual/search.texi (Hash Search Function): Likewise.
1652 * manual/setjmp.texi (System V contexts): Likewise.
1653 * manual/time.texi (Sleeping): Likewise.
1654 * manual/users.texi (Lookup User): Likewise.
1655 (Lookup Group): Likewise.
1656
1657 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1658
1659 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1660 fix typo.
1661
1662 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1663
1664 [BZ #19444]
1665 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1666 __builtin_unreachable for default case in switch.
1667 (__ieee754_yn): Likewise.
1668 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1669 (__ieee754_ynl): Likewise.
1670 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1671 (__ieee754_ynl): Likewise.
1672 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1673 (__ieee754_ynl): Likewise.
1674
1675 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1676
1677 * manual/maint.texi: Use @{ and @}.
1678
1679 2019-01-04 Florian Weimer <fweimer@redhat.com>
1680
1681 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1682 function.
1683 (do_in_chroot_1): Call it.
1684 (run_chroot_tests):
1685 Improve error reporting in case it is not possible to create a
1686 collision for the PTY name required by the test.
1687
1688 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1689
1690 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1691 lll_wait_tid with timeout.
1692 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1693 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1694 futex_reltimed_wait_cancelable for cancelabla mode.
1695 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1696 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1697 macros.
1698 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1699 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1700 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1701 SYSCALL_CANCEL_NCS): New macro.
1702 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1703 (lll_timedwait_tid): Remove macro.
1704 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1705 Likewise.
1706 (lll_timedwait_tid): Likewise.
1707 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1708 Likewise.
1709 (lll_timedwait_tid): Likewise.
1710 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1711 Likewise.
1712 (lll_timedwait_tid): Likewise.
1713 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1714 Use INTERNAL_SYSCALL_CANCEL.
1715 * sysdeps/unix/sysv/linux/futex-internal.h
1716 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1717 instead of __pthread_{enable,disable}_asynccancel.
1718 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1719 (lll_futex_wait_cancel): New macro.
1720
1721 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1722 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1723
1724 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1725 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1726
1727 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1728 in backtrace analysis.
1729 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1730 side-effects.
1731 (tf_send): Likewise.
1732
1733 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1734 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1735 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1736 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1737 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1738 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1739 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1740 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1741 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1742 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1743 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1744 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1745 Likewise.
1746 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1747 tst-cancel-wrappers.sh.
1748 (generated): Remove tst-cancel-wrappers.out.
1749 (tst-cancel-wrappers.out): Remove rule.
1750 * nptl/tst-cancel-wrappers.sh: Remove file.
1751
1752 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1753
1754 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1755 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1756 Update.
1757
1758 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1759
1760 [BZ #23640]
1761 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1762 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1763 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1764 close-on-exec reset for adddup2 file action.
1765 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1766
1767 2019-01-03 Zack Weinberg <zackw@panix.com>
1768
1769 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1770 parameter. Only use deprecated scanf when __USE_GNU is defined
1771 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1772 than 201103L, whichever is relevant for the language being compiled.
1773
1774 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1775 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1776 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1777 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1778 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1779
1780 * libio/iovsscanf.c
1781 * libio/fwscanf.c
1782 * libio/iovswscanf.c
1783 * libio/swscanf.c
1784 * libio/vscanf.c
1785 * libio/vwscanf.c
1786 * libio/wscanf.c
1787 * stdio-common/fscanf.c
1788 * stdio-common/scanf.c
1789 * stdio-common/vfscanf.c
1790 * stdio-common/vfwscanf.c
1791 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1792 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1793 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1794 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1795 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1796 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1797 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1798 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1799 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1800 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1801 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1802 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1803 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1804 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1805 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1806
1807 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1808 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1809 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1810 not sscanf.
1811 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1812 with a preprocessor macro.
1813
1814 * stdio-common/bug21.c, stdio-common/scanf14.c:
1815 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1816 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1817 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1818 to xscanf, xfscanf, xsscanf.
1819
1820 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1821 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1822 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1823 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1824 xfscanf, xsscanf.
1825 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1826 override feature selection macros or provide definitions of u_char etc.
1827 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1828 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1829 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1830 with -std=gnu89.
1831
1832 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1833
1834 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1835 bits/termios-misc.h.
1836 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1837 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1838 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1839 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1840 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1841 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1842
1843 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1844 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1845 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1846 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1847 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1848 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1849 termios-misc.h.
1850 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1851 (sysdep_headers): Add termios-misc.h.
1852
1853 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1854 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1855 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1856
1857 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1858 termios-tcflow.h.
1859 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1860 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1861 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1862 TCSAFLUSH): Move to termios-tcflow.h.
1863 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1864 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1865 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1866 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1867
1868 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1869 termios-c_lflag.h.
1870 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1871 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1872 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1873 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1874 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1875 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1876 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1877 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1878 Likewise.
1879 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1880 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1881 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1882 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1883
1884 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1885 termios-c_cflag.h.
1886 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1887 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1888 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1889 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1890 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1891 termios-c_cflag.h.
1892 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1893 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1894 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1895 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1896
1897 [BZ #23783]
1898 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1899 termios-baud.h.
1900 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1901 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1902 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1903 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1904 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1905 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1906 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1907 __MAX_BAUD): Move to termios-baud.h.
1908 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1909 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1910 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1911 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1912 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1913
1914 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1915 termios-c_oflag.h.
1916 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1917 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1918 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1919 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1920 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1921 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1922 termios-c_oflag.h.
1923 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1924 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1925 FFR1): Likewise.
1926 [USE_MISC] (XTABS): Likewise.
1927 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1928 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1929 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1930 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1931
1932 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1933 termios-c_iflag.h.
1934 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1935 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1936 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1937 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1938 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1939 IUTF8): Move to termios-c_iflag.h.
1940 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1941 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1942 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1943 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1944
1945 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1946 termios-cc.h.
1947 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1948 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1949 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1950 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1951 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1952 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1953 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1954 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1955 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1956 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1957 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1958 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1959
1960 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1961 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1962 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1963 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1964 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1965 termios-struct.h.
1966 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1967 termios-struct.h.
1968 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1969 Likewise.
1970 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1971 Likewise.
1972 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1973 Likewise.
1974 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1975 Likewise.
1976 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1977 _HAVE_C_OSPEED): Define.
1978 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1979 _HAVE_C_OSPEED): Likewise.
1980 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1981 _HAVE_C_OSPEED): Likewise.
1982 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1983 (cfsetospeed): Check for define value instead of existence.
1984 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1985 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1986 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1987 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1988 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1989
1990 [BZ #17783]
1991 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1992 Define.
1993 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1994 (TIOCSER_TEMT): Likewise.
1995 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1996 (TEOCSER_TEMT): Likewise.
1997
1998 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1999
2000 [BZ #24011]
2001 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2002
2003 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2004
2005 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2006
2007 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2008
2009 * sysdeps/htl/pt-barrierattr-setpshared.c
2010 (pthread_barrierattr_setpshared): Add stub warning.
2011 * sysdeps/htl/pt-condattr-setpshared.c
2012 (pthread_condattr_setpshared): Likewise.
2013 * sysdeps/htl/pt-mutexattr-setpshared.c
2014 (pthread_mutexattr_setpshared): Likewise.
2015 * sysdeps/htl/pt-rwlockattr-setpshared.c
2016 (pthread_rwlockattr_setpshared): Likewise.
2017 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2018 (pthread_mutexattr_setpshared): Likewise.
2019
2020 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2021
2022 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2023 constants to match with Linux 4.20.
2024
2025 * sysdeps/mips/mips32/libm-test-ulps: Update.
2026 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2027
2028 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2029
2030 [BZ #24034]
2031 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2032 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2033 than __typeof (...) for the a_ptr variable.
2034
2035 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2036
2037 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2038 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2039 * libio/Makefile (tests): Add tst-sprintf-ub and
2040 tst-sprintf-chk-ub.
2041 (CFLAGS-tst-sprintf-ub.c): New variable.
2042 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2043 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2044 destination buffer and check for overflows in fortified mode.
2045 * libio/libioP.h (PRINTF_CHK): New macro.
2046 * libio/tst-sprintf-chk-ub.c: New file.
2047 * libio/tst-sprintf-ub.c: Likewise.
2048
2049 2019-01-02 Florian Weimer <fweimer@redhat.com>
2050
2051 [BZ #24018]
2052 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2053 failure.
2054
2055 2019-01-02 Florian Weimer <fweimer@redhat.com>
2056
2057 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2058
2059 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2060
2061 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2062 macro.
2063
2064 * sysdeps/unix/sysv/linux/netpacket/packet.h
2065 (PACKET_IGNORE_OUTGOING): New macro.
2066
2067 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2068 macro.
2069
2070 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2071 version to 4.20.
2072 (riscv_flush_icache): New syscall.
2073
2074 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2075 trailing whitespace removed.
2076 * scripts/config.guess: Update to version 2019-01-01.
2077 * scripts/config.sub: Update to version 2019-01-01.
2078 * scripts/move-if-change: Update from gnulib.
2079
2080 * NEWS: Update copyright dates.
2081 * catgets/gencat.c (print_version): Likewise.
2082 * csu/version.c (banner): Likewise.
2083 * debug/catchsegv.sh: Likewise.
2084 * debug/pcprofiledump.c (print_version): Likewise.
2085 * debug/xtrace.sh (do_version): Likewise.
2086 * elf/ldconfig.c (print_version): Likewise.
2087 * elf/ldd.bash.in: Likewise.
2088 * elf/pldd.c (print_version): Likewise.
2089 * elf/sotruss.sh: Likewise.
2090 * elf/sprof.c (print_version): Likewise.
2091 * iconv/iconv_prog.c (print_version): Likewise.
2092 * iconv/iconvconfig.c (print_version): Likewise.
2093 * locale/programs/locale.c (print_version): Likewise.
2094 * locale/programs/localedef.c (print_version): Likewise.
2095 * login/programs/pt_chown.c (print_version): Likewise.
2096 * malloc/memusage.sh (do_version): Likewise.
2097 * malloc/memusagestat.c (print_version): Likewise.
2098 * malloc/mtrace.pl: Likewise.
2099 * manual/libc.texinfo: Likewise.
2100 * nptl/version.c (banner): Likewise.
2101 * nscd/nscd.c (print_version): Likewise.
2102 * nss/getent.c (print_version): Likewise.
2103 * nss/makedb.c (print_version): Likewise.
2104 * posix/getconf.c (main): Likewise.
2105 * scripts/test-installation.pl: Likewise.
2106 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2107
2108 * All files with FSF copyright notices: Update copyright dates
2109 using scripts/update-copyrights.
2110 * locale/programs/charmap-kw.h: Regenerated.
2111 * locale/programs/locfile-kw.h: Likewise.
2112
2113 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2114
2115 * timezone/zdump.c: Update from tzcode 2018i.
2116 * timezone/zic.c: Likewise.
2117
2118 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2119
2120 regex: improve Gnulib port to AIX
2121 From the glibc point of view, this removes duplicate macro
2122 definitions and is obviously safe.
2123 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2124 * posix/regex_internal.h:
2125 (__attribute__, __attribute_warn_unused_result__):
2126 Remove; already defined elsewhere.
2127
2128 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2129
2130 [BZ #24027]
2131 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2132 copying operation. (ncopies had the wrong type, resulting in an
2133 integer wraparound and too few elements being copied.)
2134
2135 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2136
2137 [BZ #24022]
2138 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2139 <asm/syscalls.h> exists with __has_include__ before including it.
2140
2141 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2142
2143 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2144 version to 4.20.
2145
2146 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2147
2148 * hurd/lookup-retry: Include <unistd.h>.
2149 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2150 Release it on return. Handle "pid" magical lookup retry.
2151
2152 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2153
2154 [BZ #10496]
2155 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2156 (t_fmt_ampm): Likewise.
2157 * localedata/locales/aa_ER (t_fmt): Likewise.
2158 (t_fmt_ampm): Likewise.
2159 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2160 (t_fmt_ampm): Likewise.
2161 * localedata/locales/aa_ET (t_fmt): Likewise.
2162 (t_fmt_ampm): Likewise.
2163 * localedata/locales/am_ET (t_fmt): Likewise.
2164 (t_fmt_ampm): Likewise.
2165 * localedata/locales/byn_ER (t_fmt): Likewise.
2166 (t_fmt_ampm): Likewise.
2167 * localedata/locales/om_ET (t_fmt): Likewise.
2168 (t_fmt_ampm): Likewise.
2169 * localedata/locales/sid_ET (t_fmt): Likewise.
2170 (t_fmt_ampm): Likewise.
2171 * localedata/locales/so_DJ (t_fmt): Likewise.
2172 (t_fmt_ampm): Likewise.
2173 * localedata/locales/so_ET (t_fmt): Likewise.
2174 (t_fmt_ampm): Likewise.
2175 * localedata/locales/so_SO (t_fmt): Likewise.
2176 (t_fmt_ampm): Likewise.
2177 * localedata/locales/ti_ER (t_fmt): Likewise.
2178 (t_fmt_ampm): Likewise.
2179 * localedata/locales/ti_ET (t_fmt): Likewise.
2180 (t_fmt_ampm): Likewise.
2181 * localedata/locales/tig_ER (t_fmt): Likewise.
2182 (t_fmt_ampm): Likewise.
2183 * localedata/locales/wal_ET (t_fmt): Likewise.
2184 (t_fmt_ampm): Likewise.
2185
2186 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2187 * localedata/locales/ar_IN (t_fmt): Likewise.
2188 * localedata/locales/bhb_IN (t_fmt): Likewise.
2189 * localedata/locales/bho_IN (t_fmt): Likewise.
2190 * localedata/locales/bi_VU (t_fmt): Likewise.
2191 * localedata/locales/bn_BD (t_fmt): Likewise.
2192 * localedata/locales/bn_IN (t_fmt): Likewise.
2193 * localedata/locales/brx_IN (t_fmt): Likewise.
2194 * localedata/locales/doi_IN (t_fmt): Likewise.
2195 * localedata/locales/en_HK (t_fmt): Likewise.
2196 (t_fmt_ampm): Likewise.
2197 * localedata/locales/en_IN (t_fmt): Likewise.
2198 * localedata/locales/en_PH (t_fmt): Likewise.
2199 * localedata/locales/gu_IN (t_fmt): Likewise.
2200 * localedata/locales/hi_IN (t_fmt): Likewise.
2201 * localedata/locales/hif_FJ (t_fmt): Likewise.
2202 * localedata/locales/hne_IN (t_fmt): Likewise.
2203 * localedata/locales/kn_IN (t_fmt): Likewise.
2204 * localedata/locales/kok_IN (t_fmt): Likewise.
2205 * localedata/locales/ks_IN (t_fmt): Likewise.
2206 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2207 * localedata/locales/mag_IN (t_fmt): Likewise.
2208 * localedata/locales/mai_IN (t_fmt): Likewise.
2209 * localedata/locales/mjw_IN (t_fmt): Likewise.
2210 * localedata/locales/ml_IN (t_fmt): Likewise.
2211 * localedata/locales/mni_IN (t_fmt): Likewise.
2212 * localedata/locales/mr_IN (t_fmt): Likewise.
2213 * localedata/locales/ms_MY (t_fmt): Likewise.
2214 * localedata/locales/pa_IN (t_fmt): Likewise.
2215 * localedata/locales/raj_IN (t_fmt): Likewise.
2216 * localedata/locales/sa_IN (t_fmt): Likewise.
2217 * localedata/locales/sat_IN (t_fmt): Likewise.
2218 * localedata/locales/sd_IN (t_fmt): Likewise.
2219 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2220 * localedata/locales/tcy_IN (t_fmt): Likewise.
2221 * localedata/locales/the_NP (t_fmt): Likewise.
2222 * localedata/locales/to_TO (t_fmt): Likewise.
2223 * localedata/locales/ur_IN (t_fmt): Likewise.
2224
2225 * localedata/locales/hif_FJ (d_t_fmt): Set to
2226 "%A %d %b %Y %I:%M:%S %p".
2227 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2228
2229 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2230 * localedata/locales/ar_BH (t_fmt): Likewise.
2231 * localedata/locales/ar_DZ (t_fmt): Likewise.
2232 * localedata/locales/ar_EG (t_fmt): Likewise.
2233 * localedata/locales/ar_IQ (t_fmt): Likewise.
2234 * localedata/locales/ar_JO (t_fmt): Likewise.
2235 * localedata/locales/ar_KW (t_fmt): Likewise.
2236 * localedata/locales/ar_LB (t_fmt): Likewise.
2237 * localedata/locales/ar_LY (t_fmt): Likewise.
2238 * localedata/locales/ar_OM (t_fmt): Likewise.
2239 * localedata/locales/ar_QA (t_fmt): Likewise.
2240 * localedata/locales/ar_SD (t_fmt): Likewise.
2241 * localedata/locales/ar_SS (t_fmt): Likewise.
2242 * localedata/locales/ar_SY (t_fmt): Likewise.
2243 * localedata/locales/ar_TN (t_fmt): Likewise.
2244 * localedata/locales/ar_YE (t_fmt): Likewise.
2245
2246 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2247 (t_fmt_ampm): Likewise.
2248 * localedata/locales/gez_ET (t_fmt): Likewise.
2249 (t_fmt_ampm): Likewise.
2250
2251 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2252 (t_fmt_ampm): Likewise.
2253 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2254
2255 * localedata/locales/zh_HK (t_fmt):
2256 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2257
2258 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2259 because this locale does not use the 12-hour clock.
2260 (t_fmt): Set to "%Z %H:%M:%S".
2261 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2262
2263 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2264 because this locale does not use the 12-hour clock.
2265 (t_fmt): Set to "%H:%M:%S %Z".
2266 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2267
2268 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2269 because this locale does not use the 12-hour clock.
2270 (t_fmt): Set to "%T".
2271 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2272 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2273
2274 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2275 because this locale does not use the 12-hour clock.
2276 (t_fmt): Set to "%H:%M:%S %Z".
2277 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2278
2279 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2280 because this locale does not use the 12-hour clock.
2281 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2282 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2283
2284 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2285
2286 [BZ #10496]
2287 [BZ #23724]
2288 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2289 (t_fmt_ampm): Likewise.
2290 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2291 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2292 (d_fmt): Set to "%-d.%-m.%y".
2293
2294 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2295
2296 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2297 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2298 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2299 Likewise.
2300 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2301 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2302 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2303 function.
2304 * support/blob_repeat.c (check_mul_overflow_size_t,
2305 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2306
2307 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2308
2309 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2310
2311 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2312
2313 regex: simplify Gnulib port
2314 This simplifies the code, by removing stuff intended for porting
2315 to Gnulib but no longer needed there.
2316 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2317 uses of libc_hidden_def, weak_alias.
2318 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2319 _Restrict_ except for public-facing headers.
2320 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2321 Remove; already defined elsewhere.
2322 * posix/regex.c, posix/regex_internal.h:
2323 Use __GNUC_PREREQ instead of rolling our own.
2324 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2325
2326 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2327
2328 * benchtests/bench-strlen.c (generic_strlen): New function.
2329 (memchr_strlen): New function.
2330
2331 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2332
2333 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2334 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2335 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2336
2337 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2338
2339 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2340
2341 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2342
2343 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2344 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2345 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2346 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2347 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2348 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2349 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2350
2351 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2352
2353 [BZ #24023]
2354 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2355 PLT reference in libc.so.
2356 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2357 _Q_lltoq and _Q_qtod PLT references in libc.so.
2358
2359 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2360
2361 * benchtests/bench-memchr.c: Cleanup defines.
2362 * benchtests/bench-memcmp.c: Likewise.
2363 * benchtests/bench-memset.c: Likewise.
2364 * benchtests/bench-memset-large.c: Likewise.
2365 * benchtests/bench-memset-walk.c: Likewise.
2366 * benchtests/bench-stpcpy.c: Likewise.
2367 * benchtests/bench-stpncpy.c: Likewise.
2368 * benchtests/bench-strcat.c: Likewise.
2369 * benchtests/bench-strchr.c: Likewise.
2370 * benchtests/bench-strcmp.c: Likewise.
2371 * benchtests/bench-strcpy.c: Likewise.
2372 * benchtests/bench-strcspn.c: Likewise.
2373 * benchtests/bench-string.h: Likewise.
2374 * benchtests/bench-strlen.c: Likewise.
2375 * benchtests/bench-strncat.c: Likewise.
2376 * benchtests/bench-strncmp.c: Likewise.
2377 * benchtests/bench-strncpy.c: Likewise.
2378 * benchtests/bench-strnlen.c: Likewise.
2379 * benchtests/bench-strpbrk.c: Likewise.
2380 * benchtests/bench-strrchr.c: Likewise.
2381 * benchtests/bench-strspn.c: Likewise.
2382
2383 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2384
2385 * stdlib/longlong.h: Update from GCC.
2386
2387 [BZ #23993]
2388 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2389 * configure: Regenerated.
2390 * manual/install.texi (Tools for Compilation): Update minimum GCC
2391 version.
2392 * INSTALL: Regenerated.
2393
2394 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2395
2396 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2397
2398 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2399
2400 * malloc/malloc.c (mremap_chunk): Additional checks.
2401
2402 2018-12-21 Mao Han <han_mao@c-sky.com>
2403
2404 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2405 * scripts/build-many-glibcs.py: Add C-SKY targets.
2406 * sysdeps/csky/Implies: New file.
2407 * sysdeps/csky/Makefile: Likewise.
2408 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2409 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2410 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2411 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2412 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2413 * sysdeps/csky/abiv2/memmove.S: Likewise.
2414 * sysdeps/csky/abiv2/memset.S: Likewise.
2415 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2416 * sysdeps/csky/abiv2/start.S: Likewise.
2417 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2418 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2419 * sysdeps/csky/abiv2/strlen.S: Likewise.
2420 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2421 * sysdeps/csky/abort-instr.h: Likewise.
2422 * sysdeps/csky/atomic-machine.h: Likewise.
2423 * sysdeps/csky/bits/endian.h: Likewise.
2424 * sysdeps/csky/bits/fenv.h: Likewise.
2425 * sysdeps/csky/bits/link.h: Likewise.
2426 * sysdeps/csky/bits/setjmp.h: Likewise.
2427 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2428 * sysdeps/csky/bsd-setjmp.S: Likewise.
2429 * sysdeps/csky/configure: Likewise.
2430 * sysdeps/csky/configure.ac: Likewise.
2431 * sysdeps/csky/dl-machine.h: Likewise.
2432 * sysdeps/csky/dl-procinfo.c: Likewise.
2433 * sysdeps/csky/dl-procinfo.h: Likewise.
2434 * sysdeps/csky/dl-sysdep.h: Likewise.
2435 * sysdeps/csky/dl-tls.h: Likewise.
2436 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2437 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2438 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2439 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2440 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2441 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2442 * sysdeps/csky/fpu/fegetround.c: Likewise.
2443 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2444 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2445 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2446 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2447 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2448 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2449 * sysdeps/csky/fpu/fesetround.c: Likewise.
2450 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2451 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2452 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2453 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2454 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2455 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2456 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2457 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2458 * sysdeps/csky/fpu_control.h: Likewise.
2459 * sysdeps/csky/gccframe.h: Likewise.
2460 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2461 * sysdeps/csky/ldsodefs.h: Likewise.
2462 * sysdeps/csky/libc-tls.c: Likewise.
2463 * sysdeps/csky/linkmap.h: Likewise.
2464 * sysdeps/csky/machine-gmon.h: Likewise.
2465 * sysdeps/csky/memusage.h: Likewise.
2466 * sysdeps/csky/nofpu/Implies: Likewise.
2467 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2468 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2469 * sysdeps/csky/nptl/Makefile: Likewise.
2470 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2471 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2472 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2473 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2474 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2475 * sysdeps/csky/nptl/tls.h: Likewise.
2476 * sysdeps/csky/preconfigure: Likewise.
2477 * sysdeps/csky/sfp-machine.h: Likewise.
2478 * sysdeps/csky/sotruss-lib.c: Likewise.
2479 * sysdeps/csky/stackinfo.h: Likewise.
2480 * sysdeps/csky/sysdep.h: Likewise.
2481 * sysdeps/csky/tininess.h: Likewise.
2482 * sysdeps/csky/tst-audit.h: Likewise.
2483 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2484 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2485 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2486 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2487 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2488 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2489 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2490 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2491 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2492 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2493 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2494 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2495 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2496 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2497 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2498 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2499 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2500 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2501 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2502 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2503 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2504 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2505 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2506 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2507 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2508 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2509 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2510 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2511 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2512 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2513 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2514 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2515 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2516 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2517 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2518 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2519 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2520 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2521 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2522 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2523 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2524 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2525 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2526 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2527
2528 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2529
2530 * include/time.h (__difftime64): Add.
2531 * time/difftime.c (subtract): convert to 64-bit time.
2532 * time/difftime.c (__difftime64): Add.
2533 * time/difftime.c (__difftime): Wrap around __difftime64.
2534
2535 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2536
2537 * manual/examples/add.c: Remove redundant "if not".
2538 * manual/examples/argp-ex1.c: Likewise.
2539 * manual/examples/argp-ex2.c: Likewise.
2540 * manual/examples/argp-ex3.c: Likewise.
2541 * manual/examples/argp-ex4.c: Likewise.
2542 * manual/examples/atexit.c: Likewise.
2543 * manual/examples/db.c: Likewise.
2544 * manual/examples/dir.c: Likewise.
2545 * manual/examples/dir2.c: Likewise.
2546 * manual/examples/execinfo.c: Likewise.
2547 * manual/examples/filecli.c: Likewise.
2548 * manual/examples/filesrv.c: Likewise.
2549 * manual/examples/fmtmsgexpl.c: Likewise.
2550 * manual/examples/genpass.c: Likewise.
2551 * manual/examples/inetcli.c: Likewise.
2552 * manual/examples/inetsrv.c: Likewise.
2553 * manual/examples/isockad.c: Likewise.
2554 * manual/examples/longopt.c: Likewise.
2555 * manual/examples/memopen.c: Likewise.
2556 * manual/examples/memstrm.c: Likewise.
2557 * manual/examples/mkdirent.c: Likewise.
2558 * manual/examples/mkfsock.c: Likewise.
2559 * manual/examples/mkisock.c: Likewise.
2560 * manual/examples/mygetpass.c: Likewise.
2561 * manual/examples/pipe.c: Likewise.
2562 * manual/examples/popen.c: Likewise.
2563 * manual/examples/rprintf.c: Likewise.
2564 * manual/examples/search.c: Likewise.
2565 * manual/examples/select.c: Likewise.
2566 * manual/examples/setjmp.c: Likewise.
2567 * manual/examples/sigh1.c: Likewise.
2568 * manual/examples/sigusr.c: Likewise.
2569 * manual/examples/stpcpy.c: Likewise.
2570 * manual/examples/strdupa.c: Likewise.
2571 * manual/examples/strftim.c: Likewise.
2572 * manual/examples/subopt.c: Likewise.
2573 * manual/examples/swapcontext.c: Likewise.
2574 * manual/examples/termios.c: Likewise.
2575 * manual/examples/testopt.c: Likewise.
2576 * manual/examples/testpass.c: Likewise.
2577 * manual/examples/timeval_subtract.c: Likewise.
2578
2579 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2580
2581 * sysdeps/x86/fpu/math_private.h: New file.
2582 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2583
2584 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2585 definition.
2586 (cosh): Likewise.
2587 (tanh): Likewise.
2588
2589 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2590
2591 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2592 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2593 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2594 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2595 fields.
2596 (_dl_show_auxv): Give a special treatment to
2597 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2598 and AT_L3_CACHEGEOMETRY.
2599 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2600 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2601 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2602 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2603
2604 2018-12-19 Andreas Schwab <schwab@suse.de>
2605
2606 * nscd/connections.c (check_use): Don't abort on invalid len.
2607
2608 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2609
2610 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2611 values in the 64bit value cases.
2612
2613 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2614
2615 * include/time.h
2616 (__ctime64_r): Add.
2617 * time/ctime_r.c
2618 (__ctime64_r): Add.
2619 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2620
2621 * include/time.h
2622 (__ctime64): Add.
2623 * time/gmtime.c
2624 (__ctime64): Add.
2625 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2626
2627 * include/time.h
2628 (__gmtime64_r): Add.
2629 * time/gmtime.c
2630 (__gmtime64_r): Add.
2631 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2632
2633 * include/time.h
2634 (__gmtime64): Add.
2635 * time/gmtime.c
2636 (__gmtime64): Add.
2637 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2638
2639 * include/time.h
2640 (__localtime64_r): Add.
2641 * time/localtime.c
2642 (__localtime64_r): Add.
2643 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2644
2645 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2646
2647 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2648 kernel_sigction definition.
2649
2650 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2651
2652 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2653
2654 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2655 __syscall_rt_sigaction.
2656 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2657 (kernel_sigaction): Use Linux generic defintion.
2658 (STUB): Define.
2659 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2660 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2661 (__syscall_rt_sigaction): Remove implementation.
2662 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2663 hidden.
2664 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2665 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2666 INTERNAL_SYSCALL): Remove definitions.
2667 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2668 action and signal set size.
2669 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2670 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2671
2672 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2673 James Clarke <jrtc27@jrtc27.com>
2674
2675 [BZ #23967]
2676 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2677 Define if SA_RESTORER is defined.
2678 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2679 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2680 already defined.
2681 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2682 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2683 definitions.
2684 (HAS_SA_RESTORER): Define.
2685 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2686 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2687 (HAS_SA_RESTORER): Define.
2688 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2689 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2690 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2691 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2692 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2693
2694 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2695
2696 * sysdeps/unix/sysv/linux/kernel-features.h
2697 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2698 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2699 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2700 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2701 (__ASSUME_ST_INO_64_BIT): Likewise.
2702 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2703 <kernel-features.h>.
2704 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2705 Remove conditional code.
2706 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2707 <kernel-features.h>.
2708 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2709 Remove conditional code.
2710 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2711 <kernel-features.h>.
2712 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2713 Remove conditional code.
2714 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2715 <kernel-features.h>.
2716 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2717 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2718
2719 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2720
2721 * sysdeps/s390/multiarch/ifunc-resolve.h
2722 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2723 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2724 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2725 Delete macro definition.
2726 (s390_libc_ifunc_init): Rename to
2727 s390_libc_ifunc_expr_stfle_init.
2728 * sysdeps/s390/bzero: Use
2729 s390_libc_ifunc_expr_stfle_init instead of
2730 s390_libc_ifunc_init.
2731 * sysdeps/s390/memcmp.c: Likewise.
2732 * sysdeps/s390/memcpy.c: Likewise.
2733 * sysdeps/s390/mempcpy.c: Likewise.
2734 * sysdeps/s390/memset.c: Likewise.
2735
2736 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2737
2738 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2739 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2740
2741 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2742
2743 * sysdeps/s390/multiarch/Makefile
2744 (sysdep_routines): Remove wmemcmp variants.
2745 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2746 * sysdeps/s390/multiarch/ifunc-impl-list.c
2747 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2748 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2749 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2751 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2752 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2753 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2754 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2755
2756 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2757
2758 * sysdeps/s390/multiarch/Makefile
2759 (sysdep_routines): Remove wmemset variants.
2760 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2761 * sysdeps/s390/multiarch/ifunc-impl-list.c
2762 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2763 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2764 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2765 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2766 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2767 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2768 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2769 * sysdeps/s390/ifunc-wmemset.h: New file.
2770
2771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2772
2773 * sysdeps/s390/multiarch/Makefile
2774 (sysdep_routines): Remove wmemchr variants.
2775 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2776 * sysdeps/s390/multiarch/ifunc-impl-list.c
2777 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2778 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2779 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2780 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2781 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2782 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2783 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2784 * sysdeps/s390/ifunc-wmemchr.h: New file.
2785
2786 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2787
2788 * sysdeps/s390/multiarch/Makefile
2789 (sysdep_routines): Remove wcscspn variants.
2790 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2791 * sysdeps/s390/multiarch/ifunc-impl-list.c
2792 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2793 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2794 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2796 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2797 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2798 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2799 * sysdeps/s390/ifunc-wcscspn.h: New file.
2800
2801 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2802
2803 * sysdeps/s390/multiarch/Makefile
2804 (sysdep_routines): Remove wcspbrk variants.
2805 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2806 * sysdeps/s390/multiarch/ifunc-impl-list.c
2807 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2808 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2809 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2810 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2811 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2812 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2813 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2814 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2815
2816 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2817
2818 * sysdeps/s390/multiarch/Makefile
2819 (sysdep_routines): Remove wcsspn variants.
2820 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2821 * sysdeps/s390/multiarch/ifunc-impl-list.c
2822 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2823 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2824 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2825 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2826 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2827 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2828 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2829 * sysdeps/s390/ifunc-wcsspn.h: New file.
2830
2831 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2832
2833 * sysdeps/s390/multiarch/Makefile
2834 (sysdep_routines): Remove wcsrchr variants.
2835 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2836 * sysdeps/s390/multiarch/ifunc-impl-list.c
2837 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2838 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2839 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2840 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2841 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2842 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2843 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2844 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2845
2846 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2847
2848 * sysdeps/s390/multiarch/Makefile
2849 (sysdep_routines): Remove wcschrnul variants.
2850 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2851 * sysdeps/s390/multiarch/ifunc-impl-list.c
2852 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2853 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2854 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2855 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2856 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2857 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2858 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2859 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2860
2861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2862
2863 * sysdeps/s390/multiarch/Makefile
2864 (sysdep_routines): Remove wcschr variants.
2865 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2866 * sysdeps/s390/multiarch/ifunc-impl-list.c
2867 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2868 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2869 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2870 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2871 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2872 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2873 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2874 * sysdeps/s390/ifunc-wcschr.h: New file.
2875
2876 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2877
2878 * sysdeps/s390/multiarch/Makefile
2879 (sysdep_routines): Remove wcsncmp variants.
2880 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2881 * sysdeps/s390/multiarch/ifunc-impl-list.c
2882 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2883 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2884 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2885 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2886 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2887 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2888 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2889 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2890
2891 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2892
2893 * sysdeps/s390/multiarch/Makefile
2894 (sysdep_routines): Remove wcscmp variants.
2895 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2896 * sysdeps/s390/multiarch/ifunc-impl-list.c
2897 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2898 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2899 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2900 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2901 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2902 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2903 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2904 * sysdeps/s390/ifunc-wcscmp.h: New file.
2905
2906 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2907
2908 * sysdeps/s390/multiarch/Makefile
2909 (sysdep_routines): Remove wcsncat variants.
2910 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2911 * sysdeps/s390/multiarch/ifunc-impl-list.c
2912 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2913 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2914 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2915 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2916 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2917 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2918 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2919 * sysdeps/s390/ifunc-wcsncat.h: New file.
2920
2921 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2922
2923 * sysdeps/s390/multiarch/Makefile
2924 (sysdep_routines): Remove wcscat variants.
2925 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2926 * sysdeps/s390/multiarch/ifunc-impl-list.c
2927 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2928 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2929 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2930 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2931 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2932 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2933 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2934 * sysdeps/s390/ifunc-wcscat.h: New file.
2935
2936 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2937
2938 * sysdeps/s390/multiarch/Makefile
2939 (sysdep_routines): Remove wcpncpy variants.
2940 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2941 * sysdeps/s390/multiarch/ifunc-impl-list.c
2942 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2943 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2944 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2945 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2946 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2947 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2948 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2949 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2950
2951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2952
2953 * sysdeps/s390/multiarch/Makefile
2954 (sysdep_routines): Remove wcsncpy variants.
2955 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2956 * sysdeps/s390/multiarch/ifunc-impl-list.c
2957 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2958 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2959 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2960 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2961 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2962 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2963 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2964 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2965
2966 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2967
2968 * sysdeps/s390/multiarch/Makefile
2969 (sysdep_routines): Remove wcpcpy variants.
2970 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2971 * sysdeps/s390/multiarch/ifunc-impl-list.c
2972 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2973 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2974 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2975 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2976 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2977 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2978 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2979 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2980
2981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2982
2983 * sysdeps/s390/multiarch/Makefile
2984 (sysdep_routines): Remove wcscpy variants.
2985 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2986 * sysdeps/s390/multiarch/ifunc-impl-list.c
2987 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2988 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2989 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2990 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2991 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2992 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2993 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2994 * sysdeps/s390/ifunc-wcscpy.h: New file.
2995
2996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2997
2998 * sysdeps/s390/multiarch/Makefile
2999 (sysdep_routines): Remove wcsnlen variants.
3000 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3001 * sysdeps/s390/multiarch/ifunc-impl-list.c
3002 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3003 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3004 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3005 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3006 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3007 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3008 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3009 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3010
3011 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3012
3013 * sysdeps/s390/multiarch/Makefile
3014 (sysdep_routines): Remove wcslen variants.
3015 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3016 * sysdeps/s390/multiarch/ifunc-impl-list.c
3017 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3018 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3019 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3020 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3021 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3022 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3023 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3024 * sysdeps/s390/ifunc-wcslen.h: New file.
3025
3026 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3027
3028 * sysdeps/s390/multiarch/Makefile
3029 (sysdep_routines): Remove memrchr variants.
3030 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3031 * sysdeps/s390/multiarch/ifunc-impl-list.c
3032 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3033 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3034 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3035 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3036 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3037 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3038 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3039 * sysdeps/s390/ifunc-memrchr.h: New file.
3040
3041 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3042
3043 * sysdeps/s390/multiarch/Makefile
3044 (sysdep_routines): Remove memccpy variants.
3045 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3046 * sysdeps/s390/multiarch/ifunc-impl-list.c
3047 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3048 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3049 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3050 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3051 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3052 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3053 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3054 * sysdeps/s390/ifunc-memccpy.h: New file.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/multiarch/Makefile
3059 (sysdep_routines): Remove rawmemchr variants.
3060 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3061 * sysdeps/s390/multiarch/ifunc-impl-list.c
3062 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3063 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3064 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3065 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3066 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3067 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3068 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3069 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3070
3071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3072
3073 * sysdeps/s390/multiarch/Makefile
3074 (sysdep_routines): Remove memchr variants.
3075 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3076 * sysdeps/s390/multiarch/ifunc-impl-list.c
3077 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3078 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3079 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3080 * sysdeps/s390/multiarch/memchr.c: Move to ...
3081 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3082 * sysdeps/s390/ifunc-memchr.h: New file.
3083 * sysdeps/s390/s390-64/memchr.S: Move to ...
3084 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3085 for 31/64bit and ifunc handling.
3086 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3087 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3088 * sysdeps/s390/s390-32/memchr.S: Likewise.
3089
3090 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3091
3092 * sysdeps/s390/multiarch/Makefile
3093 (sysdep_routines): Remove strcspn variants.
3094 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3095 * sysdeps/s390/multiarch/ifunc-impl-list.c
3096 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3097 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3098 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3099 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3100 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3101 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3102 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3103 * sysdeps/s390/ifunc-strcspn.h: New file.
3104
3105 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3106
3107 * sysdeps/s390/multiarch/Makefile
3108 (sysdep_routines): Remove strpbrk variants.
3109 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3110 * sysdeps/s390/multiarch/ifunc-impl-list.c
3111 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3112 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3113 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3114 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3115 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3116 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3117 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3118 * sysdeps/s390/ifunc-strpbrk.h: New file.
3119
3120 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3121
3122 * sysdeps/s390/multiarch/Makefile
3123 (sysdep_routines): Remove strspn variants.
3124 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3125 * sysdeps/s390/multiarch/ifunc-impl-list.c
3126 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3127 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3128 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3129 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3130 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3131 * sysdeps/s390/multiarch/strspn.c: Move to ...
3132 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3133 * sysdeps/s390/ifunc-strspn.h: New file.
3134
3135 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3136
3137 * sysdeps/s390/multiarch/Makefile
3138 (sysdep_routines): Remove strrchr variants.
3139 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3140 * sysdeps/s390/multiarch/ifunc-impl-list.c
3141 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3142 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3143 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3144 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3145 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3146 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3147 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3148 * sysdeps/s390/ifunc-strrchr.h: New file.
3149
3150 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3151
3152 * sysdeps/s390/multiarch/Makefile
3153 (sysdep_routines): Remove strchrnul variants.
3154 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3155 * sysdeps/s390/multiarch/ifunc-impl-list.c
3156 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3157 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3158 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3159 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3160 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3161 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3162 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3163 * sysdeps/s390/ifunc-strchrnul.h: New file.
3164
3165 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3166
3167 * sysdeps/s390/multiarch/Makefile
3168 (sysdep_routines): Remove strchr variants.
3169 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3170 * sysdeps/s390/multiarch/ifunc-impl-list.c
3171 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3172 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3173 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3174 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3175 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/strchr.c: Move to ...
3177 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3178 * sysdeps/s390/ifunc-strchr.h: New file.
3179
3180 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3181
3182 * sysdeps/s390/multiarch/Makefile
3183 (sysdep_routines): Remove strncmp variants.
3184 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3185 * sysdeps/s390/multiarch/ifunc-impl-list.c
3186 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3187 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3188 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3189 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3190 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3192 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3193 * sysdeps/s390/ifunc-strncmp.h: New file.
3194
3195 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3196
3197 * sysdeps/s390/multiarch/Makefile
3198 (sysdep_routines): Remove strcmp variants.
3199 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3200 * sysdeps/s390/multiarch/ifunc-impl-list.c
3201 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3202 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3203 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3204 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3205 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3206 * sysdeps/s390/ifunc-strcmp.h: New file.
3207 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3208 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3209 for 31/64bit and ifunc handling.
3210 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3211 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3212 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3213
3214 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3215
3216 * sysdeps/s390/multiarch/Makefile
3217 (sysdep_routines): Remove strncat variants.
3218 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3219 * sysdeps/s390/multiarch/ifunc-impl-list.c
3220 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3221 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3222 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3223 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3224 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3225 * sysdeps/s390/multiarch/strncat.c: Move to ...
3226 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3227 * sysdeps/s390/ifunc-strncat.h: New file.
3228
3229 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3230
3231 * sysdeps/s390/multiarch/Makefile
3232 (sysdep_routines): Remove strcat variants.
3233 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3234 * sysdeps/s390/multiarch/ifunc-impl-list.c
3235 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3236 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3237 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3238 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3239 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3240 * sysdeps/s390/multiarch/strcat.c: Move to ...
3241 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3242 * sysdeps/s390/ifunc-strcat.h: New file.
3243
3244 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3245
3246 * sysdeps/s390/multiarch/Makefile
3247 (sysdep_routines): Remove stpncpy variants.
3248 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3249 * sysdeps/s390/multiarch/ifunc-impl-list.c
3250 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3251 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3252 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3253 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3254 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3255 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3256 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3257 * sysdeps/s390/ifunc-stpncpy.h: New file.
3258
3259 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3260
3261 * sysdeps/s390/multiarch/Makefile
3262 (sysdep_routines): Remove strncpy variants.
3263 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3264 * sysdeps/s390/multiarch/ifunc-impl-list.c
3265 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3266 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3267 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3268 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3269 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/ifunc-strncpy.h: New file.
3271 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3272 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3273 and adjust ifunc handling.
3274 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3275 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3276 and adjust ifunc handling.
3277 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3278 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3279
3280 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3281
3282 * sysdeps/s390/multiarch/Makefile
3283 (sysdep_routines): Remove stpcpy variants.
3284 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3285 * sysdeps/s390/multiarch/ifunc-impl-list.c
3286 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3287 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3288 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3290 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3291 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3292 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3293 * sysdeps/s390/ifunc-stpcpy.h: New file.
3294
3295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3296
3297 * sysdeps/s390/multiarch/Makefile
3298 (sysdep_routines): Remove strcpy variants.
3299 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3300 * sysdeps/s390/multiarch/ifunc-impl-list.c
3301 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3302 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3303 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3304 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3305 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3306 * sysdeps/s390/ifunc-strcpy.h: New file.
3307 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3308 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3309 for 31/64bit and ifunc handling.
3310 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3311 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3312 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3313
3314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3315
3316 * sysdeps/s390/multiarch/Makefile
3317 (sysdep_routines): Remove strnlen variants.
3318 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3319 * sysdeps/s390/multiarch/ifunc-impl-list.c
3320 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3321 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3322 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3323 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3324 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3325 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3326 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3327 * sysdeps/s390/ifunc-strnlen.h: New file.
3328
3329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3330
3331 * sysdeps/s390/multiarch/Makefile
3332 (sysdep_routines): Remove strlen variants.
3333 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3334 * sysdeps/s390/multiarch/ifunc-impl-list.c
3335 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3336 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3337 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3338 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3339 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3340 * sysdeps/s390/multiarch/strlen.c: Move to ...
3341 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3342 * sysdeps/s390/ifunc-strlen.h: New file.
3343
3344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3345
3346 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3347 * sysdeps/s390/multiarch/ifunc-impl-list.c
3348 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3349 * sysdeps/s390/ifunc-memmem.h: New file.
3350 * sysdeps/s390/memmem.c: Likewise.
3351 * sysdeps/s390/memmem-c.c: Likewise.
3352 * sysdeps/s390/memmem-vx.c: Likewise.
3353
3354 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3355
3356 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3357 * sysdeps/s390/multiarch/ifunc-impl-list.c
3358 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3359 * sysdeps/s390/ifunc-strstr.h: New file.
3360 * sysdeps/s390/strstr.c: Likewise.
3361 * sysdeps/s390/strstr-c.c: Likewise.
3362 * sysdeps/s390/strstr-vx.c: Likewise.
3363
3364 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3365
3366 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3367 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3368 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3369 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3370 New defines.
3371 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3372 * sysdeps/s390/memmove-c.c: New file.
3373 * sysdeps/s390/memmove.c: Likewise.
3374 * sysdeps/s390/multiarch/ifunc-impl-list.c
3375 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3376
3377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3378
3379 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3380 * sysdeps/s390/configure.ac: Add check for z13 support.
3381 * sysdeps/s390/configure: Regenerated.
3382
3383 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3384
3385 * sysdeps/s390/memcopy.h: New file.
3386
3387 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3388
3389 * sysdeps/s390/s390-32/bcopy.S: Remove.
3390 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3391
3392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3393
3394 * sysdeps/s390/ifunc-memcpy.h: New File.
3395 * sysdeps/s390/memcpy.S: Move to ...
3396 * sysdeps/s390/memcpy-z900.S ... here.
3397 Move implementations from memcpy-s390x.s to here.
3398 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3399 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3400 Remove memcpy/mempcpy variants.
3401 * sysdeps/s390/Makefile (sysdep_routines):
3402 Add memcpy/mempcpy variants.
3403 * sysdeps/s390/multiarch/ifunc-impl-list.c
3404 (__libc_ifunc_impl_list): Adjust ifunc variants for
3405 memcpy and mempcpy.
3406 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3407 to ...
3408 * sysdeps/s390/memcpy.c: ... here.
3409 Adjust ifunc variants for memcpy.
3410 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3411 * sysdeps/s390/mempcpy.c: ... here.
3412 Adjust ifunc variants for mempcpy.
3413 * sysdeps/s390/mempcpy.S: Delete file.
3414
3415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3416
3417 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3418 * sysdeps/s390/memcpy.S: ... here.
3419 Adjust to be usable for 31/64bit.
3420 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3421 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3422 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3423 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3424 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3425 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3426 Adjust to be usable for 31/64bit.
3427 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3428 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3429 * sysdeps/s390/multiarch/memcpy.c: ... here.
3430 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3431
3432 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3433
3434 * sysdeps/s390/ifunc-memcmp.h: New File.
3435 * sysdeps/s390/memcmp.S: Move to ...
3436 * sysdeps/s390/memcmp-z900.S ... here.
3437 Move implementations from memcmp-s390x.s to here.
3438 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3439 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3440 Remove memcmp variants.
3441 * sysdeps/s390/Makefile (sysdep_routines):
3442 Add memcmp variants.
3443 * sysdeps/s390/multiarch/ifunc-impl-list.c
3444 (__libc_ifunc_impl_list): Adjust ifunc variants for
3445 memcmp.
3446 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3447 to ...
3448 * sysdeps/s390/memcmp.c: ... here.
3449 Adjust ifunc variants for memcmp.
3450
3451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3452
3453 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3454 * sysdeps/s390/memcmp.S: ... here.
3455 Adjust to be usable for 31/64bit.
3456 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3457 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3458 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3459 Remove memcmp.
3460 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3461 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3462 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3463 Adjust to be usable for 31/64bit.
3464 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3465 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3466 * sysdeps/s390/multiarch/memcmp.c: ... here.
3467 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3468
3469 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3470
3471 * sysdeps/s390/s390-32/bzero.S: Delete file.
3472 * sysdeps/s390/s390-64/bzero.S: Likewise.
3473 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3474 * sysdeps/s390/bzero.c: New file.
3475 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3476 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3477 * sysdeps/s390/multiarch/ifunc-impl-list.c
3478 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3479
3480 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3481
3482 * sysdeps/s390/ifunc-memset.h: New File.
3483 * sysdeps/s390/memset.S: Move to ...
3484 * sysdeps/s390/memset-z900.S ... here.
3485 Move implementations from memset-s390x.s to here.
3486 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3487 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3488 Remove memset variants.
3489 * sysdeps/s390/Makefile (sysdep_routines):
3490 Add memset variants.
3491 * sysdeps/s390/multiarch/ifunc-impl-list.c
3492 (__libc_ifunc_impl_list): Adjust ifunc variants for
3493 memset.
3494 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3495 to ...
3496 * sysdeps/s390/memset.c: ... here.
3497 Adjust ifunc variants for memset.
3498
3499 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3500
3501 * sysdeps/s390/s390-64/memset.S: Move to ...
3502 * sysdeps/s390/memset.S: ... here.
3503 Adjust to be usable for 31/64bit.
3504 * sysdeps/s390/s390-32/memset.S: Delete File.
3505 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3506 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3507 Remove memset.
3508 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3509 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3510 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3511 Adjust to be usable for 31/64bit.
3512 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3513 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3514 * sysdeps/s390/multiarch/memset.c: ... here.
3515 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3516
3517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3518
3519 * sysdeps/s390/multiarch/ifunc-resolve.h
3520 (s390_libc_ifunc_init, s390_libc_ifunc,
3521 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3522
3523 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3524
3525 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3526 * sysdeps/s390/configure.ac: Add check for z10 support.
3527 * sysdeps/s390/configure: Regenerated.
3528
3529 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3530
3531 * sysdeps/i386/atomic-machine.h: Merged with ...
3532 * sysdeps/x86_64/atomic-machine.h: To ...
3533 * sysdeps/x86/atomic-machine.h: This. New file.
3534
3535 2018-12-18 Florian Weimer <fweimer@redhat.com>
3536
3537 Rewrite locale/gen-translit.pl in Python.
3538 * locale/Makefile (generated): Add C-translit.h.
3539 (before-compile): Add $(objpfx)C-translit.h.
3540 (C-translit.h): Move to $(objpfx). Create target directory.
3541 Build using Python script.
3542 * locale/gen-translit.py: New file.
3543 * locale/gen-translit.pl: Remove file.
3544 * locale/C-translit.h.in: Change comment character to '#' for
3545 easier parsing without a C preprocessor.
3546 * locale/C-translit.h: Remove generated file.
3547 * manual/install.texi (Tools for Compilation): Do not mention
3548 C-translit.h.
3549 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3550 Remove locale/C-translit.h.
3551 * scripts/update-copyrights: Likewise.
3552 * INSTALL: Regenerate.
3553
3554 2018-12-18 Florian Weimer <fweimer@redhat.com>
3555
3556 [BZ #23995]
3557 * localedata/locales/bi_VU: Remove executable bit from file.
3558
3559 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3560
3561 * include/time.h
3562 (__localtime64): Add.
3563 * manual/maint.texi: Document Y2038 symbol handling.
3564 * time/localtime.c
3565 (__localtime64): Add.
3566 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3567
3568 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3569
3570 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3571 Do not clobber r12.
3572
3573 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3574 to allow extra macros from first or second sources.
3575 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3576 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3577 (tests-special): Add $(objpfx)tst-mman-consts.out.
3578 ($(objpfx)tst-mman-consts.out): New makefile target.
3579
3580 2018-12-17 Mao Han <han_mao@c-sky.com>
3581
3582 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3583 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3584 without stat64 system call support.
3585 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3586 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3587 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3588 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3589 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3590 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3591 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3592 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3593 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3594 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3595 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3596
3597 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3598
3599 regex: fix storage-exhaustion error
3600 [BZ #18040]
3601 * posix/regexec.c (get_subexp):
3602 Do not continue if storage is exhausted.
3603
3604 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3605
3606 regex: fix heap-use-after-free error
3607 [BZ #18040]
3608 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3609 https://debbugs.gnu.org/32592
3610 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3611 call extend_buffers which reallocates the re_string_t internal buffer.
3612 Local variable 'buf' was not updated in such case, resulting in
3613 use-after-free.
3614 * posix/regexec.c (get_subexp): Update 'buf' after call to
3615 get_subexp_sub.
3616
3617 2018-12-15 Florian Weimer <fweimer@redhat.com>
3618
3619 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3620 (minimum_stride_size): Use it.
3621 (support_blob_repeat_allocate): Likewise.
3622
3623 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3624
3625 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3626 definition.
3627 (acosh): Likewise.
3628 (atanh): Likewise.
3629
3630 2018-12-14 Florian Weimer <fweimer@redhat.com>
3631
3632 * manual/process.texi (Process Creation Concepts): Remove
3633 documentation of process (ID) lifetime. List more process
3634 creation functions. Reference Process Identification section.
3635 (Process Identification): Add information about process ID
3636 lifetime. Describe Linux thread/task IDs.
3637 * manual/signal.texi (Signaling Another Process): Mention that the
3638 signal is always sent to the process.
3639
3640 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3641
3642 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3643 and tst-ldbl-efgcvt.
3644 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3645 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3646 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3647 (fcvt_tests, output_error, output_r_error, do_test): Use the
3648 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3649 select the type of floating-point variables and arguments; to
3650 produce extra tests for double and conversion specifiers for
3651 printf; and to set the names of called functions.
3652 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3653 in tst-efgcvt-template.c.
3654 * misc/tst-ldbl-efgcvt.c: Likewise.
3655
3656 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3657
3658 * nss/Makefile (tst-nss-test3.out): New rule.
3659
3660 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3661
3662 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3663 clobber sp.
3664
3665 2018-12-13 fanjinke <fanjinke@hygon.cn>
3666
3667 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3668 "HygonGenuine".
3669
3670 2018-12-13 Andreas Schwab <schwab@suse.de>
3671
3672 [BZ #23861]
3673 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3674 (__pthread_rwlock_rdlock_full): Update expected value for
3675 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3676 * nptl/tst-rwlock-pwn.c: New file.
3677 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3678
3679 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3680
3681 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3682 definition.
3683
3684 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3685
3686 * benchtests/scripts/compare_bench.py (do_compare): write to
3687 stderr in casestat is not present.
3688 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3689 stderr in case timings field is not present. Also string showing
3690 the output filename goes into the stderr.
3691
3692 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3693
3694 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3695 and ZeroDivisorError exceptions.
3696 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3697 argument to loop through user provided statistics.
3698 * benchtests/scripts/compare_bench.py (main): Include the --stats
3699 argument.
3700
3701 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3702
3703 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3704 instead of return.
3705
3706 2018-12-12 Florian Weimer <fweimer@redhat.com>
3707
3708 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3709 clause to copyright header.
3710
3711 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3712
3713 [BZ #23614]
3714 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3715 registers saved in the stack frame.
3716 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3717 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3718
3719 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3720
3721 * include/bits/monetary-ldbl.h: New file.
3722 * include/bits/printf-ldbl.h: Likewise.
3723 * include/bits/stdio-ldbl.h: Likewise.
3724 * include/bits/stdlib-ldbl.h: Likewise.
3725 * include/bits/syslog-ldbl.h: Likewise.
3726 * include/bits/wchar-ldbl.h: Likewise.
3727
3728 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3729
3730 * libio/libio.h: Remove redirection for _IO_vfprintf.
3731
3732 2018-12-11 Andreas Schwab <schwab@suse.de>
3733
3734 * Makerules: Remove all references to abilist-pattern.
3735 (update-all-abi): Simplify find expression.
3736
3737 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3738
3739 [BZ #23961]
3740 * math/auto-libm-test-in: Add new test case.
3741 * math/auto-libm-test-out-pow: Regenerated.
3742 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3743
3744 2018-12-10 DJ Delorie <dj@redhat.com>
3745
3746 [BZ #23948]
3747 * support/test-container.c: Move postclean step to before we
3748 change namespaces.
3749
3750 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3751
3752 * scripts/gen-as-const.py (main): Handle --python option.
3753 * scripts/gen-py-const.awk: Remove.
3754 * Makerules (py-const-script): Use gen-as-const.py.
3755 ($(py-const)): Likewise.
3756 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3757 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3758 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3759 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3760 ~PTHREAD_MUTEX_NO_ELISION_NP.
3761 * manual/README.pretty-printers: Update reference to
3762 gen-py-const.awk.
3763
3764 * scripts/glibcextract.py: New file.
3765 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3766 or tempfile. Import glibcexctract.
3767 (compute_c_consts): Remove. Moved to glibcextract.py.
3768 (gen_test): Update reference to compute_c_consts.
3769 (main): Likewise.
3770 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3771 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3772 * sysdeps/unix/sysv/linux/Makefile
3773 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3774 Redirect stderr as well as stdout.
3775
3776 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3777
3778 [BZ #19767]
3779 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3780 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3781 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3782 ALWAYS_USE_VSYSCALL.
3783 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3784 ALWAYS_USE_VSYSCALL.
3785 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3786 ALWAYS_USE_VSYSCALL.
3787
3788 2018-12-10 Florian Weimer <fweimer@redhat.com>
3789
3790 [BZ #23972]
3791 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3792 offset instead of count for clarity. Fix typo in comment.
3793 (__old_getdents64): Keep track of previous offset. Use it to call
3794 handle_overflow.
3795 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3796 that d_off is never zero.
3797
3798 2018-12-10 Andreas Schwab <schwab@suse.de>
3799
3800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3801 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3803 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3804 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3805
3806 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3807
3808 * timezone/private.h: Update from tzcode 2018g.
3809 * timezone/tzfile.h: Likewise.
3810 * timezone/tzselect.ksh: Likewise.
3811 * timezone/zdump.c: Likewise.
3812 * timezone/zic.c: Likewise.
3813
3814 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3815
3816 [BZ #23490]
3817 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3818 (do_test): Adjust buffer size and fix format.
3819
3820 2018-12-07 DJ Delorie <dj@redhat.com>
3821
3822 [BZ #23907]
3823 * malloc/tst-tcfree3.c: New.
3824 * malloc/Makefile: Add it.
3825
3826 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3827
3828 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3829
3830 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3831
3832 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3833 used as a mask for the mode argument of __vfscanf_internal and
3834 __vfwscanf_internal.
3835 * stdio-common/vfscanf-internal.c
3836 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3837 (__strtof128_internal): Define to __wcstof128_internal.
3838 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3839 __strtof128_internal or __wcstof128_internal when the format of
3840 long double is the same as _Float128.
3841
3842 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3843
3844 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3845 * posix/confstr.c (confstr): Rename to __confstr.
3846 (__confstr): Add hidden def.
3847 (confstr): Add weak alias for __confstr.
3848 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3849 confstr.
3850
3851 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3852
3853 * NEWS: Mention getcpu.
3854 * include/sched.h (__getcpu): New libc_hidden_proto.
3855 * manual/resource.texi: Document getcpu.
3856 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3857 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3858 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3859 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3860 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3861 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3862 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3863 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3864 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3865 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3866 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3867 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3868 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3869 Likewise.
3870 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3871 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3872 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3874 Likewise.
3875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3876 Likewise.
3877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3878 Likewise.
3879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3880 Likewise.
3881 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3882 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3883 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3884 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3885 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3886 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3887 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3888 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3889 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3890 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3891 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3892 Also check getcpu.
3893
3894 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3895
3896 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3897 functions.
3898 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3899
3900 2018-12-07 Florian Weimer <fweimer@redhat.com>
3901
3902 [BZ #17405]
3903 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3904 * posix/Versions (GLIBC_2.29): Export
3905 posix_spawn_file_actions_addfchdir_np.
3906 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3907 * posix/spawn_faction_destroy.c
3908 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3909 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3910 and the field action.fchdir_action.
3911 * posix/tst-spawn-chdir.c (add_chdir): New function.
3912 (do_test): Add do_fchdir loop. Call add_chdir.
3913 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3914 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3915 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3916 posix_spawn_file_actions_addfchdir_np.
3917 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3918 Likewise.
3919 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3920 Likewise.
3921 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3922 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3923 Likewise.
3924 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3925 Likewise.
3926 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3927 Likewise.
3928 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3929 Likewise.
3930 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3931 Likewise.
3932 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3933 Likewise.
3934 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3935 (GLIBC_2.29): Likewise.
3936 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3937 (GLIBC_2.29): Likewise.
3938 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3939 (GLIBC_2.29): Likewise.
3940 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3941 (GLIBC_2.29): Likewise.
3942 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3943 Likewise.
3944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3945 (GLIBC_2.29): Likewise.
3946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3947 (GLIBC_2.29): Likewise.
3948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3949 (GLIBC_2.29): Likewise.
3950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3951 (GLIBC_2.29): Likewise.
3952 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3953 Likewise.
3954 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3955 Likewise.
3956 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3957 Likewise.
3958 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3959 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3960 Likewise.
3961 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3962 Likewise.
3963 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3964 Likewise.
3965 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3966 Likewise.
3967
3968 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3969
3970 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3971 trailing whitespace removed.
3972 * scripts/config.guess: Update to version 2018-11-28.
3973 * scripts/config.sub: Update to version 2018-11-28.
3974 * scripts/install-sh: Update to version 2018-03-11.20.
3975 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3976 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3977
3978 2018-12-07 Florian Weimer <fweimer@redhat.com>
3979
3980 [BZ #23927]
3981 CVE-2018-19591
3982 * inet/tst-if_index-long.c: New file.
3983 * inet/Makefile (tests): Add tst-if_index-long.
3984
3985 2018-12-07 Florian Weimer <fweimer@redhat.com>
3986
3987 * support/check.h (support_record_failure_is_failed): Declare.
3988 * support/descriptors.h: New file.
3989 * support/support_descriptors.c: Likewise.
3990 * support/tst-support_descriptors.c: Likewise.
3991 * support/support_record_failure.c
3992 (support_record_failure_is_failed): New function.
3993 * support/Makefile (libsupport-routines): Add support_descriptors.
3994 (tests): Add tst-support_descriptors.
3995
3996 2018-12-05 Zack Weinberg <zackw@panix.com>
3997 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3998
3999 * stdio-common/vfprintf-internal.c
4000 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4001 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4002 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4003 and __no_long_double.
4004 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4005 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4006 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4007 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4008 and __nldbl_*syslog* functions.
4009 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4010 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4011 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4012 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4013 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4014 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4015 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4016 (__nldbl_vwprintf, __nldbl_wprintf):
4017 Directly call the appropriate __v*printf_internal routine, passing
4018 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4019 variable names.
4020 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4021 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4022 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4023 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4024 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4025 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4026 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4027 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4028 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4029 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4030 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4031 (__nldbl_syslog, __nldbl_vsyslog):
4032 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4033 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4034 appropriate.
4035 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4036 appropriate.
4037
4038 2018-12-05 Zack Weinberg <zackw@panix.com>
4039 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4040
4041 [BZ #11319]
4042 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4043 Moved here from debug/vsprintf_chk.c.
4044 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4045 and completion logic for the strfile to match exactly what
4046 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4047 _IO_str_init_static_internal instead of maxlen-1.
4048 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4049 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4050 __vsprintf_internal.
4051
4052 * debug/vsprintf_chk.c (__vsprintf_chk)
4053 * debug/sprintf_chk.c (__sprintf_chk):
4054 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4055 'flags' argument is positive, and slen as maxlen. No need to lock
4056 the FILE and/or construct a temporary FILE. Minimize and normalize
4057 header inclusions and variable names. Do not libc_hidden_def anything.
4058
4059 * debug/asprintf_chk.c (__asprintf_chk)
4060 * debug/dprintf_chk.c (__dprintf_chk)
4061 * debug/fprintf_chk.c (__fprintf_chk)
4062 * debug/fwprintf_chk.c (__fwprintf_chk)
4063 * debug/printf_chk.c (__printf_chk)
4064 * debug/snprintf_chk.c (__snprintf_chk)
4065 * debug/swprintf_chk.c (__swprintf_chk)
4066 * debug/vasprintf_chk.c (__vasprintf_chk)
4067 * debug/vdprintf_chk.c (__vdprintf_chk)
4068 * debug/vfprintf_chk.c (__vfprintf_chk)
4069 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4070 * debug/vprintf_chk.c (__vprintf_chk)
4071 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4072 * debug/vswprintf_chk.c (__vswprintf_chk)
4073 * debug/vwprintf_chk.c (__vwprintf_chk)
4074 * debug/wprintf_chk.c (__wprintf_chk):
4075 Directly call the corresponding vxxprintf_internal function, passing
4076 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4077 the FILE and/or construct a temporary FILE. Minimize and normalize
4078 header inclusions and variable names. Do not libc_hidden_def anything.
4079
4080 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4081 __obstack_vprintf_internal.
4082 (__obstack_vprintf_chk): Convert into a wrapper that calls
4083 __obstack_vprintf_internal (these two functions already had the
4084 same code) and move to new file...
4085 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4086 file.
4087 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4088 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4089 * debug/Makefile (routines): Add vobprintf_chk.
4090
4091 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4092 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4093 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4094 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4095 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4096 (__nldbl___obstack_vfprintf_chk):
4097 Directly call the corresponding vxxprintf_internal function,
4098 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4099 duplicate comparison of slen with 0 or maxlen from the corresponding
4100 non-__nldbl function.
4101
4102 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4103 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4104 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4105 Remove libc_hidden_proto.
4106
4107 * stdio-common/vfprintf-internal.c
4108 (__vfprintf_internal, __vfwprintf_internal):
4109 Do not check _IO_FLAGS2_FORTIFY.
4110 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4111 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4112 a comment explaining why it has the maxlen argument.
4113 (_IO_acquire_lock_clear_flags2_fct): Remove.
4114 (_IO_acquire_lock_clear_flags2): Remove.
4115 (_IO_release_lock): Remove conditional statement which will
4116 now never execute.
4117 (_IO_acquire_lock): Remove variable which is now unused.
4118 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4119 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4120
4121 * stdio-common/Makefile (tests): Add tst-bz11319 and
4122 tst-bz11319-fortify2.
4123 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4124 * stdio-common/tst-bz11319-fortify2.c: New file.
4125 * stdio-common/tst-bz11319.c: Likewise.
4126
4127 2018-12-05 Zack Weinberg <zackw@panix.com>
4128 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4129
4130 * misc/syslog.c: Include libioP.h, not iolibio.h.
4131 (__vsyslog_internal): New function with the former body of
4132 __vsyslog_chk; takes mode_flags argument same as
4133 __v*printf_internal. Call __vfprintf_internal directly.
4134
4135 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4136 Remove libc_hidden_def.
4137 (__syslog, __syslog_chk): Use __vsyslog_internal.
4138 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4139
4140 * include/sys/syslog.h: Add multiple inclusion guard.
4141 Add prototype for __vsyslog_internal.
4142 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4143
4144 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4145 Use __vsyslog_internal.
4146
4147 2018-12-05 Zack Weinberg <zackw@panix.com>
4148 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4149
4150 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4151 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4152 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4153 New functions.
4154 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4155 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4156
4157 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4158 Include wctype.h here if COMPILE_WPRINTF is defined.
4159 Define __vfprintf_internal or __vfwprintf_internal, depending
4160 on COMPILE_WPRINTF.
4161 Temporarily, on entry to this function, update mode_flags
4162 according to the environmental settings corresponding to
4163 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4164 Throughout, check mode_flags instead of __ldbl_is_dbl and
4165 _IO_FLAGS2_FORTIFY on the destination FILE.
4166 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4167 Include vfprintf-internal.c. Don't include wctype.h.
4168 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4169 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4170 and vfprintf.
4171 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4172 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4173 and vfwprintf.
4174 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4175
4176 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4177 and add mode_flags argument; use __vfprintf_internal.
4178 (__vdprintf): New function. Alias vdprintf to this.
4179 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4180 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4181 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4182 (__obstack_printf): Use __obstack_printf_internal.
4183 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4184 public aliases __vsnprintf and vsnprintf.
4185 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4186 called internally.
4187 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4188 public aliases _IO_vsprintf and vsprintf.
4189 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4190 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4191 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4192 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4193 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4194
4195 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4196 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4197 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4198 * stdio-common/printf.c: Use __vfprintf_internal.
4199
4200 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4201 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4202 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4203
4204 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4205 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4206 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4207 __vfwprintf_internal.
4208
4209 * libio/libio.h: Remove libc_hidden_proto and declaration for
4210 _IO_vfprintf.
4211 Remove declaration of _IO_vfwprintf.
4212 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4213 _IO_vsprintf.
4214 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4215 _IO_obstack_printf.
4216 * include/stdio.h: Add prototype for __vasprintf.
4217 (__vsnprintf): Remove declaration, because there are no more
4218 internal calls.
4219 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4220 declaration, because there are no more internal calls.
4221
4222 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4223 __vsnprintf_internal, instead of _IO_vsnprintf.
4224 * argp/argp-help.c (__argp_error, __argp_failure): Use
4225 __vasprintf_internal, instead of _IO_vasprintf.
4226 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4227 redefine, because there are no more internal calls.
4228
4229 2018-12-05 Zack Weinberg <zackw@panix.com>
4230 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4231
4232 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4233 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4234 Include libio/strfile.h instead of libioP.h.
4235 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4236 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4237 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4238 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4239 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4240 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4241 necessary. Do not set __no_long_double. Normalize variable names.
4242 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4243 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4244 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4245 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4246 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4247 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4248 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4249 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4250 Do not set __no_long_double. Normalize variable names.
4251
4252 2018-12-05 Zack Weinberg <zackw@panix.com>
4253 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4254
4255 * stdio-common/isoc99_scanf.c
4256 * stdio-common/isoc99_fscanf.c
4257 * stdio-common/isoc99_sscanf.c
4258 * stdio-common/isoc99_vscanf.c
4259 * stdio-common/isoc99_vfscanf.c
4260 * stdio-common/isoc99_vsscanf.c
4261 * wcsmbs/isoc99_wscanf.c
4262 * wcsmbs/isoc99_fwscanf.c
4263 * wcsmbs/isoc99_swscanf.c
4264 * wcsmbs/isoc99_vwscanf.c
4265 * wcsmbs/isoc99_vfwscanf.c
4266 * wcsmbs/isoc99_vswscanf.c:
4267 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4268 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4269 No need to lock and unlock the FILE passed to that function.
4270
4271 * stdio-common/vfscanf-internal.c
4272 (__vfscanf_internal, __vfwscanf_internal):
4273 Don't look at _IO_FLAGS2_SCANF_STD.
4274 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4275 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4276 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4277
4278 2018-12-05 Zack Weinberg <zackw@panix.com>
4279 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4280
4281 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4282 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4283 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4284 * libio/strfile.h: Add multiple inclusion guard.
4285 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4286
4287 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4288 consistency with the other version of this file.
4289 (ldbl_compat_symbol): New macro.
4290 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4291 New macro.
4292
4293 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4294 Define __vfscanf_internal or __vfwscanf_internal, depending on
4295 COMPILE_WSCANF; don't define any other public symbols.
4296 Remove errval and code to set errp.
4297 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4298 as the mode_flags argument.
4299 (encode_error, conv_error, input_error): Don't set errval.
4300 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4301 Include vfscanf-internal.c.
4302 * stdio-common/vfscanf.c: New file defining the public entry
4303 point vfscanf, which calls __vfscanf_internal.
4304 * stdio-common/vfwscanf.c: New file defining the public entry
4305 point vfwscanf, which calls __vfwscanf_internal.
4306
4307 * stdio-common/iovfscanf.c: New file.
4308 * stdio-common/iovfwscanf.c: Likewise.
4309
4310 * stdio-common/Makefile (routines): Add vfscanf-internal,
4311 vfwscanf-internal, iovfscanf, iovfwscanf.
4312 * stdio-common/Versions: Mention GLIBC_2.29, so that
4313 it can be used in SHLIB_COMPAT expressions.
4314 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4315 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4316 Call __vfscanf_internal, instead of _IO_vfscanf.
4317 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4318 _IO_vfscanf.
4319 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4320 _IO_vfwscanf.
4321
4322 * libio/iovsscanf.c: Clean up includes, when possible. Use
4323 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4324 __vfscanf_internal or __vfwscanf_internal directly.
4325 * libio/iovswscanf.c: Likewise.
4326 * libio/swscanf.c: Likewise.
4327 * libio/vscanf.c: Likewise.
4328 * libio/vwscanf.c: Likewise.
4329 * libio/wscanf.c: Likewise.
4330 * stdio-common/isoc99_fscanf.c: Likewise.
4331 * stdio-common/isoc99_scanf.c: Likewise.
4332 * stdio-common/isoc99_sscanf.c: Likewise.
4333 * stdio-common/isoc99_vfscanf.c: Likewise.
4334 * stdio-common/isoc99_vscanf.c: Likewise.
4335 * stdio-common/isoc99_vsscanf.c: Likewise.
4336 * stdio-common/scanf.c: Likewise.
4337 * stdio-common/sscanf.c: Likewise.
4338 * wcsmbs/isoc99_fwscanf.c: Likewise.
4339 * wcsmbs/isoc99_swscanf.c: Likewise.
4340 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4341 * wcsmbs/isoc99_vswscanf.c: Likewise.
4342 * wcsmbs/isoc99_vwscanf.c: Likewise.
4343 * wcsmbs/isoc99_wscanf.c: Likewise.
4344
4345 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4346
4347 * include/time.h
4348 (__tz_compute): Replace time_t with __time64_t.
4349 (__tz_convert): Replace time_t* with __time64_t.
4350 (__offtime): Replace time_t* with __time64_t.
4351 * time/gmtime.c
4352 (__gmtime_r): Adjust call to __tz_convert.
4353 (gmtime): Likewise.
4354 * time/localtime.c
4355 (__localtime_r): Likewise.
4356 (localtime): Likewise.
4357 * time/offtime.c: Replace time_t with __time64_t.
4358 * time/tzset.c: Likewise.
4359
4360 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4361
4362 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4363 dynamic linker unless [$(run-built-tests) = yes].
4364
4365 2018-12-03 DJ Delorie <dj@delorie.com>
4366
4367 * support/test-container.c (check_for_unshare_hints): New.
4368 (main): Call it if unshare fails. Add support for "su" scriptlet
4369 command.
4370
4371 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4372
4373 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4374 'START' to indicate that start text should be output.
4375 (gen_test): Likewise.
4376 (main): Generate 'START' for first symbol or '--' line, or at end
4377 of input if not previously generated.
4378
4379 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4380
4381 [BZ #19767]
4382 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4383 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4384 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4385 ALWAYS_USE_VSYSCALL.
4386
4387 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4388
4389 [BZ #23913]
4390 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4391 new_argv by one.
4392
4393 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4394
4395 [BZ #23923]
4396 * locale/programs/localedef.c: Declare boolean hard_links default true.
4397 (options): Add --no-hard-links option.
4398 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4399 * locale/programs/localedef.h: Declare prototype for hard_links.
4400 * locale/programs/locfile.c (write_locale_data): Don't use hard
4401 links if hard_links is false.
4402
4403 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4404
4405 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4406 cpu_features_basic.
4407 (__cache_sysconf): Likewise.
4408 (init_cacheinfo): Likewise.
4409 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4410 populate COMMON_CPUID_INDEX_80000007 and
4411 COMMON_CPUID_INDEX_80000008.
4412 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4413 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4414 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4415 (init_cpu_features): Use _Static_assert on
4416 index_arch_Fast_Unaligned_Load.
4417 __get_cpuid_registers and __get_arch_feature. Updated for
4418 cpu_features_basic. Set stepping in cpu_features.
4419 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4420 (FEATURE_INDEX_2): New.
4421 (FEATURE_INDEX_MAX): Changed to enum.
4422 (COMMON_CPUID_INDEX_D_ECX_1): New.
4423 (COMMON_CPUID_INDEX_80000007): Likewise.
4424 (COMMON_CPUID_INDEX_80000008): Likewise.
4425 (cpuid_registers): Likewise.
4426 (cpu_features_basic): Likewise.
4427 (CPU_FEATURE_USABLE): Likewise.
4428 (bit_arch_XXX_Usable): Likewise.
4429 (cpu_features): Use cpuid_registers and cpu_features_basic.
4430 (bit_arch_XXX): Reweritten.
4431 (bit_cpu_XXX): Likewise.
4432 (index_cpu_XXX): Likewise.
4433 (reg_XXX): Likewise.
4434 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4435 <support/check.h>.
4436 (CHECK_CPU_FEATURE): New.
4437 (CHECK_CPU_FEATURE_USABLE): Likewise.
4438 (cpu_kinds): Likewise.
4439 (do_test): Print vendor, family, model and stepping. Check
4440 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4441 (TEST_FUNCTION): Removed.
4442 Include <support/test-driver.c> instead of
4443 "../../test-skeleton.c".
4444 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4445 Check POPCNT instead of POPCOUNT.
4446 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4447
4448 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4449
4450 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4451 there is no element in `consts'.
4452
4453 2018-12-01 Florian Weimer <fweimer@redhat.com>
4454
4455 * support/support_capture_subprocess.c
4456 (support_capture_subprocess): Check that pipe descriptors have
4457 expected values. Close original pipe descriptors in subprocess.
4458
4459 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4460
4461 [BZ #23032]
4462 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4463 attr with __pthread_default_barrierattr.
4464 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4465 attr with __pthread_default_condattr.
4466 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4467 attr with __pthread_default_mutexattr.
4468 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4469 attr with __pthread_default_rwlockattr.
4470
4471 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4472
4473 * manual/tunables.texi (POSIX Thread Tunables): New node.
4474 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4475 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4476 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4477 __pthread_tunables_init.
4478 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4479 (max_adaptive_count): Define.
4480 * nptl/pthread_mutex_conf.c: New file.
4481 * nptl/pthread_mutex_conf.h: New file.
4482 * sysdeps/generic/adaptive_spin_count.h: New file.
4483 * sysdeps/nptl/dl-tunables.list: New file.
4484 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4485 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4486 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4487 Likewise.
4488
4489 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4490
4491 [BZ #20544]
4492 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4493 * stdlib/on_exit.c (__on_exit): Likewise.
4494 * stdlib/Makefile (tests): Add tst-bz20544.
4495 * stdlib/tst-bz20544.c: New test.
4496
4497 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4498
4499 [BZ #19767]
4500 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4501 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4502 New.
4503
4504 2018-11-30 Florian Weimer <fweimer@redhat.com>
4505
4506 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4507 Extend error logging.
4508 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4509 symbol.
4510
4511 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4512
4513 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4514 __sigismember instead of sigismember.
4515 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4516 cancel_handler): New definitions.
4517 (do_system): Use posix_spawn instead of fork and execl and remove
4518 reentracy code.
4519 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4520 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4521 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4522 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4523 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4524 * sysdeps/unix/sysv/linux/system.c: Likewise.
4525
4526 [BZ #22834]
4527 [BZ #17490]
4528 * NEWS: Add new semantic for atfork with popen and system.
4529 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4530 fork and execl.
4531
4532 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4533
4534 [BZ #23690]
4535 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4536 modification order when accessing reloc_result->addr.
4537 * include/link.h (reloc_result): Add field init.
4538 * nptl/Makefile (tests): Add tst-audit-threads.
4539 (modules-names): Add tst-audit-threads-mod1 and
4540 tst-audit-threads-mod2.
4541 Add rules to build tst-audit-threads.
4542 * nptl/tst-audit-threads-mod1.c: New file.
4543 * nptl/tst-audit-threads-mod2.c: Likewise.
4544 * nptl/tst-audit-threads.c: Likewise.
4545 * nptl/tst-audit-threads.h: Likewise.
4546
4547 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4548
4549 * scripts/gen-as-const.py: New file.
4550 * scripts/gen-as-const.awk: Remove.
4551 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4552 gen-as-const.py.
4553 ($(objpfx)test-as-const-%.c): Likewise.
4554
4555 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4556
4557 * elf/dl-exception.c: Include <_itoa.h>.
4558
4559 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4560
4561 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4562 returned by __f_setlk.
4563
4564 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4565 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4566
4567 * elf/Makefile (tests-internal): Add tst-create_format1.
4568 * elf/dl-exception.c (_dl_exception_create_format): Support
4569 %x, %lx and %zx.
4570 * elf/tst-create_format1.c: New file.
4571
4572 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4573
4574 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4575 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4576 gnulib.)
4577 * argp/argp-help.c (__argp_failure): Likewise.
4578
4579 2018-11-29 Mao Han <han_mao@c-sky.com>
4580
4581 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4582 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4583 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4584 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4585 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4586 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4587 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4588 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4589 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4590 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4591 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4592 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4593 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4594 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4595 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4596 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4597 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4598 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4599 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4600 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4601 (R_CKCORE_TLS_TPOFF32): New defines.
4602
4603 2018-11-29 Florian Weimer <fweimer@redhat.com>
4604
4605 * posix/Makefile (before-compile): Remove testcases.h and
4606 ptestcases.h.
4607 (generated): Add testcases.h and ptestcases.h.
4608 (testcases.h, ptestcases.h): Move to $(objpfx).
4609 (runtests.o): Add dependency on testcases.h.
4610 (runptests.o): Add dependency on ptestcases.h.
4611 * posix/testcases.h, posix/ptestcases.h: Remove files.
4612 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4613 not touch posix/testcases.h and posix/ptestcases.h.
4614
4615 2018-11-28 Florian Weimer <fweimer@redhat.com>
4616
4617 support: Add signal support to support_capture_subprocess_check.
4618 * support/capture_subprocess.h (support_capture_subprocess_check):
4619 Adjust comment and rename parameter.
4620 * support/support_capture_subprocess_check.c
4621 (print_actual_status): New function.
4622 (support_capture_subprocess_check): Support negative
4623 status_or_signal. Call print_actual_status.
4624 * support/tst-support_capture_subprocess.c (do_test): Call
4625 support_capture_subprocess_check.
4626 * libio/tst-vtables-common.c (termination_status)
4627 (init_termination_status): Remove.
4628 (check_for_termination): Adjust support_capture_subprocess_check
4629 call.
4630 (do_test): Remove call to init_termination_status.
4631
4632 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4633
4634 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4635 source directory instead of a copy.
4636 (CommandList.create_copy_dir): Remove.
4637
4638 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4639
4640 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4641
4642 2018-11-28 Florian Weimer <fweimer@redhat.com>
4643
4644 * support/support.h (support_quote_string): Do not use str
4645 parameter name.
4646
4647 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4648
4649 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4650 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4651
4652 2018-11-27 Florian Weimer <fweimer@redhat.com>
4653
4654 * support/support.h (support_quote_string): Declare.
4655 * support/support_quote_string.c: New file.
4656 * support/tst-support_quote_string.c: Likewise.
4657 * support/Makefile (libsupport-routines): Add
4658 support_quote_string.
4659 (tests): Add tst-support_quote_string.
4660
4661 2018-11-27 Florian Weimer <fweimer@redhat.com>
4662
4663 [BZ #23927]
4664 CVE-2018-19591
4665 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4666 descriptor leak in case of ENODEV error.
4667
4668 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4669
4670 [BZ #19767]
4671 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4672 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4673 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4674
4675 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4676
4677 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4678 Error for unknown lines.
4679
4680 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4681
4682 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4683 Touch additional files.
4684
4685 2018-11-26 Florian Weimer <fweimer@redhat.com>
4686
4687 [BZ #23907]
4688 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4689 double-frees.
4690
4691 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4692
4693 [BZ #19767]
4694 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4695 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4696 SHARED. Include sysdep.h.
4697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4698 ALWAYS_USE_VSYSCALL.
4699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4700 ALWAYS_USE_VSYSCALL.
4701
4702 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4703
4704 [BZ #19767]
4705 * nptl/Makefile (tests-static): Add tst-cond11-static.
4706 (tests): Likewise.
4707 * nptl/tst-cond11-static.c: New File.
4708 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4709 tst-affinity-static.
4710 (tests): Likewise.
4711 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4712 instead of SHARED.
4713 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4714 (USE_VSYSCALL): Likewise.
4715 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4716 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4717 instead of SHARED.
4718 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4719 SHARED.
4720 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4721 New.
4722
4723 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4724
4725 [BZ #23915]
4726 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4727 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4728 Undefine.
4729
4730 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4731
4732 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4733 (tst-cet-legacy-1a-ARGS): New.
4734 ($(objpfx)tst-cet-legacy-1a): New target.
4735 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4736
4737 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4738
4739 * conform/conformtest.py (CompileSubTest.__init__): Set
4740 self.run_early to False.
4741 (ExecuteSubTest.__init__): Likewise.
4742 (HeaderTests.run): Try running all non-optional, non-XFAILed
4743 compilation tests in a single execution of the compiler.
4744
4745 * conform/conformtest.py (CompileSubTest): New class.
4746 (ExecuteSubTest): Likewise.
4747 (ElementTest.run): Rename to gen_subtests. Append tests to
4748 self.subtests instead of running them.
4749 (ConstantTest.run): Likewise.
4750 (SymbolTest.run): Likewise.
4751 (TypeTest.run): Likewise.
4752 (TagTest.run): Likewise.
4753 (FunctionTest.run): Likewise.
4754 (VariableTest.run): Likewise.
4755 (MacroFunctionTest.run): Likewise.
4756 (MacroStrTest.run): Likewise.
4757 (HeaderTests.handle_test_line): Generate subtests for tests.
4758 (HeaderTests.run): Run subtests for tests.
4759
4760 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4761
4762 * math/Versions (GLIBC_2.29): Add pow.
4763 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4764 symbol.
4765 * math/w_pow.c: New file.
4766 * sysdeps/i386/fpu/w_pow.c: New file.
4767 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4768 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4769 and add necessary aliases.
4770 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4771 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4772 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4773 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4774 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4775 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4776 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4777 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4778 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4779 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4780 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4781 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4782 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4783 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4784 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4789 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4790 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4791 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4792 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4793 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4794 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4795 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4796 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4797 __pow.
4798 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4799 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4800 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4801
4802 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4803
4804 * math/Versions (GLIBC_2.29): Add log2.
4805 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4806 symbol.
4807 * math/w_log2.c: New file.
4808 * sysdeps/i386/fpu/w_log2.c: New file.
4809 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4810 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4811 and add necessary aliases.
4812 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4813 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4814 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4815 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4816 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4817 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4818 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4819 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4820 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4821 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4822 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4823 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4824 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4825 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4826 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4831 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4832 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4833 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4834 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4835 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4836 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4837 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4838
4839 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4840
4841 * math/Versions (GLIBC_2.29): Add log.
4842 * math/w_log_compat.c (__log_compat): Change to versioned compat
4843 symbol.
4844 * math/w_log.c: New file.
4845 * sysdeps/i386/fpu/w_log.c: New file.
4846 * sysdeps/ia64/fpu/e_log.S: Update.
4847 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4848 and add necessary aliases.
4849 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4850 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4851 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4852 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4853 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4854 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4855 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4856 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4857 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4858 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4859 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4860 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4861 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4862 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4863 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4868 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4869 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4870 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4871 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4872 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4873 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4874 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4875 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4876 __log.
4877 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4878 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4879 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4880 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4881
4882 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4883
4884 * math/Versions (GLIBC_2.29): Add exp and exp2.
4885 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4886 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4887 * math/w_exp_compat.c (__exp_compat): Likewise.
4888 * math/w_exp.c: New file.
4889 * math/w_exp2.c: New file.
4890 * sysdeps/i386/fpu/w_exp.c: New file.
4891 * sysdeps/i386/fpu/w_exp2.c: New file.
4892 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4893 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4894 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4895 and add necessary aliases.
4896 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4897 and add necessary aliases.
4898 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4899 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4900 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4901 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4902 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4903 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4904 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4905 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4906 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4907 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4908 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4909 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4910 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4911 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4912 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4913 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4914 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4919 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4920 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4921 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4922 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4923 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4924 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4925 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4926 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4927 (__ieee754_exp): Rename to __exp.
4928 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4929 (__ieee754_exp): Rename to __exp.
4930 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4931 (__ieee754_exp): Rename to __exp.
4932 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4933 __exp.
4934 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4935
4936 2018-11-20 DJ Delorie <dj@redhat.com>
4937
4938 * malloc/malloc.c (tcache_entry): Add key field.
4939 (tcache_put): Set it.
4940 (tcache_get): Likewise.
4941 (_int_free): Check for double free in tcache.
4942 * malloc/tst-tcfree1.c: New.
4943 * malloc/tst-tcfree2.c: New.
4944 * malloc/Makefile: Run the new tests.
4945 * manual/probes.texi: Document memory_tcache_double_free probe.
4946
4947 * dlfcn/dlerror.c (check_free): Prevent double frees.
4948
4949 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4950
4951 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4952
4953 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4954
4955 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4956 in tests. Use names for format arguments.
4957 (ConstantTest.run): Likewise.
4958 (SymbolTest.run): Likewise.
4959 (TypeTest.run): Likewise.
4960 (TagTest.run): Likewise.
4961 (FunctionTest.run): Likewise.
4962 (VariableTest.run): Likewise.
4963 (MacroFunctionTest.run): Likewise.
4964 (MacroStrTest.run): Likewise.
4965 (HeaderTests.__init__): Set self.num_tests.
4966 (HeaderTests.handle_test_line): Set test.num. Increment
4967 self.num_tests.
4968
4969 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4970
4971 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4972 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4973 SEEK_SET.
4974
4975 2018-11-19 Mao Han <han_mao@c-sky.com>
4976
4977 * scripts/config.guess: Update to version 2018-08-29.
4978 * scripts/config.sub: Update to version 2018-08-29.
4979
4980 2018-11-19 Florian Weimer <fweimer@redhat.com>
4981
4982 support: Print timestamps in timeout handler.
4983 * support/support_test_main.c (print_timestamp): New function.
4984 (signal_handler): Use it to print the termination time and the
4985 time of the last write to standard output.
4986
4987 2018-11-16 Zack Weinberg <zackw@panix.com>
4988 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4989
4990 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4991 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4992 argument.
4993 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4994 and add flags argument. Check flags instead of __ldbl_is_dbl when
4995 deciding whether to set is_long_double.
4996 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4997 passing zero for flags argument.
4998 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4999
5000 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5001 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5002 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5003 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5004 variable names. Remove libc_hidden_def/libc_hidden_proto from
5005 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5006 longer called from within the library.
5007 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5008 for __nldbl___vstrfmon_l, declare it explicitly.
5009
5010 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5011
5012 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5013
5014 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5015 macros
5016 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5017 F_SETLK64, F_SETLKW64, respectively.
5018 * sysdeps/mach/hurd/f_setlk.c: New file.
5019 * sysdeps/mach/hurd/f_setlk.h: New file.
5020 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5021 f_setlk.
5022 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5023 (__libc_fcntl): Move non-flock operations to...
5024 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5025 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5026
5027 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5028
5029 mktime: DEBUG_MKTIME cleanup
5030 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5031 And it’s no longer needed now that glibc and Gnulib both have
5032 their own testing mechanisms for mktime.
5033 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5034
5035 mktime: fix non-EOVERFLOW errno handling
5036 [BZ#23789]
5037 mktime was not properly reporting failures when the underlying
5038 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5039 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5040 The problem could happen on non-glibc platforms, with Gnulib.
5041 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5042 (tm_diff): ... this simpler function, which does not change errno.
5043 All callers changed to deal with errno themselves.
5044 (ranged_convert, __mktime_internal): Return failure immediately if
5045 the underlying function reports any failure other than EOVERFLOW.
5046 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5047 gap code fails.
5048
5049 mktime: fix bug with Y2038 DST transition
5050 [BZ#23789]
5051 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5052 mishandle a DST transition that jumps over the Y2038 boundary.
5053 No such DST transitions are known so this is only a theoretical
5054 bug, but we might as well do things right.
5055
5056 mktime: make more room for overflow
5057 [BZ#23789]
5058 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5059 This is so that we can add tm_diff results to a previous guess,
5060 which will be useful in a later patch.
5061
5062 mktime: simplify offset guess
5063 [BZ#23789]
5064 * time/mktime.c (__mktime_internal): Omit excess precision.
5065
5066 mktime: new test for mktime failure
5067 [BZ#23789]
5068 Based on a test suggested by Albert Aribaud in:
5069 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5070 * time/Makefile (tests): Add bug-mktime4.
5071 * time/bug-mktime4.c: New file.
5072
5073 mktime: fix EOVERFLOW bug
5074 [BZ#23789]
5075 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5076 Include libc-config.h, not config.h, for __set_errno.
5077 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5078
5079 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5080
5081 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5082 __attribute_copy__ to copy attributes from name. Drop static qualifier
5083 to avoid warnings about leaf attribute not having effect on static
5084 functions.
5085
5086 2018-11-13 Florian Weimer <fweimer@redhat.com>
5087
5088 * malloc/malloc.c (fastbin_push_entry): New function.
5089 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5090 (REMOVE_FB): Remove macro.
5091 (_int_malloc): Use fastbin_pop_entry and reindent.
5092 (_int_free): Use fastbin_push_entry.
5093 (malloc_consolidate): Use atomic_exchange_acquire.
5094
5095 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5096
5097 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5098 alias attribute, not with strong_alias.
5099
5100 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5101 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5102 with additional parameter thread.
5103 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5104 in terms of __hidden_ver2.
5105 (hidden_tls_def): New macro.
5106 (libc_hidden_tls_def): Likewise.
5107 (rtld_hidden_tls_def): Likewise.
5108 (libm_hidden_tls_def): Likewise.
5109 (libmvec_hidden_tls_def): Likewise.
5110 (libresolv_hidden_tls_def): Likewise.
5111 (librt_hidden_tls_def): Likewise.
5112 (libdl_hidden_tls_def): Likewise.
5113 (libnss_files_hidden_tls_def): Likewise.
5114 (libnsl_hidden_tls_def): Likewise.
5115 (libnss_nisplus_hidden_tls_def): Likewise.
5116 (libutil_hidden_tls_def): Likewise.
5117 (libutil_hidden_tls_def): Likweise.
5118 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5119 libc_hidden_tls_def.
5120 (__sim_disabled_exceptions_thread): Likewise.
5121 (__sim_round_mode_thread): Likewise.
5122
5123 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5124 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5125 copy attributes from name.
5126
5127 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5128
5129 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5130 Use __attribute_copy__ to copy attributes from name.
5131
5132 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5133 with __hidden_ver1 call.
5134 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5135 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5136 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5137 (__cosf): Do not declare here.
5138 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5139 (__sincosf): Do not declare here.
5140 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5141 (__sinf): Do not declare here.
5142
5143 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5144 (__BIG_ENDIAN): Likewise.
5145 (__BYTE_ORDER): Likewise.
5146 (strong_alias): Likewise.
5147 (_strong_alias): Likewise.
5148
5149 2018-11-12 Florian Weimer <fweimer@redhat.com>
5150
5151 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5152 function. Move after the definition of in_smallbin_range. Do not
5153 use __builtin_expect for paths that lead to a noreturn function.
5154 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5155 because it is unclear whether this is in fact an unlikely
5156 condition.
5157 (_int_malloc, _int_free): Adjust.
5158 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5159 variables.
5160 * malloc/arena.c (heap_trim): Likewise.
5161
5162 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5163
5164 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5165 it, free it if needed.
5166 (reauthenticate): Test and use ccwdir.
5167 (child_init_port): In non-resetids case, test and use ccwdir.
5168 (child_chdir): New nested function to set ccwdir.
5169 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5170 * hurd/hurd/port.h (_hurd_port_move): New function.
5171 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5172 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5173 * hurd/Versions (_hurd_port_move): Export function.
5174 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5175 symbol.
5176 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5177 of dtablesize for allocating dtable_cloexec.
5178
5179 2018-11-09 Martin Sebor <msebor@redhat.com>
5180
5181 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5182 it's already defined.
5183 (_strong_alias): Use __attribute_copy__.
5184 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5185 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5186 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5187 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5188 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5189 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5190 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5191 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5192 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5193 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5194 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5195 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5196 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5197 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5198 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5199 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5200 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5201 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5202 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5203
5204 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5205
5206 * misc/tst-efgcvt.c: Include support/check.h and
5207 support/test-driver.c. Do not include test-skeleton.c.
5208 (error_count): Remove.
5209 (output_error): Replace increments to error_count with calls to
5210 support_record_failure.
5211 (output_r_error): Likewise.
5212 (special): Likewise.
5213 (do_test): Unconditionally return zero.
5214 (TEST_FUNCTION): Remove.
5215
5216 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5217
5218 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5219 not $(@D)/scratch.
5220 ($(linknamespace-header-tests)): Likewise.
5221
5222 * conform/conformtest.py: New file.
5223 * conform/conformtest.pl: Remove.
5224 * conform/GlibcConform.pm: Likewise.
5225 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5226 (KEYWORDS_C99): Likewise.
5227 (KEYWORDS): Likewise.
5228 * conform/Makefile ($(conformtest-header-tests)): Use
5229 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5230 option. Use --header instead of --headers.
5231 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5232 function entries.
5233 * conform/data/spawn.h-data: Likewise.
5234 * conform/data/fcntl.h-data (openat): Add space after function
5235 name.
5236 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5237 (wcscasecmp_l): Likewise.
5238 * conform/data/termios.h-data (c_cc): Add space after element
5239 name.
5240
5241 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5242
5243 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5244 instead of manually comparing and reporting mismatching strings.
5245 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5246 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5247
5248 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5249
5250 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5251 __ASSUME_SOCKETCALL.
5252 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5253 (__ASSUME_SOCKETCALL): Remove.
5254 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5255 (__ASSUME_SOCKETCALL): Likewise.
5256 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5257 (__ASSUME_SOCKETCALL): Likewise.
5258 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5259 (__ASSUME_SOCKETCALL): Likewise.
5260 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5261 (__ASSUME_SOCKETCALL): Likewise.
5262 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5263 (__ASSUME_SOCKETCALL): Likewise.
5264 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5265 (__ASSUME_SOCKETCALL): Likewise.
5266
5267 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5268
5269 [BZ #23509]
5270 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5271 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5272 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5273 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5274 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5275 lc_unknown.
5276
5277 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5278
5279 [BZ #17630]
5280 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5281
5282 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5283
5284 [BZ #23867]
5285 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5286 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5287 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5288 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5289
5290 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5291
5292 * support/support_test_compare_string.c
5293 (support_test_compare_string): Fix printf format.
5294
5295 2018-11-07 Florian Weimer <fweimer@redhat.com>
5296
5297 Implement TEST_COMPARE_STRING.
5298 * support/check.h (TEST_COMPARE_STRING): Define.
5299 (support_test_compare_string): Declare.
5300 * support/Makefile (libsupport-routines): Add
5301 support_test_compare_string.
5302 (tests): Add tst-test_compare_string.
5303 * support/support_test_compare_string.c: New file.
5304 * support/tst-test_compare_string.c: Likewise.
5305
5306 2018-11-07 Andreas Schwab <schwab@suse.de>
5307
5308 [BZ #23864]
5309 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5310 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5311 Undef.
5312
5313 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5314
5315 [BZ #23862]
5316 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5317 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5318 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5319 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5320 Likewise.
5321
5322 2018-11-06 Florian Weimer <fweimer@redhat.com>
5323
5324 [BZ #17405]
5325 * posix/Makefile (routines): Add spawn_faction_addchdir.
5326 (tests): Add tst-spawn-chdir.
5327 * posix/Versions (GLIBC_2.29): Add
5328 posix_spawn_file_actions_addchdir_np.
5329 * posix/spawn_faction_addchdir.c: New file.
5330 * posix/spawn_faction_destroy.c
5331 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5332 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5333 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5334 chdir_action.
5335 * posix/tst-spawn-chdir.c: New file.
5336 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5337 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5338 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5339 posix_spawn_file_actions_addchdir_np.
5340 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5341 Likewise.
5342 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5343 Likewise.
5344 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5345 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5346 Likewise.
5347 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5348 Likewise.
5349 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5350 Likewise.
5351 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5352 Likewise.
5353 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5354 Likewise.
5355 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5356 Likewise.
5357 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5358 (GLIBC_2.29): Likewise.
5359 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5360 (GLIBC_2.29): Likewise.
5361 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5362 (GLIBC_2.29): Likewise.
5363 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5364 (GLIBC_2.29): Likewise.
5365 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5366 Likewise.
5367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5368 (GLIBC_2.29): Likewise.
5369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5370 (GLIBC_2.29): Likewise.
5371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5372 (GLIBC_2.29): Likewise.
5373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5374 (GLIBC_2.29): Likewise.
5375 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5376 Likewise.
5377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5378 Likewise.
5379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5380 Likewise.
5381 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5382 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5383 Likewise.
5384 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5385 Likewise.
5386 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5387 Likewise.
5388 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5389 Likewise.
5390
5391 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5392
5393 * misc/Makefile (tests): Add tst-ldbl-error.
5394 * misc/tst-ldbl-error.c: New file.
5395
5396 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5397
5398 * misc/Makefile (tests): Add tst-ldbl-warn.
5399 * misc/tst-ldbl-warn.c: New file.
5400
5401 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5402
5403 * argp/Makefile (tests): Add tst-ldbl-argp.
5404 * argp/tst-ldbl-argp.c: New file.
5405
5406 2018-11-05 Arjun Shankar <arjun@redhat.com>
5407
5408 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5409 __gconv_path_elem and call __gconv_get_path unconditionally.
5410
5411 2018-11-05 Andreas Schwab <schwab@suse.de>
5412
5413 [BZ #22927]
5414 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5415 creating the first helper thread failed.
5416
5417 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5418
5419 * sysdeps/mach/hurd/msync.c: New file.
5420
5421 2018-11-02 Florian Weimer <fweimer@redhat.com>
5422
5423 * support/shell-container.c (copy_func): Call
5424 support_copy_file_range instead of copy_file_range to support
5425 cross-device copies.
5426
5427 2018-11-02 Florian Weimer <fweimer@redhat.com>
5428
5429 * support/test-container.c: Include <libc-pointer-arith.h> for
5430 ALIGN_UP.
5431
5432 2018-11-01 Zong Li <zong@andestech.com>
5433
5434 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5435 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5436 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5437 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5438
5439 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5440 variable to avoid overlap arguments.
5441
5442 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5443
5444 * posix/bug-regex22.c (main): Use puts with distinct error
5445 messages for unexpected success of re_compile_pattern, not printf
5446 with NULL argument to %s.
5447
5448 * stdio-common/bug22.c: Include <libc-diag.h>.
5449 (do_test): Disable -Wformat-overflow= warnings around fprintf
5450 calls outputting more than INT_MAX characters.
5451 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5452 around printf call with NULL %s argument.
5453
5454 [BZ #23848]
5455 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5456 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5457 Undefine.
5458 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5459 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5460 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5461 (__ASSUME_SENDTO_SYSCALL): Likewise.
5462 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5463 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5464 [!__arch64__].
5465 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5466 (__ASSUME_CONNECT_SYSCALL): Likewise.
5467 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5468 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5469 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5470 Define.
5471 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5472 Likewise.
5473 [__LINUX_KERNEL_VERSION >= 0x040400]
5474 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5475 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5476 Remove.
5477 (listen): Likewise.
5478 (setsockopt): Likewise.
5479
5480 2018-11-01 Fredrik Noring <noring@nocrew.org>
5481
5482 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5483 with the ISA override.
5484
5485 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5486
5487 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5488 #endif.
5489
5490 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5491
5492 * manual/errno.texi (EIEIO): Document how translators should
5493 translate the error message.
5494 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5495 printing trailing whitespaces refused by git.
5496 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5497 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5498 * hurd/Makefile (user-interfaces): Add pci.
5499
5500 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5501
5502 * conform/linknamespace.py: New file.
5503 * conform/linknamespace.pl: Remove file.
5504 * conform/Makefile ($(linknamespace-header-tests)): Use
5505 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5506 option.
5507
5508 2018-10-30 Florian Weimer <fweimer@redhat.com>
5509
5510 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5511 memory leaks.
5512
5513 2018-10-30 Florian Weimer <fweimer@redhat.com>
5514
5515 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5516
5517 2018-10-30 Florian Weimer <fweimer@redhat.com>
5518
5519 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5520 support_blob_repeat.
5521
5522 2018-10-30 Florian Weimer <fweimer@redhat.com>
5523
5524 Avoid spurious test failures in stdlib/test-bz22786.
5525 * support/Makefile (libsupport-routines): Add blob_repeat.
5526 (tests): Add tst-support_blob_repeat.
5527 * support/blob_repeat.h: New file.
5528 * support/blob_repeat.c: Likewise.
5529 * support/tst-support_blob_repeat.c: Likewise.
5530 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5531 support_blob_repeat_allocate.
5532
5533 2018-10-30 Andreas Schwab <schwab@suse.de>
5534
5535 [BZ #23125]
5536 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5537 Don't use tail call.
5538 * elf/tst-unwind-main.c: New file.
5539 * elf/Makefile (tests): Add tst-unwind-main.
5540 (CFLAGS-tst-unwind-main.c): Define.
5541
5542 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5543
5544 [BZ #23791]
5545 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5546 n_cs_precedes to 0.
5547 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5548
5549 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5550
5551 * conform/glibcconform.py: Do not import shutil.
5552 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5553 of mkdtemp.
5554
5555 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5556 critic_missing for versions before 3.4.
5557 * configure: Regenerated.
5558 * manual/install.texi (Tools for Compilation): Document
5559 requirement for Python to build glibc.
5560 * INSTALL: Regenerated.
5561 * Rules [PYTHON]: Make code unconditional.
5562 * benchtests/Makefile [PYTHON]: Likewise.
5563 * conform/Makefile [PYTHON]: Likewise.
5564 * manual/Makefile [PYTHON]: Likewise.
5565 * math/Makefile [PYTHON]: Likewise.
5566
5567 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5568
5569 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5570 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5571 answer to interrupt_operation, return EIEIO instead of EINTR.
5572 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5573 _hurd_intr_rpc_msg_about_to global point to start of controlled
5574 assembly snippet. Make it check canceled flag.
5575 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5576 the _hurd_intr_rpc_msg_about_to point.
5577 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5578 issue, remove cancel flag check.
5579
5580 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5581
5582 * scripts/build-many-glibcs.py: Remove compatibility for missing
5583 os.cpu_count and re.fullmatch.
5584
5585 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5586
5587 [BZ #23822]
5588 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5589 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5590 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5591
5592 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5593
5594 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5595 macro.
5596
5597 2018-10-25 Florian Weimer <fweimer@redhat.com>
5598
5599 [BZ #23562]
5600 [BZ #23821]
5601 XFAIL siginfo_t si_band conform test on sparc64.
5602 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5603 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5604 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5605 (conformtest-xfail-conds): Add sparc64-linux.
5606 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5607 sparc64.
5608 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5609
5610 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5611
5612 * elf/elf.h (NT_MIPS_DSP): New macro.
5613 (NT_MIPS_FP_MODE): Likewise.
5614
5615 2018-10-25 Zong Li <zong@andestech.com>
5616
5617 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5618 name by adding the file extension (.so).
5619
5620 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5621
5622 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5623 (test-xfail-ISO11/threads.h/linknamespace,
5624 test-xfail-ISO11/threads.h/conform): Add.
5625
5626 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5627
5628 * math/gen-libm-test.py: Import os.
5629 (ALL_FLOATS_MANUAL): New constant.
5630 (ALL_FLOATS_SUFFIX): Likewise.
5631 (Ulps.all_functions): New function.
5632 (real_all_ulps): Likewise.
5633 (generate_err_table_sub): Likewise.
5634 (generate_err_table): Likewise.
5635 (main): Handle -s and -m options.
5636 * manual/libm-err-tab.pl: Remove.
5637 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5638 instead of libm-err-tab.pl.
5639 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5640 != no].
5641 * manual/install.texi (Tools for Compilation): Document
5642 requirement for Python to build manual.
5643 * INSTALL: Regenerated.
5644
5645 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5646
5647 * bits/time64.h: New file.
5648 * include/time.h: Replace internal_time_t with __time64_t.
5649 * posix/bits/types (__time64_t): Add.
5650 * stdlib/Makefile: Add bits/time64.h to includes.
5651 * time/tzfile.c: Replace internal_time_t with __time64_t.
5652
5653 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5654
5655 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5656 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5657 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5658 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5659 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5660 prototype.
5661 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5662 * posix/spawn_faction_addclose.c
5663 (__posix_spawn_file_actions_addclose): Add hidden definition.
5664 * posix/spawn_faction_adddup2.c
5665 (__posix_spawn_file_actions_adddup2): Likewise.
5666 * posix/spawn_faction_destroy.c
5667 (__posix_spawn_file_actions_destroy): Likewise.
5668 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5669 Likewise.
5670 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5671 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5672 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5673 Likewise.
5674 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5675 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5676 Likewise.
5677
5678 2018-10-24 Andreas Schwab <schwab@suse.de>
5679
5680 [BZ #18093]
5681 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5682 format cache.
5683 * elf/cache.c (print_cache): Likewise.
5684
5685 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5686
5687 * bits/timesize.h: New file.
5688 * stdlib/Makefile (headers): Add bits/timesize.h.
5689 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5690 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5691 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5692 (__SEM_PAD_AFTER_TIME): Likewise.
5693 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5694 (__SHM_PAD_AFTER_TIME): Likewise.
5695 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5696 (__MSQ_PAD_BEFORE_TIME): Likewise.
5697 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5698 (__SEM_PAD_BEFORE_TIME): Likewise.
5699 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5700 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5701 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5702 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5703 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5704 (__MSQ_PAD_BEFORE_TIME): Likewise.
5705 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5706 (__SEM_PAD_BEFORE_TIME): Likewise.
5707 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5708 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5709 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5710 (__MSQ_PAD_BEFORE_TIME): Likewise.
5711 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5712 (__SEM_PAD_BEFORE_TIME): Likewise.
5713 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5714 (__SHM_PAD_BEFORE_TIME): Likewise.
5715 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5716 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5717 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5718
5719 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5720
5721 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5722 USE_RDTSCP is defined.
5723 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5724 USE_RDTSCP is defined.
5725
5726 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5727
5728 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5729 defined.
5730
5731 [BZ #23709]
5732 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5733 independently of other flags.
5734
5735 2018-10-23 Florian Weimer <fweimer@redhat.com>
5736
5737 * time/tst-mktime2.c (N_STRINGS): Remove.
5738 (set_timezone): New function.
5739 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5740 (mktime_test1): Report localtime failure and check errno value.
5741 Use TEST_COMPARE.
5742 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5743 (do_test): Remove alarm call. Use set_timezone and array_length.
5744
5745 2018-10-23 Andreas Schwab <schwab@suse.de>
5746
5747 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5748 (__start_context): Use END instead of PSEUDO_END.
5749
5750 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5751
5752 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5753 version to 4.19.
5754
5755 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5756 version to 4.19.
5757
5758 [BZ #23793]
5759 * wcsmbs/c32rtomb.c: New file.
5760 * wcsmbs/mbrtoc32.c: Likewise.
5761 * wcsmbs/tst-c32-state.c: Likewise.
5762 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5763 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5764 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5765 (tests): Add tst-c32-state.
5766 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5767 $(gen-locales).
5768
5769 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5770
5771 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5772 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5773
5774 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5775
5776 [BZ #23794]
5777 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5778 pair and return 0 in that case, and use saved character to
5779 interpret following character.
5780 * wcsmbs/tst-c16-surrogate.c: New file.
5781 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5782 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5783 Depend on $(gen-locales)
5784
5785 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5786
5787 [BZ #23562]
5788 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5789 (struct siginfo_t): Use correct type for si_band.
5790
5791 2018-10-19 Florian Weimer <fweimer@redhat.com>
5792
5793 [BZ #23689]
5794 * resource/bits/types/struct_rusage.h (struct rusage): Update
5795 comment on struct. Remove extraneous field comment.
5796
5797 2018-10-18 David S. Miller <davem@davemloft.net>
5798
5799 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5800 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5801 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5802 sysdep_routines in subdir elf.
5803 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5804 version for __vdso_clock_gettime.
5805 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5806 Define.
5807 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5808 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5809
5810 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5811
5812 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5813
5814 * sysdeps/i386/init-arch.h: Removed.
5815 * sysdeps/i386/i586/init-arch.h: Likewise.
5816 * sysdeps/i386/i686/init-arch.h: Likewise.
5817 * sysdeps/i386/i686/hp-timing.h: Likewise.
5818 * sysdeps/x86_64/hp-timing.h: Likewise.
5819 * sysdeps/i386/isa.h: New file.
5820 * sysdeps/i386/i586/isa.h: Likewise.
5821 * sysdeps/i386/i686/isa.h: Likewise.
5822 * sysdeps/x86_64/isa.h: Likewise.
5823 * sysdeps/x86/hp-timing.h: New file.
5824 * sysdeps/x86/init-arch.h: Include <isa.h>.
5825
5826 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5827
5828 * math/libm-test-pow.inc (pow_test_data): Do not allow
5829 divide-by-zero exception for pow(+/- 0, -Inf).
5830
5831 2018-10-17 Zack Weinberg <zackw@panix.com>
5832
5833 * manual/job.texi (Job Control is Optional): Remove node, as
5834 job control has not been optional in quite some time.
5835 (Job Control): Mention briefly that systems older than
5836 POSIX.1-2001 might not support job control.
5837 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5838 defined on systems conforming to POSIX.1-2001.
5839
5840 2018-10-17 Arjun Shankar <arjun@redhat.com>
5841
5842 [BZ #22062]
5843 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5844 indentation.
5845 * (__gconv_read_conf): Mark function static.
5846 * (once): New static variable.
5847 * (__gconv_load_conf): New function.
5848 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5849 * iconv/gconv_db.c (once): Remove static variable.
5850 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5851 __gconv_read_conf.
5852 * (__gconv_find_transform): Likewise.
5853 * iconv/tst-iconv-mt.c: New test.
5854 * iconv/Makefile: Add tst-iconv_mt.
5855
5856 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5857
5858 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5859 bits/shm-pad.h.
5860 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5861 (shmatt_t): Define as __syscall_ulong_t.
5862 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5863 and [__SHM_PAD_AFTER_TIME].
5864 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5865 Define shm_segsz and associated padding based on
5866 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5867 Use __syscall_ulong_t instead of unsigned long int.
5868 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5869 unsigned long int.
5870 [__USE_MISC] (struct shm_info): Likewise.
5871 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5872 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5873 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5874 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5875 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5876 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5877 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5878 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5879 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5880 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5881 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5882
5883 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5884 bits/shmlba.h.
5885 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5886 (SHMLBA): Remove macro.
5887 (__getpagesize): Remove function declaration.
5888 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5889 <bits/shmlba.h>.
5890 (SHMLBA): Remove macro.
5891 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5892 <bits/shmlba.h>.
5893 (SHMLBA): Remove macro.
5894 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5895 <bits/shmlba.h>.
5896 (SHMLBA): Remove macro.
5897 (__getpagesize): Remove function declaration.
5898 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5899 <bits/shmlba.h>.
5900 (SHMLBA): Remove macro.
5901 (__getshmlba): Remove function declaration.
5902 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5903 (SHMLBA): Remove macro.
5904 (__getpagesize): Remove function declaration.
5905 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5906 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5907 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5908 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5909 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5910 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5911 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5912 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5913 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5914 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5915
5916 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5917
5918 [BZ #23275]
5919 * nptl/tst-mutex10.c: New File.
5920 * nptl/Makefile (tests): Add tst-mutex10.
5921 (tst-mutex10-ENV): New variable.
5922 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5923 Ensure that elision path is used if elision is available.
5924 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5925 Likewise.
5926 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5927 Likewise.
5928 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5929 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5930 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5931 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5932 Likewise.
5933 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5934 (__pthread_mutex_cond_lock_adjust): Likewise.
5935 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5936 Likewise.
5937 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5938 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5939 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5940 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5941 Add comments.
5942 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5943 Use atomic_load_relaxed and atomic_store_relaxed.
5944 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5945 Use atomic_store_relaxed.
5946
5947 2018-10-17 Andreas Schwab <schwab@suse.de>
5948
5949 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5950 * crypt/badsalttest.c (TIMEOUT): Likewise.
5951 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5952 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5953 * io/test-lfs.c (TIMEOUT): Likewise.
5954 * libio/tst-atime.c (TIMEOUT): Likewise.
5955 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5956 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5957 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5958 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5959 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5960 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5961 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5962 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5963 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5964 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5965 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5966 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5967 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5968 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5969 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5970 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5971 * nptl/tst-once2.c (TIMEOUT): Likewise.
5972 * nptl/tst-once3.c (TIMEOUT): Likewise.
5973 * nptl/tst-once4.c (TIMEOUT): Likewise.
5974 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5975 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5976 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5977 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5978 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5979 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5980 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5981 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5982 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5983 * posix/tst-chmod.c (TIMEOUT): Likewise.
5984 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5985 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5986 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5987 * posix/tst-regex2.c (TIMEOUT): Likewise.
5988 * posix/tst-waitid.c (TIMEOUT): Likewise.
5989 * rt/tst-aio.c (TIMEOUT): Likewise.
5990 * rt/tst-aio10.c (TIMEOUT): Likewise.
5991 * rt/tst-aio4.c (TIMEOUT): Likewise.
5992 * rt/tst-aio5.c (TIMEOUT): Likewise.
5993 * rt/tst-aio6.c (TIMEOUT): Likewise.
5994 * rt/tst-aio64.c (TIMEOUT): Likewise.
5995 * rt/tst-aio7.c (TIMEOUT): Likewise.
5996 * rt/tst-aio9.c (TIMEOUT): Likewise.
5997 * rt/tst-clock.c (TIMEOUT): Likewise.
5998 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5999 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6000 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6001 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6002 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6003 * rt/tst-timer4.c (TIMEOUT): Likewise.
6004 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6005 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6006 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6007 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6008 * time/tst-ftime.c (TIMEOUT): Likewise.
6009 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6010
6011 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6012
6013 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6014 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6015 for thunderX2.
6016
6017 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6018
6019 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6020 bits/sem-pad.h.
6021 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6022 instead of <bits/wordsize.h>.
6023 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6024 and [__SEM_PAD_AFTER_TIME].
6025 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6026 __syscall_ulong_t instead of unsigned long int.
6027 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6028 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6029 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6030 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6031 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6032 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6033 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6034 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6035 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6036 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6037 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6038
6039 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6040
6041 regex: simplify by using intprops.h
6042 [BZ#23744]
6043 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6044 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6045 intprops.h defines them.
6046
6047 regex: __builtin_expect → __glibc_unlikely
6048 [BZ#23744]
6049 This refactoring was prompted by a problem when the regex code is
6050 used as part of Gnulib and when the builder’s compiler does not grok
6051 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6052 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6053 Although this refactoring does not fix the problem directly,
6054 we might as well have Gawk use the now-preferred glibc style for when
6055 __builtin_expect is unavailable.
6056 * posix/regex_internal.h (BE): Remove.
6057 All uses replaced by __glibc_unlikely or __glibc_likely.
6058
6059 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6060
6061 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6062 bits/msq-pad.h.
6063 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6064 instead of <bits/wordsize.h>.
6065 (msgqnum_t): Define as __syscall_ulong_t.
6066 (msglen_t): Likewise.
6067 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6068 and [__MSQ_PAD_AFTER_TIME].
6069 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6070 __syscall_ulong_t instead of unsigned long int.
6071 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6072 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6073 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6074 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6075 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6076 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6077 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6078 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6079 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6080 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6081 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6082
6083 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6084
6085 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6086 (struct shmid_ds): Condition padding after time fields on
6087 [__WORDSIZE == 32].
6088 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6089 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6090 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6091
6092 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6093 (struct semid_ds): Condition padding after time fields on
6094 [__WORDSIZE == 32].
6095 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6096 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6097 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6098 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6099
6100 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6101 (struct msqid_ds): Condition padding after time fields on
6102 [__WORDSIZE == 32].
6103 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6104 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6105 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6106 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6107
6108 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6109
6110 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6111
6112 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6113
6114 * libio/tst-readline.c (TIMEOUT): Define.
6115
6116 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6117
6118 mktime fix for Gnulib + coreutils
6119 [BZ#23745]
6120 This fix affects only Gnulib. Problem discovered when
6121 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6122 * time/mktime.c:
6123 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6124 Do not define since it is not used. Defining an unused static
6125 function prompts a warning from GCC when Coreutils is configured
6126 with --enable-gcc-warnings.
6127
6128 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6129
6130 * benchtests/scripts/compare_bench.py (main): set float type on
6131 threshold argument.
6132
6133 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6134
6135 [BZ #23740]
6136 * localedata/locales/kl_GL (mon): Update, the relative case.
6137 (alt_mon): Add, fill with month names in the nominative case.
6138 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6139 (d_fmt): Set to "%b %d %Y".
6140
6141 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6142
6143 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6144 <bits/mman-linux.h>.
6145 (PROT_READ): Don't define here.
6146 (PROT_WRITE): Likewise.
6147 (PROT_EXEC): Likewise.
6148 (PROT_NONE): Likewise.
6149 (PROT_GROWSDOWN): Likewise.
6150 (PROT_GROWSUP): Likewise.
6151 (MAP_SHARED): Likewise.
6152 (MAP_PRIVATE): Likewise.
6153 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6154 [__USE_MISC] (MAP_FILE): Likewise.
6155 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6156 [__USE_MISC] (MAP_ANON): Likewise.
6157 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6158 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6159 (MCL_CURRENT): Likewise.
6160 (MCL_FUTURE): Likewise.
6161 (MCL_ONFAULT): Likewise.
6162 [__USE_MISC] (MADV_NORMAL): Likewise.
6163 [__USE_MISC] (MADV_RANDOM): Likewise.
6164 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6165 [__USE_MISC] (MADV_WILLNEED): Likewise.
6166 [__USE_MISC] (MADV_DONTNEED): Likewise.
6167 [__USE_MISC] (MADV_FREE): Likewise.
6168 [__USE_MISC] (MADV_REMOVE): Likewise.
6169 [__USE_MISC] (MADV_DONTFORK): Likewise.
6170 [__USE_MISC] (MADV_DOFORK): Likewise.
6171 [__USE_MISC] (MADV_HWPOISON): Likewise.
6172 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6173 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6174 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6175 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6176 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6177 (__MAP_ANONYMOUS): New macro.
6178 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6179 <bits/mman-linux.h> inclusion.
6180 (MAP_FIXED): Likewise.
6181 (MS_SYNC): Likewise.
6182 (MS_ASYNC): Likewise.
6183 (MS_INVALIDATE): Likewise.
6184 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6185 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6186 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6187 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6188 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6189 [__USE_MISC] (MADV_DODUMP): Likewise.
6190 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6191 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6192
6193 [BZ #23735]
6194 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6195 Define.
6196 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6197 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6198 Add test-nldbl-redirect.
6199 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6200 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6201 $(objpfx)libnldbl_nonshared.a.
6202
6203 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6204
6205 * support/support.h (support_objdir_elf_ldso): New variable.
6206 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6207 * support/Makefile (CFLAGS-support_paths.c): Add definition
6208 for OBJDIR_ELF_LDSO_PATH.
6209 * support/test-container.c (main): Search for the ld.so
6210 which is also used by the testsuite.
6211
6212 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6213
6214 [BZ #20209]
6215 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6216 should be "sap" rather than "sab".
6217 (day): Fix spelling of Sunday, should be "sapaat" rather than
6218 "sabaat".
6219
6220 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6221
6222 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6223
6224 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6225
6226 [BZ #19444]
6227 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6228 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6229 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6230
6231 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6232
6233 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6234
6235 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6236
6237 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6238 Add -mrtm.
6239 (CFLAGS-elision-unlock.c): Likewise.
6240 (CFLAGS-elision-timed.c): Likewise.
6241 (CFLAGS-elision-trylock.c): Likewise.
6242 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6243
6244 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6245
6246 [BZ #21037]
6247 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6248 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6249 new fd_to_filename interface.
6250 * libio/freopen64.c (freopen64): Likewise.
6251 * libio/tst-memstream.h: New file.
6252 * libio/tst-memstream4.c: Likewise.
6253 * libio/tst-wmemstream4.c: Likewise.
6254 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6255 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6256 and remove internal dynamic allocation.
6257
6258 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6259
6260 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6261 (MREMAP_MAYMOVE): Do not define here.
6262 [__USE_GNU] (MREMAP_FIXED): Likewise.
6263 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6264 (MREMAP_MAYMOVE): Define here instead.
6265 [__USE_GNU] (MREMAP_FIXED): Likewise.
6266 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6267 (MREMAP_MAYMOVE): Remove.
6268 [__USE_GNU] (MREMAP_FIXED): Likewise.
6269
6270 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6271
6272 * math/fromfp.h: Do not include <math_private.h>.
6273 * math/s_cacosh_template.c: Likewise.
6274 * math/s_casin_template.c: Likewise.
6275 * math/s_casinh_template.c: Likewise.
6276 * math/s_ccos_template.c: Likewise.
6277 * math/s_cproj_template.c: Likewise.
6278 * math/s_fdim_template.c: Likewise.
6279 * math/s_fmaxmag_template.c: Likewise.
6280 * math/s_fminmag_template.c: Likewise.
6281 * math/s_iseqsig_template.c: Likewise.
6282 * math/s_ldexp_template.c: Likewise.
6283 * math/s_nextdown_template.c: Likewise.
6284 * math/w_log1p_template.c: Likewise.
6285 * math/w_scalbln_template.c: Likewise.
6286 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6287 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6288 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6289 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6290 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6291 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6292 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6293 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6294 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6295 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6296 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6297 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6298 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6299 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6300 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6301 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6302 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6303 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6304 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6305 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6306 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6307 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6308 * sysdeps/ieee754/k_standardf.c: Likewise.
6309 * sysdeps/ieee754/k_standardl.c: Likewise.
6310 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6311 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6312 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6313 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6314 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6315 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6316 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6317 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6318 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6319 * sysdeps/ieee754/s_signgam.c: Likewise.
6320 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6321 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6322 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6323 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6324 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6325 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6326 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6327 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6328 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6329 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6330 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6331 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6332 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6333 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6334 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6335 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6336 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6337 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6338 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6339 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6340 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6341 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6342 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6343 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6344 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6345 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6346 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6347 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6348 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6349 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6350 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6351 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6352 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6353 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6354 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6355 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6356 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6357 <math_private.h>.
6358 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6359
6360 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6361
6362 [BZ #23716]
6363 * sysdeps/i386/dl-cet.c: Removed.
6364 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6365 prototype.
6366 (_dl_runtime_profile_shstk): Likewise.
6367 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6368 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6369
6370 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6371
6372 [BZ #23579]
6373 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6374 do_test_with_invalid_iov): New tests.
6375 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6376 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6377 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6378 errno is ENOSYS.
6379 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6380 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6381 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6382
6383 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6384
6385 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6386 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6387 (MATH_REDIRECT_BINARY_ARGS): New macro.
6388 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6389 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6390 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6391 header inclusion.
6392 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6393 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6394 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6395 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6396 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6397 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6398 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6400 Likewise.
6401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6402 Likewise.
6403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6405 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6406 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6407 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6408 Likewise.
6409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6410 Likewise.
6411 * sysdeps/generic/math_private_calls.h
6412 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6413 Do not declare and define as an inline function.
6414 * math/divtc3.c (__divtc3): Use copysign functions instead of
6415 __copysign variants.
6416 * math/multc3.c (__multc3): Likewise.
6417 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6418 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6419 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6420 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6421 Likewise.
6422 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6423 (__ieee754_yn): Likewise.
6424 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6425 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6426 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6427 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6428 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6429 (__sin): Likewise.
6430 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6431 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6432 Likewise.
6433 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6434 Likewise.
6435 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6436 Likewise.
6437 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6438 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6439 Likewise.
6440 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6441 (__ieee754_ynf): Likewise.
6442 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6443 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6444 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6445 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6446 Likewise.
6447 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6448 (__ieee754_ynl): Likewise.
6449 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6450 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6451 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6452 Likewise.
6453 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6454 (__ieee754_ynl): Likewise.
6455 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6456 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6457 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6458 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6459 Likewise.
6460 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6461 (__ieee754_ynl)
6462 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6463 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6464 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6465 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6466 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6467
6468 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6469 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6470 using MATH_REDIRECT.
6471 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6472 header inclusion.
6473 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6474 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6475 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6476 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6477 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6478 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6479 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6481 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6484 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6485 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6486 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6487 (round): Redirect to __round.
6488 (__roundl): Call round instead of __round.
6489 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6490 Remove macro.
6491 [_ARCH_PWR5X] (__roundf): Likewise.
6492 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6493 functions instead of __round variants.
6494 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6495 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6496 Likewise.
6497 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6498 Likewise.
6499 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6500 Likewise.
6501 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6502 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6503 __lroundl.
6504 (__ieee754_expl): Call roundl instead of __roundl.
6505
6506 2018-09-27 Andreas Schwab <schwab@suse.de>
6507
6508 [BZ #23717]
6509 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6510 (do_test): Make st1 static.
6511
6512 2018-09-26 Andreas Schwab <schwab@suse.de>
6513
6514 [BZ #23707]
6515 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6516 * elf/Makefile (tests): Add tst-unwind-ctor.
6517 (modules-names): Add tst-unwind-ctor-lib.
6518 ($(objpfx)tst-unwind-ctor): Depend on
6519 $(objpfx)tst-unwind-ctor-lib.so.
6520
6521 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6522
6523 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6524 file. Most contents moved from ....
6525 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6526 and include <bits/mman-map-flags-generic.h>.
6527 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6528 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6529 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6530 <bits/mman-map-flags-generic.h>.
6531 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6532 macros defined in <bits/mman-map-flags-generic.h>.
6533 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6534 <bits/mman-map-flags-generic.h>.
6535 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6536 defined in <bits/mman-map-flags-generic.h>.
6537
6538 2018-09-26 Andreas Schwab <schwab@suse.de>
6539
6540 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6541 output.
6542
6543 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6544 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6545 Fangrui Song <maskray@google.com>
6546
6547 [BZ #20480]
6548 * config.make.in (have-textrel_ifunc): New define.
6549 * configure.ac: Add check if linker supports textrel relocation with
6550 ifunc.
6551 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6552 tst-ifunc-textrel.
6553 (CFLAGS-tst-ifunc-textrel.c): New rule.
6554 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6555 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6556 * elf/tst-ifunc-textrel.c: New file.
6557
6558 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6559
6560 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6561 <bits/procfs-prregset.h>.
6562 (prgregset_t): Define using __prgregset_t.
6563 (prfpregset_t): Define using __prfpregset_t.
6564 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6565 (sysdep_headers): Add bits/procfs-prregset.h.
6566 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6567 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6568 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6569 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6570
6571 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6572 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6573 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6574 pr_uid and pr_gid.
6575 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6576 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6577 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6578 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6579 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6580 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6581 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6582 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6583 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6584 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6585 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6586 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6587 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6588 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6589 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6590 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6591 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6592 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6593 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6594 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6595 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6596 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6597 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6598 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6599
6600 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6601 AArch64 version. Include <bits/procfs.h>.
6602 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6603 (sysdep_headers): Add bits/procfs.h.
6604 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6605 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6606 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6607 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6608 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6609 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6610 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6611 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6612 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6613 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6614 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6615 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6616 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6617 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6618 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6619 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6620 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6621
6622 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6623
6624 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6625 Use libsupport.
6626
6627 2018-09-25 Arjun Shankar <arjun@redhat.com>
6628
6629 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6630 (__gconv_max_path_elem_len): Likewise.
6631 (__gconv_nmodules): Likewise.
6632 (__gconv_get_path): Likewise.
6633 (path_elem): Move to ...
6634 * iconv/gconv_conf.c: ... here.
6635 (__gconv_get_path): Mark function static.
6636 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6637 * iconv/gconv_open.c: ... here.
6638
6639 2018-09-24 Andreas Schwab <schwab@suse.de>
6640
6641 * scripts/haveversions.awk: New file.
6642 * Makerules ($(common-objpfx)Versions.def)
6643 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6644 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6645 Move rules ...
6646 * Makeconfig ($(common-objpfx)Versions.def)
6647 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6648 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6649 ... here.
6650 ($(common-objpfx)Versions.mk): New rule. Include it.
6651 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6652 Emit error if build-obsolete-nsl = yes.
6653 * manual/install.texi (Configuring and compiling): Describe
6654 --enable-obsolete-nsl as unavaiable after version 2.28.
6655 * INSTALL: Regenerate.
6656
6657 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6658
6659 * NEWS: Add note about new TLE support on powerpc64le.
6660 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6661 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6662 __ununsed1.
6663 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6664 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6665 * sysdeps/powerpc/powerpc32/sysdep.h,
6666 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6667 ABORT_TRANSACTION): Remove macros.
6668 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6669 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6670 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6672 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6673 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6674 usage.
6675 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6676
6677 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6678
6679 [BZ #10425]
6680 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6681 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6682 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6683 which is the same as in it_IT.
6684 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6685 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6686
6687 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6688
6689 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6690 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6691 using MATH_REDIRECT.
6692 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6693 header inclusion.
6694 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6695 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6696 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6697 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6698 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6699 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6700 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6701 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6703 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6704 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6705 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6706 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6707 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6708 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6709 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6710 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6711 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6712 (ceil): Redirect to __ceil.
6713 (floor): Redirect to __floor.
6714 (trunc): Redirect to __trunc.
6715 (__truncl): Call trunc instead of __trunc.
6716 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6717 Remove macro.
6718 [_ARCH_PWR5X] (__truncf): Likewise.
6719 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6720 trunc functions instead of __trunc variants.
6721 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6722 Likewise.
6723 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6724 Likewise.
6725 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6726 Likewise.
6727 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6728 Likewise.
6729
6730 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6731 [__i586__ || __pentium__].
6732 [__i486__]: Handle explicitly.
6733 (HAS_CPUID): Define to 1 if above macros are undefined.
6734 (HAS_I586): Likewise.
6735 (HAS_I686): Likewise.
6736
6737 2018-09-20 Florian Weimer <fweimer@redhat.com>
6738
6739 * misc/tst-gethostid.c: New file.
6740 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6741 (tst-gethostid): Link with -ldl.
6742
6743 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6744
6745 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6746 value from gethostbyname_r.
6747
6748 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6749
6750 * stdlib/tst-setcontext9.c (f1): Rename to...
6751 (f1a): ... this.
6752 (f1b): New function implementing lower half of f1 in alternate stack.
6753
6754 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6755
6756 Fix mktime localtime offset confusion
6757 [BZ #23603]
6758 * include/time.h (__mktime_internal): The localtime offset is now
6759 of type long int instead of time_t. This is the longstanding type
6760 in glibc, and it is more than enough to represent difference
6761 between localtime and gmtime even if it is 32 bits and time_t is
6762 64. Changing it now will let us avoid an unnecessary change when
6763 time_t is widened to 64 bits on 32-bit platforms.
6764 * time/mktime-internal.h (mktime_offset_t): Now long int.
6765
6766 Merge mktime, timegm from upstream Gnulib
6767 [BZ #23603][BZ #16346]
6768 This fixes some obscure problems with integer overflow.
6769 Although it looks scary, it is almost all a byte-for-byte copy
6770 from Gnulib, and the Gnulib code has been tested reasonably well.
6771 * include/intprops.h: New file, copied from Gnulib.
6772 * include/verify.h, time/mktime-internal.h:
6773 New tiny files, simplified from Gnulib.
6774 * time/mktime.c: Copy from Gnulib. This has the following changes:
6775 Do not include config.h if DEBUG_MKTIME is nonzero.
6776 Include stdbool.h, intprops.h, verify.h.
6777 Include string.h only if needed.
6778 Include stdlib.h on MS-Windows.
6779 Include mktime-internal.h.
6780 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6781 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6782 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6783 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6784 simplify later conditionals; default the others to zero. Use
6785 these conditionals to express only the code needed on the current
6786 platform. In uses of these conditionals, explicitly spell out how
6787 _LIBC affects things, so it’s easier to review from a glibc
6788 viewpoint.
6789 (WRAPV): Remove; no longer needed now that we have
6790 systematic overflow checking.
6791 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6792 compartmentalize tzset issues. Move system-dependent tzsettish
6793 code here from mktime.
6794 (verify): Remove; now done by verify.h. All uses changed.
6795 (long_int): Use a more-conservative definition, to avoid
6796 integer overflow.
6797 (SHR): Remove, replacing with ...
6798 (shr): New function, which means we needn’t worry about side
6799 effects in args, and conversion analysis is simpler.
6800 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6801 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6802 (time_t_avg, time_t_add_ok): Remove.
6803 (mktime_min, mktime_max): New constants.
6804 (leapyear, isdst_differ): Use bool for booleans.
6805 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6806 Use long_int, not time_t, for mktime differences.
6807 (long_int_avg): New function, replacing time_t_avg.
6808 INT_ADD_WRAPV replaces time_t_add_ok.
6809 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6810 All uses changed.
6811 (convert_time): New function.
6812 (ranged_convert): Use it.
6813 (__mktime_internal): Last arg now points to mktime_offset_t, not
6814 time_t. All uses changed. This is a no-op on glibc, where
6815 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6816 offset guess. Directly check for integer overflow instead of
6817 using a heuristic that works only 99.9...% of the time.
6818 Access *OFFSET only once, to avoid an unlikely race if the
6819 compiler delays a load and if this cascades into a signed integer
6820 overflow.
6821 (mktime): Move tzsettish code to my_tzset, and move
6822 localtime_offset to within mktime so that it doesn’t
6823 need a separate ifdef.
6824 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6825 instead of localtime.
6826 * time/timegm.c: Copy from Gnulib. This has the following changes:
6827 Include mktime-internal.h.
6828 [!_LIBC]: Include config.h and time.h. Do not include
6829 timegm.h or time_r.h. Make __mktime_internal a macro,
6830 and include mktime-internal.h to get its declaration.
6831 (timegm): Temporary is now mktime_offset_t, not time_t.
6832 This affects only Gnulib.
6833
6834 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6835
6836 [BZ #23637]
6837 * string/test-strstr.c (pr23637): New function.
6838 (test_main): Add tests with longer needles.
6839 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6840 * string/strstr.c (AVAILABLE): Likewise.
6841
6842 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6843
6844 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6845
6846 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6847
6848 * NEWS: Mention pow improvements.
6849 * math/Makefile (type-double-routines): Add e_pow_log_data.
6850 * sysdeps/generic/math_private.h (__exp1): Remove.
6851 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6852 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6853 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6854 contraction.
6855 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6856 (exp_inline): Remove.
6857 (__ieee754_exp): Only single double input is handled.
6858 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6859 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6860 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6861 (__pow_log_data): Define.
6862 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6863 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6864 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6865 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6866 contraction.
6867 (CFLAGS-e_pow-fma4.c): Likewise.
6868
6869 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6870
6871 Simplify tzfile fstat failure code
6872 [BZ #21716]
6873 * time/tzfile.c (__tzfile_read): Simplify slightly.
6874
6875 Fix tzfile low-memory assertion failure
6876 [BZ #21716]
6877 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6878 when registering time zone abbreviations.
6879
6880 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6881
6882 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6883 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6884 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6885 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6886 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6887 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6888 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6889 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6890 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6891
6892 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6893 __ceil.
6894 (__ceill): Call ceil instead of __ceil.
6895 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6896 __floor.
6897 (__floorl): Call floor instead of __floor.
6898
6899 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6900
6901 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6902 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6903 using MATH_REDIRECT.
6904 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6905 header inclusion.
6906 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6907 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6908 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6909 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6910 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6911 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6912 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6913 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6918 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6919 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6920 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6921 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6922 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6923 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6924 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6925 Remove macro.
6926 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6927 functions instead of __ceil variants.
6928 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6929 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6930 Likewise.
6931 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6932 Likewise.
6933 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6934 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6935 Likewise.
6936 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6937 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6938
6939 [BZ #21286]
6940 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6941 constant.
6942 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6943 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6944 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6945 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6946 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6947 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6948 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6949 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6950 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6951 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6952 (ILL_BADIADDR): Remove constant.
6953 (TRAP_BRANCH): Likewise.
6954 (TRAP_HWBKPT): Likewise.
6955
6956 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6957
6958 [BZ #23656]
6959 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6960 Remove [_MIPS_SIM = _ABIN32] conditional case.
6961 (struct elf_prpsinfo): Likewise.
6962
6963 [BZ #23649]
6964 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6965 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6966 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6967 Likewise.
6968 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6969 elf_prpsinfo): Likewise.
6970 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6971 elf_prpsinfo): Likewise.
6972 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6973 Likewise.
6974
6975 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6976 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6977 using MATH_REDIRECT.
6978 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6979 header inclusion.
6980 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6981 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6982 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6983 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6984 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6985 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6986 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6987 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6988 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6989 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6990 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6991 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6992 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6993 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6994 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6995 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6996 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6997 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6998 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6999 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7001 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7002 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7003 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7004 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7005 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7006 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7007 __rint variants.
7008 * math/e_scalbf.c (invalid_fn): Likewise.
7009 * math/e_scalbl.c (invalid_fn): Likewise.
7010 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7011 Likewise.
7012 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7013 Likewise.
7014 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7015 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7016 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7017 Likewise.
7018 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7019 Likewise.
7020 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7021 Likewise.
7022 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7023 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7024
7025 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7026 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7027 New macro.
7028 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7029 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7030 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7031 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7032 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7033 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7034 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7035 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7036 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7037 && !NO_MATH_REDIRECT] (floor): Likewise.
7038 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7039 header inclusion.
7040 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7041 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7042 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7043 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7044 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7045 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7046 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7047 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7048 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7049 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7052 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7053 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7054 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7055 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7056 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7057 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7058 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7059 Remove macro.
7060 [_ARCH_PWR5X] (__floorf): Likewise.
7061 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7062 inline function.
7063 [__SSE4_1__] (__floorf): Likewise.
7064 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7065 instead of __floor variants.
7066 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7067 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7068 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7069 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7070 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7071 * math/w_tgamma_compat.c (__tgamma): Likewise.
7072 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7073 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7074 * math/w_tgammal_compat.c (__tgammal): Likewise.
7075 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7076 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7077 Likewise.
7078 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7079 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7080 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7081 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7082 Likewise.
7083 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7084 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7085 Likewise.
7086 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7087 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7088 Likewise.
7089 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7090 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7091 Likewise.
7092 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7093 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7094 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7095 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7096 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7097 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7098
7099 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7100
7101 * elf/Makefile (modules-names-tests): New variable.
7102
7103 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7104
7105 * NEWS: Mention log2 improvements.
7106 * math/Makefile (type-double-routines): Add e_log2_data.
7107 * sysdeps/i386/fpu/e_log2_data.c: New file.
7108 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7109 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7110 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7111 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7112 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7113 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7114
7115 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7116
7117 * NEWS: Mention log improvement.
7118 * math/Makefile (type-double-routines): Add e_log_data.
7119 * sysdeps/i386/fpu/e_log_data.c: New file.
7120 * sysdeps/ia64/fpu/e_log_data.c: New file.
7121 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7122 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7123 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7124 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7125 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7126 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7127
7128 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7129 Xuepeng Guo <xuepeng.guo@intel.com>
7130
7131 [BZ #23606]
7132 * sysdeps/i386/start.S: Include <sysdep.h>
7133 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7134 enabled. Add cfi_undefined (eip).
7135
7136 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7137
7138 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7139 (MOVQ): Likewise.
7140 (EXTRACT_WORDS64): Likewise.
7141 (INSERT_WORDS64): Likewise.
7142 (GET_FLOAT_WORD): Likewise.
7143 (SET_FLOAT_WORD): Likewise.
7144
7145 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7146 argument.
7147 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7148 build, but not for second build if --full-gcc. Use
7149 --enable-languages=all for second build if --full-gcc.
7150 (get_parser): Add --full-gcc option.
7151 (main): Update call to Context.
7152
7153 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7154
7155 [BZ #10797]
7156 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7157 Single Quotation Mark).
7158 (thousands_sep): Likewise.
7159 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7160 * localedata/locales/it_IT (thousands_sep): Use ".".
7161 (grouping): Use "3;3".
7162
7163 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7164
7165 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7166 x86_64 and i686 configs using --enable-obsolete-rpc
7167 --enable-obsolete-nsl.
7168
7169 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7170
7171 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7172
7173 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7174
7175 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7176 Increment size of new_argv by one.
7177
7178 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7179
7180 [BZ #17426]
7181 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7182 * localedata/locales/ar_IN (d_fmt): Likewise.
7183 * localedata/locales/bhb_IN (d_fmt): Likewise.
7184 * localedata/locales/bho_IN (d_fmt): Likewise.
7185 * localedata/locales/bn_BD (d_fmt): Likewise.
7186 * localedata/locales/bn_IN (d_fmt): Likewise.
7187 * localedata/locales/doi_IN (d_fmt): Likewise.
7188 * localedata/locales/gu_IN (d_fmt): Likewise.
7189 * localedata/locales/hi_IN (d_fmt): Likewise.
7190 * localedata/locales/hne_IN (d_fmt): Likewise.
7191 * localedata/locales/kn_IN (d_fmt): Likewise.
7192 * localedata/locales/mag_IN (d_fmt): Likewise.
7193 * localedata/locales/mai_IN (d_fmt): Likewise.
7194 * localedata/locales/mjw_IN (d_fmt): Likewise.
7195 * localedata/locales/ml_IN (d_fmt): Likewise.
7196 * localedata/locales/mni_IN (d_fmt): Likewise.
7197 * localedata/locales/mr_IN (d_fmt): Likewise.
7198 * localedata/locales/pa_IN (d_fmt): Likewise.
7199 * localedata/locales/raj_IN (d_fmt): Likewise.
7200 * localedata/locales/sat_IN (d_fmt): Likewise.
7201 * localedata/locales/sd_IN (d_fmt): Likewise.
7202 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7203 * localedata/locales/ta_IN (d_fmt): Likewise.
7204 * localedata/locales/ta_LK (d_fmt): Likewise.
7205 * localedata/locales/tcy_IN (d_fmt): Likewise.
7206 * localedata/locales/ur_IN (d_fmt): Likewise.
7207
7208 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7209 * localedata/locales/ks_IN (d_fmt): Likewise.
7210 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7211
7212 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7213 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7214 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7215 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7216
7217 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7218
7219 * NEWS: Mention exp and exp2 improvements.
7220 * math/Makefile (libm-support): Remove t_exp.
7221 (type-double-routines): Add math_err and e_exp_data.
7222 * sysdeps/aarch64/libm-test-ulps: Update.
7223 * sysdeps/arm/libm-test-ulps: Update.
7224 * sysdeps/i386/fpu/e_exp_data.c: New file.
7225 * sysdeps/i386/fpu/math_err.c: New file.
7226 * sysdeps/i386/fpu/t_exp.c: Remove.
7227 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7228 * sysdeps/ia64/fpu/math_err.c: New file.
7229 * sysdeps/ia64/fpu/t_exp.c: Remove.
7230 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7231 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7232 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7233 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7234 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7235 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7236 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7237 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7238 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7239 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7240 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7241 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7242 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7243 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7244 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7245 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7246
7247 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7248
7249 * sysdeps/alpha/fpu/math_private.h: Remove.
7250
7251 * sysdeps/generic/math_private.h
7252 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7253 Move this inline function ....
7254 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7255 * include/math.h [!_ISOMAC]: To here....
7256
7257 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7258
7259 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7260 code ....
7261 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7262 * include/fenv.h [!_ISOMAC]: ... to here.
7263 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7264 (feraiseexcept): Likewise.
7265 * math/fromfp.h: Do not include <fenv_private.h>.
7266 * math/s_cexp_template.c: Likewise.
7267 * math/s_csin_template.c: Likewise.
7268 * math/s_csinh_template.c: Likewise.
7269 * math/s_ctan_template.c: Likewise.
7270 * math/s_ctanh_template.c: Likewise.
7271 * math/s_iseqsig_template.c: Likewise.
7272 * math/w_acos_compat.c: Likewise.
7273 * math/w_acosf_compat.c: Likewise.
7274 * math/w_acosl_compat.c: Likewise.
7275 * math/w_asin_compat.c: Likewise.
7276 * math/w_asinf_compat.c: Likewise.
7277 * math/w_asinl_compat.c: Likewise.
7278 * math/w_j0_compat.c: Likewise.
7279 * math/w_j0f_compat.c: Likewise.
7280 * math/w_j0l_compat.c: Likewise.
7281 * math/w_j1_compat.c: Likewise.
7282 * math/w_j1f_compat.c: Likewise.
7283 * math/w_j1l_compat.c: Likewise.
7284 * math/w_jn_compat.c: Likewise.
7285 * math/w_jnf_compat.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/ieee754/dbl-64/s_llrint.c: Likewise.
7296 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7297 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7298 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7299 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7300 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7301 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7302 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7303 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7304 * sysdeps/ieee754/k_standardl.c: Likewise.
7305 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7306 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7307 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7308 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7309 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7310 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7311 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7312 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7313 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7314 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7315 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7316 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7317 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7318 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7319 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7320 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7321 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7322 * math/w_ilogb_template.c: Include <fenv.h> instead of
7323 <fenv_private.h>.
7324 * math/w_llogb_template.c: Likewise.
7325 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7326 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7327
7328 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7329
7330 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7331 * math/fromfp.h: Include <fenv_private.h>.
7332 * math/math-narrow.h: Likewise.
7333 * math/s_cexp_template.c: Likewise.
7334 * math/s_csin_template.c: Likewise.
7335 * math/s_csinh_template.c: Likewise.
7336 * math/s_ctan_template.c: Likewise.
7337 * math/s_ctanh_template.c: Likewise.
7338 * math/s_iseqsig_template.c: Likewise.
7339 * math/w_acos_compat.c: Likewise.
7340 * math/w_acosf_compat.c: Likewise.
7341 * math/w_acosl_compat.c: Likewise.
7342 * math/w_asin_compat.c: Likewise.
7343 * math/w_asinf_compat.c: Likewise.
7344 * math/w_asinl_compat.c: Likewise.
7345 * math/w_ilogb_template.c: Likewise.
7346 * math/w_j0_compat.c: Likewise.
7347 * math/w_j0f_compat.c: Likewise.
7348 * math/w_j0l_compat.c: Likewise.
7349 * math/w_j1_compat.c: Likewise.
7350 * math/w_j1f_compat.c: Likewise.
7351 * math/w_j1l_compat.c: Likewise.
7352 * math/w_jn_compat.c: Likewise.
7353 * math/w_jnf_compat.c: Likewise.
7354 * math/w_llogb_template.c: Likewise.
7355 * math/w_log10_compat.c: Likewise.
7356 * math/w_log10f_compat.c: Likewise.
7357 * math/w_log10l_compat.c: Likewise.
7358 * math/w_log2_compat.c: Likewise.
7359 * math/w_log2f_compat.c: Likewise.
7360 * math/w_log2l_compat.c: Likewise.
7361 * math/w_log_compat.c: Likewise.
7362 * math/w_logf_compat.c: Likewise.
7363 * math/w_logl_compat.c: Likewise.
7364 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7365 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7366 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7367 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7368 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7369 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7370 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7371 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7372 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7373 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7374 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7375 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7376 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7377 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7378 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7379 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7380 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7381 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7382 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7383 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7384 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7385 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7386 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7387 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7388 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7389 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7390 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7391 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7392 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7393 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7394 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7395 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7396 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7397 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7398 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7399 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7400 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7401 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7402 * sysdeps/ieee754/k_standardl.c: Likewise.
7403 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7404 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7405 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7406 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7407 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7408 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7409 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7410 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7411 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7412 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7413 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7414 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7415 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7416 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7417 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7418 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7419 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7420 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7421 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7422 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7423 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7424 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7425 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7426 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7427 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7428 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7429 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7430 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7431 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7432 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7433 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7434 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7435 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7436 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7437 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7438 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7439 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7440 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7441 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7442 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7443 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7444 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7445 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7446 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7447 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7448 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7449 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7450 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7451 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7452 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7453 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7454 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7455 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7456 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7457 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7458 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7459 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7460 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7461 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7462 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7463 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7464 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7465 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7466 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7467 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7468 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7469 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7470 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7471 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7472 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7473 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7474
7475 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7476
7477 [BZ #20271]
7478 * include/stdio.h (__libc_fatal): Mention newline in comment.
7479 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7480 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7481 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7482 * nss/nsswitch.c (__nss_next2): Likewise.
7483 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7484 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7485 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7486 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7487 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7488 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7489 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7490 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7491 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7492 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7493 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7494 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7495 (__netlink_assert_response): Likewise.
7496
7497 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7498
7499 * conform/glibcconform.py: New file.
7500 * conform/list-header-symbols.py: Likewise.
7501 * conform/list-header-symbols.pl: Remove.
7502 * conform/Makefile (tests-special): Only add linknamespace tests
7503 if [PYTHON].
7504 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7505
7506 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7507
7508 [BZ #23597]
7509 * support/Makefile (libsupport-routines): Add
7510 support_copy_file_range and xcopy_file_range.
7511 * support/support.h: Include <sys/types.h>.
7512 (support_copy_file_range): New prototype.
7513 * support/support_copy_file_range.c: New file. Copied and
7514 modified from io/copy_file_range-compat.c.
7515 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7516 instead of copy_file_range.
7517 * support/xcopy_file_range.c: New file.
7518 * support/xunistd.h (xcopy_file_range): New prototype.
7519
7520 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7521
7522 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7523 xpthread_create and xpthread_join.
7524
7525 2018-08-30 Florian Weimer <fweimer@redhat.com>
7526
7527 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7528
7529 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7530
7531 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7532 if malloc fails.
7533
7534 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7535
7536 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7537 and minus_oflow as non-finite.
7538
7539 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7540
7541 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7542 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7543 moved to fenv_private.h except for ...
7544 (TOINT_INTRINSICS): Kept in math_private.h.
7545 (roundtoint): Likewise.
7546 (converttoint): Likewise.
7547 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7548 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7549 * sysdeps/arm/math_private.h: Remove.
7550 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7551 ....
7552 * sysdeps/generic/math_private.h: ... this file. Include
7553 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7554 Include <fenv_private.h>. Remove functions and macros moved to
7555 fenv_private.h.
7556 * sysdeps/i386/fpu/math_private.h: Remove.
7557 * sysdeps/mips/math_private.h: Move to ....
7558 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7559 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7560 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7561 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7562 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7563 * sysdeps/powerpc/fpu/math_private.h: Do not include
7564 <fenv_private.h>.
7565 * sysdeps/riscv/rvf/math_private.h: Move to ....
7566 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7567 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7568 <fenv_private.h>.
7569 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7570 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7571 * sysdeps/sparc/fpu/math_private.h: Remove.
7572 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7573 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7574 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7575 <fenv_private.h>.
7576 * sysdeps/x86_64/fpu/math_private.h: Do not include
7577 <sysdeps/i386/fpu/fenv_private.h>.
7578
7579 2018-08-28 Florian Weimer <fweimer@redhat.com>
7580
7581 [BZ #23578]
7582 * posix/tst-regcomp-truncated.c: New file.
7583 * posix/Makefile (tests): Add it.
7584 (tst-regcomp-truncated.out): Depend on generated locales.
7585
7586 2018-08-28 Florian Weimer <fweimer@redhat.com>
7587
7588 * support/test-container.c (main): Treat unshare failure with
7589 EPERM as an unsupported test.
7590
7591 2018-08-28 Florian Weimer <fweimer@redhat.com>
7592
7593 [BZ #23520]
7594 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7595 * nscd/netgroupcache.c
7596 (addgetnetgrentX): Add tofreep parameter. Do not free
7597 heap-allocated buffer.
7598 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7599 (addgetnetgrentX_ignore): New function.
7600 (addgetnetgrent): Call it.
7601 (readdgetnetgrent): Likewise.
7602
7603 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7604
7605 * string/memmem.c: Use memcmp for first match.
7606
7607 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7608
7609 [BZ #17426]
7610 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7611
7612 2018-08-27 DJ Delorie <dj@redhat.com>
7613
7614 * support/Makefile (others): Don't list programs explicitly as a
7615 dependency of "others".
7616
7617 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7618
7619 * sysdeps/generic/math-tests-trap-force.h: New file.
7620 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7621 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7622 * sysdeps/powerpc/math-tests.h: Remove file.
7623 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7624
7625 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7626 Torvald Riegel <triegel@redhat.com>
7627
7628 [BZ #23538]
7629 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7630 Update r to include the set wake-request flag if waiters are
7631 remaining after spinning.
7632
7633 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7634
7635 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7636
7637 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7638
7639 [BZ #23578]
7640 regex: fix uninitialized memory access
7641 I introduced this bug into gnulib in commit
7642 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7643 eventually it was merged into glibc. The bug was found by
7644 project-repo <bugs@feusi.co> and reported here:
7645 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7646 Diagnosis and draft fix reported by Assaf Gordon here:
7647 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7648 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7649 * posix/regex_internal.c (build_wcs_upper_buffer):
7650 Fix bug when mbrtowc returns 0.
7651
7652 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7653
7654 * po/be.po: Update translation.
7655
7656 2018-08-24 DJ Delorie <dj@delorie.com>
7657
7658 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7659 $(libunwind).
7660
7661 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7662
7663 [BZ #23400]
7664 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7665 create temporary files in source tree.
7666
7667 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7668
7669 * sysdeps/generic/math-tests-trap.h: New file.
7670 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7671 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7672 * sysdeps/aarch64/math-tests.h: Remove file.
7673 * sysdeps/arm/math-tests.h: Likewise.
7674 * sysdeps/riscv/math-tests.h: Likewise.
7675 * sysdeps/aarch64/math-tests-trap.h: New file.
7676 * sysdeps/arm/math-tests-trap.h: Likewise.
7677 * sysdeps/riscv/math-tests-trap.h: Likewise.
7678
7679 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7680
7681 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7682 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7683 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7684 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7685 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7686 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7687 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7688 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7689 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7690 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7691 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7692 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7693 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7694 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7695 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7696 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7697 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7698 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7699
7700 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7701
7702 * sysdeps/generic/math-tests-exceptions.h: New file.
7703 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7704 (EXCEPTION_TESTS_float): Do not define here.
7705 (EXCEPTION_TESTS_double): Likewise.
7706 (EXCEPTION_TESTS_long_double): Likewise.
7707 (EXCEPTION_TESTS_float128): Likewise.
7708 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7709 Likewise.
7710 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7711 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7712 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7713 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7714 * sysdeps/mips/math-tests.h: Likewise.
7715 * sysdeps/nios2/math-tests.h: Likewise.
7716 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7717 (EXCEPTION_TESTS_float): Do not define here.
7718 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7719 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7720 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7721
7722 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7723
7724 * NEWS: Move optimized sinf entry to 2.29.
7725
7726 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7727
7728 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7729
7730 2018-08-22 DJ Delorie <dj@redhat.com>
7731
7732 * Makefile (testroot.pristine): New rules to initialize the
7733 test-in-container "testroot".
7734 * Makerules (all-testsuite): Add tests-container.
7735 * Rules (tests-expected): Add tests-container.
7736 (binaries-all-tests): Likewise.
7737 (tests-container): New, run these tests in the testroot container.
7738 * support/Makefile (others): Add *-container, support_paths.c,
7739 xmkdirp, and links-dso-program.
7740 * support/links-dso-program-c.c: New.
7741 * support/links-dso-program.cc: New.
7742 * support/test-container.c: New.
7743 * support/shell-container.c: New.
7744 * support/echo-container.c: New.
7745 * support/true-container.c: New.
7746 * support/xmkdirp.c: New.
7747 * support/xsymlink.c: New.
7748 * support/support_paths.c: New.
7749 * support/support.h: Add support paths prototypes.
7750 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7751
7752 * nss/tst-nss-test3.c: Convert to test-in-container.
7753 * nss/tst-nss-test3.root/: New.
7754
7755 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7756
7757 regex: port Gnulib code to z/OS POSIX environment
7758 Problem reported by Arnold Robbins in:
7759 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7760 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7761 Undef.
7762
7763 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7764
7765 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7766 (ROUNDING_TESTS_double): Remove.
7767 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7768 (ROUNDING_TESTS_double): Remove.
7769 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7770 (ROUNDING_TESTS_double): Remove.
7771 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7772 (ROUNDING_TESTS_float): Remove.
7773 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7774 (ROUNDING_TESTS_float): Remove.
7775 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7776 (ROUNDING_TESTS_float): Remove.
7777 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7778 !TEST_MATHVEC here.
7779 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7780 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7781
7782 * sysdeps/generic/math-tests-rounding.h: New file.
7783 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7784 (ROUNDING_TESTS_float): Do not define here.
7785 (ROUNDING_TESTS_double): Likewise.
7786 (ROUNDING_TESTS_long_double): Likewise.
7787 (ROUNDING_TESTS_float128): Likewise.
7788 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7789 (ROUNDING_TESTS_double): Undefine before defining.
7790 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7791 (ROUNDING_TESTS_double): Undefine before defining.
7792 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7793 (ROUNDING_TESTS_double): Undefine before defining.
7794 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7795 (ROUNDING_TESTS_float): Undefine before defining.
7796 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7797 (ROUNDING_TESTS_float): Undefine before defining.
7798 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7799 (ROUNDING_TESTS_float): Undefine before defining.
7800 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7801 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7802 not define here.
7803 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7804 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7805 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7806 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7807 (ROUNDING_TESTS_float): Do not define here.
7808 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7809 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7810 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7811 (ROUNDING_TESTS_float): Likewise.
7812 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7813 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7814 * sysdeps/mips/math-tests.h [__mips_soft_float]
7815 (ROUNDING_TESTS_float): Likewise.
7816 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7817 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7818 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7819 (ROUNDING_TESTS_double): Likewise.
7820 (ROUNDING_TESTS_long_double): Likewise.
7821
7822 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7823
7824 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7825 (PF_XDP): New macro.
7826 (AF_XDP): New macro.
7827 (SOL_XDP): New macro.
7828
7829 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7830
7831 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7832 (TCP_INQ): Likewise.
7833 (TCP_CM_INQ): Likewise.
7834 (TCP_REPAIR_ON): Likewise.
7835 (TCP_REPAIR_OFF): Likewise.
7836 (TCP_REPAIR_OFF_NO_WP): Likewise.
7837 (struct tcp_zerocopy_receive): New type.
7838
7839 2018-08-21 Florian Weimer <fweimer@redhat.com>
7840
7841 * support/support.h (support_descriptor_supports_holes): Declare.
7842 * support/Makefile (libsupport-routines): Add
7843 support_descriptor_supports_holes.
7844 * support/support_descriptor_supports_holes.c: New file.
7845 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7846 and stop testing if holes are not supported.
7847 * io/test-lfs.c (do_prepare): Likewise.
7848 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7849 Likewise.
7850 * timezone/tst-tzset.c (create_tz_file): Likewise.
7851 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7852 variable.
7853 (do_prepare): Set it.
7854 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7855
7856 2018-08-21 Florian Weimer <fweimer@redhat.com>
7857
7858 [BZ #17248]
7859 * Makeconfig (+cflags): Do not sort (and deduplicate).
7860
7861 2018-08-21 Florian Weimer <fweimer@redhat.com>
7862
7863 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7864 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7865
7866 2018-08-20 Florian Weimer <fweimer@redhat.com>
7867
7868 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7869 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7870
7871 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7872
7873 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7874 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7875 and ssi_arch members.
7876
7877 * elf/elf.c (NT_VMCOREDD): New macro.
7878 (AT_MINSIGSTKSZ): Likewise.
7879
7880 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7881
7882 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7883 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7884 s_cosf-ppc64 and s_cosf-power8.
7885 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7886 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7887 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7888 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7895 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7896 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7897
7898 2018-08-17 Florian Weimer <fweimer@redhat.com>
7899
7900 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7901
7902 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7903
7904 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7905
7906 2018-08-16 Florian Weimer <fweimer@redhat.com>
7907
7908 * configure.ac: Add --with-nonshared-cflags option.
7909 * config.make.in (extra-nonshared-cflags): Set variable.
7910 * Makeconfig (CFLAGS-.oS): Use it.
7911 * manual/install.texi (Configuring and compiling): Document
7912 --with-nonshared-cflags.
7913 * configure: Regenerate.
7914 * INSTALL: Likewise.
7915
7916 2018-08-16 Florian Weimer <fweimer@redhat.com>
7917
7918 * Makeconfig (ASFLAGS): Always append required assembler flags.
7919
7920 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7921
7922 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7923 (malloc_consolidate): Likewise.
7924
7925 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7926
7927 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7928
7929 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7930
7931 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7932 every strlen call.
7933
7934 * benchtests/bench-strlen.c: Print performance numbers in json.
7935
7936 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7937
7938 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7939 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7940 only for little endian.
7941 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7942 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7943 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7944 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7945 Add check for little endian.
7946 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7947 (__strcmp_power9): Add check for little endian.
7948 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7949 Add check for little endian.
7950 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7951 (__strncmp_power9): Add check for little endian.
7952 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7953 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7954 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7955 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7956 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7957
7958 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7959
7960 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7961 [!STRLEN](STRLEN): Set to __strlen.
7962 * sysdeps/aarch64/multiarch/strlen.c: New file.
7963 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7964 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7965 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7966 (__libc_ifunc_impl_list): Add strlen.
7967 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7968 strlen_generic and strlen_asimd.
7969
7970 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7971
7972 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7973 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7974 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7975
7976 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7977
7978 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7979
7980 2018-08-14 Florian Weimer <fweimer@redhat.com>
7981
7982 [BZ #23519]
7983 * include/stdio.h (__vfxprintf): Declare.
7984 * stdio-common/fxprintf.c (__vfxprintf): New function.
7985 (__fxprintf): Call it.
7986 * misc/err.c (convert_and_print): Remove function.
7987 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7988 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7989 * misc/Makefile (tests): Add tst-warn-wide.
7990 * misc/tst-warn-wide.c: New file.
7991
7992 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7993 Szabolcs Nagy <szabolcs.nagy@arm.com>
7994
7995 * NEWS: Mention sinf, cosf, sincosf.
7996 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7997 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7998 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7999 constants rather than including generic sincosf.h.
8000 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8001 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8002 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8003 (reduced_cos): Remove.
8004 (sinf_poly): New function.
8005 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8006
8007 2018-08-14 Florian Weimer <fweimer@redhat.com>
8008
8009 [BZ #23521]
8010 [BZ #23522]
8011 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8012 processing, bail out if no room, and close the stream before
8013 returning ERANGE.
8014 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8015 (tst-nss-files-alias-leak): Link with libdl.
8016 (tst-nss-files-alias-leak.out): Depend on nss_files.
8017
8018 * nss/tst-nss-files-alias-leak.c: New file.
8019
8020 2018-08-14 Florian Weimer <fweimer@redhat.com>
8021
8022 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8023 server_user, stat_user.
8024
8025 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8026
8027 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8028 version to 4.18.
8029 (io_pgetevents): New syscall.
8030 (rseq): Likewise.
8031
8032 * manual/install.texi (Configuring and compiling): Do not list
8033 tools used for testing pretty printers here.
8034 (Tools for Compilation): List Python, PExpect and GDB here.
8035 Update descriptions of uses of Perl and Python.
8036 * INSTALL: Regenerate.
8037
8038 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8039 version to 4.18.
8040
8041 2018-08-13 Florian Weimer <fweimer@redhat.com>
8042
8043 * misc/error.c (error): Add missing va_end call.
8044 (error_at_line): Likewise.
8045
8046 2018-08-13 Florian Weimer <fweimer@redhat.com>
8047
8048 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8049
8050 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8051
8052 * benchtests/scripts/benchout.schema.json (properties): Add
8053 new properties.
8054
8055 * benchtests/bench-skeleton.c (main): Add duration and
8056 iterations attributes.
8057
8058 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8059
8060 regex: Gnulib unibyte RRI uses bytes not chars
8061 Adjust the non-glibc code to agree with what Gawk needs for
8062 rational range interpretation (RRI) for regular expression ranges.
8063 In unibyte locales, Gawk wants ranges to use the underlying byte
8064 rather than the character code point. This change does not affect
8065 glibc proper.
8066 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8067 In unibyte locales, use the byte value rather than
8068 running it through btowc.
8069
8070 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8071
8072 * sysdeps/generic/math-tests-snan.h: New file.
8073 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8074 (SNAN_TESTS_float): Do not define here.
8075 (SNAN_TESTS_double): Likewise.
8076 (SNAN_TESTS_long_double): Likewise.
8077 (SNAN_TESTS_float128): Likewise.
8078 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8079 * sysdeps/i386/fpu/math-tests.h: Remove file.
8080 * sysdeps/ia64/math-tests-snan.h: New file.
8081 * sysdeps/ia64/math-tests.h: Remove file.
8082 * sysdeps/x86/math-tests.h: Likewise.
8083 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8084
8085 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8086 Szabolcs Nagy <szabolcs.nagy@arm.com>
8087
8088 * math/Makefile: Add s_sincosf_data.c.
8089 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8090 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8091 (sincosf_poly): Likewise.
8092 (reduce_small): Likewise.
8093 (reduce_large): Likewise.
8094 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8095 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8096 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8097 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8098
8099 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8100 Szabolcs Nagy <szabolcs.nagy@arm.com>
8101
8102 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8103 (converttoint): Use lround.
8104 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8105 document the semantics when TOINT_INTRINSICS is set.
8106 (converttoint): Likewise.
8107 (TOINT_RINT): Remove.
8108 (TOINT_SHIFT): Remove.
8109 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8110 path.
8111
8112 2018-08-10 Florian Weimer <fweimer@redhat.com>
8113
8114 [BZ #23497]
8115 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8116 function.
8117 (__old_getdents64): Use getdents64. Convert entries without
8118 moving them.
8119 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8120 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8121 tst-readdir64-compat.
8122
8123 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8124
8125 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8126 Fix unwind.
8127
8128 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8129
8130 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8131 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8132 code to s390x-mcount.h and #include it.
8133 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8134 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8135 (__fentry__): Add.
8136
8137 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8138
8139 * stdlib/Versions: Remove __fentry__.
8140 * sysdeps/i386/Versions: Add __fentry__.
8141 * sysdeps/x86_64/Versions: Add __fentry__.
8142
8143 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8144
8145 * sysdeps/s390/Makefile: Register the new tests.
8146 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8147 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8148 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8149 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8150 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8151 * sysdeps/s390/tst-dl-runtime.c: New file.
8152
8153 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8154
8155 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8156 Do not clobber R0.
8157
8158 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8159
8160 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8161 Do not clobber R0.
8162
8163 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8164
8165 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8166 Do not clobber R0.
8167
8168 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8169
8170 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8171 Do not clobber R0.
8172
8173 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8174
8175 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8176 Use symbolic offsets for stack variables.
8177
8178 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8179
8180 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8181 Use symbolic offsets for stack variables.
8182
8183 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8184
8185 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8186 Use symbolic offsets for stack variables.
8187
8188 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8189
8190 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8191 Use symbolic offsets for stack variables.
8192
8193 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8194
8195 * math/gen-libm-test.py: New file.
8196 * math/gen-libm-test.pl: Remove.
8197 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8198 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8199 gen-libm-test.pl.
8200 ($(libm-test-c-noauto-obj)): Likewise.
8201 ($(libm-test-c-auto-obj)): Likewise.
8202 ($(libm-test-c-narrow-obj)): Likewise.
8203 (regen-ulps): Likewise.
8204 * math/README.libm-test: Update references to gen-libm-test.pl.
8205 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8206 referencing gen-libm-test.pl.
8207 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8208 * math/libm-test-support.c: Likewise.
8209 * math/libm-test-support.h: Likewise.
8210 * sysdeps/generic/libm-test-ulps: Likewise.
8211
8212 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8213
8214 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8215 Fix value.
8216
8217 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8218
8219 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8220 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8221
8222 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8223
8224 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8225 symbols.
8226 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8227 __pthread_setspecific): Add hidden proto.
8228 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8229 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8230
8231 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8232
8233 * benchtests/bench-string.h (buf1_size, buf2_size): New
8234 variables.
8235 (init_sizes): New function.
8236 (test_init): Use it.
8237 (alloc_buf, exit_error): New functions.
8238 (alloc_bufs): Use ALLOC_BUF.
8239 (realloc_bufs): Remove.
8240 * benchtests/bench-memcmp.c (do_test): Adjust.
8241 * benchtests/bench-memset-large.c (do_test): Likewise.
8242 * benchtests/bench-memset-walk.c (do_test): Likewise.
8243 * benchtests/bench-memset.c (do_test): Likewise.
8244 * benchtests/bench-strncmp.c (do_test): Likewise.
8245
8246 2018-08-06 Andreas Schwab <schwab@suse.de>
8247
8248 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8249 of CONST_THREAD_AREA.
8250
8251 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8252
8253 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8254 (STATE_SAVE_MASK): Likewise.
8255 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8256 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8257 (STATE_SAVE_MASK): Likewise.
8258 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8259 instead of <cpu-features.h>.
8260
8261 2018-08-03 DJ Delorie <dj@redhat.com>
8262
8263 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8264 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8265
8266 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8267
8268 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8269
8270 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8271 after TEST_* calls.
8272 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8273 * math/libm-test-logb.inc (logb_test_data): Likewise.
8274
8275 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8276
8277 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8278 * string/strstr.c (AVAILABLE): Likewise.
8279
8280 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8281
8282 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8283 <init-arch.h>.
8284 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8285 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8286 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8287
8288 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8289
8290 * po/be.po: Update translation.
8291
8292 * po/be.po: Update translation.
8293
8294 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8295
8296 * sysdeps/x86/cpu-features-offsets.sym
8297 (rtld_global_ro_offsetof): Removed.
8298 (CPU_FEATURES_SIZE): Likewise.
8299 (CPUID_OFFSET): Likewise.
8300 (CPUID_SIZE): Likewise.
8301 (CPUID_EAX_OFFSET): Likewise.
8302 (CPUID_EBX_OFFSET): Likewise.
8303 (CPUID_ECX_OFFSET): Likewise.
8304 (CPUID_EDX_OFFSET): Likewise.
8305 (FAMILY_OFFSET): Likewise.
8306 (MODEL_OFFSET): Likewise.
8307 (FEATURE_OFFSET): Likewise.
8308 (FEATURE_SIZ): Likewise.
8309 (COMMON_CPUID_INDEX_1): Likewise.
8310 (COMMON_CPUID_INDEX_7): Likewise.
8311 (FEATURE_INDEX_1): Likewise.
8312 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8313
8314 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8315
8316 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8317 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8318 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8319 (install-locales): Depend on install-locale-archive.
8320 (install-locale-archive): Define.
8321 (install-locale-files): Define.
8322 (build-one-locale): Define macro.
8323 * manual/install.texi (Running make install): Document.
8324 * manual/INSTALL: Regenerate.
8325
8326 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8327
8328 * benchtests/scripts/compare_strings.py: Import traceback.
8329 (parse_file): Pretty-print error.
8330
8331 * NEWS: Mention the change.
8332 * elf/dl-tunables.list: Rename tune namespace to cpu.
8333 * sysdeps/powerpc/dl-tunables.list: Likewise.
8334 * sysdeps/x86/dl-tunables.list: Likewise.
8335 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8336 cpu.name.
8337 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8338 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8339 * manual/README.tunables: Likewise.
8340 * manual/tunables.texi: Likewise.
8341 * sysdeps/powerpc/cpu-features.c: Likewise.
8342 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8343 (init_cpu_features): Likewise.
8344 * sysdeps/x86/cpu-features.c: Likewise.
8345 * sysdeps/x86/cpu-features.h: Likewise.
8346 * sysdeps/x86/cpu-tunables.c: Likewise.
8347 * sysdeps/x86_64/Makefile: Likewise.
8348 * sysdeps/x86/dl-cet.c: Likewise.
8349
8350 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8351
8352 [BZ #23479]
8353 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8354 [__mips_hard_float].
8355 (FE_UNDERFLOW): Likewise.
8356 (FE_OVERFLOW): Likewise.
8357 (FE_DIVBYZERO): Likewise.
8358 (FE_INVALID): Likewise.
8359 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8360 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8361 (FE_UPWARD): Likewise.
8362 (FE_DOWNWARD): Likewise.
8363 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8364 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8365 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8366 [__mips_hard_float].
8367 (FP_ROUNDMODE): Likewise.
8368 (FP_RND_NEAREST): Likewise.
8369 (FP_RND_ZERO): Likewise.
8370 (FP_RND_PINF): Likewise.
8371 (FP_RND_MINF): Likewise.
8372 (FP_EX_INVALID): Likewise.
8373 (FP_EX_OVERFLOW): Likewise.
8374 (FP_EX_UNDERFLOW): Likewise.
8375 (FP_EX_DIVZERO): Likewise.
8376 (FP_EX_INEXACT): Likewise.
8377 (FP_INIT_ROUNDMODE): Likewise.
8378 * sysdeps/mips/nofpu/fesetenv.c: New file.
8379 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8380
8381 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8382
8383 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8384 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8385 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8386 conditional on [FE_UPWARD].
8387
8388 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8389
8390 regex: fix memory leak in Gnulib
8391 Problem and fix reported by Assaf Gordon in:
8392 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8393 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8394 range_ends members too, as they are defined in 'struct
8395 re_charset_t' even if not _LIBC. This affects only Gnulib.
8396
8397 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8398
8399 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8400 ...
8401 (get_common_indices): This.
8402 (init_cpu_features): Updated.
8403
8404 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8405
8406 * sysdeps/generic/math-tests-snan-payload.h: New file.
8407 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8408 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8409 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8410 * sysdeps/generic/math-tests.h: Include
8411 <math-tests-snan-payload.h>.
8412 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8413 * sysdeps/hppa/math-tests.h: Remove file.
8414 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8415 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8416 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8417 Likewise.
8418
8419 * sysdeps/generic/math-tests-snan-cast.h: New file.
8420 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8421 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8422 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8423 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8424
8425 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8426
8427 * version.h (RELEASE): Set to "development".
8428 (VERSION): Set to "2.28.9000".
8429 * NEWS (2.29): New section.
8430
8431 * version.h (RELEASE): Set to "stable".
8432 (VERSION): Set to "2.28".
8433 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8434 * NEWS: Add the list of bugs fixed in 2.28.
8435
8436 * po/ca.po: Update to latest version.
8437 * po/cs.po: Likewise
8438 * po/da.po: Likewise
8439 * po/el.po: Likewise
8440 * po/eo.po: Likewise
8441 * po/es.po: Likewise
8442 * po/fi.po: Likewise
8443 * po/fr.po: Likewise
8444 * po/gl.po: Likewise
8445 * po/hu.po: Likewise
8446 * po/ia.po: Likewise
8447 * po/id.po: Likewise
8448 * po/it.po: Likewise
8449 * po/ja.po: Likewise
8450 * po/ko.po: Likewise
8451 * po/lt.po: Likewise
8452 * po/nb.po: Likewise
8453 * po/nl.po: Likewise
8454 * po/pt_BR.po: Likewise
8455 * po/ru.po: Likewise
8456 * po/rw.po: Likewise
8457 * po/sk.po: Likewise
8458 * po/sl.po: Likewise
8459 * po/tr.po: Likewise
8460 * po/zh_CN.po: Likewise
8461 * po/zh_TW.po: Likewise
8462
8463 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8464
8465 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8466 initialization...
8467 (init): ... before initializing libpthread.
8468
8469 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8470 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8471 (__mach_setup_tls): ... new function.
8472 (mach_setup_tls): New alias.
8473 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8474 __mach_setup_thread.
8475 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8476 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8477 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8478 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8479
8480 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8481
8482 * manual/install.texi: Update versions.
8483 * INSTALL: Regenerate.
8484
8485 * manual/contrib.texi (Contributors): Update contributions.
8486
8487 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8488
8489 * po/be.po: Update translations.
8490
8491 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8492
8493 * sysdeps/sh/libm-test-ulps: Update.
8494
8495 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8496
8497 * po/bg.po: Update translations.
8498 * po/de.po: Likewise.
8499 * po/hr.po: Likewise.
8500 * po/pt_BR.po: Likewise.
8501 * po/sv.po: Likewise.
8502 * po/vi.po: Likewise.
8503
8504 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8505
8506 [BZ #23467]
8507 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8508 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8509 (CFLAGS-tst-cet-property-1.o): New.
8510 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8511 ($(objpfx)tst-cet-property-2): Likewise.
8512 ($(objpfx)tst-cet-property-2.out): Likewise.
8513 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8514 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8515 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8516 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8517 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8518
8519 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8520
8521 [BZ #23458]
8522 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8523
8524 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8525
8526 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8527 __sbrk): Do not set attribute_hidden.
8528 * sysdeps/mach/hurd/not-errno.h: New file.
8529 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8530 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8531
8532 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8533
8534 * po/uk.po: Update translations.
8535 * po/cs.po: Likewise.
8536 * po/pl.po: Likewise.
8537
8538 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8539
8540 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8541 parse beyond the note end.
8542
8543 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8544
8545 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8546 kernel does not support OFD locks.
8547 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8548
8549 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8550
8551 * sysdeps/mach/hurd/Versions (libc): Make __access and
8552 __access_noerrno external so they can override the ld symbols.
8553 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8554 __writev, __open64, __access_noerrno extern so they can be overrided.
8555 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8556 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8557
8558 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8559
8560 * po/libc.pot: Regenerate.
8561
8562 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8563
8564 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8565
8566 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 [BZ #23459]
8569 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8570 function.
8571 (init_cpu_features): Call get_extended_indices for both Intel
8572 and AMD CPUs.
8573 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8574 Remove "for AMD" comment.
8575
8576 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8577
8578 [BZ # 23456]
8579 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8580 COMMON_CPUID_INDEX_80000001.
8581
8582 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8583
8584 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8585 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8586
8587 2018-07-26 Florian Weimer <fweimer@redhat.com>
8588
8589 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8590 aliases for symbols not in the implementation namespace.
8591
8592 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8593
8594 [BZ #23393]
8595 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8596 lowercase in LATIN script.
8597 * localedata/Makefile (test-input): Add en_US.UTF-8.
8598 * localedata/en_US.UTF-8.in: New file.
8599 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8600 and restore old tests.
8601 * posix/tst-regexloc.c (do_test): Add back range expression test.
8602
8603 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8606
8607 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8608
8609 * nptl/threads.h: Move to ...
8610 * sysdeps/nptl/threads.h: ... here.
8611 * sysdeps/hurd/stdc-predef.h: New file.
8612
8613 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8614
8615 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8616 tst-cet-setcontext-1 if CET is enabled.
8617 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8618 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8619
8620 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8621
8622 * include/threads.h: Move to ...
8623 * sysdeps/nptl/threads.h: ... here.
8624 * sysdeps/htl/threads.h: New file.
8625 * conform/Makefile (linknamespace-libs-ISO11): Use
8626 static-thread-library instead of linking libpthread.
8627 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8628
8629 2018-07-25 Florian Weimer <fweimer@redhat.com>
8630
8631 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8632 nanoseconds into seconds.
8633 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8634 (do_test): Likewise.
8635 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8636 (do_test): Likewise. Avoid nanosecond overflow and spurious
8637 timeouts due to system load.
8638 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8639 (child_wait): Increment it.
8640 (do_test): Wait as long as necessary until all expected threads
8641 have arrived.
8642
8643 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8644 H.J. Lu <hongjiu.lu@intel.com>
8645
8646 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8647 __ssp.
8648 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8649 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8650 (__push___start_context): New.
8651 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8652 <asm/prctl.h>.
8653 (__getcontext): Record the current shadow stack base. Save the
8654 caller's shadow stack pointer and base.
8655 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8656 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8657 (__push___start_context): New prototype.
8658 (__makecontext): Call __push___start_context to allocate a new
8659 shadow stack, push __start_context onto the new stack as well
8660 as the new shadow stack.
8661 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8662 <asm/prctl.h>.
8663 (__setcontext): Restore the target shadow stack.
8664 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8665 <asm/prctl.h>.
8666 (__swapcontext): Record the current shadow stack base. Save
8667 the caller's shadow stack pointer and base. Restore the target
8668 shadow stack.
8669 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8670 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8671 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8672
8673 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8674
8675 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8676 tst-setcontext8 and tst-setcontext9.
8677 * stdlib/tst-setcontext6.c: New file.
8678 * stdlib/tst-setcontext7.c: Likewise.
8679 * stdlib/tst-setcontext8.c: Likewise.
8680 * stdlib/tst-setcontext9.c: Likewise.
8681
8682 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8683
8684 * stdlib/Makefile ((tests): Add tst-setcontext5.
8685 * stdlib/tst-setcontext5.c: New file.
8686
8687 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8688
8689 * stdlib/Makefile (tests): Add tst-setcontext4.
8690 * stdlib/tst-setcontext4.c: New file.
8691
8692 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * stdlib/Makefile (tests): Add tst-swapcontext1.
8695 * stdlib/tst-swapcontext1.c: New test.
8696
8697 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8698
8699 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8700 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8701 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8702 and tst-cet-legacy-4c.
8703 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8704 and tst-cet-legacy-mod-4.
8705 (CFLAGS-tst-cet-legacy-2.c): New.
8706 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8707 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8708 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8709 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8710 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8711 ($(objpfx)tst-cet-legacy-1): Likewise.
8712 ($(objpfx)tst-cet-legacy-2): Likewise.
8713 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8714 ($(objpfx)tst-cet-legacy-2a): Likewise.
8715 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8716 ($(objpfx)tst-cet-legacy-4): Likewise.
8717 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8718 ($(objpfx)tst-cet-legacy-4a): Likewise.
8719 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8720 (tst-cet-legacy-4a-ENV): Likewise.
8721 ($(objpfx)tst-cet-legacy-4b): Likewise.
8722 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8723 (tst-cet-legacy-4b-ENV): Likewise.
8724 ($(objpfx)tst-cet-legacy-4c): Likewise.
8725 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8726 (tst-cet-legacy-4c-ENV): Likewise.
8727 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8728 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8729 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8730 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8731 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8732 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8733 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8734 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8735 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8736 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8737 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8738
8739 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8740
8741 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8742 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8743 with ssp_base.
8744 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8745 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8746 with ssp_base.
8747
8748 2018-07-25 Andreas Schwab <schwab@suse.de>
8749
8750 [BZ #23442]
8751 * locale/weightwc.h (findidx): Handle the case where usrc is a
8752 prefix of cp but one character too short.
8753
8754 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8755
8756 * NEWS: Add ISO C threads addition.
8757
8758 2018-07-24 Florian Weimer <fweimer@redhat.com>
8759
8760 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8761 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8762 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8763 4.13.
8764
8765 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8766
8767 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8768 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8769 <sys/prctl.h> and <asm/prctl.h>.
8770 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8771 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8772 and <asm/prctl.h>.
8773 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8774 ARCH_CET_LEGACY_BITMAP.
8775 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8776 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8777 * sysdeps/x86/libc-start.c: Include <startup.h>.
8778
8779 2018-07-24 Florian Weimer <fweimer@redhat.com>
8780
8781 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8782 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8783
8784 2018-07-24 Rical Jasan <rj@2c3t.io>
8785 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8786 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8787
8788 [BZ #14092]
8789 * manual/debug.texi: Update adjacent chapter name.
8790 * manual/probes.texi: Likewise.
8791 * manual/threads.texi (ISO C Threads): New section.
8792 (POSIX Threads): Convert to a section.
8793
8794 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8795 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8796
8797 [BZ# 14092]
8798 * nptl/Makefile (tests): Add new test files.
8799 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8800 * nptl/tst-cnd-basic.c: Likewise.
8801 * nptl/tst-cnd-broadcast.c: Likewise.
8802 * nptl/tst-cnd-timedwait.c: Likewise.
8803 * nptl/tst-mtx-basic.c: Likewise.
8804 * nptl/tst-mtx-recursive.c: Likewise.
8805 * nptl/tst-mtx-timedlock.c: Likewise.
8806 * nptl/tst-mtx-trylock.c: Likewise.
8807 * nptl/tst-thrd-basic.c: Likewise.
8808 * nptl/tst-thrd-detach.c: Likewise.
8809 * nptl/tst-thrd-sleep.c: Likewise.
8810 * nptl/tst-tss-basic.c: Likewise.
8811
8812 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8813
8814 [BZ #14092]
8815 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8816 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8817 symbols.
8818 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8819 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8820 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8821 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8822 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8823 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8824 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8825 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8826 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8827 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8828 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8829 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8831 Likewise.
8832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8833 Likewise.
8834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8835 Likewise.
8836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8837 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8838 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8839 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8840 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8841 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8842 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8843 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8844 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8845 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8846 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8847 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8848 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8849 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8850 Likewise.
8851 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8852 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8853 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8854 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8855 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8856 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8857 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8858 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8859 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8860 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8861 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8862 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8863 ikewise.
8864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8866 Likewise.
8867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8868 Likewise.
8869 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8870 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8871 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8872 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8873 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8874 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8875 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8876 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8877
8878 [BZ #14092]
8879 * conform/data/threads.h-data (thread_local): New macro.
8880 (TSS_DTOR_ITERATIONS): Likewise.
8881 (tss_t): New type.
8882 (tss_dtor_t): Likewise.
8883 (tss_create): New function.
8884 (tss_get): Likewise.
8885 (tss_set): Likewise.
8886 (tss_delete): Likewise.
8887 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8888 tss_get, and tss_set objects.
8889 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8890 * nptl/tss_create.c: New file.
8891 * nptl/tss_delete.c: Likewise.
8892 * nptl/tss_get.c: Likewise.
8893 * nptl/tss_set.c: Likewise.
8894 * sysdeps/nptl/threads.h (thread_local): New define.
8895 (TSS_DTOR_ITERATIONS): Likewise.
8896 (tss_t): New typedef.
8897 (tss_dtor_t): Likewise.
8898 (tss_create): New prototype.
8899 (tss_get): Likewise.
8900 (tss_set): Likewise.
8901 (tss_delete): Likewise.
8902
8903 [BZ #14092]
8904 * conform/data/threads.h-data (cnd_t): New type.
8905 (cnd_init): New function.
8906 (cnd_signal): Likewise.
8907 (cnd_broadcast): Likewise.
8908 (cnd_wait): Likewise.
8909 (cnd_timedwait): Likewise.
8910 (cnd_destroy): Likewise.
8911 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8912 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8913 object.
8914 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8915 * nptl/cnd_broadcast.c: New file.
8916 * nptl/cnd_destroy.c: Likewise.
8917 * nptl/cnd_init.c: Likewise.
8918 * nptl/cnd_signal.c: Likewise.
8919 * nptl/cnd_timedwait.c: Likewise.
8920 * nptl/cnd_wait.c: Likewise.
8921 * sysdeps/nptl/threads.h (cnd_t): New type.
8922 (cnd_init): New prototype.
8923 (cnd_signa): Likewise.
8924 (cnd_broadcast): Likewise.
8925 (cnd_wait): Likewise.
8926 (cnd_timedwait): Likewise.
8927 (cnd_destroy): Likewise.
8928
8929 [BZ #14092]
8930 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8931 (once_flag): New type.
8932 (call_once): New function.
8933 * nptl/Makefile (libpthread-routines): Add call_once object.
8934 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8935 * nptl/call_once.c: New file.
8936 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8937 (once_flag): New type.
8938 (call_once): New prototype.
8939
8940 [BZ #14092]
8941 * conform/data/threads.h-data (mtx_plain): New constant.
8942 (mtx_recursive): Likewise.
8943 (mtx_timed): Likewise.
8944 (mtx_t): New type.
8945 (mtx_init): New function.
8946 (mtx_lock): Likewise.
8947 (mtx_timedlock): Likewise.
8948 (mtx_trylock): Likewise.
8949 (mtx_unlock): Likewise.
8950 (mtx_destroy): Likewise.
8951 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8952 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8953 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8954 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8955 * nptl/mtx_destroy.c: New file.
8956 * nptl/mtx_init.c: Likewise.
8957 * nptl/mtx_lock.c: Likewise.
8958 * nptl/mtx_timedlock.c: Likewise.
8959 * nptl/mtx_trylock.c: Likewise.
8960 * nptl/mtx_unlock.c: Likewise.
8961 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8962 (mtx_recursive): Likewise.
8963 (mtx_timed): Likewise.
8964 (mtx_t): New type.
8965 (mtx_init): New prototype.
8966 (mtx_lock): Likewise.
8967 (mtx_timedlock): Likewise.
8968 (mtx_trylock): Likewise.
8969 (mtx_unlock): Likewise.
8970 (mtx_destroy): Likewise.
8971
8972 [BZ #14092]
8973 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8974 (linknamespace-libs-ISO11): Add libpthread.a.
8975 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8976 functions.
8977 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8978 * nptl/Makefile (headers): Add threads.h.
8979 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8980 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8981 thrd_yield.
8982 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8983 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8984 thrd_join, thrd_sleep, and thrd_yield symbols.
8985 * nptl/descr.h (struct pthread): Add c11 field.
8986 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8987 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8988 routine with expected function prototype.
8989 (__pthread_create_2_1): Add C11 threads check based on attribute
8990 value.
8991 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8992 * nptl/thrd_create.c: New file.
8993 * nptl/thrd_current.c: Likewise.
8994 * nptl/thrd_detach.c: Likewise.
8995 * nptl/thrd_equal.c: Likewise.
8996 * nptl/thrd_exit.c: Likewise.
8997 * nptl/thrd_join.c: Likewise.
8998 * nptl/thrd_priv.h: Likewise.
8999 * nptl/thrd_sleep.c: Likewise.
9000 * nptl/thrd_yield.c: Likewise.
9001 * include/threads.h: Likewise.
9002
9003 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9004
9005 * bits/indirect-return.h: New file.
9006 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9007 * sysdeps/x86/bits/indirect-return.h: Likewise.
9008 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9009 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9010 (swapcontext): Add __INDIRECT_RETURN.
9011 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9012 (prepare_test_buffer): Use it.
9013
9014 2018-07-24 Andreas Schwab <schwab@suse.de>
9015
9016 [BZ #23448]
9017 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9018 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9019
9020 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9023 Redefine if shadow stack is enabled.
9024 (SYSCALL_ERROR_LABEL): Likewise.
9025 (__vfork): Pop shadow stack and jump back to to caller directly
9026 when shadow stack is in use.
9027 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9028 Redefine if shadow stack is enabled.
9029 (SYSCALL_ERROR_LABEL): Likewise.
9030 (__vfork): Pop shadow stack and jump back to to caller directly
9031 when shadow stack is in use.
9032
9033 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9034
9035 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9036 enabled.
9037 (foo): Likewise.
9038 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9039 (foo): Likewise.
9040
9041 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9042
9043 * scripts/build-many-glibcs.py (Context.checkout): Default
9044 binutils version to 2.31 branch.
9045
9046 2018-07-20 Zong Li <zong@andestech.com>
9047
9048 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9049 URL of gcc's tarball.
9050
9051 2018-07-20 Florian Weimer <fweimer@redhat.com>
9052
9053 [BZ #23396]
9054 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9055 not compare an extra byte after the end of the weights.
9056
9057 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9058
9059 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9060 to 1.
9061 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9062 hidden prototypes.
9063 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9064 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9065 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9066 list of libraries whose stack executability is expected.
9067 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9068 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9069 variable.
9070 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9071 libc.so libpthread.so.
9072
9073 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9074
9075 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9076 SOCK_NONBLOCK.
9077 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9078 and SOCK_NONBLOCK.
9079 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9080 implement __pipe2.
9081 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9082
9083 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9084
9085 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9086 library to improve command line parsing.
9087 (__main__): make schema file as optional parameter (--schema),
9088 defaulting to benchtests/scripts/benchout.schema.json.
9089 (main): move out of the parsing stuff to __main_  and leave it
9090 only as caller of main comparison functions.
9091
9092 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9093
9094 * NEWS: Add a note for Intel CET status.
9095 * manual/install.texi: Likewise.
9096 * INSTALL: Regenerated.
9097
9098 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9099
9100 [BZ #23140]
9101 * localedata/locales/oc_FR (mon): Rename to...
9102 (alt_mon): This, then update October (typo fix).
9103 (mon): New content (genitive case, month names preceded by
9104 "de" or "d’").
9105
9106 [BZ #23422]
9107 * localedata/locales/oc_FR (abday): Update all items.
9108 (day): Update Wednesday and Saturday (typo fixes).
9109 (abmon): Update all items, except May.
9110 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9111 (LC_IDENTIFICATION): Bump the revision number and date.
9112 Keep the "category" entries in alphabetic order.
9113 (LC_ADDRESS): Remove no longer needed comment.
9114 (LC_COLLATE): Use “copy "ca_ES"”.
9115 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9116 "name_mrs".
9117
9118 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9119
9120 * grp/tst_fgetgrent.c: Include <unistd.h>.
9121 (main): Use mkstemp instead of tmpnam.
9122 * io/test-utime.c (main): Likewise.
9123 * posix/annexc.c (macrofile): Change to modifiable array.
9124 (main): Remove macrofile here.
9125 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9126 macrofile here.
9127 (check_header): Do not remove macrofile here.
9128 * posix/bug-getopt1.c: Include <stdlib.h>.
9129 (do_test): Use mkstemp instead of tmpnam.
9130 * posix/bug-getopt2.c: Include <stdlib.h>.
9131 (do_test): Use mkstemp instead of tmpnam.
9132 * posix/bug-getopt3.c: Include <stdlib.h>.
9133 (do_test): Use mkstemp instead of tmpnam.
9134 * posix/bug-getopt4.c: Include <stdlib.h>.
9135 (do_test): Use mkstemp instead of tmpnam.
9136 * posix/bug-getopt5.c: Include <stdlib.h>.
9137 (do_test): Use mkstemp instead of tmpnam.
9138 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9139 (main): Use mkstemp instead of tmpnam.
9140 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9141 (main): Use mkstemp instead of tmpnam.
9142 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9143 (main): use mkstemp instead of tmpnam.
9144 * stdlib/isomac.c (macrofile): Change to modifiable array.
9145 (main): Remove macrofile here.
9146 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9147 macrofile here.
9148 (check_header): Do not remove macrofile here.
9149
9150 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9151
9152 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9153 glibc.tune.x86_shstk.
9154
9155 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9156
9157 * NEWS: Mention --enable-cet.
9158 * manual/install.texi: Document --enable-cet.
9159 * INSTALL: Regenerated.
9160
9161 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9162
9163 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9164 Add _CET_NOTRACK before indirect jump to jump table.
9165
9166 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9167
9168 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9169 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9170 to jump table.
9171
9172 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9173
9174 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9175 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9176 to jump table.
9177
9178 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9179
9180 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9181 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9182 to jump table.
9183
9184 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9185
9186 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9187 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9188 to jump table.
9189
9190 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9191
9192 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9193 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9194 to jump table.
9195 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9196
9197 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9198
9199 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9200 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9201 to jump table.
9202
9203 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9204
9205 * sysdeps/i386/i686/multiarch/memset-sse2.S
9206 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9207 to jump table.
9208
9209 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9210
9211 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9212 indirect jump to jump table.
9213
9214 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9215
9216 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9217 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9218 to jump table.
9219 (MEMCPY): Likewise.
9220
9221 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9222
9223 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9224 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9225 to jump table.
9226 (MEMCPY): Likewise.
9227
9228 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9229
9230 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9231 _CET_NOTRACK before indirect jump to jump table.
9232
9233 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9234
9235 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9236 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9237 to jump table.
9238
9239 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9240
9241 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9242 indirect jump to jump table.
9243
9244 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9245
9246 [BZ #22241]
9247 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9248 (LOCALES): Likewise.
9249 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9250 * localedata/locales/sah_RU: New file.
9251 * localedata/sah_RU.UTF-8.in: New file.
9252
9253 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9254
9255 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9256 "sysdep.h".
9257 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9258 _CET_ENDBR to indirect jump targets and adjust jump destination
9259 for _CET_ENDBR.
9260 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9261 "sysdep.h".
9262 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9263 _CET_ENDBR to indirect jump targets and adjust jump destination
9264 for _CET_ENDBR.
9265 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9266 "sysdep.h".
9267 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9268 _CET_ENDBR to indirect jump targets and adjust jump destination
9269 for _CET_ENDBR.
9270
9271 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9272
9273 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9274 _CET_ENDBR.
9275
9276 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9277
9278 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9279 _CET_ENDBR.
9280 (_dl_tlsdesc_undefweak): Likewise.
9281 (_dl_tlsdesc_dynamic): Likewise.
9282 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9283 (_dl_tlsdesc_resolve_rel): Likewise.
9284 (_dl_tlsdesc_resolve_rela): Likewise.
9285 (_dl_tlsdesc_resolve_hold): Likewise.
9286 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9287 (_dl_tlsdesc_undefweak): Likewise.
9288 (_dl_tlsdesc_dynamic): Likewise.
9289 (_dl_tlsdesc_resolve_rela): Likewise.
9290 (_dl_tlsdesc_resolve_hold): Likewise.
9291
9292 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9293
9294 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9295 (_fini): Likewise.
9296 * sysdeps/x86_64/crti.S (_init): Likewise.
9297 (_fini): Likewise.
9298
9299 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9300
9301 [BZ #23140]
9302 * localedata/locales/os_RU (mon): Rename to...
9303 (alt_mon): This.
9304 (mon): Import from CLDR (genitive case).
9305
9306 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9307
9308 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9309 cet-tunables.h> when CET is enabled.
9310
9311 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9312
9313 [BZ #21598]
9314 * configure.ac: Add --enable-cet.
9315 * configure: Regenerated.
9316 * elf/Makefille (all-built-dso): Add a comment.
9317 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9318 Include <dl-prop.h>.
9319 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9320 segment.
9321 * elf/dl-open.c: Include <dl-prop.h>.
9322 (dl_open_worker): Call _dl_open_check.
9323 * elf/rtld.c: Include <dl-prop.h>.
9324 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9325 _rtld_main_check.
9326 * sysdeps/generic/dl-prop.h: New file.
9327 * sysdeps/i386/dl-cet.c: Likewise.
9328 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9329 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9330 * sysdeps/x86/cet-tunables.h: Likewise.
9331 * sysdeps/x86/check-cet.awk: Likewise.
9332 * sysdeps/x86/configure: Likewise.
9333 * sysdeps/x86/configure.ac: Likewise.
9334 * sysdeps/x86/dl-cet.c: Likewise.
9335 * sysdeps/x86/dl-procruntime.c: Likewise.
9336 * sysdeps/x86/dl-prop.h: Likewise.
9337 * sysdeps/x86/libc-start.h: Likewise.
9338 * sysdeps/x86/link_map.h: Likewise.
9339 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9340 _CET_ENDBR.
9341 (_dl_runtime_profile): Likewise.
9342 (_dl_runtime_resolve_shstk): New.
9343 (_dl_runtime_profile_shstk): Likewise.
9344 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9345 if CET is enabled.
9346 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9347 (CFLAGS-.os): Likewise.
9348 (CFLAGS-.op): Likewise.
9349 (CFLAGS-.oS): Likewise.
9350 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9351 is enabled.
9352 (tests-special): Add $(objpfx)check-cet.out.
9353 (cet-built-dso): New.
9354 (+$(cet-built-dso:=.note)): Likewise.
9355 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9356 ($(objpfx)check-cet.out): New.
9357 (generated): Add check-cet.out.
9358 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9359 <cet-tunables.h>.
9360 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9361 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9362 (init_cpu_features): Call get_cet_status to check CET status
9363 and update dl_x86_feature_1 with CET status. Call
9364 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9365 (set_x86_shstk). Disable and lock CET in libc.a.
9366 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9367 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9368 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9369 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9370 (_CET_ENDBR): Define if not defined.
9371 (ENTRY): Add _CET_ENDBR.
9372 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9373 x86_shstk.
9374 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9375 _CET_ENDBR.
9376 (_dl_runtime_profile): Likewise.
9377
9378 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9379
9380 [BZ #21895]
9381 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9382 restore r2 on longjmp.
9383 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9384 test list.
9385 Added rules to build test tst-setjmp-bug21895-static.
9386 Added module setjmp-bug21895 and rules to build a shared object from it.
9387 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9388 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9389
9390 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9391
9392 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9393 * benchtests/bench-strstr.c: Likewise.
9394 * string/memmem.c (FASTSEARCH): Define.
9395 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9396 Add support for FASTSEARCH.
9397 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9398 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9399 (FASTSEARCH): Define.
9400 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9401 * string/test-strstr.c: Likewise.
9402
9403 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9404
9405 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9406 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9407
9408 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9409 H.J. Lu <hongjiu.lu@intel.com>
9410
9411 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9412 (__longjmp): Restore shadow stack pointer if shadow stack is
9413 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9414 isn't defined for __longjmp_cancel.
9415 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9416 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9417 and SHADOW_STACK_POINTER_OFFSET is defined.
9418 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9419 (setjmp): Save shadow stack pointer if shadow stack is enabled
9420 and SHADOW_STACK_POINTER_OFFSET is defined.
9421 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9422 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9423 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9424 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9425 <jmp_buf-ssp.h>.
9426 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9427 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9428 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9429 Remove jmp_buf-ssp.sym.
9430 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9431 <jmp_buf-ssp.h>.
9432 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9433 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9434 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9435 jmp_buf-ssp.sym.
9436 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9437 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9438 (__longjmp): Restore shadow stack pointer if shadow stack is
9439 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9440 isn't defined for __longjmp_cancel.
9441 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9442 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9443 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9444
9445 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9446
9447 [BZ #22563]
9448 * nptl/pthread_create.c: Include <tls-setup.h>.
9449 (__pthread_create_2_1): Call tls_setup_tcbhead.
9450 * sysdeps/generic/tls-setup.h: New file.
9451 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9452 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9453 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9454 Likewise.
9455 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9456 to feature_1.
9457 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9458 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9459 (X86_FEATURE_1_SHSTK): Likewise.
9460 (CET_ENABLED): Likewise.
9461 (IBT_ENABLED): Likewise.
9462 (SHSTK_ENABLED): Likewise.
9463
9464 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9465
9466 [BZ #23208]
9467 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9468 (LOCALES): Likewise.
9469 * localedata/dsb_DE.UTF-8.in: New file.
9470 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9471
9472 2018-07-12 Florian Weimer <fweimer@redhat.com>
9473
9474 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9475 __mprotect, not mprotect.
9476
9477 2018-07-11 Florian Weimer <fweimer@redhat.com>
9478
9479 * io/Makefile (headers): Add bits/statx.h.
9480
9481 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9482
9483 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9484 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9485 and headers.
9486 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9487 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9488 for utf8_gen.py
9489
9490 2018-07-10 Florian Weimer <fweimer@redhat.com>
9491
9492 * io/Makefile (routines): Add statx.
9493 (tests-internal): Add tst-statx.
9494 * io/Versions (GLIBC_2.28): Export statx.
9495 * io/bits/statx.h: New file.
9496 * io/sys/stat.h [__USE_GNU]: Include it.
9497 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9498 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9499 Define.
9500 * io/statx.c: New file.
9501 * io/statx_generic.: Likewise.
9502 * io/tst-statx.: Likewise.
9503 * include/bits/statx.h: Likewise.
9504 * sysdeps/unix/sysv/linux/kernel-features.h
9505 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9506 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9507 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9508 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9509 Undefine.
9510 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9511 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9512 * sysdeps/unix/sysv/linux/statx.c: New file.
9513 * manual/filesys.texi: Note that statx is undocumented.
9514 * sysdeps/**/libc*.abilist: Update.
9515
9516 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9517
9518 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9519 a kernel issue which lead to test failure in some cases.
9520
9521 2018-07-10 Florian Weimer <fweimer@redhat.com>
9522
9523 [BZ #23036]
9524 * posix/regexec.c (check_node_accept_bytes): When comparing
9525 weights, do not compare an extra byte after the end of the
9526 weights.
9527
9528 2018-07-10 Florian Weimer <fweimer@redhat.com>
9529
9530 * libio/readline.c: Fix copyright year.
9531 * libio/tst-readline.c Likewise.
9532 * nss/tst-nss-files-hosts-getent.c: Likewise.
9533
9534 2018-07-06 Florian Weimer <fweimer@redhat.com>
9535
9536 [BZ #18991]
9537 * nss/nss_files/files-XXX.c (internal_getent): Use
9538 __libc_readline_unlocked. Seek back to the start of the line if
9539 parsing failes with ERANGE.
9540 (get_contents_ret, get_contents): Remove.
9541 * nss/tst-nss-files-hosts-getent.c: New file.
9542 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9543 (tst-nss-files-hosts-getent): Link with -ldl.
9544
9545 2018-07-06 Florian Weimer <fweimer@redhat.com>
9546
9547 * include/stdio.h (__libc_readline_unlocked): Declare.
9548 (__ftello64, __fseeko64): Declare aliases.
9549 * libio/readline.c: New file.
9550 * libio/tst-readline.c: Likewise.
9551 (routines): Add readline.
9552 (tests-internal): Add tst-readlime.
9553 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9554 __libc_readline_unlocked.
9555 * libio/fseeko.c (__fseeko): Rename from fseeko.
9556 (fseeko): Add alias.
9557 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9558 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9559 (fseeko64): Add alias.
9560 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9561 * libio/ftello64.c (__ftello64): Rename from ftello64.
9562 (ftello64): Add alias.
9563
9564 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9565
9566 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9567 HWCAP_ATOMICS.
9568
9569 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9570
9571 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9572 Use dl_hwcap without masking.
9573 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9574 Remove HWCAP_CPUID.
9575
9576 2018-07-06 Florian Weimer <fweimer@redhat.com>
9577
9578 * conform/conformtest.pl (checknamespace): Escape literal braces
9579 in regular expressions.
9580
9581 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9582
9583 * sysdeps/x86/cpu-features.c (get_common_indeces):
9584 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9585 * sysdeps/x86/cpu-features.c (init_cpu_features):
9586 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9587
9588 2018-07-05 Florian Weimer <fweimer@redhat.com>
9589
9590 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9591 protector.
9592 (CFLAGS-elf-init.oS): Likewise.
9593
9594 2018-07-05 Florian Weimer <fweimer@redhat.com>
9595 Carlos O'Donell <carlos@redhat.com>
9596
9597 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9598 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9599 with stack protector enabled because there is no risk of infinite
9600 recursion.
9601
9602 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9603
9604 [BZ #19818]
9605 [BZ #23307]
9606 * libc-abis (ABSOLUTE): New ABI.
9607 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9608 * NEWS: Mention the new ABI.
9609
9610 2018-07-05 Florian Weimer <fweimer@redhat.com>
9611
9612 [BZ # 17662]
9613 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9614 (RENAME_WHITEOUT): Define.
9615 [__USE_GNU] (renameat2): Declare.
9616 * stdio-common/Makefile (routines): Add renameat2.
9617 (tests): Add tst-renameat2.
9618 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9619 * stdio-common/renameat2.c: New file.
9620 * stdio-common/tst-renameat2.c: Likewise.
9621 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9622 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9623 undocumented.
9624 * sysdeps/unix/sysv/linux/kernel-features.h
9625 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9626 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9627 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9628 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9629 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9630 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9631 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9632 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9633 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9634 * include/stdio.h (__renameat): Add alias for renameat.
9635 * stdio-common/renameat.c (__renameat): Rename from renameat.
9636 Add hidden definition and alias.
9637 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9638 * sysdeps/mach/hurd/renameat.c: Likewise.
9639 * sysdeps/**/libc*.abilist: Add renameat2.
9640
9641 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9642
9643 * posix/bug-regex33.c: Fix build after regex sync.
9644
9645 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9646
9647 [BZ #23164]
9648 * localedata/tst-langinfo-setlocale.c: New file.
9649 * localedata/tst-langinfo-setlocale-static.c: New file.
9650 * localedata/tst-langinfo-newlocale.c: New file.
9651 * localedata/tst-langinfo-newlocale-static.c: New file.
9652 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9653 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9654 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9655 (tests-static): Remove tst-langinfo-static. Add
9656 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9657 (tests-special): Remove $(objpfx)tst-langinfo.out,
9658 $(objpfx)tst-langinfo-static.out. Add
9659 $(objpfx)tst-langinfo-setlocale.out,
9660 $(objpfx)tst-langinfo-newlocale.out,
9661 $(objpfx)tst-langinfo-setlocale-static.out,
9662 $(objpfx)tst-langinfo-newlocale-static.out.
9663 ($(objpfx)tst-langinfo.out): Remove.
9664 ($(objpfx)tst-langinfo-static.out): Remove.
9665 ($(objpfx)tst-langinfo-newlocale.out): New target.
9666 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9667 (test-xfail-tst-langinfo-newlocale-static): Add.
9668 ($(objpfx)tst-langinfo-setlocale.out): New target.
9669 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9670 * localedata/tst-langinfo.c: Call test_locale.
9671 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9672 data.
9673
9674 2018-07-04 Florian Weimer <fweimer@redhat.com>
9675
9676 testrun.sh: Implement --tool=strace, --tool=valgrind
9677 * Makefile (testrun-script): Define variable.
9678 (testrun.sh): Use variable.
9679 * manual/install.texi (Tools for Compilation): make 4.0 or later
9680 is required.
9681 * configure.ac: Check for make 4.0 or later.
9682 * INSTALL: Regenerate.
9683 * configure: Likewise.
9684
9685 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9686
9687 [BZ #23233]
9688 [BZ #21163]
9689 [BZ #18986]
9690 [BZ #13762]
9691 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9692 * posix/PCRE.tests: Remove invalid test.
9693 * posix/bug-regex28.c: Fix expected values for used syntax.
9694 * posix/bug-regex37.c: New file.
9695 * posix/bug-regex38.c: Likewise.
9696 * posix/regcomp.c: Sync with gnulib.
9697 * posix/regex.c: Likewise.
9698 * posix/regex.h: Likewise.
9699 * posix/regex_internal.c: Likewise.
9700 * posix/regex_internal.h: Likewise.
9701 * posix/regexec.c: Likewise.
9702
9703 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9704
9705 [BZ #23308]
9706 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9707 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9708 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9709 * localedata/unicode-gen/PropList.txt: likewise.
9710 * localedata/unicode-gen/UnicodeData.txt: likewise.
9711 * localedata/charmaps/UTF-8: Regenerate.
9712 * localedata/locales/i18n_ctype: likewise.
9713 * localedata/locales/tr_TR: likewise.
9714 * localedata/locales/translit_circle: likewise.
9715 * localedata/locales/translit_cjk_compat: likewise.
9716 * localedata/locales/translit_combining: likewise.
9717 * localedata/locales/translit_compat: likewise.
9718 * localedata/locales/translit_font: likewise.
9719 * localedata/locales/translit_fraction: likewise.
9720
9721 2018-07-03 Florian Weimer <fweimer@redhat.com>
9722
9723 [BZ #23363]
9724 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9725 * stdio-common/tst-printf.sh: Adjust expected output.
9726 * LICENSES: Update.
9727
9728 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9729
9730 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9731 symbol.
9732
9733 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9734
9735 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9736 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9737 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9738 * stdio-common/tst-printfsz-islongdouble.c: New file.
9739 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9740 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9741 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9742 [subdir == stdio-common] (tests-internal): Add
9743 test-printf-size-ieee128, and test-printf-size-ibm128.
9744 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9745 (CFLAGS-test-printf-size-ibm128.c): New variables.
9746 [subdir == stdio-common] (tests-special): Add
9747 $(objpfx)test-printf-size-ieee128.out and
9748 $(objpfx)test-printf-size-ibm128.out.
9749 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9750 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9751 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9752 __printf_sizeieee128.
9753 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9754 New file.
9755 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9756 Likewise.
9757 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9758 Likewise.
9759
9760 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9761
9762 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9763 (exp2f_inline): Likewise.
9764 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9765 (__math_uflowf): Likewise.
9766 (__math_may_uflowf): Likewise.
9767 (__math_divzerof): Likewise.
9768 (__math_invalidf): Likewise.
9769 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9770 (__math_oflowf): Likewise.
9771 (__math_uflowf): Likewise.
9772 (__math_may_uflowf): Likewise.
9773 (__math_divzerof): Likewise.
9774 (__math_invalidf): Likewise.
9775
9776 2018-06-29 DJ Delorie <dj@redhat.com>
9777 Carlos O'Donell <carlos@redhat.com>
9778
9779 [BZ #23329]
9780 * include/libc-symbols.h: Comment the freeres framework.
9781 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9782 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9783 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9784 * dlfcn/dlerror.c: Include libc-symbols.h
9785 (__dlerror_main_freeres): New function.
9786 * dlfcn/dlfreeres.c: New file.
9787 * dlfcn/sdlfreeres.c: New file.
9788 * include/dlfcn.h: Declare __dlerror_main_freeres.
9789 * malloc/set-freeres.c: Declare __libdl_freeres, and
9790 __libpthread_freeres.
9791 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9792 the releavant libraries are loaded.
9793 * malloc/thread-freeres.c: Add comments.
9794 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9795 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9796 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9797 (__free_stacks): Rename to...
9798 (free_stacks): ...this. Mark static.
9799 (queue_stack): Call free_stacks.
9800 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9801 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9802 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9803 ptr_freeres element from struct.
9804 (pthread_functions): Remove .ptr_freeres from struct initializer.
9805 [SHARED] (nptl_freeres): Remove.
9806 * nptl/nptlfreeres.c: New file.
9807 * nptl/pthreadP.h
9808 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9809 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9810 attribute_hidden.
9811 (__free_stacks): Rename to...
9812 (__nptl_stacks_freeres): ...this.
9813 (__shm_directory_freeres): Declare.
9814 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9815 (__nptl_unwind_freeres): ...this.
9816 * resolv/res-close.c: Add comment.
9817 * resolv/resolv_conf.c: Include libc-symbols.h.
9818 * string/strerror_l.c: Include libc-symbols.h.
9819 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9820 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9821 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9822 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9823
9824 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9825
9826 * stdlib/tst-strfmon_l.c: Add tests for long double.
9827
9828 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9829
9830 [BZ #23208]
9831 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9832 * localedata/locales/dsb_DE: New file.
9833
9834 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9835
9836 [BZ #23140]
9837 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9838 genitive case).
9839 (alt_mon): New entry, import from CLDR (nominative case).
9840
9841 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9842
9843 [BZ #22996]
9844 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9845
9846 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9847
9848 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9849 Use vector registers.
9850
9851 * sysdeps/aarch64/multiarch/memmove_falkor.S
9852 (__memcpy_falkor): Use vector registers.
9853
9854 2018-06-29 Martin Sebor <msebor@redhat.com>
9855
9856 * manual/stdio.texi (Customizing Printf): Mention interaction
9857 with GCC built-ins.
9858
9859 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9860
9861 [BZ #23307]
9862 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9863 `st_value' is 0 if `st_shndx' is SHN_ABS.
9864 * elf/tst-absolute-zero.c: New file.
9865 * elf/tst-absolute-zero-lib.c: New file.
9866 * elf/tst-absolute-zero-lib.lds: New file.
9867 * elf/Makefile (tests): Add `tst-absolute-zero'.
9868 (modules-names): Add `tst-absolute-zero-lib'.
9869 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9870 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9871 ($(objpfx)tst-absolute-zero: New dependency.
9872
9873 2018-06-29 Zack Weinberg <zackw@panix.com>
9874
9875 * configure.ac: New command-line option --disable-crypt.
9876 Force --disable-nss-crypt when --disable-crypt is given, with a
9877 warning if it was explicitly enabled.
9878 * configure: Regenerate.
9879 * config.make.in: New boolean substitution variable $(build-crypt).
9880 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9881 when $(build-crypt).
9882 * manual/install.texi: Document --disable-crypt.
9883 * INSTALL: Regenerate.
9884
9885 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9886 which is never set.
9887 * conform/Makefile: Only include libcrypt.a in
9888 linknamespace-libs-xsi and linknamespace-libs-XPG4
9889 when $(build-crypt).
9890 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9891 USE_CRYPT to 1 when $(build-crypt).
9892 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9893 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9894 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9895
9896 2018-06-29 Zack Weinberg <zackw@panix.com>
9897
9898 * crypt/crypt.h, posix/unistd.h: Update comments and
9899 prototypes for crypt and crypt_r.
9900
9901 * manual/crypt.texi (Cryptographic Functions): New initial
9902 exposition.
9903 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9904 (Unpredictable Bytes): Improve initial exposition. Clarify error
9905 behavior of getentropy and getrandom.
9906 * manual/examples/genpass.c: Generate a salt using getentropy
9907 instead of the current time. Use hash $5$ (SHA-2-256).
9908 * manual/examples/testpass.c: Demonstrate validation against
9909 hashes generated with three different one-way functions.
9910
9911 * manual/intro.texi: crypt.texi does not need an overview
9912 anymore.
9913
9914 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9915 * manual/terminal.texi: Consistently refer to "passphrases"
9916 * instead of "passwords", and to the "user database" instead
9917 * of the "password database".
9918 * manual/users.texi: Similarly. Add notes about how actual
9919 passphrase hashes are now stored in the shadow database.
9920 Remove 20-year-old junk todo note.
9921
9922 2018-06-29 Zack Weinberg <zackw@panix.com>
9923
9924 * manual/crypt.texi: Use a normal top-level @node declaration.
9925 Move most of the introductory text to the 'crypt' section.
9926 Move the example programs below the @deftypefun for 'crypt_r'.
9927 Move the 'getpass' section...
9928 * manual/terminal.texi: ...here.
9929
9930 2018-06-29 Zack Weinberg <zackw@panix.com>
9931 Florian Weimer <fweimer@redhat.com>
9932
9933 * posix/unistd.h: Do not declare encrypt.
9934 (_XOPEN_CRYPT): Remove macro definition.
9935 (crypt): Declare only for _USE_MISC.
9936 * stdlib/stdlib.h: Do not declare setkey.
9937 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9938 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9939
9940 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9941 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9942 into compat symbols. Don't define initial_perm if it's not
9943 going to be used.
9944 * crypt/cert.c: Link explicitly with the expected versions for
9945 setkey and encrypt. If they are not available at all, mark
9946 the test as unsupported.
9947
9948 * sunrpc/des_crypt.c: Unconditionally block linkage with
9949 cbc_crypt and ecb_crypt for new binaries.
9950 * sunrpc/des_soft.c: Unconditionally block linkage with
9951 des_setparity for new binaries.
9952
9953 * manual/crypt.texi: Remove the entire "DES Encryption"
9954 section. Also remove the paragraph talking about FIPS 140-2
9955 from the introduction.
9956 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9957 of libgcrypt for "real" encryption, not DES.
9958 * manual/conf.texi (Constants for Sysconf): Mention that
9959 _XOPEN_CRYPT is no longer impelemented.
9960
9961 * conform/data/unistd.h-data: Remove crypt function declaration.
9962
9963 2018-06-29 Florian Weimer <fweimer@redhat.com>
9964
9965 [BZ #23351]
9966 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9967 (disallow_malloc_check): Remove variable.
9968 (__malloc_check_init): Adjust.
9969 (malloc_set_state): Update comment.
9970 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9971 declarations.
9972
9973 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9974
9975 [BZ #23140]
9976 * localedata/locales/ast_ES (mon): Rename to...
9977 (alt_mon): This.
9978 (mon): Import from CLDR (genitive case).
9979
9980 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9981 Jakub Sitnicki <jkbs@redhat.com>
9982
9983 [BZ #21812]
9984 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9985 on NLM_F_DUMP_INTR.
9986
9987 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9988
9989 * manual/llio.texi: Remove spurious space.
9990
9991 2018-06-28 Florian Weimer <fweimer@redhat.com>
9992
9993 [BZ #23349]
9994 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9995 _STRUCT_TIMESPEC.
9996
9997 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9998
9999 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10000 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10001 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10002 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10003 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10004 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10005 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10006
10007 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10008
10009 [BZ #23266]
10010 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10011 Copy and null-terminate entries that are not terminated, in
10012 addition to empty ones.
10013
10014 2018-06-27 Florian Weimer <fweimer@redhat.com>
10015
10016 [BZ #18023]
10017 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10018 (extend_alloca_account): Remove.
10019 * manual/stdio.texi (Variable Arguments Output): Update comment.
10020
10021 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10022
10023 * nptl/sockperf.c: Remove file.
10024
10025 2018-06-27 Florian Weimer <fweimer@redhat.com>
10026
10027 [BZ #18023]
10028 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10029 scratch_buffer instead of extend_alloca.
10030
10031 2018-06-27 Florian Weimer <fweimer@redhat.com>
10032
10033 [BZ #18023]
10034 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10035 scratch_buffer instead of extend_alloca. Update comments.
10036
10037 2018-06-27 Florian Weimer <fweimer@redhat.com>
10038
10039 [BZ #18023]
10040 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10041 instead of extend_alloca.
10042
10043 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10044
10045 [BZ #13888]
10046 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10047 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10048 /tmp.
10049 * scripts/test-installation.pl: Put temporary files in build
10050 directory, not /tmp.
10051 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10052 (CFLAGS-bug4.c): Likewise.
10053 (CFLAGS-bug5.c): Likewise.
10054 (CFLAGS-test-fseek.c): Likewise.
10055 (CFLAGS-test-popen.c): Likewise.
10056 (CFLAGS-test_rdwr.c): Likewise.
10057 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10058 /tmp.
10059 * stdio-common/bug4.c (main): Likewise.
10060 * stdio-common/bug5.c (main): Likewise.
10061 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10062 * stdio-common/test-popen.c (do_test): Likewise.
10063 * stdio-common/test_rdwr.c (main): Likewise.
10064
10065 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10066
10067 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10068 (sem_open): Set sem.newsem.pad to zero for valgrind.
10069
10070 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10071
10072 [BZ #20251]
10073 * NEWS: Mention fcntl64 addition.
10074 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10075 * login/utmp_file.c: Likewise.
10076 * sysdeps/posix/fdopendir.c: Likewise.
10077 * sysdeps/posix/opendir.c: Likewise.
10078 * sysdeps/unix/pt-fcntl.c: Likewise.
10079 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10080 __fcntl64_nocancel_adjusted): New prototype.
10081 (__fcntl_nocancel_adjusted): Remove prototype.
10082 * io/Makefile (routines): Add fcntl64.
10083 (CFLAGS-fcntl64.c): New rule.
10084 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10085 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10086 * io/fcntl.h (fcntl64): Add prototype and redirect if
10087 __USE_FILE_OFFSET64 is defined.
10088 * io/fcntl64.c: New file.
10089 * manual/llio.text: Add a note for which commands fcntl acts a
10090 cancellation point.
10091 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10092 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10093 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10094 New symbols.
10095 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10096 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10097 non-LFS case.
10098 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10099 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10100 to __fcntl64_nocancel.
10101 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10102 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10103 to __fcntl64_nocancel.
10104 * sysdeps/generic/not-cancel.h: Likewise.
10105 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10106 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10107 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10108 (fcntl64): New symbol.
10109 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10110 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10111 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10114 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10115 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10116 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10117 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10118 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10119 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10120 fcntl64): Likewise.
10121 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10122 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10123 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10124 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10125 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10126 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10127 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10128 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10129 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10131 Likewise.
10132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10133 Likewise.
10134 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10135 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10137
10138 2018-06-26 Florian Weimer <fweimer@redhat.com>
10139
10140 Run thread shutdown functions in an explicit order.
10141 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10142 definition.
10143 (__libc_thread_freeres): Call thread shutdown functions
10144 explicitly.
10145 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10146 * include/string.h (__strerror_thread_freeres): Declare.
10147 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10148 arena_thread_freeres. No longer static. Remove thread shutdown
10149 hook registration.
10150 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10151 Declare.
10152 * resolv/res-close.c (__res_thread_freeres): Renamed from
10153 res_thread_freeres. No longer static. Remove thread shutdown
10154 hook registration.
10155 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10156 * resolv/resolv_conf.c (freeres): Remove incorrect section
10157 attribute and use libc_freeres_fn.
10158 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10159 strerror_thread_freeres. No longer static. Remove thread
10160 shutdown hook registration.
10161 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10162 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10163 shutdown hook registration.
10164 * Makerules (shlib.lds): Do not provide section boundary symbols
10165 for __libc_thread_subfreeres.
10166 * manual/memory.texi (Basic Allocation): Update comment.
10167
10168 2018-06-26 Florian Weimer <fweimer@redhat.com>
10169
10170 Remove always-defined _RPC_THREAD_SAFE_ macro.
10171 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10172 Do not define _RPC_THREAD_SAFE_.
10173 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10174 conditional.
10175 * sunrpc/clnt_perr.c: Likewise.
10176 * sunrpc/clnt_raw.c: Likewise.
10177 * sunrpc/clnt_simp.c: Likewise.
10178 * sunrpc/key_call.c: Likewise.
10179 * sunrpc/rpc_common.c: Likewise.
10180 * sunrpc/rpc_main.c: Likewise.
10181 * sunrpc/rpc_thread.c: Likewise.
10182 * sunrpc/svc.c: Likewise.
10183 * sunrpc/svc_raw.c: Likewise.
10184 * sunrpc/svc_simple.c: Likewise.
10185 * sumrpc/svcauth_des.c: Likewise.
10186
10187 2018-06-26 Florian Weimer <fweimer@redhat.com>
10188
10189 * libio/Makefile (tests-internal): Add tst-vtables,
10190 tst-vtables-interposed.
10191 * libio/tst-vtables.c: New file.
10192 * libio/tst-vtables-common.c: Likewise.
10193 * libio/tst-vtables-interposed.c: Likewise.
10194
10195 2018-06-26 Florian Weimer <fweimer@redhat.com>
10196
10197 * support/support_test_main.c (support_test_main): Only call
10198 setvbuf if not disables.
10199 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10200 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10201
10202 2018-06-26 Florian Weimer <fweimer@redhat.com>
10203
10204 [BZ #23313]
10205 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10206
10207 2018-06-25 Florian Weimer <fweimer@redhat.com>
10208
10209 [BZ #18023]
10210 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10211 Use struct scratch_buffer instead of extend_alloca.
10212
10213 2018-06-25 Florian Weimer <fweimer@redhat.com>
10214
10215 [BZ #18023]
10216 * nss/getent.c (initgroups_keys): Use dynarray instead of
10217 extend_alloca.
10218
10219 2018-06-25 Florian Weimer <fweimer@redhat.com>
10220
10221 [BZ #18023]
10222 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10223 Use struct scratch_buffer instead of extend_alloca.
10224
10225 2018-06-25 Florian Weimer <fweimer@redhat.com>
10226
10227 [BZ #18023]
10228 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10229 back to malloc directly, without stack allocations.
10230
10231 2018-06-25 Florian Weimer <fweimer@redhat.com>
10232
10233 [BZ #18023]
10234 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10235 of extend_alloca.
10236
10237 2018-06-25 Florian Weimer <fweimer@redhat.com>
10238
10239 [BZ #18023]
10240 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10241 of extend_alloca.
10242 * nscd/hstcache.c (addhstbyX): Likewise.
10243 * nscd/pwdcache.c (addpwbyX): Likewise.
10244 * nscd/servicescache.c (addservbyX): Likewise.
10245
10246 2018-06-25 Florian Weimer <fweimer@redhat.com>
10247
10248 [BZ #18023]
10249 * nscd/connections.c (read_cmdline): New function.
10250 (restart): Use it. Update comment.
10251
10252 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10253
10254 [BZ #23140]
10255 * localedata/locales/csb_PL (mon): Rename to...
10256 (alt_mon): This.
10257 (abmon): Rename to...
10258 (ab_alt_mon): This.
10259 (mon): Add with proper genitive forms, copy from Wikipedia.
10260 (abmon): Likewise.
10261
10262 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10263
10264 [BZ #19485]
10265 * localedata/locales/csb_PL (mon): Fix typos:
10266 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10267 (yesstr): Add, value is "jo".
10268 (nostr): Add, value is "nié".
10269
10270 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10271
10272 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10273 all log1p and significand functions on m680x0.
10274 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10275 of s_significand.c..
10276 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10277 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10278 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10279 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10280 s_log1p.c and include it..
10281
10282 2018-06-21 Vincent Chen <vincentc@andestech.com>
10283
10284 * elf/elf.h (R_NDS32_NONE): New define.
10285 (R_NDS32_32_RELA): Likewise.
10286 (R_NDS32_COPY): Likewise.
10287 (R_NDS32_GLOB_DAT): Likewise.
10288 (R_NDS32_JUMP_SLOT): Likewise.
10289 (R_NDS32_RELATIVE): Likewise.
10290 (R_NDS32_TLS_TPOFF): Likewise.
10291 (R_NDS32_TLS_DESC): Likewise.
10292
10293 2018-06-21 Mark Wielaard <mark@klomp.org>
10294
10295 * elf/elf.h (R_BPF_MAP_FD): Removed.
10296 (R_BPF_64_64, R_BPF_64_32): New.
10297
10298 2018-06-21 Florian Weimer <fweimer@redhat.com>
10299
10300 [BZ #23253]
10301 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10302 Renamed from libc_feholdsetround_ctx.
10303 (default_libc_feresetround_ctx): Renamed from
10304 libc_feresetround_ctx.
10305 (default_libc_feholdsetround_noex_ctx): Renamed from
10306 libc_feholdsetround_noex_ctx.
10307 (default_libc_feresetround_noex_ctx): Renamed from
10308 libc_feresetround_noex_ctx.
10309 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10310 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10311 forwardning to the old implementations under the new names.
10312 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10313 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10314 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10315 (libc_feresetround_ctx): Forward to default implements for i386
10316 and MATH_SET_BOTH_ROUNDING_MODES.
10317 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10318 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10319
10320 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10321
10322 * string/tst-cmp.c: Include <libc-diag.h>.
10323 (strncmp_max): Disable -Wstringop-overflow= around call to
10324 strncmp.
10325 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10326 strncasecmp.
10327
10328 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10329 (main): Disable -Wunused-value around call to strpbrk.
10330 * string/bug-strspn1.c: Include <libc-diag.h>.
10331 (main): Disable -Wunused-value around call to strspn.
10332
10333 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10334 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10335
10336 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10337 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10338
10339 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10340
10341 * math/Makefile (libm-calls): Move s_significandF to...
10342 (gen-libm-calls): ... here.
10343 * math/s_significand_template.c: New file.
10344 * math/s_significand.c: Removed.
10345 * math/s_significandf.c: Removed.
10346 * math/s_significandl.c: Removed.
10347 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10348 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10349
10350 * math/e_exp2_template.c (declare_mgen_finite_alias,
10351 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10352 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10353 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10354
10355 2018-06-20 Florian Weimer <fweimer@redhat.com>
10356
10357 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10358
10359 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10360
10361 [BZ #23280]
10362 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10363 floating-point number to strtod functions rather than possibly
10364 negating result of those functions.
10365 * stdio-common/tst-scanf-round.c: New file.
10366 * stdio-common/Makefile (tests): Add tst-scanf-round.
10367 ($(objpfx)tst-scanf-round): Depend on $(libm).
10368
10369 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10370
10371 * sysdeps/mach/hurd/localplt.data: Move to...
10372 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10373 R_386_GLOB_DAT like on Linux i386.
10374
10375 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10376
10377 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10378 (SHM_STAT_ANY): New macro.
10379 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10380 (SHM_STAT_ANY): Likewise.
10381 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10382 (SHM_STAT_ANY): Likewise.
10383 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10384 (SHM_STAT_ANY): Likewise.
10385 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10386 (SHM_STAT_ANY): Likewise.
10387 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10388 (SHM_STAT_ANY): Likewise.
10389 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10390 (SHM_STAT_ANY): Likewise.
10391 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10392 (SHM_STAT_ANY): Likewise.
10393 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10394 (SHM_STAT_ANY): Likewise.
10395 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10396 (SHM_STAT_ANY): Likewise.
10397 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10398 (SHM_STAT_ANY): Likewise.
10399 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10400 (SHM_STAT_ANY): Likewise.
10401
10402 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10403 (SEM_STAT_ANY): New macro.
10404 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10405 (SEM_STAT_ANY): Likewise.
10406 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10407 (SEM_STAT_ANY): Likewise.
10408 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10409 (SEM_STAT_ANY): Likewise.
10410 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10411 (SEM_STAT_ANY): Likewise.
10412 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10413 (SEM_STAT_ANY): Likewise.
10414 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10415 (SEM_STAT_ANY): Likewise.
10416 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10417 (SEM_STAT_ANY): Likewise.
10418 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10419 (SEM_STAT_ANY): Likewise.
10420 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10421 (SEM_STAT_ANY): Likewise.
10422
10423 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10424 (MSG_STAT_ANY): New macro.
10425 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10426 (MSG_STAT_ANY): Likewise.
10427 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10428 (MSG_STAT_ANY): Likewise.
10429 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10430 (MSG_STAT_ANY): Likewise.
10431 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10432 (MSG_STAT_ANY): Likewise.
10433 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10434 (MSG_STAT_ANY): Likewise.
10435 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10436 (MSG_STAT_ANY): Likewise.
10437 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10438 (MSG_STAT_ANY): Likewise.
10439 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10440 (MSG_STAT_ANY): Likewise.
10441 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10442 (MSG_STAT_ANY): Likewise.
10443
10444 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10445 (MAP_TYPE): Change value to 0x2b.
10446
10447 2018-06-18 Florian Weimer <fweimer@redhat.com>
10448
10449 [BZ #15722]
10450 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10451 socket with SOCK_CLOEXEC.
10452
10453 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10454
10455 [BZ #23303]
10456 * sysdeps/powerpc/powerpc64/le/Makefile
10457 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10458 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10459 (gnulib-tests): Also add $(f128-loader-link) for
10460 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10461
10462 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10463
10464 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10465 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10466 of sendfile.
10467 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10468 (sendfile64): New strong alias.
10469 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10470 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10471 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10472 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10473 attribute.
10474 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10475 ___pthread_get_cleanup_stack.
10476 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10477 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10478 * mach/shortcut.awk: Make syscall stubs include
10479 <mach-shortcuts-hidden.h> and add hidden definition.
10480 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10481 (__mach_msg): Add hidden prototype.
10482 * mach/msg.c: Include <mach.h>.
10483 (__mach_msg): Add hidden definition.
10484 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10485 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10486 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10487 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10488 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10489 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10490 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10491 prototype and definition.
10492 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10493 hidden target for _hurd_self_sigstate.
10494
10495 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10496
10497 [BZ #23007]
10498 * stdlib/tst-strtod-nan-sign-main.c: New file.
10499 * stdlib/tst-strtod-nan-sign.c: Likewise.
10500 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10501 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10502 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10503 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10504 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10505
10506 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10507
10508 [BZ #23007]
10509 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10510 appropriate sign.
10511
10512 2018-06-14 Florian Weimer <fweimer@redhat.com>
10513
10514 [BZ #23290]
10515 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10516 that the result stays within the ISO-8859-1 range.
10517 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10518 characters are defined in IBM273.
10519
10520 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10521
10522 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10523 __mach_task_self): Remove attribute_hidden.
10524
10525 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10526
10527 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10528 ignore -Wrestrict for one test.
10529
10530 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10531 Szabolcs Nagy <szabolcs.nagy@arm.com>
10532
10533 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10534
10535 2018-06-14 Florian Weimer <fweimer@redhat.com>
10536
10537 * scripts/update-abilist.sh: Accept empty list of files to patch.
10538
10539 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10540
10541 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10542 test-xfail-check-abi-libmachuser): Add.
10543 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10544 __libc_read and __libc_write to __read and __write.
10545 * sysdeps/hurd/include/hurd/port.h: New file.
10546 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10547 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10548 __thread_switch, __evc_wait): Move declarations to...
10549 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10550 attribute_hidden.
10551 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10552 use PLT to call _hurd_self_sigstate.
10553
10554 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10555
10556 [BZ #23279]
10557 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10558 MAX_EXP as overflowing.
10559 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10560 overflow flag.
10561 (round_str): Output also whether result overflows in each rounding
10562 mode.
10563 * stdlib/tst-strtod-round-data: Add more tests.
10564 * stdlib/tst-strtod-round-data.h: Regenerated.
10565 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10566 (TEST): Handle extra arguments for overflow flags.
10567 (struct test_overflow): New type.
10568 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10569 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10570 (test_in_one_mode): Take argument with overflow information.
10571 (do_test): Update calls to test_in_one_mode.
10572
10573 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10574
10575 * elf/dl-load (_dl_dst_substitute): Correct comment.
10576 (_dl_dst_count): Likewise.
10577
10578 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10579 lll_futex_timed_wait.
10580
10581 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10582
10583 [BZ #23277]
10584 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10585 attribute.
10586 * math/test-nan-const.c: New file.
10587 * math/Makefile (tests): Add test-nan-const.
10588 (CFLAGS-test-nan-const.c): New variable.
10589
10590 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10591
10592 * benchtests/scripts/compare_strings.py (process_results): Add
10593 funcs argument. Compare only functions which are selected.
10594 (main): Check if base function is among selected functions.
10595 Pass selected functions to process_results.
10596 (__main__): Add -f/--functions argument.
10597
10598 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10599 Hongbo Zhang <hongbo.zhang@linaro.org>
10600
10601 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10602 __memcpy_falkor for phecda core.
10603 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10604 __memmove_falkor for phecda core.
10605 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10606 __memset_falkor for phecda core.
10607 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10608 for phecda core.
10609 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10610 macro to identify phecda core.
10611
10612 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10613 Andreas Schwab <schwab@suse.de>
10614 Dmitry V. Levin <ldv@altlinux.org>
10615 Florian Weimer <fweimer@redhat.com>
10616
10617 [BZ #23102]
10618 [BZ #21942]
10619 [BZ #18018]
10620 [BZ #23259]
10621 CVE-2011-0536
10622 * elf/dl-dst.h: Remove DL_DST_COUNT.
10623 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10624 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10625 (is_dst): Comment. Support ELF gABI.
10626 (_dl_dst_count): Comment. Simplify and count DSTs.
10627 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10628 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10629 locals.
10630
10631 2018-06-12 Zack Weinberg <zackw@panix.com>
10632
10633 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10634 * sysdeps/unix/sysv/linux/dl-sysdep.c
10635 Include not-cancel.h. Use __close_nocancel instead of __close,
10636 __open64_nocancel instead of __open, __read_nocancel instead of
10637 __libc_read, and __write_nocancel instead of __libc_write.
10638
10639 * csu/check_fds.c (check_one_fd)
10640 * sysdeps/posix/fdopendir.c (__fdopendir)
10641 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10642 instead of __fcntl and/or __libc_fcntl.
10643
10644 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10645 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10646 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10647 Use __open64_nocancel instead of __open_nocancel.
10648
10649 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10650 hidden_proto declarations to the end and issue them if either
10651 IS_IN(libc) or IS_IN(rtld).
10652 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10653 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10654 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10655 read_nocancel, waitpid_nocancel, write_nocancel.
10656
10657 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10658 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10659 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10660
10661 * nptl/pt-fcntl.c: New file.
10662 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10663 (libpthread-routines): Add pt-fcntl.
10664 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10665 (__libc_fcntl): Remove attribute_hidden.
10666 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10667 __fcntl_nocancel_adjusted, not fcntl_common.
10668 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10669 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10670 to fcntl_nocancel.c.
10671 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10674 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10675
10676 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10677 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10678 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10679 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10680 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10681 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10682 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10683 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10684 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10685 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10686 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10687 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10688 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10689 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10690 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10691 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10692 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10693 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10694 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10695 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10696
10697 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10698 libpthread-routines.
10699 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10700 defines nothing.
10701
10702 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10703 __libc_read, and __write instead of __libc_write. Define
10704 __open64 in addition to __open.
10705
10706 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10707
10708 [BZ #23250]
10709 [BZ #10686]
10710 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10711 to _private_tm[3] and add __glibc_reserved2.
10712 Add _Static_assert of offset of __private_ss == 0x30.
10713 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10714 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10715
10716 2018-06-12 Florian Weimer <fweimer@redhat.com>
10717
10718 x86: Make strncmp usable from rtld.
10719 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10720 __strncmp_ia32 if in libc (and not in rtld).
10721 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10722 strncmp if not in libc (and not to __strncmp_sse2).
10723
10724 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10725
10726 [BZ #23140]
10727 * localedata/locales/gd_GB (mon): Rename to...
10728 (alt_mon): This.
10729 (mon): Import from CLDR (genitive case).
10730 * localedata/locales/hsb_DE (mon): Rename to...
10731 (alt_mon): This.
10732 (mon): Import from CLDR (genitive case).
10733 * localedata/locales/wa_BE (mon): Rename to...
10734 (alt_mon): This.
10735 (mon): Add, fill with the proper genitive forms, but CLDR data
10736 is incomplete; completed according to the comments in this file.
10737 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10738
10739 * localedata/locales/wa_BE (country_name): Reword
10740 "Beljike" -> "Beldjike".
10741
10742 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10743
10744 [BZ #23272]
10745 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10746 cases of non-finite arguments.
10747 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10748
10749 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10750
10751 [BZ #23174]
10752 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10753
10754 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10755
10756 [BZ #23264]
10757 * include/unistd.h (__execvpex): New prototype.
10758 * posix/Makefile (tests): Add tst-spawn4.
10759 (tests-internal): Add tst-spawn4-compat.
10760 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10761 * posix/tst-spawn4-compat.c: New file.
10762 * posix/tst-spawn4.c: Likewise.
10763 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10764 binaries as shell scripts.
10765 * sysdeps/posix/spawni.c (__spawni): Likewise.
10766
10767 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10768
10769 [BZ #23145]
10770 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10771 ($(all-built-dso:=.dynsym): New target.
10772 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10773 ($(objpfx)check-initfini.out): New target.
10774 (generated): Add check-initfini.out.
10775 * scripts/check-initfini.awk: New file.
10776 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10777 (_fini): Likewise.
10778 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10779 (_fini): Likewise.
10780 * sysdeps/arm/crti.S (_init): Mark as hidden.
10781 (_fini): Likewise.
10782 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10783 (_fini): Likewise.
10784 * sysdeps/i386/crti.S (_init): Mark as hidden.
10785 (_fini): Likewise.
10786 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10787 (_fini): Likewise.
10788 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10789 (_fini): Likewise.
10790 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10791 (_fini): Likewise.
10792 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10793 (_fini): Likewise.
10794 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10795 (_fini): Likewise.
10796 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10797 (_fini): Likewise.
10798 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10799 (_fini): Likewise.
10800 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10801 (_fini): Likewise.
10802 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10803 (_fini): Likewise.
10804 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10805 (_fini): Likewise.
10806 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10807 (_fini): Likewise.
10808 * sysdeps/sh/crti.S (_init): Mark as hidden.
10809 (_fini): Likewise.
10810 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10811 (_fini): Likewise.
10812 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10813 (_fini): Likewise.
10814
10815 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10816
10817 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10818 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10819 and TF redirection to KFtype and KF only when the default
10820 long double type is not the IEEE 128-bit floating point type.
10821
10822 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10823
10824 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10825 macro.
10826 (HWCAP_USCAT): Likewise.
10827 (HWCAP_ILRCPC): Likewise.
10828 (HWCAP_FLAGM): Likewise.
10829 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10830 Increase to 28.
10831 (_dl_aarch64_cap_flags): Add new flag names.
10832
10833 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10834 (MAP_FIXED_NOREPLACE): New macro.
10835 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10836 (MAP_FIXED_NOREPLACE): Likewise.
10837 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10838 (MAP_FIXED_NOREPLACE): Likewise.
10839 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10840 (MAP_FIXED_NOREPLACE): Likewise.
10841 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10842 (MAP_FIXED_NOREPLACE): Likewise.
10843 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10844 (MAP_FIXED_NOREPLACE): Likewise.
10845 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10846 (MAP_FIXED_NOREPLACE): Likewise.
10847 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10848 (MAP_FIXED_NOREPLACE): Likewise.
10849 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10850 (MAP_FIXED_NOREPLACE): Likewise.
10851 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10852 (MAP_FIXED_NOREPLACE): Likewise.
10853 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10854 (MAP_FIXED_NOREPLACE): Likewise.
10855 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10856 (MAP_FIXED_NOREPLACE): Likewise.
10857 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10858 (MAP_FIXED_NOREPLACE): Likewise.
10859 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10860 (MAP_FIXED_NOREPLACE): Likewise.
10861 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10862 (MAP_FIXED_NOREPLACE): Likewise.
10863
10864 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10865 version to 4.17.
10866
10867 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10868
10869 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10870 version to 4.17
10871
10872 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10873
10874 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10875 int.
10876 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10877
10878 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10879
10880 * benchtests/scripts/compare_string.py: (process_results) Catch
10881 exception in non-existent base_func and catch exception in
10882 non-existent attribute.
10883 (parse_file) Catch exception if input file does not exist.
10884
10885 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10886
10887 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10888 options to avoid diff calculation and omit header, respectively.
10889 (main): process --no-diff and --no-header
10890
10891 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10892 H.J. Lu <hongjiu.lu@intel.com>
10893
10894 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10895 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10896 wcsncmp-sse2.
10897 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10898 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10899 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10900 and __wcsncmp_sse2.
10901 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10902 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10903 AVX unaligned load is fast and vzeroupper is preferred.
10904 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10905 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10906 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10907 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10908 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10909 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10910 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10911 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10912 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10913 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10914 is undefined.
10915
10916 2018-06-01 Florian Weimer <fweimer@redhat.com>
10917
10918 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10919 configuring with --disable-multi-arch, building with
10920 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10921 Haswell-era CPU.
10922
10923 2018-06-01 Florian Weimer <fweimer@redhat.com>
10924
10925 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10926 results from building with “-march=x86-64 -mtune=generic
10927 -mfpmath=sse” and running on a Haswell-era CPU.
10928
10929 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10930
10931 [BZ #18473]
10932 * soft-fp/sqrttf2.c: Remove file.
10933 * soft-fp/sqrtdf2.c: Move to ....
10934 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10935 <shlib-compat.h>.
10936 (__sqrtdf2): Make conditional on
10937 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10938 symbol.
10939 * soft-fp/sqrtsf2.c: Move to ....
10940 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10941 <shlib-compat.h>.
10942 (__sqrtsf2): Make conditional on
10943 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10944 symbol.
10945 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10946 (gcc-double-routines): Remove sqrtdf2.
10947 (gcc-quad-routines): Remove sqrttf2.
10948 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10949 Do not filter out sqrtsf2 and sqrtdf2.
10950 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10951 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10952
10953 2018-06-01 Florian Weimer <fweimer@redhat.com>
10954
10955 * sysdeps/generic/libcidn.abilist: Remove file.
10956
10957 2018-06-01 Florian Weimer <fweimer@redhat.com>
10958
10959 [BZ #23236]
10960 * libio/strfile.h (struct _IO_str_fields): Rename members to
10961 discourage their use and add comment.
10962 (_IO_STR_DYNAMIC): Remove unused macro.
10963 * libio/strops.c (_IO_str_init_static_internal): Do not use
10964 callback pointers. Call malloc and free.
10965 (_IO_str_overflow): Do not use callback pointers. Call malloc
10966 and free.
10967 (enlarge_userbuf): Likewise.
10968 (_IO_str_finish): Call free.
10969 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10970 _allocate_buffer_unused.
10971 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10972 and free.
10973 (enlarge_userbuf): Likewise.
10974 (_IO_wstr_finish): Call free.
10975 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10976 _allocate_buffer_unused, _free_buffer_unused.
10977 * libio/memstream.c (__open_memstream): Likewise.
10978 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10979 * libio/wmemstream.c (open_wmemstream): Likewise.
10980
10981 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10982
10983 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10984 AMD Ryzen 7 1800X.
10985
10986 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10987
10988 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10989 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10990 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10991 New file.
10992 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10993 Likewise.
10994 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10995
10996 2018-05-29 Florian Weimer <fweimer@redhat.com>
10997
10998 * support/Makefile (libsupport-routines): Add
10999 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11000 xpthread_barrierattr_setpshared.
11001 * support/xpthread_barrierattr_destroy.c: New file.
11002 * support/xpthread_barrierattr_init.c: Likewise.
11003 * support/xpthread_barrierattr_setpshared.c: Likewise.
11004
11005 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11006
11007 [BZ #23206]
11008 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11009 _r_debug and update DT_DEBUG for debugger.
11010
11011 2018-05-29 Florian Weimer <fweimer@redhat.com>
11012
11013 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11014 (tst-strtod5i.out): Likewise.
11015
11016 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11017
11018 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11019 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11020 (sparc64-quad-routines): New variable. Moved from ....
11021 [$(subdir) = soft-fp] (sysdep_routines): Add
11022 $(sparc64-quad-routines). Moved from ....
11023 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11024 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11025 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11026 moved from ....
11027 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11028 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11029 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11030 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11031 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11032 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11033 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11034 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11035 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11036 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11037 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11038 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11039 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11040 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11041 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11042 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11043 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11044 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11045 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11046 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11047 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11048 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11049 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11050 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11051 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11052 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11053 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11054 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11055 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11056 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11057 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11058 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11059 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11060 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11061 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11062 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11063 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11064 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11065 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11066 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11067 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11068 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11069 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11070 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11071 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11072 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11073 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11074 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11075 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11076 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11077 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11078 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11079 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11080 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11081 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11082 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11083 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11084 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11085
11086 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11087 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11088 (sparc32-quad-routines): New variable. Moved from ....
11089 [$(subdir) = soft-fp] (sysdep_routines): Add
11090 $(sparc32-quad-routines). Moved from ....
11091 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11092 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11093 moved from ....
11094 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11095 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11096 * sysdeps/sparc/sparc32/q_add.c: ... here.
11097 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11098 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11099 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11100 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11101 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11102 * sysdeps/sparc/sparc32/q_div.c: ... here.
11103 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11104 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11105 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11106 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11107 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11108 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11109 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11110 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11111 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11112 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11113 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11114 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11115 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11116 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11117 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11118 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11119 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11120 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11121 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11122 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11123 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11124 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11125 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11126 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11127 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11128 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11129 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11130 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11131 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11132 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11133 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11134 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11135 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11136 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11137 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11138 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11139 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11140 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11141 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11142 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11143 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11144 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11145 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11146 * sysdeps/sparc/sparc32/q_util.c: ... here.
11147 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11148 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11149 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11150 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11151
11152 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11153 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11154
11155 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11156 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11157 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11158 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11159
11160 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11161
11162 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11163 powerpc/soft-fp.
11164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11165 Likewise.
11166 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11167 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11168
11169 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11170
11171 [BZ #23171]
11172 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11173 double version.
11174
11175 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11176
11177 * sysdeps/sh/Implies: Remove sh/soft-fp.
11178 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11179 * sysdeps/sh/sfp-machine.h: ... here.
11180
11181 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11182
11183 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11184 (__mempcpy_erms): Skip zero length.
11185 (__memmove_erms): Likewise.
11186 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11187 (__memset_erms): Likewise.
11188
11189 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11190
11191 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11192 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11193 Add functions moved from ....
11194 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11195 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11196 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11197 from ....
11198 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11199 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11200 * sysdeps/alpha/e_sqrtl.c: ... here.
11201 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11202 * sysdeps/alpha/local-soft-fp.h: ... here.
11203 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11204 * sysdeps/alpha/ots_add.c: ... here.
11205 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11206 * sysdeps/alpha/ots_cmp.c: ... here.
11207 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11208 * sysdeps/alpha/ots_cmpe.c: ... here.
11209 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11210 * sysdeps/alpha/ots_cvtqux.c: ... here.
11211 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11212 * sysdeps/alpha/ots_cvtqx.c: ... here.
11213 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11214 * sysdeps/alpha/ots_cvttx.c: ... here.
11215 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11216 * sysdeps/alpha/ots_cvtxq.c: ... here.
11217 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11218 * sysdeps/alpha/ots_cvtxt.c: ... here.
11219 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11220 * sysdeps/alpha/ots_div.c: ... here.
11221 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11222 * sysdeps/alpha/ots_mul.c: ... here.
11223 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11224 * sysdeps/alpha/ots_nintxq.c: ... here.
11225 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11226 * sysdeps/alpha/ots_sub.c: ... here.
11227 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11228 * sysdeps/alpha/sfp-machine.h: ... here.
11229
11230 2018-05-23 Florian Weimer <fweimer@redhat.com>
11231
11232 [BZ #19728]
11233 [BZ #19729]
11234 [BZ #22247]
11235 CVE-2016-6261
11236 CVE-2016-6263
11237 CVE-2017-14062
11238 Switch to extern IDNA implementation (libidn2).
11239 * libidn: Remove subdirectory.
11240 * LICENSES: Do not mention licensing conditions for the removed
11241 libidn code.
11242 * config.h.in (HAVE_LIBIDN): Remove.
11243 * include/dlfcn.h (__libc_dlopen): Update comment.
11244 * include/idna.h: Remove file.
11245 * inet/Makefile (routines): Add idna.
11246 (tests-static, tests-internal): Add tst-idna_name_classify.
11247 (LOCALES): Generate locales for tests.
11248 (tst-idna_name_classify.out): Depend on generated locales.
11249 * inet/idna_name_classify.c: New file.
11250 * inet/tst-idna_name_classify.c: Likewise.
11251 * inet/net-internal.h (__idna_to_dns_encoding)
11252 (__idna_from_dns_encoding): Declare.
11253 * inet/net-internal.h (enum idna_name_classification): Define.
11254 (__idna_name_classify): Declare.
11255 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11256 __idna_from_dns_encoding.
11257 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11258 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11259 name as a fallback in case of encoding errors.
11260 (getnameinfo): Use DEPRECATED_NI_IDN.
11261 * inet/idna.c: New file.
11262 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11263 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11264 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11265 (modules-names): Add tst-no-libidn2.
11266 (extra-test-objs): Add tst-no-libidn2.os.
11267 (LDFLAGS-tst-no-libidn2.so): Set soname.
11268 (LOCALES): Set, and generate locales.
11269 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11270 (tst-resolv-ai_idn-latin1): Likewise.
11271 (tst-resolv-ai_idn-nolibidn2): Likewise.
11272 (tst-resolv-ai_idn.out): Depend on locales.
11273 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11274 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11275 tst-no-libidn2.so.
11276 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11277 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11278 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11279 * resolv/tst-resolv-ai_idn.c: New file.
11280 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11281 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11282 * resolv/tst-no-libidn2.c: Likewise.
11283 * support/support_format_addrinfo.c (format_ai_flags): Do not
11284 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11285 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11286 (gaih_inet): Call __idna_to_dns_encoding and
11287 __idna_from_dns_encoding, and use the original (punycode) name if
11288 __idna_from_dns_encoding fails due to an encoding error.
11289 (getaddrinfo): Use DEPRECATED_AI_IDN.
11290 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11291 * sysdeps/unix/inet/configure: Remove file.
11292 * sysdeps/unix/inet/configure.ac: Likewise.
11293
11294 2018-05-23 Florian Weimer <fweimer@redhat.com>
11295
11296 Implement allocate_once.
11297 * include/allocate_once.h: New file.
11298 * misc/allocate_once.c: Likewise.
11299 * misc/tst-allocate_once.c: Likewise.
11300 * misc/Makefile (routines): Add allocate_once.
11301 (tests-internal): Add tst-allocate_once.
11302 (generated): Add tst-allocate_once.mtrace,
11303 tst-allocate_once-mem.out.
11304 (tests-special): Add tst-allocate_once-mem.out.
11305 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11306 (tst-allocate_once-mem.out): Call mtrace.
11307 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11308
11309 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11310
11311 [BZ #23196]
11312 * string/test-memcpy.c (do_test1): New function.
11313 (test_main): Call it.
11314
11315 2018-05-23 Andreas Schwab <schwab@suse.de>
11316
11317 [BZ #23196]
11318 CVE-2018-11237
11319 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11320 (L(preloop_large)): Save initial destination pointer in %r11 and
11321 use it instead of %rax after the loop.
11322 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11323
11324 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11325
11326 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11327 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11328 -I../soft-fp. Moved from ....
11329 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11330 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11331 * sysdeps/aarch64/e_sqrtl.c: ... here.
11332 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11333 * sysdeps/aarch64/sfp-machine.h: ... here.
11334
11335 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11336 -Wmaybe-uninitialized around access to fq[0].
11337 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11338 Likewise.
11339
11340 [BZ #18471]
11341 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11342 aliases for non-libc case of versioned symbols.
11343 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11344 (llseek): Define as compat symbol if
11345 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11346 with link warning.
11347 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11348 Make into a compat symbol, disabled for minimum symbol version
11349 GLIBC_2.28 and later.
11350 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11351
11352 2018-05-22 Florian Weimer <fweimer@redhat.com>
11353
11354 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11355 not add -mpreferred-stack-boundary=4.
11356 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11357 (stack-align-test-flags): Likewise.
11358 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11359 Likewise.
11360 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11361 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11362 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11363 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11364 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11365 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11366 (CFLAGS-tst-align2.c): Likewise.
11367
11368 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11369
11370 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11371 (index_arch_Prefer_FSRM): Likewise.
11372 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11373 Also check Prefer_FSRM.
11374 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11375 Also return OPTIMIZE (erms) for Prefer_FSRM.
11376
11377 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11378
11379 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11380 (index_cpu_FSRM): Likewise.
11381 (reg_FSRM): Likewise.
11382
11383 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11384
11385 * math/gen-tgmath-tests.py: Import sys.
11386 (Tests.__init__): Initialize macros_seen.
11387 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11388 if requested to do so for this macro.
11389 (Tests.add_all_tests): Take argument for macro for which to
11390 generate tests.
11391 (Tests.check_macro_list): New function.
11392 (main): Handle check-list argument and argument specifying macro
11393 for which to generate tests.
11394 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11395 [PYTHON] (tgmath3-macro-tests): Likewise.
11396 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11397 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11398 not test-tgmath3.c.
11399 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11400 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11401 to CFLAGS.
11402 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11403 [PYTHON] ($(foreach
11404 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11405 rule.
11406 [PYTHON] (tests-special): Add
11407 $(objpfx)test-tgmath3-macro-list.out.
11408 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11409
11410 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11411 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11412 later.
11413
11414 [BZ #22639]
11415 * time/tzset.c (SECSPERDAY): Cast to time_t.
11416 * time/tst-y2039.c: New file.
11417 * time/Makefile (tests): Add tst-y2039.
11418
11419 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11420
11421 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11422 (PREFETCH_ONE_SET): Remove duplicate line.
11423
11424 2018-05-17 Florian Weimer <fweimer@redhat.com>
11425
11426 * sysdeps/generic/math-type-macros-double.h: Include
11427 <math-nan-payload-double.h> after <libm-alias-double.h>.
11428 * sysdeps/generic/math-type-macros-float.h: Include
11429 <math-nan-payload-float.h> after <libm-alias-float.h>.
11430 * sysdeps/generic/math-type-macros-float128.h: Include
11431 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11432 * sysdeps/generic/math-type-macros-ldouble.h: Include
11433 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11434
11435 2018-05-17 Andreas Schwab <schwab@suse.de>
11436
11437 * resolv/res_send.c (__res_context_send): Don't set errno when
11438 returing error after malloc failure.
11439
11440 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 * nptl/allocatestack.c (allocate_stack): Remove the
11443 !__ASSUME_PRIVATE_FUTEX paths.
11444 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11445 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11446 Likewise.
11447 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11448 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11449 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11450 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11451 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11452 !__ASSUME_PRIVATE_FUTEX path.
11453 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11454 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11455 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11456 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11457 !__ASSUME_PRIVATE_FUTEX macros.
11458 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11459 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11460 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11461 * sysdeps/unix/sysv/linux/kernel-features.h
11462 (__ASSUME_PRIVATE_FUTEX): Removed.
11463
11464 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11465
11466 * math/Makefile (libm-narrow-fns): Add div.
11467 (libm-test-funcs-narrow): Likewise.
11468 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11469 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11470 * math/gen-auto-libm-tests.c (test_functions): Add div.
11471 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11472 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11473 (NARROW_DIV_TRIVIAL): Likewise.
11474 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11475 macro.
11476 (__ddivl): Likewise.
11477 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11478 ddiv.
11479 (CFLAGS-nldbl-ddiv.c): New variable.
11480 (CFLAGS-nldbl-fdiv.c): Likewise.
11481 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11482 __nldbl_ddivl.
11483 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11484 prototype.
11485 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11486 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11487 * math/auto-libm-test-in: Add tests of div.
11488 * math/auto-libm-test-out-narrow-div: New generated file.
11489 * math/libm-test-narrow-div.inc: New file.
11490 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11491 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11492 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11493 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11494 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11495 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11496 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11497 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11498 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11499 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11500 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11501 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11504 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11505 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11506 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11507 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11508 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11509 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11521 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11534
11535 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11536
11537 [BZ #23178]
11538 * nscd/nscd-client.h (sendfileall): Remove prototype.
11539 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11540 (handle_request): Use writeall instead of sendfileall.
11541 * nscd/aicache.c (addhstaiX): Likewise.
11542 * nscd/grpcache.c (cache_addgr): Likewise.
11543 * nscd/hstcache.c (cache_addhst): Likewise.
11544 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11545 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11546 * nscd/pwdcache.c (cache_addpw): Likewise.
11547 * nscd/servicescache.c (cache_addserv): Likewise.
11548 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11549 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11550 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11551 Remove define.
11552
11553 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11554
11555 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11556 Include <string/strncat.c>.
11557 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11558 alias.
11559 (__GI___strncat): New hidden alias.
11560
11561 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11562
11563 * sysdeps/mips/mips32/libm-test-ulps: Update.
11564 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11565
11566 2018-05-16 Florian Weimer <fweimer@redhat.com>
11567
11568 * support/Makefile (libsupport-routines): Add support_quote_blob,
11569 support_test_compare_blob.
11570 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11571 * support/check.h (TEST_COMPARE_BLOB): Define.
11572 (support_test_compare_blob): Declare.
11573 * support/support.h (support_quote_blob): Declare.
11574 * support/support_quote_blob.c: New file.
11575 * support/support_test_compare_blob.c: Likewise.
11576 * support/tst-support_quote_blob.c: Likewise.
11577 * support/tst-test_compare_blob.c: Likewise.
11578
11579 2018-05-16 Florian Weimer <fweimer@redhat.com>
11580
11581 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11582 of <strtod_nan_double.h>.
11583 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11584 instead of SET_MANTISSA.
11585 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11586 of include <strtod_nan_float.h>.
11587 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11588 instead of <strtod_nan_ldouble.h>.
11589 * stdlib/strtod_nan_double.h: Move to ...
11590 * sysdeps/generic/math-nan-payload-double.h: ... here.
11591 (FLOAT): Remove definition.
11592 (SET_MANTISSA): Rename to ...
11593 (SET_NAN_PAYLOAD): ... this.
11594 * stdlib/strtod_nan_float.h: Move to ...
11595 * sysdeps/generic/math-nan-payload-float.h: ... here.
11596 (FLOAT): Remove definition.
11597 (SET_MANTISSA): Rename to ...
11598 (SET_NAN_PAYLOAD): ... this.
11599 * sysdeps/generic/math-type-macros-double.h: Include
11600 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11601 instead of <math-svid-compat.h>.
11602 * sysdeps/generic/math-type-macros-float.h: Include
11603 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11604 instead of <math-svid-compat.h>.
11605 * sysdeps/generic/math-type-macros-float128.h: Include
11606 <math-nan-payload-float128.h>.
11607 * sysdeps/generic/math-type-macros-ldouble.h: Include
11608 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11609 instead of <math-svid-compat.h>.
11610 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11611 check for definition.
11612 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11613 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11614 Include <ieee754_float128.h>.
11615 (FLOAT): Remove definition.
11616 (SET_MANTISSA): Rename to ...
11617 (SET_NAN_PAYLOAD): ... this.
11618 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11619 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11620 Do not include <float128_private.h>.
11621 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11622 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11623 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11624 (FLOAT): Remove definition.
11625 (SET_MANTISSA): Rename to ...
11626 (SET_NAN_PAYLOAD): ... this.
11627 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11628 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11629 (FLOAT): Remove definition.
11630 (SET_MANTISSA): Rename to ...
11631 (SET_NAN_PAYLOAD): ... this.
11632 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11633 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11634 (FLOAT): Remove definition.
11635 (SET_MANTISSA): Rename to ...
11636 (SET_NAN_PAYLOAD): ... this.
11637 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11638 of "../stdlib/strtod_nan_double.h".
11639 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11640 of "../stdlib/strtod_nan_float.h".
11641 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11642 instead of "../stdlib/strtod_nan_ldouble.h".
11643 * manual/arith.texi (Parsing of Floats): Adjust comment.
11644
11645 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11646
11647 * math/Makefile (libm-narrow-fns): Add mul.
11648 (libm-test-funcs-narrow): Likewise.
11649 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11650 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11651 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11652 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11653 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11654 (NARROW_MUL_TRIVIAL): Likewise.
11655 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11656 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11657 macro.
11658 (__dmull): Likewise.
11659 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11660 dmul.
11661 (CFLAGS-nldbl-dmul.c): New variable.
11662 (CFLAGS-nldbl-fmul.c): Likewise.
11663 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11664 __nldbl_dmull.
11665 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11666 prototype.
11667 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11668 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11669 * math/auto-libm-test-in: Add tests of mul.
11670 * math/auto-libm-test-out-narrow-mul: New generated file.
11671 * math/libm-test-narrow-mul.inc: New file.
11672 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11673 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11674 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11675 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11676 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11677 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11678 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11679 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11680 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11681 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11682 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11683 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11684 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11685 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11686 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11687 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11688 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11689 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11690 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11691 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11716
11717 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11718
11719 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11720 with *%eax in call.
11721
11722 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11723
11724 * sysdeps/i386/ldsodefs.h: Removed.
11725 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11726 * sysdeps/x86/ldsodefs.h: This.
11727 (La_i86_regs): New.
11728 (La_i86_retval): Likewise.
11729 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11730 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11731
11732 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11733
11734 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11735 unnecessary testl.
11736
11737 2018-05-13 Alan Modra <amodra@gmail.com>
11738
11739 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11740 R_PARISC_TLS_DTPOFF32 reloc addend.
11741
11742 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11743
11744 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11745 * math/math.h: Restrict the prototype definition for the functions
11746 issignaling(_Float128) and iszero(_Float128); and template
11747 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11748 __HAVE_FLOAT128_UNLIKE_LDBL.
11749 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11750 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11751 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11752 __f128() constants; define the type _Float128 as long double;
11753 and reuse long double in __CFLOAT128.
11754
11755 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11756
11757 * sysdeps/generic/math_private.h: Do not include
11758 <math-barriers.h>.
11759 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11760 <math_private.h>.
11761 * math/fromfp.h: Include <math-barriers.h>.
11762 * math/math-narrow.h: Likewise.
11763 * math/s_nextafter.c: Likewise.
11764 * math/s_nexttowardf.c: Likewise.
11765 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11766 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11767 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11768 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11769 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11770 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11771 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11772 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11773 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11774 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11775 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11776 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11777 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11778 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11779 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11780 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11781 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11782 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11783 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11784 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11785 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11786 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11787 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11788 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11789 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11790 * sysdeps/ieee754/k_standardl.c: Likewise.
11791 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11792 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11793 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11794 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11795 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11796 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11797 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11798 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11799 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11800 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11801 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11802 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11803 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11804 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11805 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11806 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11807 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11808 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11809 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11810 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11811 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11812 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11813
11814 2018-05-11 Florian Weimer <fweimer@redhat.com>
11815
11816 Use 64-bit epoch values in the time zone file parser.
11817 * include/time.h (internal_time_t): Define.
11818 (__tzfile_compute): Use it.
11819 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11820 member.
11821 (transitions): Switch to internal_time_t.
11822 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11823 types.
11824 (__tzfile_compute): Use internal_time_t for timer argument. Check
11825 for truncation before calling __offtime.
11826
11827 2018-05-11 Florian Weimer <fweimer@redhat.com>
11828
11829 [BZ #23166]
11830 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11831 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11832 Likewise.
11833 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11834 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11835 export without --enable-obsolete-rpc.
11836 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11837 symbol. This should not have been exported, ever.
11838
11839 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11840
11841 [BZ #23152]
11842 * localedata/locales/gd_GB (abmon): Fix typo in May:
11843 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11844
11845 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11846
11847 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11848 Use multiple registers to copy data in loop tail.
11849
11850 * sysdeps/aarch64/multiarch/memmove_falkor.S
11851 (__memmove_falkor): Use multiple registers to move data in
11852 loop tail.
11853
11854 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11855
11856 * math/math-underflow.h: New file.
11857 * sysdeps/generic/math_private.h: Do not include <float.h>.
11858 (fabs_tg): Remove macro. Moved to math-underflow.h.
11859 (min_of_type_f): Likewise.
11860 (min_of_type_): Likewise.
11861 (min_of_type_l): Likewise.
11862 (min_of_type_f128): Likewise.
11863 (min_of_type): Likewise.
11864 (math_check_force_underflow): Likewise.
11865 (math_check_force_underflow_nonneg): Likewise.
11866 (math_check_force_underflow_complex): Likewise.
11867 * math/e_exp2_template.c: Include <math-underflow.h>.
11868 * math/k_casinh_template.c: Likewise.
11869 * math/s_catan_template.c: Likewise.
11870 * math/s_catanh_template.c: Likewise.
11871 * math/s_ccosh_template.c: Likewise.
11872 * math/s_cexp_template.c: Likewise.
11873 * math/s_clog10_template.c: Likewise.
11874 * math/s_clog_template.c: Likewise.
11875 * math/s_csin_template.c: Likewise.
11876 * math/s_csinh_template.c: Likewise.
11877 * math/s_csqrt_template.c: Likewise.
11878 * math/s_ctan_template.c: Likewise.
11879 * math/s_ctanh_template.c: Likewise.
11880 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11881 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11882 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11883 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11884 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11885 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11886 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11887 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11888 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11889 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11890 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11891 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11892 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11893 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11894 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11895 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11896 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11897 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11898 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11899 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11900 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11901 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11902 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11903 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11904 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11905 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11906 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11907 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11908 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11909 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11910 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11911 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11912 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11913 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11914 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11915 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11916 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11917 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11918 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11919 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11920 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11921 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11922 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11923 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11924 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11925 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11926 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11927 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11928 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11929 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11930 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11931 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11932 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11933 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11934 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11935 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11936 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11937 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11938 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11939 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11940 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11941 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11942 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11943 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11944 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11945 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11946 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11947 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11948 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11949 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11950 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11951 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11952 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11953 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11954 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11955 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11956 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11957 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11958 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11959 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11960 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11961 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11962 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11963 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11964
11965 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11966
11967 * sysdeps/generic/math-barriers.h: New file.
11968 * sysdeps/generic/math_private.h [!math_opt_barrier]
11969 (math_opt_barrier): Move to math-barriers.h.
11970 [!math_opt_barrier] (math_force_eval): Likewise.
11971 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11972 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11973 math-barriers.h.
11974 (math_force_eval): Likewise.
11975 * sysdeps/alpha/fpu/math-barriers.h: New file.
11976 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11977 math-barriers.h.
11978 (math_force_eval): Likewise.
11979 * sysdeps/x86/fpu/math-barriers.h: New file.
11980 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11981 math-barriers.h.
11982 (math_force_eval): Likewise.
11983 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11984 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11985 multiple-include guard for rename.
11986 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11987 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11988 math-barriers.h.
11989 (math_force_eval): Likewise.
11990
11991 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11992
11993 [BZ #22786]
11994 CVE-2018-11236
11995 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11996 computation.
11997 * stdlib/Makefile (test-bz22786): New test.
11998 * stdlib/test-bz22786.c: New test.
11999
12000 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12001
12002 * include/math-narrow-eval.h: New file. Contents moved from ....
12003 * sysdeps/generic/math_private.h: ... here.
12004 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12005 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12006 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12007 * stdlib/strtod_l.c: Likewise.
12008 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12009 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12010 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12011 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12012 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12013 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12014 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12015 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12016 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12017 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12018 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12019 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12020 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12021 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12022 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12023 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12024 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12025 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12026 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12027 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12028 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12029 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12030 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12031 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12032 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12033 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12034 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12035 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12036 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12037
12038 2018-05-08 Andreas Schwab <schwab@suse.de>
12039
12040 * sysdeps/nptl/internaltypes.h: Fix comment.
12041
12042 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12043
12044 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12045 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12046 hidden.
12047
12048 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12049
12050 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12051 of I into loop header.
12052 * benchtests/bench-memmove-walk.c
12053 (test_main): Likewise.
12054
12055 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12056
12057 Revert:
12058 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12059 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12060
12061 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12062
12063 [BZ #20419]
12064 * elf/dl-load.c (open_verify): Fix stack overflow.
12065 * elf/Makefile (tst-big-note): New test.
12066 * elf/tst-big-note-lib.S: New.
12067 * elf/tst-big-note.c: New.
12068
12069 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12070
12071 * scripts/abilist.awk: Ignore absolute symbols.
12072 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12073 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12074 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12075 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12076 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12077 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12078 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12079 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12080 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12081 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12082 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12083 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12164 Likewise.
12165 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12178 Likewise.
12179 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12206 Likewise.
12207 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12212 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12213 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12227 Likewise.
12228 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12233 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12260 Likewise.
12261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12266 Likewise.
12267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12268 Likewise.
12269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12271 Likewise.
12272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12274 Likewise.
12275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12276 Likewise.
12277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12280 Likewise.
12281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12282 Likewise.
12283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12284 Likewise.
12285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12289 Likewise.
12290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12296 Likewise.
12297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12299 Likewise.
12300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12301 Likewise.
12302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12303 Likewise.
12304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12305 Likewise.
12306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12309 Likewise.
12310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12311 Likewise.
12312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12313 Likewise.
12314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12317 Likewise.
12318 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12332 Likewise.
12333 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12345 Likewise.
12346 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12371 Likewise.
12372 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12385 Likewise.
12386 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12424
12425 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12426
12427 [BZ #23137]
12428 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12429 Use atomic_load_acquire to load __tid.
12430
12431 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12432
12433 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12434 Restore the pointer into %rdx, after syscall and use %rdx,
12435 instead of %rsi, to restore context.
12436
12437 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12438
12439 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12440 Pop the pointer into %rdx after syscall and use %rdx, instead
12441 of %rsi, to restore context.
12442
12443 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12444
12445 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12446 handlers after setjmp.
12447 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12448 defined.
12449 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12450 <libc-pointer-arith.h>.
12451 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12452 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12453 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12454 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12455 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12456 * sysdeps/x86/__longjmp_cancel.S: New file.
12457 * sysdeps/x86/longjmp.c: Likewise.
12458 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12459
12460 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12461
12462 * NEWS: Add ustat.h deprecation entry.
12463 * bits/ustat.h: Remove file.
12464 * misc/sys/ustat.h: Likewise.
12465 * misc/ustat.h: Likewise.
12466 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12467 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12468 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12469 compatibility mode.
12470 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12471 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12472 generic Linux implementation.
12473
12474 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12475
12476 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12477 * math/w_expl_compat.c: Likewise.
12478 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12479
12480 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12481
12482 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12483
12484 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12485
12486 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12487 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12488 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12489 Remove.
12490 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12492 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12493 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12494 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12495 and SYSCALL_LL64.
12496
12497 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12498
12499 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12500
12501 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12502 * math/w_asin_template.c: Likewise.
12503 * math/w_atanh_template.c: Likewise.
12504
12505 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12506
12507 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12508 to powerpc/powerpc64/be for big-endian.
12509 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12510 little-endian.
12511
12512 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12513 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12514 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12515 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12516 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12517 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12518 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12519 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12520 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12521 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12522 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12523 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12524 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12525 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12526 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12527 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12528 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12529 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12530 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12531 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12532 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12533 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12534 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12535 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12536 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12537 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12538 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12539 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12540 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12541 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12542 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12543 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12544
12545 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12546 adjusted to imply powerpc64 and older processors on powerpc64/be.
12547 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12548 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12549 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12550 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12551 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12552 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12553 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12554 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12555 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12556 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12557 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12558 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12559 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12560 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12561 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12562 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12563 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12564 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12565 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12566 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12567 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12568 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12569 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12570 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12571 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12572 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12573 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12574 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12575 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12576 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12577 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12578
12579 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12580 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12581 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12582 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12583
12584 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12585 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12586 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12587 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12588
12589 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12590 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12591 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12592 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12593 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12594 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12595 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12596 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12597 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12598 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12599 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12600
12601 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12602 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12603 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12604 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12605 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12606 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12607 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12608 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12609 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12610 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12611 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12612
12613 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12614 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12615 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12616 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12617 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12618 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12619 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12620 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12621 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12622 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12623 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12624 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12625
12626 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12627 and adjusted to imply olders processors.
12628 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12629 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12630 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12631 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12632 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12633 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12634 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12635 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12636 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12637 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12638 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12639
12640 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12641 powerpc64/le.
12642 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12643 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12644
12645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12646 powerpc64le.
12647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12649
12650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12651 powerpc64/be.
12652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12655
12656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12657 powerpc64 and adjusted.
12658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12661 Likewise.
12662
12663 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12664
12665 * sysdeps/tile: Remove.
12666 * sysdeps/unix/sysv/linux/tile: Likewise.
12667 * README (tilegx-*-linux-gnu): Remove from list of supported
12668 configurations.
12669 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12670 contribution of support for generic Linux kernel syscall
12671 interface.
12672 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12673 tilegx configurations.
12674 (Config.install_linux_headers): Do not handle tile.
12675 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12676 in comment.
12677 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12678 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12679 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12680 conditional undefine and redefine.
12681 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12682 in comment.
12683 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12684 conditional undefine and redefine.
12685
12686 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12687
12688 * signal/tst-sigaction.c: New file to test BZ #23069.
12689 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12690
12691 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12692
12693 [BZ #22766]
12694 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12695 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12696 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12697 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12698
12699 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12700
12701 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12702 _DIRENT_MATCHES_DIRENT64 is not defined.
12703 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12704 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12705 is defined.
12706 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12707 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12708
12709 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12710
12711 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12712 version to GCC 8 branch.
12713
12714 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12715
12716 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12717 (check_no_hidden): Use type of original function when declaring
12718 alias.
12719
12720 * sysdeps/unix/sysv/linux/sys/ptrace.h
12721 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12722 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12723 (struct __ptrace_seccomp_metadata): New type.
12724 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12725 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12726 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12727 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12728 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12729 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12730 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12731 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12732 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12733 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12734 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12735 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12736 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12737 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12738 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12739 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12740
12741 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12742
12743 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12744 defined.
12745 * dirent/versionsort.c (versionsort): Likewise.
12746 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12747 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12748 * dirent/versionsort64.c (versionsort64): Likewise.
12749 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12750 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12751 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12752 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12753 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12754 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12755 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12756 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12757 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12758 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12761 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12762 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12763
12764 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12765
12766 * elf/elf.h (NT_PPC_PKEY): New macro.
12767
12768 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12769
12770 [BZ #23094]
12771 * localedata/locales/hr_HR: fix thousands_sep and
12772 mon_thousands_sep
12773
12774 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12775
12776 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12777 (XTABS): Define to TAB3.
12778
12779 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12780
12781 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12782
12783 * dirent/scandir-tail-common.c: New file.
12784 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12785 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12786 * dirent/scandir.c: Use scandir-tail-common.c.
12787 * dirent/scandirat.c: Likewise.
12788 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12789 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12790 if _DIRENT_MATCHES_DIRENT64 is defined.
12791 * dirent/scandirat64.c (scandirat64): Likewise.
12792 * include/dirent.h (__scandir_tail): Only define iff
12793 _DIRENT_MATCHES_DIRENT64 is not defined.
12794 (__scandir64_tail): Define regardless.
12795 (__scandirat, scandirat64): Remove libc_hidden_proto.
12796 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12797 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12799 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12800 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12801 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12802 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12803
12804 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12805
12806 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12807 New macro.
12808 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12809 Increase to 24.
12810 (_dl_aarch64_cap_flags): Add asimdfhm.
12811
12812 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12813
12814 * sysdeps/nios2/libm-test-ulps: Update.
12815
12816 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12817
12818 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12819 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12820
12821 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12822 requirements.
12823 (_DIRENT_MATCHES_DIRENT64): Undef
12824 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12825 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12826 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12827 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12828 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12829 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12830 use getdents64 syscalls as base.
12831 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12832 symbol if required.
12833 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12834 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12835 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12836 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12837 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12838 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12839 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12840 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12841 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12842 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12843 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12844
12845 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12846
12847 * scripts/test_printers_common.py (init_test): Disable lock elision.
12848
12849 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12850
12851 * math/test-tgmath.c (count_double, count_float,
12852 count_ldouble, count_cdouble, count_cfloat,
12853 count_cldouble): Use volatile int.
12854
12855 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12856
12857 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12858 (conformtest-xfail-conds): Add i386-gnu.
12859 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12860 i386-gnu.
12861 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12862 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12863 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12864 msqid_ds.msg_lrpid): Likewise.
12865 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12866 Likewise.
12867 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12868 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12869 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12870 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12871 unsigned int.
12872 (struct statvfs64): Likewise.
12873 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12874 Likewise.
12875 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12876 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12877 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12878 instead of wait_queue.
12879 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12880 instead of vm_area_struct.
12881 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12882 struct sched_param definition to it.
12883 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12884 * bits/types/struct_sched_param.h: New file.
12885 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12886 <bits/types/struct_sched_param.h> instead of <sched.h>.
12887 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12888 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12889 generic version but include <bits/pthreadtypes.h> to make struct
12890 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12891 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12892 non-compliant.
12893 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12894 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12895 [__USE_XOPEN] (OFDEL): New macro.
12896 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12897 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12898 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12899 prototypes.
12900 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12901 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12902 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12903 non-compliant.
12904 * sysdeps/i386/sys/ucontext.h: Likewise.
12905 * sysdeps/m68k/sys/ucontext.h: Likewise.
12906 * sysdeps/mips/sys/ucontext.h: Likewise.
12907 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12908 * sysdeps/mach/hurd/i386/Makefile
12909 (test-xfail-POSIX/fcntl.h/conform): Add.
12910 (test-xfail-POSIX/signal.h/conform): Add.
12911 (test-xfail-POSIX/semaphore.h/conform): Add.
12912 (test-xfail-POSIX/regex.h/conform): Add.
12913 (test-xfail-POSIX/aio.h/conform): Add.
12914 (test-xfail-POSIX/mqueue.h/conform): Add.
12915 (test-xfail-POSIX/sys/types.h/conform): Add.
12916 (test-xfail-UNIX98/fcntl.h/conform): Add.
12917 (test-xfail-UNIX98/netdb.h/conform): Add.
12918 (test-xfail-UNIX98/signal.h/conform): Add.
12919 (test-xfail-UNIX98/semaphore.h/conform): Add.
12920 (test-xfail-UNIX98/regex.h/conform): Add.
12921 (test-xfail-UNIX98/aio.h/conform): Add.
12922 (test-xfail-UNIX98/ftw.h/conform): Add.
12923 (test-xfail-UNIX98/mqueue.h/conform): Add.
12924 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12925 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12926 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12927 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12928 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12929 (test-xfail-UNIX98/sys/types.h/conform): Add.
12930 (test-xfail-UNIX98/stdlib.h/conform): Add.
12931 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12932 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12933 (test-xfail-POSIX2008/netdb.h/conform): Add.
12934 (test-xfail-POSIX2008/signal.h/conform): Add.
12935 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12936 (test-xfail-POSIX2008/regex.h/conform): Add.
12937 (test-xfail-POSIX2008/aio.h/conform): Add.
12938 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12939 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12940 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12941 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12942 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12943 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12944 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12945 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12946 (test-xfail-XOPEN2K/signal.h/conform): Add.
12947 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12948 (test-xfail-XOPEN2K/regex.h/conform): Add.
12949 (test-xfail-XOPEN2K/aio.h/conform): Add.
12950 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12951 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12952 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12953 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12954 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12955 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12956 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12957 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12958 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12959 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12960 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12961 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12962 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12963 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12964 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12965 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12966 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12967 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12968 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12969 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12970 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12971 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12972 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12973 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12974 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12975 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12976 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12977 i386-gnu.
12978 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12979 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12980
12981 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12982
12983 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12984 --enable-obsolete for powerpc-linux-gnuspe.
12985
12986 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12987
12988 * conform/data/sys/un.h-data: Allow sun_ prefix.
12989 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12990 prototypes.
12991 * sysdeps/mach/include/mach.h: Likewise.
12992 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12993 * sysdeps/mach/include/mach_error.h: Likewise.
12994
12995 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12996
12997 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12998 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12999 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13000 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13001
13002 2018-04-16 Andreas Schwab <schwab@suse.de>
13003
13004 [BZ #19527]
13005 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13006
13007 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13008
13009 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13010 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13011
13012 2018-04-12 DJ Delorie <dj@redhat.com>
13013
13014 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13015 version to 4.16.
13016
13017 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13018
13019 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13020 (struct kernel_sigaction): Use the same definition on 31bit as is used
13021 on 64bit.
13022
13023 2018-04-09 Florian Weimer <fweimer@redhat.com>
13024
13025 [BZ #23037]
13026 * resolv/res_send.c (send_dg): Use designated initializers instead
13027 of assignment to zero-initialize other fields of struct mmsghdr.
13028
13029 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13030
13031 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13032 __READDIR_ALIAS): Undefine after usage.
13033 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13034 __READDIR_R_ALIAS): Likewise.
13035 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13036 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13037 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13038 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13039 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13040 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13041 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13042 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13043 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13044 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13045 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13046 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13047 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13048 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13049 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13050 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13051 * sysdeps/unix/sysv/linux/readdir.c: New file.
13052 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13053 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13054 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13055
13056 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13057
13058 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13059
13060 * manual/charset.texi (Converting a Character): Fix typo.
13061
13062 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13063
13064 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13065
13066 * sysdeps/arm/libm-test-ulps: Update.
13067
13068 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13069 as base implementation.
13070 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13071 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13072 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13073 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13074 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13075 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13076 remove unrequired definitions and update comments.
13077 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13078 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13079 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13080 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13081 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13082 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13083 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13084 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13085 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13086 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13087 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13088 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13089 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13090 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13091 and RESET_SA_RESTORER hooks.
13092
13093 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13094
13095 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13096
13097 2018-04-05 Florian Weimer <fweimer@redhat.com>
13098
13099 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13100 integer overflow, memory leak on error, and indeterminate errno
13101 value. Add a null wide character to terminate the result string.
13102 * manual/charset.texi (Converting a Character): Mention embedded
13103 null bytes in the mbrtowc input string. Explain what happens in
13104 the -2 result case. Do not claim that mbrtowc is simple or
13105 obvious to use. Adjust the description of the code example. Use
13106 @code, not @var, for concrete variables.
13107
13108 2018-04-05 Florian Weimer <fweimer@redhat.com>
13109
13110 * manual/examples/mbstouwcs.c: New file.
13111 * manual/charset.texi (Converting a Character): Include it.
13112
13113 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13114
13115 * include/dirent.h (dirfd): Add hidden proto.
13116 * dirent/dirfd.c (dirfd): Add hidden def.
13117 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13118 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13119
13120 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13121
13122 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13123 sin, cos and sincos to 1 ULP.
13124
13125 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13126
13127 [BZ #19818]
13128 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13129 symbols.
13130 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13131 * elf/tst-absolute-sym.c: New file.
13132 * elf/tst-absolute-sym-lib.c: New file.
13133 * elf/tst-absolute-sym-lib.lds: New file.
13134 * elf/Makefile (tests): Add `tst-absolute-sym'.
13135 (modules-names): Add `tst-absolute-sym-lib'.
13136 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13137 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13138 ($(objpfx)tst-absolute-sym): New dependency.
13139
13140 [BZ #19818]
13141 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13142 parameter.
13143 (SYMBOL_ADDRESS): New macro.
13144 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13145 SYMBOL_ADDRESS for symbol address calculation.
13146 * elf/dl-runtime.c (_dl_fixup): Likewise.
13147 (_dl_profile_fixup): Likewise.
13148 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13149 * elf/rtld.c (dl_main): Likewise.
13150 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13151 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13152 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13153 (elf_machine_rela): Likewise.
13154 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13155 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13156 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13157 (elf_machine_rela): Likewise.
13158 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13159 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13160 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13161 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13162 Likewise.
13163 (elf_machine_reloc): Likewise.
13164 (elf_machine_got_rel): Likewise.
13165 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13166 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13167 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13168 Likewise.
13169 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13170 Likewise.
13171 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13172 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13173 Likewise.
13174 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13175 Likewise.
13176 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13177 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13178 Likewise.
13179 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13180 Likewise.
13181 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13182 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13183
13184 2018-04-04 Zack Weinberg <zackw@panix.com>
13185
13186 * sysdeps/generic/internal-signals.h: Include signal.h,
13187 sigsetops.h, and stdbool.h.
13188 (__libc_signal_block_all): Actually block all signals.
13189 (__libc_signal_block_app): Likewise.
13190 (__libc_signal_restore_set): Actually restore the signal mask.
13191
13192 2018-04-04 Florian Weimer <fweimer@redhat.com>
13193
13194 inet: Actually build and run tst-deadline.
13195 * inet/Makefile (tests-internal): Add tst-deadline and do not
13196 overwrite the variable.
13197 (tests-static-internal): Remove variable.
13198
13199 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13200
13201 [BZ #22947]
13202 * bits/uio-ext.h (RWF_APPEND): New.
13203 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13204 * manual/llio.texi: Document RWF_APPEND.
13205 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13206 (RWF_SUPPORTED): Add RWF_APPEND.
13207
13208 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13209
13210 [BZ #22391]
13211 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13212 check for internal nptl signals.
13213 * nptl/sigaction.c (__sigaction): Likewise.
13214 * signal/sigaddset.c (sigaddset): Likewise.
13215 * signal/sigdelset.c (sigdelset): Likewise.
13216 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13217 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13218 value.
13219 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13220 to filter out internal nptl signals.
13221 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13222 also check realtime signals using standard macros.
13223 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13224 __is_internal_signal, __libc_signal_block_all,
13225 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13226 * sysdeps/nptl/sigfillset.c: Remove file.
13227 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13228 Change return to bool.
13229 (__clear_internal_signals): Remove SIGTIMER clean since it is
13230 equal to SIGCANEL on Linux.
13231 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13232 signal set was constructed using standard functions.
13233
13234 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13235
13236 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13237 ifname is too long.
13238 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13239 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13240 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13241 hidden def.
13242 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13243 * signal/sigaddset.c: Include <sigsetopts.h>.
13244 * signal/sigdelset.c: Likewise.
13245
13246 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13247
13248 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13249 (__cos): Likewise.
13250 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13251 logic as sin and cos.
13252
13253 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13254
13255 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13256 inputs. Return correct sign.
13257 (do_sincos): Remove small input check before do_sin, let do_sin set
13258 the sign.
13259 (__sin): Likewise.
13260 (__cos): Likewise.
13261
13262 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13263
13264 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13265 (do_cos_slow): Likewise.
13266 (do_sin_slow): Likewise.
13267 (reduce_and_compute): Likewise.
13268 (slow): Likewise.
13269 (slow1): Likewise.
13270 (slow2): Likewise.
13271 (sloww): Likewise.
13272 (sloww1): Likewise.
13273 (sloww2): Likewise.
13274 (bslow): Likewise.
13275 (bslow1): Likewise.
13276 (bslow2): Likewise.
13277 (cslow2): Likewise.
13278
13279 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13280
13281 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13282 (do_cos): Remove corp parameter and calculations.
13283 (do_sin): Likewise.
13284 (do_sincos): Remove cor variable.
13285 (__sin): Use do_sincos for huge inputs.
13286 (__cos): Likewise.
13287 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13288 (reduce_and_compute_sincos): Remove unused function.
13289
13290 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13291
13292 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13293 reduce_sincos, improve accuracy to 136 bits.
13294 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13295 (__sin): Use improved reduction and simplified do_sincos calculation.
13296 (__cos): Likewise.
13297 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13298
13299 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13300
13301 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13302 (do_sincos_2): Likewise.
13303 (__sin): Remove middle range reduction case.
13304 (__cos): Likewise.
13305 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13306 reduction case.
13307
13308 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13309
13310 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13311 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13312 inputs.
13313 (__cos): Likewise.
13314 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13315
13316 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13317
13318 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13319 version to 4.16
13320
13321 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13322
13323 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13324 Remove definitions.
13325 (opendir_oflags): Use O_DIRECTORY regardless.
13326 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13327 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13328
13329 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13330
13331 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13332 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13333 macros.
13334 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13335 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13336 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13337 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13338 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13339 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13340
13341 * htl/Makefile: Bump licence to LGPL 2.1+.
13342 * htl/alloca_cutoff.c: Likewise.
13343 * htl/cthreads-compat.c: Likewise.
13344 * htl/lockfile.c: Likewise.
13345 * htl/pt-alloc.c: Likewise.
13346 * htl/pt-cancel.c: Likewise.
13347 * htl/pt-cleanup.c: Likewise.
13348 * htl/pt-create.c: Likewise.
13349 * htl/pt-dealloc.c: Likewise.
13350 * htl/pt-detach.c: Likewise.
13351 * htl/pt-exit.c: Likewise.
13352 * htl/pt-getattr.c: Likewise.
13353 * htl/pt-initialize.c: Likewise.
13354 * htl/pt-internal.h: Likewise.
13355 * htl/pt-join.c: Likewise.
13356 * htl/pt-self.c: Likewise.
13357 * htl/pt-setcancelstate.c: Likewise.
13358 * htl/pt-setcanceltype.c: Likewise.
13359 * htl/pt-sigmask.c: Likewise.
13360 * htl/pt-spin-inlines.c: Likewise.
13361 * htl/pt-testcancel.c: Likewise.
13362 * htl/pt-yield.c: Likewise.
13363 * htl/tests/test-1.c: Likewise.
13364 * htl/tests/test-10.c: Likewise.
13365 * htl/tests/test-11.c: Likewise.
13366 * htl/tests/test-12.c: Likewise.
13367 * htl/tests/test-13.c: Likewise.
13368 * htl/tests/test-14.c: Likewise.
13369 * htl/tests/test-15.c: Likewise.
13370 * htl/tests/test-16.c: Likewise.
13371 * htl/tests/test-17.c: Likewise.
13372 * htl/tests/test-2.c: Likewise.
13373 * htl/tests/test-3.c: Likewise.
13374 * htl/tests/test-4.c: Likewise.
13375 * htl/tests/test-5.c: Likewise.
13376 * htl/tests/test-6.c: Likewise.
13377 * htl/tests/test-7.c: Likewise.
13378 * htl/tests/test-8.c: Likewise.
13379 * htl/tests/test-9.c: Likewise.
13380 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13381 * sysdeps/htl/bits/cancelation.h: Likewise.
13382 * sysdeps/htl/bits/pthread-np.h: Likewise.
13383 * sysdeps/htl/bits/pthread.h: Likewise.
13384 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13385 * sysdeps/htl/bits/semaphore.h: Likewise.
13386 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13387 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13388 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13389 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13390 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13391 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13392 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13393 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13394 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13395 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13396 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13397 * sysdeps/htl/old_pt-atfork.c: Likewise.
13398 * sysdeps/htl/pt-atfork.c: Likewise.
13399 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13400 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13401 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13402 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13403 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13404 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13405 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13406 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13407 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13408 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13409 * sysdeps/htl/pt-attr-init.c: Likewise.
13410 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13411 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13412 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13413 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13414 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13415 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13416 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13417 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13418 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13419 * sysdeps/htl/pt-attr.c: Likewise.
13420 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13421 * sysdeps/htl/pt-barrier-init.c: Likewise.
13422 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13423 * sysdeps/htl/pt-barrier.c: Likewise.
13424 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13425 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13426 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13427 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13428 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13429 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13430 * sysdeps/htl/pt-cond-init.c: Likewise.
13431 * sysdeps/htl/pt-cond-signal.c: Likewise.
13432 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13433 * sysdeps/htl/pt-cond-wait.c: Likewise.
13434 * sysdeps/htl/pt-cond.c: Likewise.
13435 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13436 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13437 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13438 * sysdeps/htl/pt-condattr-init.c: Likewise.
13439 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13440 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13441 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13442 * sysdeps/htl/pt-equal.c: Likewise.
13443 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13444 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13445 * sysdeps/htl/pt-getschedparam.c: Likewise.
13446 * sysdeps/htl/pt-getspecific.c: Likewise.
13447 * sysdeps/htl/pt-init-specific.c: Likewise.
13448 * sysdeps/htl/pt-key-create.c: Likewise.
13449 * sysdeps/htl/pt-key-delete.c: Likewise.
13450 * sysdeps/htl/pt-key.h: Likewise.
13451 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13452 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13453 * sysdeps/htl/pt-mutex-init.c: Likewise.
13454 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13455 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13456 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13457 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13458 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13459 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13460 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13461 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13462 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13463 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13464 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13465 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13466 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13467 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13468 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13469 * sysdeps/htl/pt-mutexattr.c: Likewise.
13470 * sysdeps/htl/pt-once.c: Likewise.
13471 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13472 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13473 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13474 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13475 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13476 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13477 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13478 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13479 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13480 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13481 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13482 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13483 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13484 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13485 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13486 * sysdeps/htl/pt-setschedparam.c: Likewise.
13487 * sysdeps/htl/pt-setschedprio.c: Likewise.
13488 * sysdeps/htl/pt-setspecific.c: Likewise.
13489 * sysdeps/htl/pt-spin.c: Likewise.
13490 * sysdeps/htl/pt-startup.c: Likewise.
13491 * sysdeps/htl/pthread.h: Likewise.
13492 * sysdeps/htl/sem-close.c: Likewise.
13493 * sysdeps/htl/sem-destroy.c: Likewise.
13494 * sysdeps/htl/sem-getvalue.c: Likewise.
13495 * sysdeps/htl/sem-init.c: Likewise.
13496 * sysdeps/htl/sem-open.c: Likewise.
13497 * sysdeps/htl/sem-post.c: Likewise.
13498 * sysdeps/htl/sem-timedwait.c: Likewise.
13499 * sysdeps/htl/sem-trywait.c: Likewise.
13500 * sysdeps/htl/sem-unlink.c: Likewise.
13501 * sysdeps/htl/sem-wait.c: Likewise.
13502 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13503 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13504 * sysdeps/mach/htl/pt-block.c: Likewise.
13505 * sysdeps/mach/htl/pt-spin.c: Likewise.
13506 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13507 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13508 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13509 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13510 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13511 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13512 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13513 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13514 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13515 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13516 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13517 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13518 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13519 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13520 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13521 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13522 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13523 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13524 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13525 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13526 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13527 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13528 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13529 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13530 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13531 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13532 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13533 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13534 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13535 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13536 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13537 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13538 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13539 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13540 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13541 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13542 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13543 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13544 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13545 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13546 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13547 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13548 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13549
13550 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13551 * README: Remove the mention of out-of-tree patches needed for
13552 GNU/Hurd.
13553
13554 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13555 (UTIME_NOW, UTIME_OMIT): Define macros.
13556
13557 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13558 instead of pthread_detach.
13559 (__cthread_fork): Call __pthread_create instead of pthread_create.
13560 (__cthread_keycreate): Call __pthread_key_create instead of
13561 pthread_key_create.
13562 (__cthread_getspecific): Call __pthread_getspecific instead of
13563 pthread_getspecific.
13564 (__cthread_setspecific): Call __pthread_setspecific instead of
13565 pthread_setspecific.
13566 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13567 __pthread_mutex_unlock instead of pthread_mutex_lock and
13568 pthread_mutex_unlock.
13569 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13570 ___pthread_get_cleanup_stack.
13571 (__pthread_get_cleanup_stack): New strong alias.
13572 * htl/pt-create.c: Include <pthreadP.h>.
13573 (entry_point): Call __pthread_exit instead of pthread_exit.
13574 (pthread_create): Rename to __pthread_create.
13575 (pthread_create): New strong alias.
13576 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13577 (pthread_detach): New strong alias.
13578 (__pthread_detach): Call __pthread_cond_broadcast instead of
13579 pthread_cond_broadcast.
13580 * htl/pt-exit.c: Include <pthreadP.h>.
13581 (__pthread_exit): Call __pthread_setcancelstate and
13582 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13583 __pthread_get_cleanup_stack.
13584 * htl/pt-testcancel.c: Include <pthreadP.h>.
13585 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13586 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13587 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13588 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13589 pthread_attr_getstacksize.
13590 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13591 Rename to __pthread_attr_getstackaddr.
13592 (pthread_attr_getstackaddr): New strong alias.
13593 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13594 Rename to __pthread_attr_getstacksize.
13595 (pthread_attr_getstacksize): New strong alias.
13596 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13597 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13598 (pthread_attr_setstack): New strong alias.
13599 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13600 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13601 pthread_attr_getstacksize, pthread_attr_setstacksize and
13602 pthread_attr_setstackaddr.
13603 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13604 Rename to __pthread_attr_setstackaddr.
13605 (pthread_attr_setstackaddr): New strong alias.
13606 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13607 Rename to __pthread_attr_setstacksize.
13608 (pthread_attr_setstacksize): New strong alias.
13609 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13610 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13611 pthread_exit.
13612 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13613 (__pthread_key_create): New hidden def.
13614 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13615 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13616 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13617 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13618 __pthread_setspecific, __pthread_setcancelstate,
13619 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13620 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13621 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13622 declarations.
13623 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13624 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13625 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13626 (pthread_attr_setstackaddr): New strong alias.
13627 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13628 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13629 (pthread_attr_setstacksize): New strong alias.
13630 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13631 (call_exit): Call __pthread_exit instead of pthread_exit.
13632 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13633 (_pthread_mutex_init): New hidden definition.
13634 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13635 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13636 instead of pthread_attr_init and pthread_attr_setstack.
13637
13638 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13639 __vm_deallocate instead of vm_allocate and vm_deallocate.
13640 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13641 setenv.
13642 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13643 of geteuid.
13644 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13645 strdup.
13646 * hurd/siginfo.c: Include <libioP.h>.
13647 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13648 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13649 munmap.
13650 * mach/devstream.c: Include <libioP.h>.
13651 (dealloc_ref): Call __mach_port_deallocate instead of
13652 mach_port_deallocate.
13653 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13654 Call __mach_port_deallocate instead of mach_port_deallocate.
13655 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13656 pathconf.
13657 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13658 munmap.
13659 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13660 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13661 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13662 of munmap.
13663 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13664 of close.
13665 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13666 instead of sysconf.
13667 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13668 __clock_gettime instead of clock_gettime.
13669 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13670 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13671 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13672 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13673 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13674 tcgetattr.
13675 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13676 __clock_gettime and __nanosleep instead of clock_gettime and
13677 nanosleep.
13678 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13679 __hurd_catch_signal.
13680 (hurd_catch_signal): New strong alias.
13681 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13682 __hurd_catch_signal instead of hurd_catch_signal.
13683 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13684 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13685 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13686 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13687 (_hurd_thread_sigstate): Add hidden def.
13688 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13689 mutex_unlock.
13690 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13691 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13692 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13693 __hurd_file_name_path_lookup.
13694 (hurd_file_name_path_lookup): New strong alias.
13695 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13696 hurd_file_name_path_lookup.
13697 * mach/errstring.c (mach_error_type): Add hidden def.
13698 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13699 * mach/mutex-init.c (__mutex_init): Add hidden def.
13700 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13701 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13702 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13703 * sysdeps/mach/hurd/getcwd.c
13704 (_hurd_canonicalize_directory_name_internal): Rename to
13705 __hurd_canonicalize_directory_name_internal.
13706 (_hurd_canonicalize_directory_name_internal): New strong alias.
13707 (__canonicalize_directory_name_internal, __getcwd): Call
13708 __hurd_canonicalize_directory_name_internal instead of
13709 _hurd_canonicalize_directory_name_internal.
13710 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13711 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13712 hidden defs.
13713 * sysdeps/hurd/include/hurd.h: New file.
13714 * sysdeps/hurd/include/hurd/fd.h: New file.
13715 * sysdeps/hurd/include/hurd/signal.h: New file.
13716 * sysdeps/mach/include/lock-intern.h: New file.
13717 * sysdeps/mach/include/mach.h: New file.
13718 * sysdeps/mach/include/mach/mig_support.h: New file.
13719 * sysdeps/mach/include/mach_error.h: New file.
13720 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13721 prototype.
13722 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13723 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13724 _HEADER_H_HIDDEN_DEF macro.
13725 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13726 _hurd_fd_error_signal): Add hidden prototype.
13727 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13728 hidden def.
13729 * libio/iolibio.h (_IO_puts): New hidden prototype.
13730 * libio/ioputs.c (_IO_puts): New hidden def.
13731 * sysdeps/mach/hurd/localplt.data: New file.
13732
13733 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13734 Amos Jeffries <squid3@treenet.co.nz>
13735 David Michael <fedora.dm0@gmail.com>
13736 Marco Gerards <marco@gnu.org>
13737 Marcus Brinkmann <marcus@gnu.org>
13738 Neal H. Walfield <neal@gnu.org>
13739 Pino Toscano <toscano.pino@tiscali.it>
13740 Richard Braun <rbraun@sceen.net>
13741 Roland McGrath <roland@gnu.org>
13742 Samuel Thibault <samuel.thibault@ens-lyon.org>
13743 Thomas DiModica <ricinwich@yahoo.com>
13744 Thomas Schwinge <tschwinge@gnu.org>
13745
13746 * htl: New directory.
13747 * sysdeps/htl: New directory.
13748 * sysdeps/hurd/htl: New directory.
13749 * sysdeps/i386/htl: New directory.
13750 * sysdeps/mach/htl: New directory.
13751 * sysdeps/mach/hurd/htl: New directory.
13752 * sysdeps/mach/hurd/i386/htl: New directory.
13753 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13754 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13755 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13756
13757 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13758
13759 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13760 signals in thread created for runing timers.
13761
13762 2018-04-01 Florian Weimer <fweimer@redhat.com>
13763
13764 * support/support_format_addrinfo.c (support_format_addrinfo):
13765 Include unknown error number in formatted result.
13766
13767 2018-03-29 Florian Weimer <fweimer@redhat.com>
13768
13769 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13770 capture SIGBUS.
13771
13772 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13773
13774 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13775 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13776 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13777 (__ASSUME_CLONE_BACKWARDS): Define.
13778
13779 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13780
13781 [BZ #23024]
13782 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13783 early when linux sentinel value is set.
13784
13785 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13786
13787 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13788
13789 2018-03-27 Andreas Schwab <schwab@suse.de>
13790
13791 [BZ #23005]
13792 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13793 allocation of private copy of nsaddr_list fails.
13794
13795 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13796
13797 [BZ #16552]
13798 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13799 * sysdeps/unix/sysv/linux/umount.c: ... here.
13800 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13801 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13802 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13803 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13805 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13806 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13807
13808 2018-03-26 Andreas Schwab <schwab@suse.de>
13809
13810 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13811 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13812 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13813 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13814 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13815 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13816 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13817 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13818 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13819 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13820 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13821 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13822 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13823 (R_RISCV_NUM): Define.
13824
13825 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13826
13827 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13828 TLS declaration of errno.
13829 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13830 __libc_setup_tls.
13831 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13832 (ARCH_SETUP_TLS): Likewise.
13833 * sysdeps/mach/hurd/libc-start.h: New file copied from
13834 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13835 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13836 instead of __libc_setup_tls.
13837 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13838 __libc_setup_tls before initializing libpthread and running _hurd_init
13839 which starts the signal thread.
13840 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13841 Declare function.
13842 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13843
13844 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13845
13846 [BZ #22998]
13847 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13848 after it is defined.
13849
13850 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13851 Max Horn <max@quendi.de>
13852
13853 [BZ #22644]
13854 CVE-2017-18269
13855 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13856 branch conditions.
13857 * string/test-memmove.c (do_test2): New testcase.
13858
13859 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13860
13861 * sysdeps/generic/frame.h: Remove file.
13862 * sysdeps/arm/frame.h: Likewise.
13863 * sysdeps/hppa/frame.h: Likewise.
13864 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13865 macro.
13866 (GET_FRAME): Likewise.
13867 (GET_STACK): Likewise.
13868 (CALL_SIGHANDLER): Likewise.
13869 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13870 Likewise.
13871 (GET_FRAME): Likewise.
13872 (GET_STACK): Likewise.
13873 (CALL_SIGHANDLER): Likewise.
13874 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13875 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13876 (GET_FRAME): Likewise.
13877 (GET_STACK): Likewise.
13878 (CALL_SIGHANDLER): Likewise.
13879 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13880 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13881 (GET_FRAME): Likewise.
13882 (GET_STACK): Likewise.
13883 (ADVANCE_STACK_FRAME): Likewise.
13884 (CALL_SIGHANDLER): Likewise.
13885 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13886 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13887 (GET_FRAME): Likewise.
13888 (GET_STACK): Likewise.
13889 (CALL_SIGHANDLER): Likewise.
13890 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13891 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13892 (GET_FRAME): Likewise.
13893 (GET_STACK): Likewise.
13894 (CALL_SIGHANDLER): Likewise.
13895 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13896 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13897 (GET_FRAME): Likewise.
13898 (GET_STACK): Likewise.
13899 (CALL_SIGHANDLER): Likewise.
13900 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13901 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13902 (GET_FRAME): Likewise.
13903 (GET_STACK): Likewise.
13904 (CALL_SIGHANDLER): Likewise.
13905 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13906 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13907 (GET_FRAME): Likewise.
13908 (GET_STACK): Likewise.
13909 (CALL_SIGHANDLER): Likewise.
13910 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13911 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13912 (GET_FRAME): Likewise.
13913 (GET_STACK): Likewise.
13914 (CALL_SIGHANDLER): Likewise.
13915 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13916 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13917 (GET_FRAME): Likewise.
13918 (GET_STACK): Likewise.
13919 (CALL_SIGHANDLER): Likewise.
13920 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13921 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13922 (GET_FRAME): Likewise.
13923 (GET_STACK): Likewise.
13924 (CALL_SIGHANDLER): Likewise.
13925 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13926 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13927 (GET_FRAME): Likewise.
13928 (GET_STACK): Likewise.
13929 (CALL_SIGHANDLER): Likewise.
13930 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13931 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13932 (FIRST_FRAME_POINTER): Likewise.
13933 (ADVANCE_STACK_FRAME): Likewise.
13934 (GET_STACK): Likewise.
13935 (GET_FRAME): Likewise.
13936 (CALL_SIGHANDLER): Likewise.
13937 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13938 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13939 (ADVANCE_STACK_FRAME): Likewise.
13940 (GET_STACK): Likewise.
13941 (GET_FRAME): Likewise.
13942 (CALL_SIGHANDLER): Likewise.
13943 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13944 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13945 (GET_FRAME): Likewise.
13946 (GET_STACK): Likewise.
13947 (CALL_SIGHANDLER): Likewise.
13948 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13949 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13950 (GET_FRAME): Likewise.
13951 (GET_STACK): Likewise.
13952 (CALL_SIGHANDLER): Likewise.
13953
13954 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13955
13956 * sysdeps/x86_64/backtrace.c: Move to ....
13957 * debug/backtrace.c: ... here.
13958 * sysdeps/aarch64/backtrace.c: Remove file.
13959 * sysdeps/alpha/backtrace.c: Likewise.
13960 * sysdeps/hppa/backtrace.c: Likewise.
13961 * sysdeps/ia64/backtrace.c: Likewise.
13962 * sysdeps/mips/backtrace.c: Likewise.
13963 * sysdeps/nios2/backtrace.c: Likewise.
13964 * sysdeps/riscv/backtrace.c: Likewise.
13965 * sysdeps/sh/backtrace.c: Likewise.
13966 * sysdeps/tile/backtrace.c: Likewise.
13967
13968 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13969
13970 [BZ #22987]
13971 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13972 function.
13973 (fdimf): Likewise.
13974 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13975
13976 [BZ #17343]
13977 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13978 possibly overflowing computations.
13979
13980 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13981
13982 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13983 values from Linux-specific section now that it is in the GNU section.
13984 * sysdeps/gnu/errlist.c: Regenerate.
13985
13986 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13987
13988 * math/Makefile (libm-narrow-fns): Add sub.
13989 (libm-test-funcs-narrow): Likewise.
13990 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13991 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13992 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13993 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13994 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13995 (NARROW_SUB_TRIVIAL): Likewise.
13996 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13997 macro.
13998 (__dsubl): Likewise.
13999 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14000 dsub.
14001 (CFLAGS-nldbl-dsub.c): New variable.
14002 (CFLAGS-nldbl-fsub.c): Likewise.
14003 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14004 __nldbl_dsubl.
14005 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14006 prototype.
14007 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14008 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14009 * math/auto-libm-test-in: Add tests of sub.
14010 * math/auto-libm-test-out-narrow-sub: New generated file.
14011 * math/libm-test-narrow-sub.inc: New file.
14012 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14013 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14014 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14015 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14016 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14017 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14018 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14019 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14020 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14021 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14022 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14023 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14024 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14025 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14026 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14027 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14028 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14029 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14030 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14031 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14037 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14038 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14039 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14040 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14041 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14042 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14043 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14048 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14049 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14050 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14051 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14052 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14053 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14054 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14055 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14056 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14057 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14058
14059 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14060
14061 [BZ #20079]
14062 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14063
14064 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14065
14066 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14067
14068 2018-03-18 Richard Braun <rbraun@sceen.net>
14069
14070 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14071 thread reference.
14072
14073 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14074
14075 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14076 (__libc_cleanup_fct): Define function.
14077 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14078 __libc_cleanup_end): Rewrite implementation using
14079 __attribute__ ((__cleanup__)).
14080 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14081 * hurd/Makefile (routines): Add hurdlock.
14082 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14083 interface.
14084 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14085 * hurd/hurdpid.c: Include <lowlevellock.h>
14086 (_S_msg_proc_newids): Use lll_wait to synchronize.
14087 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14088 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14089 * mach/Makefile (lock-headers): Remove machine-lock.h.
14090 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14091 <machine-lock.h>.
14092 (__spin_lock_t): New type.
14093 (__SPIN_LOCK_INITIALIZER): New macro.
14094 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14095 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14096 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14097 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14098 (__mutex_init): Initialize with lll.
14099 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14100 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14101 needing lll.
14102 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14103 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14104 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14105 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14106 (__setpgid): Use lll for synchronization.
14107 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14108 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14109 instead of <cthreads.h>.
14110 (_IO_lock_inexpensive): New macro
14111 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14112 (__libc_lock_self0): New declaration.
14113 (__libc_lock_owner_self): New macro.
14114 (__libc_key_t): Remove type.
14115 (_LIBC_LOCK_INITIALIZER): New macro.
14116 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14117 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14118 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14119 __libc_lock_define_initialized_recursive,
14120 __rtld_lock_define_initialized_recursive,
14121 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14122 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14123 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14124 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14125 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14126 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14127 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14128 New macros.
14129 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14130 * hurd/hurdlock.c: New file.
14131 * hurd/hurdlock.h: New file.
14132 * mach/lowlevellock.h: New file
14133
14134 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14135
14136 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14137 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14138 when opening a symlink with O_NOFOLLOW.
14139 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14140 path when flags contains O_NOFOLLOW.
14141 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14142 if flags contains O_DIRECTORY and the result is a directory.
14143 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14144 oneself when the pointer given in D is nul (as set by ext2fs).
14145 * sysdeps/mach/hurd/mlockall.c: New file.
14146 * sysdeps/mach/hurd/munlockall.c: New file.
14147
14148 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14149
14150 * hurd/hurdsig.c: Include <pthread.h>.
14151 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14152 get the signal thread stack layout.
14153 * hurd/Makefile (headers): Remove threadvar.h.
14154 (inline-headers): Remove threadvar.h.
14155 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14156 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14157 __hurd_threadvar_max, __hurd_errno_location.
14158 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14159 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14160 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14161 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14162 unless TLS is not initialized yet, in which case we do not need a
14163 critical section yet anyway.
14164 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14165 <machine-sp.h>.
14166 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14167 declarations.
14168 (__hurd_threadvar_index): Remove enum.
14169 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14170 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14171 inlines.
14172 (__hurd_reply_port0): New variable declaration.
14173 (__hurd_local_reply_port): New macro.
14174 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14175 (interrupted_reply_port_location): Add thread_t parameter. Use it
14176 with THREAD_TCB to access thread-local variables.
14177 (_hurdsig_abort_rpcs): Pass ss->thread to
14178 interrupted_reply_port_location.
14179 (_hurd_internal_post_signal): Likewise.
14180 (_hurdsig_init): Use presence of cthread_fork instead of
14181 __hurd_threadvar_stack_mask to start signal thread by hand.
14182 Remove signal thread threadvar initialization.
14183 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14184 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14185 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14186 of threadvar.
14187 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14188 __libc_lock_self0.
14189 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14190 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14191 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14192 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14193 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14194 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14195 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14196 define variables.
14197 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14198 <hurd/threadvar.h>.
14199 [IS_IN(rtld)] (rtld_errno): New variable.
14200 [IS_IN(rtld)] (__errno_location): New weak function.
14201 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14202 * sysdeps/mach/hurd/errno.c: Remove file.
14203 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14204 (__fork): Remove THREADVAR_SPACE macro and its use.
14205 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14206 variable.
14207 (init): Do not initialize threadvar.
14208 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14209 symbol.
14210 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14211 __hurd_local_reply_port instead of threadvar.
14212 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14213 _hurd_sigstate fields.
14214 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14215 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14216 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14217 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14218 instead of threadvar.
14219 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14220 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14221 (use_threadvar, global_reply_port): Remove variables.
14222 (__hurd_reply_port0): New variable.
14223 (__mig_get_reply_port): Use __hurd_local_reply_port and
14224 __hurd_reply_port0 instead of threadvar.
14225 (__mig_dealloc_reply_port): Likewise.
14226 (__mig_init): Do not initialize threadvar.
14227 * sysdeps/mach/hurd/profil.c: Fix comment.
14228 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14229 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14230 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14231 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14232 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14233 __cthread_setspecific.
14234 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14235 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14236 __cthread_t instead of cthread_fork, cthread_detach,
14237 pthread_getattr_np, pthread_attr_getstack.
14238 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14239 __cthread_keycreate.
14240 (cthread_getspecific): Rename to __cthread_getspecific.
14241 (cthread_setspecific): Rename to __cthread_setspecific.
14242 (__libc_getspecific): Use __cthread_getspecific instead of
14243 cthread_getspecific.
14244 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14245 __cthread_keycreate instead of cthread_keycreate.
14246 (__libc_setspecific): Use __cthread_setspecific instead of
14247 cthread_setspecific.
14248 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14249 Likewise.
14250 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14251 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14252 testing whether it is defined.
14253
14254 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14255
14256 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14257 Define macro.
14258 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14259 * sysdeps/mach/i386/thread_state.h
14260 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14261 i386_THREAD_STATE.
14262 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14263 i386_THREAD_STATE.
14264 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14265
14266 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14267 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14268
14269 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14270 macros.
14271 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14272 descriptor instead of creating a new one.
14273 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14274
14275 * mach/setup-thread.c: Include <ldsodefs.h>.
14276 (__mach_setup_thread): Call _dl_allocate_tls, pass
14277 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14278 MACHINE_THREAD_STATE_FLAVOR, before getting
14279 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14280 MACHINE_THREAD_STATE_FLAVOR with the result.
14281 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14282 MACHINE_THREAD_STATE_FIX_NEW.
14283 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14284 too. Add original thread parameter.
14285
14286 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14287
14288 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14289 Remove inline function.
14290
14291 * sysdeps/i386/fpu/libm-test-ulps: Update.
14292 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14293
14294 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14295
14296 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14297 commit.
14298
14299 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14300
14301 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14302 (__sincos_code): Remove define and undefine.
14303 [__FAST_MATH__] (__sincos): Remove inline function.
14304 [__FAST_MATH__] (__sincosf): Remove inline function.
14305 [__FAST_MATH__] (__sincosl): Remove inline function.
14306 (__atan2l): Remove inline functions.
14307 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14308 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14309 function.
14310 (floor): Remove inline function.
14311 (ceil): Likewise.
14312 [__FAST_MATH__] (__ldexp_code): Remove macro.
14313 [__FAST_MATH__] (ldexp): Remove inline function.
14314 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14315 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14316 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14317 [__USE_ISOC99] (__lrint_code): Remove macro.
14318 [__USE_ISOC99] (__llrint_code): Likewise.
14319 [__USE_ISOC99] (lrintf): Remove inline function.
14320 [__USE_ISOC99] (lrint): Likewise.
14321 [__USE_ISOC99] (lrintl): Likewise.
14322 [__USE_ISOC99] (llrint): Likewise.
14323 [__USE_ISOC99] (llrintf): Likewise.
14324 [__USE_ISOC99] (llrintl): Likewise.
14325
14326 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14327
14328 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14329 (__ieee754_sqrtf): Remove.
14330 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14331 (__ieee754_sqrtf): Remove.
14332 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14333 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14334 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14335 (__ieee754_sqrtf): Remove.
14336 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14337 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14338 (sqrtf): Remove.
14339 (sqrtl): Remove.
14340 (__ieee754_sqrt): Remove.
14341 (__ieee754_sqrtf): Remove.
14342 (__ieee754_sqrtl): Remove.
14343 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14344 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14345 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14346 (__ieee754_sqrtf): Remove.
14347 (__ieee754_sqrtl): Remove.
14348
14349 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14350
14351 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14352 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14353 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14354 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14355 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14356 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14357 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14358 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14359 Likewise.
14360 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14361 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14362 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14363 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14364 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14365 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14366 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14367 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14368 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14369 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14370 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14371 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14372 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14373 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14374 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14375 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14376 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14377 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14378 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14379 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14380 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14381 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14382 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14383 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14384 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14385 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14386 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14387 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14388 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14389 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14390 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14391 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14392 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14393 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14394 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14395 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14396 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14397 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14398 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14399 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14400
14401 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14402
14403 * include/math.h (sqrt): Declare with asm redirect.
14404 (sqrtf): Likewise.
14405 (sqrtl): Likewise.
14406 (sqrtf128): Likewise.
14407 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14408 nonlib and libnldbl with -fmath-errno.
14409 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14410 * math/w_sqrt_template.c: Likewise.
14411 * math/w_sqrtf_compat.c: Likewise.
14412 * math/w_sqrtl_compat.c: Likewise.
14413 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14414 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14415 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14416 complex.h.
14417
14418 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14419
14420 * benchtests/Makefile: Define _ISOMAC.
14421 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14422 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14423 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14424 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14425 * benchtests/bench-timing.h: Define attribute_hidden.
14426
14427 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14428
14429 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14430 mov + lsr.
14431
14432 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14433
14434 [BZ #22963]
14435 * localedata/locales/cs_CZ (mon): Rename to...
14436 (alt_mon): This.
14437 (mon): Import from CLDR (genitive case).
14438
14439 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14440
14441 [BZ #22937]
14442 * localedata/locales/el_CY (abmon): Rename to...
14443 (ab_alt_mon): This.
14444 (abmon): Import from CLDR (abbreviated genitive case).
14445 * localedata/locales/el_GR (abmon): Rename to...
14446 (ab_alt_mon): This.
14447 (abmon): Import from CLDR (abbreviated genitive case).
14448
14449 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14450
14451 [BZ #22932]
14452 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14453
14454 2018-03-15 Robert Buj <robert.buj@gmail.com>
14455
14456 [BZ #22848]
14457 * localedata/locales/ca_ES (abmon): Rename to...
14458 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14459 (mon): Rename to...
14460 (alt_mon): This.
14461 (abmon): Import from CLDR (genitive case, month names preceded by
14462 "de" or "d’").
14463 (mon): Likewise.
14464 (abday): Synchronize with CLDR.
14465 (d_t_fmt): Likewise.
14466 (d_fmt): Likewise.
14467 (am_pm): Likewise.
14468
14469 (LC_TIME): Improve indentation.
14470 (LC_TELEPHONE): Likewise.
14471 (LC_NAME): Likewise.
14472 (LC_ADDRESS): Likewise.
14473
14474 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14475
14476 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14477 (lrintf): Remove definitions used only with old GCC.
14478 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14479 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14480 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14481 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14482 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14483 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14484 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14485 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14486 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14487 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14488 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14489 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14490 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14491 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14492 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14493 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14494 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14495 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14496 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14497 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14498 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14499 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14500 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14501 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14502 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14503 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14504 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14505 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14506
14507 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14508
14509 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14510 instruction to unbreak builds with binutils 2.26 and older.
14511
14512 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14513
14514 * sysdeps/aarch64/strncmp.S (count): New macro.
14515 (strncmp): Store misaligned length in SRC1 in COUNT.
14516 (mutual_align): Adjust.
14517 (misaligned8): Load dword at a time when it is safe.
14518
14519 2018-03-12 Zack Weinberg <zackw@panix.com>
14520
14521 [BZ #1190]
14522 [BZ #19476]
14523 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14524 if the _IO_EOF_SEEN bit is already set; update commentary.
14525 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14526 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14527
14528 * support/support_openpty.c, support/tty.h: New files.
14529 * support/Makefile (libsupport-routines): Add support_openpty.
14530
14531 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14532 New test cases.
14533 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14534 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14535
14536 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14537
14538 * po/pt_BR.po: Update translations.
14539
14540 2018-03-12 David Michael <fedora.dm0@gmail.com>
14541
14542 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14543 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14544 get a port to the startup server.
14545
14546 2018-03-11 Zack Weinberg <zackw@panix.com>
14547
14548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14549 before nldbl-compat.h.
14550
14551 2018-03-10 Zack Weinberg <zackw@panix.com>
14552
14553 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14554 math.h or math_private.h.
14555
14556 * sysdeps/alpha/fpu/s_isnan.c
14557 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14558 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14559 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14560 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14561 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14562 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14563 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14564 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14565 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14568 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14569 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14570 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14571 Include math_private.h.
14572
14573 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14574 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14575 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14576 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14577 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14578 * sysdeps/powerpc/power7/fpu/s_logb.c:
14579 Include math.h and math_private.h.
14580
14581 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14582 uses of $at in .set noat / .set at.
14583
14584 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14585
14586 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14587 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14588 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14589 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14590 Likewise.
14591
14592 2018-03-09 Florian Weimer <fweimer@redhat.com>
14593
14594 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14595 in comment.
14596
14597 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14598
14599 [BZ #22919]
14600 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14601 Add nop before __startcontext, add explaining comments.
14602
14603 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14604
14605 [BZ #22926]
14606 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14607 empty for __SPE__.
14608 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14609 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14610 Do not build hardware transactional code for __SPE__.
14611 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14612 (__lll_trylock_elision): Likewise.
14613 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14614 (__lll_unlock_elision): Likewise.
14615
14616 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14617 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14618 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14619 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14620 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14621 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14622 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14623 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14624 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14625 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14626 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14627 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14628 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14629 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14630 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14631 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14632 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14633 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14634 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14635 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14636 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14637 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14638 (__ASSUME_CLONE_BACKWARDS): Define.
14639 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14640 __clone2 if __NR_clone2 is defined.
14641 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14642 (__ASSUME_CLONE_BACKWARDS): Likewise.
14643 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14644 (__ASSUME_CLONE_BACKWARDS): Likewise.
14645 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14646 (__ASSUME_CLONE2): Likewise.
14647 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14648 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14649 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14650 variants and the define architecture can use.
14651 (__ASSUME_CLONE_DEFAULT): Define as default.
14652 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14653 (__ASSUME_CLONE_BACKWARDS): Likewise.
14654 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14655 (__ASSUME_CLONE_BACKWARDS): Likewise.
14656 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14657 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14658
14659 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14660
14661 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14662
14663 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14664 time.
14665
14666 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14667 (do_test_limit): Likewise.
14668
14669 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14670 for every implementation.
14671 (do_test): Likewise.
14672
14673 * benchtests/bench-strncmp.c: Convert output to json.
14674
14675 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14676
14677 * io/futimens.c: Add missing start-of-file descriptive comment.
14678 * io/utime.c: Likewise.
14679 * misc/futimesat.c: Likewise.
14680 * misc/utimes.c: Likewise.
14681 * sysdeps/mach/hurd/futimesat.c: Likewise.
14682 * sysdeps/mach/hurd/utimes.c: Likewise.
14683 * sysdeps/posix/utime.c: Likewise.
14684 * sysdeps/posix/utimes.c: Likewise.
14685 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14686 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14687 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14688 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14689
14690 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14691
14692 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14693 hurd_futimes.
14694 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14695 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14696 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14697 (__futimens): Move implementation to...
14698 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14699 utime_tvalue_from_tspec): ... new helper functions.
14700 (hurd_futimens): New function.
14701 * sysdeps/mach/hurd/futimesat.c: New file.
14702 * sysdeps/mach/hurd/utimensat.c: New file.
14703
14704 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14705
14706 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14707 UTIME_OMIT): New macros.
14708 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14709 before reverting to converting time spec to time value and calling
14710 __file_utimes.
14711 * sysdeps/mach/hurd/utime-helper.c: New file.
14712 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14713 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14714 reverting to utime_tvalue_from_tval and __file_utimes.
14715 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14716 (__lutimes): Just call hurd_futimens after lookup.
14717 * sysdeps/mach/hurd/utimes.c: Likewise.
14718
14719 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14720
14721 * bits/sigaction.h: Add include guard.
14722 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14723 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14724 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14725 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14726 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14727 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14728 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14729 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14730 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14731
14732 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14733
14734 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14735 -Wmaybe-uninitialized for -Os.
14736 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14737 this disabling.
14738
14739 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14740
14741 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14742 __INO_T_MATCHES_INO64_T is defined.
14743 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14744 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14745 of definition.
14746 * dirent/alphasort64.c: Likewise.
14747 * dirent/scandir.c: Likewise.
14748 * dirent/scandir64-tail.c: Likewise.
14749 * dirent/scandir64.c: Likewise.
14750 * dirent/scandirat.c: Likewise.
14751 * dirent/scandirat64.c: Likewise.
14752 * dirent/versionsort.c: Likewise.
14753 * dirent/versionsort64.c: Likewise.
14754 * include/dirent.h: Likewise.
14755
14756 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14757 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14758 for socketpair endpoint.
14759 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14760 WRITE_BUFFER_SIZE as buffer size for sending socket.
14761 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14762 issue on system where send is implemented with sendto syscall.
14763 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14764 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14765 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14766 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14767
14768 [BZ #21269]
14769 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14770 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14771 sa_restorer for vDSO case.
14772 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14773
14774 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14775
14776 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14777 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14778 * hurd/hurd/ioctl.h: Include <mach/port.h>
14779 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14780 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14781 <mach/mach_types.h> and <mach/message.h>.
14782 (headers): Move mach/param.h to bits/mach/param.h.
14783 * sysdeps/mach/i386/mach/param.h: Move file to ...
14784 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14785 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14786 of <mach/param.h>.
14787 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14788 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14789 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14790 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14791 trivial, for C++ conformity.
14792 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14793 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14794 Process mig output through $(migheadersed).
14795 * hurd/Makefile (migheadersed): Define variable.
14796 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14797 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14798 headers.
14799 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14800 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14801 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14802 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14803 <bits/types/sigset_t.h>.
14804 [!defined __USE_GNU]: Do not #error out.
14805 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14806 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14807 Include <stddef.h> and <bits/types/sigset_t.h>
14808 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14809 instead of sighandler_t.
14810 * stdlib/errno.h (error_t): Move definition to...
14811 * bits/types/error_t.h: ... new header.
14812 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14813 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14814 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14815 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14816 * hurd/hurd.h: Include <bits/types/error_t.h>
14817 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14818 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14819 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14820 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14821 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14822 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14823 * sysdeps/mach/hurd/futimens.c: New file.
14824
14825 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14826
14827 [BZ #22918]
14828 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14829 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14830 * nscd/gai.c (__nss_hosts_database): Readd definition.
14831 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14832 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14833 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14834
14835 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14836
14837 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14838 (ifunc_one): Likewise.
14839
14840 2018-03-01 DJ Delorie <dj@delorie.com>
14841
14842 [BZ #22342]
14843 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14844 key value.
14845
14846 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14847
14848 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14849 `match_pid' parameter.
14850 (td_ta_thr_iter): Update accordingly.
14851
14852 2018-03-01 Florian Weimer <fweimer@redhat.com>
14853
14854 * nptl/Makefile (install-lib-ldscripts): Remove.
14855 (install): Remove rule.
14856 ($(inst_libdir)/libpthread.so): Likewise.
14857
14858 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14859
14860 [BZ #22896]
14861 * localedata/locales/an_ES: update month and day names,
14862 improve d_fmt, improve postal_fmt, add country_post,
14863 add country_isbn
14864
14865 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14866
14867 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14868 Ukrainian instead of Bulgarian.
14869
14870 2018-03-01 Florian Weimer <fweimer@redhat.com>
14871
14872 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14873 reference.
14874
14875 2018-03-01 Florian Weimer <fweimer@redhat.com>
14876
14877 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14878 * nptl/Makefile (routines): Add pthread_atfork.
14879 (static-only-routines): Set to pthread_atfork.
14880 (libpthread-routines): Remove pthread_atfork.
14881 (libpthread-static-only-routines): Remove.
14882 (install): Update comment.
14883 (libpthread.so): Do not install libpthread_nonshared.a.
14884 (tests): Do not link with libpthread_nonshared.a.
14885 (generated): Remove libpthread_nonshared.a.
14886 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14887 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14888 with libpthread_nonshared.a.
14889
14890 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14891
14892 [BZ #22902]
14893 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14894 (libc_feholdexcept_setroundf128): New macro.
14895 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14896
14897 [BZ #15105]
14898 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14899 libc_hidden_def.
14900 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14901 * include/inttypes.h: New file.
14902
14903 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14904
14905 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14906 -Os in two more places.
14907
14908 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14909
14910 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14911 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14912 be sorted correctly at the moment because of a bug.
14913
14914 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14915
14916 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14917 treat ñ as a primary different character, sync the collation
14918 for Spanish with CLDR.
14919 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14920 * localedata/Makefile: Add new test files.
14921 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14922 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14923 collation order.
14924 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14925 * localedata/am_ET.UTF-8.in: New test file.
14926 * localedata/az_AZ.UTF-8.in: Likewise.
14927 * localedata/be_BY.UTF-8.in: Likewise.
14928 * localedata/ber_DZ.UTF-8.in: Likewise.
14929 * localedata/ber_MA.UTF-8.in: Likewise.
14930 * localedata/bg_BG.UTF-8.in: Likewise.
14931 * localedata/br_FR.UTF-8.in: Likewise.
14932 * localedata/cmn_TW.UTF-8.in: Likewise.
14933 * localedata/crh_UA.UTF-8.in: Likewise.
14934 * localedata/csb_PL.UTF-8.in: Likewise.
14935 * localedata/cv_RU.UTF-8.in: Likewise.
14936 * localedata/cy_GB.UTF-8.in: Likewise.
14937 * localedata/dz_BT.UTF-8.in: Likewise.
14938 * localedata/eo.UTF-8.in: Likewise.
14939 * localedata/es_ES.UTF-8.in: Likewise.
14940 * localedata/fa_IR.UTF-8.in: Likewise.
14941 * localedata/fi_FI.UTF-8.in: Likewise.
14942 * localedata/fil_PH.UTF-8.in: Likewise.
14943 * localedata/fur_IT.UTF-8.in: Likewise.
14944 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14945 * localedata/ha_NG.UTF-8.in: Likewise.
14946 * localedata/ig_NG.UTF-8.in: Likewise.
14947 * localedata/ik_CA.UTF-8.in: Likewise.
14948 * localedata/kk_KZ.UTF-8.in: Likewise.
14949 * localedata/ku_TR.UTF-8.in: Likewise.
14950 * localedata/ky_KG.UTF-8.in: Likewise.
14951 * localedata/ln_CD.UTF-8.in: Likewise.
14952 * localedata/mi_NZ.UTF-8.in: Likewise.
14953 * localedata/ml_IN.UTF-8.in: Likewise.
14954 * localedata/mn_MN.UTF-8.in: Likewise.
14955 * localedata/mr_IN.UTF-8.in: Likewise.
14956 * localedata/mt_MT.UTF-8.in: Likewise.
14957 * localedata/nb_NO.UTF-8.in: Likewise.
14958 * localedata/om_KE.UTF-8.in: Likewise.
14959 * localedata/os_RU.UTF-8.in: Likewise.
14960 * localedata/ps_AF.UTF-8.in: Likewise.
14961 * localedata/ro_RO.UTF-8.in: Likewise.
14962 * localedata/ru_RU.UTF-8.in: Likewise.
14963 * localedata/sc_IT.UTF-8.in: Likewise.
14964 * localedata/se_NO.UTF-8.in: Likewise.
14965 * localedata/sq_AL.UTF-8.in: Likewise.
14966 * localedata/sv_SE.UTF-8.in: Likewise.
14967 * localedata/szl_PL.UTF-8.in: Likewise.
14968 * localedata/tg_TJ.UTF-8.in: Likewise.
14969 * localedata/tk_TM.UTF-8.in: Likewise.
14970 * localedata/tt_RU.UTF-8.in: Likewise.
14971 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14972 * localedata/ug_CN.UTF-8.in: Likewise.
14973 * localedata/uz_UZ.UTF-8.in: Likewise.
14974 * localedata/vi_VN.UTF-8.in: Likewise.
14975 * localedata/yi_US.UTF-8.in: Likewise.
14976 * localedata/yo_NG.UTF-8.in: Likewise.
14977 * localedata/zh_CN.UTF-8.in: Likewise.
14978 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14979 file and fix bugs in the collation.
14980 * localedata/locales/az_AZ: Likewise.
14981 * localedata/locales/be_BY: Likewise.
14982 * localedata/locales/ber_DZ: Likewise.
14983 * localedata/locales/ber_MA: Likewise.
14984 * localedata/locales/bg_BG: Likewise.
14985 * localedata/locales/br_FR: Likewise.
14986 * localedata/locales/br_FR@euro: Likewise.
14987 * localedata/locales/ca_ES: Likewise.
14988 * localedata/locales/cns11643_stroke: Likewise.
14989 * localedata/locales/crh_UA: Likewise.
14990 * localedata/locales/cs_CZ: Likewise.
14991 * localedata/locales/csb_PL: Likewise.
14992 * localedata/locales/cv_RU: Likewise.
14993 * localedata/locales/cy_GB: Likewise.
14994 * localedata/locales/da_DK: Likewise.
14995 * localedata/locales/dz_BT: Likewise.
14996 * localedata/locales/en_CA: Likewise.
14997 * localedata/locales/eo: Likewise.
14998 * localedata/locales/es_CU: Likewise.
14999 * localedata/locales/es_EC: Likewise.
15000 * localedata/locales/es_ES: Likewise.
15001 * localedata/locales/es_US: Likewise.
15002 * localedata/locales/et_EE: Likewise.
15003 * localedata/locales/fa_IR: Likewise.
15004 * localedata/locales/fi_FI: Likewise.
15005 * localedata/locales/fil_PH: Likewise.
15006 * localedata/locales/fur_IT: Likewise.
15007 * localedata/locales/gez_ER@abegede: Likewise.
15008 * localedata/locales/ha_NG: Likewise.
15009 * localedata/locales/hr_HR: Likewise.
15010 * localedata/locales/hsb_DE: Likewise.
15011 * localedata/locales/hu_HU: Likewise.
15012 * localedata/locales/ig_NG: Likewise.
15013 * localedata/locales/ik_CA: Likewise.
15014 * localedata/locales/is_IS: Likewise.
15015 * localedata/locales/iso14651_t1_pinyin: Likewise.
15016 * localedata/locales/kk_KZ: Likewise.
15017 * localedata/locales/ku_TR: Likewise.
15018 * localedata/locales/ky_KG: Likewise.
15019 * localedata/locales/ln_CD: Likewise.
15020 * localedata/locales/lt_LT: Likewise.
15021 * localedata/locales/lv_LV: Likewise.
15022 * localedata/locales/mi_NZ: Likewise.
15023 * localedata/locales/ml_IN: Likewise.
15024 * localedata/locales/mn_MN: Likewise.
15025 * localedata/locales/mr_IN: Likewise.
15026 * localedata/locales/mt_MT: Likewise.
15027 * localedata/locales/nb_NO: Likewise.
15028 * localedata/locales/om_KE: Likewise.
15029 * localedata/locales/os_RU: Likewise.
15030 * localedata/locales/pl_PL: Likewise.
15031 * localedata/locales/ps_AF: Likewise.
15032 * localedata/locales/ro_RO: Likewise.
15033 * localedata/locales/ru_RU: Likewise.
15034 * localedata/locales/ru_UA: Likewise.
15035 * localedata/locales/sc_IT: Likewise.
15036 * localedata/locales/se_NO: Likewise.
15037 * localedata/locales/si_LK: Likewise.
15038 * localedata/locales/sq_AL: Likewise.
15039 * localedata/locales/sv_FI: Likewise.
15040 * localedata/locales/sv_FI@euro: Likewise.
15041 * localedata/locales/sv_SE: Likewise.
15042 * localedata/locales/szl_PL: Likewise.
15043 * localedata/locales/tg_TJ: Likewise.
15044 * localedata/locales/ti_ER: Likewise.
15045 * localedata/locales/tk_TM: Likewise.
15046 * localedata/locales/tl_PH: Likewise.
15047 * localedata/locales/tr_TR: Likewise.
15048 * localedata/locales/tt_RU: Likewise.
15049 * localedata/locales/tt_RU@iqtelif: Likewise.
15050 * localedata/locales/ug_CN: Likewise.
15051 * localedata/locales/uk_UA: Likewise.
15052 * localedata/locales/uz_UZ: Likewise.
15053 * localedata/locales/uz_UZ@cyrillic: Likewise.
15054 * localedata/locales/vi_VN: Likewise.
15055 * localedata/locales/yi_US: Likewise.
15056 * localedata/locales/yo_NG: Likewise.
15057
15058 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15059
15060 * gen-locales.mk: Make test files which contain @ modifiers in their
15061 name work.
15062 * localedata/gen-locale.sh: Likewise.
15063
15064 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15065
15066 * posix/tst-fnmatch.input: Fix results for range expressions
15067 for non C locales.
15068 * posix/tst-regexloc.c: Do not use a range expression for
15069 de_DE.ISO-8859-1 locale.
15070
15071 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15072
15073 * posix/bug-regex5.c: Fix test case because with the new
15074 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15075 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15076 file.
15077
15078 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15079
15080 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15081 downloaded from ISO, the collation order of @-. and space has changed.
15082 Therefore, this test file needed to be adapted.
15083 * localedata/fr_CA.UTF-8.in: Likewise.
15084 * localedata/fr_FR.UTF-8.in: Likewise.
15085 * localedata/uk_UA.UTF-8.in: Likewise.
15086
15087 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15088
15089 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15090 order of ȥ in the new iso14651_t1_common file.
15091 * localedata/pl_PL.UTF-8.in: Likewise.
15092
15093 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15094
15095 * localedata/locales/iso14651_t1_common: Add sections for various
15096 scripts to the iso14651_t1_common file.
15097
15098 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15099
15100 * localedata/locales/iso14651_t1_common: Use the code point of a
15101 character in the fourth collation level instead of IGNORE for all
15102 entries which have IGNORE on all 4 levels.
15103
15104 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15105
15106 * localedata/locales/iso14651_t1_common: Add some convenient collation
15107 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15108 rules similar to those in CLDR.
15109
15110 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15111
15112 * localedata/locales/iso14651_t1_common: The new version of this
15113 file downloaded from ISO contained several syntax errors which
15114 are fixed by this patch.
15115
15116 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15117
15118 * localedata/locales/iso14651_t1_common: replace all <U.....>
15119 with <U000.....> because glibc understands only 4 digit or 8 digit
15120
15121 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15122
15123 * localedata/locales/iso14651_t1_common: Necessary changes
15124 to make the file downloaded from ISO usable by glibc.
15125
15126 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15127
15128 [BZ #14095]
15129 * localedata/locales/iso14651_t1_common: Update file to
15130 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15131
15132 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15133
15134 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15135 of <nptl/pthreadP.h>
15136 (thread_attr_compare): Move function to...
15137 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15138 * sysdeps/nptl/timer_routines.h: ... new header.
15139 * sysdeps/mach/hurd/gai_misc.h: New file.
15140
15141 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15142
15143 * string/strcoll_l.c: Include <libc-diag.h>.
15144 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15145 declarations of seq1 and seq2.
15146
15147 [BZ #15105]
15148 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15149 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15150
15151 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15152
15153 [BZ #22433]
15154 [BZ #22807]
15155 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15156 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15157 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15158 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15159 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15160 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15161
15162 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15163
15164 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15165 macros used in __ptrace_request.
15166
15167 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15168
15169 [BZ #22792]
15170 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15171 to $(CC).
15172 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15173 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15174 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15175 <tcb-offsets.h>.
15176
15177 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15178
15179 [BZ #15105]
15180 * ctype/ctype.c (tolower): Use libc_hidden_def.
15181 (toupper): Likewise.
15182 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15183 [!_ISOMAC] (toupper): Likewise.
15184
15185 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15186
15187 * localedata/Makefile: Remove --quiet argument when
15188 installing locales
15189
15190 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15191
15192 [BZ #17438]
15193 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15194 in d_fmt.
15195 * localedata/locales/pt_PT (LC_TIME): likewise
15196
15197 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15198
15199 [BZ #22646]
15200 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15201 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15202 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15203
15204 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15205
15206 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15207
15208 * nptl/Makefile (routines): Remove unregister-atfork.
15209 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15210 (fork_handler_alloc): Remove function.
15211 (fork_handlers, fork_handler_init): New variables.
15212 (__fork_lock): Rename to atfork_lock.
15213 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15214 to use a dynamic array to add/remove atfork handlers.
15215 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15216 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15217 Remove declaration.
15218 (fork_handler): Remove next, refcntr, and need_signal member.
15219 (__run_fork_handler_type): New enum.
15220 (__run_fork_handlers): New prototype.
15221 * nptl/register-atfork.c: Remove file.
15222 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15223
15224 * sysdeps/nptl/nptl-signals.h: Move to ...
15225 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15226 comments.
15227 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15228 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15229 unnecessary check for SIGTIMER.
15230 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15231 remove unnecessary removal of SIGTIMER.
15232 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15233 include-signals.h rename.
15234 * nptl/pthreadP.h: Likewise.
15235 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15236 __is_internal_signal instead of __nptl_is_internal_signal.
15237
15238 2018-02-22 Andrew Waterman <andrew@sifive.com>
15239
15240 [BZ # 22884]
15241 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15242 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15243 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15244 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15245
15246 2018-02-22 DJ Delorie <dj@delorie.com>
15247
15248 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15249
15250 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15251
15252 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15253 do_misaligned, not misaligned8.
15254
15255 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15256
15257 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15258 Add memcpy_thunderx2.
15259 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15260 Increment to 4.
15261 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15262 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15263 and IS_THUNDERX2PA checks.
15264 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15265 Use macro to set name appropriately.
15266 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15267 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15268 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15269 New macro.
15270 (IS_THUNDERX2): New macro.
15271
15272 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15273
15274 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15275
15276 2018-02-21 Zack Weinberg <zackw@panix.com>
15277
15278 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15279 Define here, unconditionally.
15280 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15281 * libio/libioP.h: Remove #if 0 blocks.
15282 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15283 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15284 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15285
15286 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15287 Assume weak_alias is always defined.
15288
15289 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15290 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15291 Remove #if 0 and #ifdef TODO blocks.
15292 Assume text_set_element is always defined.
15293
15294 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15295 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15296 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15297
15298 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15299 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15300 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15301 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15302 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15303 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15304 Reformat bit flags for _flags field to make occupancy clearer.
15305 Update commentary.
15306 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15307 Keep definitions consistent with those in libio/libio.h.
15308
15309 * libio/libio.h (_IO_file_flags): Remove macro.
15310 All uses changed to _flags.
15311
15312 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15313 (__HAVE_COLUMN, _IO_BE): Don't define.
15314 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15315 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15316 * libio/libioP.h (EOF): Don't define.
15317 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15318 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15319 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15320 testing _IO_UNIFIED_JUMPTABLES.
15321
15322 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15323 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15324 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15325 (_IO_size_t): Delete; all uses changed to size_t.
15326 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15327 (_IO_off_t): Delete; all uses changed to off_t.
15328 (_IO_off64_t): Delete; all uses changed to off64_t.
15329 (_IO_pid_t): Delete; all uses changed to pid_t.
15330 (_IO_uid_t): Delete; all uses changed to uid_t.
15331 (_IO_wint_t): Delete; all uses changed to wint_t.
15332 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15333 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15334 (_IO_cookie_io_functions_t): Delete; all uses changed to
15335 cookie_io_functions_t.
15336 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15337 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15338 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15339 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15340
15341 * libio/iofopncook.c: Remove unnecessary forward declarations.
15342 * libio/iolibio.h: Correct outdated commentary.
15343 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15344 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15345 Remove unnecessary casts.
15346 * stdio-common/getline.c: Use _IO_getdelim directly.
15347 Don't redefine ssize_t.
15348 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15349 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15350 Remove outdated comments.
15351 * stdio-common/vfscanf.c: Don't redefine va_list.
15352
15353 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15354 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15355 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15356 which are always true, and __cplusplus, which is always false.
15357
15358 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15359
15360 [BZ #15105]
15361 [BZ #19463]
15362 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15363 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15364 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15365 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15366 libc_hidden_proto.
15367 [!_ISOMAC] (putc_unlocked): Likewise.
15368 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15369 define inline if [__USE_EXTERN_INLINES].
15370 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15371 putc_unlocked.
15372
15373 [BZ #15105]
15374 [BZ #19463]
15375 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15376 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15377 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15378 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15379 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15380 getc_unlocked.
15381 * time/tzfile.c (__tzfile_read): Likewise.
15382
15383 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15384
15385 [BZ #22517]
15386 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15387
15388 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15389
15390 * io/fcntl.h: Fix a typo in a comment.
15391
15392 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15393
15394 [BZ #22862]
15395 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15396 define _DEFAULT_SOURCE.
15397 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15398
15399 2018-02-21 Florian Weimer <fweimer@redhat.com>
15400
15401 [BZ #20890]
15402 * elf/cache.c (save_cache): Call fsync on temporary file before
15403 renaming it.
15404 (save_aux_cache): Call fdatasync on temporary file before renaming
15405 it.
15406
15407 2018-02-21 Florian Weimer <fweimer@redhat.com>
15408
15409 [BZ #22787]
15410 * include/caller.h: Remove file.
15411 * elf/dl-caller.c: Likewise.
15412 * elf/Makefile (dl-routines): Remove dl-caller.
15413 (shared-only-routines): Do not add dl-caller.
15414 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15415 __check_caller.
15416 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15417 member.
15418 (dl_open_worker): Do not call __check_caller.
15419 (_dl_open): Do not set caller_dl_open member.
15420 * elf/rtld.c (_rtld_global_ro): Do not initialize
15421 _dl_check_caller member.
15422 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15423 _dl_check_caller member.
15424 (_dl_check_caller): Remove declaration.
15425 * sysdeps/unix/sysv/linux/dl-execstack.c
15426 (_dl_make_stack_executable): Do not call __check_caller.
15427
15428 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15429
15430 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15431 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15432
15433 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15434
15435 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15436 description.
15437
15438 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15439
15440 [BZ #16335]
15441 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15442 of 199606L, 200112L, and 200809L.
15443 (_XOPEN_SOURCE): Document special values of 600 and 700.
15444 (_ISOC11_SOURCE): Document macro.
15445 (_ATFILE_SOURCE): Likewise.
15446 (_FORTIFY_SOURCE): Likewise.
15447
15448 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15449
15450 [BZ #15105]
15451 [BZ #19463]
15452 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15453 and define as weak alias of __ferror_unlocked. Use
15454 libc_hidden_weak.
15455 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15456 libc_hidden_proto.
15457 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15458 function if [__USE_EXTERN_INLINES].
15459 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15460 ferror_unlocked.
15461
15462 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15463
15464 [BZ #6889]
15465 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15466
15467 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15468
15469 [BZ #22818]
15470 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15471 the GLIBC_2.1 version.
15472
15473 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15474
15475 [BZ #21508]
15476 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15477 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15478 intl/tst-gettext-de.po from po/de.po by removing the
15479 POT-Creation-Date line.
15480 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15481 ../po/de.po.
15482 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15483 ../po/de.po.
15484
15485 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15486
15487 * mach/Makefile (headers): Add mach/param.h.
15488 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15489 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15490 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15491 (__ptsname_r): Move implementation to...
15492 (__ptsname_internal): ... new function. Add filling the STP
15493 structure.
15494
15495 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15496
15497 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15498 idouble to 1 ULP.
15499
15500 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15501
15502 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15503 syntax.
15504
15505 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15506
15507 * nptl/Makefile (tst-mutex8-ENV): Delete.
15508 * nptl/tst-mutex8.c (check_type):
15509 Add runtime check if mutex will be elided.
15510
15511 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15512
15513 [BZ #20980]
15514 [BZ #21234]
15515 * manual/install.texi (Configuring and compiling): Describe
15516 passing CC and CFLAGS on configure command line, not as
15517 environment variables. Use @code markup on those variables.
15518 Specify what options go in CC and what go in CFLAGS. Note the
15519 requirement to compile with optimization.
15520 * INSTALL: Regenerated.
15521
15522 [BZ #18124]
15523 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15524 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15525 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15526 __sigprocmask instead of sigprocmask.
15527 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15528 Likewise.
15529 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15530 __sigsetjmp and sigprocmask.
15531
15532 [BZ #15105]
15533 * include/argz.h (argz_next): Use libc_hidden_proto.
15534 (__argz_next): Likewise.
15535 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15536 (argz_next): Use libc_hidden_weak.
15537
15538 [BZ #15105]
15539 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15540 libc_hidden_proto.
15541 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15542 libc_hidden_def.
15543
15544 [BZ #15105]
15545 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15546 libc_hidden_proto.
15547 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15548
15549 [BZ #15105]
15550 [BZ #19463]
15551 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15552 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15553 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15554 (__feof_unlocked): New declaration, and inline function if
15555 [__USE_EXTERN_INLINES].
15556 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15557 instead of feof_unlocked.
15558 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15559 * nss/nsswitch.c (nss_parse_file): Likewise.
15560 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15561 Likewise.
15562 * time/getdate.c (__getdate_r): Likewise.
15563 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15564 Define as macro to call __feof_unlocked.
15565
15566 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15567
15568 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15569
15570 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15571
15572 * math/Makefile: Remove mpexp.c and mplog.c
15573 * sysdeps/i386/fpu/mpexp.c: Delete file.
15574 * sysdeps/i386/fpu/mplog.c: Likewise.
15575 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15576 * sysdeps/ia64/fpu/mplog.c: Likewise.
15577 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15578 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15579 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15580 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15581 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15582 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15583 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15584 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15585 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15586 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15587 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15588 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15589 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15590 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15591 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15592 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15593
15594 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15595
15596 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15597
15598 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15599
15600 * sysdeps/sh/libm-test-ulps: Update.
15601
15602 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15603
15604 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15605 idouble to 1 ULP.
15606
15607 2018-02-12 Zack Weinberg <zackw@panix.com>
15608
15609 [BZ #19239]
15610 * posix/sys/types.h: Don't include sys/sysmacros.h.
15611 * misc/sys/sysmacros.h: Remove the conditional deprecation
15612 warnings for the macros defined by this header.
15613
15614 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15615
15616 * manual/probes.texi: Remove slowexp probes.
15617 * math/Makefile: Remove slowexp.
15618 * sysdeps/generic/math_private.h (__slowexp): Remove.
15619 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15620 document error bounds.
15621 * sysdeps/i386/fpu/slowexp.c: Remove.
15622 * sysdeps/ia64/fpu/slowexp.c: Remove.
15623 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15624 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15625 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15626 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15627 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15628 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15629 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15630 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15631 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15632 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15633 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15634
15635 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15636
15637 [BZ #13932]
15638 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15639 * benchtests/pow-inputs: Update comment for slow path cases.
15640 * manual/probes.texi (slowpow_p10): Delete removed probe.
15641 (slowpow_p10): Likewise.
15642 * math/Makefile: Remove halfulp.c and slowpow.c.
15643 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15644 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15645 (__halfulp): Remove.
15646 (__slowpow): Remove.
15647 * sysdeps/i386/fpu/halfulp.c: Delete file.
15648 * sysdeps/i386/fpu/slowpow.c: Likewise.
15649 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15650 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15651 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15652 improve comments and add error analysis.
15653 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15654 (power1): Remove function:
15655 (log1): Remove error argument, add error analysis.
15656 (my_log2): Remove function.
15657 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15658 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15659 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15660 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15661 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15662 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15663 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15664 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15665 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15666 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15667 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15668 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15669 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15670 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15671
15672 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15673
15674 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15675 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15676
15677 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15678
15679 [BZ #22433]
15680 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15681 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15682 and PTRACE_SETHBPREGS.
15683
15684 2018-02-10 Zack Weinberg <zackw@panix.com>
15685
15686 [BZ #22830]
15687 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15688 correctly.
15689 * malloc/tst-malloc-stats-cancellation.c: New test case.
15690 * malloc/Makefile: Add new test case.
15691
15692 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15693
15694 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15695
15696 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15697
15698 * math/Makefile (libm-narrow-fns): Add add.
15699 (libm-test-funcs-narrow): Likewise.
15700 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15701 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15702 * math/gen-auto-libm-tests.c (test_functions): Add add.
15703 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15704 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15705 (NARROW_ADD_TRIVIAL): Likewise.
15706 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15707 macro.
15708 (__daddl): Likewise.
15709 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15710 dadd.
15711 (CFLAGS-nldbl-dadd.c): New variable.
15712 (CFLAGS-nldbl-fadd.c): Likewise.
15713 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15714 __nldbl_daddl.
15715 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15716 prototype.
15717 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15718 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15719 * math/auto-libm-test-in: Add tests of add.
15720 * math/auto-libm-test-out-narrow-add: New generated file.
15721 * math/libm-test-narrow-add.inc: New file.
15722 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15723 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15724 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15725 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15726 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15727 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15728 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15729 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15730 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15731 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15732 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15733 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15734 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15735 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15736 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15737 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15738 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15739 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15740 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15741 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15742 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15743 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15744 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15745 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15746 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15747 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15748 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15749 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15750 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15751 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15752 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15753 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15758 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15759 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15760 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15761 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15762 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15763 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15764 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15765 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15766 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15767 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15768
15769 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15770 (f128-pairs): New variable.
15771 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15772 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15773 to CFLAGS.
15774 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15775 Also make tests add $(f128-loader-link) to gnulib-tests.
15776
15777 2018-02-09 DJ Delorie <dj@redhat.com>
15778
15779 [BZ #22827]
15780 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15781 64-bit ELF type for 64-bit ELF objects.
15782
15783 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15784
15785 * math/libm-test-driver.c (snan_tests_arg): New variable.
15786 * math/libm-test-support.h (snan_tests_arg): New declaration.
15787 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15788
15789 * math/Makefile (test-type-pairs): New variable.
15790 (test-type-pairs-f64xf128-yes): Likewise.
15791 (tests): Add test-narrow-macros.
15792 (libm-test-funcs-narrow): New variable.
15793 (libm-test-c-narrow): Likewise.
15794 (generated): Add $(libm-test-c-narrow).
15795 (libm-tests-base-narrow): New variable.
15796 (libm-tests-narrow): Likewise.
15797 (libm-tests): Add $(libm-tests-narrow).
15798 (libm-tests-for-type): Handle $(libm-tests-narrow).
15799 (libm-test-c-narrow-obj): New variable.
15800 ($(libm-test-c-narrow-obj)): New rule.
15801 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15802 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15803 $(o-iterator) to set dependencies and CFLAGS.
15804 * math/gen-auto-libm-tests.c: Document use for narrowing
15805 functions.
15806 (output_for_one_input_case): Take argument NARROW.
15807 (generate_output): Likewise. Update call to
15808 output_for_one_input_case.
15809 (main): Take --narrow option. Update call to generate_output.
15810 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15811 (apply_lit): Update call to _apply_lit.
15812 (apply_arglit): New function.
15813 (parse_args): Handle "a" arguments.
15814 (parse_auto_input): Handle format names using ":".
15815 * math/README.libm-test: Document "a" parameter type.
15816 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15817 (ARG_TYPE_TRUE_MIN): Likewise.
15818 (ARG_TYPE_MAX): Likwise.
15819 (ARG_MIN_EXP): Likewise.
15820 (ARG_MAX_EXP): Likewise.
15821 (ARG_MANT_DIG): Likewise.
15822 (TEST_COND_arg_ibm128): Likewise.
15823 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15824 (TEST_COND_arg_fmt): New macro.
15825 (init_max_error): Update prototype.
15826 * math/libm-test-support.c (test_ibm128): New variable.
15827 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15828 instead of using [TEST_COND_ibm128] conditional.
15829 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15830 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15831 [TEST_NARROW] (TEST_MSG): New definition.
15832 (arg_plus_zero): New macro.
15833 (arg_minus_zero): Likewise.
15834 (arg_plus_infty): Likewise.
15835 (arg_minus_infty): Likewise.
15836 (arg_qnan_value_pl): Likewise.
15837 (arg_qnan_value): Likewise.
15838 (arg_snan_value_pl): Likewise.
15839 (arg_snan_value): Likewise.
15840 (arg_max_value): Likewise.
15841 (arg_min_value): Likewise.
15842 (arg_min_subnorm_value): Likewise.
15843 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15844 (RUN_TEST_LOOP_aa_f): New macro.
15845 (TEST_SUFF): New macro.
15846 (TEST_SUFF_STR): Likewise.
15847 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15848 (TEST_COND_any_ibm128): New macro.
15849 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15850 this_func. Update call to init_max_error.
15851 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15852 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15853 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15854 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15855 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15856 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15857 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15858 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15859 * math/test-math-vector.h (TEST_NARROW): Likewise.
15860 * math/test-arg-double.h: New file.
15861 * math/test-arg-float128.h: Likewise.
15862 * math/test-arg-float32x.h: Likewise.
15863 * math/test-arg-float64.h: Likewise.
15864 * math/test-arg-float64x.h: Likewise.
15865 * math/test-arg-ldouble.h: Likewise.
15866 * math/test-math-narrow.h: Likewise.
15867 * math/test-narrow-macros.c: Likewise.
15868 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15869 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15870 test-narrow-macros-ldbl-64.
15871 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15872
15873 * math/bits/mathcalls-narrow.h: New file.
15874 * include/bits/mathcalls-narrow.h: Likewise.
15875 * math/math-narrow.h: Likewise.
15876 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15877 (__MATHCALL_NARROW_ARGS_2): Likewise.
15878 (__MATHCALL_NARROW_ARGS_3): Likewise.
15879 (__MATHCALL_NARROW_NORMAL): Likewise.
15880 (__MATHCALL_NARROW_REDIR): Likewise.
15881 (__MATHCALL_NARROW): Likewise.
15882 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15883 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15884 defined.
15885 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15886 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15887 (libm-narrow-fns): New variable.
15888 (libm-narrow-types-basic): Likewise.
15889 (libm-narrow-types-ldouble-yes): Likewise.
15890 (libm-narrow-types-float128-yes): Likewise.
15891 (libm-narrow-types-float128-alias-yes): Likewise.
15892 (libm-narrow-types): Likewise.
15893 (libm-routines): Add narrowing functions.
15894 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15895 (libc_feholdexcept_setroundf128): New macro.
15896 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15897 * sysdeps/ieee754/float128/float128_private.h: Include
15898 <math/math-narrow.h>.
15899 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15900 Undefine and redefine.
15901 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15902 (libm_alias_float_ldouble): Undefine and redefine.
15903 (libm_alias_double_ldouble): Likewise.
15904
15905 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15906
15907 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15908
15909 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15910 FPCR/FPSR.
15911
15912 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15913
15914 * manual/creature.texi: Convert references to gcc.info to gcc.
15915 * manual/stdio.texi: Likewise.
15916 * manual/string.texi: Likewise.
15917
15918 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15919
15920 [BZ #17979]
15921 * posix/bits/types.h (__int_least8_t): New typedef.
15922 (__uint_least8_t): Likewise.
15923 (__int_least16_t): Likewise.
15924 (__uint_least16_t): Likewise.
15925 (__int_least32_t): Likewise.
15926 (__uint_least32_t): Likewise.
15927 (__int_least64_t): Likewise.
15928 (__uint_least64_t): Likewise.
15929 * sysdeps/generic/stdint.h (int_least8_t): Define using
15930 __int_least8_t.
15931 (int_least16_t): Define using __int_least16_t.
15932 (int_least32_t): Define using __int_least32_t.
15933 (int_least64_t): Define using __int_least64_t.
15934 (uint_least8_t): Define using __uint_least8_t.
15935 (uint_least16_t): Define using __uint_least16_t.
15936 (uint_least32_t): Define using __uint_least32_t.
15937 (uint_least64_t): Define using __uint_least64_t.
15938 * wcsmbs/uchar.h: Include <bits/types.h>.
15939 (char16_t): Define using __uint_least16_t conditional only on
15940 [!__USE_ISOCXX11].
15941 (char32_t): Define using __uint_least32_t conditional only on
15942 [!__USE_ISOCXX11].
15943 * wcsmbs/test-char-types.c: New file.
15944 * wcsmbs/Makefile (tests): Add test-char-types.
15945
15946 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15947 version to 4.0.1.
15948
15949 2018-02-07 Zack Weinberg <zackw@panix.com>
15950
15951 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15952 Delete all contents except for definitions of _G_HAVE_MMAP and
15953 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15954 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15955 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15956 change as above.
15957
15958 * libio/libio.h: Don't include bits/_G_config.h here.
15959 Include stddef.h with __need_wchar_t defined. Include
15960 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15961 Define _IO_iconv_t here, directly.
15962 Don't define _IO_HAVE_ST_BLKSIZE.
15963 * libio/libioP.h: Include _G_config.h here. Move include of
15964 shlib-compat.h up with rest of includes. Simplify conditionals
15965 controlling definition of _IO_JUMPS_OFFSET.
15966
15967 * csu/init.c: Remove always-true #if around entire file.
15968 Don't include stdio.h. Set _IO_stdin_used to hardwired
15969 constant 0x20001, and update commentary.
15970 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15971 Replace all uses of _G_va_list with __gnuc_va_list.
15972 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15973 instead of #if _IO_HAVE_ST_BLKSIZE.
15974 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15975 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15976 not #ifdef.
15977
15978 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15979 multiple-include guard to match.
15980 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15981 into this file.
15982 Remove preprocessor conditionals that are always true and/or
15983 redundant to other preprocessor conditionals in the same nest.
15984 Include shlib-compat.h unconditionally.
15985 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15986 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15987 defined after including stdio.h.
15988 Use __BEGIN_DECLS/__END_DECLS.
15989
15990 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15991 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15992 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15993
15994 2018-02-07 Zack Weinberg <zackw@panix.com>
15995
15996 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15997 New single-type headers split from _G_config.h.
15998 * libio/bits/types/cookie_io_functions_t.h
15999 * libio/bits/types/struct_FILE.h
16000 New single-type headers split from libio.h.
16001
16002 * libio/Makefile: Install the above new headers. Don't install
16003 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16004 bits/libio-ldbl.h.
16005 * libio/_G_config.h, libio/libio.h: Delete file.
16006
16007 * libio/bits/libio.h: Remove improper-inclusion guard.
16008 Include stdio.h and don't repeat anything that it does.
16009 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16010 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16011 __io_read_fn as cookie_read_function_t,
16012 __io_write_fn as cookie_write_function_t,
16013 __io_seek_fn as cookie_seek_function_t,
16014 __io_close_fn as cookie_close_function_t,
16015 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16016 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16017 here, in the "compatibility defines" section. Remove an #if 0
16018 block. Use the "body" macros from bits/types/struct_FILE.h to
16019 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16020 and _IO_ferror_unlocked.
16021 Move prototypes of __uflow and __overflow...
16022
16023 * libio/stdio.h: ...here. Don't include bits/libio.h.
16024 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16025 directly from stdarg.h. Include bits/types/__fpos_t.h,
16026 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16027 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16028 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16029 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16030 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16031 __ssize_t, not _IO_ssize_t. Unconditionally define
16032 BUFSIZ as 8192 and EOF as (-1).
16033
16034 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16035 macros from bits/types/struct_FILE.h instead of _IO_* macros
16036 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16037 instead of _IO_ssize_t.
16038 * libio/bits/stdio2.h: Similarly.
16039
16040 * libio/iolibio.h: Add multiple-include guard.
16041 Include bits/libio.h after stdio.h.
16042 * libio/libioP.h: Add multiple-include guard.
16043 Include stdio.h and bits/libio.h before iolibio.h.
16044
16045 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16046 * include/bits/types/cookie_io_functions_t.h
16047 * include/bits/types/struct_FILE.h: New wrappers.
16048
16049 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16050 Get definitions of _G_fpos_t and _G_fpos64_t from
16051 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16052 respectively. Remove improper-inclusion guards.
16053
16054 * conform/data/stdio.h-data: Update expectations of va_list.
16055 * scripts/check-installed-headers.sh: Remove special case for
16056 libio.h and _G_config.h.
16057
16058 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16059
16060 [BZ #15105]
16061 [BZ #19463]
16062 * include/sys/sysmacros.h [!_ISOMAC]
16063 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16064 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16065 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16066 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16067 libc_hidden_proto.
16068 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16069 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16070 Likewise.
16071 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16072 Undefine and redefine to add use __gnu_dev_ prefix.
16073 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16074 Likewise.
16075 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16076 and define as hidden inline function.
16077 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16078 Likewise.
16079 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16080 Likewise.
16081 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16082 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16083 (gnu_dev_minor): Likewise.
16084 (gnu_dev_makedev): Likewise.
16085 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16086 makedev.
16087 * posix/wordexp.c (exec_comm_child): Likewise.
16088 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16089 instead of minor and __gnu_dev_major instead of major.
16090 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16091 __gnu_dev_major instead of major.
16092 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16093 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16094 instead of gnu_dev_minor.
16095 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16096 (SLAVE_P): Likewise.
16097 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16098 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16099 instead of major.
16100
16101 [BZ #21313]
16102 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16103 in another place.
16104 * locale/weightwc.h (findidx): Likewise.
16105
16106 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16107
16108 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16109 (slowlog_inexact): Likewise
16110 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16111 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16112
16113 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16114
16115 [BZ #22797]
16116 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16117 missing second underscore to parameter name.
16118
16119 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16120
16121 [BZ #14508]
16122 [BZ #15512]
16123 [BZ #17082]
16124 [BZ #20530]
16125 * bits/byteswap.h: Update file comment. Do not include
16126 <bits/byteswap-16.h>.
16127 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16128 constant.
16129 (__bswap_16): Define as inline function.
16130 (__bswap_constant_32): Reformat definition.
16131 (__bswap_32): Always define as inline function, not macro, using
16132 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16133 otherwise __bswap_constant_32.
16134 (__bswap_constant_64): Reformat definition. Do not use
16135 __extension__ here.
16136 (__bswap_64): Always define as inline function, not macro. Use
16137 __extension__ on function definition. Use __builtin_bswap64 if
16138 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16139 * string/test-endian-file-scope.c: New file.
16140 * string/test-endian-sign-conversion.c: Likewise.
16141 * string/Makefile (headers): Remove bits/byteswap-16.h.
16142 (tests): Add test-endian-file-scope and
16143 test-endian-sign-conversion.
16144 (CFLAGS-test-endian-sign-conversion.c): New variable.
16145 * bits/byteswap-16.h: Remove file.
16146 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16147 * sysdeps/ia64/bits/byteswap.h: Likewise.
16148 * sysdeps/m68k/bits/byteswap.h: Likewise.
16149 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16150 * sysdeps/s390/bits/byteswap.h: Likewise.
16151 * sysdeps/tile/bits/byteswap.h: Likewise.
16152 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16153 * sysdeps/x86/bits/byteswap.h: Likewise.
16154
16155 [BZ #17721]
16156 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16157 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16158 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16159 199901L] (__restrict): Define to restrict.
16160
16161 [BZ #19667]
16162 * string/testcopy.c: Include <support/support.h>. Do not include
16163 <malloc.h>. Use <support/test-driver.c>.
16164 (main): Rename to do_test. Make static. Use xmalloc instead of
16165 malloc.
16166
16167 [BZ #13575]
16168 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16169 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16170 (SSIZE_MAX): Define to INT_MAX.
16171 * posix/test-ssize-max.c: New file.
16172 * posix/Makefile (tests): Add test-ssize-max.
16173
16174 [BZ #19668]
16175 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16176 <support/support.h>. Do not include <malloc.h>.
16177 (query_auxv): Use xmalloc instead of malloc.
16178
16179 [BZ #14553]
16180 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16181 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16182 instead of loff_t.
16183
16184 2018-02-06 Florian Weimer <fweimer@redhat.com>
16185
16186 [BZ #18023]
16187 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16188 Use scratch_buffer instead of extend_alloca.
16189
16190 2018-02-06 Zack Weinberg <zackw@panix.com>
16191
16192 * libio/stdio.h: Don't define getc or putc as macros.
16193 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16194 not _IO_getc and _IO_putc.
16195
16196 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16197 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16198
16199 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16200
16201 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16202 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16203
16204 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16205
16206 [BZ #14890]
16207 * elf/elf.h (NT_PRFPREG): New macro.
16208 (NT_S390_VXRS_LOW): Likewise.
16209 (NT_S390_VXRS_HIGH): Likewise.
16210 (NT_S390_GS_CB): Likewise.
16211 (NT_S390_GS_BC): Likewise.
16212 (NT_S390_RI_CB): Likewise.
16213
16214 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16215 (MAP_SYNC): New macro.
16216 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16217 Likewise.
16218 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16219 (MAP_SYNC): Likewise.
16220 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16221 (MAP_SYNC): Likewise.
16222 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16223 (MAP_SYNC): Likewise.
16224 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16225 (MAP_SYNC): Likewise.
16226 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16227 (MAP_SYNC): Likewise.
16228 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16229 (MAP_SYNC): Likewise.
16230 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16231 Likewise.
16232 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16233 Likewise.
16234
16235 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16236 (MAP_SHARED_VALIDATE): New macro.
16237 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16238 (MAP_SHARED_VALIDATE): Likewise.
16239
16240 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16241
16242 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16243 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16244 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16245
16246 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16247
16248 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16249 (DT_NUM): Updated to 35.
16250
16251 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16252
16253 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16254 __builtin_expect with __glibc_likely and __glibc_unlikely.
16255 (elf_machine_rela): Likewise.
16256 (elf_machine_lazy_rel): Likewise.
16257
16258 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16259
16260 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16261 __builtin_expect with __glibc_likely and __glibc_unlikely.
16262 (elf_machine_lazy_rel): Likewise.
16263
16264 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16265
16266 [BZ #22638]
16267 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16268 SHARED.
16269 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16270
16271 2018-02-05 Andreas Schwab <schwab@suse.de>
16272
16273 [BZ #22761]
16274 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16275 string.
16276
16277 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16278
16279 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16280 not check against PTHREAD_STACK_MIN.
16281
16282 2018-02-02 Sean McKean <smckean83@gmail.com>
16283
16284 [BZ #22735]
16285 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16286
16287 2018-02-02 Florian Weimer <fweimer@redhat.com>
16288
16289 [BZ #22753]
16290 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16291 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16292 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16293 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16294 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16295 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16296 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16297 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16298 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16299 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16300 * misc/tst-preadvwritev2.c (do_test): Call it.
16301 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16302
16303 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16304
16305 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16306
16307 * benchtests/bench-memcmp.c: Print json instead of plain text.
16308
16309 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16310 every test run.
16311
16312 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16313
16314 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16315 version to 4.15.
16316 (s390_sthyi): New syscall.
16317
16318 * sysdeps/generic/ldbl-classify-compat.h: New file.
16319 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16320 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16321 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16322 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16323 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16324 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16325 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16326 <ldbl-classify-compat.h>.
16327 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16328 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16329 <ldbl-classify-compat.h>.
16330 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16331 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16332 <ldbl-classify-compat.h>.
16333 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16334 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16335 <ldbl-classify-compat.h>.
16336 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16337 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16338 <ldbl-classify-compat.h>.
16339 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16340 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16341 <ldbl-classify-compat.h>.
16342 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16343 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16344 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16345 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16346 * sysdeps/microblaze/math_private.h: Likewise.
16347 * sysdeps/nios2/math_private.h: Likewise.
16348 * sysdeps/sh/math_private.h: Likewise.
16349
16350 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16351 * sysdeps/m68k/coldfire/math_private.h: ... here.
16352 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16353 * sysdeps/tile/math_private.h: Likewise.
16354 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16355 Remove macro.
16356 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16357 Likewise.
16358
16359 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16360 Remove macro.
16361 (libc_fetestexcept): Likewise.
16362 (libc_feupdateenv_test): Likewise.
16363 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16364 (libc_fetestexcept): Likewise.
16365 (libc_feupdateenv_test): Likewise.
16366 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16367 (libc_fetestexcept): Likewise.
16368 (libc_feupdateenv_test): Likewise.
16369 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16370 (libc_fetestexcept): Likewise.
16371 (libc_feupdateenv_test): Likewise.
16372
16373 * sysdeps/generic/math_private.h
16374 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16375 New inline function.
16376 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16377 Likewise.
16378
16379 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16380 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16381 * sysdeps/generic/math_private.h
16382 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16383 inline function.
16384 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16385 Likewise.
16386 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16387 Likewise.
16388 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16389 Likewise.
16390 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16391 Likewise.
16392 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16393 Likewise.
16394 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16395 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16396 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16397 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16398 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16399 (__fegetenv): Likewise.
16400 (fesetenv): Likewise.
16401 (__fesetenv): Likewise.
16402 (feupdateenv): Likewise.
16403 (__feupdateenv): Likewise.
16404 (fegetround): Likewise.
16405 (__fegetround): Likewise.
16406 (fesetround): Likewise.
16407 (__fesetround): Likewise.
16408
16409 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16410 (feraiseexcept): New macro.
16411 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16412 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16413 Remove macro.
16414 (__feraiseexcept): Likewise.
16415 (feclearexcept): Likewise.
16416 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16417 (__feraiseexcept): Likewise.
16418 (feclearexcept): Likewise.
16419 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16420 (__feraiseexcept): Likewise.
16421 (feclearexcept): Likewise.
16422 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16423 (__feraiseexcept): Likewise.
16424 (feclearexcept): Likewise.
16425 (fetestexcept): Likewise.
16426
16427 * sysdeps/m68k/coldfire/math-tests.h: New file.
16428
16429 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16430 * sysdeps/m68k/bits/fenv.h: ... here.
16431 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16432 not define.
16433 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16434 Likewise.
16435 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16436 Likewise.
16437 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16438 Likewise.
16439 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16440 Likewise.
16441 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16442 Define to 0.
16443 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16444 (__FE_UNDEFINED): New enum constant.
16445 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16446 Do not define.
16447 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16448 Likewise.
16449 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16450 Likewise.
16451 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16452 to match generic bits/fenv.h.
16453 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16454 Do not define.
16455
16456 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16457 packed on bits.
16458 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16459 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16460 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16461 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16462
16463 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16464 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16465 Joseph Myers <joseph@codesourcery.com>
16466
16467 [BZ #21314]
16468 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16469 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16470 computation using c.
16471 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16472 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16473 computation using c.
16474
16475 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16476
16477 * version.h (RELEASE): Set to "development".
16478 (VERSION): Set to "2.27.9000".
16479 * NEWS (2.28): New section.
16480
16481 * version.h (RELEASE): Set to "stable".
16482 (VERSION): Set to "2.27".
16483 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16484
16485 * NEWS: Add the list of bugs fixed in 2.27.
16486
16487 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16488
16489 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16490 against PTHREAD_STACK_MIN.
16491
16492 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16493
16494 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16495 New entries.
16496 (Rafal Luzynski, Andreas Schwab): Update.
16497
16498 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16499
16500 [BZ #10871]
16501 * NEWS: List the languages which actually use the alternative
16502 months feature in this release. Also explain that "alt_mon" and
16503 "ab_alt_mon" are optional.
16504
16505 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16506
16507 [BZ #22765]
16508 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16509
16510 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16511
16512 * manual/install.texi (Tools for Compilation): Update the newest
16513 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16514 * INSTALL: Regenerated.
16515
16516 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16517
16518 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16519 instead of __builtin_expect.
16520
16521 2018-01-30 Florian Weimer <fweimer@redhat.com>
16522
16523 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16524 data.
16525 * nss/tst-nss-getpwent.c (do_test): Likewise.
16526
16527 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16528
16529 [BZ #10871]
16530 * localedata/locales/hr_HR (mon): Rename to...
16531 (alt_mon): This.
16532 (mon): Import from CLDR (genitive case).
16533 (d_t_fmt): Update the comment.
16534
16535 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16536
16537 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16538 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16539 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16540
16541 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16542
16543 * mach/Versions: Fix version when __mach_host_self_ was added.
16544 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16545 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16546 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16547 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16548 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16549 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16550 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16551 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16552 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16553 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16554 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16555 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16556 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16557 || to respect codestyle.
16558 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16559 (do_test_bz20181): Rename accordingly.
16560 * malloc/malloc.c: Include <assert.h>.
16561 (assert): Do not define.
16562 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16563 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16564 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16565 * sysdeps/mach/hurd/hp-timing.h: New file.
16566 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16567
16568 2018-01-29 Darius Rad <darius@bluespec.com>
16569
16570 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16571
16572 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16573
16574 * sysdeps/init_array/crti.S (.section .init_array): Add
16575 PREINIT_FUNCTION when defined.
16576 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16577 * config.h.in: Regenerate.
16578 * manual/platform.texi: Add RISC-V documenation for
16579 __riscv_flush_icache.
16580 * sysdeps/riscv/__longjmp.S: New file.
16581 * sysdeps/riscv/backtrace.c: Likewise.
16582 * sysdeps/riscv/bits/endian.h: Likewise.
16583 * sysdeps/riscv/bits/setjmp.h: Likewise.
16584 * sysdeps/riscv/bits/wordsize.h: Likewise.
16585 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16586 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16587 * sysdeps/riscv/dl-trampoline.S: Likewise.
16588 * sysdeps/riscv/gccframe.h: Likewise.
16589 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16590 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16591 * sysdeps/riscv/machine-gmon.h: Likewise.
16592 * sysdeps/riscv/memusage.h: Likewise.
16593 * sysdeps/riscv/setjmp.S: Likewise.
16594 * sysdeps/riscv/sys/asm.h: Likewise.
16595 * sysdeps/riscv/tls-macros.h: Likewise.
16596 * sysdeps/riscv/dl-tls.h: New file.
16597 * sysdeps/riscv/libc-tls.c: Likewise.
16598 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16599 * sysdeps/riscv/nptl/tls.h: Likewise.
16600 * sysdeps/riscv/stackinfo.h: Likewise.
16601 * sysdeps/riscv/bits/fenv.h: New file.
16602 * sysdeps/riscv/e_sqrtl.c: Likewise.
16603 * sysdeps/riscv/fpu_control.h: Likewise.
16604 * sysdeps/riscv/math-tests.h: Likewise.
16605 * sysdeps/riscv/nofpu/Implies: Likewise.
16606 * sysdeps/riscv/sfp-machine.h: Likewise.
16607 * sysdeps/riscv/tininess.h: Likewise.
16608 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16609 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16610 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16611 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16612 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16613 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16614 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16615 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16616 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16617 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16618 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16619 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16620 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16621 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16622 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16623 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16624 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16625 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16626 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16627 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16628 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16629 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16630 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16631 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16632 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16633 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16634 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16635 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16636 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16637 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16638 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16639 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16640 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16641 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16642 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16643 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16644 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16645 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16646 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16647 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16648 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16649 * sysdeps/riscv/rvf/math_private.h: Likewise.
16650 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16651 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16652 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16653 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16654 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16655 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16656 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16657 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16658 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16659 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16660 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16661 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16662 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16663 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16664 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16665 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16666 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16667 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16668 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16669 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16670 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16671 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16672 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16673 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16674 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16675 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16676 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16677 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16678 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16679 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16680 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16681 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16682 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16683 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16684 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16685 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16686 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16687 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16688 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16689 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16690 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16691 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16692 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16693 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16694 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16695 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16696 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16697 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16698 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16699 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16700 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16701 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16702 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16703 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16704 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16705 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16706 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16707 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16708 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16709 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16710 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16711 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16712 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16713 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16714 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16715 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16716 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16717 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16718 * sysdeps/riscv/Implies: New file.
16719 * sysdeps/riscv/Makefile: Likewise.
16720 * sysdeps/riscv/configure: Likewise.
16721 * sysdeps/riscv/configure.ac: Likewise.
16722 * sysdeps/riscv/nptl/Makefile: Likewise.
16723 * sysdeps/riscv/preconfigure: Likewise.
16724 * sysdeps/riscv/rv64/Implies-after: Likewise.
16725 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16726 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16727 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16728 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16729 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16730 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16731 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16732 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16733 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16734 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16735 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16736 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16737 (Config): Likewise.
16738
16739 2018-01-29 Florian Weimer <fweimer@redhat.com>
16740
16741 [BZ #22701]
16742 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16743 libnsl_hidden_proto.
16744 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16745 libnsl_hidden_proto.
16746 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16747 * nis/Makefile (libnsl-routines): Add nss-default only for
16748 build-obsolete-nsl.
16749 * nis/nis_defaults.c (__nis_default_ttl): Add
16750 libnsl_hidden_nolink_def.
16751 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16752 declaration.
16753 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16754 * nis/ypclnt.c (yp_maplist): Likewise.
16755
16756 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16757
16758 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16759 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16760
16761 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16762
16763 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16764 clean -dxfq for git updates when replacing sources.
16765
16766 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16767 --disable-libcilkrts unconditionally, not just for the final GCC
16768 build for Hurd.
16769
16770 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16771 version to 4.15.
16772
16773 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16774
16775 [BZ #10871]
16776 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16777 case).
16778
16779 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16780
16781 [BZ #10871]
16782 * localedata/locales/be_BY (mon): Rename to...
16783 (alt_mon): This, then synchronize with CLDR (nominative case).
16784 (abmon): Rename to...
16785 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16786 (mon): Import from CLDR (genitive case).
16787 (abmon): Likewise.
16788 * localedata/locales/be_BY@latin (mon): Rename to...
16789 (alt_mon): This.
16790 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16791
16792 * localedata/locales/be_BY@latin (lang_name): Reworded to
16793 "biełaruskaja mova".
16794
16795 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16796
16797 [BZ #10871]
16798 * localedata/locales/el_CY (mon): Renamed to...
16799 (alt_mon): This.
16800 (mon): Import from CLDR (genitive case).
16801 * localedata/locales/el_GR: Likewise.
16802
16803 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16804
16805 [BZ #10871]
16806 * localedata/locales/ru_RU (mon): Rename to...
16807 (alt_mon): This.
16808 (abmon): Rename to...
16809 (ab_alt_mon): This.
16810 (mon): Import from CLDR (genitive case).
16811 (abmon): Copy from the old content except the 5th month which is
16812 now in the genitive case, even when abbreviated.
16813 * localedata/locales/ru_UA: Likewise.
16814 * time/tst-strptime.c (day_tests): Add an actual example of
16815 a difference between %b and %Ob in Russian.
16816
16817 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16818
16819 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16820 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16821 a `c' variable.
16822 * resolv/res-close.c: Include <stdlib.h>.
16823 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16824 <sys/wait.h>, <time.h>, <sys/uio.h>.
16825 (NOT_CANCEL_H): Add inclusion guard.
16826 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16827 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16828 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16829 return 0.
16830 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16831 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16832 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16833 instead of void *.
16834 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16835 timer_ptr2id to cast struct timer_node * to void *.
16836 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16837 --disable-libcilkrts to gcc configure.
16838 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16839 and make them the default for now.
16840 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16841 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16842 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16843 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16844 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16845 MACH_IPC_COMPAT.
16846 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16847 __task_terminate would ever return successfully.
16848 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16849 to global scope.
16850 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16851 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16852 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16853 critical section to make code simpler and avoid warning.
16854 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16855 critical section to make code simpler and avoid warning.
16856 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16857 const char * instead of char *.
16858 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16859 __hurd_file_name_split, hurd_file_name_split,
16860 __hurd_directory_name_split, hurd_directory_name_split,
16861 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16862 hurd_file_name_path_lookup): Make lookup function parameter take a
16863 const char *name instead of char *name.
16864 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16865 __hurd_directory_name_split): Likewise.
16866 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16867 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16868 * sysdeps/mach/hurd/check_native.c: New file.
16869 * sysdeps/mach/hurd/check_pf.c: New file.
16870 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16871 (__freeifaddrs): Define macro to freeifaddrs.
16872 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16873 * sysdeps/mach/libmachuser.abilist: New file.
16874 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16875 (do_test_bz20181): Rename accordingly.
16876 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16877 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16878 <sys/mount.h>.
16879 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16880 version only if __USE_EXTERN_INLINES is defined.
16881 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16882 __hurd_sockfail): Likewise.
16883 (_hurd_fd_get): Always declare functions, and provide inline versions
16884 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16885 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16886 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16887 _hurd_port_set): Always declare functions, and provide inline versions
16888 only if __USE_EXTERN_INLINES and _LIBC are defined and
16889 IS_IN(libc).
16890 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16891 _hurd_critical_section_unlock): Likewise.
16892 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16893 * __hurd_threadvar_location): Likewise.
16894 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16895 _hurd_userlink_clear): Likewise.
16896 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16897 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16898 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16899 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16900 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16901 __spin_lock_locked): Likewise.
16902 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16903 __spin_lock_locked): Likewise.
16904 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16905 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16906 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16907 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16908 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16909 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16910 _POSIX_NO_TRUNC): Define to 0.
16911 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16912 check size against PTHREAD_STACK_MIN.
16913 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16914 IS_IN(libpthread)]: Include <sigsetops.h>.
16915 * mach/Makefile (user-interfaces): Add mach/gnumach.
16916 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16917 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16918 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16919 instead of invalid -1.
16920 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16921 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16922 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16923 <net/ppp_defs.h>.
16924
16925 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16926
16927 * hurd/fcntl-internal.h: New file.
16928
16929 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16930
16931 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16932
16933 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16934
16935 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16936
16937 [BZ #22701]
16938 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16939 Build only shared objects.
16940
16941 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16942
16943 * README: Update for hppa.
16944
16945 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16946
16947 * sysdeps/sparc/fpu/libm-test-ulps: Update
16948 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16949
16950 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16951
16952 Revert:
16953
16954 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16955
16956 [BZ #22563]
16957 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16958 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16959 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16960 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16961 to feature_1.
16962
16963 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16964
16965 [BZ #22563]
16966 * bits/types/__cancel_jmp_buf_tag.h: New file.
16967 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16968 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16969 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16970 * nptl/Makefile (headers): Add
16971 bits/types/__cancel_jmp_buf_tag.h.
16972 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16973 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16974 * sysdeps/nptl/pthread.h: Include
16975 <bits/types/__cancel_jmp_buf_tag.h>.
16976 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16977 __cancel_jmp_buf.
16978 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16979
16980 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16981
16982 [BZ #10871]
16983 * localedata/locales/uk_UA (mon): Renamed to...
16984 (alt_mon): This.
16985 (alt_digits): "0" removed and then renamed to...
16986 (mon): This.
16987 (date_fmt): Definition changed not to use the alternative
16988 digits hack.
16989
16990 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16991
16992 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16993 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16994 * elf/elf.h (EF_RISCV_RVC): New define.
16995 (EF_RISCV_FLOAT_ABI): Likewise.
16996 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16997 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16998 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16999 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17000 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17001 define.
17002 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17003
17004 2018-01-25 Andreas Schwab <schwab@suse.de>
17005
17006 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17007 single quotes.
17008 * sysdeps/gnu/configure: Regenerate.
17009 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17010 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17012 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17013 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17014 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17015 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17016 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17017
17018 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17019
17020 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17021 URL, and run autoconf, make it the default for now.
17022
17023 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17024
17025 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17026 soft-float ColdFire configuration.
17027
17028 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17029 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17030 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17031
17032 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17033 MicroBlaze file.
17034
17035 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17036 ....
17037 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17038 ... here.
17039 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17040 New file.
17041
17042 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17043 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17044 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17045 file.
17046
17047 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17048
17049 [BZ #22742]
17050 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17051 Rename to __reserved and add comment.
17052 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17053 Rename to __reserved.
17054
17055 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17056
17057 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17058 i686-gnu configurations.
17059 (Context.run_builds): Include mig, gnumach and hurd in components
17060 considered.
17061 (Context.checkout): Add mig, gnumach and hurd to components.
17062 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17063 hurd.
17064 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17065 (Config.build): Install gnumach headers, build mig and install
17066 hurd headers for 'gnu' OS.
17067 (Config.install_gnumach_headers): New function.
17068 (Config.install_hurd_headers): Likewise.
17069 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17070 when building for 'gnu' OS.
17071
17072 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17073
17074 * manual/tunables.texi (Hardware Capability Tunables): Fix
17075 spelling.
17076
17077 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17078
17079 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17080 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17081 (ALTMON_11, ALTMON_12): Improve documentation.
17082 * manual/time.texi (strftime): Likewise.
17083
17084 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17085
17086 [BZ #10871]
17087 * localedata/locales/pl_PL: Alternative month names added,
17088 primary month names are genitive now.
17089 * time/tst-strptime.c (day_tests): Actually use a genitive case
17090 of a month name in Polish language.
17091
17092 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17093
17094 [BZ #10871]
17095 * manual/locale.texi: Document ALTMON_1..12 constants for
17096 nl_langinfo. Specify when to use ALTMON instead of MON.
17097 * manual/time.texi (strftime, strptime): Document GNU extension
17098 permitting O modifier with %B and %b. Specify when to use
17099 %OB instead of %B.
17100
17101 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17102
17103 [BZ #10871]
17104 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17105 names, define them as the same as abbreviated month names explicitly.
17106 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17107 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17108 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17109 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17110 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17111 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17112 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17113 _NL_WABALTMON_12): New enum constants.
17114 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17115 wab_alt_mon, and ab_alt_mon_defined members.
17116 (time_output): Output ab_alt_mon and wab_alt_mon members.
17117 (time_read): Read them, initialize them as copies of abmon and wabmon
17118 respectively if they are missing, initialize ab_alt_mon_defined.
17119 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17120 * locale/programs/locfile-kw.h: Regenerate.
17121 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17122 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17123 and ru_RU.UTF-8.
17124 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17125 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17126 (__strftime_internal): Handle %Ob and %Oh formats.
17127 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17128 (__strptime_internal): Handle %Ob and %Oh formats.
17129 * time/tst-strptime.c (day_tests): Add more tests to parse different
17130 forms of month names including the new %Ob format specifier.
17131
17132 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17133
17134 [BZ #10871]
17135 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17136 define them as the same as primary full month names explicitly.
17137 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17138 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17139 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17140 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17141 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17142 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17143 _NL_WALTMON_12): New enum constants.
17144 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17145 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17146 macros.
17147 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17148 walt_mon, and alt_mon_defined members.
17149 (time_output): Output alt_mon and walt_mon members.
17150 (time_read): Read them, initialize them as copies of mon and wmon
17151 respectively if they are missing, initialize alt_mon_defined.
17152 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17153 * locale/programs/locfile-kw.h: Regenerate.
17154 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17155 * localedata/tst-langinfo.c (map): Add tests for the new constants
17156 ALTMON_1 .. ALTMON_12.
17157 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17158 and pl_PL.UTF-8.
17159 * time/strftime_l.c (f_altmonth): New macro.
17160 (__strftime_internal): Handle %OB format.
17161 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17162 (__strptime_internal): Handle %OB format.
17163 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17164 of month names including the new %OB format specifier.
17165
17166 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17167
17168 [BZ #22685]
17169 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17170 from ABORT_TRANSACTION.
17171 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17172 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17173 ABORT_TRANSACTION_IMPL): Likewise.
17174 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17175 Linux code, but remove the code that aborts transactions.
17176
17177 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17178
17179 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17180
17181 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17182
17183 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17184 in date: "2004-14-09" should be "2004-09-14".
17185 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17186 "2003-15-09" should be "2003-09-15".
17187
17188 2018-01-18 Arjun Shankar <arjun@redhat.com>
17189
17190 [BZ #22343]
17191 [BZ #22774]
17192 CVE-2018-6485
17193 CVE-2018-6551
17194 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17195 after padding.
17196 (_int_memalign): check for integer overflow before calling
17197 _int_malloc.
17198 * malloc/tst-malloc-too-large.c: New test.
17199 * malloc/Makefile: Add tst-malloc-too-large.
17200
17201 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17202
17203 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17204 in date: "2017-24-07" should be "2017-07-24".
17205 * localedata/locales/mai_IN: Likewise.
17206 * localedata/locales/mai_NP: Likewise.
17207
17208 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17209
17210 * po/ru.po: Update translations.
17211
17212 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17213
17214 [BZ #22719]
17215 * sysdeps/hppa/backtrace.c: New file.
17216
17217 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17218
17219 [BZ #22715]
17220 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17221 align La_x86_64_retval to VEC_SIZE.
17222
17223 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17224
17225 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17226 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17227
17228 2018-01-16 Florian Weimer <fweimer@redhat.com>
17229
17230 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17231 Move tst-thread-exit-clobber ...
17232 [$(CXX)] (tests-unsupported): ... to here.
17233
17234 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17235
17236 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17237 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17238 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17239 (_dl_aarch64_cap_flags): Update.
17240 (_DL_HWCAP_COUNT): Update.
17241
17242 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17243
17244 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17245 (_DL_HWCAP_LAST): Remove.
17246 (_DL_HWCAP_COUNT): Move to ...
17247 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17248 (_DL_HWCAP_COUNT): ... here.
17249
17250 2018-01-16 Florian Weimer <fweimer@redhat.com>
17251
17252 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17253 mode with GNU extensions.
17254
17255 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17256
17257 * elf/elf.h (NT_ARM_SVE): Define.
17258
17259 2018-01-15 Florian Weimer <fweimer@redhat.com>
17260
17261 [BZ #22636]
17262 * nptl/tst-minstack-throw.cc: New file.
17263 * nptl/Makefile (tests): Add tst-minstack-throw.
17264 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17265 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17266
17267 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17268
17269 * scripts/build-many-glibcs.py (Context.checkout): Default
17270 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17271 version to 1.1.0.
17272
17273 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17274
17275 [BZ #22707]
17276 * elf/elf.h (DF_1_STUB): Define.
17277 (DF_1_PIE): Define.
17278
17279 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17280
17281 [BZ #22697]
17282 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17283 Do not add 0.5 to integer or out-of-range arguments.
17284
17285 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17286
17287 * po/bg.po: Update translations.
17288 * po/cs.po: Likewise.
17289 * po/de.po: Likewise.
17290 * po/ko.po: Likewise.
17291 * po/pl.po: Likewise.
17292 * po/sv.po: Likewise.
17293 * po/uk.po: Likewise.
17294 * po/vi.po: Likewise.
17295
17296 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17297
17298 * aarch64/start.S (_start): Use __wrap_main.
17299 (__wrap_main): New local symbol.
17300
17301 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17302
17303 [BZ #22679]
17304 CVE-2018-1000001
17305 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17306 generic_getcwd if the path returned by getcwd syscall is not absolute.
17307 * io/tst-getcwd-abspath.c: New test.
17308 * io/Makefile (tests): Add tst-getcwd-abspath.
17309
17310 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17311
17312 * malloc/malloc.c (malloc_consolidate): Add size check.
17313
17314 2018-01-12 Florian Weimer <fweimer@redhat.com>
17315
17316 * support/write_message.c (write_message): Preserve errno.
17317 * support/check.c (print_failure): Likewise.
17318 * support/support_test_verify_impl.c (support_test_verify_impl):
17319 Likewise.
17320 * support/support_test_compare_failure.c
17321 (support_test_compare_failure): Likewise.
17322
17323 2018-01-12 Florian Weimer <fweimer@redhat.com>
17324
17325 [BZ #22701]
17326 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17327 Prevent installation of libnsl.so.
17328 (libnsl-inhibit-o): Do not build (or install) static libraries.
17329
17330 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17331
17332 [BZ #22657]
17333 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17334 before the day number which may produce a double space.
17335 (date_fmt): Likewise.
17336
17337 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17338
17339 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17340 instead of fegetenv.
17341
17342 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17343
17344 [BZ #22702]
17345 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17346 comment to say exceptions are discarded.
17347 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17348 __fegetenv.
17349 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17350 be enabled.
17351
17352 2018-01-11 Florian Weimer <fweimer@redhat.com>
17353
17354 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17355 and error message.
17356
17357 2018-01-11 Florian Weimer <fweimer@redhat.com>
17358
17359 [BZ #22636]
17360 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17361 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17362
17363 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17364
17365 [BZ #22693]
17366 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17367 negative arguments in test for NaN or infinity argument.
17368
17369 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17370
17371 * po/libc.pot: Regenerate.
17372
17373 2018-01-10 Florian Weimer <fweimer@redhat.com>
17374
17375 [BZ #22636]
17376 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17377 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17378
17379 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17380
17381 * hurd/hurd/fd.h: Include <fcntl.h>
17382 (__hurd_at_flags): New function.
17383 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17384 with call to __hurd_at_flags.
17385 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17386 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17387 __faccessat
17388 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17389 (__access_noerrno): Use __faccessat_common instead of access_common.
17390 (__access): Likewise.
17391 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17392 with a call to __faccessat.
17393 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17394 (__faccessat_common): ... this. Move implementation of __access into it when
17395 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17396 reauthenticate_cwdir_at helper to implement AT mechanism.
17397 (__faccessat_noerrno): New function, just calls __faccessat_common.
17398 (__faccessat): New function, just calls __faccessat_common.
17399 (faccessat): Define weak alias.
17400
17401 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17402
17403 [BZ #22691]
17404 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17405 (CFLAGS-s_fmaxmagl.c): New variable.
17406 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17407
17408 [BZ #22690]
17409 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17410 long int for arguments of possibly overflowing addition or
17411 subtraction.
17412 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17413
17414 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17415
17416 [BZ #22688]
17417 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17418 (CFLAGS-e_remainderl.c): New variable.
17419
17420 [BZ #22687]
17421 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17422 variable.
17423 (CFLAGS-s_cacoshl.c): Likewise.
17424 (CFLAGS-s_casinhl.c): Likewise.
17425 (CFLAGS-s_catanl.c): Likewise.
17426 (CFLAGS-s_catanhl.c): Likewise.
17427 (CFLAGS-s_cexpl.c): Likewise.
17428 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17429 (CFLAGS-s_csinhl.c): Likewise.
17430 (CFLAGS-s_clogl.c): Likewise.
17431 (CFLAGS-s_clog10l.c): Likewise.
17432 (CFLAGS-s_csinl.c): Likewise.
17433 (CFLAGS-s_csqrtl.c): Likewise.
17434
17435 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17436 2017-01-09 Svante Signell <svante.signell@gmail.com>
17437
17438 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17439 (_hurd_exec_paths): New function.
17440 * hurd/hurd.h (_hurd_exec): Deprecate function.
17441 (_hurd_exec_paths): Declare function.
17442 * hurd/Versions: Export _hurd_exec_paths.
17443 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17444 (__execve): Use __getcwd to build absolute path, and use
17445 _hurd_exec_paths instead of _hurd_exec.
17446 * sysdeps/mach/hurd/spawni.c: Likewise.
17447 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17448 _hurd_exec.
17449
17450 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17451
17452 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17453 test instead of failing in case of ENOENT returned by posix_openpt.
17454
17455 2018-01-08 Florian Weimer <fweimer@redhat.com>
17456
17457 resolv: Support binary labels in test framework.
17458 * support/resolv_test.c (struct to_be_freed): Remove.
17459 (struct compressed_name): New.
17460 (allocate_compressed_name, ascii_tolower)
17461 (compare_compressed_name): New functions.
17462 (struct resolv_response_builder): Update type of
17463 compression_offsets for use with tsearch. Rempve to_be_freed.
17464 (response_push_pointer_to_free): Remove function.
17465 (resolv_response_add_name): Rewrite using struct compressed_name
17466 and tsearch instead of hsearch_r.
17467 (response_builder_allocate): Remove initialization of
17468 compression_offsets.
17469 (response_builder_free): Update for removal of to_be_freed. Use
17470 tdestroy instead of hdestroy_r.
17471 * resolv/Makefile (tests): Add tst-resolv-binary.
17472 (tst-resolv-binary): Link with -lresolv -lpthread.
17473
17474 2018-01-08 Florian Weimer <fweimer@redhat.com>
17475
17476 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17477 time. Pass positive flag instead of negative flag to
17478 support_test_compare_failure.
17479 (support_test_compare_failure): Change negative parameter to
17480 positive.
17481 * support/support_test_compare_failure.c (report)
17482 (support_test_compare_failure): Likewise.
17483 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17484 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17485
17486 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17487
17488 [BZ #22637]
17489 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17490 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17491 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17492 stacksize.
17493 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17494
17495 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17496
17497 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17498 Add s_sincosf-sse2 and s_sincosf-fma.
17499 (CFLAGS-s_sincosf-fma.c): New.
17500 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17501 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17502 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17503 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17504 __sincosf is defined.
17505
17506 2018-01-08 Florian Weimer <fweimer@redhat.com>
17507
17508 * nptl/tst-thread-exit-clobber.cc: New file.
17509 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17510 C++11 mode.
17511 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17512 (tests): Add tst-thread-exit-clobber.
17513 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17514
17515 2018-01-08 Florian Weimer <fweimer@redhat.com>
17516
17517 * support/check.h (support_static_assert): Define.
17518 (TEST_COMPARE): Use it.
17519
17520 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17521
17522 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17523 [!__RLIM_T_MATCHES_RLIM64_T]
17524 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17525 __getrlimit64. Add libc_hidden_weak.
17526
17527 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17528
17529 * elf/elf.h (R_RISCV_NONE): New define.
17530 (R_RISCV_32): Likewise.
17531 (R_RISCV_64): Likewise.
17532 (R_RISCV_RELATIVE): Likewise.
17533 (R_RISCV_COPY): Likewise.
17534 (R_RISCV_JUMP_SLOT): Likewise.
17535 (R_RISCV_TLS_DTPMOD32): Likewise.
17536 (R_RISCV_TLS_DTPMOD64): Likewise.
17537 (R_RISCV_TLS_DTPREL32): Likewise.
17538 (R_RISCV_TLS_DTPREL64): Likewise.
17539 (R_RISCV_TLS_TPREL32): Likewise.
17540 (R_RISCV_TLS_TPREL64): Likewise.
17541 * Makerules (make-link-multidir): Make directories before linking into
17542 them.
17543 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17544 define.
17545 (VDSO_HASH_LINUX_4_15): Likewise.
17546 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17547 in subdirectories of lib.
17548 * nptl/Makefile (/librt.so): Always depend on
17549 "$(shared-thread-library)".
17550
17551 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17552
17553 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17554 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17555 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17556 (___tls_get_addr).
17557 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17558 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17559 "-O2 -march=i686".
17560 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17561 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17562 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17563 * sysdeps/gnu/glob-lstat-compat.c: New file.
17564 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17565 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17566
17567 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17568
17569 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17570 Reserve 16 chars to reloc_addr before calling _itoa_word.
17571
17572 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17573
17574 [BZ #22678]
17575 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17576 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17577
17578 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17579 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17580
17581 * resource/tst-getrlimit.c: Add copyright header.
17582
17583 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17584 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17585
17586 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17587 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17588 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17589 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17590 instead.
17591 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17592 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17593 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17594 RLIM64_INFINITY): Fix values to match the kernel ones.
17595 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17596 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17597 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17598 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17599 getrlimit64@@GLIBC_2_27.
17600 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17601 and setrlimit64.
17602 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17603 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17604 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17605 setrlimit, getrlimit64 and setrlimit64.
17606
17607 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17608
17609 [BZ #22648]
17610 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17611 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17612
17613 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17614
17615 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17616 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17617 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17618
17619 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17620
17621 [BZ #15479]
17622 [BZ #22666]
17623 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17624 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17625
17626 [BZ #15479]
17627 [BZ #22665]
17628 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17629 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17630 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17631 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17632
17633 2018-01-04 Florian Weimer <fweimer@redhat.com>
17634
17635 [BZ #22667]
17636 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17637 Align the stack before calling exit.
17638 * stdlib/tst-makecontext-align.c: New file.
17639 * stdlib/Makefile (tests): Add tst-makecontext-align.
17640
17641 2018-01-04 Florian Weimer <fweimer@redhat.com>
17642
17643 Add support for calling dlvsym from libc.so.
17644 * include/dlfcn.h (__libc_dlvsym): Declare.
17645 * elf/Makefile (tests-static-internal): Add
17646 tst-libc_dlvsym-static.
17647 (tests-internal): Add tst-libc_dlvsym.
17648 (modules-names): Add tst-libc_dlvsym-dso.
17649 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17650 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17651 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17652 object tst-libc_dlvsym-dso.so needs to be built before running
17653 these tests.
17654 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17655 * elf/Versions: Export __libc_dlvsym.
17656 * elf/dl-libc.c (struct do_dlvsym_args): New.
17657 (do_dlvsym, __libc_dlvsym): New functions.
17658 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17659 (_dl_open_hook2): New variable.
17660 (__libc_register_dl_open_hook): Set it.
17661 * elf/tst-libc_dlvsym-dso.c: New file.
17662 * elf/tst-libc_dlvsym-static.c: Likewise.
17663 * elf/tst-libc_dlvsym.c: Likewise.
17664 * elf/tst-libc_dlvsym.h: Likewise.
17665
17666 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17667
17668 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17669 include <sys/mount.h>.
17670
17671 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17672
17673 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17674 Add __NO_MATH_ERRNO__ check.
17675
17676 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17677
17678 * sysdeps/mips/mips32/libm-test-ulps: Update.
17679 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17680
17681 2018-01-02 Florian Weimer <fweimer@redhat.com>
17682
17683 * misc/tst-pselect.c: Add copyright header.
17684
17685 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17686
17687 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17688 comment.
17689 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17690 comment.
17691 (settrlimit): Rename into setrlimit.
17692 (__sttrlimit): Rename into __setrlimit.
17693
17694 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17695 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17696 never defined in that case.
17697
17698 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17699
17700 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17701
17702 * sysdeps/arm/libm-test-ulps: Update.
17703
17704 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17705 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17706
17707 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17708
17709 * NEWS: Add cosf and sincosf to list of optimized functions.
17710
17711 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17712
17713 [BZ #22660]
17714 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17715 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17716 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17717 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17718
17719 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17720
17721 [BZ #22433]
17722 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17723
17724 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17725 making a copy of it.
17726
17727 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17728
17729 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17730 trailing whitespace removed.
17731 * scripts/config.guess: Update to version 2018-01-01.
17732 * scripts/config.sub: Update to version 2018-01-01.
17733 * scripts/move-if-change: Update from gnulib.
17734
17735 * NEWS: Update copyright dates.
17736 * catgets/gencat.c (print_version): Likewise.
17737 * csu/version.c (banner): Likewise.
17738 * debug/catchsegv.sh: Likewise.
17739 * debug/pcprofiledump.c (print_version): Likewise.
17740 * debug/xtrace.sh (do_version): Likewise.
17741 * elf/ldconfig.c (print_version): Likewise.
17742 * elf/ldd.bash.in: Likewise.
17743 * elf/pldd.c (print_version): Likewise.
17744 * elf/sotruss.sh: Likewise.
17745 * elf/sprof.c (print_version): Likewise.
17746 * iconv/iconv_prog.c (print_version): Likewise.
17747 * iconv/iconvconfig.c (print_version): Likewise.
17748 * locale/programs/locale.c (print_version): Likewise.
17749 * locale/programs/localedef.c (print_version): Likewise.
17750 * login/programs/pt_chown.c (print_version): Likewise.
17751 * malloc/memusage.sh (do_version): Likewise.
17752 * malloc/memusagestat.c (print_version): Likewise.
17753 * malloc/mtrace.pl: Likewise.
17754 * manual/libc.texinfo: Likewise.
17755 * nptl/version.c (banner): Likewise.
17756 * nscd/nscd.c (print_version): Likewise.
17757 * nss/getent.c (print_version): Likewise.
17758 * nss/makedb.c (print_version): Likewise.
17759 * posix/getconf.c (main): Likewise.
17760 * scripts/test-installation.pl: Likewise.
17761 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17762
17763 * All files with FSF copyright notices: Update copyright dates
17764 using scripts/update-copyrights.
17765 * locale/programs/charmap-kw.h: Regenerated.
17766 * locale/programs/locfile-kw.h: Likewise.
17767
17768 2017-12-31 Zack Weinberg <zackw@panix.com>
17769
17770 * libio/bits/libio-ldbl.h: Correct check for improper
17771 inclusion. Add own multiple include guard.
17772
17773 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17774 Dmitry V. Levin <ldv@altlinux.org>
17775
17776 [BZ #22625]
17777 CVE-2017-16997
17778 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17779 string token expansion. Check for NULL pointer or empty string possibly
17780 returned by expand_dynamic_string_token.
17781 (decompose_rpath): Check for empty path after dynamic string
17782 token expansion.
17783
17784 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17785
17786 [BZ #22433]
17787 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17788
17789 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17790 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17791 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17792 and PTRACE_SYSCALL.
17793 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17794 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17795 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17796 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17797 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17798 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17799
17800 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17801 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17802 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17803 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17804 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17805 bits/ptrace-shared.h.
17806 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17807 <bits/ptrace-shared.h>.
17808 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17809 __ptrace_peeksiginfo_flags, ptrace): Remove.
17810 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17811 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17812 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17813 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17814 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17815
17816 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17817
17818 [BZ #17804]
17819 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17820 end of the loop. Improve comments.
17821
17822 2017-12-29 Zack Weinberg <zackw@panix.com>
17823
17824 [BZ #22615]
17825 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17826 might be set on success.
17827
17828 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17829
17830 [BZ #22611]
17831 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17832 is unchanged on success.
17833
17834 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17835
17836 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17837 updated.
17838 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17839 expand_dynamic_string_token): Likewise.
17840 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17841 is_path argument.
17842
17843 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17844 contains ':'.
17845
17846 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17847 is set and name contains ':', and all code depending on these checks.
17848
17849 2017-12-24 Zack Weinberg <zackw@panix.com>
17850
17851 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17852 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17853 respectively.
17854 * libio/libio.h: Rename the original version of this file to
17855 libio/bits/libio.h. Error out if not included by stdio.h or the
17856 stub libio.h.
17857 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17858 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17859 if not included by bits/libio.h or the stub _G_config.h.
17860 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17861 sysdeps/unix/sysv/linux/bits. Error out if not included by
17862 bits/libio.h or the stub _G_config.h.
17863 * libio/stdio.h: Include bits/libio.h, not libio.h.
17864 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17865 well as libio.h and _G_config.h.
17866
17867 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17868 * libio/strfile.h, stdio-common/vfscanf.c
17869 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17870 Include stdio.h, not _G_config.h nor libio.h.
17871 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17872 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17873
17874 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17875
17876 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17877
17878 [BZ #22347]
17879 * stdlib/getrandom.c (getrandom): Fix comment.
17880 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17881
17882 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17883
17884 [BZ #21161]
17885 * manual/arith.texi (strtoul): Fix a typo.
17886
17887 [BZ #22596]
17888 * manual/arith.texi (finite): Fix the description of the return
17889 value.
17890
17891 2017-12-22 Eric Blake <ebb9@byu.net>
17892
17893 Avoid gcc warnings on cygwin
17894 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17895 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17896 Avoid unused variable.
17897
17898 2017-12-22 Florian Weimer <fweimer@redhat.com>
17899
17900 * io/Makefile (routines): Add copy_file_range.
17901 (tests): Add tst-copy_file_range.
17902 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17903 * io/Versions (GLIBC_2.27): Export copy_file_range.
17904 * io/copy_file_range-compat.c: New file.
17905 * io/copy_file_range.c: Likewise.
17906 * io/tst-copy_file_range-compat.c: Likewise.
17907 * io/tst-copy_file_range.c: Likewise.
17908 * manual/llio.texi (Copying File Data): New section.
17909 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17910 * support/Makefile (libsupport-routines): Add support-xfstat,
17911 xftruncate, xlseek.
17912 * support/support-xfstat.c: New file.
17913 * support/xftruncate.c: Likewise.
17914 * support/xlseek.c: Likewise.
17915 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17916 * sysdeps/unix/sysv/linux/**.abilist: Update.
17917 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17918
17919 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17920
17921 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17922 disable-multi-arch variant to aarch64-linux-gnu.
17923
17924 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17925
17926 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17927 trailing whitespace removed.
17928 * scripts/config.guess: Update to version 2017-12-17.
17929 * scripts/config.sub: Update to version 2017-11-23.
17930 * scripts/install-sh: Update to version 2017-09-23.17.
17931 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17932
17933 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17934
17935 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17936 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17937 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17938 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17939 * sysdeps/tile/crtn.S: Likewise.
17940 * sysdeps/tile/dl-start.S (_start): Likewise.
17941 * sysdeps/tile/dl-trampoline.S: Likewise.
17942 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17943 * sysdeps/tile/start.S (_start): Likewise.
17944 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17945 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17946 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17947 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17948 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17949 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17950 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17951
17952 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17953 comment.
17954 * sysdeps/tile/preconfigure: Remove tilegx folder.
17955 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17956 * sysdeps/tile/Implies: ... here.
17957 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17958 * sysdeps/tile/Makefile: ... here.
17959 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17960 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17961 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17962 * sysdeps/tile/bits/wordsize.h: ... here.
17963 * sysdeps/tile/tilegx/*: Move to ...
17964 * sysdeps/tile/*: ... here.
17965 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17966 * sysdeps/tile/tilegx32/Implies: ... here.
17967 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17968 * sysdeps/tile/tilegx64/Implies: ... here.
17969 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17970 to ...
17971 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17972 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17973 * sysdeps/unix/sysv/linux/tile/*: ... here.
17974 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17975 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17976 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17977 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17978
17979 * README: Remove tilepro-*-linux-gnu from supported architecture.
17980 * scripts/build-many-glibcs.py: Likewise.
17981 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17982 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17983 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17984 elf_machine_matches_host, elf_machine_dynamic,
17985 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17986 howto, elf_machine_rela): Likewise.
17987 * sysdeps/tile/dl-start.S (_start): Likewise.
17988 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17989 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17990 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17991 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17992 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17993 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17994 Likewise.
17995 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17996 * sysdeps/tile/preconfigure: Likewise.
17997 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17998 POINTER_CHK_GUARD): Likewise.
17999 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18000 * sysdeps/tile/start.S (_start): Likewise.
18001 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18002 Likewise.
18003 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18004 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18005 CMOVNEZ): Remove.
18006 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18007 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18008 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18009 Likewise.
18010 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18011 * sysdeps/tile/tilepro/Implies: Remove file.
18012 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18013 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18014 * sysdeps/tile/tilepro/memchr.c: Likewise.
18015 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18016 * sysdeps/tile/tilepro/memset.c: Likewise.
18017 * sysdeps/tile/tilepro/memusage.h: Likewise.
18018 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18019 * sysdeps/tile/tilepro/strchr.c: Likewise.
18020 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18021 * sysdeps/tile/tilepro/strlen.c: Likewise.
18022 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18023 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18024 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18025 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18026 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18028 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18029 Likewise.
18030 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18041 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18042 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18043 tilepro mention in comment.
18044
18045 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18046 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18047 * nptl/pthread_join_common.c: New file: common function used on
18048 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18049 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18050 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18051 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18052 (cleanup): Move definition to pthread_join_common.c.
18053 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18054 Remove superflous checks.
18055 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18056 Likewise.
18057
18058 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18059
18060 * sysdeps/aarch64/libm-test-ulps: Update.
18061
18062 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18063
18064 * sysdeps/aarch64/memset.S (MEMSET): Define.
18065
18066 2017-12-20 Florian Weimer <fweimer@redhat.com>
18067
18068 [BZ #22635]
18069 nptl: Provide full implementation of pthread_self in libc.so.
18070 * nptl/Makefile (routines): Add pthread_self.
18071 (libpthread-routines): Replace pthread_self with
18072 compat-pthread_self.
18073 * nptl/forward.c (pthread_self): Remove.
18074 * nptl/nptl-init.c (pthread_functions): Do not initialize
18075 ptr_pthread_self.
18076 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18077 * nptl/compat-pthread_self.c: New file.
18078 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18079 Remove ptr_pthread_self.
18080
18081 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18082
18083 * posix/regcomp.c: Fix spelling in comments.
18084 * posix/regex.h: Likewise.
18085 * posix/regex_internal.c: Likewise.
18086 * posix/regexec.c: Likewise.
18087
18088 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18089
18090 [BZ #22377]
18091 * math/Makefile [C++] (tests): Add test for iseqsig.
18092 * math/math.h [C++] (iseqsig): New implementation, which does
18093 not rely on __MATH_TG/__builtin_types_compatible_p.
18094 * math/test-math-iseqsig.cc: New file.
18095 * sysdeps/powerpc/powerpc64le/Makefile
18096 (CFLAGS-test-math-iseqsig.cc): New variable.
18097
18098 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18099
18100 * elf/dl-load.c (is_trusted_path): Remove.
18101 (fillin_rpath): Remove check_trusted argument and its use,
18102 all callers changed.
18103
18104 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18105
18106 [BZ #22630]
18107 * Makeconfig (link-pie-before-libc): Replace -pie with
18108 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18109 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18110 (tst-dlopen-aout-no-pie): New.
18111 (LDFLAGS-tst-prelink): Removed.
18112 (tst-prelink-no-pie): New.
18113 (LDFLAGS-tst-main1): Removed.
18114 (tst-main1-no-pie): New.
18115 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18116 (tst-gmon-no-pie): New.
18117
18118 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18119
18120 * manual/install.texi: Document that --enable-static-pie
18121 implies PIE.
18122 * INSTALL: Regenerated.
18123
18124 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18125
18126 [BZ #21309]
18127 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18128 unsigned.
18129
18130 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18131
18132 Revert:
18133
18134 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18135
18136 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18137
18138 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18139
18140 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18141 <errno.h>. Include "eexp.tbl".
18142 (half): New constant.
18143 (one): Likewise.
18144 (__ieee754_exp): Rewrite.
18145 (__slowexp): Remove prototype.
18146 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18147 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18148 * sysdeps/i386/fpu/slowexp.c: Likewise.
18149 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18150 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18151 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18152 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18153 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18154 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18155 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18156 comment.
18157 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18158 (CPPFLAGS-slowexp.c): Remove variable.
18159 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18160 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18161 (CFLAGS-slowexp-fma.c): Remove variable.
18162 (CFLAGS-slowexp-fma4.c): Likewise.
18163 (CFLAGS-slowexp-avx.c): Likewise.
18164 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18165 define as macro.
18166 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18167 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18168 * math/Makefile (type-double-routines): Remove slowexp.
18169 * manual/probes.texi (slowexp_p6): Remove.
18170 (slowexp_p32): Likewise.
18171
18172 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18173
18174 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18175 arithmetic.
18176
18177 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18178
18179 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18180
18181 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18182
18183 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18184
18185 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18186 <errno.h>. Include "eexp.tbl".
18187 (half): New constant.
18188 (one): Likewise.
18189 (__ieee754_exp): Rewrite.
18190 (__slowexp): Remove prototype.
18191 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18192 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18193 * sysdeps/i386/fpu/slowexp.c: Likewise.
18194 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18195 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18196 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18197 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18198 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18199 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18200 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18201 comment.
18202 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18203 (CPPFLAGS-slowexp.c): Remove variable.
18204 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18205 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18206 (CFLAGS-slowexp-fma.c): Remove variable.
18207 (CFLAGS-slowexp-fma4.c): Likewise.
18208 (CFLAGS-slowexp-avx.c): Likewise.
18209 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18210 define as macro.
18211 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18212 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18213 * math/Makefile (type-double-routines): Remove slowexp.
18214 * manual/probes.texi (slowexp_p6): Remove.
18215 (slowexp_p32): Likewise.
18216
18217 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18218 James Clarke <jrtc27@jrtc27.com>
18219
18220 [BZ #22603]
18221 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18222 addition.
18223
18224 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18225
18226 [BZ #22605]
18227 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18228 code.
18229
18230 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18231
18232 [BZ #22563]
18233 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18234 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18235 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18236 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18237 to feature_1.
18238
18239 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18240
18241 [BZ #22563]
18242 * bits/types/__cancel_jmp_buf_tag.h: New file.
18243 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18244 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18245 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18246 * nptl/Makefile (headers): Add
18247 bits/types/__cancel_jmp_buf_tag.h.
18248 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18249 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18250 * sysdeps/nptl/pthread.h: Include
18251 <bits/types/__cancel_jmp_buf_tag.h>.
18252 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18253 __cancel_jmp_buf.
18254 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18255
18256 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18257
18258 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18259 --enable-static-pie variants to x86_64, x32 and i686.
18260
18261 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18262
18263 [BZ #22631]
18264 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18265 argument for attrubutes. All callers changed.
18266 (__inline_mathop1): Likewise. All callers changed.
18267 (__inline_mathop): Likewise. All callers changed.
18268 [__USE_MISC] (scalbn): Use __inline_forward instead of
18269 __inline_forward_c.
18270 [__USE_ISOC99] (scalbln): Likewise.
18271 [__USE_ISOC99] (nearbyint): Likewise.
18272 [__USE_ISOC99] (lrint): Likewise.
18273 [__USE_MISC] (scalbnf): Likewise.
18274 [__USE_ISOC99] (scalblnf): Likewise.
18275 [__USE_ISOC99] (nearbyintf): Likewise.
18276 [__USE_ISOC99] (lrintf): Likewise.
18277 [__USE_MISC] (scalbnl): Likewise.
18278 [__USE_ISOC99] (scalblnl): Likewise.
18279 [__USE_ISOC99] (nearbyintl): Likewise.
18280 [__USE_ISOC99] (lrintl): Likewise.
18281 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18282 __inline_mathop and __m81_defun changed.
18283
18284 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18285 CPU or FPU for ARM hard-float configurations.
18286
18287 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18288
18289 * nptl/tst-attr3.c: Include <libc-diag.h>.
18290 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18291
18292 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18293
18294 * string/tester.c (test_strncat): Also disable -Warray-bounds
18295 warnings for two tests.
18296
18297 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18298
18299 [BZ #22614]
18300 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18301 $(cc-pie-default) == yes.
18302 * config.make.in (cc-pie-default): New.
18303 * configure.ac (libc_cv_pie_default): Renamed to ...
18304 (libc_cv_cc_pie_default): This.
18305 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18306 * configure: Regenerated.
18307
18308 2017-12-18 Florian Weimer <fweimer@redhat.com>
18309
18310 [BZ #20204]
18311 ld.so: Harden dl-libc/libdl hooks.
18312 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18313 (rtld_active): New function.
18314 * dlfcn/dladdr.c (__dladdr): Call it.
18315 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18316 * dlfcn/dlclose.c (__dlcose): Likewise.
18317 * dlfcn/dlerror.c (__dlerror): Likewise.
18318 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18319 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18320 * dlfcn/dlopen.c (__dlopen): Likewise.
18321 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18322 * dlfcn/dlsym.c (__dlsym): Likewise.
18323 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18324 * libio/vtables.c (_IO_vtable_check): Likewise.
18325 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18326 (__libc_dlclose): Likewise.
18327 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18328 assignment.
18329
18330 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18331
18332 [BZ #22446]
18333 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18334 buffers for readlink input and output.
18335
18336 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18337
18338 [BZ #22624]
18339 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18340 inhibit_stack_protector.
18341
18342 [BZ #22624]
18343 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18344 inhibit_stack_protector.
18345
18346 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18347
18348 [BZ #22627]
18349 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18350 code and invocation.
18351
18352 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18353
18354 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18355
18356 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18357
18358 [BZ #22505]
18359 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18360
18361 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18362
18363 * sysdeps/s390/fpu/libm-test-ulps: Update.
18364
18365 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18366
18367 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18368
18369 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18370
18371 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18372 constants to s_sincosf.h file.
18373 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18374 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18375 implementation.
18376 * sysdeps/ieee754/flt-32/s_sincosf.h:
18377 New file.
18378
18379 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18380
18381 [BZ #14681]
18382 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18383 before mtrace.
18384
18385 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18386
18387 [BZ #19574]
18388 * INSTALL: Regenerated.
18389 * Makeconfig (real-static-start-installed-name): New.
18390 (pic-default): Updated for --enable-static-pie.
18391 (pie-default): New for --enable-static-pie.
18392 (default-pie-ldflag): Likewise.
18393 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18394 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18395 Replace $(static-start-installed-name) with
18396 $(real-static-start-installed-name).
18397 (+prectorT): Updated for --enable-static-pie.
18398 (+postctorT): Likewise.
18399 (CFLAGS-.o): Add $(pie-default).
18400 (CFLAGS-.op): Likewise.
18401 * NEWS: Mention --enable-static-pie.
18402 * config.h.in (ENABLE_STATIC_PIE): New.
18403 * configure.ac (--enable-static-pie): New configure option.
18404 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18405 (have-static-pie): Likewise.
18406 Enable static PIE if linker supports --no-dynamic-linker.
18407 (ENABLE_STATIC_PIE): New AC_DEFINE.
18408 (enable-static-pie): New LIBC_CONFIG_VAR.
18409 * configure: Regenerated.
18410 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18411 gr$(start-installed-name) for --enable-static-pie.
18412 (extra-objs): Likewise.
18413 (install-lib): Likewise.
18414 (extra-objs): Add static-reloc.o and static-reloc.os
18415 ($(objpfx)$(start-installed-name)): Also depend on
18416 $(objpfx)static-reloc.o.
18417 ($(objpfx)r$(start-installed-name)): New.
18418 ($(objpfx)g$(start-installed-name)): Also depend on
18419 $(objpfx)static-reloc.os.
18420 ($(objpfx)gr$(start-installed-name)): New.
18421 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18422 in libc.a.
18423 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18424 initimage.
18425 * csu/static-reloc.c: New file.
18426 * elf/Makefile (routines): Add dl-reloc-static-pie.
18427 (elide-routines.os): Likewise.
18428 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18429 (tst-tls1-static-non-pie-no-pie): New.
18430 * elf/dl-reloc-static-pie.c: New file.
18431 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18432 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18433 STATIC_PIE_BOOTSTRAP.
18434 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18435 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18436 (tests-static): Likewise.
18437 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18438 (tst-gmon-static-no-pie): New.
18439 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18440 (CRT-tst-gmon-static-pie): Likewise.
18441 (tst-gmon-static-pie-ENV): Likewise.
18442 (tests-special): Likewise.
18443 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18444 (clean-tst-gmon-static-pie-data): Likewise.
18445 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18446 * gmon/tst-gmon-static-pie.c: New file.
18447 * manual/install.texi: Document --enable-static-pie.
18448 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18449 (_dl_get_dl_main_map): Likewise.
18450 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18451 * sysdeps/x86_64/configure.ac: Likewise.
18452 * sysdeps/i386/configure: Regenerated.
18453 * sysdeps/x86_64/configure: Likewise.
18454 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18455 (ASFLAGS-.op): Likewise.
18456
18457 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18458
18459 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18460 * posix/tst-mmap-offset.c (fname): Use /tmp.
18461 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18462
18463 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18464
18465 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18466
18467 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18468
18469 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18470 errno.
18471
18472 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18473
18474 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18475 --with-float=hard for arm-linux-gnueabihf configurations.
18476
18477 [BZ #14121]
18478 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18479 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18480 ($(mo-installed)): Use $(objpfx)%.mo.
18481 (realclean): Remove rule.
18482
18483 * po/Makefile (linguas): Remove rule and dependencies.
18484 (linguas.mo): Likewise.
18485 (.PHONY): Do not depend on linguas and linguas.mo.
18486 (podir): Remove variable.
18487 (pofiles): Likewise.
18488 [$(pofiles)] (%.po): Remove rule.
18489
18490 * sysdeps/sparc/sparc32/Makefile
18491 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18492 start-of-line whitespace in argument of echo.
18493 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18494 with whitespace. Generate __wrap_.udiv alias.
18495 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18496 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18497 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18498 * sysdeps/sparc/sparc32/urem.S: Likewise.
18499
18500 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18501
18502 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18503 for aligned inputs.
18504
18505 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18506
18507 * benchtests/bench-strcmp.c: Print output in JSON format.
18508
18509 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18510
18511 2017-12-14 Florian Weimer <fweimer@redhat.com>
18512
18513 [BZ #22607]
18514 CVE-2017-1000409
18515 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18516 the expanded path string.
18517
18518 2017-12-14 Florian Weimer <fweimer@redhat.com>
18519
18520 [BZ #22606]
18521 CVE-2017-1000408
18522 * elf/dl-load.c (system_dirs): Update comment.
18523 (nsystem_dirs_len): Use array_length.
18524 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18525
18526 2017-12-14 Florian Weimer <fweimer@redhat.com>
18527
18528 Simplify compiling most of support/ outside of glibc.
18529 * support/check_addrinfo.c: Include <string.h>.
18530 * support/check_dns_packet.c: Likewise.
18531 * support/check_hostent.c: Likewise.
18532 * support/support_can_chroot.c: Include <support/xunistd.h>.
18533 * support/support_format_addrinfo.c: Include <stdlib.h>
18534 * support/support_format_dns_packet.c: Include <stdbool.h>.
18535 * support/support_format_hostent.c: Include <stdlib.h>.
18536 * support/support_format_netent.c: Likewise.
18537 * support/support_write_string.c: Include <support/xunistd.h>.
18538 * support/xdlfcn.c: Include <stddef.h>.
18539
18540 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18541
18542 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18543
18544 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18545 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18546
18547 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18548 (sysdeps_routines): Add memset-niagara7.
18549 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18550 Likewise.
18551 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18552 file.
18553 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18554 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18555 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18556 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18557 Add niagara7 option.
18558 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18559 memset.
18560
18561 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18562 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18563 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18564 Likewise.
18565 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18566 New file.
18567 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18568 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18569 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18570 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18571 and __memmove_niagara7.
18572 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18573 Add niagara7 option.
18574 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18575 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18576 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18577 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18578 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18579
18580 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18581
18582 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18583 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18584 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18585 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18586
18587 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18588 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18589 _dl_sparc_cap_flags array.
18590 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18591
18592 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18593
18594 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18595 time whenever possible.
18596
18597 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18598
18599 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18600 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18601
18602 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18603
18604 * soft-fp/fmadf4.c: Move to ....
18605 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18606 * soft-fp/fmasf4.c: Move to ....
18607 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18608 * soft-fp/fmatf4.c: Move to ....
18609 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18610 * sysdeps/ieee754/soft-fp/Makefile: New file.
18611 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18612 * sysdeps/arm/preconfigure: Regenerated.
18613 * sysdeps/arm/nofpu/Implies: New file.
18614 * sysdeps/arm/s_fma.c: Remove file.
18615 * sysdeps/arm/s_fmaf.c: Likewise.
18616 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18617 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18618 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18619 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18620 * sysdeps/microblaze/s_fma.c: Remove file.
18621 * sysdeps/microblaze/s_fmaf.c: Likewise.
18622 * sysdeps/mips/mips32/nofpu/Implies: New file.
18623 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18624 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18625 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18626 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18627 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18628 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18629 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18630 implementation.
18631 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18632 * sysdeps/nios2/s_fma.c: Remove file.
18633 * sysdeps/nios2/s_fmaf.c: Likewise.
18634 * sysdeps/sh/nofpu/Implies: New file.
18635 * sysdeps/sh/s_fma.c: Remove file.
18636 * sysdeps/sh/s_fmaf.c: Likewise.
18637 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18638 * sysdeps/tile/s_fma.c: Remove file.
18639 * sysdeps/tile/s_fmaf.c: Likewise.
18640
18641 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18642
18643 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18644 Add s_cosf-sse2 and s_cosf-fma.
18645 (CFLAGS-s_cosf-fma.c): New.
18646 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18647 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18648 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18649
18650 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18651
18652 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18653
18654 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18655
18656 * libio/Makefile (tests): Add tst-bz22415.
18657 (tst-bz22415-ENV): New rule.
18658 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18659 (tests-special): Add tst-bz22415-mem.out.
18660 ($(objpfx)tst-bz22415-mem.out): New rule.
18661 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18662 in case of a successful seek operation.
18663 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18664 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18665 buffer is required.
18666 * libio/tst-bz22415.c: New test.
18667
18668 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18669
18670 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18671
18672 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18673 __IPC_64 to 0 to avoid IPC_64 being set.
18674
18675 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18676
18677 [BZ #22593]
18678 * math/bits/mathcalls.h (nextafter): Remove const.
18679 (nexttoward): Likewise.
18680
18681 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18682
18683 * configure.ac (--with-fp): Remove configure option.
18684 (with_fp_cond): New variable.
18685 (libc_cv_with_fp): New configure test. Use this variable instead
18686 of with_fp.
18687 * configure: Regenerated.
18688 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18689 * manual/install.texi (Configuring and compiling): Remove
18690 --without-fp.
18691 * INSTALL: Regenerated.
18692 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18693 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18694 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18695 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18696 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18697 use --without-fp to configure glibc.
18698
18699 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18700
18701 * manual/locale.texi (nl_langinfo): Fix a typo.
18702
18703 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18704
18705 [BZ #22588]
18706 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18707
18708 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18709
18710 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18711 (CFLAGS-argp-parse.c): Likewise.
18712 (CFLAGS-argp-fmtstream.c): Likewise.
18713 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18714 (CPPFLAGS-sha512-crypt.c): Likewise.
18715 (CPPFLAGS-md5-crypt.c): Likewise.
18716 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18717 (CFLAGS-stack_chk_fail_local.c): Likewise.
18718 (CFLAGS-backtrace.c): Likewise.
18719 (CFLAGS-sprintf_chk.c): Likewise.
18720 (CFLAGS-snprintf_chk.c): Likewise.
18721 (CFLAGS-vsprintf_chk.c): Likewise.
18722 (CFLAGS-vsnprintf_chk.c): Likewise.
18723 (CFLAGS-asprintf_chk.c): Likewise.
18724 (CFLAGS-vasprintf_chk.c): Likewise.
18725 (CFLAGS-obprintf_chk.c): Likewise.
18726 (CFLAGS-dprintf_chk.c): Likewise.
18727 (CFLAGS-vdprintf_chk.c): Likewise.
18728 (CFLAGS-printf_chk.c): Likewise.
18729 (CFLAGS-fprintf_chk.c): Likewise.
18730 (CFLAGS-vprintf_chk.c): Likewise.
18731 (CFLAGS-vfprintf_chk.c): Likewise.
18732 (CFLAGS-gets_chk.c): Likewise.
18733 (CFLAGS-fgets_chk.c): Likewise.
18734 (CFLAGS-fgets_u_chk.c): Likewise.
18735 (CFLAGS-fread_chk.c): Likewise.
18736 (CFLAGS-fread_u_chk.c): Likewise.
18737 (CFLAGS-swprintf_chk.c): Likewise.
18738 (CFLAGS-vswprintf_chk.c): Likewise.
18739 (CFLAGS-wprintf_chk.c): Likewise.
18740 (CFLAGS-fwprintf_chk.c): Likewise.
18741 (CFLAGS-vwprintf_chk.c): Likewise.
18742 (CFLAGS-vfwprintf_chk.c): Likewise.
18743 (CFLAGS-fgetws_chk.c): Likewise.
18744 (CFLAGS-fgetws_u_chk.c): Likewise.
18745 (CFLAGS-read_chk.c): Likewise.
18746 (CFLAGS-pread_chk.c): Likewise.
18747 (CFLAGS-pread64_chk.c): Likewise.
18748 (CFLAGS-recv_chk.c): Likewise.
18749 (CFLAGS-recvfrom_chk.c): Likewise.
18750 (CFLAGS-tst-longjmp_chk.c): Likewise.
18751 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18752 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18753 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18754 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18755 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18756 (CFLAGS-tst-chk1.c): Likewise.
18757 (CFLAGS-tst-chk2.c): Likewise.
18758 (CFLAGS-tst-chk3.c): Likewise.
18759 (CFLAGS-tst-chk4.cc): Likewise.
18760 (CFLAGS-tst-chk5.cc): Likewise.
18761 (CFLAGS-tst-chk6.cc): Likewise.
18762 (CFLAGS-tst-lfschk1.c): Likewise.
18763 (CFLAGS-tst-lfschk2.c): Likewise.
18764 (CFLAGS-tst-lfschk3.c): Likewise.
18765 (CFLAGS-tst-lfschk4.cc): Likewise.
18766 (CFLAGS-tst-lfschk5.cc): Likewise.
18767 (CFLAGS-tst-lfschk6.cc): Likewise.
18768 (CFLAGS-tst-ssp-1.c): Likewise.
18769 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18770 (CFLAGS-scandir64.c): Likewise.
18771 (CFLAGS-scandir-tail.c): Likewise.
18772 (CFLAGS-scandir64-tail.c): Likewise.
18773 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18774 (CFLAGS-dl-tunables.c): Likewise.
18775 (CFLAGS-dl-runtime.c): Likewise.
18776 (CFLAGS-dl-lookup.c): Likewise.
18777 (CFLAGS-dl-iterate-phdr.c): Likewise.
18778 (CFLAGS-vismain.c): Likewise.
18779 (CFLAGS-tst-linkall-static.c): Likewise.
18780 (CFLAGS-tst-linkall-static.c): Likewise.
18781 (CPPFLAGS-dl-load.c): Likewise.
18782 (CFLAGS-ldconfig.c): Likewise.
18783 (CFLAGS-dl-cache.c): Likewise.
18784 (CFLAGS-cache.c): Likewise.
18785 (CFLAGS-rtld.c): Likewise.
18786 (CFLAGS-multiload.c): Likewise.
18787 (CFLAGS-filtmod1.c): Likewise.
18788 (CFLAGS-tst-align.c): Likewise.
18789 (CFLAGS-tst-align2.c): Likewise.
18790 (CFLAGS-tst-alignmod.c): Likewise.
18791 (CFLAGS-tst-alignmod2.c): Likewise.
18792 (CPPFLAGS-tst-execstack.c): Likewise.
18793 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18794 (CFLAGS-tst-latepthreadmod.c): Likewise.
18795 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18796 (CFLAGS-getgrnam_r.c): Likewise.
18797 (CFLAGS-getgrent_r.c): Likewise.
18798 (CFLAGS-getgrent.c): Likewise.
18799 (CFLAGS-fgetgrent.c): Likewise.
18800 (CFLAGS-fgetgrent_r.c): Likewise.
18801 (CFLAGS-putgrent.c): Likewise.
18802 (CFLAGS-initgroups.c): Likewise.
18803 (CFLAGS-getgrgid.c): Likewise.
18804 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18805 (CFLAGS-getsgent.c): Likewise.
18806 (CFLAGS-fgetsgent.c): Likewise.
18807 (CFLAGS-fgetsgent_r.c): Likewise.
18808 (CFLAGS-putsgent.c): Likewise.
18809 (CFLAGS-getsgnam.c): Likewise.
18810 (CFLAGS-getsgnam_r.c): Likewise.
18811 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18812 (CFLAGS-iconv_charmap.c): Likewise.
18813 (CFLAGS-dummy-repertoire.c): Likewise.
18814 (CFLAGS-charmap.c): Likewise.
18815 (CFLAGS-linereader.c): Likewise.
18816 (CFLAGS-simple-hash.c): Likewise.
18817 (CFLAGS-gconv_conf.c): Likewise.
18818 (CFLAGS-iconvconfig.c): Likewise.
18819 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18820 (CFLAGS-gethstbyad.c): Likewise.
18821 (CFLAGS-gethstbynm_r.c): Likewise.
18822 (CFLAGS-gethstbynm.c): Likewise.
18823 (CFLAGS-gethstbynm2_r.c): Likewise.
18824 (CFLAGS-gethstbynm2.c): Likewise.
18825 (CFLAGS-gethstent_r.c): Likewise.
18826 (CFLAGS-gethstent.c): Likewise.
18827 (CFLAGS-rcmd.c): Likewise.
18828 (CFLAGS-getnetbynm_r.c): Likewise.
18829 (CFLAGS-getnetbynm.c): Likewise.
18830 (CFLAGS-getnetbyad_r.c): Likewise.
18831 (CFLAGS-getnetbyad.c): Likewise.
18832 (CFLAGS-getnetent_r.c): Likewise.
18833 (CFLAGS-getnetent.c): Likewise.
18834 (CFLAGS-getaliasent_r.c): Likewise.
18835 (CFLAGS-getaliasent.c): Likewise.
18836 (CFLAGS-getrpcent_r.c): Likewise.
18837 (CFLAGS-getrpcent.c): Likewise.
18838 (CFLAGS-getservent_r.c): Likewise.
18839 (CFLAGS-getservent.c): Likewise.
18840 (CFLAGS-getprtent_r.c): Likewise.
18841 (CFLAGS-getprtent.c): Likewise.
18842 (CFLAGS-either_ntoh.c): Likewise.
18843 (CFLAGS-either_hton.c): Likewise.
18844 (CFLAGS-getnetgrent.c): Likewise.
18845 (CFLAGS-getnetgrent_r.c): Likewise.
18846 (CFLAGS-tst-checks-posix.c): Likewise.
18847 (CFLAGS-tst-sockaddr.c): Likewise.
18848 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18849 (CFLAGS-tst-translit.c): Likewise.
18850 (CFLAGS-tst-gettext2.c): Likewise.
18851 (CFLAGS-tst-codeset.c): Likewise.
18852 (CFLAGS-tst-gettext3.c): Likewise.
18853 (CFLAGS-tst-gettext4.c): Likewise.
18854 (CFLAGS-tst-gettext5.c): Likewise.
18855 (CFLAGS-tst-gettext6.c): Likewise.
18856 * io/Makefile (CFLAGS-open.c): Likewise.
18857 (CFLAGS-open64.c): Likewise.
18858 (CFLAGS-creat.c): Likewise.
18859 (CFLAGS-creat64.c): Likewise.
18860 (CFLAGS-fcntl.c): Likewise.
18861 (CFLAGS-poll.c): Likewise.
18862 (CFLAGS-ppoll.c): Likewise.
18863 (CFLAGS-lockf.c): Likewise.
18864 (CFLAGS-statfs.c): Likewise.
18865 (CFLAGS-fstatfs.c): Likewise.
18866 (CFLAGS-statvfs.c): Likewise.
18867 (CFLAGS-fstatvfs.c): Likewise.
18868 (CFLAGS-fts.c): Likewise.
18869 (CFLAGS-fts64.c): Likewise.
18870 (CFLAGS-ftw.c): Likewise.
18871 (CFLAGS-ftw64.c): Likewise.
18872 (CFLAGS-lockf.c): Likewise.
18873 (CFLAGS-posix_fallocate.c): Likewise.
18874 (CFLAGS-posix_fallocate64.c): Likewise.
18875 (CFLAGS-fallocate.c): Likewise.
18876 (CFLAGS-fallocate64.c): Likewise.
18877 (CFLAGS-read.c): Likewise.
18878 (CFLAGS-write.c): Likewise.
18879 (CFLAGS-test-stat.c): Likewise.
18880 (CFLAGS-test-lfs.c): Likewise.
18881 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18882 (CFLAGS-fputc.c): Likewise.
18883 (CFLAGS-fputwc.c): Likewise.
18884 (CFLAGS-freopen64.c): Likewise.
18885 (CFLAGS-freopen.c): Likewise.
18886 (CFLAGS-fseek.c): Likewise.
18887 (CFLAGS-fseeko64.c): Likewise.
18888 (CFLAGS-fseeko.c): Likewise.
18889 (CFLAGS-ftello64.c): Likewise.
18890 (CFLAGS-ftello.c): Likewise.
18891 (CFLAGS-fwide.c): Likewise.
18892 (CFLAGS-genops.c): Likewise.
18893 (CFLAGS-getc.c): Likewise.
18894 (CFLAGS-getchar.c): Likewise.
18895 (CFLAGS-getwc.c): Likewise.
18896 (CFLAGS-getwchar.c): Likewise.
18897 (CFLAGS-iofclose.c): Likewise.
18898 (CFLAGS-iofflush.c): Likewise.
18899 (CFLAGS-iofgetpos64.c): Likewise.
18900 (CFLAGS-iofgetpos.c): Likewise.
18901 (CFLAGS-iofgets.c): Likewise.
18902 (CFLAGS-iofgetws.c): Likewise.
18903 (CFLAGS-iofputs.c): Likewise.
18904 (CFLAGS-iofputws.c): Likewise.
18905 (CFLAGS-iofread.c): Likewise.
18906 (CFLAGS-iofsetpos64.c): Likewise.
18907 (CFLAGS-iofsetpos.c): Likewise.
18908 (CFLAGS-ioftell.c): Likewise.
18909 (CFLAGS-iofwrite.c): Likewise.
18910 (CFLAGS-iogetdelim.c): Likewise.
18911 (CFLAGS-iogetline.c): Likewise.
18912 (CFLAGS-iogets.c): Likewise.
18913 (CFLAGS-iogetwline.c): Likewise.
18914 (CFLAGS-ioputs.c): Likewise.
18915 (CFLAGS-ioseekoff.c): Likewise.
18916 (CFLAGS-ioseekpos.c): Likewise.
18917 (CFLAGS-iosetbuffer.c): Likewise.
18918 (CFLAGS-iosetvbuf.c): Likewise.
18919 (CFLAGS-ioungetc.c): Likewise.
18920 (CFLAGS-ioungetwc.c): Likewise.
18921 (CFLAGS-oldfileops.c): Likewise.
18922 (CFLAGS-oldiofclose.c): Likewise.
18923 (CFLAGS-oldiofgetpos64.c): Likewise.
18924 (CFLAGS-oldiofgetpos.c): Likewise.
18925 (CFLAGS-oldiofsetpos64.c): Likewise.
18926 (CFLAGS-oldiofsetpos.c): Likewise.
18927 (CFLAGS-peekc.c): Likewise.
18928 (CFLAGS-putc.c): Likewise.
18929 (CFLAGS-putchar.c): Likewise.
18930 (CFLAGS-putwc.c): Likewise.
18931 (CFLAGS-putwchar.c): Likewise.
18932 (CFLAGS-rewind.c): Likewise.
18933 (CFLAGS-wfileops.c): Likewise.
18934 (CFLAGS-wgenops.c): Likewise.
18935 (CFLAGS-oldiofopen.c): Likewise.
18936 (CFLAGS-iofopen.c): Likewise.
18937 (CFLAGS-iofopen64.c): Likewise.
18938 (CFLAGS-oldtmpfile.c): Likewise.
18939 (CFLAGS-tst_putwc.c): Likewise.
18940 * locale/Makefile (CFLAGS-md5.c): Likewise.
18941 (CFLAGS-charmap.c): Likewise.
18942 (CFLAGS-locfile.c): Likewise.
18943 (CFLAGS-charmap-dir.c): Likewise.
18944 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18945 (CFLAGS-getpt.c): Likewise.
18946 (CFLAGS-pt_chown.c): Likewise.
18947 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18948 (CFLAGS-obstack.c): Likewise.
18949 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18950 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18951 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18952 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18953 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18954 (CFLAGS-test-tgmath.c): Likewise.
18955 (CFLAGS-test-tgmath2.c): Likewise.
18956 (CFLAGS-test-tgmath-ret.c): Likewise.
18957 (CFLAGS-test-powl.c): Likewise.
18958 (CFLAGS-test-snan.c): Likewise.
18959 (CFLAGS-test-signgam-finite.c): Likewise.
18960 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18961 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18962 (CFLAGS-test-signgam-uchar.c): Likewise.
18963 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18964 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18965 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18966 (CFLAGS-test-signgam-uint.c): Likewise.
18967 (CFLAGS-test-signgam-uint-init.c): Likewise.
18968 (CFLAGS-test-signgam-uint-static.c): Likewise.
18969 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18970 (CFLAGS-test-signgam-ullong.c): Likewise.
18971 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18972 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18973 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18974 (CFLAGS-test-math-cxx11.cc): Likewise.
18975 (CFLAGS-test-math-isinff.cc): Likewise.
18976 (CFLAGS-test-math-iszero.cc): Likewise.
18977 (CFLAGS-test-math-issignaling.cc): Likewise.
18978 (CFLAGS-test-math-iscanonical.cc): Likewise.
18979 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18980 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18981 (CFLAGS-test-flt-eval-method.c): Likewise.
18982 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18983 (CFLAGS-test-finite-macros.c): Likewise.
18984 * misc/Makefile (CFLAGS-select.c): Likewise.
18985 (CFLAGS-tsearch.c): Likewise.
18986 (CFLAGS-lsearch.c): Likewise.
18987 (CFLAGS-pselect.c): Likewise.
18988 (CFLAGS-readv.c): Likewise.
18989 (CFLAGS-writev.c): Likewise.
18990 (CFLAGS-preadv.c): Likewise.
18991 (CFLAGS-preadv64.c): Likewise.
18992 (CFLAGS-pwritev.c): Likewise.
18993 (CFLAGS-pwritev64.c): Likewise.
18994 (CFLAGS-preadv2.c): Likewise.
18995 (CFLAGS-preadv64v2.c): Likewise.
18996 (CFLAGS-pwritev2.c): Likewise.
18997 (CFLAGS-pwritev64v2.c): Likewise.
18998 (CFLAGS-usleep.c): Likewise.
18999 (CFLAGS-syslog.c): Likewise.
19000 (CFLAGS-error.c): Likewise.
19001 (CFLAGS-getpass.c): Likewise.
19002 (CFLAGS-mkstemp.c): Likewise.
19003 (CFLAGS-mkstemp64.c): Likewise.
19004 (CFLAGS-getsysstats.c): Likewise.
19005 (CFLAGS-getusershell.c): Likewise.
19006 (CFLAGS-err.c): Likewise.
19007 (CFLAGS-tst-tsearch.c): Likewise.
19008 (CFLAGS-msync.c): Likewise.
19009 (CFLAGS-fdatasync.c): Likewise.
19010 (CFLAGS-fsync.c): Likewise.
19011 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19012 (CFLAGS-unwind.c): Likewise.
19013 (CFLAGS-unwind-forcedunwind.c): Likewise.
19014 (CFLAGS-pthread_cancel.c): Likewise.
19015 (CFLAGS-pthread_setcancelstate.c): Likewise.
19016 (CFLAGS-pthread_setcanceltype.c): Likewise.
19017 (CFLAGS-cancellation.c): Likewise.
19018 (CFLAGS-libc-cancellation.c): Likewise.
19019 (CFLAGS-pthread_exit.c): Likewise.
19020 (CFLAGS-forward.c): Likewise.
19021 (CFLAGS-pthread_testcancel.c): Likewise.
19022 (CFLAGS-pthread_join.c): Likewise.
19023 (CFLAGS-pthread_timedjoin.c): Likewise.
19024 (CFLAGS-pthread_once.c): Likewise.
19025 (CFLAGS-pthread_cond_wait.c): Likewise.
19026 (CFLAGS-sem_wait.c): Likewise.
19027 (CFLAGS-sem_timedwait.c): Likewise.
19028 (CFLAGS-fcntl.c): Likewise.
19029 (CFLAGS-lockf.c): Likewise.
19030 (CFLAGS-pread.c): Likewise.
19031 (CFLAGS-pread64.c): Likewise.
19032 (CFLAGS-pwrite.c): Likewise.
19033 (CFLAGS-pwrite64.c): Likewise.
19034 (CFLAGS-wait.c): Likewise.
19035 (CFLAGS-waitpid.c): Likewise.
19036 (CFLAGS-sigwait.c): Likewise.
19037 (CFLAGS-msgrcv.c): Likewise.
19038 (CFLAGS-msgsnd.c): Likewise.
19039 (CFLAGS-tcdrain.c): Likewise.
19040 (CFLAGS-open.c): Likewise.
19041 (CFLAGS-open64.c): Likewise.
19042 (CFLAGS-pause.c): Likewise.
19043 (CFLAGS-recv.c): Likewise.
19044 (CFLAGS-send.c): Likewise.
19045 (CFLAGS-accept.c): Likewise.
19046 (CFLAGS-sendto.c): Likewise.
19047 (CFLAGS-connect.c): Likewise.
19048 (CFLAGS-recvfrom.c): Likewise.
19049 (CFLAGS-recvmsg.c): Likewise.
19050 (CFLAGS-sendmsg.c): Likewise.
19051 (CFLAGS-close.c): Likewise.
19052 (CFLAGS-read.c): Likewise.
19053 (CFLAGS-write.c): Likewise.
19054 (CFLAGS-nanosleep.c): Likewise.
19055 (CFLAGS-sigsuspend.c): Likewise.
19056 (CFLAGS-msync.c): Likewise.
19057 (CFLAGS-fdatasync.c): Likewise.
19058 (CFLAGS-fsync.c): Likewise.
19059 (CFLAGS-pt-system.c): Likewise.
19060 (CFLAGS-tst-cleanup2.c): Likewise.
19061 (CFLAGS-tst-cleanupx2.c): Likewise.
19062 (CFLAGS-flockfile.c): Likewise.
19063 (CFLAGS-ftrylockfile.c): Likewise.
19064 (CFLAGS-funlockfile.c): Likewise.
19065 (CFLAGS-tst-initializers1.c): Likewise.
19066 (CFLAGS-tst-initializers1-c89.c): Likewise.
19067 (CFLAGS-tst-initializers1-c99.c): Likewise.
19068 (CFLAGS-tst-initializers1-c11.c): Likewise.
19069 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19070 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19071 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19072 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19073 (CFLAGS-nscd_getgr_r.c): Likewise.
19074 (CFLAGS-nscd_gethst_r.c): Likewise.
19075 (CFLAGS-nscd_getai.c): Likewise.
19076 (CFLAGS-nscd_initgroups.c): Likewise.
19077 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19078 (CFLAGS-pause.c): Likewise.
19079 (CFLAGS-pread.c): Likewise.
19080 (CFLAGS-pread64.c): Likewise.
19081 (CFLAGS-pwrite.c): Likewise.
19082 (CFLAGS-pwrite64.c): Likewise.
19083 (CFLAGS-sleep.c): Likewise.
19084 (CFLAGS-wait.c): Likewise.
19085 (CFLAGS-waitid.c): Likewise.
19086 (CFLAGS-waitpid.c): Likewise.
19087 (CFLAGS-getopt.c): Likewise.
19088 (CFLAGS-wordexp.c): Likewise.
19089 (CFLAGS-sysconf.c): Likewise.
19090 (CFLAGS-pathconf.c): Likewise.
19091 (CFLAGS-fpathconf.c): Likewise.
19092 (CFLAGS-spawn.c): Likewise.
19093 (CFLAGS-spawnp.c): Likewise.
19094 (CFLAGS-spawni.c): Likewise.
19095 (CFLAGS-glob.c): Likewise.
19096 (CFLAGS-glob64.c): Likewise.
19097 (CFLAGS-getconf.c): Likewise.
19098 (CFLAGS-nanosleep.c): Likewise.
19099 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19100 (CFLAGS-getpwent.c): Likewise.
19101 (CFLAGS-getpw.c): Likewise.
19102 (CFLAGS-fgetpwent_r.c): Likewise.
19103 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19104 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19105 (CFLAGS-mq_timedreceive.c): Likewise.
19106 (CFLAGS-mq_timedsend.c): Likewise.
19107 (CFLAGS-clock_nanosleep.c): Likewise.
19108 (CFLAGS-librt-cancellation.c): Likewise.
19109 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19110 (CFLAGS-getspent.c): Likewise.
19111 (CFLAGS-fgetspent.c): Likewise.
19112 (CFLAGS-fgetspent_r.c): Likewise.
19113 (CFLAGS-putspent.c): Likewise.
19114 (CFLAGS-getspnam.c): Likewise.
19115 (CFLAGS-getspnam_r.c): Likewise.
19116 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19117 (CFLAGS-sigsuspend.c): Likewise.
19118 (CFLAGS-sigtimedwait.c): Likewise.
19119 (CFLAGS-sigwait.c): Likewise.
19120 (CFLAGS-sigwaitinfo.c): Likewise.
19121 (CFLAGS-sigreturn.c): Likewise.
19122 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19123 (CFLAGS-vfwprintf.c): Likewise.
19124 (CFLAGS-tmpfile.c): Likewise.
19125 (CFLAGS-tmpfile64.c): Likewise.
19126 (CFLAGS-tempname.c): Likewise.
19127 (CFLAGS-psignal.c): Likewise.
19128 (CFLAGS-vprintf.c): Likewise.
19129 (CFLAGS-cuserid.c): Likewise.
19130 (CFLAGS-errlist.c): Likewise.
19131 (CFLAGS-siglist.c): Likewise.
19132 (CFLAGS-scanf15.c): Likewise.
19133 (CFLAGS-scanf17.c): Likewise.
19134 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19135 (CFLAGS-msort.c): Likewise.
19136 (CFLAGS-qsort.c): Likewise.
19137 (CFLAGS-system.c): Likewise.
19138 (CFLAGS-fmtmsg.c): Likewise.
19139 (CFLAGS-strfmon.c): Likewise.
19140 (CFLAGS-strfmon_l.c): Likewise.
19141 (CFLAGS-strfromd.c): Likewise.
19142 (CFLAGS-strfromf.c): Likewise.
19143 (CFLAGS-strfroml.c): Likewise.
19144 (CFLAGS-tst-bsearch.c): Likewise.
19145 (CFLAGS-tst-qsort.c): Likewise.
19146 (CFLAGS-tst-makecontext2.c): Likewise.
19147 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19148 (CFLAGS-xnlm_prot.c): Likewise.
19149 (CFLAGS-xrstat.c): Likewise.
19150 (CFLAGS-xyppasswd.c): Likewise.
19151 (CFLAGS-xklm_prot.c): Likewise.
19152 (CFLAGS-xrex.c): Likewise.
19153 (CFLAGS-xsm_inter.c): Likewise.
19154 (CFLAGS-xmount.c): Likewise.
19155 (CFLAGS-xrusers.c): Likewise.
19156 (CFLAGS-xspray.c): Likewise.
19157 (CFLAGS-xnfs_prot.c): Likewise.
19158 (CFLAGS-xrquota.c): Likewise.
19159 (CFLAGS-xkey_prot.c): Likewise.
19160 (CFLAGS-auth_unix.c): Likewise.
19161 (CFLAGS-key_call.c): Likewise.
19162 (CFLAGS-pmap_rmt.c): Likewise.
19163 (CFLAGS-clnt_perr.c): Likewise.
19164 (CFLAGS-openchild.c): Likewise.
19165 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19166 (CFLAGS-msgsnd.c): Likewise.
19167 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19168 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19169 (CFLAGS-tzset.c): Likewise.
19170 (CFLAGS-getdate.c): Likewise.
19171 (CFLAGS-test_time.c): Likewise.
19172 (CPPFLAGS-tst-tzname.c): Likewise.
19173 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19174 (CFLAGS-zic.c): Likewise.
19175 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19176 (CFLAGS-wcswidth.c): Likewise.
19177 (CFLAGS-wcstol.c): Likewise.
19178 (CFLAGS-wcstoul.c): Likewise.
19179 (CFLAGS-wcstoll.c): Likewise.
19180 (CFLAGS-wcstoull.c): Likewise.
19181 (CFLAGS-wcstod.c): Likewise.
19182 (CFLAGS-wcstold.c): Likewise.
19183 (CFLAGS-wcstof128.c): Likewise.
19184 (CFLAGS-wcstof.c): Likewise.
19185 (CFLAGS-wcstol_l.c): Likewise.
19186 (CFLAGS-wcstoul_l.c): Likewise.
19187 (CFLAGS-wcstoll_l.c): Likewise.
19188 (CFLAGS-wcstoull_l.c): Likewise.
19189 (CFLAGS-wcstod_l.c): Likewise.
19190 (CFLAGS-wcstold_l.c): Likewise.
19191 (CFLAGS-wcstof128_l.c): Likewise.
19192 (CFLAGS-wcstof_l.c): Likewise.
19193 (CPPFLAGS-tst-wchar-h.c): Likewise.
19194 (CPPFLAGS-wcstold_l.c): Likewise.
19195
19196 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19197
19198 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19199
19200 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19201 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19202
19203 * manual/tunables.texi (Hardware Capability Tunables): Document
19204 glibc.tune.cached_memopt.
19205 * sysdeps/powerpc/cpu-features.c: New file.
19206 * sysdeps/powerpc/cpu-features.h: New file.
19207 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19208 _dl_powerpc_cpu_features.
19209 * sysdeps/powerpc/dl-tunables.list: New file.
19210 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19211 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19212 (INIT_ARCH): Initialize use_aligned_memopt.
19213 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19214 IS_IN(rtld))]: Restrict dl_platform_init availability and
19215 initialize CPU features used by tunables.
19216 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19217 Add memcpy-power8-cached.
19218 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19219 __memcpy_power8_cached.
19220 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19221 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19222 New file.
19223
19224 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19225
19226 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19227 (CFLAGS-noinl-tester.c): Likewise.
19228 (CFLAGS-tst-strlen.c): Likewise.
19229 (CFLAGS-stratcliff.c): Likewise.
19230 (CFLAGS-test-ffs.c): Likewise.
19231 (CFLAGS-tst-inlcall.c): Likewise.
19232 (CFLAGS-tst-xbzero-opt.c): Likewise.
19233 (CFLAGS-memcpy.c): Likewise.
19234 (CFLAGS-wordcopy.c): Likewise.
19235
19236 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19237
19238 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19239 Store r15 on stack and add cfi rule.
19240 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19241 Likewise.
19242
19243 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19244
19245 [BZ #22577]
19246 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19247 call.
19248
19249 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19250
19251 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19252 Add s_sinf-sse2 and s_sinf-fma.
19253 (CFLAGS-s_sinf-fma.c): New.
19254 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19255 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19256 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19257
19258 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19259
19260 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19261
19262 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19263
19264 [BZ #22568]
19265 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19266 part of result to imaginary part of argument if it is zero and the
19267 real part of the argument is not finite.
19268 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19269 of result to real part of argument if it is zero and the imaginary
19270 part of the argument is not finite.
19271
19272 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19273
19274 [BZ #22524]
19275 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19276 and to the list of locales to be built for testing.
19277 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19278 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19279 and build the collation rules upon that.
19280
19281 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19282
19283 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19284 * manual/math.texi (Mathematics): Document support for _Float32.
19285 * math/Makefile (test-types): Add float32.
19286 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19287 * stdlib/Versions (GLIBC_2.27): Likewise.
19288 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19289 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19290 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19291 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19292 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19293 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19294 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19295 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19296 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19297 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19298 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19299 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19300 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19301 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19302 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19303 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19304 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19305 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19306 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19307 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19308 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19309 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19310 Likewise.
19311 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19312 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19313 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19314 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19315 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19317 Likewise.
19318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19319 Likewise.
19320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19321 Likewise.
19322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19323 Likewise.
19324
19325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19326 Likewise.
19327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19328 Likewise.
19329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19330 Likewise.
19331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19332 Likewise.
19333 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19334 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19335 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19336 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19337 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19338 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19339 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19340 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19341 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19342 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19343 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19344 Likewise.
19345 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19346 Likewise.
19347 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19348 Likewise.
19349 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19350 Likewise.
19351 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19352 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19353 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19354 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19355 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19356 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19357 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19358 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19359
19360 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19361
19362 * stdlib/strtof.c: Include <bits/floatn.h>
19363 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19364 and later undefine as macro. Define as weak alias if
19365 [!USE_WIDE_CHAR].
19366 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19367 and later undefine as macro. Define as weak alias if
19368 [USE_WIDE_CHAR].
19369 * stdlib/strtof_l.c: Include <bits/floatn.h>
19370 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19371 and later undefine as macro. Define as weak alias if
19372 [!USE_WIDE_CHAR].
19373 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19374 and later undefine as macro. Define as weak alias if
19375 [USE_WIDE_CHAR].
19376
19377 * stdlib/strfromf.c: Include <bits/floatn.h>.
19378 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19379 and later undefine as macro and define as weak alias.
19380
19381 * math/test-float32.h: New file.
19382
19383 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19384 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19385 (libm_alias_float_other_r): Create f32 alias.
19386 (libm_alias_float_r): Use semicolon before call to
19387 libm_alias_float_other_r.
19388
19389 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19390 second argument to libm_alias_float_other.
19391 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19392 second argument to libm_alias_float_other.
19393 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19394 argument to libm_alias_float_other.
19395
19396 [BZ #22561]
19397 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19398 real part of result for argument 0 + i * NaN.
19399 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19400 results for tests of 0 + i * NaN.
19401
19402 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19403
19404 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19405
19406 2017-12-06 David S. Miller <davem@davemloft.net>
19407
19408 * sysdeps/sparc/fpu/libm-test-ulps: Update
19409 exp_{downward,towardzero,upward} ulps.
19410
19411 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19412
19413 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19414 variables static.
19415
19416 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19417 (Y0_2D): Likewise.
19418 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19419 (Y0_2D): Likewise.
19420 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19421 (Y0_2D): Likewise.
19422 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19423 (Y0_2D): Likewise.
19424
19425 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19426
19427 [BZ #22515]
19428 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19429 and to the list of locales to be built for testing.
19430 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19431 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19432 and build the collation rules upon that.
19433
19434 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19435
19436 * NEWS: Add sinf to list of optimized functions.
19437
19438 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19439
19440 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19441 (__HAVE_FLOAT32X): Likewise.
19442 * manual/math.texi (Mathematics): Document support for _Float64
19443 and _Float32x.
19444 * math/Makefile (test-types): Add float64 and float32x.
19445 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19446 functions.
19447 * stdlib/Versions (GLIBC_2.27): Likewise.
19448 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19449 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19450 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19451 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19452 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19453 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19454 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19455 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19456 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19457 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19458 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19459 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19460 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19461 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19462 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19463 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19464 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19465 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19466 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19467 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19469 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19470 Likewise.
19471 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19472 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19473 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19474 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19475 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19477 Likewise.
19478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19479 Likewise.
19480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19481 Likewise.
19482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19483 Likewise.
19484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19485 Likewise.
19486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19487 Likewise.
19488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19489 Likewise.
19490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19491 Likewise.
19492 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19493 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19494 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19495 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19496 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19497 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19498 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19499 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19500 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19501 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19502 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19503 Likewise.
19504 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19505 Likewise.
19506 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19507 Likewise.
19508 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19509 Likewise.
19510 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19511 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19512 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19513 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19514 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19515 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19516 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19517 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19518
19519 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19520
19521 * bits/floatn-common.h: Include <bits/long-double.h>.
19522 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19523 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19524 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19525 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19526 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19527 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19528 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19529 (__builtin_huge_valf64): Use __builtin_huge_vall.
19530 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19531 (__builtin_inff64): Use __builtin_infl.
19532 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19533 (__builtin_nanf64): Use __builtin_nanl.
19534 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19535 (__builtin_nansf64): Use __builtin_nansl.
19536
19537 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19538 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19539 Carlos O'Donnell <carlos@redhat.com>
19540
19541 * elf/dl-tunables.list: Add elision parameters.
19542 * manual/tunables.texi: Add entries about elision tunable.
19543 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19544 Add callback functions to dynamically enable/disable elision.
19545 Add multiple callbacks functions to set elision parameters.
19546 Deleted __libc_enable_secure check.
19547 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19548 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19549 * configure: Regenerated.
19550 * configure.ac: Option enable_lock_elision was deleted.
19551 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19552 * config.make.in: Remove references to enable_lock_elision.
19553 * manual/install.texi: Elision configure option was removed.
19554 * INSTALL: Regenerated to remove enable_lock_elision.
19555 * nptl/Makefile:
19556 Disable elision so it can verify error case for destroying a mutex.
19557 * sysdeps/powerpc/nptl/elide.h:
19558 Cleanup ENABLE_LOCK_ELISION check.
19559 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19560 * sysdeps/s390/configure: Regenerated.
19561 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19562 * nptl/tst-mutex8.c:
19563 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19564 * sysdeps/powerpc/powerpc32/sysdep.h:
19565 Deleted all ENABLE_LOCK_ELISION checks.
19566 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19567 * sysdeps/powerpc/sysdep.h: Likewise.
19568 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19569 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19570 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19571 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19572 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19573 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19574 enable-lock-elision.
19575
19576 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19577
19578 * stdlib/strtod.c: Include <bits/floatn.h>.
19579 (BUILD_DOUBLE): New macro.
19580 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19581 (strtof64): Define and later undefine as macro. Define as weak
19582 alias if [!USE_WIDE_CHAR].
19583 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19584 (wcstof64): Define and later undefine as macro. Define as weak
19585 alias if [USE_WIDE_CHAR].
19586 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19587 (strtof32x): Define and later undefine as macro. Define as weak
19588 alias if [!USE_WIDE_CHAR].
19589 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19590 (wcstof32x): Define and later undefine as macro. Define as weak
19591 alias if [USE_WIDE_CHAR].
19592 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19593 (BUILD_DOUBLE): New macro.
19594 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19595 (strtof64_l): Define and later undefine as macro. Define as weak
19596 alias if [!USE_WIDE_CHAR].
19597 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19598 (wcstof64_l): Define and later undefine as macro. Define as weak
19599 alias if [USE_WIDE_CHAR].
19600 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19601 (strtof32x_l): Define and later undefine as macro. Define as weak
19602 alias if [!USE_WIDE_CHAR].
19603 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19604 (wcstof32x_l): Define and later undefine as macro. Define as weak
19605 alias if [USE_WIDE_CHAR].
19606
19607 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19608
19609 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19610 (reduced): Use ones as double instead of integer.
19611
19612 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19613
19614 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19615
19616 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19617
19618 * stdlib/strfromd.c: Include <bits/floatn.h>.
19619 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19620 and later undefine as macro and define as weak alias.
19621 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19622 Likewise.
19623
19624 * math/test-float32x.h: New file.
19625 * math/test-float64.h: Likewise.
19626
19627 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19628 (libm_alias_double_other_r_f64): New macro.
19629 (libm_alias_double_other_r_f32x): Likewise.
19630 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19631 libm_alias_double_other_r_f32x.
19632 (libm_alias_double_r): Use semicolon before call to
19633 libm_alias_double_other_r.
19634 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19635 <bits/floatn.h>.
19636 (libm_alias_double_other_r_f64): New macro.
19637 (libm_alias_double_other_r_f32x): Likewise.
19638 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19639 libm_alias_double_other_r_f32x.
19640
19641 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19642
19643 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19644 int.
19645 (SINF_FUNC): Likewise. Replace floor with simple casts.
19646
19647 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19648
19649 [BZ #22517]
19650 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19651 and to the list of locales to be built for testing.
19652 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19653 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19654 and build the collation rules upon that.
19655
19656 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19657
19658 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19659 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19660 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19661 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19662 instead of __insn__xxx.
19663 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19664 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19665 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19666 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19667 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19668 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19669
19670 2017-12-05 Florian Weimer <fweimer@redhat.com>
19671
19672 Linux: Implement interfaces for memory protection keys
19673 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19674 xsignal, xsysconf.
19675 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19676 * support/xunistd.h (xsysconf): Declare.
19677 * support/xraise.c: New file.
19678 * support/xsigaction.c: Likewise.
19679 * support/xsignal.c: Likewise.
19680 * support/xsysconf.c: Likewise.
19681 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19682 pkey_set, pkey_get, pkey_mprotect.
19683 [misc] (tests): Add tst-pkey.
19684 (tst-pkey): Link with -lpthread.
19685 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19686 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19687 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19688 (PKEY_DISABLE_WRITE): Define.
19689 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19690 Declare.
19691 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19692 (SEGV_PKUERR): Add.
19693 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19694 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19695 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19696 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19697 Add.
19698 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19699 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19700 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19701 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19702 * sysdeps/unix/sysv/linux/**.abilist: Update.
19703
19704 2017-12-05 Florian Weimer <fweimer@redhat.com>
19705
19706 * support/tst-test_compare.c (subprocess): Use long long instead
19707 of long argument for consistent type width across 32-bit and
19708 64-bit architectures.
19709 (do_test): Adjust expected output.
19710
19711 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19712
19713 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19714 (cosf): Define using libm_alias_float.
19715 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19716 (fabsf): Define using libm_alias_float.
19717 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19718 (fmaf): Define using libm_alias_float.
19719 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19720 (rintf): Define using libm_alias_float.
19721 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19722 (sinf): Define using libm_alias_float.
19723 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19724 <libm-alias-float.h>.
19725 (modff): Define using libm_alias_float.
19726 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19727 <libm-alias-float.h>.
19728 (logbf): Define using libm_alias_float.
19729 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19730 <libm-alias-float.h>.
19731 (ceilf): Define using libm_alias_float.
19732 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19733 <libm-alias-float.h>.
19734 (copysignf): Define using libm_alias_float.
19735 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19736 <libm-alias-float.h>.
19737 (floorf): Define using libm_alias_float.
19738 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19739 <libm-alias-float.h>.
19740 (llrintf): Define using libm_alias_float.
19741 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19742 <libm-alias-float.h>.
19743 (llroundf): Define using libm_alias_float.
19744 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19745 <libm-alias-float.h>.
19746 (lrintf): Define using libm_alias_float.
19747 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19748 <libm-alias-float.h>.
19749 (lroundf): Define using libm_alias_float.
19750 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19751 <libm-alias-float.h>.
19752 (nearbyintf): Define using libm_alias_float.
19753 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19754 <libm-alias-float.h>.
19755 (rintf): Define using libm_alias_float.
19756 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19757 <libm-alias-float.h>.
19758 (roundf): Define using libm_alias_float.
19759 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19760 <libm-alias-float.h>.
19761 (truncf): Define using libm_alias_float.
19762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19763 Include <libm-alias-float.h>.
19764 (ceilf): Define using libm_alias_float.
19765 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19766 Include <libm-alias-float.h>.
19767 (copysignf): Define using libm_alias_float.
19768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19769 Include <libm-alias-float.h>.
19770 (floorf): Define using libm_alias_float.
19771 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19772 Include <libm-alias-float.h>.
19773 (llrintf): Define using libm_alias_float.
19774 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19775 Include <libm-alias-float.h>.
19776 (llroundf): Define using libm_alias_float.
19777 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19778 Include <libm-alias-float.h>.
19779 (logbf): Define using libm_alias_float.
19780 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19781 Include <libm-alias-float.h>.
19782 (lrintf): Define using libm_alias_float.
19783 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19784 Include <libm-alias-float.h>.
19785 (lroundf): Define using libm_alias_float.
19786 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19787 Include <libm-alias-float.h>.
19788 (modff): Define using libm_alias_float.
19789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19790 Include <libm-alias-float.h>.
19791 (roundf): Define using libm_alias_float.
19792 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19793 Include <libm-alias-float.h>.
19794 (truncf): Define using libm_alias_float.
19795 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19796 <libm-alias-float.h>.
19797 (llrintf): Define using libm_alias_float.
19798 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19799 <libm-alias-float.h>.
19800 (llroundf): Define using libm_alias_float.
19801 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19802 <libm-alias-float.h>.
19803 (ceilf): Define using libm_alias_float.
19804 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19805 <libm-alias-float.h>.
19806 (floorf): Define using libm_alias_float.
19807 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19808 <libm-alias-float.h>.
19809 (llroundf): Define using libm_alias_float.
19810 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19811 <libm-alias-float.h>.
19812 (lroundf): Define using libm_alias_float.
19813 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19814 <libm-alias-float.h>.
19815 (roundf): Define using libm_alias_float.
19816 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19817 <libm-alias-float.h>.
19818 (truncf): Define using libm_alias_float.
19819 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19820 <libm-alias-float.h>.
19821 (copysignf): Define using libm_alias_float.
19822 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19823 <libm-alias-float.h>.
19824 (llrintf): Define using libm_alias_float.
19825 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19826 <libm-alias-float.h>.
19827 (llroundf): Define using libm_alias_float.
19828 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19829 <libm-alias-float.h>.
19830 (lrintf): Define using libm_alias_float.
19831 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19832 <libm-alias-float.h>.
19833 (lroundf): Define using libm_alias_float.
19834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19835 <libm-alias-float.h>.
19836 (ceilf): Define using libm_alias_float.
19837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19838 <libm-alias-float.h>.
19839 (copysignf): Define using libm_alias_float.
19840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19841 <libm-alias-float.h>.
19842 (cosf): Define using libm_alias_float.
19843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19844 <libm-alias-float.h>.
19845 (floorf): Define using libm_alias_float.
19846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19847 <libm-alias-float.h>.
19848 (llrintf): Define using libm_alias_float.
19849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19850 <libm-alias-float.h>.
19851 (llroundf): Define using libm_alias_float.
19852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19853 <libm-alias-float.h>.
19854 (logbf): Define using libm_alias_float.
19855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19856 <libm-alias-float.h>.
19857 (modff): Define using libm_alias_float.
19858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19859 <libm-alias-float.h>.
19860 (roundf): Define using libm_alias_float.
19861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19862 <libm-alias-float.h>.
19863 (sinf): Define using libm_alias_float.
19864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19865 <libm-alias-float.h>.
19866 (truncf): Define using libm_alias_float.
19867 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19868 <libm-alias-float.h>.
19869 (ceilf): Define using libm_alias_float.
19870 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19871 <libm-alias-float.h>.
19872 (copysignf): Define using libm_alias_float.
19873 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19874 <libm-alias-float.h>.
19875 (floorf): Define using libm_alias_float.
19876 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19877 <libm-alias-float.h>.
19878 (llrintf): Define using libm_alias_float.
19879 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19880 <libm-alias-float.h>.
19881 (llroundf): Define using libm_alias_float.
19882 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19883 <libm-alias-float.h>.
19884 (nearbyintf): Define using libm_alias_float.
19885 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19886 <libm-alias-float.h>.
19887 (rintf): Define using libm_alias_float.
19888 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19889 <libm-alias-float.h>.
19890 (roundf): Define using libm_alias_float.
19891 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19892 <libm-alias-float.h>.
19893 (truncf): Define using libm_alias_float.
19894 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19895 <libm-alias-float.h>.
19896 (ceilf): Define using libm_alias_float.
19897 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19898 <libm-alias-float.h>.
19899 (floorf): Define using libm_alias_float.
19900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19901 <libm-alias-float.h>.
19902 (llroundf): Define using libm_alias_float.
19903 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19904 <libm-alias-float.h>.
19905 (roundf): Define using libm_alias_float.
19906 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19907 <libm-alias-float.h>.
19908 (truncf): Define using libm_alias_float.
19909 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19910 <libm-alias-float.h>.
19911 (copysignf): Define using libm_alias_float.
19912 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19913 <libm-alias-float.h>.
19914 (llrintf): Define using libm_alias_float.
19915 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19916 <libm-alias-float.h>.
19917 (llroundf): Define using libm_alias_float.
19918 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19919 <libm-alias-float.h>.
19920 (cosf): Define using libm_alias_float.
19921 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19922 <libm-alias-float.h>.
19923 (llrintf): Define using libm_alias_float.
19924 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19925 <libm-alias-float.h>.
19926 (llroundf): Define using libm_alias_float.
19927 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19928 <libm-alias-float.h>.
19929 (sinf): Define using libm_alias_float.
19930
19931 2017-12-04 Florian Weimer <fweimer@redhat.com>
19932
19933 * support/check.h (TEST_COMPARE): Define.
19934 (support_test_compare_failure): Declare.
19935 * support/Makefile (libsupport-routines): Add
19936 support_test_compare_failure.
19937 (tests): Add tst-test_compare.
19938 * support /support_test_compare_failure.c: New file.
19939 * support/tst-test_compare.c: Likewise.
19940
19941 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19942
19943 [BZ #22527]
19944 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19945 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19946 available, this rewrite of the collation rules does reproduce
19947 the test file in the same order.
19948
19949 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19950
19951 [BZ #10580]
19952 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19953 digraphs in the month and day names. Using single code points for
19954 digraphs is deprecated. While there are dedicated Unicode
19955 codepoints, for the digraphs, these are included for backwards
19956 compatibility and modern texts use a sequence of Basic Latin
19957 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19958 This makes the month and day names agree exactly with CLDR now,
19959 CLDR does not use the single code points for the digraphs either.
19960
19961 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19962
19963 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19964
19965 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19966
19967 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19968 of floor.
19969
19970 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19971
19972 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19973 Define only for libc.so.
19974
19975 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19976
19977 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19978 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19979 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19980 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19981 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19982
19983 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19984
19985 [BZ #5997]
19986 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19987
19988 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19989
19990 [BZ libc/19170]
19991 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19992 PREINIT_FUNCTION_WEAK is nonzero.
19993 (gmon_initializer): New function. Put procedure label for it in
19994 .init_array section.
19995 (_init): Don't call PREINIT_FUNCTION.
19996 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19997 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19998 value when map argument is null.
19999
20000 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20001 depi instruction from PIC pc-relative sequence.
20002 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20003 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20004 (elf_machine_load_address): Likewise.
20005 (elf_machine_runtime_setup): Likewise.
20006
20007 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20008
20009 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20010 <libm-alias-double.h>.
20011 (logb): Define using libm_alias_double.
20012 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20013 <libm-alias-double.h>.
20014 (copysign): Define using libm_alias_double.
20015 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20016 <libm-alias-double.h>.
20017 (llrint): Define using libm_alias_double.
20018 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20019 <libm-alias-double.h>.
20020 (llround): Define using libm_alias_double.
20021 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20022 <libm-alias-double.h>.
20023 (lrint): Define using libm_alias_double.
20024 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20025 <libm-alias-double.h>.
20026 (lround): Define using libm_alias_double.
20027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20028 Include <libm-alias-double.h>.
20029 (copysign): Define using libm_alias_double.
20030 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20031 Include <libm-alias-double.h>.
20032 (llrint): Define using libm_alias_double.
20033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20034 Include <libm-alias-double.h>.
20035 (llround): Define using libm_alias_double.
20036 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20037 <libm-alias-double.h>.
20038 (logb): Define using libm_alias_double.
20039 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20040 Include <libm-alias-double.h>.
20041 (lrint): Define using libm_alias_double.
20042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20043 Include <libm-alias-double.h>.
20044 (lround): Define using libm_alias_double.
20045 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20046 <libm-alias-double.h>.
20047 (llrint): Define using libm_alias_double.
20048 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20049 <libm-alias-double.h>.
20050 (llround): Define using libm_alias_double.
20051 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20052 <libm-alias-double.h>.
20053 (llround): Define using libm_alias_double.
20054 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20055 <libm-alias-double.h>.
20056 (lround): Define using libm_alias_double.
20057 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20058 <libm-alias-double.h>.
20059 (copysign): Define using libm_alias_double.
20060 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20061 <libm-alias-double.h>.
20062 (llrint): Define using libm_alias_double.
20063 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20064 <libm-alias-double.h>.
20065 (llround): Define using libm_alias_double.
20066 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20067 <libm-alias-double.h>.
20068 (lrint): Define using libm_alias_double.
20069 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20070 <libm-alias-double.h>.
20071 (lround): Define using libm_alias_double.
20072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20073 <libm-alias-double.h>.
20074 (copysign): Define using libm_alias_double.
20075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20076 <libm-alias-double.h>.
20077 (llrint): Define using libm_alias_double.
20078 (lrint): Likewise.
20079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20080 <libm-alias-double.h>.
20081 (llround): Define using libm_alias_double.
20082 (lround): Likewise.
20083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20084 <libm-alias-double.h>.
20085 (logb): Define using libm_alias_double.
20086 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20087 <libm-alias-double.h>.
20088 (copysign): Define using libm_alias_double.
20089 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20090 <libm-alias-double.h>.
20091 (llrint): Define using libm_alias_double.
20092 (lrint): Likewise.
20093 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20094 <libm-alias-double.h>.
20095 (llround): Define using libm_alias_double.
20096 (lround): Likewise.
20097 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20098 <libm-alias-double.h>.
20099 (llround): Define using libm_alias_double.
20100 (lround): Likewise.
20101 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20102 <libm-alias-double.h>.
20103 (copysign): Define using libm_alias_double.
20104 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20105 <libm-alias-double.h>.
20106 (llrint): Define using libm_alias_double.
20107 (lrint): Likewise.
20108 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20109 <libm-alias-double.h>.
20110 (llround): Define using libm_alias_double.
20111 (lround): Likewise.
20112 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20113 <libm-alias-double.h>.
20114 (llrint): Define using libm_alias_double.
20115 (lrint): Likewise.
20116 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20117 <libm-alias-double.h>.
20118 (llround): Define using libm_alias_double.
20119 (lround): Likewise.
20120
20121 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20122
20123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20124 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20125 compat symbol based on llround.
20126
20127 * sysdeps/powerpc/power7/fpu/s_logb.c
20128 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20129 symbol based on __logb, not on logb.
20130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20131 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20133 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20134
20135 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20136 (rint): Define using libm_alias_double.
20137 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20138 <libm-alias-double.h>.
20139 (modf): Define using libm_alias_double.
20140 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20141 <libm-alias-double.h>.
20142 (ceil): Define using libm_alias_double.
20143 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20144 <libm-alias-double.h>.
20145 (floor): Define using libm_alias_double.
20146 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20147 <libm-alias-double.h>.
20148 (nearbyint): Define using libm_alias_double.
20149 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20150 <libm-alias-double.h>.
20151 (rint): Define using libm_alias_double.
20152 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20153 <libm-alias-double.h>.
20154 (round): Define using libm_alias_double.
20155 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20156 <libm-alias-double.h>.
20157 (trunc): Define using libm_alias_double.
20158 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20159 <libm-alias-double.h>.
20160 (ceil): Define using libm_alias_double.
20161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20162 Include <libm-alias-double.h>.
20163 (floor): Define using libm_alias_double.
20164 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20165 <libm-alias-double.h>.
20166 (modf): Define using libm_alias_double.
20167 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20168 Include <libm-alias-double.h>.
20169 (round): Define using libm_alias_double.
20170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20171 Include <libm-alias-double.h>.
20172 (trunc): Define using libm_alias_double.
20173 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20174 <libm-alias-double.h>.
20175 (ceil): Define using libm_alias_double.
20176 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20177 <libm-alias-double.h>.
20178 (floor): Define using libm_alias_double.
20179 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20180 <libm-alias-double.h>.
20181 (round): Define using libm_alias_double.
20182 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20183 <libm-alias-double.h>.
20184 (trunc): Define using libm_alias_double.
20185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20186 <libm-alias-double.h>.
20187 (ceil): Define using libm_alias_double.
20188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20189 <libm-alias-double.h>.
20190 (floor): Define using libm_alias_double.
20191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20192 <libm-alias-double.h>.
20193 (modf): Define using libm_alias_double.
20194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20195 <libm-alias-double.h>.
20196 (round): Define using libm_alias_double.
20197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20198 <libm-alias-double.h>.
20199 (trunc): Define using libm_alias_double.
20200 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20201 <libm-alias-double.h>.
20202 (ceil): Define using libm_alias_double.
20203 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20204 <libm-alias-double.h>.
20205 (floor): Define using libm_alias_double.
20206 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20207 <libm-alias-double.h>.
20208 (nearbyint): Define using libm_alias_double.
20209 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20210 <libm-alias-double.h>.
20211 (rint): Define using libm_alias_double.
20212 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20213 <libm-alias-double.h>.
20214 (round): Define using libm_alias_double.
20215 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20216 <libm-alias-double.h>.
20217 (trunc): Define using libm_alias_double.
20218 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20219 <libm-alias-double.h>.
20220 (ceil): Define using libm_alias_double.
20221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20222 <libm-alias-double.h>.
20223 (floor): Define using libm_alias_double.
20224 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20225 <libm-alias-double.h>.
20226 (round): Define using libm_alias_double.
20227 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20228 <libm-alias-double.h>.
20229 (trunc): Define using libm_alias_double.
20230
20231 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20232 (fabs): Define using libm_alias_double.
20233 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20234 (fma): Define using libm_alias_double.
20235 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20236 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20237 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20238 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20239
20240 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20241
20242 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20243
20244 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20245 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20246 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20247
20248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20249 due redirect macro.
20250
20251 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20252
20253 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20254
20255 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20256
20257 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20258 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20259 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20260 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20261
20262 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20263 (libm-sysdep_routines): Add s_nearbyintf-generic and
20264 s_nearbyint-generic.
20265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20266 New file.
20267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20269 Likewise.
20270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20271 Likewise.
20272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20273 file.
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20275 Likewise.
20276
20277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20278 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20280 file.
20281 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20283 Likewise.
20284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20286 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20287
20288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20289 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20290 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20291 file.
20292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20294 Likewise.
20295 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20298
20299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20300 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20301 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20302 file.
20303 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20304 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20305 Likewise.
20306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20307 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20308 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20309
20310 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20311 (sysdep_calls): New rule.
20312 (sysdep_routines): Use sysdep_calls as base.
20313 (libm-sysdep_routines): Add generic rule for symbols shared with
20314 libc. Add s_copysign-generic and s_copysign-generic objects.
20315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20316 New file.
20317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20318 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20319 Likewise.
20320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20322 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20323
20324 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20325
20326 [BZ #22519]
20327 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20328 the list of locales to be built for testing.
20329 * localedata/is_IS.UTF-8.in: New file.
20330 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20331 on iso14651_t1.
20332
20333 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20334
20335 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20336 <libm-alias-float.h>.
20337 (fabsf): Define using libm_alias_float.
20338
20339 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20340
20341 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20342
20343 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20344
20345 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20346 <libm-alias-float.h>.
20347 (fabsf): Define using libm_alias_float.
20348 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20349 <libm-alias-float.h>.
20350 (lrintf): Define using libm_alias_float.
20351 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20352 <libm-alias-float.h>.
20353 (rintf): Define using libm_alias_float.
20354
20355 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20356 <libm-alias-double.h>.
20357 (fabs): Define using libm_alias_double.
20358 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20359 <libm-alias-double.h>.
20360 (lrint): Define using libm_alias_double.
20361 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20362 <libm-alias-double.h>.
20363 (rint): Define using libm_alias_double.
20364
20365 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20366 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20367 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20368 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20369 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20370 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20371 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20372 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20373 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20374 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20375 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20376 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20377 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20378 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20379 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20380 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20381 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20382 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20383 s_atan_template.c.
20384 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20385 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20386 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20387 s_ceil_template.c.
20388 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20389 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20390 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20391 s_cos_template.c.
20392 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20393 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20394 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20395 s_expm1_template.c.
20396 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20397 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20398 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20399 s_fabs_template.c.
20400 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20401 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20402 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20403 s_floor_template.c.
20404 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20405 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20406 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20407 s_frexp_template.c.
20408 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20409 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20410 s_lrint_template.c.
20411 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20412 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20413 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20414 s_modf_template.c.
20415 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20416 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20417 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20418 s_nearbyint_template.c.
20419 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20420 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20421 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20422 s_remquo_template.c.
20423 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20424 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20425 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20426 s_rint_template.c.
20427 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20428 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20429 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20430 s_sin_template.c.
20431 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20432 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20433 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20434 s_sincos_template.c.
20435 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20436 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20437 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20438 s_tan_template.c.
20439 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20440 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20441 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20442 s_tanh_template.c.
20443 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20444 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20445 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20446 s_trunc_template.c.
20447 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20448 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20449 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20450 s_atan.c instead of including s_atan.c.
20451 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20452 s_atanf.c instead of including s_atanf.c.
20453 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20454 s_atanl.c instead of including s_atanl.c.
20455 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20456 instead of s_atan.c.
20457 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20458 instead of s_atanf.c.
20459 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20460 instead of s_atanl.c.
20461
20462 * scripts/update-copyrights: Do not handle intl/plural.c
20463 specially.
20464
20465 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20466
20467 [BZ #22432]
20468 * configure.ac (BISON): Require to be present.
20469 * configure: Regenerated.
20470 * intl/Makefile (generated): Add plural.c.
20471 [$(BISON) != no]: Make code unconditional.
20472 (plural.c): Change rule to $(objpfx)plural.c.
20473 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20474 * intl/plural.c: Remove.
20475 * manual/install.texi (Tools for Compilation): Document bison as
20476 required.
20477 * INSTALL: Regenerated.
20478
20479 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20480
20481 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20482 <libm-alias-double.h>.
20483 (llrint): Define using libm_alias_double.
20484 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20485 <libm-alias-float.h>.
20486 (llrintf): Define using libm_alias_float.
20487 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20488 <libm-alias-ldouble.h>.
20489 (llrintl): Define using libm_alias_ldouble.
20490
20491 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20492 declare_mgen_alias instead of weak_alias.
20493 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20494 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20495 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20496
20497 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20498
20499 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20500 Add add_n-generic.
20501 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20502 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20503 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20504
20505 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20506 Add submul_1-generic.
20507 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20508 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20509 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20510
20511 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20512 Add addmul_1-generic.
20513 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20514 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20515 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20516
20517 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20518 Add sub_n-generic.
20519 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20520 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20521 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20522
20523 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20524 Add mul_1-generic.
20525 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20526 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20527 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20528
20529 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20530
20531 According to CLDR, collation rules for Serbian and Bosnian
20532 should be the same as for Croatian.
20533
20534 [BZ #22534]
20535 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20536 and to the list of locales to be built for testing.
20537 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20538 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20539 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20540 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20541
20542 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20543
20544 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20545 to make test case pass.
20546 * localedata/hr_HR.UTF-8.in: Add more test strings.
20547
20548 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20549
20550 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20551
20552 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20553
20554 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20555 the list of locales to built for testing.
20556 * localedata/hr_HR.UTF-8.in: New file.
20557
20558 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20559
20560 [BZ #10580]
20561 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20562 iso14651_t1.
20563 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20564 CLDR (except use ligatures for the digraphs, CLDR does not use
20565 the ligatures), add first_workday, some fixes in the date and time
20566 formats.
20567 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20568 for Đ and đ.
20569 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20570 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20571 Add int_p_cs_precedes and int_n_cs_precedes.
20572 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20573 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20574 LC_MONETARY now).
20575 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20576 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20577 name_miss.
20578 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20579 and lang_lib. Change postal_fmt.
20580
20581 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20582
20583 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20584 <setjmp.h>.
20585 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20586 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20587 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20588 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20589 * sysdeps/generic/setjmpP.h: New file.
20590 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20591 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20592 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20593 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20594 Add jmp_buf-ssp.sym.
20595 (tests): Add tst-saved_mask-1.
20596
20597 2017-11-30 Arjun Shankar <arjun@redhat.com>
20598
20599 [BZ #22375]
20600 CVE-2017-17426
20601 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20602 instead of request2size.
20603
20604 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20605
20606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20607 (__lllrint): Remove alias.
20608 (lllrint): Likewise.
20609 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20610 (__lllrintf): Likewise.
20611 (lllrintf): Likewise.
20612
20613 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20614 <libm-alias-float.h>.
20615 (copysignf): Define using libm_alias_float.
20616 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20617 <libm-alias-float.h>.
20618 (fabsf): Define using libm_alias_float.
20619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20620 Include <libm-alias-float.h>.
20621 (copysignf): Define using libm_alias_float.
20622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20623 <libm-alias-float.h>.
20624 (fabsf): Define using libm_alias_float.
20625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20626 <libm-alias-float.h>.
20627 (fdimf): Define using libm_alias_float.
20628 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20629 <libm-alias-float.h>.
20630 (fmaf): Define using libm_alias_float.
20631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20632 <libm-alias-float.h>.
20633 (llrintf): Define using libm_alias_float.
20634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20635 Include <libm-alias-float.h>.
20636 (nearbyintf): Define using libm_alias_float.
20637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20638 <libm-alias-float.h>.
20639 (rintf): Define using libm_alias_float.
20640 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20641 <libm-alias-float.h>.
20642 (llrintf): Define using libm_alias_float.
20643 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20644 <libm-alias-float.h>.
20645 (lrintf): Define using libm_alias_float.
20646 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20647 <libm-alias-float.h>.
20648 (nearbyintf): Define using libm_alias_float.
20649 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20650 <libm-alias-float.h>.
20651 (rintf): Define using libm_alias_float.
20652 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20653 <libm-alias-float.h>.
20654 (ceilf): Define using libm_alias_float.
20655 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20656 <libm-alias-float.h>.
20657 (floorf): Define using libm_alias_float.
20658 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20659 <libm-alias-float.h>.
20660 (fmaf): Define using libm_alias_float.
20661 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20662 <libm-alias-float.h>.
20663 (lrintf): Define using libm_alias_float.
20664 (llrintf): Likewise.
20665 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20666 <libm-alias-float.h>.
20667 (nearbyintf): Define using libm_alias_float.
20668 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20669 <libm-alias-float.h>.
20670 (rintf): Define using libm_alias_float.
20671 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20672 <libm-alias-float.h>.
20673 (truncf): Define using libm_alias_float.
20674 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20675 <libm-alias-float.h>.
20676 (copysignf): Define using libm_alias_float.
20677 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20678 <libm-alias-float.h>.
20679 (fabsf): Define using libm_alias_float.
20680 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20681 <libm-alias-float.h>.
20682 (lrintf): Define using libm_alias_float.
20683 (llrintf): Likewise.
20684 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20685 <libm-alias-float.h>.
20686 (nearbyintf): Define using libm_alias_float.
20687 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20688 <libm-alias-float.h>.
20689 (rintf): Define using libm_alias_float.
20690
20691 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20692
20693 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20694 <libm-alias-double.h>.
20695 (copysign): Define using libm_alias_double.
20696 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20697 <libm-alias-double.h>.
20698 (fabs): Define using libm_alias_double.
20699 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20700 Include <libm-alias-double.h>.
20701 (copysign): Define using libm_alias_double.
20702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20703 <libm-alias-double.h>.
20704 (fabs): Define using libm_alias_double.
20705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20706 <libm-alias-double.h>.
20707 (fdim): Define using libm_alias_double.
20708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20709 <libm-alias-double.h>.
20710 (fma): Define using libm_alias_double.
20711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20712 <libm-alias-double.h>.
20713 (llrint): Define using libm_alias_double.
20714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20715 Include <libm-alias-double.h>.
20716 (nearbyint): Define using libm_alias_double.
20717 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20718 <libm-alias-double.h>.
20719 (rint): Define using libm_alias_double.
20720 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20721 <libm-alias-double.h>.
20722 (fabs): Define using libm_alias_double.
20723 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20724 <libm-alias-double.h>.
20725 (llrint): Define using libm_alias_double.
20726 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20727 <libm-alias-double.h>.
20728 (nearbyint): Define using libm_alias_double.
20729 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20730 <libm-alias-double.h>.
20731 (rint): Define using libm_alias_double.
20732 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20733 <libm-alias-double.h>.
20734 (ceil): Define using libm_alias_double.
20735 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20736 <libm-alias-double.h>.
20737 (floor): Define using libm_alias_double.
20738 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20739 <libm-alias-double.h>.
20740 (fma): Define using libm_alias_double.
20741 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20742 <libm-alias-double.h>.
20743 (lrint): Define using libm_alias_double.
20744 (llrint): Likewise.
20745 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20746 <libm-alias-double.h>.
20747 (nearbyint): Define using libm_alias_double.
20748 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20749 <libm-alias-double.h>.
20750 (rint): Define using libm_alias_double.
20751 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20752 <libm-alias-double.h>.
20753 (trunc): Define using libm_alias_double.
20754 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20755 <libm-alias-double.h>.
20756 (copysign): Define using libm_alias_double.
20757 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20758 <libm-alias-double.h>.
20759 (fabs): Define using libm_alias_double.
20760 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20761 <libm-alias-double.h>.
20762 (lrint): Define using libm_alias_double.
20763 (llrint): Likewise.
20764 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20765 <libm-alias-double.h>.
20766 (nearbyint): Define using libm_alias_double.
20767 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20768 <libm-alias-double.h>.
20769 (rint): Define using libm_alias_double.
20770
20771 [BZ #22229]
20772 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20773 <math_ldbl_opt.h>.
20774 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20775
20776 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20777 SPARC --disable-multi-arch glibc variants.
20778
20779 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20780 <libm-alias-float.h>.
20781 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20782 if [SHARED].
20783 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20784 <libm-alias-float.h>.
20785 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20786 if [SHARED].
20787 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20788 <libm-alias-float.h>.
20789 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20790 if [SHARED].
20791 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20792 <libm-alias-float.h>.
20793 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20794 if [SHARED].
20795 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20796 <libm-alias-float.h>.
20797 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20798 if [SHARED].
20799 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20800 <libm-alias-float.h>.
20801 (ceilf): Define using libm_alias_float.
20802 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20803 <libm-alias-float.h>.
20804 (floorf): Define using libm_alias_float.
20805 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20806 <libm-alias-float.h>.
20807 (fmaf): Define using libm_alias_float.
20808 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20809 <libm-alias-float.h>.
20810 (nearbyintf): Define using libm_alias_float.
20811 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20812 <libm-alias-float.h>.
20813 (rintf): Define using libm_alias_float.
20814 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20815 <libm-alias-float.h>.
20816 (truncf): Define using libm_alias_float.
20817 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20818 (copysignf): Define using libm_alias_float.
20819 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20820 (cosf): Define using libm_alias_float.
20821 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20822 (fabsf): Define using libm_alias_float.
20823 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20824 (fmaxf): Define using libm_alias_float.
20825 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20826 (fminf): Define using libm_alias_float.
20827 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20828 (llrintf): Define using libm_alias_float.
20829 [!__ILP32__] (lrintf): Likewise.
20830 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20831 (sincosf): Define using libm_alias_float.
20832 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20833 (sinf): Define using libm_alias_float.
20834 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20835 (lrintf): Define using libm_alias_float.
20836
20837 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20838 <libm-alias-double.h>.
20839 (atan): Define using libm_alias_double.
20840 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20841 <libm-alias-double.h>.
20842 (ceil): Define using libm_alias_double.
20843 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20844 <libm-alias-double.h>.
20845 (floor): Define using libm_alias_double.
20846 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20847 <libm-alias-double.h>.
20848 (fma): Define using libm_alias_double.
20849 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20850 <libm-alias-double.h>.
20851 (nearbyint): Define using libm_alias_double.
20852 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20853 <libm-alias-double.h>.
20854 (rint): Define using libm_alias_double.
20855 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20856 <libm-alias-double.h>.
20857 (sin): Define using libm_alias_double.
20858 (cos): Likewise.
20859 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20860 <libm-alias-double.h>.
20861 (tan): Define using libm_alias_double.
20862 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20863 <libm-alias-double.h>.
20864 (trunc): Define using libm_alias_double.
20865 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20866 (copysign): Define using libm_alias_double.
20867 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20868 (fabs): Define using libm_alias_double.
20869 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20870 (fmax): Define using libm_alias_double.
20871 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20872 (fmin): Define using libm_alias_double.
20873 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20874 (llrint): Define using libm_alias_double.
20875 [!__ILP32__] (lrint): Likewise.
20876 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20877 (lrint): Define using libm_alias_double.
20878
20879 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20880
20881 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20882 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20883 objects.
20884 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20885 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20886 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20887 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20888 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20889 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20890
20891 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20892 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20893 objects.
20894 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20895 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20896 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20897 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20898 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20899 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20900
20901 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20902 (libm-sysdep_routines): Add s_nearbyint-generic and
20903 s_nearbyintf-generic objects.
20904 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20905 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20906 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20907 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20908 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20909 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20910
20911 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20912 Add s_finitef-generic and s_finite-generic objects.
20913 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20914 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20915 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20916 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20917 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20918 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20919
20920 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20921 Add s_isinff-generic and s_isinf-generic objects.
20922 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20923 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20924 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20925 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20926 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20927 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20928
20929 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20930 Add s_isnanf-generic and s_isnan-generic objects.
20931 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20932 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20933 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20934 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20935 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20936 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20937
20938 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20939 macro.
20940 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20941 rule.
20942 (sysdep_routines): Use sysdep_calls as base.
20943 (libm-sysdep_routines): Add generic rule for symbols shared with
20944 libc. Add s_signbit-generic and s_signbitf-generic objects.
20945 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20946 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20947 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20948 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20949 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20950 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20951
20952 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20953
20954 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20955 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20956 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20957 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20958 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20959 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20960 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20961 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20962 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20963 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20964 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20965 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20966 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20967 libm_alias_float_r.
20968 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20969 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20970 (logf): Likewise.
20971 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20972 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20973 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20974 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20975 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20976 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20977 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20978 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20979 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20980 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20981 libm_alias_float.
20982 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20983 (cosf): Likewise.
20984 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20985 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20986 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20987 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20988 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20989 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20990 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20991 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20992 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20993 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20994 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20995 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20996 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20997 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20998 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20999 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21000 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21001 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21002 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21003 libm_alias_float.
21004 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21005 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21006 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21007 * sysdeps/ia64/fpu/w_lgammaf_main.c
21008 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21009 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21010
21011 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21012 Alexandre Oliva <aoliva@redhat.com>
21013
21014 [BZ #17750]
21015 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21016 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21017 accents sorting.
21018 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21019 sorting.
21020 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21021 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21022 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21023 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21024 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21025 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21026 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21027 instead of “ifdef DIACRIT_BACKWARD”.
21028
21029 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21030
21031 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21032 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21033 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21034 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21035 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21036 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21037 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21038 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21039 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21040 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21041 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21042 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21043 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21044 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21045 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21046 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21047 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21048 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21050 ($(have-as-vis3) == yes): Remove conditional.
21051 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21052 Likewise.
21053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21054 file.
21055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21056 file.
21057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21058 file.
21059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21060 file.
21061 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21062 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21063 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21064 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21066 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21067 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21068 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21069
21070 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21071
21072 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21073 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21074 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21075 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21076 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21077 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21078 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21079 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21080 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21081 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21082 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21083 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21084 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21085 libm_alias_double_r.
21086 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21087 (log): Likewise.
21088 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21089 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21090 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21091 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21092 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21093 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21094 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21095 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21096 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21097 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21098 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21099 libm_alias_double.
21100 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21101 (cos): Likewise.
21102 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21103 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21104 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21105 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21106 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21107 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21108 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21109 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21110 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21111 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21112 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21113 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21114 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21115 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21116 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21117 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21118 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21119 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21120 libm_alias_double.
21121 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21122 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21123 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21124 * sysdeps/ia64/fpu/w_lgamma_main.c
21125 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21126 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21127
21128 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21129
21130 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21131 address of $global$ into %dp register earlier. Use pc-relative
21132 instruction sequence for PIC case.
21133
21134 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21135
21136 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21137 (asinhf): Define using libm_alias_float.
21138 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21139 (atanf): Define using libm_alias_float.
21140 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21141 (cbrtf): Define using libm_alias_float.
21142 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21143 (ceilf): Define using libm_alias_float.
21144 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21145 (copysignf): Define using libm_alias_float.
21146 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21147 (expm1f): Define using libm_alias_float.
21148 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21149 (fabsf): Define using libm_alias_float.
21150 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21151 (floorf): Define using libm_alias_float.
21152 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21153 (fmaxf): Define using libm_alias_float.
21154 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21155 (fminf): Define using libm_alias_float.
21156 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21157 (frexpf): Define using libm_alias_float.
21158 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21159 (llrintf): Define using libm_alias_float.
21160 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21161 (logbf): Define using libm_alias_float.
21162 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21163 (lrintf): Define using libm_alias_float.
21164 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21165 (nearbyintf): Define using libm_alias_float.
21166 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21167 (remquof): Define using libm_alias_float.
21168 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21169 (rintf): Define using libm_alias_float.
21170 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21171 (truncf): Define using libm_alias_float.
21172 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21173 <libm-alias-float.h>.
21174 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21175 if [SHARED].
21176 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21177 <libm-alias-float.h>.
21178 (expf): Define using libm_alias_float, or libm_alias_float_other
21179 if [SHARED].
21180 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21181 <libm-alias-float.h>.
21182 (log2f): Define using libm_alias_float, or libm_alias_float_other
21183 if [SHARED].
21184 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21185 <libm-alias-float.h>.
21186 (logf): Define using libm_alias_float, or libm_alias_float_other
21187 if [SHARED].
21188 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21189 <libm-alias-float.h>.
21190 (powf): Define using libm_alias_float, or libm_alias_float_other
21191 if [SHARED].
21192 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21193 <libm-alias-float.h>.
21194 (cosf): Define using libm_alias_float.
21195 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21196 <libm-alias-float.h>.
21197 (sincosf): Define using libm_alias_float.
21198 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21199 <libm-alias-float.h>.
21200 (sinf): Define using libm_alias_float.
21201 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21202 (fmaxf): Define using libm_alias_float.
21203 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21204 (fminf): Define using libm_alias_float.
21205 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21206 <libm-alias-float.h>.
21207 (fmaf): Define using libm_alias_float.
21208
21209 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21210 (asinh): Define using libm_alias_double.
21211 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21212 (atan): Define using libm_alias_double.
21213 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21214 (cbrt): Define using libm_alias_double.
21215 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21216 (ceil): Define using libm_alias_double.
21217 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21218 (copysign): Define using libm_alias_double.
21219 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21220 (expm1): Define using libm_alias_double.
21221 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21222 (fabs): Define using libm_alias_double.
21223 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21224 (fdim): Define using libm_alias_double.
21225 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21226 (floor): Define using libm_alias_double.
21227 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21228 (fmax): Define using libm_alias_double.
21229 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21230 (fmin): Define using libm_alias_double.
21231 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21232 (frexp): Define using libm_alias_double.
21233 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21234 (llrint): Define using libm_alias_double.
21235 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21236 (logb): Define using libm_alias_double.
21237 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21238 (lrint): Define using libm_alias_double.
21239 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21240 (nearbyint): Define using libm_alias_double.
21241 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21242 (remquo): Define using libm_alias_double.
21243 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21244 (rint): Define using libm_alias_double.
21245 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21246 (trunc): Define using libm_alias_double.
21247 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21248 (fmax): Define using libm_alias_double.
21249 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21250 (fmin): Define using libm_alias_double.
21251 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21252 (fma): Define using libm_alias_double.
21253
21254 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21255
21256 [BZ #22370]
21257 * elf/dl-hwcaps.c (ROUND): Removed.
21258 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21259 and ELF_NOTE_NEXT_OFFSET.
21260 * elf/dl-load.c (ROUND): Removed.
21261 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21262 * elf/readelflib.c (ROUND): Removed.
21263 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21264 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21265 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21266 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21267
21268 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21269
21270 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21271 [!__fmaf] (fmaf): Define using libm_alias_float.
21272
21273 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21274 [!__fma] (fma): Define using libm_alias_double.
21275 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21276
21277 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21278
21279 [BZ #22336]
21280 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21281 and implement the collation rules for cs from CLDR on top of that.
21282 * Makefile: Add cs_CZ.UTF-8 to test-input.
21283 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21284
21285 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21286
21287 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21288
21289 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21290 Icarus Sparry <icarus.w.sparry@intel.com>
21291
21292 * benchtests/Makefile:Add BENCHSET to allow subsets of
21293 benchmarks to be run.
21294 * benchtests/README: Add documentation for: Running subsets of
21295 benchmarks.
21296
21297 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21298
21299 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21300 range of tests names.
21301
21302 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21303 result from property and remove "max", min" and "mean" from
21304 required properties based on benchtests/bench-skeleton.c.
21305
21306 2017-11-28 Florian Weimer <fweimer@redhat.com>
21307
21308 [BZ #20826]
21309 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21310 due to Internet requirement.
21311 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21312 tst-getaddrinfo5.
21313 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21314
21315 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21316
21317 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21318 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21319 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21320 (sysdep_routines): Add memset-ultra1.
21321 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21322 file.
21323 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21324 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21325 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21326 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21327 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21328 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21329 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21330 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21331
21332 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21333 file.
21334 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21335 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21336 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21337 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21338 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21339 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21340 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21341 macro.
21342 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21343 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21344 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21345 (sysdep_routines): Add memcpy-ultra1.
21346 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21347 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21348
21349 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21350
21351 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21352 (cfloat_versions): Take function argument without trailing 'f'.
21353 Call libm_alias_float_other.
21354 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21355 * sysdeps/alpha/fpu/cargf.c: Likewise.
21356 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21357 * sysdeps/alpha/fpu/conjf.c: Likewise.
21358 * sysdeps/alpha/fpu/crealf.c: Likewise.
21359 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21360 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21361 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21362 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21363 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21364 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21365 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21366 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21367 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21368 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21369 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21370 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21371 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21372 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21373 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21374 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21375 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21376 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21377 (clog10f): Use libm_alias_float_other.
21378 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21379 (ceilf): Define using libm_alias_float.
21380 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21381 (copysignf): Define using libm_alias_float.
21382 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21383 (fabsf): Define using libm_alias_float.
21384 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21385 (floorf): Define using libm_alias_float.
21386 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21387 (fmaxf): Define using libm_alias_float.
21388 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21389 (fminf): Define using libm_alias_float.
21390 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21391 (lrintf): Define using libm_alias_float.
21392 (llrintf): Likewise.
21393 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21394 (lroundf): Define using libm_alias_float.
21395 (llroundf): Likewise.
21396 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21397 (rintf): Define using libm_alias_float.
21398 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21399 (truncf): Define using libm_alias_float.
21400
21401 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21402 (ceilf): Define using libm_alias_float.
21403 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21404 (floorf): Define using libm_alias_float.
21405 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21406 (fmaf): Define using libm_alias_float.
21407 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21408 (fmaxf): Define using libm_alias_float.
21409 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21410 (fminf): Define using libm_alias_float.
21411 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21412 (llrintf): Define using libm_alias_float.
21413 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21414 (llroundf): Define using libm_alias_float.
21415 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21416 (lrintf): Define using libm_alias_float.
21417 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21418 (lroundf): Define using libm_alias_float.
21419 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21420 <libm-alias-float.h>.
21421 (nearbyintf): Define using libm_alias_float.
21422 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21423 (rintf): Define using libm_alias_float.
21424 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21425 (roundf): Define using libm_alias_float.
21426 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21427 (truncf): Define using libm_alias_float.
21428
21429 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21430 (ceil): Define using libm_alias_double.
21431 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21432 (copysign): Define using libm_alias_double.
21433 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21434 (fabs): Define using libm_alias_double.
21435 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21436 (floor): Define using libm_alias_double.
21437 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21438 (fmax): Define using libm_alias_double.
21439 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21440 (fmin): Define using libm_alias_double.
21441 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21442 (lrint): Define using libm_alias_double.
21443 (llrint): Likewise.
21444 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21445 (lround): Define using libm_alias_double.
21446 (llround): Likewise.
21447 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21448 (rint): Define using libm_alias_double.
21449 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21450 (trunc): Define using libm_alias_double.
21451
21452 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21453 (libm_alias_double_r): Add semicolon after weak_alias call.
21454
21455 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21456
21457 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21458 (ceil): Define using libm_alias_double.
21459 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21460 (floor): Define using libm_alias_double.
21461 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21462 (fma): Define using libm_alias_double.
21463 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21464 (fmax): Define using libm_alias_double.
21465 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21466 (fmin): Define using libm_alias_double.
21467 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21468 (llrint): Define using libm_alias_double.
21469 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21470 (llround): Define using libm_alias_double.
21471 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21472 (lrint): Define using libm_alias_double.
21473 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21474 (lround): Define using libm_alias_double.
21475 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21476 (nearbyint): Define using libm_alias_double.
21477 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21478 (rint): Define using libm_alias_double.
21479 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21480 (round): Define using libm_alias_double.
21481 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21482 (trunc): Define using libm_alias_double.
21483
21484 2017-11-27 Florian Weimer <fweimer@redhat.com>
21485
21486 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21487 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21488 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21489 (tests): Add tst-mlock2.
21490 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21491 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21492 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21493 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21494 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21495 for mlock. Document mlock2.
21496
21497 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21498
21499 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21500 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21501 Likewise.
21502 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21503 Likewise.
21504 * sysdeps/x86/Makeconfig: New file.
21505 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21506 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21507 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21508 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21509 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21510 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21511 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21512 Likewise.
21513 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21514 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21515 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21516 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21517 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21518 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21519 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21520 * manual/math.texi (Mathematics): Document support for _Float64x.
21521 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21522 * stdlib/Versions (GLIBC_2.27): Likewise.
21523 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21524 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21525 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21526 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21527 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21528 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21529 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21530 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21531 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21532 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21533 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21534 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21536 Likewise.
21537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21538 Likewise.
21539 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21540 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21541 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21542 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21543 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21544 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21545 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21546 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21547 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21548 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21549 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21550 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21551 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21552 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21553
21554 2017-11-27 Andreas Schwab <schwab@suse.de>
21555
21556 * elf/Makefile (dl-routines): Add dl-sort-maps.
21557 * elf/dl-sort-maps.c: New file.
21558 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21559 (_dl_sort_maps): Declare.
21560 * elf/dl-fini.c (_dl_sort_fini): Remove.
21561 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21562 * elf/dl-close.c (_dl_close_worker): Likewise.
21563 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21564 open-coding it.
21565 * elf/dl-open.c (dl_open_worker): Likewise.
21566
21567 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21568
21569 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21570 using libm_alias_float128.
21571 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21572 Likewise.
21573 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21574 Likewise.
21575 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21576 (setpayloadsigf128): Likewise.
21577 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21578 Likewise.
21579 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21580 Likewise.
21581
21582 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21583 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21584 -mfloat128 to CFLAGS.
21585 ($(foreach
21586 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21587 Likewise.
21588 (CFLAGS-libm-test-support-float64x.c): New variable.
21589 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21590 $(f128-loader-link) to gnulib-tests.
21591
21592 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21593 (libm_alias_float128_other_r): If
21594 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21595 alias.
21596 (libm_alias_float128_r): Add semicolon after weak_alias call.
21597 * sysdeps/generic/libm-alias-ldouble.h
21598 (libm_alias_ldouble_other_r_f128): New macro.
21599 (libm_alias_ldouble_other_r_f64x): Likewise.
21600 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21601 and libm_alias_ldouble_other_r_f64x.
21602 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21603 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21604 (libm_alias_ldouble_other_r_f128): New macro.
21605 (libm_alias_ldouble_other_r_f64x): Likewise.
21606 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21607 and libm_alias_ldouble_other_r_f64x.
21608
21609 * stdlib/strfroml.c: Always include <stdlib.h>.
21610 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21611 undefine as macro and define as weak alias.
21612 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21613 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21614 <stdlib.h>.
21615 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21616 Define and later undefine as macro and define as weak alias.
21617
21618 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21619 Define and later undefine as macro. Define as weak alias if
21620 [!USE_WIDE_CHAR].
21621 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21622 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21623 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21624 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21625 Define and later undefine as macro. Define as weak alias if
21626 [!USE_WIDE_CHAR].
21627 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21628 Define and later undefine as macro. Define as weak alias if
21629 [USE_WIDE_CHAR].
21630 * sysdeps/ieee754/float128/strtof128_l.c
21631 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21632 Define and later undefine as macro. Define as weak alias if
21633 [!USE_WIDE_CHAR].
21634 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21635 Define and later undefine as macro. Define as weak alias if
21636 [USE_WIDE_CHAR].
21637 * sysdeps/ieee754/ldbl-128/strtold_l.c
21638 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21639 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21640 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21641 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21642 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21643 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21644 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21645 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21646 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21647 * sysdeps/ieee754/ldbl-96/strtold_l.c
21648 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21649 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21650 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21651 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21652
21653 * math/test-float64x.h: New file.
21654 * math/Makefile (type-float64x-yes): New variable.
21655 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21656
21657 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21658 function-like macro.
21659 (min_of_type_): Likewise.
21660 (min_of_type_l): Likewise.
21661 (min_of_type_f128): Likewise.
21662 (min_of_type): Pass () as last argument of __MATH_TG.
21663
21664 * stdlib/tst-strtod-round-skeleton.c
21665 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21666 headers.
21667
21668 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21669 for combinations of long double with _Float64 and _Float64x.
21670
21671 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21672 (__DECL_SIMD_cosf32): Likewise.
21673 (__DECL_SIMD_cosf64): Likewise.
21674 (__DECL_SIMD_cosf32x): Likewise.
21675 (__DECL_SIMD_cosf64x): Likewise.
21676 (__DECL_SIMD_cosf128x): Likewise.
21677 (__DECL_SIMD_sinf16): Likewise.
21678 (__DECL_SIMD_sinf32): Likewise.
21679 (__DECL_SIMD_sinf64): Likewise.
21680 (__DECL_SIMD_sinf32x): Likewise.
21681 (__DECL_SIMD_sinf64x): Likewise.
21682 (__DECL_SIMD_sinf128x): Likewise.
21683 (__DECL_SIMD_sincosf16): Likewise.
21684 (__DECL_SIMD_sincosf32): Likewise.
21685 (__DECL_SIMD_sincosf64): Likewise.
21686 (__DECL_SIMD_sincosf32x): Likewise.
21687 (__DECL_SIMD_sincosf64x): Likewise.
21688 (__DECL_SIMD_sincosf128x): Likewise.
21689 (__DECL_SIMD_logf16): Likewise.
21690 (__DECL_SIMD_logf32): Likewise.
21691 (__DECL_SIMD_logf64): Likewise.
21692 (__DECL_SIMD_logf32x): Likewise.
21693 (__DECL_SIMD_logf64x): Likewise.
21694 (__DECL_SIMD_logf128x): Likewise.
21695 (__DECL_SIMD_expf16): Likewise.
21696 (__DECL_SIMD_expf32): Likewise.
21697 (__DECL_SIMD_expf64): Likewise.
21698 (__DECL_SIMD_expf32x): Likewise.
21699 (__DECL_SIMD_expf64x): Likewise.
21700 (__DECL_SIMD_expf128x): Likewise.
21701 (__DECL_SIMD_powf16): Likewise.
21702 (__DECL_SIMD_powf32): Likewise.
21703 (__DECL_SIMD_powf64): Likewise.
21704 (__DECL_SIMD_powf32x): Likewise.
21705 (__DECL_SIMD_powf64x): Likewise.
21706 (__DECL_SIMD_powf128x): Likewise.
21707
21708 * stdlib/Versions (libc): Move entries for wcstof128 and
21709 wcstof128_l to ....
21710 * wcsmbs/Versions (libc): ... here.
21711 Include <float128-abi.h>.
21712
21713 2017-11-24 Florian Weimer <fweimer@redhat.com>
21714
21715 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21716 bits/mman-shared.h.
21717 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21718 <bits/mman-shared.h>.
21719 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21720 to ...
21721 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21722 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21723 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21724 <bits/mman-shared.h>.
21725
21726 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21727
21728 [BZ #22457]
21729 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21730 posix_memalign/free.
21731 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21732
21733 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21734
21735 [BZ #22469]
21736 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21737 and implement the collation rules for pl from CLDR on top of that.
21738 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21739 of locales to be built for testing.
21740 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21741
21742 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21743
21744 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21745 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21746 libm_alias_ldouble_other.
21747 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21748 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21749 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21750 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21751 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21752 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21753 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21754 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21755 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21756 libm_alias_ldouble_r.
21757 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21758 libm_alias_ldouble_other.
21759 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21760 (log10l): Likewise.
21761 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21762 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21763 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21764 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21765 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21766 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21767 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21768 (atan2l): Likewise.
21769 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21770 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21771 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21772 libm_alias_ldouble.
21773 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21774 (cosl): Likewise.
21775 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21776 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21777 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21778 (expl): Likewise.
21779 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21780 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21781 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21782 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21783 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21784 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21785 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21786 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21787 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21788 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21789 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21790 libm_alias_ldouble.
21791 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21792 libm_alias_ldouble_other.
21793 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21794 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21795 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21796 libm_alias_ldouble.
21797 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21798 libm_alias_ldouble_other.
21799 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21800 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21801 * sysdeps/ia64/fpu/w_lgammal_main.c
21802 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21803 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21804
21805 2017-11-23 Florian Weimer <fweimer@redhat.com>
21806
21807 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21808 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21809 alike. Remove freeres marker.
21810 * malloc/arena.c (arena_thread_freeres): Call
21811 tcache_thread_shutdown.
21812
21813 2017-11-23 Florian Weimer <fweimer@redhat.com>
21814
21815 [BZ #22459]
21816 Export nscd hash function as __nss_hash.
21817 * include/nss.h (__nss_hash): Declare.
21818 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21819 symbol.
21820 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21821 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21822 of __nscd_hash.
21823 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21824 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21825 * nss/Makefiles (routines): Add nss_hash.
21826 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21827 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21828 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21829 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21830
21831 2017-11-23 Florian Weimer <fweimer@redhat.com>
21832
21833 [BZ #22478]
21834 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21835 Return error code, not -1.
21836 * signal/tst-sigwait-eintr.c: New file.
21837 * signal/Makefile (tests): Add tst-sigwait-eintr.
21838
21839 2017-11-23 Florian Weimer <fweimer@redhat.com>
21840
21841 Linux: Add memfd_create system call wrapper
21842 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21843 tst-memfd_create.
21844 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21845 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21846 [__USE_GNU] (memfd_create): Declare.
21847 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21848 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21849 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21850 * sysdeps/unix/sysv/linux/**.abilist: Update.
21851 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21852
21853 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21854
21855 * localedata/gen-locale.sh: Fix typo in variable name.
21856
21857 * resolv/res_debug.c (p_secstodate): Condition definition on
21858 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21859 directly as __p_secstodate, and as a compat symbol. Do not use
21860 libresolv_hidden_def.
21861 * resolv/resolv.h (p_secstodate): Remove macro and function
21862 declaration.
21863 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21864 using p_secstodate.
21865 * include/resolv.h (__p_secstodate): Do not use
21866 libresolv_hidden_proto.
21867 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21868 (tests-internal): ... here.
21869 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21870 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21871 and declare and use __p_secstodate and use compat_symbol_reference
21872 in that case.
21873 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21874 implementation returning 77.
21875
21876 [BZ #22463]
21877 * resolv/res_debug.c: Include <libc-diag.h>.
21878 (p_secstodate): Assert time_t at least as wide as u_long. On
21879 overflow, use integer seconds since the epoch as output, or use
21880 "<overflow>" as output and set errno to EOVERFLOW if integer
21881 seconds since the epoch would be 14 or more characters.
21882 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21883 for sprintf call.
21884 * resolv/tst-p_secstodate.c: New file.
21885 * resolv/Makefile (tests): Add tst-p_secstodate.
21886 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21887
21888 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21889 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21890 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21891
21892 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21893
21894 * posix/regcomp.c (init_word_char): Add comments.
21895
21896 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21897
21898 [BZ #22447]
21899 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21900 strlen to compute length of ut_user and set trailing NUL byte of
21901 result explicitly.
21902
21903 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21904
21905 [BZ #15537]
21906 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21907 using “copy "iso14651_t1"” and then implementing the
21908 collation rules for lv from CLDR on top of that.
21909 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21910 of locales to be built for testing.
21911 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21912 sorting.
21913
21914 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21915
21916 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21917 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21918 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21919 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21920 [__USE_MISC] (MADV_HWPOISON): New macro.
21921 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21922
21923 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21924
21925 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21926 -Wmissing-braces on GCC 4.9.
21927
21928 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21929
21930 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21931 * sysdeps/s390/s390-32/start.S (_start): Likewise
21932 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21933 (thread_start): Likewise.
21934 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21935 (thread_start): Likewise.
21936 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21937 (__makecontext_ret): Likewise.
21938 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21939 (__makecontext_ret): Likewise.
21940
21941 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21942
21943 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21944 __wcschrnul): Remove attribute_hidden.
21945
21946 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21947
21948 regex: don't assume uint64_t or uint32_t
21949 This avoids -Werror=overflow errors for 32-bit systems in
21950 the 64-bit case. Problem reported by Joseph Myers in:
21951 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21952 Also, when this code is used in Gnulib it ports to platforms
21953 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21954 them, and on some 32-bit compilers there is no uint64_t.
21955 Problem reported by Gianluigi Tiesi in:
21956 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21957 * posix/regcomp.c (init_word_char): Don't assume that the types
21958 uint64_t and uint32_t exist. Adapted from Gnulib patch
21959 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21960 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21961
21962 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21963
21964 * sysdeps/aarch64/memset-reg.h: New file.
21965 * sysdeps/aarch64/memset.S: Use it.
21966 (__memset): Rename to MEMSET macro.
21967 [ZVA_MACRO]: Use zva_macro.
21968 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21969 Add memset_generic and memset_falkor.
21970 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21971 (__libc_ifunc_impl_list): Add memset ifuncs.
21972 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21973 local variable zva_size.
21974 * sysdeps/aarch64/multiarch/memset.c: New file.
21975 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21976 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21977 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21978 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21979 (DCZID_DZP_MASK): New macro.
21980 (DCZID_BS_MASK): Likewise.
21981 (init_cpu_features): Read and set zva_size.
21982 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21983 (struct cpu_features): New member zva_size.
21984
21985 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21986 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21987 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21988
21989 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21990 backwards. Fix timing computation.
21991 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21992 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21993 on memset by N at a time. Fix timing computation.
21994
21995 2017-11-20 Florian Weimer <fweimer@redhat.com>
21996
21997 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21998 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21999
22000 2017-11-19 Florian Weimer <fweimer@redhat.com>
22001
22002 manual: Document mprotect
22003 * manual/memory.texi (Memory Protection): New section.
22004 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22005 documentation of PROT_* flags and reference the Memory Protection
22006 section instead.
22007
22008 2017-11-19 Florian Weimer <fweimer@redhat.com>
22009
22010 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22011 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22012 (Scatter-Gather): ... to here. Remove misleading comment.
22013
22014 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22015
22016 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22017 style.
22018
22019 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22020 when /proc/<pid>/setgroups does not exist.
22021
22022 2017-11-18 Florian Weimer <fweimer@redhat.com>
22023
22024 * sysdeps/unix/sysv/linux/tst-ttyname.c
22025 (become_root_in_mount_ns): Remove.
22026 (do_in_chroot_1): Call support_enter_mount_namespace.
22027 (do_in_chroot_2): Likewise.
22028 (do_test): Call support_become_root early.
22029
22030 2017-11-18 Florian Weimer <fweimer@redhat.com>
22031
22032 * support/namespace.h (support_enter_mount_namespace): Declare.
22033 * support/support_enter_mount_namespace.c: New file.
22034 * support/Makefile (libsupport-routines): Add
22035 support_enter_mount_namespace.
22036
22037 2017-11-18 Florian Weimer <fweimer@redhat.com>
22038
22039 * support/temp_file.c (support_create_temp_directory): Use
22040 test_dir and do not rely on the presence of the XXXXXX suffix.
22041 * support/temp_file.h (support_create_temp_directory): Update
22042 comment.
22043 * support/tst-xreadlink.c (do_test): Adjust.
22044 * support/support_chroot.c (support_chroot_create): Likewise.
22045
22046 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22047
22048 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22049 macro.
22050 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22051 htm-no-suspend.
22052
22053 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22054
22055 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22056 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22057 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22058 (ceill): Define using libm_alias_ldouble.
22059 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22060 <libm-alias-ldouble.h>.
22061 (copysignl): Define using libm_alias_ldouble.
22062 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22063 (fabsl): Define using libm_alias_ldouble.
22064 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22065 (floorl): Define using libm_alias_ldouble.
22066 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22067 (fmaxl): Define using libm_alias_ldouble.
22068 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22069 (fminl): Define using libm_alias_ldouble.
22070 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22071 (llrintl): Define using libm_alias_ldouble.
22072 (lrintl): Likewise.
22073 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22074 <libm-alias-ldouble.h>.
22075 (nearbyintl): Define using libm_alias_ldouble.
22076 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22077 (truncl): Define using libm_alias_ldouble.
22078 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22079 <libm-alias-ldouble.h>.
22080 (lrintl): Define using libm_alias_ldouble.
22081
22082 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22083 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22084 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22085 (asinhl): Define using libm_alias_ldouble.
22086 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22087 (atanl): Define using libm_alias_ldouble.
22088 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22089 (cbrtl): Define using libm_alias_ldouble.
22090 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22091 (ceill): Define using libm_alias_ldouble.
22092 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22093 (copysignl): Define using libm_alias_ldouble.
22094 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22095 (fabsl): Define using libm_alias_ldouble.
22096 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22097 (floorl): Define using libm_alias_ldouble.
22098 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22099 (fmaxl): Define using libm_alias_ldouble.
22100 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22101 (fminl): Define using libm_alias_ldouble.
22102 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22103 (frexpl): Define using libm_alias_ldouble.
22104 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22105 (llrintl): Define using libm_alias_ldouble.
22106 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22107 (logbl): Define using libm_alias_ldouble.
22108 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22109 (lrintl): Define using libm_alias_ldouble.
22110 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22111 (nearbyintl): Define using libm_alias_ldouble.
22112 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22113 (nextafterl): Define using libm_alias_ldouble.
22114 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22115 (remquol): Define using libm_alias_ldouble.
22116 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22117 (rintl): Define using libm_alias_ldouble.
22118 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22119 (truncl): Define using libm_alias_ldouble.
22120 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22121 (fmaxl): Define using libm_alias_ldouble.
22122 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22123 (fminl): Define using libm_alias_ldouble.
22124
22125 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22126 to C syntax instead of availability and properties of types.
22127 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22128 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22129 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22130 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22131 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22132 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22133
22134 2017-11-17 Florian Weimer <fweimer@redhat.com>
22135
22136 support_become_root: Enable file creation in namespaces.
22137 * support/support_become_root.c (setup_mapping): New function.
22138 (support_become_root): Call it.
22139
22140 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22141
22142 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22143 macro.
22144
22145 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22146
22147 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22148 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22149
22150 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22151
22152 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22153
22154 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22155 version to 4.14.
22156
22157 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22158
22159 * INSTALL: Fix botched up regeneration.
22160
22161 * NEWS: Update sourceare link to https.
22162 * configure.ac: Likewise.
22163 * crypt/md5test-giant.c: Likewise.
22164 * dlfcn/bug-atexit1.c: Likewise.
22165 * dlfcn/bug-atexit2.c: Likewise.
22166 * localedata/README: Likewise.
22167 * malloc/tst-mallocfork.c: Likewise.
22168 * manual/install.texi: Likewise.
22169 * nptl/tst-pthread-getattr.c: Likewise.
22170 * stdio-common/tst-fgets.c: Likewise.
22171 * stdio-common/tst-fwrite.c: Likewise.
22172 * sunrpc/Makefile: Likewise.
22173 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22174 * wcsmbs/tst-mbrtowc2.c: Likewise.
22175 * configure: Regenerate.
22176 * INSTALL: Regenerate.
22177
22178 2017-11-15 Martin Sebor <msebor@redhat.com>
22179
22180 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22181 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22182 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22183
22184 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22185
22186 [BZ #22145]
22187 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22188 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22189
22190 [BZ #22145]
22191 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22192 Defer is_pty check until end of the function.
22193 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22194
22195 [BZ #22145]
22196 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22197 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22198 (ttyname): Likewise.
22199 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22200 (__ttyname_r): Likewise.
22201
22202 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22203 int to bool.
22204
22205 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22206
22207 * manual/terminal.texi (Is It a Terminal):
22208 Mention ENODEV for ttyname and ttyname_r.
22209
22210 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22211
22212 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22213 constant and macro.
22214
22215 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22216 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22217 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22218 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22219 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22220 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22221
22222 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22223
22224 * signal/sigrelse.c (sigrelse): Optimize implementation.
22225
22226 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22227 (__sigpause): Rely on __sigsuspend to implement single thread
22228 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22229
22230 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22231
22232 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22233 kernel version to 4.14.
22234
22235 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22236
22237 [BZ #22442]
22238 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22239 Check if ifname is too long.
22240
22241 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22242
22243 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22244
22245 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22246
22247 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22248 was accidentally lost.
22249
22250 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22251
22252 * localedata/locales/az_IR: Add standard copyright header.
22253
22254 2017-11-15 Florian Weimer <fweimer@redhat.com>
22255
22256 [BZ #22439]
22257 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22258 not just the top one. Output a new "subheaps" statistic.
22259
22260 2017-11-15 Florian Weimer <fweimer@redhat.com>
22261
22262 [BZ #22408]
22263 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22264 under the per-arena lock.
22265 * malloc/Makefile (tests): Add tst-malloc_info.
22266 (tst-malloc_info): Link with libpthread.
22267 * malloc/tst-malloc_info.c: New file.
22268
22269 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22270
22271 [BZ #21660]
22272 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22273 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22274 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22275 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22276 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22277 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22278 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22279 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22280 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22281 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22282 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22283 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22284 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22285 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22286 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22287 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22288 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22289 (__floating_type): Likewise.
22290 (__real_integer_type): Likewise.
22291 (__complex_integer_type): Likewise.
22292 (__expr_is_real): Likewise.
22293 (__tgmath_real_type_sub): Likewise.
22294 (__tgmath_real_type): Likewise.
22295 (__tgmath_complex_type_sub): Likewise.
22296 (__tgmath_complex_type): Likewise.
22297 (__TGMATH_F128): Likewise.
22298 (__TGMATH_CF128): Likewise.
22299 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22300 new macros.
22301 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22302 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22303 Likewise.
22304 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22305 Likewise.
22306 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22307 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22308 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22309 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22310 Likewise.
22311 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22312 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22313 Likewise.
22314 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22315 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22316 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22317 Likewise.
22318 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22319 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22320 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22321 (cimag): Likewise.
22322 (creal): Likewise.
22323
22324 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22325
22326 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22327 for stpncpy calls for GCC 8.
22328 (test_strncat): Disable -Wstringop-truncation warning for strncat
22329 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22330 strncat call for GCC 7.
22331 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22332 calls for GCC 8.
22333 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22334 trailing NUL.
22335
22336 * string/bug-strncat1.c: Include <libc-diag.h>.
22337 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22338
22339 2017-11-13 Claude Paroz <claude@2xlibre.net>
22340
22341 [BZ #22387]
22342 * localedata/locales/aa_DJ: Improved readibility by replacing
22343 <Uxxxx> sequences in the ASCII printable range by their ASCII
22344 character equivalents.
22345 * localedata/locales/aa_ER: Likewise.
22346 * localedata/locales/aa_ER@saaho: Likewise.
22347 * localedata/locales/aa_ET: Likewise.
22348 * localedata/locales/af_ZA: Likewise.
22349 * localedata/locales/agr_PE: Likewise.
22350 * localedata/locales/ak_GH: Likewise.
22351 * localedata/locales/am_ET: Likewise.
22352 * localedata/locales/anp_IN: Likewise.
22353 * localedata/locales/ar_AE: Likewise.
22354 * localedata/locales/ar_BH: Likewise.
22355 * localedata/locales/ar_DZ: Likewise.
22356 * localedata/locales/ar_EG: Likewise.
22357 * localedata/locales/ar_IN: Likewise.
22358 * localedata/locales/ar_IQ: Likewise.
22359 * localedata/locales/ar_JO: Likewise.
22360 * localedata/locales/ar_KW: Likewise.
22361 * localedata/locales/ar_LB: Likewise.
22362 * localedata/locales/ar_LY: Likewise.
22363 * localedata/locales/ar_MA: Likewise.
22364 * localedata/locales/ar_OM: Likewise.
22365 * localedata/locales/ar_QA: Likewise.
22366 * localedata/locales/ar_SA: Likewise.
22367 * localedata/locales/ar_SD: Likewise.
22368 * localedata/locales/ar_SS: Likewise.
22369 * localedata/locales/ar_SY: Likewise.
22370 * localedata/locales/ar_TN: Likewise.
22371 * localedata/locales/ar_YE: Likewise.
22372 * localedata/locales/as_IN: Likewise.
22373 * localedata/locales/ast_ES: Likewise.
22374 * localedata/locales/ayc_PE: Likewise.
22375 * localedata/locales/az_AZ: Likewise.
22376 * localedata/locales/az_IR: Likewise.
22377 * localedata/locales/be_BY: Likewise.
22378 * localedata/locales/be_BY@latin: Likewise.
22379 * localedata/locales/bem_ZM: Likewise.
22380 * localedata/locales/ber_DZ: Likewise.
22381 * localedata/locales/ber_MA: Likewise.
22382 * localedata/locales/bg_BG: Likewise.
22383 * localedata/locales/bhb_IN: Likewise.
22384 * localedata/locales/bho_IN: Likewise.
22385 * localedata/locales/bi_VU: Likewise.
22386 * localedata/locales/bn_BD: Likewise.
22387 * localedata/locales/bn_IN: Likewise.
22388 * localedata/locales/bo_CN: Likewise.
22389 * localedata/locales/bo_IN: Likewise.
22390 * localedata/locales/br_FR: Likewise.
22391 * localedata/locales/brx_IN: Likewise.
22392 * localedata/locales/bs_BA: Likewise.
22393 * localedata/locales/byn_ER: Likewise.
22394 * localedata/locales/ca_AD: Likewise.
22395 * localedata/locales/ca_ES: Likewise.
22396 * localedata/locales/ca_FR: Likewise.
22397 * localedata/locales/ca_IT: Likewise.
22398 * localedata/locales/ce_RU: Likewise.
22399 * localedata/locales/chr_US: Likewise.
22400 * localedata/locales/cmn_TW: Likewise.
22401 * localedata/locales/crh_UA: Likewise.
22402 * localedata/locales/cs_CZ: Likewise.
22403 * localedata/locales/csb_PL: Likewise.
22404 * localedata/locales/cv_RU: Likewise.
22405 * localedata/locales/cy_GB: Likewise.
22406 * localedata/locales/da_DK: Likewise.
22407 * localedata/locales/de_AT: Likewise.
22408 * localedata/locales/de_BE: Likewise.
22409 * localedata/locales/de_CH: Likewise.
22410 * localedata/locales/de_DE: Likewise.
22411 * localedata/locales/de_IT: Likewise.
22412 * localedata/locales/de_LI: Likewise.
22413 * localedata/locales/de_LU: Likewise.
22414 * localedata/locales/doi_IN: Likewise.
22415 * localedata/locales/dv_MV: Likewise.
22416 * localedata/locales/dz_BT: Likewise.
22417 * localedata/locales/el_CY: Likewise.
22418 * localedata/locales/el_GR: Likewise.
22419 * localedata/locales/en_AG: Likewise.
22420 * localedata/locales/en_AU: Likewise.
22421 * localedata/locales/en_BW: Likewise.
22422 * localedata/locales/en_CA: Likewise.
22423 * localedata/locales/en_DK: Likewise.
22424 * localedata/locales/en_GB: Likewise.
22425 * localedata/locales/en_HK: Likewise.
22426 * localedata/locales/en_IE: Likewise.
22427 * localedata/locales/en_IL: Likewise.
22428 * localedata/locales/en_IN: Likewise.
22429 * localedata/locales/en_NG: Likewise.
22430 * localedata/locales/en_NZ: Likewise.
22431 * localedata/locales/en_PH: Likewise.
22432 * localedata/locales/en_SG: Likewise.
22433 * localedata/locales/en_US: Likewise.
22434 * localedata/locales/en_ZA: Likewise.
22435 * localedata/locales/en_ZM: Likewise.
22436 * localedata/locales/en_ZW: Likewise.
22437 * localedata/locales/eo: Likewise.
22438 * localedata/locales/es_AR: Likewise.
22439 * localedata/locales/es_BO: Likewise.
22440 * localedata/locales/es_CL: Likewise.
22441 * localedata/locales/es_CO: Likewise.
22442 * localedata/locales/es_CR: Likewise.
22443 * localedata/locales/es_CU: Likewise.
22444 * localedata/locales/es_DO: Likewise.
22445 * localedata/locales/es_EC: Likewise.
22446 * localedata/locales/es_ES: Likewise.
22447 * localedata/locales/es_GT: Likewise.
22448 * localedata/locales/es_HN: Likewise.
22449 * localedata/locales/es_MX: Likewise.
22450 * localedata/locales/es_NI: Likewise.
22451 * localedata/locales/es_PA: Likewise.
22452 * localedata/locales/es_PE: Likewise.
22453 * localedata/locales/es_PR: Likewise.
22454 * localedata/locales/es_PY: Likewise.
22455 * localedata/locales/es_SV: Likewise.
22456 * localedata/locales/es_US: Likewise.
22457 * localedata/locales/es_UY: Likewise.
22458 * localedata/locales/es_VE: Likewise.
22459 * localedata/locales/et_EE: Likewise.
22460 * localedata/locales/eu_ES: Likewise.
22461 * localedata/locales/eu_ES@euro: Likewise.
22462 * localedata/locales/fa_IR: Likewise.
22463 * localedata/locales/ff_SN: Likewise.
22464 * localedata/locales/fi_FI: Likewise.
22465 * localedata/locales/fil_PH: Likewise.
22466 * localedata/locales/fo_FO: Likewise.
22467 * localedata/locales/fr_BE: Likewise.
22468 * localedata/locales/fr_CA: Likewise.
22469 * localedata/locales/fr_CH: Likewise.
22470 * localedata/locales/fr_FR: Likewise.
22471 * localedata/locales/fr_LU: Likewise.
22472 * localedata/locales/fur_IT: Likewise.
22473 * localedata/locales/fy_DE: Likewise.
22474 * localedata/locales/fy_NL: Likewise.
22475 * localedata/locales/ga_IE: Likewise.
22476 * localedata/locales/gd_GB: Likewise.
22477 * localedata/locales/gez_ER: Likewise.
22478 * localedata/locales/gez_ET: Likewise.
22479 * localedata/locales/gl_ES: Likewise.
22480 * localedata/locales/gu_IN: Likewise.
22481 * localedata/locales/gv_GB: Likewise.
22482 * localedata/locales/ha_NG: Likewise.
22483 * localedata/locales/hak_TW: Likewise.
22484 * localedata/locales/he_IL: Likewise.
22485 * localedata/locales/hi_IN: Likewise.
22486 * localedata/locales/hif_FJ: Likewise.
22487 * localedata/locales/hne_IN: Likewise.
22488 * localedata/locales/hr_HR: Likewise.
22489 * localedata/locales/hsb_DE: Likewise.
22490 * localedata/locales/ht_HT: Likewise.
22491 * localedata/locales/hu_HU: Likewise.
22492 * localedata/locales/hy_AM: Likewise.
22493 * localedata/locales/i18n: Likewise.
22494 * localedata/locales/ia_FR: Likewise.
22495 * localedata/locales/id_ID: Likewise.
22496 * localedata/locales/ig_NG: Likewise.
22497 * localedata/locales/ik_CA: Likewise.
22498 * localedata/locales/is_IS: Likewise.
22499 * localedata/locales/it_CH: Likewise.
22500 * localedata/locales/it_IT: Likewise.
22501 * localedata/locales/iu_CA: Likewise.
22502 * localedata/locales/ja_JP: Likewise.
22503 * localedata/locales/ka_GE: Likewise.
22504 * localedata/locales/kk_KZ: Likewise.
22505 * localedata/locales/kl_GL: Likewise.
22506 * localedata/locales/kn_IN: Likewise.
22507 * localedata/locales/ko_KR: Likewise.
22508 * localedata/locales/kok_IN: Likewise.
22509 * localedata/locales/ks_IN: Likewise.
22510 * localedata/locales/ks_IN@devanagari: Likewise.
22511 * localedata/locales/ku_TR: Likewise.
22512 * localedata/locales/kw_GB: Likewise.
22513 * localedata/locales/ky_KG: Likewise.
22514 * localedata/locales/lb_LU: Likewise.
22515 * localedata/locales/lg_UG: Likewise.
22516 * localedata/locales/li_BE: Likewise.
22517 * localedata/locales/li_NL: Likewise.
22518 * localedata/locales/lij_IT: Likewise.
22519 * localedata/locales/ln_CD: Likewise.
22520 * localedata/locales/lo_LA: Likewise.
22521 * localedata/locales/lt_LT: Likewise.
22522 * localedata/locales/lv_LV: Likewise.
22523 * localedata/locales/lzh_TW: Likewise.
22524 * localedata/locales/mag_IN: Likewise.
22525 * localedata/locales/mai_IN: Likewise.
22526 * localedata/locales/mg_MG: Likewise.
22527 * localedata/locales/mhr_RU: Likewise.
22528 * localedata/locales/mi_NZ: Likewise.
22529 * localedata/locales/mk_MK: Likewise.
22530 * localedata/locales/ml_IN: Likewise.
22531 * localedata/locales/mn_MN: Likewise.
22532 * localedata/locales/mni_IN: Likewise.
22533 * localedata/locales/mr_IN: Likewise.
22534 * localedata/locales/ms_MY: Likewise.
22535 * localedata/locales/mt_MT: Likewise.
22536 * localedata/locales/my_MM: Likewise.
22537 * localedata/locales/nan_TW: Likewise.
22538 * localedata/locales/nan_TW@latin: Likewise.
22539 * localedata/locales/nb_NO: Likewise.
22540 * localedata/locales/nds_DE: Likewise.
22541 * localedata/locales/nds_NL: Likewise.
22542 * localedata/locales/ne_NP: Likewise.
22543 * localedata/locales/nhn_MX: Likewise.
22544 * localedata/locales/niu_NU: Likewise.
22545 * localedata/locales/niu_NZ: Likewise.
22546 * localedata/locales/nl_AW: Likewise.
22547 * localedata/locales/nl_BE: Likewise.
22548 * localedata/locales/nl_NL: Likewise.
22549 * localedata/locales/nn_NO: Likewise.
22550 * localedata/locales/nr_ZA: Likewise.
22551 * localedata/locales/nso_ZA: Likewise.
22552 * localedata/locales/oc_FR: Likewise.
22553 * localedata/locales/om_ET: Likewise.
22554 * localedata/locales/om_KE: Likewise.
22555 * localedata/locales/or_IN: Likewise.
22556 * localedata/locales/os_RU: Likewise.
22557 * localedata/locales/pa_IN: Likewise.
22558 * localedata/locales/pa_PK: Likewise.
22559 * localedata/locales/pap_AW: Likewise.
22560 * localedata/locales/pap_CW: Likewise.
22561 * localedata/locales/pl_PL: Likewise.
22562 * localedata/locales/ps_AF: Likewise.
22563 * localedata/locales/pt_BR: Likewise.
22564 * localedata/locales/pt_PT: Likewise.
22565 * localedata/locales/quz_PE: Likewise.
22566 * localedata/locales/raj_IN: Likewise.
22567 * localedata/locales/ro_RO: Likewise.
22568 * localedata/locales/ru_RU: Likewise.
22569 * localedata/locales/ru_UA: Likewise.
22570 * localedata/locales/rw_RW: Likewise.
22571 * localedata/locales/sa_IN: Likewise.
22572 * localedata/locales/sat_IN: Likewise.
22573 * localedata/locales/sc_IT: Likewise.
22574 * localedata/locales/sd_IN: Likewise.
22575 * localedata/locales/sd_IN@devanagari: Likewise.
22576 * localedata/locales/se_NO: Likewise.
22577 * localedata/locales/sgs_LT: Likewise.
22578 * localedata/locales/shs_CA: Likewise.
22579 * localedata/locales/si_LK: Likewise.
22580 * localedata/locales/sid_ET: Likewise.
22581 * localedata/locales/sk_SK: Likewise.
22582 * localedata/locales/sl_SI: Likewise.
22583 * localedata/locales/sm_WS: Likewise.
22584 * localedata/locales/so_DJ: Likewise.
22585 * localedata/locales/so_ET: Likewise.
22586 * localedata/locales/so_KE: Likewise.
22587 * localedata/locales/so_SO: Likewise.
22588 * localedata/locales/sq_AL: Likewise.
22589 * localedata/locales/sq_MK: Likewise.
22590 * localedata/locales/sr_ME: Likewise.
22591 * localedata/locales/sr_RS: Likewise.
22592 * localedata/locales/sr_RS@latin: Likewise.
22593 * localedata/locales/ss_ZA: Likewise.
22594 * localedata/locales/st_ZA: Likewise.
22595 * localedata/locales/sv_FI: Likewise.
22596 * localedata/locales/sv_SE: Likewise.
22597 * localedata/locales/sw_KE: Likewise.
22598 * localedata/locales/sw_TZ: Likewise.
22599 * localedata/locales/szl_PL: Likewise.
22600 * localedata/locales/ta_IN: Likewise.
22601 * localedata/locales/ta_LK: Likewise.
22602 * localedata/locales/tcy_IN: Likewise.
22603 * localedata/locales/te_IN: Likewise.
22604 * localedata/locales/tg_TJ: Likewise.
22605 * localedata/locales/th_TH: Likewise.
22606 * localedata/locales/the_NP: Likewise.
22607 * localedata/locales/ti_ER: Likewise.
22608 * localedata/locales/ti_ET: Likewise.
22609 * localedata/locales/tig_ER: Likewise.
22610 * localedata/locales/tk_TM: Likewise.
22611 * localedata/locales/tl_PH: Likewise.
22612 * localedata/locales/tn_ZA: Likewise.
22613 * localedata/locales/to_TO: Likewise.
22614 * localedata/locales/tpi_PG: Likewise.
22615 * localedata/locales/tr_CY: Likewise.
22616 * localedata/locales/tr_TR: Likewise.
22617 * localedata/locales/ts_ZA: Likewise.
22618 * localedata/locales/tt_RU: Likewise.
22619 * localedata/locales/tt_RU@iqtelif: Likewise.
22620 * localedata/locales/ug_CN: Likewise.
22621 * localedata/locales/uk_UA: Likewise.
22622 * localedata/locales/unm_US: Likewise.
22623 * localedata/locales/ur_IN: Likewise.
22624 * localedata/locales/ur_PK: Likewise.
22625 * localedata/locales/uz_UZ: Likewise.
22626 * localedata/locales/uz_UZ@cyrillic: Likewise.
22627 * localedata/locales/ve_ZA: Likewise.
22628 * localedata/locales/vi_VN: Likewise.
22629 * localedata/locales/wa_BE: Likewise.
22630 * localedata/locales/wae_CH: Likewise.
22631 * localedata/locales/wal_ET: Likewise.
22632 * localedata/locales/wo_SN: Likewise.
22633 * localedata/locales/xh_ZA: Likewise.
22634 * localedata/locales/yi_US: Likewise.
22635 * localedata/locales/yo_NG: Likewise.
22636 * localedata/locales/yue_HK: Likewise.
22637 * localedata/locales/yuw_PG: Likewise.
22638 * localedata/locales/zh_CN: Likewise.
22639 * localedata/locales/zh_HK: Likewise.
22640 * localedata/locales/zh_SG: Likewise.
22641 * localedata/locales/zh_TW: Likewise.
22642 * localedata/locales/zu_ZA: Likewise.
22643
22644 2017-11-13 Florian Weimer <fweimer@redhat.com>
22645
22646 * support/next_to_fault.h, support/next_to_fault.c: New files.
22647 * support/Makefile (libsupport-routines): Add next_to_fault.
22648 * resolv/tst-inet_pton.c (struct next_to_fault)
22649 (next_to_fault_allocate, next_to_fault_free): Remove.
22650 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22651
22652 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22653
22654 * elf/dl-support.c: Include <dl-procruntime.c>.
22655 * include/link.h: Include <link_map.h>.
22656 * sysdeps/generic/dl-procruntime.c: New file.
22657 * sysdeps/generic/link_map.h: Likewise.
22658 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22659 the writable ld.so namespace.
22660
22661 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22662
22663 timezone: pacify GCC -Wstringop-truncation
22664 Problem reported by Martin Sebor in:
22665 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22666 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22667
22668 2017-11-12 Florian Weimer <fweimer@redhat.com>
22669
22670 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22671 tst-xreadlink.
22672 (tests): Add tst-xreadlink.
22673 * support/support.h (xstrndup): Declare.
22674 * support/xunistd.h (xunlink, xreadlink): Declare.
22675 * support/temp_file.h (support_create_temp_directory): Declare.
22676 * support/temp_file.c (support_create_temp_directory): New function.
22677 * support/support_chroot.c (support_chroot_create): Use it.
22678 * support/xreadlink.c: New file.
22679 * support/xstrndup.c: Likewise.
22680 * support/xunlink.c: Likewise.
22681 * support/tst-xreadlink.c: Likewise.
22682
22683 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22684
22685 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22686
22687 2017-11-11 Florian Weimer <fweimer@redhat.com>
22688
22689 [BZ #22409]
22690 [BZ #22412]
22691 * resolv/res_comp.c (printable_string, binary_hnok)
22692 (binary_leading_dash): New functions.
22693 (res_hnok): Reimplement using these functions and ns_name_pton.
22694 (res_ownok): Likewise.
22695 (res_mailok): Reimplement using printable_string, ns_name_pton and
22696 binary_hnok.
22697 (res_dnok): Reimplement using printable_string and ns_name_pton.
22698 * resolv/tst-res_hnok.c (tests): Add additional tests.
22699 (LETTERDIGITS, PRINTABLE): Define.
22700 (do_test): Adjust one_char results.
22701
22702 2017-11-11 Florian Weimer <fweimer@redhat.com>
22703
22704 [BZ #22413]
22705 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22706 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22707
22708 2017-11-11 Florian Weimer <fweimer@redhat.com>
22709
22710 * resolv/tst-ns_name_pton.c: New file.
22711 * resolv/Makefile (tests): Add tst-ns_name_pton.
22712 (tst-ns_name_pton): Link against libresolv.
22713
22714 2017-11-11 Florian Weimer <fweimer@redhat.com>
22715
22716 * resolv/tst-res_hnok.c: New file.
22717 * resolv/Makefile (tests): Add tst-res_hnok.
22718 (tst-res_hnok): Link against libresolv.
22719
22720 2017-11-11 Florian Weimer <fweimer@redhat.com>
22721
22722 * resolv/tst-resolv-network.c: Use test framework instead explicit
22723 main function.
22724
22725 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22726
22727 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22728 <jmp_buf-macros.h>.
22729 [!_ISOMAC] (STR_HELPER): New.
22730 [!_ISOMAC] (STR): Likewise.
22731 [!_ISOMAC] (TEST_SIZE): Likewise.
22732 [!_ISOMAC] (TEST_ALIGN): Likewise.
22733 [!_ISOMAC] (TEST_OFFSET): Likewise.
22734 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22735 field offsets of jmp_buf as well as sigjmp_buf.
22736 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22737 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22738 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22739 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22740 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22741 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22742 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22743 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22744 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22745 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22746 Likewise.
22747 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22748 Likewise.
22749 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22751 Likewise.
22752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22753 Likewise.
22754 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22755 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22756 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22757 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22758 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22759 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22760 Likewise.
22761 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22762 Likewise.
22763 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22764 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22765 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22766
22767 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22768
22769 * include/float.h
22770 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22771 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22772 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22773 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22774 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22775 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22776 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22777 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22778 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22779 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22780 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22781 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22782 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22783 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22784 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22785 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22786 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22787 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22788 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22789 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22790 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22791 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22792 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22793 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22794 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22795 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22796 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22797 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22798 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22799 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22800 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22801 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22802 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22803 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22804 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22805 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22806 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22807 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22808 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22809 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22810 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22811 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22812 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22813 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22814 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22815 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22816 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22817 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22818 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22819 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22820 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22821 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22822 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22823 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22824 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22825 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22826 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22827 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22828 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22829 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22830 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22831 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22832 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22833 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22834 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22835 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22836 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22837 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22838 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22839 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22840 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22841 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22842 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22843 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22844 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22845 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22846 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22847 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22848 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22849 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22850 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22851 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22852 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22853 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22854 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22855 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22856 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22857 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22858
22859 * stdlib/tst-strtod.h (F16): New macro.
22860 (F32): Likewise.
22861 (F64): Likewise.
22862 (F32X): Likewise.
22863 (F64X): Likewise.
22864 (F128X): Likewise.
22865 (IF_FLOAT16): Likewise.
22866 (IF_FLOAT32): Likewise.
22867 (IF_FLOAT64): Likewise.
22868 (IF_FLOAT32X): Likewise.
22869 (IF_FLOAT64X): Likewise.
22870 (IF_FLOAT128X): Likewise.
22871 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22872 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22873 (STRTOD_TEST_FOREACH): Likewise.
22874 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22875 (CHOOSE_f64): Likewise.
22876 (CHOOSE_f32x): Likewise.
22877 (CHOOSE_f64x): Likewise.
22878
22879 2017-11-07 Andreas Schwab <schwab@suse.de>
22880
22881 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22882
22883 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22884
22885 [BZ #22403]
22886 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22887 to be escaped.
22888 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22889 to be escaped.
22890
22891 2017-11-07 Claude Paroz <claude@2xlibre.net>
22892
22893 [BZ #22403]
22894 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22895 to be escaped.
22896 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22897 to be escaped.
22898 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22899 to be escaped.
22900
22901 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22902
22903 [BZ #22298]
22904 * nptl/allocatestack.c (allocate_stack): Check if
22905 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22906 __PTHREAD_MUTEX_HAVE_PREV is defined.
22907 * nptl/descr.h (pthread): Likewise.
22908 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22909 Likewise.
22910 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22911 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22912 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22913 * sysdeps/nptl/bits/thread-shared-types.h
22914 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22915 defines.
22916 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22917 of __WORDSIZE for internal layout.
22918 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22919 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22920 instead of __WORDSIZE whether to use an union for __spins and __list
22921 fields.
22922 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22923 case.
22924 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22925 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22926 defines.
22927 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22928 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22929 Likewise.
22930 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22931 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22932 Likewise.
22933 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22934 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22935 Likewise.
22936 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22937 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22938 Likewise.
22939 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22940 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22941 Likewise.
22942 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22943 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22944 Likewise.
22945 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22946 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22947 Likewise.
22948 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22949 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22950 Likewise.
22951 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22952 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22953 Likewise.
22954 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22955 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22956 Likewise.
22957 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22958 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22959 Likewise.
22960 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22961 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22962 Likewise.
22963 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22964 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22965 Likewise.
22966 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22967 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22968 Likewise.
22969
22970 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22971 New macros.
22972 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22973 checks for expected input type size.
22974 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22975 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22976 Likewise.
22977 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22978 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22979 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22980 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22981 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22982 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22983 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22984 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22985 superflous runtime assert check.
22986 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22987 Likewise.
22988 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22989 Likewise.
22990 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22991 Likewise.
22992 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22993 Likewise.
22994 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22995 Likewise.
22996 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22997 Likewise.
22998 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22999 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23000 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23001 Likewise.
23002 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23003 Likewise.
23004 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23005 Likewise.
23006 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23007 Likewise.
23008 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23009 Likewise.
23010 * nptl/pthread_attr_setinheritsched.c
23011 (__pthread_attr_setinheritsched): Likewise.
23012 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23013 Likewise.
23014 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23015 Likewise.
23016 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23017 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23018 __old_pthread_attr_setstack): Likewise.
23019 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23020 Likewise.
23021 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23022 Likewise.
23023 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23024 Likewise.
23025 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23026 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23027 Likewise.
23028 * nptl/tst-typesizes.c: Remove file.
23029
23030 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23031 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23032 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23033 checks for internal pthread_mutex_t offsets.
23034 * sysdeps/aarch64/nptl/pthread-offsets.h
23035 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23036 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23037 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23038 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23039 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23040 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23041 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23042 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23043 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23044 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23045 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23046 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23047 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23048 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23049 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23050 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23051 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23052 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23053
23054 2017-11-07 Florian Weimer <fweimer@redhat.com>
23055
23056 * bits/mman-linux.h: Move ...
23057 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23058 comment.
23059 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23060 outdated comment.
23061
23062 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23063
23064 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23065 Redefine STRNLEN as __strnlen_power8.
23066
23067 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23068
23069 * signal/sighold.c (sighold): Optimize implementation.
23070
23071 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23072 __NR_rt_sigqueueinfo.
23073
23074 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23075 __sigtimedwait.
23076 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23077 assume __NR_rt_sigtimedwait.
23078 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23079 and add LIBC_CANCEL_HANDLED for cancellation marking.
23080 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23081
23082 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23083 (sysdeps_routines): Add memchr_noneon.
23084 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23085 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23086 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23087 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23088 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23089 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23090 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23091
23092 * sysdeps/arm/arm-ifunc.h: New file.
23093 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23094 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23095 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23096 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23097 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23098 (__memcpy_neon): Avoid create hidden alias.
23099 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23100 (__memcpy_vfp): Likewise.
23101 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23102 (sysdep_routines): Add memcpy_arm.
23103 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23104
23105 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23106
23107 [BZ #22362]
23108 * Makerules (make-link-multidir): New.
23109 * config.make.in (multidir): New.
23110 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23111 * configure: Regenerated.
23112 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23113 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23114 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23115 New target.
23116
23117 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23118
23119 [BZ #22402]
23120 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23121 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23122
23123 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23124
23125 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23126 to be escaped.
23127
23128 2017-11-04 Florian Weimer <fweimer@redhat.com>
23129
23130 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23131
23132 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23133
23134 * math/math.h [__HAVE_DISTINCT_FLOAT16
23135 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23136 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23137 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23138 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23139 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23140 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23141 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23142 (__MATH_TG_F32): New macro.
23143 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23144 (__MATH_TG_F64X): Likewise.
23145 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23146 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23147
23148 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23149
23150 * po/de.po: Update translations.
23151 * po/ru.po: Likewise.
23152
23153 2017-11-03 Florian Weimer <fweimer@redhat.com>
23154
23155 * manual/filesys.texi (Hard Links): Document linkat.
23156
23157 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23158
23159 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23160 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23161 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23162 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23163 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23164 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23165 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23166 the same as _Float128.
23167 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23168 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23169 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23170
23171 * stdlib/stdlib.h
23172 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23173 Declare.
23174 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23175 Likewise.
23176 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23177 Likewise.
23178 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23179 (strtof32x): Likewise.
23180 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23181 (strtof64x): Likewise.
23182 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23183 (strtof128x): Likewise.
23184 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23185 (strfromf16): Likewise.
23186 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23187 (strfromf32): Likewise.
23188 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23189 (strfromf64): Likewise.
23190 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23191 (strfromf32x): Likewise.
23192 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23193 (strfromf64x): Likewise.
23194 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23195 (strfromf128x): Likewise.
23196 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23197 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23198 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23199 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23200 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23201 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23202
23203 2017-11-03 Richard Henderson <rth@twiddle.net>
23204
23205 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23206
23207 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23208
23209 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23210
23211 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23212
23213 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23214 DT_TLSDESC_GOT initialization.
23215 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23216 (_dl_tlsdesc_resolve_hold): Likewise.
23217 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23218 (_dl_tlsdesc_resolve_hold): Likewise.
23219 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23220 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23221
23222 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23223
23224 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23225
23226 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23227
23228 [BZ #18572]
23229 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23230 non-lazily for R_ARM_TLS_DESC.
23231
23232 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23233
23234 [BZ #17078]
23235 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23236 R_ARM_TLS_DESC case.
23237 (elf_machine_lazy_rel): Remove the prelink check.
23238
23239 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23240
23241 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23242 DT_TLSDESC_GOT initialization.
23243 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23244 (_dl_tlsdesc_resolve_rela): Likewise.
23245 (_dl_tlsdesc_resolve_hold): Likewise.
23246 (_dl_tlsdesc_undefweak): Remove ldar.
23247 (_dl_tlsdesc_dynamic): Likewise.
23248 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23249 (_dl_tlsdesc_resolve_rela): Likewise.
23250 (_dl_tlsdesc_resolve_hold): Likewise.
23251 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23252 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23253 (_dl_tlsdesc_resolve_rela): Likewise.
23254 (_dl_tlsdesc_resolve_hold): Likewise.
23255
23256 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23257
23258 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23259 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23260
23261 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23262
23263 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23264 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23265
23266 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23267
23268 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23269 Declare.
23270 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23271 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23272 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23273 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23274 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23275 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23276 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23277 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23278 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23279 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23280 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23281
23282 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23283
23284 [BZ #22382]
23285 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23286 * localedata/locales/tpi_PG: Add standard header.
23287
23288 2017-11-02 Florian Weimer <fweimer@redhat.com>
23289
23290 test-errno-linux: quotactl can fail with EPERM in containers.
23291 * sysdeps/unix/sysv/linux/test-errno-linux.c
23292 (LIST, LIST_FORWARD): New macros.
23293 (check_error_in_list): New function.
23294 (test_wrp_rv): Accept list of permitted error codes.
23295 (test_wrp_rv2): Remove.
23296 (test_wrp): Call test_wrp_rv with list of error codes.
23297 (test_wrp2): Accept list of error codes.
23298 (do_test): Adjust. Allow EPERM for quotactl.
23299
23300 2017-11-02 Florian Weimer <fweimer@redhat.com>
23301
23302 * stdio-common/bug16.c (do_test): Use array_length.
23303 * stdio-common/errlist.c (_sys_nerr): Likewise.
23304 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23305 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23306 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23307 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23308 (do_test): Use array_length.
23309 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23310 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23311 * stdio-common/tst-printf-round.c (do_test): Likewise.
23312 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23313 (CHECK): Use array_length.
23314 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23315 * stdio-common/tstscanf.c (main): Likewise.
23316 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23317
23318 2017-11-02 Florian Weimer <fweimer@redhat.com>
23319
23320 Add array_length and array_end macros.
23321 * include/array_length.h: New file.
23322
23323 2017-11-02 Florian Weimer <fweimer@redhat.com>
23324
23325 [BZ #22332]
23326 * posix/tst-glob-tilde.c (do_noescape): New variable.
23327 (one_test): Process it.
23328 (do_test): Set do_noescape. Add unescaping test case.
23329
23330 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23331
23332 * math/complex.h
23333 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23334 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23335 with appropriate macros defined and undefined.
23336 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23337 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23338 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23339 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23340 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23341 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23342 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23343 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23344 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23345 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23346
23347 * math/complex.h
23348 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23349 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23350 that for long double. Do not condition define and undefine of
23351 _Mdouble_complex_ on [__CFLOAT128].
23352
23353 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23354
23355 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23356 of <sysdeps/generic/sysdep.h>.
23357 (ALIGNARG): Removed.
23358 (ASM_SIZE_DIRECTIVE): Likewise.
23359 (ENTRY): Likewise.
23360 (END): Likewise.
23361 (ENTRY_CHK): Likewise.
23362 (END_CHK): Likewise.
23363 (syscall_error): Likewise.
23364 (mcount): Likewise.
23365 (PSEUDO_END): Likewise.
23366 (L): Likewise.
23367 (atom_text_section): Likewise.
23368 * sysdeps/x86/sysdep.h: New file.
23369 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23370 of <sysdeps/generic/sysdep.h>.
23371 (ALIGNARG): Removed.
23372 (ASM_SIZE_DIRECTIVE): Likewise.
23373 (ENTRY): Likewise.
23374 (END): Likewise.
23375 (ENTRY_CHK): Likewise.
23376 (END_CHK): Likewise.
23377 (syscall_error): Likewise.
23378 (mcount): Likewise.
23379 (PSEUDO_END): Likewise.
23380 (L): Likewise.
23381 (atom_text_section): Likewise.
23382
23383 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23384
23385 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23386 category of LC_CTYPE set to "i18n:2012".
23387 * localedata/locales/i18n_ctype: Regenerate.
23388
23389 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23390
23391 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23392 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23393 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23394 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23395
23396 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23397 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23398 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23399 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23400
23401 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23402
23403 * math/complex.h
23404 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23405 New macro.
23406 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23407 Likewise.
23408 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23409 Likewise.
23410 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23411 (CMPLXF32X): Likewise.
23412 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23413 (CMPLXF64X): Likewise.
23414 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23415 (CMPLXF128X): Likewise.
23416
23417 * math/math.h
23418 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23419 (__MATH_EVAL_FMT2): Define to add 0.0f.
23420
23421 2017-10-31 Alan Modra <amodra@gmail.com>
23422
23423 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23424 include sysdep.h.
23425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23439 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23440 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23441 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23442 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23443 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23444 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23445 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23446 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23447 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23448 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23449 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23450 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23451 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23452 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23453 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23454 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23455 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23456 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23457 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23458 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23459 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23460 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23461 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23462 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23463 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23464 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23465 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23466 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23467 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23468 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23469 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23470 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23471 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23472 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23473 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23474 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23475 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23476 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23477 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23478 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23479 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23480 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23481 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23482 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23483 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23484 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23485 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23486 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23487 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23488 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23489 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23490 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23491 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23492 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23493 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23494
23495 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23496 include sysdep.h and math_ldbl_opt.h.
23497
23498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23499 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23501 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23502 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23513 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23524
23525 2017-10-31 Alan Modra <amodra@gmail.com>
23526
23527 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23528 string/strncase_l.c, not string/strncase.c.
23529 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23530 (libc_hidden_def): Redefine.
23531
23532 2017-10-31 Alan Modra <amodra@gmail.com>
23533
23534 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23535 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23536 (__strcasecmp): Don't define.
23537
23538 2017-10-31 Alan Modra <amodra@gmail.com>
23539
23540 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23541 IS_IN (libc).
23542 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23543 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23544 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23545
23546 2017-10-31 Alan Modra <amodra@gmail.com>
23547
23548 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23549 USE_AS_STPNCPY.
23550
23551 2017-10-31 Alan Modra <amodra@gmail.com>
23552
23553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23554 Redefine only when SHARED.
23555
23556 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23557
23558 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23559 Include <bits/math-finite.h> with appropriate macros defined and
23560 undefined.
23561 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23562 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23563 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23564 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23565 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23566
23567 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23568 [!_Mlong_double_] (_Mlong_double_): Likewise.
23569 [!_Mfloat16_] (_Mfloat16_): Likewise.
23570 [!_Mfloat32_] (_Mfloat32_): Likewise.
23571 [!_Mfloat64_] (_Mfloat64_): Likewise.
23572 [!_Mfloat128_] (_Mfloat128_): Likewise.
23573 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23574 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23575 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23576 (_Mdouble_): Define without indirection through those macros.
23577 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23578 [!_Mfloat128_] (_Mfloat128_): Likewise.
23579 [_Mlong_double_] (_Mlong_double_): Likewise.
23580 (_Mdouble_): Define without indirection through those macros.
23581 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23582 not add -D_Mlong_double_=double.
23583 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23584 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23585
23586 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23587
23588 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23589
23590 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23591
23592 * sysdeps/x86/libc-start.c: Reformat.
23593
23594 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23595
23596 [BZ #22353]
23597 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23598 (1): Renamed to ...
23599 (L(Src0)): This.
23600 (L(Src1)): New.
23601 (L(Src2)): Likewise.
23602 (L(1)): Renamed to ...
23603 (L(Src3)): This.
23604
23605 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23606
23607 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23608 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23609 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23610 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23611 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23612 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23613 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23614 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23615 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23616 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23617 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23618 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23619 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23620 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23621 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23622 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23623 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23624 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23625 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23626 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23627 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23628 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23629 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23630 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23631 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23632 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23633 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23634 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23635 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23636 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23637 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23638 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23639 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23640 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23641 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23642 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23643 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23644 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23645 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23646 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23647 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23648 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23649 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23650 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23651 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23652 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23653 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23654 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23655 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23656 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23657 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23658 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23659 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23660 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23661 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23662 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23663 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23664 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23665 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23666 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23667 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23668 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23669 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23670 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23671 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23672 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23673
23674 2017-10-30 Florian Weimer <fweimer@redhat.com>
23675
23676 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23677 always defined.
23678 * io/tst-mkdirat.c (do_test): Likewise.
23679 * io/tst-mkfifoat.c (do_test): Likewise.
23680 * io/tst-mknodat.c (do_test): Likewise.
23681 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23682 * locale/programs/locale.c (select_dirs): Likewise.
23683 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23684 * posix/bug-glob2.c (my_readdir): Likewise.
23685 * posix/tst-dir.c (main): Likewise.
23686 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23687 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23688
23689 2017-10-30 Florian Weimer <fweimer@redhat.com>
23690
23691 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23692 just __USE_GNU.
23693
23694 2017-10-30 Florian Weimer <fweimer@redhat.com>
23695
23696 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23697 Convert to support/test-driver.c.
23698 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23699 New macro parameters.
23700 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23701 * posix/tst-gnuglob.c: New file.
23702 * posix/tst-gnuglob64.c: Likewise.
23703 * posix/Makefile (tests): Add tst-gnuglob64.
23704
23705 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23706
23707 [BZ #19485]
23708 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23709 and use a better translation for March in “mon”.
23710 * localedata/locales/csb_PL: Use more ASCII to improve the
23711 readability of the source.
23712
23713 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23714
23715 [BZ #13953]
23716 * localedata/locales/km_KH: Use ASCII as much
23717 as possible for better readability of the source and
23718 remove useless comments.
23719 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23720 was commented out and apparently wrong anyway because it was
23721 using Lao characters. If Buddhist era should be used
23722 for km_KH, a native speaker should write the correct formaat
23723 for Khmer.
23724 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23725 (According to CLDR, the first weekday for Cambodia is Sunday).
23726 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23727 (These were using Lao characters which must be wrong. If we get
23728 the correct data from a native speaker, we could add it back, until
23729 then it is better not to have name_mr and name_mrs at all than
23730 having it wrong).
23731
23732 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23733
23734 * locale/loadlocale.c: Correct size of
23735 _nl_value_type_LC_<category> arrays.
23736
23737 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23738
23739 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23740 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23741 with appropriate macros defined and undefined.
23742 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23743 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23744 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23745 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23746 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23747
23748 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23749
23750 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23751 "-O2 -march=i586".
23752
23753 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23754
23755 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23756 with lowercase letters to make it agree with CLDR.
23757
23758 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23759
23760 [BZ #15260]
23761 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23762 first letters of yesstr and nostr in yesexpr and noexpr,
23763 not for the full words.
23764 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23765 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23766 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23767 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23768 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23769 first letters of yesstr and nostr in yesexpr and noexpr,
23770 until now only English was matched in yesexpr and noexpr.
23771 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23772 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23773 fil but not for tl. As tl and fil are very similar, using fil
23774 is probably better than using English.
23775
23776 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23777
23778 [BZ #21706]
23779 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23780 in yesstr and nostr.
23781
23782 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23783
23784 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23785 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23786 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23787 Likewise.
23788 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23789 Likewise.
23790 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23791 Likewise.
23792 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23793 Likewise.
23794 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23795 (SNANF128X): Likewise.
23796
23797 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23798 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23799 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23800 (HUGE_VAL_F32): Likewise.
23801 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23802 (HUGE_VAL_F64): Likewise.
23803 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23804 (HUGE_VAL_F32X): Likewise.
23805 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23806 (HUGE_VAL_F64X): Likewise.
23807 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23808 (HUGE_VAL_F128X): Likewise.
23809
23810 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23811
23812 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23813 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23814 for the br_FR locale.
23815
23816 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23817
23818 [BZ #21706]
23819 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23820
23821 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23822
23823 * locale/programs/record-status.h: Define globals, and function
23824 prototypes. Move function bodies...
23825 * locale/programs/record-status.c: ... to here. New file.
23826 * iconv/Makefile (iconv_prog-modules): Add record-status.
23827 * locale/Makefile (lib-modules): Likewise.
23828 * iconv/iconv_prog.c: Remove verbose.
23829 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23830 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23831 record a warning about ASCII compatibility.
23832 * locale/programs/ld-monetary.c (monetary_finish): If
23833 warn_int_curr_symbol is true then record a warning about the symbol
23834 not being in our ISO 4217 list.
23835 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23836 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23837 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23838 (OPT_NO_WARN): Define.
23839 (OPT_WARN): Define.
23840 (options): Add entry for --no-warnings, and --warnings.
23841 (set_warnings): New function to enable/disable warnings.
23842 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23843 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23844 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23845 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23846 Pass flags to generate_locale.
23847 (generate_locale): Accept new flag argument and pass it to localedef
23848 invocation.
23849 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23850 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23851
23852 * localedata/Makefile (test-input-data): Use full file name.
23853 * localedata/da_DK.in: Rename to...
23854 * localedata/da_DK.ISO-8859-1.in: ...this.
23855 * localedata/de_DE.in: Rename to...
23856 * localedata/de_DE.ISO-8859-1.in: ...this.
23857 * localedata/en_US.in: Rename to...
23858 * localedata/en_US.ISO-8859-1.in: ...this.
23859 * localedata/fr_FR.in: Rename to...
23860 * localedata/fr_FR.UTF-8.in: ... this.
23861 * localedata/hr_HR.in: Rename to...
23862 * localedata/hr_HR.ISO-8859-2.in: ...this.
23863 * localedata/hu_HU.in: Rename to...
23864 * localedata/hu_HU.UTF-8.in: ...this.
23865 * localedata/si_LK.in: Rename to...
23866 * localedata/si_LK.UTF-8.in: ...this.
23867 * localedata/sv_SE.in: Rename to...
23868 * localedata/sv_SE.ISO-8859-1.in: ...this.
23869 * localedata/tr_TR.in: Rename to...
23870 * localedata/tr_TR.UTF-8.in: ...this.
23871 * localedata/uk_UA.in: Rename to...
23872 * localedata/uk_UA.UTF-8.in: ...this.
23873 * localedata/sort-test.sh: Test file is locale name with the
23874 suffix.
23875
23876 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23877 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23878 file.
23879 * localedata/locales/i18n_ctype: Regenerate.
23880 * localedata/locales/tr_TR: Likewise.
23881 * localedata/locales/translit_circle: Likewise.
23882 * localedata/locales/translit_cjk_compat: Likewise.
23883 * localedata/locales/translit_combining: Likewise.
23884 * localedata/locales/translit_compat: Likewise.
23885 * localedata/locales/translit_font: Likewise.
23886 * localedata/locales/translit_fraction: Likewise.
23887
23888 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23889
23890 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23891 lxvd2x/stxvd2x with lvx/stvx.
23892 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23893
23894 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23895
23896 * include/alloc_buffer.h: Replace "if if " with "if " in
23897 comments.
23898 * sysdeps/mips/memcpy.S: Likkewise.
23899 * sysdeps/mips/memset.S: Likewise.
23900 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23901 Likewise.
23902 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23903 Likewise.
23904 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23905 Likewise.
23906
23907 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23908
23909 [BZ #15261]
23910 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23911 yesexpr and noexpr.
23912 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23913 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23914 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23915 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23916 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23917 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23918 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23919
23920 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23921
23922 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23923 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23924 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23925 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23926 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23927 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23928 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23929 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23930 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23931 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23932 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23933 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23934
23935 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23936
23937 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23938 as possible for better readability of the source.
23939 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23940 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23941 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23942 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23943 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23944 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23945 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23946 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23947 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23948 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23949 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23950 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23951 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23952 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23953 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23954 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23955 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23956 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23957 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23958 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23959 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23960 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23961 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23962 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23963 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23964 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23965 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23966 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23967 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23968 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23969 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23970 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23971 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23972 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23973 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23974 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23975 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23976 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23977 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23978 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23979 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23980 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23981 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23982 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23983 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23984 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23985 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23986 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23987 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23988 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23989 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23990 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23991 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23992 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23993 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23994 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23995 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23996 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23997 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23998 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23999 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24000 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24001 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24002 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24003 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24004 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24005 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24006 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24007 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24008 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24009 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24010 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24011 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24012 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24013 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24014 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24015 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24016 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24017 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24018 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24019 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24020 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24021 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24022 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24023 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24024 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24025 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24026 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24027 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24028 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24029 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24030 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24031 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24032 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24033 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24034 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24035 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24036 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24037 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24038 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24039 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24040 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24041 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24042 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24043 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24044 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24045 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24046 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24047 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24048 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24049 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24050 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24051 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24052 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24053 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24054 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24055 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24056 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24057 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24058 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24059 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24060 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24061 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24062 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24063 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24064 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24065 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24066 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24067 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24068 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24069 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24070 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24071 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24072 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24073 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24074 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24075 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24076 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24077 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24078 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24079 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24080 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24081 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24082 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24083 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24084 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24085 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24086 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24087 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24088 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24089 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24090 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24091 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24092 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24093 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24094 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24095 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24096 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24097 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24098 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24099 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24100 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24101 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24102 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24103 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24104 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24105 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24106 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24107 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24108 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24109 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24110 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24111 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24112 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24113
24114 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24115
24116 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24117 (Use first letters of yesstr and nostr correctly instead of using
24118 full words).
24119
24120 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24121
24122 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24123 (Use first letters of yesstr and nostr correctly).
24124
24125 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24126
24127 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24128 also check for the first characters of yesstr and nostr.
24129 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24130 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24131
24132 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24133
24134 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24135 also check for Chinese characters.
24136
24137 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24138
24139 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24140 match also for the contents of yesstr and nostr. As the first letter
24141 of yesstr and nostr is equal, checking only for the first letter
24142 is not enough.
24143
24144 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24145
24146 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24147 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24148
24149 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24150
24151 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24152 of main contributor.
24153
24154 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24155
24156 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24157 instead of using English.
24158
24159 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24160
24161 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24162 by including the first letters of nostr and yesexpr in the regexp.
24163 Also make it more readable by using ASCII where possible.
24164
24165 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24166
24167 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24168 the first letter of nostr in the regexp. It agrees with CLDR now.
24169 Also make it more readable by using ASCII where possible.
24170
24171 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24172
24173 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24174 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24175 these strings contain a U+17D6 (which somewhat looks like a colon)
24176 instead of a real colon to separate the full words for “yes”
24177 and “no” from the single letter responses.
24178
24179 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24180
24181 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24182 it agree with CLDR (include the first letter of yesstr).
24183 Also make it more readable by using ASCII where possible.
24184
24185 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24186
24187 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24188 and improve yesexpr and noexpr. The yesstr and nostr apparently
24189 came from CLDR. And CLDR has a bug there: these strings contain
24190 a U+0903 (which looks like a colon) instead of a real colon
24191 to separate the full words for “yes” and “no” from the single
24192 letter responses.
24193
24194 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24195
24196 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24197 letters of the full yesstr and nostr in yesexpr and noexpr.
24198
24199 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24200
24201 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24202 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24203 * localedata/locales/an_ES: Make source more readable by using ASCII
24204 where possible.
24205
24206 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24207
24208 [BZ #20952]
24209 * localedata/locales/yuw_PG: New file.
24210 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24211 * locale/iso-639.def: Add Yau (Uruwa).
24212
24213 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24214
24215 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24216
24217 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24218
24219 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24220 (__libc_realloc): Likewise.
24221 (_mid_memalign): Likewise.
24222 (__libc_calloc): Likewise.
24223
24224 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24225
24226 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24227 by adding the generic +1 and -0 as in all other locales.
24228 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24229 day names and make it more readable by using ASCII where possible.
24230
24231 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24232
24233 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24234 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24235
24236 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24237
24238 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24239 WNOHANG in waitpid call.
24240
24241 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24242
24243 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24244 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24245
24246 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24247 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24248 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24249 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24250 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24251 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24252 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24253 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24254 variables.
24255
24256 2017-10-23 Michael Collison <michael.collison@arm.com>
24257
24258 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24259 with __builtin_sqrt.
24260 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24261 with __builtin_sqrtf.
24262 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24263 with __builtin_ceil.
24264 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24265 with __builtin_ceilf.
24266 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24267 with __builtin_floor.
24268 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24269 with __builtin_floorf.
24270 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24271 with __builtin_fma.
24272 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24273 with __builtin_fmaf.
24274 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24275 with __builtin_fmax.
24276 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24277 with __builtin_fmaxf.
24278 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24279 with __builtin_fmin.
24280 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24281 with __builtin_fminf.
24282 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24283 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24284 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24285 with builtin_rint and conversion to int.
24286 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24287 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24288 with builtin_llround.
24289 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24290 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24291 with builtin_rint and conversion to long int.
24292 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24293 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24294 with builtin_lround.
24295 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24296 with builtin_lroundf.
24297 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24298 statements with __builtin_nearbyint.
24299 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24300 statements with __builtin_nearbyintf.
24301 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24302 with __builtin_rint.
24303 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24304 with __builtin_rintf.
24305 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24306 with __builtin_round.
24307 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24308 with __builtin_roundf.
24309 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24310 with __builtin_trunc.
24311 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24312 with __builtin_truncf.
24313 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24314 and s_l[l]round[f].c too.
24315
24316 2017-10-23 Alan Modra <amodra@gmail.com>
24317
24318 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24319 Adjust stack after restoring regs. Add missing LR cfi_restore.
24320
24321 2017-10-23 Alan Modra <amodra@gmail.com>
24322
24323 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24324 Move LR save and frame setup/teardown and LR restore to
24325 immediately around memset call. Provide cfi.
24326
24327 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24328
24329 * sysdeps/i386/fpu/e_powf.S: Removed.
24330 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24331 * sysdeps/i386/fpu/w_powf.c: Likewise.
24332 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24333 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24334 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24335 Add e_powf-sse2.
24336 (CFLAGS-e_powf-sse2.c): New.
24337 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24338 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24339
24340 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24341
24342 * sysdeps/i386/fpu/e_log2f.S: Removed.
24343 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24344 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24345 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24346 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24347 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24348 Add e_log2f-sse2.
24349 (CFLAGS-e_log2f-sse2.c): New.
24350 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24351 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24352
24353 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24354
24355 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24356 Add e_powf-fma.
24357 (CFLAGS-e_powf-fma.c): New.
24358 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24359 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24360
24361 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24362
24363 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24364 Add e_log2f-fma.
24365 (CFLAGS-e_log2f-fma.c): New.
24366 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24367 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24368
24369 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24370
24371 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24372 Add e_logf-fma.
24373 (CFLAGS-e_logf-fma.c): New.
24374 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24375 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24376
24377 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24378
24379 * sysdeps/i386/fpu/e_logf.S: Removed.
24380 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24381 * sysdeps/i386/fpu/w_logf.c: Likewise.
24382 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24383 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24384 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24385 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24386 Add e_logf-sse2.
24387 (CFLAGS-e_logf-sse2.c): New.
24388 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24389 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24390
24391 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24392
24393 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24394 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24395 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24396 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24397 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24398 Add e_exp2f-sse2.
24399 (CFLAGS-e_exp2f-sse2.c): New.
24400 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24401 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24402
24403 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24404
24405 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24406 Add e_exp2f-fma.
24407 (CFLAGS-e_exp2f-fma.c): New.
24408 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24409 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24410
24411 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24412
24413 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24414 * sysdeps/i386/fpu/e_expf.S: Likewise.
24415 * sysdeps/i386/fpu/math_errf.c: Likewise.
24416 * sysdeps/i386/fpu/w_expf.c: Likewise.
24417 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24418 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24419 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24420 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24421 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24422 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24423 Remove e_expf-ia32.
24424 (CFLAGS-e_expf-sse2.c): New.
24425 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24426 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24427
24428 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24429
24430 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24431 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24432 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24433 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24434 e_expf.c.
24435 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24436 New.
24437 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24438 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24439 Renamed to ...
24440 (__redirect_expf): This.
24441 (SYMBOL_NAME): Changed to expf.
24442 (__ieee754_expf): Renamed to ...
24443 (__expf): This.
24444 (__GI___expf): This.
24445 (__ieee754_expf): Add strong_alias.
24446 (__expf_finite): Likewise.
24447 (__expf): New.
24448 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24449
24450 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24451
24452 [BZ #22332]
24453 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24454 unescaping.
24455
24456 2017-10-21 Florian Weimer <fweimer@redhat.com>
24457
24458 * posix/Makefile (tests): Add tst-glob-tilde.
24459 (tests-special): Add tst-glob-tilde-mem.out
24460 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24461 (tst-glob-tilde-mem.out): Add mtrace check.
24462 * posix/tst-glob-tilde.c: New file.
24463
24464 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24465
24466 * bits/floatn-common.h: New file.
24467 * math/Makefile (headers): Add bits/floatn-common.h.
24468 * bits/floatn.h: Include <bits/floatn-common.h>.
24469 * sysdeps/ia64/bits/floatn.h: Likewise.
24470 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24471 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24472 * sysdeps/powerpc/bits/floatn.h: Likewise.
24473 * sysdeps/x86/bits/floatn.h: Likewise.
24474
24475 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24476
24477 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24478 indicates whether compiler emits an warning for alias for
24479 functions with incompatible types.
24480
24481 [BZ #22273]
24482 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24483 the auxiliary process is terminated by a signal before calling _exit
24484 or execve.
24485
24486 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24487
24488 [BZ #21265]
24489 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24490 New.
24491 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24492 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24493 and bit_arch_XSAVEC_Usable if needed.
24494 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24495 and bit_arch_Use_dl_runtime_resolve_opt.
24496 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24497 Removed.
24498 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24499 (bit_arch_Prefer_No_AVX512): Updated.
24500 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24501 (bit_arch_XSAVEC_Usable): New.
24502 (STATE_SAVE_OFFSET): Likewise.
24503 (STATE_SAVE_MASK): Likewise.
24504 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24505 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24506 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24507 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24508 (index_arch_XSAVEC_Usable): New.
24509 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24510 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24511 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24512 is enabled.
24513 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24514 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24515 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24516 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24517 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24518 _dl_runtime_resolve_xsavec.
24519 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24520 Removed.
24521 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24522 instead of VEC_SIZE.
24523 (REGISTER_SAVE_BND0): Removed.
24524 (REGISTER_SAVE_BND1): Likewise.
24525 (REGISTER_SAVE_BND3): Likewise.
24526 (REGISTER_SAVE_RAX): Always defined to 0.
24527 (VMOV): Removed.
24528 (_dl_runtime_resolve_avx): Likewise.
24529 (_dl_runtime_resolve_avx_slow): Likewise.
24530 (_dl_runtime_resolve_avx_opt): Likewise.
24531 (_dl_runtime_resolve_avx512): Likewise.
24532 (_dl_runtime_resolve_avx512_opt): Likewise.
24533 (_dl_runtime_resolve_sse): Likewise.
24534 (_dl_runtime_resolve_sse_vex): Likewise.
24535 (USE_FXSAVE): New.
24536 (_dl_runtime_resolve_fxsave): Likewise.
24537 (USE_XSAVE): Likewise.
24538 (_dl_runtime_resolve_xsave): Likewise.
24539 (USE_XSAVEC): Likewise.
24540 (_dl_runtime_resolve_xsavec): Likewise.
24541 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24542 Removed.
24543 (_dl_runtime_resolve_avx512_opt): Likewise.
24544 (_dl_runtime_resolve_avx): Likewise.
24545 (_dl_runtime_resolve_avx_opt): Likewise.
24546 (_dl_runtime_resolve_sse): Likewise.
24547 (_dl_runtime_resolve_sse_vex): Likewise.
24548 (_dl_runtime_resolve_fxsave): New.
24549 (_dl_runtime_resolve_xsave): Likewise.
24550 (_dl_runtime_resolve_xsavec): Likewise.
24551
24552 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24553
24554 [BZ #22320]
24555 CVE-2017-15670
24556 * posix/glob.c (__glob): Fix one-byte overflow.
24557
24558 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24559
24560 * malloc/malloc.c (sysdep-cancel.h): Add include.
24561
24562 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24563
24564 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24565
24566 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24567
24568 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24569 (tests): Remove $(objpfx)ga_test depdendency.
24570 * resolv/ga_test.c: Remove file.
24571
24572 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24573
24574 [BZ #18812]
24575 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24576 * localedata/locales/kab_DZ: New file.
24577
24578 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24579
24580 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24581 _dl_relocate_static_pie instead of _dl_start to compute load
24582 address in static PIE.
24583
24584 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24585
24586 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24587
24588 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24589
24590 [BZ #13605]
24591 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24592 * localedata/locales/shn_MM: New file.
24593
24594 2017-10-20 Florian Weimer <fweimer@redhat.com>
24595
24596 [BZ #22321]
24597 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24598 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24599 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24600 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24601 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24602 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24603
24604 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24605
24606 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24607
24608 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24609
24610 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24611
24612 [BZ #22322]
24613 * sysdeps/mips/bits/long-double.h: Move to ....
24614 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24615
24616 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24617
24618 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24619
24620 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24621 H.J. Lu <hongjiu.lu@intel.com>
24622
24623 [BZ #22299]
24624 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24625 GLRO(dl_platform) to NULL.
24626 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24627 (modules-names): Add tst-platformmod-1 and
24628 x86_64/tst-platformmod-2.
24629 (CFLAGS-tst-platform-1.c): New.
24630 (CFLAGS-tst-platformmod-1.c): Likewise.
24631 (CFLAGS-tst-platformmod-2.c): Likewise.
24632 (LDFLAGS-tst-platformmod-2.so): Likewise.
24633 ($(objpfx)tst-platform-1): Likewise.
24634 ($(objpfx)tst-platform-1.out): Likewise.
24635 (tst-platform-1-ENV): Likewise.
24636 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24637 * sysdeps/x86_64/tst-platform-1.c: New file.
24638 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24639 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24640
24641 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24642
24643 [BZ #13994]
24644 * locale/iso-639.def: Add Karbi.
24645 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24646 * localedata/locales/mjw_IN: New file.
24647
24648 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24649
24650 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24651 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24652 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24653 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24654 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24655 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24656 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24657 <bits/floatn.h>.
24658 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24659 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24660 * manual/math.texi (Mathematics): Document additional architecture
24661 support for _Float128.
24662 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24663 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24664 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24665 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24666 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24667 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24668 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24669 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24670 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24671 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24672 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24673 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24674 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24675 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24676 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24677
24678 2017-10-18 Renlin Li <renlin.li@arm.com>
24679
24680 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24681 _DYNAMIC symbol to calculate load address.
24682
24683 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24684
24685 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24686 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24687 summary bits.
24688 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24689 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24690
24691 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24692
24693 [BZ #16777]
24694 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24695 and improve readability by using more ASCII.
24696 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24697 and improve readability by using more ASCII.
24698
24699 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24700
24701 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24702 not all targets support atomics on bool.
24703
24704 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24705
24706 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24707 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24708 __f128.
24709 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24710 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24711 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24712 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24713 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24714 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24715
24716 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24717
24718 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24719 defines.
24720
24721 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24722
24723 [BZ #22159]
24724 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24725 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24726 (do_check_remalloced_chunk): Fix build bug.
24727 (do_check_malloc_state): Add assert that checks arena->top.
24728 (malloc_consolidate): Remove initialization.
24729 (int_mallinfo): Remove call to malloc_consolidate.
24730 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24731
24732 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24733
24734 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24735 (have_fastchunks): Remove.
24736 (clear_fastchunks): Remove.
24737 (set_fastchunks): Remove.
24738 (malloc_state): Add have_fastchunks.
24739 (malloc_init_state): Use have_fastchunks.
24740 (do_check_malloc_state): Remove incorrect invariant checks.
24741 (_int_malloc): Use have_fastchunks.
24742 (_int_free): Likewise.
24743 (malloc_consolidate): Likewise.
24744
24745 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24746
24747 * malloc/malloc.c (tcache_put): Inline.
24748 (tcache_get): Inline.
24749
24750 2017-10-17 Jordi Mallach <jordi@gnu.org>
24751
24752 Aurelien Jarno <aurelien@aurel32.net>
24753 [BZ #2522]
24754 * localedata/locales/ca_ES@valencia: New file.
24755 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24756
24757 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24758
24759 [BZ #22296]
24760 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24761 < 6.x
24762
24763 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24764
24765 * scripts/build-many-glibcs.py (Context.add_all_configs):
24766 Add arm-linux-gnueabihf multiarch extra_glibcs.
24767
24768 * sysdeps/generic/ifunc-init.h: New file.
24769 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24770
24771 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24772
24773 [BZ #22019]
24774 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24775 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24776 * stdlib/tst-strfmon_l.c: adapt test case.
24777
24778 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24779
24780 * sysdeps/generic/float128-abi.h: New file.
24781 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24782 non-__prefixed symbols to ....
24783 * math/Versions: ... here. Include <float128-abi.h>.
24784 * stdlib/Versions ... and here. Include <float128-abi.h>
24785
24786 2017-10-16 Florian Weimer <fweimer@redhat.com>
24787
24788 * version.h (VERSION): Switch to ".9000" as the development
24789 version suffix.
24790
24791 2017-10-16 Florian Weimer <fweimer@redhat.com>
24792
24793 [BZ #22050]
24794 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24795 compat_symbol_reference to access non-default version.
24796
24797 2017-10-16 Florian Weimer <fweimer@redhat.com>
24798
24799 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24800
24801 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24802
24803 * include/shlib-compat.h (compat_symbol_reference): Update
24804 comment.
24805
24806 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24807
24808 * math/Makefile (test-types): Add
24809 $(type-float128-$(float128-alias-fcts)).
24810 * math/test-float128.h (TYPE_STR): Define conditional on
24811 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24812 (ULP_IDX): Likewise.
24813 (ULP_I_IDX): Likewise.
24814
24815 * stdlib/strtold.c: Include <bits/floatn.h>
24816 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24817 and later undefine as macro. Define as weak alias if
24818 [!USE_WIDE_CHAR].
24819 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24820 and later undefine as macro. Define as weak alias if
24821 [USE_WIDE_CHAR].
24822 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24823 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24824 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24825 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24826 Define and later undefine as macro. Define as weak alias if
24827 [USE_WIDE_CHAR].
24828 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24829 <bits/floatn.h>.
24830 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24831 Define and later undefine as macro. Define as weak alias if
24832 [!USE_WIDE_CHAR].
24833 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24834 Define and later undefine as macro. Define as weak alias if
24835 [USE_WIDE_CHAR].
24836
24837 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24838
24839 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24840 record_verbose messages.
24841
24842 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24843
24844 [BZ #22052]
24845 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24846 to silence -O3 -Wall warning with GCC 7.
24847
24848 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24849
24850 * Makeconfig (+link-static-before-libc): Use the first of
24851 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24852 * gmon/Makefile (tests): Add tst-gmon-static.
24853 (tests-static): Likewise.
24854 (CFLAGS-tst-gmon-static.c): New.
24855 (CRT-tst-gmon-static): Likewise.
24856 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24857 (tst-gmon-static-ENV): Likewise.
24858 (tests-special): Likewise.
24859 ($(objpfx)tst-gmon-static.out): Likewise.
24860 (clean-tst-gmon-static-data): Likewise.
24861 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24862 * gmon/tst-gmon-static-gprof.sh: New file.
24863 * gmon/tst-gmon-static.c: Likewise.
24864
24865 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24866
24867 [BZ #22295]
24868 * locale/programs/linereader.c (get_string): Don't warn on
24869 non-symbolic character.
24870
24871 [BZ #22294]
24872 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24873 int_curr_symbol.
24874
24875 [BZ #22292]
24876 * locale/programs/record-status.h: New file
24877 * locale/programs/locale.c: Add comment.
24878 * locale/programs/charmap-dir.c: Don't include error.h.
24879 (charmap_opendir): Use record_error.
24880 * locale/programs/charmap.c: Don't include error.h.
24881 (charmap_read): Use record_error, and record_warning.
24882 (parse_charmap): Likewise.
24883 * locale/programs/ld-address.c: Don't include error.h.
24884 (address_finish): Use record_error, and record_warning.
24885 * locale/programs/ld-collate.c: Don't include error.h.
24886 (collate_finish): Use record_error, and record_error_at_line.
24887 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24888 (ctype_class_new): Likewise.
24889 (ctype_map_new): Likewise.
24890 (set_one_default): Likewise.
24891 (set_class_defaults): Likewise.
24892 (translit_flatten): Likewise.
24893 (allocate_arrays): Use record_error, and record_verbose.
24894 * locale/programs/ld-identification.c: Don't include error.h.
24895 (indentation_finish): Use record_error and record_warning.
24896 * locale/programs/ld-measurement.c: Don't include error.h.
24897 (measurement_finish): Use record_error.
24898 * locale/programs/ld-messages.c
24899 (message_finish): Likewise.
24900 * locale/programs/ld-monetary.c
24901 (monetary_finish): Likewise.
24902 * locale/programs/ld-name.c (name_finish): Use record_error
24903 and record_warning.
24904 * locale/programs/ld-numeric.c
24905 (numeric_finish): Use record_error.
24906 * locale/programs/ld-paper.c: Don't include error.h.
24907 (paper_finish): Use record_error.
24908 * locale/programs/ld-telephone.c: Don't include error.h.
24909 (telephone_finish): Use record_error.
24910 * locale/programs/ld-time.c (time_finish): Likewise.
24911 * locale/programs/linereader.h (lr_error): Make inline func.
24912 * locale/programs/localedef.c: Define recorded_warning_count,
24913 and recorded_error_count.
24914 (main): Use record_error. Use recorded_error_count and
24915 recorded_warning_count to issue correct error returns.
24916 (add_to_readlist): Use record_error.
24917 (find_locale): Likewise.
24918 (load_locale): Likewise.
24919 * locale/programs/localedef.h: Remove be_quiet
24920 and WITH_CUR_LOCALE.
24921 * locale/programs/locarchive.c (compare_from_file): Use
24922 record_error.
24923 * locale/programs/locfile.c (write_locale_data): Use
24924 record_error.
24925 * locale/programs/repertoire.c: Dont include error.h.
24926 (repertoire_complain): Use record_error.
24927 * localedata/tst-fmon.sh: Expect failures from localedef.
24928 * localedata/tst-locale.sh: Likewise.
24929 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24930
24931 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24932 (REPORTS): Likewise.
24933 (check): Likewise.
24934 (i18n): Rename to...
24935 (i18n_ctype): ...this.
24936 (i18n-report): Rename to...
24937 (i18n_ctype-report): ...this.
24938 * localedata/locales/i18n_ctype: Regenerate.
24939 * localedata/locales/i18n: copy i18n_ctype.
24940
24941 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24942
24943 * stdlib/strfroml.c: Include <bits/floatn.h>.
24944 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24945 Define before include of <stdlib.h> and undefine afterwards, then
24946 define as weak alias.
24947
24948 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24949 Undefine and restore default definition. Use
24950 libm_alias_ldouble_other.
24951
24952 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24953
24954 [BZ #22153]
24955 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24956 in coredumps.
24957
24958 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24959
24960 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24961 Assign sym_map to be map for local symbols, as TLS relocations
24962 use sym_map to determine whether the symbol is defined and to
24963 extract the TLS information.
24964 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24965 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24966
24967 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24968
24969 [BZ #22189]
24970 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24971 (math_force_eval): Add powerpc version.
24972
24973 [BZ #22142]
24974 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24975 -DBL_MAX.
24976 (do_test): Likewise.
24977 * stdio-common/tst-printf.sh: Likewise.
24978 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24979 ifdef clause in order to set the carry bit right. Replace r0 by
24980 0 without changing the behavior.
24981
24982 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24983
24984 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24985 <libm-alias-ldouble.h>.
24986 (fabsl): Define using libm_alias_ldouble.
24987 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24988 <libm-alias-ldouble.h>.
24989 (fabsl): Define using libm_alias_ldouble.
24990
24991 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24992 Remove conditional code.
24993
24994 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24995 Rename to __clog10_internal_l.
24996 (__clog10_internal_l): Define aliases using
24997 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24998 with __clog10.
24999
25000 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25001
25002 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25003 * benchtests/sincosf-inputs: New file.
25004 * benchtests/cosf-inputs: New file.
25005 * benchtests/sinf-inputs: New file.
25006
25007 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25008
25009 * posix/tst-spawn.c (do_test): Wait for both children.
25010
25011 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25012
25013 [BZ #22284]
25014 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25015 tests-pie): Add tst-gmon-pie.
25016 (CFLAGS-tst-gmon-pie.c): New.
25017 (CRT-tst-gmon-pie): Likewise.
25018 (tst-gmon-pie-ENV): Likewise.
25019 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25020 ($(objpfx)tst-gmon-pie.out): Likewise.
25021 (clean-tst-gmon-pie-data): Likewise.
25022 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25023 * gmon/gmon.c [PIC]: Include <link.h>.
25024 [PIC] (callback): New function.
25025 (write_hist): Add an argument for load address. Subtract load
25026 address from PCs.
25027 (write_call_graph): Likewise.
25028 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25029 it to write_hist and write_call_graph.
25030 * gmon/tst-gmon-pie.c: New file.
25031
25032 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25033
25034 * math/Makefile (test-types-basic): New variable.
25035 (test-types): Likewise.
25036 (libm-test-support): Use $(test-types) instead of $(types).
25037 (libm-tests-base-normal): Likewise.
25038 (libm-tests-base-finite): Likewise.
25039 (libm-tests-base-inline): Likewise.
25040 (generated): Likewise.
25041 ($(objpfx)libm-test-support-$(t).c): Likewise.
25042 (libm-tests-for-type iterator): Likewise.
25043 (libm-test-support iterator): Likewise.
25044 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25045 (ulp_idx): Use ULP_IDX.
25046 * math/test-ldouble.h: Include <float.h>.
25047 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25048 (ULP_IDX): New macro.
25049 (ULP_I_IDX): Likewise.
25050 * math/test-double.h (ULP_IDX): Likewise.
25051 (ULP_I_IDX): Likewise.
25052 * math/test-float.h (ULP_IDX): Likewise.
25053 (ULP_I_IDX): Likewise.
25054 * math/test-float128.h (ULP_IDX): Likewise.
25055 (ULP_I_IDX): Likewise.
25056
25057 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25058
25059 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25060 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25061 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25062 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25063 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25064 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25065 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25066 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25067 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25068 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25069 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25070 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25071 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25072 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25073 (SINGLE_THREAD_BY_GLOBAL): Define.
25074 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25075 Likewise.
25076 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25077 Likewise.
25078 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25079 Likewise.
25080 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25081 Likewise.
25082 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25083 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25084 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25085 Likewise.
25086
25087 2017-10-11 Andreas Schwab <schwab@suse.de>
25088
25089 * nis/Makefile (aux): Remove.
25090 * nscd/Makefile (aux): Add nscd_hash.
25091 (nscd-modules): Likewise.
25092 ($(objpfx)nscd): Don't depend on libnsl.
25093 * nscd/nscd_hash.c: New file.
25094 * nscd/nscd_hash.h: Likewise.
25095 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25096 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25097 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25098 instead of <nis/rpcsvc/nis.h>.
25099 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25100
25101 2017-10-11 Florian Weimer <fweimer@redhat.com>
25102
25103 [BZ #22078]
25104 Avoid large NSS buffers with many addresses, aliases.
25105 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25106 using dynarrays and struct alloc_buffer.
25107 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25108 (tst-nss-files-hosts-multi): Link with -ldl.
25109 * nss/tst-nss-files-hosts-multi.c: New file.
25110
25111 2017-10-11 Florian Weimer <fweimer@redhat.com>
25112
25113 [BZ #18023]
25114 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25115 scratch_buffer. Eliminate gotos.
25116
25117 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25118
25119 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25120 libm_alias_ldouble_other.
25121 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25122 undefine and redefine.
25123 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25124 (exp10l): Do not define here.
25125 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25126 (weak_alias): Undefine and redefine.
25127 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25128 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25129 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25130 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25131
25132 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25133 [!__fma] (fma): Define using libm_alias_double.
25134 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25135 [!__fmaf] (fmaf): Define using libm_alias_float.
25136 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25137 (fmal): Define using libm_alias_ldouble.
25138
25139 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25140
25141 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25142 New macro.
25143 (libm_alias_double_other): Likewise.
25144 (libm_alias_double_r): Use libm_alias_double_other_r.
25145 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25146 New macro.
25147 (libm_alias_float_other): Likewise.
25148 (libm_alias_float_r): Use libm_alias_float_other_r.
25149 * sysdeps/generic/libm-alias-float128.h
25150 (libm_alias_float128_other_r): New macro.
25151 (libm_alias_float128_other): Likewise.
25152 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25153 * sysdeps/generic/libm-alias-ldouble.h
25154 (libm_alias_ldouble_other_r): New macro.
25155 (libm_alias_ldouble_other): Likewise.
25156 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25157 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25158 (libm_alias_double_other_r): New macro.
25159 (libm_alias_double_other): Likewise.
25160 (libm_alias_double_r): Use libm_alias_double_other_r.
25161 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25162 (libm_alias_ldouble_other_r): New macro.
25163 (libm_alias_ldouble_other): Likewise.
25164 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25165 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25166 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25167 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25168 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25169 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25170 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25171 * math/w_exp2f.c: Use libm_alias_float_other.
25172 * math/w_expf.c: Likewise.
25173 * math/w_log2f.c: Likewise.
25174 * math/w_logf.c: Likewise.
25175 * math/w_powf.c: Likewise.
25176 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25177 [!__exp2f]: Use libm_alias_float_other.
25178 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25179 [!__expf]: Use libm_alias_float_other.
25180 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25181 [!__log2f]: Use libm_alias_float_other.
25182 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25183 [!__logf]: Use libm_alias_float_other.
25184 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25185 [!__powf]: Use libm_alias_float_other.
25186
25187 2017-10-10 Florian Weimer <fweimer@redhat.com>
25188
25189 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25190 function.
25191 (_nss_files_gethostbyname3_r): Call it.
25192
25193 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25194
25195 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25196 error. Remove default definition of declare_mgen_alias.
25197 [!declare_mgen_alias_r]: Likewise.
25198 * sysdeps/generic/math-type-macros-double.h
25199 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25200 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25201 (declare_mgen_alias_r): Likewise.
25202 * sysdeps/generic/math-type-macros-float128.h
25203 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25204 * sysdeps/generic/math-type-macros-ldouble.h
25205 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25206 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25207 macro.
25208 (declare_mgen_alias_r_s): Likewise.
25209 (declare_mgen_alias_r): Likewise.
25210 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25211 (lgamma_r): Define using libm_alias_double_r.
25212 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25213 (lgammaf_r): Define using libm_alias_float_r.
25214 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25215 (lgammal_r): Define using libm_alias_ldouble_r.
25216 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25217 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25218
25219 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25220
25221 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25222 extern declaration.
25223
25224 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25225
25226 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25227
25228 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25229
25230 [BZ #21326]
25231 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25232 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25233 * math/Makefile (test-math-cxx11): New test.
25234 * math/test-math-cxx11.cc: New file.
25235
25236 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25237
25238 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25239
25240 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25241 call to allocate the slave pty file descriptor.
25242
25243 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25244
25245 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25246 [!__fma] (fma): Define using libm_alias_double.
25247 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25248 [!__fma] (fma): Define using libm_alias_double.
25249
25250 * sysdeps/ieee754/float128/float128_private.h: Include
25251 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25252 (libm_alias_ldouble_r): Undefine and redefine.
25253 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25254 <libm-alias-ldouble.h>.
25255 (asinhl): Define using libm_alias_ldouble.
25256 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25257 <libm-alias-ldouble.h>.
25258 (atanl): Define using libm_alias_ldouble.
25259 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25260 <libm-alias-ldouble.h>.
25261 (cbrtl): Define using libm_alias_ldouble.
25262 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25263 <libm-alias-ldouble.h>.
25264 (ceill): Define using libm_alias_ldouble.
25265 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25266 <libm-alias-ldouble.h>.
25267 (copysignl): Define using libm_alias_ldouble.
25268 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25269 <libm-alias-ldouble.h>.
25270 (cosl): Define using libm_alias_ldouble.
25271 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25272 <libm-alias-ldouble.h>.
25273 (erfl): Define using libm_alias_ldouble.
25274 (erfcl): Likewise.
25275 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25276 <libm-alias-ldouble.h>.
25277 (expm1l): Define using libm_alias_ldouble.
25278 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25279 <libm-alias-ldouble.h>.
25280 (fabsl): Define using libm_alias_ldouble.
25281 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25282 <libm-alias-ldouble.h>.
25283 (floorl): Define using libm_alias_ldouble.
25284 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25285 <libm-alias-ldouble.h>.
25286 (fmal): Define using libm_alias_ldouble.
25287 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25288 <libm-alias-ldouble.h>.
25289 (frexpl): Define using libm_alias_ldouble.
25290 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25291 libm_alias_ldouble.
25292 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25293 <libm-alias-ldouble.h>.
25294 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25295 libm_alias_ldouble.
25296 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25297 <libm-alias-ldouble.h>.
25298 (getpayloadl): Define using libm_alias_ldouble.
25299 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25300 <libm-alias-ldouble.h>.
25301 (llrintl): Define using libm_alias_ldouble.
25302 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25303 <libm-alias-ldouble.h>.
25304 (llroundl): Define using libm_alias_ldouble.
25305 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25306 <libm-alias-ldouble.h>.
25307 (logbl): Define using libm_alias_ldouble.
25308 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25309 <libm-alias-ldouble.h>.
25310 (lrintl): Define using libm_alias_ldouble.
25311 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25312 <libm-alias-ldouble.h>.
25313 (lroundl): Define using libm_alias_ldouble.
25314 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25315 <libm-alias-ldouble.h>.
25316 (modfl): Define using libm_alias_ldouble.
25317 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25318 <libm-alias-ldouble.h>.
25319 (nearbyintl): Define using libm_alias_ldouble.
25320 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25321 <libm-alias-ldouble.h>.
25322 (nextafterl): Define using libm_alias_ldouble.
25323 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25324 <libm-alias-ldouble.h>.
25325 (nextupl): Define using libm_alias_ldouble.
25326 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25327 <libm-alias-ldouble.h>.
25328 (remquol): Define using libm_alias_ldouble.
25329 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25330 <libm-alias-ldouble.h>.
25331 (rintl): Define using libm_alias_ldouble.
25332 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25333 <libm-alias-ldouble.h>.
25334 (roundevenl): Define using libm_alias_ldouble.
25335 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25336 <libm-alias-ldouble.h>.
25337 (roundl): Define using libm_alias_ldouble.
25338 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25339 using libm_alias_ldouble.
25340 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25341 <libm-alias-ldouble.h>.
25342 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25343 Define using libm_alias_ldouble.
25344 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25345 <libm-alias-ldouble.h>.
25346 (sincosl): Define using libm_alias_ldouble.
25347 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25348 <libm-alias-ldouble.h>.
25349 (sinl): Define using libm_alias_ldouble.
25350 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25351 <libm-alias-ldouble.h>.
25352 (tanhl): Define using libm_alias_ldouble.
25353 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25354 <libm-alias-ldouble.h>.
25355 (tanl): Define using libm_alias_ldouble.
25356 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25357 <libm-alias-ldouble.h>.
25358 (totalorderl): Define using libm_alias_ldouble.
25359 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25360 <libm-alias-ldouble.h>.
25361 (totalordermagl): Define using libm_alias_ldouble.
25362 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25363 <libm-alias-ldouble.h>.
25364 (truncl): Define using libm_alias_ldouble.
25365 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25366 libm_alias_ldouble.
25367 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25368 libm_alias_ldouble.
25369 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25370 <libm-alias-ldouble.h>.
25371 (weak_alias): Do not undefine and redefine.
25372 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25373 (copysignl): Define with long_double_symbol only if [IS_IN
25374 (libc)].
25375 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25376 <libm-alias-ldouble.h>.
25377 (weak_alias): Do not undefine and redefine.
25378 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25379 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25380 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25381 <libm-alias-ldouble.h>.
25382 (weak_alias): Do not undefine and redefine.
25383 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25384 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25385 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25386 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25387 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25388 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25389 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25390 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25391 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25392 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25393 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25394 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25395 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25396 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25397 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25398 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25399 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25400 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25401 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25402 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25403 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25404 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25405 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25406 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25407 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25408 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25409
25410 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25411
25412 [BZ #22111]
25413 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25414 (tcache_thread_freeres): Set tcache_shutting_down before
25415 freeing the tcache.
25416 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25417 * malloc/tst-malloc-tcache-leak.c: New file.
25418
25419 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25420
25421 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25422 back to powerpc32 file.
25423 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25424 (memrchr): Add __memrchr_power8 to ifunc list.
25425 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25426 extra bytes for unaligned inputs.
25427
25428 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25429
25430 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25431 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25432 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25433 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25434 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25435
25436 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25437
25438 * sysdeps/arm/libm-test-ulps: Update.
25439
25440 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25441 <libm-alias-ldouble.h>.
25442 (asinhl): Define using libm_alias_ldouble.
25443 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25444 <libm-alias-ldouble.h>.
25445 (cbrtl): Define using libm_alias_ldouble.
25446 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25447 <libm-alias-ldouble.h>.
25448 (copysignl): Define using libm_alias_ldouble.
25449 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25450 <libm-alias-ldouble.h>.
25451 (cosl): Define using libm_alias_ldouble.
25452 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25453 <libm-alias-ldouble.h>.
25454 (erfl): Define using libm_alias_ldouble.
25455 (erfcl): Likewise.
25456 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25457 <libm-alias-ldouble.h>.
25458 (fmal): Define using libm_alias_ldouble.
25459 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25460 <libm-alias-ldouble.h>.
25461 (frexpl): Define using libm_alias_ldouble.
25462 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25463 libm_alias_ldouble.
25464 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25465 <libm-alias-ldouble.h>.
25466 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25467 libm_alias_ldouble.
25468 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25469 <libm-alias-ldouble.h>.
25470 (getpayloadl): Define using libm_alias_ldouble.
25471 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25472 <libm-alias-ldouble.h>.
25473 (llrintl): Define using libm_alias_ldouble.
25474 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25475 <libm-alias-ldouble.h>.
25476 (llroundl): Define using libm_alias_ldouble.
25477 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25478 <libm-alias-ldouble.h>.
25479 (lrintl): Define using libm_alias_ldouble.
25480 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25481 <libm-alias-ldouble.h>.
25482 (lroundl): Define using libm_alias_ldouble.
25483 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25484 <libm-alias-ldouble.h>.
25485 (modfl): Define using libm_alias_ldouble.
25486 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25487 <libm-alias-ldouble.h>.
25488 (nextupl): Define using libm_alias_ldouble.
25489 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25490 <libm-alias-ldouble.h>.
25491 (remquol): Define using libm_alias_ldouble.
25492 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25493 <libm-alias-ldouble.h>.
25494 (roundevenl): Define using libm_alias_ldouble.
25495 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25496 <libm-alias-ldouble.h>.
25497 (roundl): Define using libm_alias_ldouble.
25498 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25499 using libm_alias_ldouble.
25500 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25501 <libm-alias-ldouble.h>.
25502 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25503 <libm-alias-ldouble.h>.
25504 (setpayloadsigl): Define using libm_alias_ldouble.
25505 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25506 <libm-alias-ldouble.h>.
25507 (sincosl): Define using libm_alias_ldouble.
25508 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25509 <libm-alias-ldouble.h>.
25510 (sinl): Define using libm_alias_ldouble.
25511 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25512 <libm-alias-ldouble.h>.
25513 (tanhl): Define using libm_alias_ldouble.
25514 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25515 <libm-alias-ldouble.h>.
25516 (tanl): Define using libm_alias_ldouble.
25517 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25518 <libm-alias-ldouble.h>.
25519 (totalorderl): Define using libm_alias_ldouble.
25520 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25521 <libm-alias-ldouble.h>.
25522 (totalordermagl): Define using libm_alias_ldouble.
25523 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25524 libm_alias_ldouble.
25525 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25526 libm_alias_ldouble.
25527
25528 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25529
25530 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25531 memmove_falkor.
25532 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25533 (__libc_ifunc_impl_list): Likewise.
25534 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25535 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25536
25537 * benchtests/bench-memmove-walk.c: New file.
25538 * benchtests/Makefile (string-benchset): Add it.
25539
25540 * benchtests/bench-memset-walk.c: New file.
25541 * benchtests/Makefile (string-benchset): Add it.
25542
25543 * benchtests/bench-memcpy-walk.c: New file.
25544 * benchtests/Makefile (string-benchset): Add it.
25545
25546 2017-10-05 Florian Weimer <fweimer@redhat.com>
25547
25548 nscd: Eliminate compilation time dependency in the build output.
25549 * nscd/nscd_stat.c (STATDATA_VERSION)
25550 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25551 (STATDATA_VERSION_FULL): New macro definitions.
25552 (compilation): Remove.
25553 (struct statdata): Adjust version member.
25554 (send_stats): Set version from STATDATA_VERSION_FULL.
25555 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25556
25557 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25558
25559 * configure.ac (--enable-add-ons): Remove option.
25560 (machine): Do not mention add-ons in comment.
25561 (LIBC_PRECONFIGURE): Likewise.
25562 (add_ons): Remove variable and sanity checks and logic to locate
25563 add-ons.
25564 (add_ons_automatic): Remove variable.
25565 (configured_add_ons): Likewise.
25566 (add_ons_sfx): Likewise.
25567 (add_ons_pfx): Likewise.
25568 (add_on_subdirs): Likewise.
25569 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25570 consideration of add-ons in Implies handling.
25571 (sysdeps_add_ons): Likewise.
25572 * configure: Regenerated.
25573 * libidn/configure.ac: Remove.
25574 * libidn/configure: Likewise.
25575 * sysdeps/unix/inet/configure.ac: New file.
25576 * sysdeps/unix/inet/configure: New generated file.
25577 * sysdeps/unix/inet/Subdirs: Add libidn.
25578 * Makeconfig (sysdeps-srcdirs): Remove variable.
25579 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25580 ($(common-objpfx)config.status): Do not depend on add-on files.
25581 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25582 comment.
25583 (all-subdirs): Do not include $(add-on-subdirs).
25584 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25585 * config.make.in (add-ons): Remove variable.
25586 (add-on-subdirs): Likewise.
25587 (sysdeps-add-ons): Likewise.
25588 * manual/Makefile (add-chapters): Remove.
25589 ($(objpfx)texis): Do not depend on $(add-chapters).
25590 (nonexamples): Do not handle $(add-chapters).
25591 (examples): Do not handle $(add-ons).
25592 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25593 libc-texinfo.sh.
25594 * manual/install.texi (Installation): Do not mention add-ons.
25595 (--enable-add-ons): Do not document configure option.
25596 * INSTALL: Regenerated.
25597 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25598 * manual/maint.texi (Hierarchy Conventions): Do not mention
25599 add-ons.
25600 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25601 --enable-add-ons.
25602 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25603 add-ons.
25604 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25605 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25606
25607 2017-10-05 Andreas Schwab <schwab@suse.de>
25608
25609 [BZ #15142]
25610 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25611 (_IO_flush_all_lockp): Always lock list_all_lock.
25612 (_IO_flush_all_linebuffered): Likewise.
25613 (_IO_unbuffer_all): Likewise.
25614
25615 2017-10-05 Florian Weimer <fweimer@redhat.com>
25616
25617 [BZ #15436]
25618 Do not flush stdio streams on abort.
25619 * stdlib/abort.c (fflush): Remove macro definition.
25620 (abort): Remove stages related to stdio flushing.
25621
25622 2017-10-05 Florian Weimer <fweimer@redhat.com>
25623
25624 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25625
25626 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25627
25628 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25629
25630 2017-10-05 Florian Weimer <fweimer@redhat.com>
25631
25632 * support/support_format_hostent.c (support_format_hostent): Add
25633 more error information for NETDB_INTERNAL.
25634
25635 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25636
25637 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25638 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25639 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25640 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25641 AC_DEFINE if multi-arch is enabled.
25642 * sysdeps/i386/configure: Regenerated.
25643
25644 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25645
25646 * Makeconfig (+link-static-before-libc): Use
25647 $(DEFAULT-LDFLAGS-$(@F)).
25648 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25649 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25650 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25651
25652 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 * elf/Makefile (tests): Add tst-main1.
25655 (modules-names): Add tst-main1mod.
25656 ($(objpfx)tst-main1): New.
25657 (CRT-tst-main1): Likewise.
25658 (LDFLAGS-tst-main1): Likewise.
25659 (LDLIBS-tst-main1): Likewise.
25660 (tst-main1mod.so-no-z-defs): Likewise.
25661 * elf/tst-main1.c: New file.
25662 * elf/tst-main1mod.c: Likewise.
25663
25664 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25667
25668 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25669
25670 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25671 (fma): Define using libm_alias_double.
25672 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25673 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25674 <math_ldbl_opt.h>.
25675 (fmal): Do not define as compat symbol here.
25676 * sysdeps/alpha/fpu/s_fma.c: New file.
25677
25678 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25679
25680 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25681
25682 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25683
25684 [BZ #22229]
25685 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25686 <math_ldbl_opt.h>
25687 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25688 and libc.
25689 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25690 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25691 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25692 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25693 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25694 Include <math_ldbl_opt.h>
25695 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25696 and libc.
25697 (compat_symbol): Undefine and redefine.
25698 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25699 <math_ldbl_opt.h>
25700 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25701 (compat_symbol): Undefine and redefine.
25702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25703 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25704 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25705 GLIBC_2_1 for libm.
25706 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25707 GLIBC_2.0 copysignl symbol.
25708 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25709 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25710
25711 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25712
25713 2017-10-04 Florian Weimer <fweimer@redhat.com>
25714
25715 * scripts/check-local-headers.sh: Ignore nspr4 header file
25716 directory in addition to nspr.
25717
25718 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25719
25720 [BZ #17956]
25721 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25722 * configure: Regenerate.
25723 * crypt/Makefile (nss-cpp-flags): New variable.
25724 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25725 (CPPFLAGS-md5-crypt.c): Use it.
25726 * scripts/check-local-headers.sh: Ignore nspr header file
25727 directory.
25728
25729 2017-10-04 Andreas Schwab <schwab@suse.de>
25730
25731 * nis/Makefile (services): Remove compat.
25732 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25733 ($(objpfx)libnss_compat.so): Remove rule.
25734 * nis/Versions (libnss_compat): Remove.
25735 * nss/Makefile (services): Add compat.
25736 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25737 * nss/Versions (libnss_compat): Define.
25738 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25739 Don't include <rpc/types.h>. Replace bool_t by bool.
25740 * nss/nss_compat/compat-initgroups.c: Likewise.
25741 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25742 instead of <rpcsrv/ypclnt.h>.
25743 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25744 yp_get_default_domain.
25745 * nss/nss_compat/compat-pwd.c: Likewise.
25746 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25747 yp_get_default_domain.
25748 * nss/nss_compat/nisdomain.c: New file.
25749 * nss/nss_compat/nisdomain.h: Likewise.
25750
25751 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25752
25753 [BZ #22244]
25754 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25755 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25756
25757 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25758
25759 [BZ #22243]
25760 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25761 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25762
25763 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25764
25765 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25766 "movl main@GOTOFF(%ebx), %eax".
25767
25768 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25769
25770 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25771 allow undefined _DYNAMIC in PIE libc.a.
25772 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25773 Likewse.
25774
25775 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25776
25777 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25778 check _DYNAMIC.
25779
25780 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25781
25782 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25783 check _DYNAMIC.
25784
25785 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25786
25787 * math/test-math-iscanonical.cc (error): Replace bool with int.
25788
25789 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25790
25791 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25792 (modf): Define using libm_alias_double, only if [!__modf].
25793 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25794 <libm-alias-double.h>.
25795 (modf): Define using libm_alias_double, only if [!__modf].
25796 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25797 compat symbol here.
25798 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25799 (weak_alias): Do not undefine and redefine.
25800 (strong_alias): Likewise.
25801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25802 (weak_alias): Likewise.
25803 (strong_alias): Likewise.
25804
25805 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25806 (logb): Define using libm_alias_double, only if [!__logb].
25807 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25808 <libm-alias-double.h>.
25809 (logb): Define using libm_alias_double, only if [!__logb].
25810 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25811 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25812 (weak_alias): Do not undefine and redefine.
25813 (strong_alias): Likewise.
25814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25815 (weak_alias): Likewise.
25816 (strong_alias): Likewise.
25817
25818 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25819
25820 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25821 Check SHARED instead PIC.
25822
25823 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25824
25825 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25826 [!__fmaf] (fmaf): Define using libm_alias_float.
25827
25828 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25829 (frexp): Define using libm_alias_double.
25830 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25831 <libm-alias-double.h>.
25832 (frexp): Define using libm_alias_double.
25833 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25834 compat symbol here.
25835
25836 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25837
25838 [BZ #22235]
25839 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25840 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25841 (CFLAGS-test-math-iscanonical.cc): New variable.
25842 * math/test-math-iscanonical.cc: New file.
25843 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25844 Provide a C++ implementation based on function overloading,
25845 rather than using __MATH_TG, which uses C-only builtins.
25846 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25847 Likewise.
25848 * sysdeps/powerpc/powerpc64le/Makefile
25849 (CFLAGS-test-math-iscanonical.cc): New variable.
25850
25851 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25852
25853 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25854 (ceil): Define using libm_alias_double.
25855 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25856 (floor): Define using libm_alias_double.
25857 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25858 <libm-alias-double.h>.
25859 (llround): Define using libm_alias_double.
25860 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25861 <libm-alias-double.h>.
25862 (lround): Define using libm_alias_double.
25863 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25864 <libm-alias-double.h>.
25865 (nearbyint): Define using libm_alias_double.
25866 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25867 <libm-alias-double.h>.
25868 (remquo): Define using libm_alias_double.
25869 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25870 (rint): Define using libm_alias_double.
25871 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25872 (round): Define using libm_alias_double.
25873 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25874 (trunc): Define using libm_alias_double.
25875 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25876 <libm-alias-double.h>.
25877 (ceil): Define using libm_alias_double.
25878 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25879 <libm-alias-double.h>.
25880 (floor): Define using libm_alias_double.
25881 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25882 <libm-alias-double.h>.
25883 (llround): Define using libm_alias_double.
25884 [_LP64] (lround): Likewise.
25885 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25886 <libm-alias-double.h>.
25887 [!_LP64] (lround): Define using libm_alias_double.
25888 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25889 <libm-alias-double.h>.
25890 (nearbyint): Define using libm_alias_double.
25891 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25892 <libm-alias-double.h>.
25893 (remquo): Define using libm_alias_double.
25894 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25895 <libm-alias-double.h>.
25896 (rint): Define using libm_alias_double.
25897 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25898 <libm-alias-double.h>.
25899 (round): Define using libm_alias_double.
25900 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25901 <libm-alias-double.h>.
25902 (trunc): Define using libm_alias_double.
25903 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25904 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25905 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25906 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25907 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25908 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25909 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25910 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25911 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25912
25913 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25914
25915 * math/w_remainder.c: New file.
25916 * math/w_remainderf.c: New file.
25917 * math/w_remainderl.c: New file.
25918
25919 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 * elf/rtld.c (BOOTSTRAP_MAP): New.
25922 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25923 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25924 Likewise.
25925 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25926 Likewise.
25927 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25928 Likewise.
25929
25930 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25931
25932 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25933 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25934 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25935 rtld_hidden_data_ver): Define to empty.
25936 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25937 __assert_perror_fail): Likewise.
25938 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25939 (__rewinddir): Likewise.
25940 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25941 (__profile_frequency): Likewise.
25942 * include/setjmp.h (__sigsetjmp): Likewise.
25943 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25944 __libc_sigaction): Likewise.
25945 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25946 not set hidden attribute.
25947 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25948 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25949 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25950 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25951 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25952 __fxstatat64): Likewise.
25953 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25954 (__uname): Likewise.
25955 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25956 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25957 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25958 (NO_RTLD_HIDDEN): Set.
25959 * sysdeps/mach/hurd/configure: Refresh.
25960 * config.h.in: Refresh.
25961
25962 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25963
25964 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25965 (atan): Define using libm_alias_double.
25966 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25967 (tan): Define using libm_alias_double.
25968 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25969 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25970
25971 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25972 define as weak alias of __atan. Do not define any aliases if
25973 [__atan].
25974 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25975 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25976 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25977 as weak alias of __tan. Do not define any aliases if [__tan].
25978 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25979 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25980 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25981 __atan.
25982 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25983 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25984 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25985 and define as weak alias of __atan.
25986 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25987 __atan.
25988 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25989 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25990 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25991 define as weak alias of __tan.
25992
25993 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25994
25995 * math/w_lgamma.c: New file.
25996 * math/w_lgammaf.c: New file.
25997 * math/w_lgammal.c: New file.
25998
25999 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26000
26001 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26002 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26003 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26004 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26005 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26006 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26007 * sysdeps/i386/fpu/w_log2f.c: New file.
26008 * sysdeps/i386/fpu/w_logf.c: New file.
26009 * sysdeps/i386/fpu/w_powf.c: New file.
26010 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26011 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26012 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26013
26014 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26015 H.J. Lu <hongjiu.lu@intel.com>
26016
26017 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26018 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26019 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26020 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26021 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26022 the new expf code.
26023 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26024 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26025 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26026 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26027 * sysdeps/i386/fpu/w_exp2f.c: New file.
26028 * sysdeps/i386/fpu/w_expf.c: New file.
26029 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26030 * sysdeps/x86_64/fpu/w_expf.c: New file.
26031
26032 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26033
26034 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26035 (log2f): Likewise.
26036 (powf): Likewise.
26037 * math/w_log2f.c: New file.
26038 * math/w_logf.c: New file.
26039 * math/w_powf.c: New file.
26040 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26041 * math/w_logf_compat.c (__logf_compat): Likewise.
26042 * math/w_powf_compat.c (__powf_compat): Likewise.
26043 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26044 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26045 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26046 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26047 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26048 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26049 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26050 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26051 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26052 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26053 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26054 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26055 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26056 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26057 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26059 Likewise.
26060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26061 Likewise.
26062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26063 Likewise.
26064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26065 Likewise.
26066 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26067 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26068 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26069 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26070 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26071 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26072 Likewise.
26073 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26074 Likewise.
26075 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26076 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26077 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26078
26079 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26080
26081 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26082 (sysdep_routines): Add memrchr_power8.
26083 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26084 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26085 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26086 New file.
26087 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26088 (memrchr): Add __memrchr_power8 to ifunc list.
26089 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26090
26091 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26092
26093 [BZ #18822]
26094 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26095 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26096 libc_hidden_def.
26097 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26098 (__posix_fallocate64_l64): Likewise.
26099
26100 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 [BZ #18822]
26103 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26104 (__sched_setaffinity_new): Add libc_hidden_proto and
26105 libc_hidden_def.
26106
26107 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26108
26109 [BZ #18822]
26110 * include/glob.h (__glob64): Add libc_hidden_proto.
26111 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26112 libc_hidden_def.
26113
26114 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26115
26116 [BZ #18822]
26117 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26118 attribute_hidden.
26119
26120 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26121
26122 [BZ #18822]
26123 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26124
26125 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26126
26127 [BZ #18822]
26128 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26129 libc_hidden_def.
26130
26131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26132
26133 [BZ #18822]
26134 * csu/version.c (__libc_print_version): Add attribute_hidden.
26135
26136 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26137
26138 [BZ #18822]
26139 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26140
26141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26142
26143 [BZ #18822]
26144 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26145
26146 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26147
26148 [BZ #18822]
26149 * nscd/nscd_helper.c (__nis_hash): New prototype.
26150
26151 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26152
26153 [BZ #18822]
26154 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26155 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26156 libc_hidden_def.
26157 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26158 * termios/tcgetattr.c (__tcgetattr): Likewise.
26159
26160 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26161
26162 [BZ #18822]
26163 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26164 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26165 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26166 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26167 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26168
26169 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26170
26171 [BZ #18822]
26172 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26173
26174 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26175
26176 [BZ #18822]
26177 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26178 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26179
26180 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26181
26182 [BZ #18822]
26183 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26184
26185 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26186
26187 [BZ #18822]
26188 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26189 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26190
26191 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26192
26193 [BZ #18822]
26194 * include/ifreq.h: New file.
26195 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26196 (__ifreq): Likewise.
26197 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26198 (__ifreq): Likewise.
26199
26200 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26201
26202 [BZ #18822]
26203 * include/idna.h: New file.
26204 * inet/getnameinfo.c: Include <idna.h> instead of
26205 <libidn/idna.h>.
26206 (__idna_to_unicode_lzlz): Removed.
26207 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26208 <libidn/idna.h>.
26209 (__idna_to_ascii_lz): Removed.
26210 (__idna_to_unicode_lzlz): Likewise.
26211
26212 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26213
26214 [BZ #18822]
26215 * include/plural-exp.h: New file.
26216 * intl/plural-exp.c: Include <plural-exp.h> instead of
26217 "plural-exp.h".
26218
26219 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26220
26221 [BZ #18822]
26222 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26223 "getsourcefilter.h".
26224 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26225 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26226 "getsourcefilter.h".
26227 (__get_sol): Removed.
26228
26229 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26230
26231 [BZ #18822]
26232 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26233 to ...
26234 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26235
26236 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26237
26238 [BZ #18822]
26239 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26240 attribute_hidden.
26241
26242 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26243
26244 [BZ #18822]
26245 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * include/search.h (__tdestroy): Add libc_hidden_proto.
26251 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26252
26253 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26254
26255 [BZ #18822]
26256 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26257
26258 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26259
26260 [BZ #18822]
26261 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26262 attribute_hidden.
26263
26264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26265
26266 [BZ #18822]
26267 * include/signal.h (__kill): Add libc_hidden_proto.
26268 (__sigblock): Likewise.
26269 (__sigprocmask): Likewise.
26270 (__sigaltstack): Likewise.
26271 * signal/kill.c (__kill): Add libc_hidden_def.
26272 * signal/sigblock.c (__sigblock): Likewise.
26273 * signal/sigprocmask.c (__sigprocmask): Likewise.
26274 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26275 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26276 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26277 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26278 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26279 Likewise.
26280 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26281 Likewise.
26282 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26283 (__sigprocmask): Likewise.
26284 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26285 Likewise.
26286 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26287 (__sigprocmask): Likewise.
26288 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26289 Likewise.
26290
26291 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26292
26293 [BZ #18822]
26294 * include/string.h (__strsep): Add libc_hidden_proto.
26295 * string/strsep.c (__strsep): Add libc_hidden_def.
26296
26297 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26298
26299 [BZ #18822]
26300 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26301 attribute_hidden.
26302 (__spawni): Likewise.
26303
26304 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26305
26306 [BZ #18822]
26307 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26308 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26309 libc_hidden_def.
26310
26311 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26312
26313 [BZ #18822]
26314 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26315
26316 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26317
26318 [BZ #18822]
26319 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26320 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26321 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26322 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26323 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26324 Likewise.
26325 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26326 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26327
26328 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26329
26330 [BZ #18822]
26331 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26332 (__dcigettext): Likewise.
26333
26334 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26335
26336 [BZ #18822]
26337 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26338 libc_hidden_proto.
26339 (__get_nprocs): Likewise.
26340 (__get_phys_pages): Likewise.
26341 (__get_avphys_pages): Likewise.
26342 (__get_child_max): Add attribute_hidden.
26343 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26344 (__get_nprocs): Likewise.
26345 (__get_phys_pages): Likewise.
26346 (__get_avphys_pages): Likewise.
26347 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26348 libc_hidden_def.
26349 (__get_nprocs): Likewise.
26350 (__get_phys_pages): Likewise.
26351 (__get_avphys_pages): Likewise.
26352 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26353 libc_hidden_def.
26354 (__get_nprocs_conf): Likewise.
26355 (__get_phys_pages): Likewise.
26356 (__get_avphys_pages): Likewise.
26357
26358 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26359
26360 [BZ #18822]
26361 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26362 attribute_hidden.
26363 (__netlink_close): Likewise.
26364 (__netlink_free_handle): Likewise.
26365 (__netlink_request): Likewise.
26366
26367 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26368
26369 [BZ #18822]
26370 * include/rpc/rpc.h (__rpc_thread_variables): Add
26371 attribute_hidden.
26372 (__rpc_thread_svc_cleanup): Likewise.
26373 (__rpc_thread_clnt_cleanup): Likewise.
26374 (__rpc_thread_key_cleanup): Likewise.
26375
26376 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26377
26378 [BZ #18822]
26379 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26380 (__writev): Likewise.
26381 * misc/readv.c (__readv): Add libc_hidden_def.
26382 * misc/writev.c (__writev): Likewise.
26383 * sysdeps/posix/readv.c (__readv): Likewise.
26384 * sysdeps/posix/writev.c (__writev): Likewise.
26385 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26386 (__readv): Likewise.
26387 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26388 (__writev): Likewise.
26389
26390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26391
26392 [BZ #18822]
26393 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26394 (__regcomp): Add libc_hidden_proto.
26395 (__regexec): Likewise.
26396 (__regfree): Likewise.
26397 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26398 (__regfree): Likewise.
26399 * posix/regexec.c (__regexec): Likewise.
26400
26401 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26402
26403 [BZ #18822]
26404 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26405 (__getutent): Likewise.
26406 (__getutid): Likewise.
26407 (__getutline): Likewise.
26408 (__pututline): Likewise.
26409 (__getutent_r): Likewise.
26410 (__getutid_r): Likewise.
26411 (__getutline_r): Likewise.
26412 (__utmpname): Add attribute_hidden.
26413 (__setutent): Likewise.
26414 (__endutent): Likewise.
26415 * login/getutent.c (__getutent): Add libc_hidden_def.
26416 * login/getutent_r.c (__getutent_r): Likewise.
26417 (__pututline): Likewise.
26418 * login/getutid.c (__getutid): Likewise.
26419 * login/getutid_r.c (__getutid_r): Likewise.
26420 * login/getutline.c (__getutline): Likewise.
26421 * login/getutline_r.c (__getutline_r): Likewise.
26422 * login/updwtmp.c (__updwtmp): Likewise.
26423
26424 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26425
26426 [BZ #18822]
26427 * include/dirent.h (__opendir): Always add attribute_hidden.
26428 (__fdopendir): Likewise.
26429 (__closedir): Likewise.
26430 (__readdir): Likewise.
26431 (__readdir64): Add libc_hidden_proto.
26432 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26433 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26434 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26435 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26436 New alias.
26437
26438 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26439
26440 [BZ #18822]
26441 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26442 * include/netdb.h (__gethostbyaddr_r): Likewise.
26443 (__gethostbyname_r): Likewise.
26444 (__gethostbyname2_r): Likewise.
26445 (__getnetbyaddr_r): Likewise.
26446 (__getnetbyname_r): Likewise.
26447 (__getservbyname_r): Likewise.
26448 (__getservbyport_r): Likewise.
26449 (__getprotobyname_r): Likewise.
26450 (__getprotobynumber_r): Likewise.
26451 (__getnetgrent_r): Likewise.
26452 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26453 (__getrpcbynumber_r): Likewise.
26454 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26455
26456 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26457
26458 [BZ #18822]
26459 * include/stdio.h (__fcloseall): Add attribute_hidden.
26460 (__getline): Likewise.
26461 (__path_search): Likewise.
26462 (__gen_tempname): Likewise.
26463 (__libc_message): Likewise.
26464 (__flockfile): Likewise.
26465 (__funlockfile): Likewise.
26466 (__fxprintf): Likewise.
26467 (__fxprintf_nocancel): Likewise.
26468
26469 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26470
26471 [BZ #18822]
26472 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26473 (__sgetsgent_r): Likewise.
26474
26475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26476
26477 [BZ #18822]
26478 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26479 (__statfs64): Likewise.
26480 (__fstatfs64): Likewise.
26481 * include/sys/statvfs.h (__statvfs64): Likewise.
26482 (__fstatvfs64): Likewise.
26483 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26484 (__statfs_filesize_max): Likewise.
26485 (__statfs_symlinks): Likewise.
26486 (__statfs_chown_restricted): Likewise.
26487
26488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26489
26490 [BZ #18822]
26491 * include/time.h (__tzstring): Add attribute_hidden.
26492 (__tzfile_read): Likewise.
26493 (__tzfile_compute): Likewise.
26494 (__tzfile_default): Likewise.
26495 (__tzset_parse_tz): Likewise.
26496 (__offtime): Likewise.
26497 (__asctime_r): Likewise.
26498 (__tzset): Likewise.
26499 (__tz_convert): Likewise.
26500 (__getdate_r): Likewise.
26501 (__getclktck): Likewise.
26502
26503 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26504
26505 [BZ #18822]
26506 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26507 (__nscd_unmap): Likewise.
26508 (__nscd_cache_search): Likewise.
26509 (__nscd_get_nl_timestamp): Likewise.
26510 (__nscd_getpwnam_r): Likewise.
26511 (__nscd_getpwuid_r): Likewise.
26512 (__nscd_getgrnam_r): Likewise.
26513 (__nscd_getgrgid_r): Likewise.
26514 (__nscd_gethostbyname_r): Likewise.
26515 (__nscd_gethostbyname2_r): Likewise.
26516 (__nscd_gethostbyaddr_r): Likewise.
26517 (__nscd_getai): Likewise.
26518 (__nscd_getgrouplist): Likewise.
26519 (__nscd_getservbyname_r): Likewise.
26520 (__nscd_getservbyport_r): Likewise.
26521 (__nscd_innetgr): Likewise.
26522 (__nscd_setnetgrent): Likewise.
26523
26524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26525
26526 [BZ #18822]
26527 * include/gmp.h: Declare internal functions only if _ISOMAC is
26528 undefined.
26529 (__mpn_extract_double): Add attribute_hidden.
26530 (__mpn_extract_long_double): Likewise.
26531 (__mpn_extract_float128): Likewise.
26532 (__mpn_construct_float): Likewise.
26533 (__mpn_construct_double): Likewise.
26534 (__mpn_construct_long_double): Likewise.
26535 (__mpn_construct_float128): Likewise.
26536 (mpn_add_1): Likewise.
26537 (mpn_addmul_1): Likewise.
26538 (mpn_add_n): Likewise.
26539 (mpn_cmp): Likewise.
26540 (mpn_divrem): Likewise.
26541 (mpn_lshift): Likewise.
26542 (mpn_mul): Likewise.
26543 (mpn_mul_1): Likewise.
26544 (mpn_rshift): Likewise.
26545 (mpn_sub_1): Likewise.
26546 (mpn_submul_1): Likewise.
26547 (mpn_sub_n): Likewise.
26548
26549 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26550
26551 [BZ #18822]
26552 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26553 (__wcscat): Likewise.
26554 (__btowc): Likewise.
26555 (__wcrtomb): Likewise.
26556 (__mbsrtowcs): Likewise.
26557 (__wcsrtombs): Likewise.
26558 (__mbsnrtowcs): Likewise.
26559 (__wcsnrtombs): Likewise.
26560 (__wcsncpy): Likewise.
26561 (__wcpncpy): Likewise.
26562 (__wmemcpy): Likewise.
26563 (__wmempcpy): Likewise.
26564 (__wmemmove): Likewise.
26565 (__wcschrnul): Likewise.
26566 (__vfwscanf): Likewise.
26567 (__vswprintf): Likewise.
26568 (__fwprintf): Likewise.
26569 (__vfwprintf): Likewise.
26570
26571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26572
26573 [BZ #18822]
26574 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26575 (__getgrgid_r): Likewise.
26576 (__getgrnam_r): Likewise.
26577 * include/pwd.h (__getpwuid_r): Likewise.
26578 (__getpwnam_r): Likewise.
26579 (__fgetpwent_r): Likewise.
26580 * include/shadow.h (__getspnam_r): Likewise.
26581 (__sgetspent_r): Likewise.
26582 (__fgetspent_r): Likewise.
26583
26584 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26585
26586 [BZ #18822]
26587 * include/unistd.h (__access): Add attribute_hidden.
26588 (__lseek64): Likewise.
26589 (__libc_pread64): Likewise.
26590 (__pipe2): Likewise.
26591 (__sleep): Likewise.
26592 (__chdir): Likewise.
26593 (__fchdir): Likewise.
26594 (__getcwd): Likewise.
26595 (__rmdir): Likewise.
26596 (__execvpe): Likewise.
26597 (__execve): Likewise.
26598 (__setsid): Likewise.
26599 (__getuid): Likewise.
26600 (__geteuid): Likewise.
26601 (__getgid): Likewise.
26602 (__getegid): Likewise.
26603 (__getgroups): Likewise.
26604 (__group_member): Likewise.
26605 (__ttyname_r): Likewise.
26606 (__isatty): Likewise.
26607 (__readlink): Likewise.
26608 (__unlink): Likewise.
26609 (__gethostname): Likewise.
26610 (__profil): Likewise.
26611 (__getdtablesize): Likewise.
26612 (__brk): Likewise.
26613 (__ftruncate): Likewise.
26614 (__ftruncate64): Likewise.
26615
26616 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26617
26618 [BZ #18822]
26619 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26620 * argp/argp-fs-xinl.c: Likewise.
26621 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26622 * argp/argp-parse.c: Include <argp.h>.
26623 * argp/argp-xinl.c: Likewise.
26624 * include/argp-fmtstream.h: New file.
26625 * include/argp.h (__argp_error): Add attribute_hidden.
26626 (__argp_failure): Likewise.
26627 (__argp_input): Likewise.
26628 (__argp_state_help): Likewise.
26629
26630 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 [BZ #18822]
26633 * include/wchar.h (____wcstof_l_internal): New prototype.
26634 (____wcstod_l_internal): Likewise.
26635 (____wcstold_l_internal): Likewise.
26636 (____wcstol_l_internal): Likewise.
26637 (____wcstoul_l_internal): Likewise.
26638 (____wcstoll_l_internal): Likewise.
26639 (____wcstoull_l_internal): Likewise.
26640 (____wcstof128_l_internal): Likewise.
26641 * sysdeps/ieee754/float128/wcstof128.c
26642 (____wcstof128_l_internal): Removed.
26643 * sysdeps/ieee754/float128/wcstof128_l.c
26644 (____wcstof128_l_internal): Likewise.
26645 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26646 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26647 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26648 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26649 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26650 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26651 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26652 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26653 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26654 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26655
26656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 [BZ #18822]
26659 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26660 instead of <sys/statvfs.h>.
26661 (__internal_statvfs): Removed.
26662 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26663 instead of <sys/statvfs.h>.
26664 (__internal_statvfs64): Removed.
26665 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26666 "internal_statvfs.h" instead of <sys/statvfs.h>.
26667 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26668 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26669 instead of <sys/statvfs.h>.
26670 (__internal_statvfs): Removed.
26671 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26672 instead of <sys/statvfs.h>.
26673 (__internal_statvfs64): Removed.
26674
26675 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26676
26677 [BZ #18822]
26678 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26679 (__gconv_close): Likewise.
26680 (__gconv): Likewise.
26681 (__gconv_find_transform): Likewise.
26682 (__gconv_lookup_cache): Likewise.
26683 (__gconv_compare_alias_cache): Likewise.
26684 (__gconv_load_cache): Likewise.
26685 (__gconv_get_path): Likewise.
26686 (__gconv_close_transform): Likewise.
26687 (__gconv_release_cache): Likewise.
26688 (__gconv_find_shlib): Likewise.
26689 (__gconv_release_shlib): Likewise.
26690 (__gconv_get_builtin_trans): Likewise.
26691 (__gconv_compare_alias): Likewise.
26692 * include/dlfcn.h (_dlerror_run): Likewise.
26693 * include/stdio.h (__fortify_fail_abort): Likewise.
26694 * include/time.h (__tz_compute): Likewise.
26695 (__strptime_internal): Likewise.
26696 * intl/gettextP.h (_nl_find_domain): Likewise.
26697 (_nl_load_domain): Likewise.
26698 (_nl_find_msg): Likewise.
26699 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26700 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26701 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26702 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26703 (__gai_find_request): Likewise.
26704 (__gai_remove_request): Likewise.
26705 (__gai_notify): Likewise.
26706 (__gai_notify_only): Likewise.
26707 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26708 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26709 (_dl_non_dynamic_init): Likewise.
26710 (_dl_aux_init): Likewise.
26711 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26712 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26713 Likewise.
26714 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26715 (__wcsmbs_clone_conv): Likewise.
26716 (__wcsmbs_named_conv): Likewise.
26717
26718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26719
26720 [BZ #18822]
26721 * include/stdlib.h (__random): Add attribute_hidden.
26722 (__random_r): Likewise.
26723 (__srandom_r): Likewise.
26724 (__initstate_r): Likewise.
26725 (__setstate_r): Likewise.
26726 (__erand48_r): Likewise.
26727 (__nrand48_r): Likewise.
26728 (__jrand48_r): Likewise.
26729 (__srand48_r): Likewise.
26730 (__seed48_r): Likewise.
26731 (__lcong48_r): Likewise.
26732 (__drand48_iterate): Likewise.
26733 (__setenv): Likewise.
26734 (__unsetenv): Likewise.
26735 (__clearenv): Likewise.
26736 (__ptsname_r): Likewise.
26737 (__posix_openpt): Likewise.
26738 (__add_to_environ): Likewise.
26739 (__realpath): Add libc_hidden_proto.
26740 (__ecvt_r): Likewise.
26741 (__fcvt_r): Likewise.
26742 (__qecvt_r): Likewise.
26743 (__qfcvt_r): Likewise.
26744 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26745 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26746
26747 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26748
26749 [BZ #18822]
26750 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26751 * include/time.h (__mktime_internal): Likewise.
26752 * libio/iolibio.h (__fopen_internal): Likewise.
26753
26754 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26755
26756 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26757 pointer in frame.
26758 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26759 Correct offset used to restore PIC register.
26760
26761 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26762
26763 [BZ libc/22165]
26764 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26765 code to load address of __getcontext_ret when generating PIC code.
26766
26767 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26768
26769 * elf/Makefile (tests-static-internal): Add
26770 tst-tls1-static-non-pie.
26771 (LDFLAGS-tst-tls1-static-non-pie): New.
26772 * elf/tst-tls1-static-non-pie.c: New file.
26773
26774 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26775
26776 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26777 (asinh): Define using libm_alias_double.
26778 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26779 (cbrt): Define using libm_alias_double.
26780 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26781 <libm-alias-double.h>.
26782 (copysign): Define using libm_alias_double.
26783 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26784 (erf): Define using libm_alias_double.
26785 (erfc): Likewise.
26786 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26787 (expm1): Define using libm_alias_double.
26788 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26789 (fabs): Define using libm_alias_double.
26790 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26791 libm_alias_double.
26792 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26793 <libm-alias-double.h>.
26794 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26795 libm_alias_double.
26796 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26797 <libm-alias-double.h>.
26798 (getpayload): Define using libm_alias_double.
26799 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26800 <libm-alias-double.h>.
26801 (llrint): Define using libm_alias_double.
26802 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26803 (lrint): Define using libm_alias_double.
26804 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26805 <libm-alias-double.h>.
26806 (nextup): Define using libm_alias_double.
26807 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26808 <libm-alias-double.h>.
26809 (roundeven): Define using libm_alias_double.
26810 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26811 libm_alias_double.
26812 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26813 <libm-alias-double.h>.
26814 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26815 using libm_alias_double.
26816 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26817 (cos): Define using libm_alias_double.
26818 (sin): Likewise.
26819 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26820 <libm-alias-double.h>.
26821 (sincos): Define using libm_alias_double.
26822 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26823 (tanh): Define using libm_alias_double.
26824 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26825 <libm-alias-double.h>.
26826 (totalorder): Define using libm_alias_double.
26827 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26828 <libm-alias-double.h>.
26829 (totalordermag): Define using libm_alias_double.
26830 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26831 libm_alias_double.
26832 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26833 libm_alias_double.
26834 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26835 <libm-alias-double.h>.
26836 (getpayload): Define using libm_alias_double.
26837 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26838 <libm-alias-double.h>.
26839 (roundeven): Define using libm_alias_double.
26840 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26841 <libm-alias-double.h>.
26842 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26843 <libm-alias-double.h>.
26844 (totalorder): Define using libm_alias_double.
26845 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26846 <libm-alias-double.h>.
26847 (totalordermag): Define using libm_alias_double.
26848 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26849 libc compat symbol here.
26850 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26851 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26852 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26853 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26854 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26855 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26856 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26857 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26858 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26859 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26860
26861 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26862
26863 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26864 _dl_relocate_static_pie instead of _dl_start to compute load
26865 address in static PIE. Return 0 if _DYNAMIC is undefined for
26866 static executable.
26867
26868 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26869
26870 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26871 _DYNAMIC is undefined for static executable.
26872
26873 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26874
26875 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26876
26877 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26878
26879 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26880
26881 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26882
26883 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26884 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26885 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26886 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26887 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26888 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26889 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26890 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26891 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26892 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26893 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26894 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26895 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26896 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26897 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26898 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26899 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26900
26901 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26902
26903 * math/bits/cmathcalls.h (cimag): Remove inline.
26904 (creal): Remove inline.
26905 (conj): Remove inline.
26906
26907 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26908
26909 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26910 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26911 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26912 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26913 (issignalingf_inline): Likewise.
26914 (POWF_LOG2_TABLE_BITS): Likewise.
26915 (POWF_LOG2_POLY_ORDER): Likewise.
26916 (POWF_SCALE_BITS): Likewise.
26917 (POWF_SCALE): Likewise.
26918 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26919 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26920 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26921
26922 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26923
26924 * math/Makefile (type-float-routines): Add e_log2f_data.
26925 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26926 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26927 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26928 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26929 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26930 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26931 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26932
26933 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26934
26935 * math/Makefile (type-float-routines): Add e_logf_data.
26936 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26937 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26938 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26939 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26940 * sysdeps/i386/fpu/e_logf_data.c: New file.
26941 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26942 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26943
26944 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26945
26946 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26947 undefined _DYNAMIC in PIE libc.a.
26948 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26949 Likewse.
26950
26951 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26952
26953 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26954 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26955 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26956 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26957 (__signbit): Remove.
26958 (__signbitl): Remove.
26959 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26960 (__signbit): Remove.
26961 (__signbitl): Remove.
26962 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26963 (__signbit): Remove.
26964 (__signbitl): Remove.
26965 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26966 (__signbit): Remove.
26967 (__signbitl): Remove.
26968 * sysdeps/tile/bits/mathinline.h: Delete file.
26969 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26970 (__signbit): Remove.
26971 (__signbitl): Remove.
26972
26973 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26974
26975 * math/math.h: Improve handling of C99 isgreater macros.
26976 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26977 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26978 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26979 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26980 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26981
26982 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26983
26984 * sysdeps/aarch64/libm-test-ulps: Update.
26985
26986 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26987
26988 [BZ #22225]
26989 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26990 math_opt_barrier on argument when doing arithmetic on it.
26991 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26992 Likewise. Use math_force_eval not math_opt_barrier after
26993 arithmetic.
26994 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26995 math_opt_barrier on argument when doing arithmetic on it.
26996 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26997 Likewise.
26998
26999 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27000
27001 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27002 libc_hidden_def.
27003 (__freeifaddrs): Likewise.
27004
27005 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27006
27007 * include/dirent.h (__dirfd): New declaration.
27008 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27009 alias.
27010 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27011 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27012 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27013 * include/unistd.h (__revoke): New declaration.
27014 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27015 alias.
27016 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27017 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27018 revoke.
27019 * include/dirent.h (__seekdir): New declaration.
27020 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27021 redefine as weak alias.
27022 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27023 of seekdir.
27024 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27025 and use libc_hidden_def on them.
27026 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27027 them.
27028 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27029 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27030 instead of getifaddrs and freeifaddrs.
27031
27032 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 [BZ #18822]
27035 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27036 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27037 (__dso_handle): Remove declaration.
27038 * dlfcn/tstatexit.c (__dso_handle): Removed.
27039 (main): Don't check __dso_handle.
27040 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27041 (main): Don't check __dso_handle.
27042 * include/dso_handle.h: New file.
27043 * malloc/mtrace.c: Include <dso_handle.h>.
27044 (mtrace): Pass __dso_handle directly.
27045 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27046 (__dso_handle): Remove declaration.
27047 (__pthread_atfork): Pass __dso_handle directly.
27048 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27049 (__dso_handle): Removed.
27050 * posix/wordexp-test.c: Include <dso_handle.h>.
27051 (__dso_handle): Remove declaration.
27052 (__app_register_atfork): Pass __dso_handle directly.
27053 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27054 (__dso_handle): Remove declaration.
27055 (at_quick_exit): Pass __dso_handle directly.
27056 * stdlib/atexit.c: Include <dso_handle.h>.
27057 (__dso_handle): Remove declaration.
27058 (atexit): Pass __dso_handle directly.
27059 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27060 (__dso_handle): Removed.
27061
27062 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27063
27064 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27065 using VDSO.
27066
27067 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27068
27069 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27070 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27071 values to correct default value for given type.
27072
27073 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27074
27075 [BZ #22101]
27076 * elf/Makefile (tests): Add tst-debug1.
27077 ($(objpfx)tst-debug1): New.
27078 ($(objpfx)tst-debug1.out): Likewise.
27079 ($(objpfx)tst-debug1mod1.so): Likewise.
27080 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27081 with p_filesz == 0.
27082 * elf/tst-debug1.c: New file.
27083
27084 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27085
27086 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27087 Define using __ifunc.
27088
27089 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27090
27091 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27092 exp2f() values.
27093
27094 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27095
27096 [BZ #22156]
27097 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27098
27099 2017-09-26 Florian Weimer <fweimer@redhat.com>
27100
27101 * resolv/Makefile (tests-internal): Fix typo in comment.
27102
27103 2017-09-26 Florian Weimer <fweimer@redhat.com>
27104
27105 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27106
27107 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27108
27109 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27110 Use an union instead of a max_align_t array for __space,
27111 so that __space is the same size on all platforms.
27112 * malloc/scratch_buffer_grow_preserve.c
27113 (__libc_scratch_buffer_grow_preserve): Likewise.
27114
27115 [BZ #22183]
27116 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27117 version to 2.
27118 * posix/Makefile (routines): Add glob-lstat-compat and
27119 glob64-lstat-compat.
27120 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27121 * posix/glob-lstat-compat.c: New file.
27122 * posix/glob64-lstat-compat.c: Likewise.
27123 * posix/tst-glob_lstat_compat.c: Likewise.
27124 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27125 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27126 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27127 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27128 Likewise.
27129 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27130 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27131 * posix/glob.c (glob_lstat): New function.
27132 (glob): Rename to __glob and add versioned symbol to 2.27.
27133 (glob_in_dir): Use glob_lstat.
27134 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27135 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27136 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27137 2.27.
27138 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27139 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27140 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27141 gl_lstat on glob call.
27142 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27143 and glob64 symbols.
27144 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27145 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27146 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27147 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27148 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27149 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27150 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27151 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27152 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27153 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27154 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27155 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27157 Likewise.
27158 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27160 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27161 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27162 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27163 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27164 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27165 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27166 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27167 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27168 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27169 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27170
27171 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27172
27173 * configure.ac (AS): Require binutils 2.25 or later.
27174 * configure: Regenerated.
27175
27176 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27177
27178 [BZ #22207]
27179 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27180 VM size.
27181
27182 2017-09-25 DJ Delorie <dj@redhat.com>
27183
27184 [BZ #22161]
27185 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27186 resetting timeout.
27187
27188 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27189
27190 * sysdeps/ieee754/dbl-64/sincos32.h
27191 [SINCCOS32_H]: Remove define.
27192 [SINCOS32_H]: Define.
27193
27194 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27195
27196 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27197 (exp2f): Likewise.
27198 * math/w_exp2f.c: New file.
27199 * math/w_expf.c: New file.
27200 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27201 * math/w_expf_compat.c (__expf_compat): Likewise.
27202 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27203 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27204 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27205 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27206 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27207 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27208 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27209 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27210 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27211 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27212 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27213 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27214 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27215 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27217 Likewise.
27218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27219 Likewise.
27220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27221 Likewise.
27222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27223 Likewise.
27224 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27225 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27226 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27227 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27228 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27229 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27230 Likewise.
27231 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27232 Likewise.
27233 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27234 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27235 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27236
27237 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27238
27239 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27240 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27241 (roundtoint, converttoint): Likewise.
27242 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27243 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27244 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27245 * sysdeps/ieee754/flt-32/math_config.h: New file.
27246 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27247 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27248 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27249 * sysdeps/i386/fpu/math_errf.c: New file.
27250 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27251 * sysdeps/ia64/fpu/math_errf.c: New file.
27252 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27253 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27254
27255 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27256
27257 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27258 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27259 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27260 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27261 to make sure that these symbols are defined.
27262 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27263 of <limits.h>
27264 (__need_NULL): Do not define.
27265 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27266 alignment.
27267 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27268 CMGROUP_MAX, cmsgcred): Do not define.
27269 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27270 NULL.
27271 * bits/socket.h: Likewise.
27272 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27273 __gettimeofday instead of gettimeofday.
27274 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27275 instead of settimeofday.
27276
27277 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27278
27279 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27280 (asinhf): Define using libm_alias_float.
27281 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27282 (atanf): Define using libm_alias_float.
27283 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27284 (cbrtf): Define using libm_alias_float.
27285 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27286 (ceilf): Define using libm_alias_float.
27287 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27288 <libm-alias-float.h>.
27289 (copysignf): Define using libm_alias_float.
27290 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27291 (cosf): Define using libm_alias_float.
27292 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27293 (erff): Define using libm_alias_float.
27294 (erfcf): Likewise.
27295 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27296 (expm1f): Define using libm_alias_float.
27297 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27298 (fabsf): Define using libm_alias_float.
27299 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27300 (floorf): Define using libm_alias_float.
27301 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27302 (frexpf): Define using libm_alias_float.
27303 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27304 libm_alias_float.
27305 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27306 <libm-alias-float.h>.
27307 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27308 libm_alias_float.
27309 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27310 <libm-alias-float.h>.
27311 (getpayloadf): Define using libm_alias_float.
27312 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27313 <libm-alias-float.h>.
27314 (llrintf): Define using libm_alias_float.
27315 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27316 <libm-alias-float.h>.
27317 (llroundf): Define using libm_alias_float.
27318 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27319 (logbf): Define using libm_alias_float.
27320 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27321 (lrintf): Define using libm_alias_float.
27322 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27323 (lroundf): Define using libm_alias_float.
27324 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27325 (modff): Define using libm_alias_float.
27326 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27327 <libm-alias-float.h>.
27328 (nearbyintf): Define using libm_alias_float.
27329 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27330 <libm-alias-float.h>.
27331 (nextafterf): Define using libm_alias_float.
27332 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27333 <libm-alias-float.h>.
27334 (nextupf): Define using libm_alias_float.
27335 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27336 <libm-alias-float.h>.
27337 (remquof): Define using libm_alias_float.
27338 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27339 (rintf): Define using libm_alias_float.
27340 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27341 <libm-alias-float.h>.
27342 (roundevenf): Define using libm_alias_float.
27343 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27344 (roundf): Define using libm_alias_float.
27345 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27346 using libm_alias_float.
27347 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27348 <libm-alias-float.h>.
27349 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27350 Define using libm_alias_float.
27351 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27352 <libm-alias-float.h>.
27353 (sincosf): Define using libm_alias_float.
27354 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27355 (sinf): Define using libm_alias_float.
27356 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27357 (tanf): Define using libm_alias_float.
27358 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27359 (tanhf): Define using libm_alias_float.
27360 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27361 <libm-alias-float.h>.
27362 (totalorderf): Define using libm_alias_float.
27363 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27364 <libm-alias-float.h>.
27365 (totalordermagf): Define using libm_alias_float.
27366 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27367 (truncf): Define using libm_alias_float.
27368 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27369 libm_alias_float.
27370 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27371 libm_alias_float.
27372
27373 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27374
27375 [BZ #22146]
27376 math/math.h: Let fpclassify use the builtin in C++ mode, even
27377 when optimazing for size.
27378
27379 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27380
27381 * csu/Makefile (generated): Do not add version-info.h.
27382 (before-compile): Likewise.
27383 (all-Banner-files): Remove variable.
27384 ($(objpfx)version-info.h): Remove rule.
27385 * csu/version.c (banner): Do not include "version-info.h".
27386 * libidn/Banner: Remove.
27387 * manual/contrib.texi (Simon Josefsson): New entry.
27388
27389 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27390
27391 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27392 Remove conditionals on LDBL_MANT_DIG.
27393 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27394 (__ieee754_lgammal_r): Likewise.
27395
27396 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27397
27398 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27399 _Float128 and L().
27400 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27401 _Float128 and L(). Replace _Float128 with long double and L(x)
27402 with xL, throughout the file.
27403 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27404 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27405 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27406 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27407
27408 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27409
27410 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27411 sysdeps/ieee754/ldbl-128ibm.
27412 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27413 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27414 of including it. Keep _Float128 and L() intact. These will be
27415 reviewed by a separate patch.
27416 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27417 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27418 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27419 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27420
27421 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27422
27423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27424 (__finitef128): Define to __redirect___finitef128.
27425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27426 (__isinff128): Define to __redirect___isinff128.
27427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27428 (__isnanf128): Define to __redirect___isnanf128.
27429
27430 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27431
27432 * sysdeps/powerpc/powerpc64le/Makefile
27433 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27434 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27435
27436 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27437 Carlos O'Donell <carlos@redhat.com>
27438
27439 [BZ #22180]
27440 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27441 * stdlib/test-dlclose-exit-race.c: New file.
27442 * stdlib/test-dlclose-exit-race-helper.c: New file.
27443 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27444
27445 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27446
27447 * crypt/Banner: Remove file.
27448 * nptl/Banner: Likewise.
27449 * resolv/Banner: Likewise.
27450 * soft-fp/Banner: Likewise.
27451 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27452 ($(objpfx)version.d): Remove dependency on banner.h.
27453 ($(objpfx)version.os): Likewise.
27454 * nptl/version.c (banner): Do not include banner.h.
27455 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27456 Jelinek and BIND code.
27457
27458 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27459 Carlos O'Donell <carlos@redhat.com>
27460
27461 * support/xdlfcn.h: New file.
27462 * support/xdlfcn.c: New file.
27463 * support/Makefile (libsupport-routines): Add xdlfcn.
27464 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27465
27466 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27467
27468 [BZ #20142]
27469 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27470 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27471 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27472 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27473 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27474 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27475 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27476 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27477
27478 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27479 Ricky Zhou <rickyz@google.com>
27480 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27481
27482 [BZ #14333]
27483 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27484 Remove atomics.
27485 (__new_exitfn): Fail registration when we finished at_exit processing.
27486 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27487 * stdlib/on_exit.c (__on_exit): Likewise.
27488 * stdlib/exit.c (__exit_funcs_done): New variable.
27489 (__run_exit_handlers): Use __exit_funcs_lock.
27490 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27491 declarations.
27492 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27493 (test-cxa_atexit-race, test-on_exit-race): New tests.
27494 * stdlib/test-atexit-race-common.c: New file.
27495 * stdlib/test-atexit-race.c: New file.
27496 * stdlib/test-at_quick_exit-race.c: New file.
27497 * stdlib/test-cxa_atexit-race.c: New file.
27498 * stdlib/test-on_exit-race.c: New file.
27499
27500 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27501
27502 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27503 * benchtests/exp2f-inputs: Copy of expf-inputs.
27504 * benchtests/log2f-inputs: Copy of logf-inputs.
27505
27506 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27507
27508 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27509 Explicitly take address of first element of array arguments in
27510 call to INLINE_SYSCALL.
27511
27512 2017-09-19 Andreas Schwab <schwab@suse.de>
27513
27514 [BZ #22134]
27515 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27516 execveat first.
27517 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27518 unimplemented.
27519 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27520 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27521 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27522 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27523 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27524 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27525 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27526 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27527 * posix/Makefile (tests): Add tst-fexecve.
27528 * posix/tst-fexecve.c: New file.
27529
27530 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27531
27532 * benchtests/Makefile: Add logf benchmark.
27533 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27534
27535 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27536
27537 * benchtests/Makefile: Add expf benchmark.
27538 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27539
27540 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27541
27542 * csu/Makefile: Add -funwind-tables to libc-start.c.
27543 * debug/Makefile: Add -funwind-tables to backtrace.c.
27544 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27545 * sysdeps/arm/Makefile: Likewise.
27546 * sysdeps/i386/Makefile: Likewise.
27547 * sysdeps/m68k/Makefile: Likewise.
27548 * sysdeps/mips/Makefile: Likewise.
27549 * sysdeps/nios2/Makefile: Likewise.
27550 * sysdeps/sh/Makefile: Likewise.
27551 * sysdeps/sparc/Makefile: Likewise.
27552
27553 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27554
27555 * benchtests/Makefile (bench-math): Add trunc and truncf.
27556 (CFLAGS-bench-trunc.c): New variable.
27557 (CFLAGS-bench-truncf.c): Likewise.
27558 * benchtests/trunc-inputs: New file.
27559 * benchtests/truncf-inputs: Likewise.
27560
27561 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27562
27563 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27564
27565 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27566
27567 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27568 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27569 redefine.
27570 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27571 (exp10l): Define as weak alias.
27572 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27573 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27574 and redefine.
27575 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27576 (remainderl): Define as weak alias.
27577
27578 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27579 (fmal): Define using libm_alias_ldouble.
27580 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27581 (acoshl): Define using libm_alias_ldouble.
27582 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27583 (acosl): Define using libm_alias_ldouble.
27584 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27585 (asinl): Define using libm_alias_ldouble.
27586 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27587 (atan2l): Define using libm_alias_ldouble.
27588 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27589 (atanhl): Define using libm_alias_ldouble.
27590 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27591 (coshl): Define using libm_alias_ldouble.
27592 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27593 (exp10l): Define using libm_alias_ldouble.
27594 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27595 (exp2l): Define using libm_alias_ldouble.
27596 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27597 (expl): Define using libm_alias_ldouble.
27598 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27599 (fmodl): Define using libm_alias_ldouble.
27600 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27601 (hypotl): Define using libm_alias_ldouble.
27602 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27603 (j0l): Define using libm_alias_ldouble.
27604 (y0l): Likewise.
27605 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27606 (j1l): Define using libm_alias_ldouble.
27607 (y1l): Likewise.
27608 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27609 (jnl): Define using libm_alias_ldouble.
27610 (ynl): Likewise.
27611 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27612 (log10l): Define using libm_alias_ldouble.
27613 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27614 (log2l): Define using libm_alias_ldouble.
27615 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27616 (logl): Define using libm_alias_ldouble.
27617 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27618 (powl): Define using libm_alias_ldouble.
27619 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27620 (remainderl): Define using libm_alias_ldouble.
27621 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27622 (sinhl): Define using libm_alias_ldouble.
27623 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27624 (sqrtl): Define using libm_alias_ldouble.
27625 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27626 (tgammal): Define using libm_alias_ldouble.
27627 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27628 (exp10l): Do not use long_double_symbol here.
27629 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27630 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27631 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27632 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27633 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27634 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27635 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27636 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27637 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27638 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27639 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27640 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27641 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27642 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27643 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27644 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27645 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27646 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27647 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27648 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27649 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27650 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27651
27652 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27653
27654 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27655 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27656
27657 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27658
27659 * io/read.c (read): Add libc_hidden_weak.
27660 * sysdeps/mach/hurd/read.c (read): Likewise.
27661 * io/write.c (write): Likewise.
27662 * sysdeps/mach/hurd/write.c (write): Likewise.
27663 * io/pread64.c (__pread64): Likewise.
27664 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27665 * posix/pread64.c (__pread64): Add libc_hidden_def.
27666
27667 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27668
27669 * benchtests/scripts/compare_strings.py: New option -g.
27670 (draw_graph): Print a message that a graph is being generated.
27671 (process_results): Generate graph only if -g is passed.
27672 (main): Process option -g.
27673
27674 * benchtests/scripts/compare_strings.py (process_results):
27675 Better spacing for output.
27676
27677 * benchtests/scripts/compare_strings.py: Use argparse.
27678 * benchtests/README: Document existence of compare_strings.py.
27679
27680 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27681
27682 * math/s_fma.c: Include <libm-alias-double.h>.
27683 (fma): Define using libm_alias_double.
27684 * math/s_nextafter.c: Include <libm-alias-double.h>.
27685 (nextafter): Define using libm_alias_double.
27686 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27687 (acos): Define using libm_alias_double.
27688 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27689 (aocsh): Define using libm_alias_double.
27690 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27691 (asin): Define using libm_alias_double.
27692 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27693 (atan2): Define using libm_alias_double.
27694 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27695 (atanh): Define using libm_alias_double.
27696 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27697 (cosh): Define using libm_alias_double.
27698 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27699 (exp10): Define using libm_alias_double.
27700 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27701 (exp2): Define using libm_alias_double.
27702 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27703 (exp): Define using libm_alias_double.
27704 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27705 (fmod): Define using libm_alias_double.
27706 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27707 (hypot): Define using libm_alias_double.
27708 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27709 (j0): Define using libm_alias_double.
27710 (y0): Likewise.
27711 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27712 (j1): Define using libm_alias_double.
27713 (y1): Likewise.
27714 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27715 (jn): Define using libm_alias_double.
27716 (yn): Likewise.
27717 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27718 (log10): Define using libm_alias_double.
27719 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27720 (log2): Define using libm_alias_double.
27721 * math/w_log_compat.c: Include <libm-alias-double.h>.
27722 (log): Define using libm_alias_double.
27723 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27724 (pow): Define using libm_alias_double.
27725 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27726 (remainder): Define using libm_alias_double.
27727 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27728 (sinh): Define using libm_alias_double.
27729 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27730 (sqrt): Define using libm_alias_double.
27731 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27732 (tgamma): Define using libm_alias_double.
27733 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27734 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27735 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27736 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27737 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27738 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27739 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27740 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27741 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27742 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27743 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27744 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27745 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27746 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27747 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27748 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27749 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27750 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27751 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27752 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27753 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27754 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27755 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27756 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27757 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27758
27759 * math/e_acoshl.c: Remove.
27760 * math/e_acosl.c: Likewise.
27761 * math/e_asinl.c: Likewise.
27762 * math/e_atan2l.c: Likewise.
27763 * math/e_atanhl.c: Likewise.
27764 * math/e_coshl.c: Likewise.
27765 * math/e_expl.c: Likewise.
27766 * math/e_fmodl.c: Likewise.
27767 * math/e_gammal_r.c: Likewise.
27768 * math/e_hypotl.c: Likewise.
27769 * math/e_j0l.c: Likewise.
27770 * math/e_j1l.c: Likewise.
27771 * math/e_jnl.c: Likewise.
27772 * math/e_lgammal_r.c: Likewise.
27773 * math/e_log10l.c: Likewise.
27774 * math/e_log2l.c: Likewise.
27775 * math/e_logl.c: Likewise.
27776 * math/e_powl.c: Likewise.
27777 * math/e_rem_pio2l.c: Likewise.
27778 * math/e_sinhl.c: Likewise.
27779 * math/e_sqrtf128.c: Likewise.
27780 * math/e_sqrtl.c: Likewise.
27781 * math/k_cosl.c: Likewise.
27782 * math/k_sinl.c: Likewise.
27783 * math/k_tanl.c: Likewise.
27784 * math/s_asinhl.c: Likewise.
27785 * math/s_atanl.c: Likewise.
27786 * math/s_cbrtl.c: Likewise.
27787 * math/s_erfl.c: Likewise.
27788 * math/s_expm1l.c: Likewise.
27789 * math/s_log1pl.c: Likewise.
27790 * math/s_tanhl.c: Likewise.
27791
27792 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27793
27794 [BZ #21745]
27795 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27796 [$(subdir) = math] (sysdep_calls): New variable. Has the
27797 previous contents of sysdep_routines, but re-sorted..
27798 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27799 sysdep_calls.
27800 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27801 defined in sysdep_calls and replace by the respective m_* names.
27802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27803 (compat_symbol): Undefine to avoid duplicated compat symbols in
27804 libc.
27805
27806 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27807
27808 * math/s_fmaf.c: Include <libm-alias-float.h>.
27809 (fmaf): Define using libm_alias_float.
27810 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27811 (acosf): Define using libm_alias_float.
27812 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27813 (acoshf): Define using libm_alias_float.
27814 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27815 (asinf): Define using libm_alias_float.
27816 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27817 (atan2f): Define using libm_alias_float.
27818 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27819 (atanhf): Define using libm_alias_float.
27820 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27821 (coshf): Define using libm_alias_float.
27822 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27823 (exp10f): Define using libm_alias_float.
27824 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27825 (fmodf): Define using libm_alias_float.
27826 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27827 (hypotf): Define using libm_alias_float.
27828 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27829 (j0f): Define using libm_alias_float.
27830 (y0f): Likewise.
27831 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27832 (j1f): Define using libm_alias_float.
27833 (y1f): Likewise.
27834 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27835 (jnf): Define using libm_alias_float.
27836 (ynf): Likewise.
27837 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27838 (log10f): Define using libm_alias_float.
27839 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27840 (log2f): Define using libm_alias_float.
27841 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27842 (logf): Define using libm_alias_float.
27843 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27844 (powf): Define using libm_alias_float.
27845 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27846 (remainderf): Define using libm_alias_float.
27847 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27848 (sinhf): Define using libm_alias_float.
27849 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27850 (sqrtf): Define using libm_alias_float.
27851 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27852 (tgammaf): Define using libm_alias_float.
27853
27854 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27855
27856 * include/math.h (roundeven): Change hidden_proto call to
27857 __roundeven.
27858 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27859 alias.
27860 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27861 (y0): Rename to __y0 and define as weak alias.
27862 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27863 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27864 alias.
27865 (y0f): Rename to __y0f and define as weak alias.
27866 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27867 alias.
27868 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27869 (y1): Rename to __y1 and define as weak alias.
27870 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27871 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27872 alias.
27873 (y1f): Rename to __y1f and define as weak alias.
27874 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27875 alias.
27876 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27877 (yn): Rename to __yn and define as weak alias.
27878 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27879 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27880 alias.
27881 (ynf): Rename to __ynf and define as weak alias.
27882 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27883 (fromfp): Define as weak alias.
27884 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27885 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27886 (fromfpx): Define as weak alias.
27887 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27888 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27889 __getpayload and define as weak alias.
27890 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27891 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27892 __roundeven and define as weak alias.
27893 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27894 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27895 __setpayload.
27896 (setpayload): Define as weak alias.
27897 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27898 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27899 __setpayloadsig.
27900 (setpayloadsig): Define as weak alias.
27901 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27902 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27903 __totalorder and define as weak alias.
27904 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27905 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27906 to __totalordermag and define as weak alias.
27907 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27908 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27909 (ufromfp): Define as weak alias.
27910 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27911 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27912 __ufromfpx.
27913 (ufromfpx): Define as weak alias.
27914 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27915 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27916 Rename to __getpayload and define as weak alias.
27917 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27918 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27919 Rename to __roundeven and define as weak alias.
27920 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27921 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27922 Rename to __totalorder and define as weak alias.
27923 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27924 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27925 (totalordermag): Rename to __totalordermag and define as weak
27926 alias.
27927 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27928 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27929 macro.
27930 (__roundevenl): Likewise.
27931 (__totalorderl): Likewise.
27932 (__totalordermagl): Likewise
27933 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27934 __fromfpf128.
27935 (fromfpf128): Define as weak alias.
27936 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27937 __fromfpxf128.
27938 (fromfpxf128): Define as weak alias.
27939 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27940 __setpayloadf128.
27941 (setpayloadf128): Define as weak alias.
27942 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27943 __setpayloadsigf128.
27944 (setpayloadsigf128): Define as weak alias.
27945 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27946 __ufromfpf128.
27947 (ufromfpf128): Define as weak alias.
27948 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27949 __ufromfpxf128.
27950 (ufromfpxf128): Define as weak alias.
27951 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27952 (fromfpf): Define as weak alias.
27953 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27954 __fromfpxf.
27955 (fromfpxf): Define as weak alias.
27956 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27957 __getpayloadf and define as weak alias.
27958 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27959 __roundevenf and define as weak alias.
27960 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27961 __setpayloadf.
27962 (setpayloadf): Define as weak alias.
27963 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27964 __setpayloadsigf.
27965 (setpayloadsigf): Define as weak alias.
27966 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27967 __totalorderf and define as weak alias.
27968 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27969 Rename to __totalordermagf and define as weak alias.
27970 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27971 __ufromfpf.
27972 (ufromfpf): Define as weak alias.
27973 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27974 __ufromfpxf.
27975 (ufromfpxf): Define as weak alias.
27976 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27977 __fromfpl.
27978 (fromfpl): Define as weak alias.
27979 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27980 __fromfpxl.
27981 (fromfpxl): Define as weak alias.
27982 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27983 to __getpayloadl and define as weak alias.
27984 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27985 __roundevenl and define as weak alias.
27986 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27987 __setpayloadl.
27988 (setpayloadl): Define as weak alias.
27989 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27990 __setpayloadsigl.
27991 (setpayloadsigl): Define as weak alias.
27992 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27993 to __totalorderl and define as weak alias.
27994 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27995 Rename to __totalordermagl and define as weak alias.
27996 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27997 __ufromfpl.
27998 (ufromfpl): Define as weak alias.
27999 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28000 __ufromfpxl.
28001 (ufromfpxl): Define as weak alias.
28002 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28003 __fromfpl.
28004 (fromfpl): Define as weak alias.
28005 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28006 __fromfpxl.
28007 (fromfpxl): Define as weak alias.
28008 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28009 Rename to __getpayloadl and define as weak alias.
28010 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28011 to __roundevenl and define as weak alias. Call __roundeven
28012 instead of roundeven.
28013 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28014 __setpayloadl.
28015 (setpayloadl): Define as weak alias.
28016 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28017 __setpayloadsigl.
28018 (setpayloadsigl): Define as weak alias.
28019 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28020 Rename to __totalorderl and define as weak alias.
28021 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28022 Rename to __totalordermagl and define as weak alias.
28023 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28024 __ufromfpl.
28025 (ufromfpl): Define as weak alias.
28026 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28027 __ufromfpxl.
28028 (ufromfpxl): Define as weak alias.
28029 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28030 __fromfpl.
28031 (fromfpl): Define as weak alias.
28032 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28033 __fromfpxl.
28034 (fromfpxl): Define as weak alias.
28035 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28036 __getpayloadl and define as weak alias.
28037 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28038 __roundevenl and define as weak alias.
28039 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28040 __setpayloadl.
28041 (setpayloadl): Define as weak alias.
28042 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28043 __setpayloadsigl.
28044 (setpayloadsigl): Define as weak alias.
28045 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28046 __totalorderl and define as weak alias.
28047 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28048 Rename to __totalordermagl and define as weak alias.
28049 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28050 __ufromfpl.
28051 (ufromfpl): Define as weak alias.
28052 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28053 __ufromfpxl.
28054 (ufromfpxl): Define as weak alias.
28055
28056 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28057
28058 * benchtests/bench-string.h (realloc_bufs): New function.
28059 (test_init): Call it.
28060 * benchtests/bench-memset-large.c (do_test): Likewise.
28061 * benchtests/bench-memset.c (do_test): Likewise.
28062
28063 * benchtests/bench-memset-large.c: Print output in JSON
28064 format.
28065 * benchtests/bench-memset.c: Likewise.
28066
28067 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28068
28069 [BZ #21084]
28070 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28071 * iconvdata/Makefile: Add IBM858.
28072 * iconvdata/gconv-modules: Likewise.
28073 * iconvdata/tst-tables.sh: Likewise.
28074 * iconvdata/ibm858.c: New file.
28075 * localedata/charmaps/IBM858: Likewise.
28076
28077 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28078
28079 [BZ #22023]
28080 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28081 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28082
28083 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28084
28085 [BZ #22112]
28086 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28087 and add tel_int_fmt.
28088
28089 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28090
28091 * sysdeps/generic/libm-alias-float128.h: New file.
28092 * sysdeps/generic/math-type-macros-float128.h: Include
28093 <libm-alias-float128.h>.
28094 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28095
28096 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28097
28098 * sysdeps/generic/libm-alias-ldouble.h: New file.
28099 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28100 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28101 * sysdeps/generic/math-type-macros-ldouble.h: Include
28102 <libm-alias-ldouble.h>.
28103 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28104 libm_alias_ldouble.
28105
28106 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28107
28108 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28109 * math/w_exp_compat.c: ... here.
28110 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28111 * math/w_expf_compat.c: ... here.
28112 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28113 * math/w_expl_compat.c: ... here.
28114 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28115 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28116 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28117 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28118
28119 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28120
28121 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28122 redefine.
28123 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28124 macro.
28125 (ldexpl): Only define as compat symbol for libc, not libm.
28126 (scalbnl): Define as compat symbol for libc here.
28127 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28128 define for [IS_IN (libc)].
28129 (__ldexpl_2): Remove alias.
28130 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28131 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28132 name in long_double_symbol call.
28133 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28134 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28135 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28136 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28137 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28138 Remove macro.
28139 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28140 Define as compat symbol.
28141
28142 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28143
28144 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28145 * sysdeps/unix/sysv/linux/alpha/Makefile
28146 [$(subdir) = csu] (sysdep_routines): Remove rule.
28147
28148 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28149
28150 * sysdeps/generic/libm-alias-double.h: New file.
28151 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28152 * sysdeps/generic/math-type-macros-double.h: Include
28153 <libm-alias-double.h>.
28154 [declare_mgen_alias] (declare_mgen_alias): Define to use
28155 libm_alias_double.
28156 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28157 (M_LIBM_NEED_COMPAT): Remove macro.
28158 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28159 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28160 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28161 code.
28162 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28163 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28164 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28165 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28166 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28167 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28168 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28169 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28170 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28171 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28172 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28173 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28174 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28175 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28176 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28177 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28178 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28179 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28180 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28181 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28182 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28183 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28184 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28185 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28186 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28187 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28188 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28189 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28190 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28191 macro.
28192 (declare_mgen_alias): New macro.
28193 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28194 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28195 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28196 (M_LIBM_NEED_COMPAT): Remove macro.
28197 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28198 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28199 <first-versions.h>.
28200 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28201 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28202
28203 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28204
28205 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28206 (declare_mgen_alias_2): Remove.
28207 * sysdeps/generic/math-type-macros-double.h
28208 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28209 Likewise.
28210 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28211 alias.
28212 (ldexp): Define with declare_mgen_alias.
28213 (scalbn): Likewise.
28214
28215 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28216
28217 * grp/initgroups.c: Include config.h.
28218 (DEFAULT_CONFIG): New macro.
28219 (internal_getgrouplist): Use DEFAULT_CONFIG.
28220 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28221 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28222 (DEFAULT_DEFCONFIG): New macro.
28223 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28224 * nss/grp-lookup.c: Include config.h
28225 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28226 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28227 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28228 * manual/nss.texi: Update default values section.
28229
28230 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28231
28232 [BZ #21967]
28233 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28234 New.
28235 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28236 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28237 Handle MathVec_Prefer_No_AVX512.
28238 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28239 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28240 is set.
28241
28242 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28243
28244 * posix/sched_primax.c (__sched_get_priority_max): Add
28245 libc_hidden_def.
28246 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28247 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28248 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28249 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28250 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28251 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28252 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28253 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28254 Add aliases.
28255
28256 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28257
28258 * sysdeps/generic/libm-alias-float.h: New file.
28259 * sysdeps/generic/math-type-macros-float.h: Include
28260 <libm-alias-float.h>.
28261 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28262
28263 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28264
28265 [BZ #22093]
28266 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28267 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28268 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28269 (HWCAP_IMPORTANT): Likewise.
28270 (HWCAP_X86_64): New enum.
28271 (HWCAP_X86_AVX512_1): Updated.
28272 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28273 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28274 (modules-names): Add x86_64/tst-x86_64mod-1.
28275 (LDFLAGS-tst-x86_64mod-1.so): New.
28276 ($(objpfx)tst-x86_64-1): Likewise.
28277 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28278 (tst-x86_64-1-clean): Likewise.
28279 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28280 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28281
28282 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28283
28284 * po/sv.po: Update translations.
28285 * po/fr.po: Likewise.
28286
28287 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28288
28289 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28290 seconds.
28291 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28292 seconds.
28293 * elf/rtld-Rules: Fix $(error) use.
28294
28295 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28296
28297 [BZ #14925]
28298 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28299 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28300 * localedata/locales/bn_BD: “Bengali” was still used in some
28301 comments. Change it to “Bangla”.
28302
28303 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28304
28305 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28306
28307 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28308
28309 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28310 thunderx2t99p1 to list of cpu names.
28311 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28312 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28313
28314 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28315
28316 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28317 Use strcmp instead of tunable_is_name.
28318
28319 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28320
28321 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28322 (F_GET_RW_HINT): New macro.
28323 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28324 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28325 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28326 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28327 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28328 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28329 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28330 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28331 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28332
28333 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28334 (F_ADD_SEALS): New macro.
28335 [__USE_GNU] (F_GET_SEALS): Likewise.
28336 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28337 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28338 [__USE_GNU] (F_SEAL_GROW): Likewise.
28339 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28340
28341 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28342
28343 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28344 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28345 * posix/glob_internal.h (__glob_pattern_type):
28346 * posix/glob.c (glob):
28347 * posix/glob_pattern_p.c (__glob_pattern_p):
28348 Use them.
28349
28350 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28351 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28352 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28353 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28354 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28356 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28357 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28358 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28359 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28360 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28361 * sysdeps/wordsize-64/glob.c: Likewise.
28362 * sysdeps/wordsize-64/glob64.c: Likewise.
28363 * sysdeps/wordsize-64/globfree.c: Likewise.
28364 * sysdeps/wordsize-64/globfree64.c: Likewise.
28365 * sysdeps/unix/sysv/linux/glob.c: New file.
28366 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28367 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28368 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28369 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28370 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28371 adds !GLOB_NO_OLD_VERSION as an extra condition.
28372 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28373 using relative path instead of absolute one.
28374 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28375 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28376 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28377 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28378 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28379 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28380
28381 [BZ #1062]
28382 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28383 (glob): Use the same scratch buffer for both getlogin_r and
28384 getpwnam_r. Don’t require preallocation of the login name. This
28385 simplifies storage allocation, and corrects the handling of
28386 long login names.
28387
28388 [BZ #1062]
28389 * posix/glob.c (glob): Port recent patches to platforms
28390 lacking getpwnam_r.
28391 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28392 returns an error number rather than setting errno.
28393
28394 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28395 instead of GCC extension.
28396 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28397 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28398 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28399
28400 [BZ #866]
28401 [BZ #1062]
28402 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28403 * posix/bug-glob1.c: Remove file.
28404 * posix/tst-glob_symlinks.c: New file.
28405 * posix/glob.c (__lstat64): New macro.
28406 (is_dir): New function.
28407 (glob, glob_in_dir): Match symlinks even if they are dangling.
28408 (link_stat, link_exists_p): Remove. All uses removed.
28409
28410 [BZ #1062]
28411 [BZ #19971]
28412 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28413 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28414 All uses removed.
28415
28416 [BZ #1062]
28417 CVE-2017-15671
28418 * posix/Makefile (routines): Add globfree, globfree64, and
28419 glob_pattern_p.
28420 * posix/flexmember.h: New file.
28421 * posix/glob_internal.h: Likewise.
28422 * posix/glob_pattern_p.c: Likewise.
28423 * posix/globfree.c: Likewise.
28424 * posix/globfree64.c: Likewise.
28425 * sysdeps/gnu/globfree64.c: Likewise.
28426 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28427 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28428 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28429 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28430 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28431 * sysdeps/wordsize-64/globfree.c: Likewise.
28432 * sysdeps/wordsize-64/globfree64.c: Likewise.
28433 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28434 [NDEBUG): Remove comments.
28435 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28436 (dirent_type): New type. Use uint_fast8_t not
28437 uint8_t, as C99 does not require uint8_t.
28438 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28439 (struct readdir_result): Use dirent_type. Do not define skip_entry
28440 unless it is needed; this saves a byte on platforms lacking d_ino.
28441 (readdir_result_type, readdir_result_skip_entry):
28442 New functions, replacing ...
28443 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28444 these functions, which were removed. This makes the callers
28445 easier to read. All callers changed.
28446 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28447 (size_add_wrapv, glob_use_alloca): New static functions.
28448 (glob, glob_in_dir): Check for size_t overflow in several places,
28449 and fix some size_t checks that were not quite right.
28450 Remove old code using SHELL since Bash no longer
28451 uses this.
28452 (glob, prefix_array): Separate MS code better.
28453 (glob_in_dir): Remove old Amiga and VMS code.
28454 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28455 separate files.
28456 (glob_in_dir): Do not rely on undefined behavior in accessing
28457 struct members beyond their bounds. Use a flexible array member
28458 instead
28459 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28460 0/1. Caller changed.
28461 (glob): Fix memory leaks.
28462 * posix/glob64 (globfree64): Move to separate file.
28463 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28464 (globfree64): Remove hidden alias.
28465 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28466 oldglob.
28467 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28468 separate file.
28469 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28470 define.
28471 Move compat code to separate file.
28472 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28473 separate file.
28474
28475 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28476
28477 * resolv/tst-resolv-qtypes.c (domain): Changed to
28478 "const char domain[] =".
28479
28480 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28481
28482 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28483 version to 3.1.6.
28484
28485 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28486 (TCP_MD5SIG_EXT): Likewise.
28487 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28488 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28489 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28490
28491 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28492
28493 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28494
28495 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28496
28497 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28498
28499 [BZ #22100]
28500 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28501
28502 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28503
28504 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28505 before assuming that the file is empty. Avoid testing buffer content
28506 when nread == 0.
28507
28508 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28509
28510 [BZ #18858]
28511 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28512 Remove define.
28513 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28514 Likewise.
28515 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28516 Likewise.
28517 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28518 Likewise.
28519 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28520 Likewise.
28521 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28522 Likewise.
28523 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28524 Likewise.
28525
28526 2017-09-06 Florian Weimer <fweimer@redhat.com>
28527
28528 * malloc/dynarray_emplace_enlarge.c
28529 (__libc_dynarray_emplace_enlarge): Add missing else.
28530
28531 2017-09-06 Florian Weimer <fweimer@redhat.com>
28532
28533 [BZ #22096]
28534 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28535 case of failure to obtain the global conf object.
28536
28537 2017-09-06 Florian Weimer <fweimer@redhat.com>
28538
28539 [BZ #22095]
28540 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28541 dynarray allocation failure.
28542
28543 2017-09-06 Florian Weimer <fweimer@redhat.com>
28544
28545 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28546 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28547 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28548 New functions.
28549 (response): Call them. Add 'p', '6' flag processing.
28550 (test_reverse): New function.
28551 (test_get2_any): Call it.
28552 (test_no_inet6): Add 'p' test.
28553 (test_inet6): Likewise.
28554
28555 2017-09-06 Florian Weimer <fweimer@redhat.com>
28556
28557 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28558 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28559 the QNAME.
28560 (test_gai): Adjust query names. Add additional tests.
28561 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28562 test_get2. Adjust query names. Add additional tests.
28563 (test_no_inet6): New function, extracted from threadfunc.
28564 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28565 Add additional tests.
28566
28567 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28568
28569 [BZ #22070]
28570 * localedata/unicode-gen/utf8_gen.py: Set the width for
28571 characters with Prepended_Concatenation_Mark property to 1
28572 * localedata/charmaps/UTF-8: Updated using the improved script.
28573
28574 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28575
28576 [BZ #21750]
28577 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28578 use the range notation for all ranges of neighbouring characters
28579 with the same width.
28580
28581 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28582
28583 * sysdeps/generic/math-type-macros-double.h: Include
28584 <math-svid-compat.h>.
28585 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28586 * sysdeps/generic/math-type-macros-float.h: Include
28587 <math-svid-compat.h>.
28588 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28589 * sysdeps/generic/math-type-macros-ldouble.h: Include
28590 <math-svid-compat.h>.
28591 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28592 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28593 condition.
28594 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28595 * math/w_acosf_compat.c: Likewise.
28596 * math/w_acosh_compat.c: Likewise.
28597 * math/w_acoshf_compat.c: Likewise.
28598 * math/w_acoshl_compat.c: Likewise.
28599 * math/w_acosl_compat.c: Likewise.
28600 * math/w_asin_compat.c: Likewise.
28601 * math/w_asinf_compat.c: Likewise.
28602 * math/w_asinl_compat.c: Likewise.
28603 * math/w_atan2_compat.c: Likewise.
28604 * math/w_atan2f_compat.c: Likewise.
28605 * math/w_atan2l_compat.c: Likewise.
28606 * math/w_atanh_compat.c: Likewise.
28607 * math/w_atanhf_compat.c: Likewise.
28608 * math/w_atanhl_compat.c: Likewise.
28609 * math/w_cosh_compat.c: Likewise.
28610 * math/w_coshf_compat.c: Likewise.
28611 * math/w_coshl_compat.c: Likewise.
28612 * math/w_exp10_compat.c: Likewise.
28613 * math/w_exp10f_compat.c: Likewise.
28614 * math/w_exp10l_compat.c: Likewise.
28615 * math/w_exp2_compat.c: Likewise.
28616 * math/w_exp2f_compat.c: Likewise.
28617 * math/w_exp2l_compat.c: Likewise.
28618 * math/w_fmod_compat.c: Likewise.
28619 * math/w_fmodf_compat.c: Likewise.
28620 * math/w_fmodl_compat.c: Likewise.
28621 * math/w_hypot_compat.c: Likewise.
28622 * math/w_hypotf_compat.c: Likewise.
28623 * math/w_hypotl_compat.c: Likewise.
28624 * math/w_j0_compat.c: Likewise.
28625 * math/w_j0f_compat.c: Likewise.
28626 * math/w_j0l_compat.c: Likewise.
28627 * math/w_j1_compat.c: Likewise.
28628 * math/w_j1f_compat.c: Likewise.
28629 * math/w_j1l_compat.c: Likewise.
28630 * math/w_jn_compat.c: Likewise.
28631 * math/w_jnf_compat.c: Likewise.
28632 * math/w_jnl_compat.c: Likewise.
28633 * math/w_lgamma_r_compat.c: Likewise.
28634 * math/w_lgammaf_r_compat.c: Likewise.
28635 * math/w_lgammal_r_compat.c: Likewise.
28636 * math/w_log10_compat.c: Likewise.
28637 * math/w_log10f_compat.c: Likewise.
28638 * math/w_log10l_compat.c: Likewise.
28639 * math/w_log2_compat.c: Likewise.
28640 * math/w_log2f_compat.c: Likewise.
28641 * math/w_log2l_compat.c: Likewise.
28642 * math/w_log_compat.c: Likewise.
28643 * math/w_logf_compat.c: Likewise.
28644 * math/w_logl_compat.c: Likewise.
28645 * math/w_pow_compat.c: Likewise.
28646 * math/w_powf_compat.c: Likewise.
28647 * math/w_powl_compat.c: Likewise.
28648 * math/w_remainder_compat.c: Likewise.
28649 * math/w_remainderf_compat.c: Likewise.
28650 * math/w_remainderl_compat.c: Likewise.
28651 * math/w_sinh_compat.c: Likewise.
28652 * math/w_sinhf_compat.c: Likewise.
28653 * math/w_sinhl_compat.c: Likewise.
28654 * math/w_sqrt_compat.c: Likewise.
28655 * math/w_sqrtf_compat.c: Likewise.
28656 * math/w_sqrtl_compat.c: Likewise.
28657 * math/w_tgamma_compat.c: Likewise.
28658 * math/w_tgammaf_compat.c: Likewise.
28659 * math/w_tgammal_compat.c: Likewise.
28660 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28661 [LIBM_SVID_COMPAT].
28662 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28663 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28664 [LIBM_SVID_COMPAT].
28665 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28666 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28667 [LIBM_SVID_COMPAT].
28668 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28669 * sysdeps/i386/fpu/w_sqrt.c: New file.
28670 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28671 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28672 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28673 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28674 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28675 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28676 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28677 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28678 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28679 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28680 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28681 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28682 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28683 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28684 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28685 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28686 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28687 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28688 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28689 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28690 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28691 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28692 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28693 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28694 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28695 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28696 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28697 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28698 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28699 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28700 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28701 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28702 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28703 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28704 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28705 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28706 * sysdeps/ia64/fpu/w_log.c: Likewise.
28707 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28708 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28709 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28710 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28711 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28712 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28713 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28714 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28715 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28716 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28717 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28718 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28719 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28720 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28721 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28722 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28723 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28724 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28725 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28726 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28727 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28728 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28729 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28730 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28731 [LIBM_SVID_COMPAT].
28732 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28733 * sysdeps/ieee754/k_standard.c: Likewise.
28734 * sysdeps/ieee754/k_standardf.c: Likewise.
28735 * sysdeps/ieee754/k_standardl.c: Likewise.
28736 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28737 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28738 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28739 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28740 long_double_symbol call on [LIBM_SVID_COMPAT].
28741 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28742 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28743 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28744 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28745 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28746 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28747 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28748 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28749 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28750 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28751 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28752 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28753 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28754 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28755 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28756 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28757 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28758 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28759 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28760 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28761 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28762 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28763
28764 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28765
28766 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28767 * malloc/tst-mallocstate.c: Convert from test-skeleton
28768 to test-driver. Ifdef code using TEST_COMPAT macro.
28769 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28770 * math/test-matherr.c: Likewise.
28771
28772 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28773
28774 [BZ #22086]
28775 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28776 comparing word with byte-swapped constant.
28777
28778 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28779
28780 [BZ #20498]
28781 * locale/iso-639.def: add Miskito.
28782 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28783 * localedata/locales/miq_NI: New file.
28784
28785 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28786
28787 [BZ #18822]
28788 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28789 (__mkdir): Likewise.
28790 * io/chmod.c (__chmod): Add libc_hidden_def.
28791 * io/mkdir.c (__mkdir): Likewise.
28792 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28793 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28794 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28795 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28796
28797 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28798
28799 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28800 version to 4.13.
28801
28802 [BZ #22082]
28803 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28804 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28805
28806 2017-09-04 Florian Weimer <fweimer@redhat.com>
28807
28808 * math/math.h: Issue warning if log is defined.
28809
28810 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28811
28812 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28813 kernel version to 4.13.
28814
28815 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28816
28817 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28818 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28819 parameter.
28820 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28821 just <bits/types.h>.
28822 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28823 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28824 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28825 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28826 * misc/preadv2.c: Include <errno.h>.
28827 * misc/preadv64v2.c: Include <errno.h>.
28828 * misc/pwritev2.c: Include <errno.h>.
28829 * misc/pwritev64v2.c: Include <errno.h>.
28830 * sysdeps/posix/preadv2.c: Include <errno.h>.
28831 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28832 Fix <unistd.h> inclusion.
28833 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28834 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28835 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28836 __strtoul_internal): New functions.
28837 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28838 * sysdeps/posix/system.c: Include <sigsetops.h>.
28839 * sysdeps/mach/hurd/i386/Makefile
28840 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28841 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28842 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28843 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28844 __feraiseexcept_renamed to feraiseexcept instead of
28845 __GI_feraiseexcept.
28846 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28847 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28848 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28849 RWF_NOWAIT): Define to 0 if undefined already.
28850 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28851 boils down to 0.
28852 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28853 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28854
28855 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28856
28857 * manual/math.texi (pow10): Do not document.
28858 (pow10f): Likewise.
28859 (pow10l): Likewise.
28860 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28861 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28862 * math/libm-test-exp10.inc (pow10_test): Remove.
28863 (do_test): Do not call pow10.
28864 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28865 [NO_LONG_DOUBLE] (pow10l): Likewise.
28866 * math/w_exp10f_compat.c (pow10f): Likewise.
28867 * math/w_exp10l_compat.c (pow10l): Likewise.
28868 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28869 (pow10): Make into compat symbol.
28870 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28871 (pow10f): Make into compat symbol.
28872 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28873 (pow10l): Make into compat symbol.
28874 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28875 pow10.
28876 (CFLAGS-nldbl-pow10.c): Remove variable..
28877 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28878 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28879 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28880 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28881 Undefine and redefine.
28882 (pow10l): Make into compat symbol.
28883 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28884 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28885 * sysdeps/arm/libm-test-ulps: Likewise.
28886 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28887 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28888 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28889 * sysdeps/microblaze/libm-test-ulps: Likewise.
28890 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28891 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28892 * sysdeps/nios2/libm-test-ulps: Likewise.
28893 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28894 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28895 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28896 * sysdeps/sh/libm-test-ulps: Likewise.
28897 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28898 * sysdeps/tile/libm-test-ulps: Likewise.
28899 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28900
28901 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28902
28903 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28904
28905 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28906
28907 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28908 "../ChangeLog.old/ChangeLog.8".
28909 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28910 "../ChangeLog.old/ChangeLog.14".
28911
28912 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28913
28914 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28915 Threads Library.
28916
28917 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28918
28919 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28920
28921 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28922
28923 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28924 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28925
28926 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28927
28928 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28929 32 atexit handlers.
28930
28931 2017-09-01 Zack Weinberg <zackw@panix.com>
28932
28933 * math/math.h (HUGE_VAL): Improve commentary.
28934
28935 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28936 Andreas Schwab <schwab@suse.de>
28937
28938 [BZ #21530]
28939 * include/stdio.h (__gen_tempfd): New function.
28940 * stdio-common/Makefile (routines): Add gentempfd.
28941 * stdio-common/gentempfd.c: New file.
28942 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28943 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28944 unnamed file first.
28945
28946 2017-09-01 Florian Weimer <fweimer@redhat.com>
28947
28948 [BZ #21915]
28949 [BZ #21922]
28950 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28951 result to determine success or failure, not the errno value.
28952 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28953 (tst-nss-files-hosts-erange): Link with -ldl.
28954 * nss/tst-nss-files-hosts-erange.c: New file.
28955 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28956 (do_test): Add NO_DATA tests.
28957 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28958 (do_test): Call it.
28959
28960 2017-09-01 Florian Weimer <fweimer@redhat.com>
28961
28962 [BZ #21922]
28963 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28964 coming from gethostbyname2_r.
28965
28966 2017-09-01 Florian Weimer <fweimer@redhat.com>
28967
28968 * support/namespace.h (struct support_chroot_configuration): Add
28969 hosts, host_conf.
28970 (struct support_chroot): Add path_hosts, path_host_conf.
28971 * support/support_chroot.c (write_file): New function.
28972 (support_chroot_create): Call it to process /etc/resolv.conf,
28973 /etc/hosts, /etc/host.conf.
28974 (support_chroot_free): Update.
28975
28976 2017-09-01 Florian Weimer <fweimer@redhat.com>
28977
28978 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28979 status indicates it is set.
28980
28981 2017-09-01 Florian Weimer <fweimer@redhat.com>
28982
28983 [BZ #20532]
28984 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28985 function lookup failures more reliable.
28986
28987 2017-09-01 Florian Weimer <fweimer@redhat.com>
28988
28989 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28990 (getcanonname): Likewise.
28991 (gaih_inet): Likewise.
28992
28993 2017-09-01 Florian Weimer <fweimer@redhat.com>
28994
28995 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28996 (getcanonname): Likewise.
28997 (gaih_inet): Likewise.
28998
28999 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29000 Richard Henderson <rth@twiddle.net>
29001
29002 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29003 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29004 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29005 (IREG_SIZE, OREG_SIZE): New macros.
29006 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29007 (IREG_SIZE, OREG_SIZE): New macros.
29008 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29009 (IREG_SIZE): New macro.
29010 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29011 (IREG_SIZE): New macro.
29012 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29013 New includes.
29014 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29015 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29016 (__CONCATX): Handle exceptions correctly on large values that may
29017 set FE_INVALID.
29018 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29019 Initialize if not already set.
29020 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29021
29022 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29023
29024 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29025 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29026 Likewise.
29027 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29028 Likewise.
29029 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29030 Likewise.
29031 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29032 Likewise.
29033 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29034 Likewise.
29035 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29036 Likewise.
29037 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29038 Likewise.
29039 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29040 (NO_CANCELLATION): Likewise.
29041 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29042 Likewise.
29043 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29044 Likewise.
29045 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29046 Likewise.
29047 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29048 (NO_CANCELLATION): Likewise.
29049 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29050 (NO_CANCELLATION): Likewise.
29051 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29052 Likewise
29053 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29054 Likewise.
29055 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29056 Likewise.
29057 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29058 Likewise.
29059 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29060 hidden prototype.
29061 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29062 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29063
29064 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29065
29066 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29067 in resolver call.
29068
29069 2017-08-31 Florian Weimer <fweimer@redhat.com>
29070
29071 * include/libc-symbols.h (internal_function): Remove.
29072
29073 2017-08-31 Florian Weimer <fweimer@redhat.com>
29074
29075 * stdlib/fmtmsg.c (internal_addseverity): Remove
29076 internal_function.
29077
29078 2017-08-31 Florian Weimer <fweimer@redhat.com>
29079
29080 * stdio-common/printf_fp.c (group_number): Remove
29081 internal_function.
29082 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29083
29084 2017-08-31 Florian Weimer <fweimer@redhat.com>
29085
29086 * posix/fnmatch.c (internal_function): Remove definition.
29087 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29088 * posix/regcomp.c (peek_token, init_word_char)
29089 (duplicate_node_closure, fetch_token, peek_token)
29090 (peek_token_bracket, build_range_exp, build_collating_symbol):
29091 Likewise.
29092 * posix/regex_internal.c (re_string_construct_common)
29093 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29094 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29095 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29096 (re_string_translate_buffer, re_string_reconstruct)
29097 (re_string_peek_byte_case, re_string_fetch_byte_case)
29098 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29099 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29100 (re_node_set_add_intersect, re_node_set_init_union)
29101 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29102 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29103 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29104 (re_acquire_state_context): Likewise.
29105 * posix/regex_internal.h (internal_function): Remove definition.
29106 (re_string_realloc_buffers, build_wcs_buffer)
29107 (build_wcs_upper_buffer, build_upper_buffer)
29108 (re_string_translate_buffer, re_string_context_at)
29109 (re_string_char_size_at, re_string_wchar_at)
29110 (re_string_elem_size_at): Likewise.
29111 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29112 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29113 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29114 (re_search_internal, re_search_2_stub, re_search_stub)
29115 (re_copy_regs, prune_impossible_nodes, check_matching)
29116 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29117 (free_fail_stack_return, sift_states_iter_mb)
29118 (sift_states_backward, build_sifted_states)
29119 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29120 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29121 (check_subexp_limits, sift_states_bkref, merge_state_array)
29122 (find_recover_state, transit_state, merge_state_with_log)
29123 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29124 (transit_state_mb, transit_state_bkref, get_subexp)
29125 (get_subexp_sub, find_subexp_node, check_arrival)
29126 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29127 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29128 (check_node_accept_bytes, find_collation_sequence_value)
29129 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29130 (acquire_init_state_context, check_halt_node_context)
29131 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29132 (sub_epsilon_src_nodes): Likewise.
29133 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29134 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29135 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29136 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29137 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29138 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29139 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29140 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29141 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29142 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29143 (PREADV): Likewise.
29144 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29145 (PREADV): Likewise.
29146 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29147 (PWRITEV): Likewise.
29148 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29149 (PWRITEV): Likewise.
29150 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29151 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29152
29153 2017-08-31 Florian Weimer <fweimer@redhat.com>
29154
29155 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29156 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29157 Remove internal_function.
29158 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29159 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29160 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29161 (__deallocate_stack, __libc_pthread_init)
29162 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29163 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29164 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29165 Likewise.
29166 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29167 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29168 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29169 Likewise.
29170 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29171 (__pthread_mutex_unlock_usercnt): Likewise.
29172
29173 2017-08-31 Florian Weimer <fweimer@redhat.com>
29174
29175 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29176 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29177 (fts_safe_changedir): Remove internal_function.
29178 * io/ftw.c (internal_function): Remove definition.
29179 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29180
29181 2017-08-31 Florian Weimer <fweimer@redhat.com>
29182
29183 * inet/deadline.c (__deadline_current_time)
29184 (__deadline_from_timeval, __deadline_to_ms): Remove
29185 internal_function.
29186 * inet/getnameinfo.c (nrl_domainname): Likewise.
29187 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29188 * inet/inet6_option.c (add_pad): Likewise.
29189 * inet/net-internal.h (__deadline_current_time)
29190 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29191 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29192 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29193 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29194
29195 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29196
29197 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29198 include <bits/nan.h>.
29199 * math/Makefile (headers): Remove bits/nan.h.
29200 * bits/nan.h: Remove.
29201 * sysdeps/ieee754/bits/nan.h: Likewise.
29202 * sysdeps/mips/bits/nan.h: Likewise.
29203
29204 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29205 not include <bits/inf.h>.
29206 * math/Makefile (headers): Remove bits/inf.h.
29207 * bits/inf.h: Remove.
29208 * sysdeps/ieee754/bits/inf.h: Likewise.
29209
29210 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29211 bits/huge_vall.h or bits/huge_val_flt128.h.
29212 (HUGE_VAL): Define directly here.
29213 [__USE_ISOC99] (HUGE_VALF): Likewise.
29214 [__USE_ISOC99] (HUGE_VALL): Likewise.
29215 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29216 (HUGE_VAL_F128): Likewise.
29217 * math/Makefile (headers): Remove bits/huge_val.h,
29218 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29219 * bits/huge_val.h: Remove.
29220 * bits/huge_val_flt128.h: Likewise.
29221 * bits/huge_valf.h: Likewise.
29222 * bits/huge_vall.h: Likewise.
29223 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29224 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29225 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29226 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29227 * sysdeps/sh/bits/huge_val.h: Likewise.
29228 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29229 * sysdeps/x86/bits/huge_vall.h: Likewise.
29230
29231 2017-08-31 Florian Weimer <fweimer@redhat.com>
29232
29233 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29234 internal_function.
29235 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29236 Likewise.
29237 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29238 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29239 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29240 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29241 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29242 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29243 * elf/dl-libc.c (dlerror_run): Likewise.
29244 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29245 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29246 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29247 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29248 Likewise.
29249 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29250 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29251 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29252 * elf/dl-profile.c (_dl_start_profile): Likewise.
29253 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29254 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29255 Likewise.
29256 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29257 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29258 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29259 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29260 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29261 (_dl_allocate_tls_storage): Likewise.
29262 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29263 (_dl_check_all_versions): Likewise.
29264 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29265 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29266 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29267 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29268 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29269 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29270 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29271 internal_function from __dl_start.
29272 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29273 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29274 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29275 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29276 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29277 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29278 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29279 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29280 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29281 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29282 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29283 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29284 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29285 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29286 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29287 Likewise.
29288 (struct rtld_global_ro): Remove internal_function from the
29289 _dl_lookup_symbol_x member.
29290 (_dl_symbol_value): Remove. No longer defined anywhere.
29291 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29292 internal_function.
29293 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29294 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29295 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29296 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29297 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29298 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29299 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29300 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29301 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29302 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29303 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29304 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29305
29306 2017-08-31 Florian Weimer <fweimer@redhat.com>
29307
29308 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29309 Remove internal_function.
29310 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29311 Likewise.
29312 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29313 Likewise.
29314
29315 2017-08-31 Florian Weimer <fweimer@redhat.com>
29316
29317 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29318 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29319 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29320
29321 2017-08-31 Florian Weimer <fweimer@redhat.com>
29322
29323 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29324 (__gai_enqueue_request): Remove internal_function.
29325 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29326 (__gai_remove_request, __gai_notify, __gai_notify_only)
29327 (__gai_sigqueue): Likewise.
29328 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29329 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29330 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29331 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29332 Likewise.
29333
29334 2017-08-31 Florian Weimer <fweimer@redhat.com>
29335
29336 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29337 * include/dirent.h (__opendirat, __getdents, __getdents64)
29338 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29339 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29340 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29341 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29342 Likewise.
29343 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29344
29345 2017-08-31 Florian Weimer <fweimer@redhat.com>
29346
29347 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29348 internal_function.
29349 (GETCWD_RETURN_TYPE): Likewise.
29350
29351 2017-08-31 Florian Weimer <fweimer@redhat.com>
29352
29353 * include/time.h (__tz_compute, __strptime_internal): Remove
29354 internal_function.
29355 * time/strptime_l.c (__strptime_internal): Likewise.
29356 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29357
29358 2017-08-31 Florian Weimer <fweimer@redhat.com>
29359
29360 * iconv/gconv.c (__gconv): Remove internal_function.
29361 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29362 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29363 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29364 (__gconv_release_cache): Likewise.
29365 * iconv/gconv_close.c (__gconv_close): Likewise.
29366 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29367 (read_conf_file, __gconv_get_path): Likewise.
29368 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29369 (__gconv_release_step, gen_steps, increment_counter)
29370 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29371 (__gconv_close_transform, free_modules_db): Likewise.
29372 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29373 Likewise.
29374 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29375 (__gconv_find_transform, __gconv_lookup_cache)
29376 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29377 (__gconv_close_transform, __gconv_release_cache)
29378 (__gconv_loaded_object, __gconv_release_shlib)
29379 (__gconv_compare_alias): Likewise.
29380 * iconv/gconv_open.c (__gconv_open): Likewise.
29381 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29382 * iconv/iconvconfig.c (add_module): Likewise.
29383 * intl/dcigettext.c (plural_lookup, guess_category_value)
29384 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29385 * intl/eval-plural.h (plural_eval): Likewise.
29386 * intl/finddomain.c (_nl_find_domain): Likewise.
29387 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29388 (_nl_load_domain, _nl_find_msg): Likewise.
29389 (internal_function): Remove definition.
29390 * intl/loadinfo.h (internal_function): Likewise.
29391 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29392 internal_function.
29393 * intl/localealias.c (internal_function): Remove definition.
29394 (read_alias_file): Remove internal_function.
29395 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29396 * intl/plural-exp.h (internal_function): Remove definition.
29397 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29398 internal_function.
29399 * intl/plural.c: Regenerate.
29400 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29401 * locale/coll-lookup.c (__collidx_table_lookup)
29402 (__collseq_table_lookup): Likewise.
29403 * locale/coll-lookup.h (__collidx_table_lookup)
29404 (__collseq_table_lookup): Likewise.
29405 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29406 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29407 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29408 (_nl_unload_locale): Likewise.
29409 * locale/localeinfo.h (struct __locale_data): Remove
29410 internal_function from cleanup member.
29411 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29412 (_nl_remove_locale, _nl_load_locale_from_archive)
29413 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29414 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29415 (_nl_cleanup_time): Remove internal_function.
29416 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29417 (_nl_parse_alt_digit): Likewise.
29418 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29419 (_nl_select_era_entry): Likewise.
29420 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29421 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29422 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29423 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29424 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29425
29426 2017-08-31 Florian Weimer <fweimer@redhat.com>
29427
29428 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29429 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29430 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29431 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29432 Likewise.
29433 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29434 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29435 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29436 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29437 Likewise.
29438 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29439
29440 2017-08-31 Florian Weimer <fweimer@redhat.com>
29441
29442 * misc/getttyent.c (skip, value): Remove internal_function.
29443 * misc/syslog.c (openlog_internal): Likewise.
29444 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29445
29446 2017-08-31 Florian Weimer <fweimer@redhat.com>
29447
29448 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29449 (__nss_rewrite_field): Remove internal_function.
29450 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29451 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29452 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29453 * nss/nsswitch.c (nss_parse_file, nss_getline)
29454 (nss_parse_service_list, nss_new_service): Likewise.
29455 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29456 * nss/valid_field.c (__nss_valid_field): Likewise.
29457 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29458
29459 2017-08-31 Florian Weimer <fweimer@redhat.com>
29460
29461 * malloc/arena.c (__malloc_fork_lock_parent)
29462 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29463 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29464 internal_function from defintions.
29465 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29466 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29467 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29468 internal_function from declarations.
29469 * malloc/malloc.c (internal_function): Do not define.
29470 (mem2mem_check): Remove internal_function from declaration.
29471 (munmap_chunk, mremap_chunk): Remove internal_function.
29472 * malloc/mtrace.c (tr_where): Likewise.
29473
29474 2017-08-31 Florian Weimer <fweimer@redhat.com>
29475
29476 * include/rpc/pmap_clnt.h (__get_socket): Remove
29477 internal_function.
29478 * sunrpc/auth_des.c (synchronize): Likewise.
29479 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29480 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29481 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29482 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29483 (key_call): Likewise.
29484 * sunrpc/pm_getport.c (__get_socket): Likewise.
29485 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29486 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29487 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29488 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29489 (invalidate): Likewise.
29490 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29491 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29492 (set_input_fragment, get_input_bytes): Likewise.
29493
29494 2017-08-31 Florian Weimer <fweimer@redhat.com>
29495
29496 * malloc/malloc.c (_int_free): Remove locked variable and related
29497 asserts.
29498
29499 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29500
29501 [BZ #22051]
29502 * Makerules (build-module-helper-objlist): Filter out
29503 $(elf-objpfx)sofini.os.
29504 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29505 needed.
29506
29507 2017-08-31 Florian Weimer <fweimer@redhat.com>
29508
29509 * libio/fcloseall.c: Assume weak_alias is defined.
29510 * libio/feof.c: Likewise.
29511 * libio/fileno.c: Likewise.
29512 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29513 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29514 definitions.
29515 (_IO_file_open): Call __open directly.
29516 (_IO_new_file_sync): Assume ESPIPE is defined.
29517 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29518 (_IO_new_file_write): Call __write directly.
29519 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29520 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29521 * libio/genops.c: Assume _LIBC is defined.
29522 (save_for_backup): Remove internal_function.
29523 * libio/getc.c: Assume weak_alias is defined.
29524 * libio/getwc.c: Likewise.
29525 * libio/iofclose.c: Assume _LIBC is defined.
29526 * libio/iofdopen.c: Likewise.
29527 (_IO_fcntl): Remove macro definition.
29528 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29529 Call __fcntl directly.
29530 * libio/iofflush.c: Assume weak_alias is defined.
29531 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29532 defined.
29533 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29534 * libio/iofgets.c: Likewise.
29535 * libio/iofopen.c: Assume _LIBC is defined.
29536 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29537 * libio/iofputs.c: Assume weak_alias is defined.
29538 * libio/iofread.c: Likewise.
29539 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29540 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29541 * libio/ioftell.c: Assume weak_alias is defined.
29542 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29543 * libio/iofwide.c: Assume _LIBC is defined.
29544 (_IO_fwide): Drop SHARED conditional because it is implied by
29545 SHLIB_COMPAT.
29546 * libio/iofwrite.c: Assume weak_alias is defined.
29547 * libio/iogetdelim.c: Likewise.
29548 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29549 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29550 (_IO_getwline): Call __wmemcpy directly.
29551 * libio/iopopen.c: Assume _LIBC is defined.
29552 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29553 (_IO_close): Remove macro definitions.
29554 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29555 _exit directly.
29556 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29557 directly.
29558 * libio/ioputs.c: Assume weak_alias is defined.
29559 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29560 * libio/iosetbuffer.c: Assume weak_alias is defined.
29561 * libio/iosetvbuf.c: Likewise.
29562 * libio/ioungetc.c: Likewise.
29563 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29564 libc_hidden_def, libc_hidden_weak, NULL are defined.
29565 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29566 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29567 defined.
29568 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29569 definitions.
29570 (_IO_old_file_init_internal): Drop SHARED conditional because it
29571 is implied by SHLIB_COMPAT.
29572 (_IO_old_file_fopen): Call __open directly.
29573 (_IO_old_file_sync): Assume ESPIPE is defined.
29574 (_IO_old_file_write): Call __write directly.
29575 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29576 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29577 Call __fcntl directly.
29578 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29579 (_IO_old_fgetpos): Assume EIO is defined.
29580 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29581 (_IO_old_fgetpos64): Assume EIO is defined.
29582 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29583 (_IO_old_fsetpos): Assume EIO is defined.
29584 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29585 (_IO_old_fsetpos64): Assume EIO is defined.
29586 * libio/oldiopopen.c: Assume _LIBC is defined.
29587 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29588 (_IO_close): Remove macro definitions.
29589 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29590 directly.
29591 (_IO_old_proc_close): Call __close, __waitpid directly.
29592 * libio/put.c: Assume weak_alias is defined.
29593 * libio/stdfiles.c: Assume _LIBC is defined.
29594 * libio/stdio.c: Likewise.
29595 * libio/wfileops.c: Likewise.
29596 (_IO_wfile_sync): Assume ESPIPE is defined.
29597 * libio/wgenops.c: Assume _LIBC is defined.
29598 (save_for_wbackup): Remove internal_function.
29599
29600 2017-08-31 Florian Weimer <fweimer@redhat.com>
29601
29602 * malloc/malloc.c (top_check): Change return type to void. Remove
29603 internal_function.
29604 * malloc/hooks.c (top_check): Likewise.
29605 (malloc_check, realloc_check, memalign_check): Adjust.
29606
29607 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29608
29609 [BZ #21457]
29610 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29611 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29612 sigcontext and namespace requirements.
29613 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29614 * sysdeps/m68k/sys/ucontext.h: Likewise.
29615 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29616 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29617 <bits/sigcontext.h>.
29618 (__ctx): Define earlier.
29619 (mcontext_t): Define structure contents rather than using struct
29620 sigcontext.
29621 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29622 __glibc_reserved1 instead of __reserved.
29623 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29624 <bits/sigcontext.h>.
29625 (__ctx): Define earlier.
29626 (mcontext_t): Define structure contents rather than using struct
29627 sigcontext.
29628 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29629 mcontext_t instead of struct sigcontext.
29630 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29631 <bits/sigcontext.h>.
29632 (__ctx): Define earlier.
29633 (mcontext_t): Define structure contents rather than using struct
29634 sigcontext.
29635 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29636 <bits/sigcontext.h>.
29637 (__ctx): Define earlier.
29638 (mcontext_t): Define structure contents rather than using struct
29639 sigcontext.
29640 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29641 mcontext_t instead of struct sigcontext.
29642 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29643 mcontext_t instead of struct sigcontext.
29644 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29645 <bits/sigcontext.h>.
29646 (__ctx): New macro.
29647 (struct __ia64_fpreg_mcontext): New type.
29648 (mcontext_t): Define structure contents rather than using struct
29649 sigcontext.
29650 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29651 (uc_sigmask): Define using __ctx.
29652 (uc_stack): Likewise.
29653 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29654 <bits/sigcontext.h>.
29655 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29656 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29657 <bits/sigcontext.h>.
29658 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29659 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29660 <bits/sigcontext.h>.
29661 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29662 <bits/sigcontext.h>.
29663 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29664 <bits/sigcontext.h>.
29665 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29666 <bits/sigcontext.h>.
29667 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29668 <bits/sigcontext.h>.
29669 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29670 <bits/sigcontext.h>.
29671 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29672 <bits/sigcontext.h>.
29673 (__ctx): Define earlier.
29674 (mcontext_t): Define structure contents rather than using struct
29675 sigcontext.
29676 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29677 <bits/sigcontext.h>. Include <bits/types.h>.
29678 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29679 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29680 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29681 (test-xfail-UNIX98/signal.h/conform): Likewise.
29682 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29683 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29684 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29685 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29686 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29687 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29688 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29689 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29690 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29691
29692 2017-08-30 Florian Weimer <fweimer@redhat.com>
29693
29694 * malloc/dynarray_emplace_enlarge.c
29695 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29696 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29697 * malloc/tst-dynarray.c (test_long_overflow): New function.
29698 (do_test): Call it.
29699
29700 2017-08-30 Florian Weimer <fweimer@redhat.com>
29701
29702 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29703 (set_arena_corrupt): Remove definitions.
29704 (mtrim): Do not check for corrupt arena.
29705 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29706 Likewise.
29707
29708 2017-08-30 Florian Weimer <fweimer@redhat.com>
29709
29710 [BZ #21754]
29711 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29712 check_action.
29713 (ptmalloc_init): Do not set or use check_action.
29714 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29715 call to malloc_printerr. Remove return statement.
29716 (free_check): Likewise. Remove arena unlock.
29717 (top_check): Update comment. Adjust call to malloc_printerr.
29718 Remove heap repair code.
29719 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29720 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29721 (sysmalloc): Adjust call to malloc_printerr.
29722 (munmap_chunk, __libc_realloc): Likewise. Remove return
29723 statement.
29724 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29725 Remove errout label and corresponding gotos.
29726 (_int_free): Likewise. Remove arena unlock.
29727 (do_set_mallopt_check): Do not set check_action.
29728 (malloc_printerr): Adjust parameter list. Do not mark arena as
29729 corrupt.
29730 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29731 comment.
29732 * manual/probes.texi (Memory Allocation Probes): Remove
29733 memory_mallopt_check_action.
29734
29735 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29736
29737 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29738 Use pointer to uint64_t instead of long int for sp.
29739
29740 2017-08-30 Florian Weimer <fweimer@redhat.com>
29741
29742 [BZ #21754]
29743 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29744 without printing a backtrace. Do not leak any information in the
29745 error message.
29746 * manual/memory.texi (Heap Consistency Checking): Update.
29747 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29748
29749 2017-08-30 Florian Weimer <fweimer@redhat.com>
29750
29751 Do not scale NPTL tests with available number of CPUs.
29752 * nptl/tst-cond16.c (count): Set to constant value of 8.
29753 * nptl/tst-cond18.c (count): Likewise.
29754
29755 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29756
29757 [BZ #22035]
29758 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29759 Define to take a second argument that is a macro that
29760 concatentates a suffix, not the suffix itself.
29761 (__CONCAT_d): New macro.
29762 (__CONCAT_f): Likewise.
29763 (__CONCAT_l): Likewise.
29764
29765 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29766
29767 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29768 by child.
29769
29770 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29771 Aurelien Jarno <aurelien@aurel32.net>
29772 Maciej W. Rozycki <macro@imgtec.com>
29773
29774 [BZ #21956]
29775 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29776 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29777 `mips16-syscall6' and `mips16-syscall7'.
29778 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29779 (CFLAGS-mips16-syscall7.c): Remove.
29780 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29781 Remove `__mips16_syscall5', `__mips16_syscall6' and
29782 `__mips16_syscall7'.
29783 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29784 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29785 `__mips_syscall_return'.
29786 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29787 (__mips16_syscall1): Likewise.
29788 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29789 (__mips16_syscall2): Likewise.
29790 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29791 (__mips16_syscall3): Likewise.
29792 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29793 (__mips16_syscall4): Likewise.
29794 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29795 Remove.
29796 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29797 Remove.
29798 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29799 Remove.
29800 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29801 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29802 `__mips16_syscall5'. Remove prototype.
29803 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29804 `__mips16_syscall6'. Remove prototype.
29805 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29806 `__mips16_syscall7'. Remove prototype.
29807 (__nomips16, __mips16_syscall_return): Move to...
29808 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29809 (__nomips16, __mips_syscall_return): ... here.
29810 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29811 `__mips16_syscall_return' to `__mips_syscall_return'.
29812 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29813 `internal_syscall##nr'.
29814 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29815 `internal_syscall##nr'.
29816 (FORCE_FRAME_POINTER): Remove.
29817 (__mips_syscall5): New prototype.
29818 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29819 (__mips_syscall6): New prototype.
29820 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29821 (__mips_syscall7): New prototype.
29822 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29823 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29824 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29825 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29826 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29827 (sysdep_routines): Add libc-do-syscall.
29828 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29829 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29830
29831 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29832
29833 [BZ #21672]
29834 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29835 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29836 (advise_stack_range): New function.
29837 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29838 stack non required to advise_stack_range at allocatestack.c
29839
29840 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29841
29842 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29843
29844 2017-08-29 Florian Weimer <fweimer@redhat.com>
29845
29846 [BZ #22026]
29847 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29848 __end_fct. Mangle __end_fct after setting it to NULL.
29849 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29850 (modules-names, modules-names-tests): Add
29851 tst-gconv-init-failure-mod.
29852 (gconv-modules): New target.
29853 (tst-gconv-init-failure-mod.so): Link against libsupport.
29854 (tst-gconv-init-failure): Depend on gconv-modules,
29855 tst-gconv-init-failure-mod.so.
29856 * iconv/tst-gconv-init-failure-mod.c: New file.
29857 * iconv/tst-gconv-init-failure.c: Likewise.
29858 * iconv/test-gconv-modules: Likewise.
29859
29860 2017-08-29 Florian Weimer <fweimer@redhat.com>
29861
29862 [BZ #22025]
29863 * iconv/gconv_db.c (free_derivation): Remove redundant
29864 parentheses.
29865 (gen_steps): Unconditionally mangle __btowc_fct after
29866 initialization.
29867 (increment_counter): Likewise. Do not call init_fct for internal
29868 modules.
29869
29870 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29871
29872 [BZ #22028]
29873 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29874 (_MSUF_): Remove macro.
29875 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29876 Likewise.
29877 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29878 (__REDIRFROM_X): New macro.
29879 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29880 Likewise.
29881 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29882 (__REDIRTO_X): Likewise.
29883 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29884 arguments.
29885 (__MATH_REDIRCALL_2): Likewise.
29886 (__MATH_REDIRCALL_INTERNAL): Likewise.
29887 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29888 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29889 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29890 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29891 * math/test-finite-macros.c: New file.
29892 * math/Makefile (tests): Add test-finite-macros.
29893 (CFLAGS-test-finite-macros.c): New variable.
29894
29895 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29896 Jeff Law <law@redhat.com>
29897
29898 [BZ #22025]
29899 Mangle NULL pointers in iconv/gconv.
29900 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29901 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29902 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29903 is non-NULL before demangling the end_fct. Check for NULL
29904 end_fct after demangling.
29905 (__gconv_release_step): Demangle the end_fct before checking
29906 it for NULL. Remove assert on __shlibc_handle != NULL.
29907 (gen_steps): Don't check btowc_fct for NULL before mangling.
29908 Demangle init_fct before checking for NULL.
29909 (increment_counter): Likewise.
29910 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29911 end_fct for NULL before mangling.
29912 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29913 for NULL.
29914
29915 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29916
29917 [BZ #21971]
29918 * locale/iso-639.def: add Morisyen.
29919
29920 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29921
29922 [BZ #21930]
29923 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29924 (iszero): New C++ implementation that does not use
29925 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29926 signaling nans are enabled, since __builtin_types_compatible_p
29927 is a C-only feature.
29928 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29929 defined, include ieee754_float128.h for access to the union and
29930 member ieee854_float128.ieee.
29931 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29932 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29933 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29934 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29935 options of test-math-zero on powerpc64le.
29936
29937 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29938
29939 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29940 Change double to float.
29941
29942 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29943
29944 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29945 unconditional.
29946 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29947 conditional code; define contents only for [LIBM_SVID_COMPAT].
29948
29949 2017-08-28 Florian Weimer <fweimer@redhat.com>
29950
29951 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29952 (abi-lp64_be-options): Remove.
29953 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29954 (abi-hard-options): Likewise.
29955 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29956 (abi-o32_hard-options, abi-o32_soft_2008-options)
29957 (abi-o32_hard_2008-options, abi-n32_soft-options)
29958 (abi-n32_hard-options, abi-n32_soft_2008-options)
29959 (abi-n32_hard_2008-options, abi-n64_soft-options)
29960 (abi-n64_hard-options, abi-n64_soft_2008-options)
29961 (abi-n64_hard_2008-options): Likewise.
29962 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29963 (abi-64-v1-options, abi-64-v2-options): Likewise.
29964 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29965 (abi-64-options): Likewise.
29966 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29967 (abi-64-options): Likewise.
29968 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29969 (abi-64-options): Likewise.
29970 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29971 (abi-64-options, abi-x32-options): Likewise.
29972
29973 2017-08-28 Florian Weimer <fweimer@redhat.com>
29974
29975 Store supported list of SYS_* system calls in the source tree.
29976 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29977 (bits/syscall.h): Generate from list file.
29978 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29979 [$(subdir) = misc] (tests): Add tst-syscall-list.
29980 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29981 [$(subdir) = misc] (tst-syscall-list-macros.list)
29982 [$(subdir) = misc] (tst-syscall-list-nr.list)
29983 (tst-syscall-list-sys.list): Helper targets for new
29984 tst-syscall-list test.
29985 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29986 tst-syscall-list.sh.
29987 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29988 target. Do not include bits/syscall.d.
29989 [$(subdir) = misc] (generated): Do not update.
29990 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29991 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29992 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29993 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29994
29995 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29996
29997 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29998 (tst-cxa_atexit, tst-on_exit): Likewise.
29999 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30000 tst-cxa_atexit, and tst-on_exit.
30001 * stdlib/tst-atexit-common.c: New file.
30002 * stdlib/tst-atexit.c: New file.
30003 * stdlib/tst-at_quick_exit.c: New file.
30004 * stdlib/tst-cxa_atexit.c: New file.
30005 * stdlib/tst-on_exit.c: New file.
30006
30007 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30008
30009 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30010 * mach/stack_chk_fail_local.c: New file.
30011 * hurd/stack_chk_fail_local.c: New file.
30012 * mach/Machrules ($(interface-library)-routines): Add
30013 stack_chk_fail_local.
30014 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30015 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30016 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30017 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30018 * hurd/Makefile (CFLAGS-hurdstartup.o,
30019 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30020
30021 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30022
30023 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30024 (index_cpu_*, index_arch_*): Removed.
30025
30026 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30027
30028 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30029 Use uint64_t instead of unsigned long.
30030
30031 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30032
30033 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30034 [__HAVE_DISTINCT_FLOAT128].
30035
30036 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30037 of <bits/math-finite.h>.
30038 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30039 inclusion of <bits/math-finite.h>.
30040 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30041 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30042 __NO_LONG_DOUBLE_MATH].
30043 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30044 (__MATH_REDIRCALL_2): Likewise.
30045 (__MATH_REDIRCALL_INTERNAL): Likewise.
30046 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30047 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30048 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30049
30050 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30051 Remove file.
30052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30053 Likewise.
30054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30055 Likewise.
30056 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30057 Likewise.
30058 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30059 Likewise.
30060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30061 Likewise.
30062 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30063 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30064 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30065 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30067 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30068 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30069 w_sqrtf_compat-ppc32.
30070
30071 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30072
30073 * math/math.h [defined __cplusplus] (issignaling): In the long
30074 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30075 is not defined. Call __issignaling, otherwise.
30076
30077 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30078
30079 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30080 syscall definitions and replace __builtin_expect with __glibc_likely.
30081 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30082 syscall.
30083 (SYSCALL_CANCELLABLE): Removedefinition
30084 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30085 definition.
30086 (PSEUDO_END): Likewise.
30087 [IS_IN (libpthread)] (CENABLE): Likewise.
30088 [IS_IN (libpthread)] (CDISABLE): Likewise.
30089 [IS_IN (libc)] (CENABLE): Likewise.
30090 [IS_IN (libc)] (CENABLE): Likewise.
30091 [IS_IN (librt)] (CDISABLE): Likewise.
30092 [IS_IN (librt)] (CDISABLE): Likewise.
30093 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30094 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30095 definition.
30096 (PSEUDO_END): Likewise.
30097 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30098 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30099 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30100 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30101 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30102 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30103 (CENABLE): Likewise.
30104 (CDISABLE): Likewise.
30105 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30106 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30107 defintion.
30108 (PSEUDO_END): Likewise.
30109 [IS_IN (libpthread)] (CENABLE): Likewise.
30110 [IS_IN (libpthread)] (CDISABLE): Likewise.
30111 [IS_IN (libc)] (CENABLE): Likewise.
30112 [IS_IN (libc)] (CENABLE): Likewise.
30113 [IS_IN (librt)] (CDISABLE): Likewise.
30114 [IS_IN (librt)] (CDISABLE): Likewise.
30115 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30116 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30117 definition.
30118 (PSEUDO_END): Likewise.
30119 [IS_IN (libpthread)] (CENABLE): Likewise.
30120 [IS_IN (libpthread)] (CDISABLE): Likewise.
30121 [IS_IN (libc)] (CENABLE): Likewise.
30122 [IS_IN (libc)] (CENABLE): Likewise.
30123 [IS_IN (librt)] (CDISABLE): Likewise.
30124 [IS_IN (librt)] (CDISABLE): Likewise.
30125 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30126 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30127 definition.
30128 (PSEUDO_END): Likewise.
30129 [IS_IN (libpthread)] (CENABLE): Likewise.
30130 [IS_IN (libpthread)] (CDISABLE): Likewise.
30131 [IS_IN (libc)] (CENABLE): Likewise.
30132 [IS_IN (libc)] (CENABLE): Likewise.
30133 [IS_IN (librt)] (CDISABLE): Likewise.
30134 [IS_IN (librt)] (CDISABLE): Likewise.
30135 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30136 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30137 definition.
30138 (PSEUDO_END): Likewise.
30139 [IS_IN (libpthread)] (CENABLE): Likewise.
30140 [IS_IN (libpthread)] (CDISABLE): Likewise.
30141 [IS_IN (libc)] (CENABLE): Likewise.
30142 [IS_IN (libc)] (CENABLE): Likewise.
30143 [IS_IN (librt)] (CDISABLE): Likewise.
30144 [IS_IN (librt)] (CDISABLE): Likewise.
30145 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30146 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30147 definition.
30148 (PSEUDO_END): Likewise.
30149 [IS_IN (libpthread)] (CENABLE): Likewise.
30150 [IS_IN (libpthread)] (CDISABLE): Likewise.
30151 [IS_IN (libc)] (CENABLE): Likewise.
30152 [IS_IN (libc)] (CENABLE): Likewise.
30153 [IS_IN (librt)] (CDISABLE): Likewise.
30154 [IS_IN (librt)] (CDISABLE): Likewise.
30155 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30156 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30157 definition.
30158 (PSEUDO_END): Likewise.
30159 [IS_IN (libpthread)] (CENABLE): Likewise.
30160 [IS_IN (libpthread)] (CDISABLE): Likewise.
30161 [IS_IN (libc)] (CENABLE): Likewise.
30162 [IS_IN (libc)] (CENABLE): Likewise.
30163 [IS_IN (librt)] (CDISABLE): Likewise.
30164 [IS_IN (librt)] (CDISABLE): Likewise.
30165 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30166 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30167 Remove definition.
30168 (PSEUDO_END): Likewise.
30169 [IS_IN (libpthread)] (CENABLE): Likewise.
30170 [IS_IN (libpthread)] (CDISABLE): Likewise.
30171 [IS_IN (libc)] (CENABLE): Likewise.
30172 [IS_IN (libc)] (CENABLE): Likewise.
30173 [IS_IN (librt)] (CDISABLE): Likewise.
30174 [IS_IN (librt)] (CDISABLE): Likewise.
30175 (SINGLE_THREAD_P): Likewise.
30176 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30177 definition.
30178 (PSEUDO_END): Likewise.
30179 [IS_IN (libpthread)] (CENABLE): Likewise.
30180 [IS_IN (libpthread)] (CDISABLE): Likewise.
30181 [IS_IN (libc)] (CENABLE): Likewise.
30182 [IS_IN (libc)] (CENABLE): Likewise.
30183 [IS_IN (librt)] (CDISABLE): Likewise.
30184 [IS_IN (librt)] (CDISABLE): Likewise.
30185 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30186 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30187 definition.
30188 (PSEUDO_END): Likewise.
30189 [IS_IN (libpthread)] (CENABLE): Likewise.
30190 [IS_IN (libpthread)] (CDISABLE): Likewise.
30191 [IS_IN (libc)] (CENABLE): Likewise.
30192 [IS_IN (libc)] (CENABLE): Likewise.
30193 [IS_IN (librt)] (CDISABLE): Likewise.
30194 [IS_IN (librt)] (CDISABLE): Likewise.
30195 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30196 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30197 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30198 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30199 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30200 definition.
30201 (PSEUDO_END): Likewise.
30202 [IS_IN (libpthread)] (CENABLE): Likewise.
30203 [IS_IN (libpthread)] (CDISABLE): Likewise.
30204 [IS_IN (libc)] (CENABLE): Likewise.
30205 [IS_IN (libc)] (CENABLE): Likewise.
30206 [IS_IN (librt)] (CDISABLE): Likewise.
30207 [IS_IN (librt)] (CDISABLE): Likewise.
30208 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30209 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30210 definition.
30211 (PSEUDO_END): Likewise.
30212 [IS_IN (libpthread)] (CENABLE): Likewise.
30213 [IS_IN (libpthread)] (CDISABLE): Likewise.
30214 [IS_IN (libc)] (CENABLE): Likewise.
30215 [IS_IN (libc)] (CENABLE): Likewise.
30216 [IS_IN (librt)] (CDISABLE): Likewise.
30217 [IS_IN (librt)] (CDISABLE): Likewise.
30218 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30219 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30220 definition.
30221 (PSEUDO_END): Likewise.
30222 [IS_IN (libpthread)] (CENABLE): Likewise.
30223 [IS_IN (libpthread)] (CDISABLE): Likewise.
30224 [IS_IN (libc)] (CENABLE): Likewise.
30225 [IS_IN (libc)] (CENABLE): Likewise.
30226 [IS_IN (librt)] (CDISABLE): Likewise.
30227 [IS_IN (librt)] (CDISABLE): Likewise.
30228 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30229 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30230 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30231 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30232 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30233 definition.
30234 (PSEUDO_END): Likewise.
30235 [IS_IN (libpthread)] (CENABLE): Likewise.
30236 [IS_IN (libpthread)] (CDISABLE): Likewise.
30237 [IS_IN (libc)] (CENABLE): Likewise.
30238 [IS_IN (libc)] (CENABLE): Likewise.
30239 [IS_IN (librt)] (CDISABLE): Likewise.
30240 [IS_IN (librt)] (CDISABLE): Likewise.
30241 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30242 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30243 definition.
30244 (PSEUDO_END): Likewise.
30245 [IS_IN (libpthread)] (CENABLE): Likewise.
30246 [IS_IN (libpthread)] (CDISABLE): Likewise.
30247 [IS_IN (libc)] (CENABLE): Likewise.
30248 [IS_IN (libc)] (CENABLE): Likewise.
30249 [IS_IN (librt)] (CDISABLE): Likewise.
30250 [IS_IN (librt)] (CDISABLE): Likewise.
30251 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30252
30253 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30254
30255 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30256
30257 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30258
30259 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30260
30261 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30262
30263 [BZ #21982]
30264 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30265 middle and outer with size_t instead of int. Repleace %d and
30266 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30267 "MAX (outer, nchars - 64)" to support unsigned outer and
30268 nchars. Also exit loop when outer == 0.
30269
30270 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30271
30272 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30273 * include/signal.h (__sigsuspend_nocancel): Likewise.
30274 * include/time.h (__nanosleep_nocancel): Likewise.
30275 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30276 * login/utmp_file.c: Include non cancellable syscall header.
30277 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30278 prototype.
30279
30280 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30283 .byte sequences with AVX512F instructions.
30284 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30285 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30286 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30287 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30288 Likewise.
30289 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30290 Likewise.
30291
30292 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30293 Steve Ellcey <sellcey@cavium.com>
30294
30295 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30296 Use PTR_REG macro in cmp instruction.
30297
30298 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30299
30300 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30301 Change the return type of the ifunc resolver to match the return
30302 type of the target function.
30303
30304 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30305
30306 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30307 (preadv64): Likewise.
30308 (pwrite64(: Likewise.
30309 (pwritev64): Likewise.
30310
30311 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30312 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30313 (LOAD_ARGS_0): Likewise.
30314 (LOAD_ARGS_1): Likewise.
30315 (LOAD_ARGS_2): Likewise.
30316 (LOAD_ARGS_3): Likewise.
30317 (LOAD_ARGS_4): Likewise.
30318 (LOAD_ARGS_5): Likewise.
30319 (LOAD_ARGS_6): Likewise.
30320 (LOAD_REGS_0): Likewise.
30321 (LOAD_REGS_1): Likewise.
30322 (LOAD_REGS_2): Likewise.
30323 (LOAD_REGS_3): Likewise.
30324 (LOAD_REGS_4): Likewise.
30325 (LOAD_REGS_5): Likewise.
30326 (LOAD_REGS_6): Likewise.
30327 (ASM_ARGS_0): Likewise.
30328 (ASM_ARGS_1): Likewise.
30329 (ASM_ARGS_2): Likewise.
30330 (ASM_ARGS_3): Likewise.
30331 (ASM_ARGS_4): Likewise.
30332 (ASM_ARGS_5): Likewise.
30333 (ASM_ARGS_6): Likewise.
30334 (LOAD_ARGS_TYPES_1): Likewise.
30335 (LOAD_ARGS_TYPES_2): Likewise.
30336 (LOAD_ARGS_TYPES_3): Likewise.
30337 (LOAD_ARGS_TYPES_4): Likewise.
30338 (LOAD_ARGS_TYPES_5): Likewise.
30339 (LOAD_ARGS_TYPES_6): Likewise.
30340 (LOAD_REGS_TYPES_1): Likewise.
30341 (LOAD_REGS_TYPES_2): Likewise.
30342 (LOAD_REGS_TYPES_3): Likewise.
30343 (LOAD_REGS_TYPES_4): Likewise.
30344 (LOAD_REGS_TYPES_5): Likewise.
30345 (LOAD_REGS_TYPES_6): Likewise.
30346 (TYPEFY): New define.
30347 (ARGIFY): Likewise.
30348 (internal_syscall0): Likewise.
30349 (internal_syscall1): Likewise.
30350 (internal_syscall2): Likewise.
30351 (internal_syscall3): Likewise.
30352 (internal_syscall4): Likewise.
30353 (internal_syscall5): Likewise.
30354 (internal_syscall6): Likewise.
30355 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30356 (INTERNAL_SYSCALL_NCS): Remove define.
30357 (internal_syscall1): Add define.
30358
30359 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30360
30361 * math/w_remainder_compat.c: Remove duplicate inclusion of
30362 math-svid-compat.h.
30363 * math/w_remainderf_compat.c: Likewise.
30364 * math/w_remainderl_compat.c: Likewise.
30365
30366 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30367
30368 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30369
30370 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30371
30372 [BZ #21684]
30373 * math/tgmath.h (__floating_type): Simplify definitions.
30374 (__real_integer_type): New macro.
30375 (__complex_integer_type): Likewise.
30376 (__expr_is_real): Likewise.
30377 (__tgmath_real_type_sub): Update comment to describe handling of
30378 complex types.
30379 (__tgmath_complex_type_sub): New macro.
30380 (__tgmath_complex_type): Likewise.
30381 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30382 (__TGMATH_CF128): Use __expr_is_real.
30383 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30384 __expr_is_real.
30385 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30386 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30387 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30388 integer types.
30389
30390 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30391
30392 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30393 macro.
30394 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30395 alias.
30396 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30397 Likewise.
30398
30399 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30400 nanosleep_not_cancel with __nanosleep_nocancel.
30401 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30402 (__nanosleep_nocancel): New macro.
30403 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30404 function.
30405 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30406 macro.
30407 (__nanosleep_nocancel): New prototype.
30408
30409 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30410 pause_not_cancel with __pause_nocancel.
30411 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30412 (__pause_nocancel): New macro.
30413 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30414 macro.
30415 (__pause_nocancel): New prototype.
30416 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30417
30418 2017-08-22 Martin Sebor <msebor@redhat.com>
30419
30420 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30421 to return a pointer to the same type as the target function.
30422
30423 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30424
30425 [BZ #18822]
30426 [BZ #21986]
30427 * include/printf.h (__printf_fphex): Add attribute_hidden.
30428 (__guess_grouping): New prototype.
30429 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30430 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30431 libc_hidden_proto and libc_hidden_def.
30432 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30433 (__vstrfmon_l): Remove the third argument passed to
30434 __guess_grouping.
30435
30436 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30437
30438 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30439 definition for issignaling that does not rely on __MATH_TG,
30440 since __MATH_TG uses __builtin_types_compatible_p, which is only
30441 available in C mode.
30442 (CFLAGS-test-math-issignaling.cc): New variable.
30443 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30444 * math/test-math-issignaling.cc: New test for C++ implementation
30445 of type-generic issignaling.
30446 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30447 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30448 options of test-math-issignaling on powerpc64le.
30449
30450 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30451
30452 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30453 building libc.a.
30454 (hidden_proto): Likewise.
30455 (hidden_tls_proto): Likewise.
30456 (__hidden_proto): Likewise.
30457
30458 2017-08-22 Florian Weimer <fweimer@redhat.com>
30459
30460 math: Statically link tests of internal functionality.
30461 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30462 atest-exp2.
30463 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30464 (gmp-objs): Remove assignment.
30465 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30466
30467 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30468
30469 [BZ #21987]
30470 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30471 and copy to ...
30472 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30473 ... here.
30474 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30475 ... and here.
30476
30477 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30478 variable definitions above inclusion of ../Rules.
30479
30480 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30481
30482 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30483 case calling __builtin_unreachable.
30484
30485 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30486
30487 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30488 __waitpid_nocancel.
30489 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30490 (__waitpid_nocancel): New macro.
30491 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30492 macro.
30493 (__waitpid_nocancel): Replace macro with a function.
30494 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30495 function.
30496
30497 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30498 __fcntl_nocancel.
30499 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30500 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30501
30502 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30503 __writev_nocancel_nostatus.
30504 (write_call_graph): Likewise.
30505 (write_bb_counts): Likewise.
30506 * resolv/herror.c (herror): Likewise.
30507 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30508 macro.
30509 (__writev_nocancel_nostatus): New macro.
30510 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30511 Remove macro.
30512 (__writev_nocancel_nostatus): New function.
30513
30514 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30515
30516 Revert:
30517 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30518
30519 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30520 building libc.a.
30521 (hidden_proto): Likewise.
30522 (hidden_tls_proto): Likewise.
30523 (__hidden_proto): Likewise.
30524
30525 [BZ #21973]
30526 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30527 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30529 Likewise.
30530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30531 Likewise.
30532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30533 Likewise.
30534 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30535 Likewise.
30536 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30537 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30538 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30539 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30540 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30541 GLIBC_2.0 sqrtl symbol.
30542
30543 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30544 [__USE_MISC] (_LIB_VERSION): Likewise.
30545 [__USE_MISC] (struct exception): Likewise.
30546 [__USE_MISC] (matherr): Likewise.
30547 [__USE_MISC] (DOMAIN): Likewise.
30548 [__USE_MISC] (SING): Likewise.
30549 [__USE_MISC] (OVERFLOW): Likewise.
30550 [__USE_MISC] (UNDERFLOW): Likewise.
30551 [__USE_MISC] (TLOSS): Likewise.
30552 [__USE_MISC] (PLOSS): Likewise.
30553 [__USE_MISC] (HUGE): Likewise.
30554 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30555 * math/math-svid-compat.h: New file.
30556 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30557 and matherrl.
30558 * include/math.h [!_ISOMAC] (__matherr): Remove.
30559 * manual/arith.texi (FP Exceptions): Do not document matherr.
30560 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30561 (tests-internal): New variable.
30562 (install-lib): Do not add libieee.a.
30563 (non-lib.a): Likewise.
30564 (extra-objs): Do not add libieee.a and ieee-math.o.
30565 (CPPFLAGS-s_lib_version.c): Remove variable.
30566 ($(objpfx)libieee.a): Remove rule.
30567 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30568 * math/ieee-math.c: Remove.
30569 * math/libm-test-support.c (matherr): Remove.
30570 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30571 and license notices. Include <math-svid-compat.h> and
30572 <shlib-compat.h>.
30573 (matherr): Undefine as macro. Use compat_symbol_reference.
30574 (_LIB_VERSION): Likewise.
30575 * math/test-matherr-2.c: New file.
30576 * math/test-matherr-3.c: Likewise.
30577 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30578 declaration.
30579 (__kernel_standard_f): Likewise.
30580 (__kernel_standard_l): Likewise.
30581 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30582 <math_private.h>. Include <math-svid-compat.h>.
30583 (_LIB_VERSION): Undefine as macro.
30584 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30585 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30586 [LIBM_SVID_COMPAT], use compat_symbol.
30587 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30588 <math_private.h>. Include <math-svid-compat.h>.
30589 (matherr): Undefine as macro.
30590 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30591 compat_symbol.
30592 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30593 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30594 compat_symbol_reference.
30595 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30596 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30597 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30598 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30599 (MATHERR_D): Remove declaration.
30600 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30601 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30602 [LIBM_BUILD] (pmatherrf): Likewise.
30603 [LIBM_BUILD] (pmatherr): Likewise.
30604 [LIBM_BUILD] (pmatherrl): Likewise.
30605 (DOMAIN): Likewise.
30606 (SING): Likewise.
30607 (OVERFLOW): Likewise.
30608 (UNDERFLOW): Likewise.
30609 (TLOSS): Likewise.
30610 (PLOSS): Likewise.
30611 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30612 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30613 compat_symbol.
30614 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30615 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30616 compat_symbol.
30617 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30618 * math/w_acos_compat.c: Likewise.
30619 * math/w_acosf_compat.c: Likewise.
30620 * math/w_acosh_compat.c: Likewise.
30621 * math/w_acoshf_compat.c: Likewise.
30622 * math/w_acoshl_compat.c: Likewise.
30623 * math/w_acosl_compat.c: Likewise.
30624 * math/w_asin_compat.c: Likewise.
30625 * math/w_asinf_compat.c: Likewise.
30626 * math/w_asinl_compat.c: Likewise.
30627 * math/w_atan2_compat.c: Likewise.
30628 * math/w_atan2f_compat.c: Likewise.
30629 * math/w_atan2l_compat.c: Likewise.
30630 * math/w_atanh_compat.c: Likewise.
30631 * math/w_atanhf_compat.c: Likewise.
30632 * math/w_atanhl_compat.c: Likewise.
30633 * math/w_cosh_compat.c: Likewise.
30634 * math/w_coshf_compat.c: Likewise.
30635 * math/w_coshl_compat.c: Likewise.
30636 * math/w_exp10_compat.c: Likewise.
30637 * math/w_exp10f_compat.c: Likewise.
30638 * math/w_exp10l_compat.c: Likewise.
30639 * math/w_exp2_compat.c: Likewise.
30640 * math/w_exp2f_compat.c: Likewise.
30641 * math/w_exp2l_compat.c: Likewise.
30642 * math/w_fmod_compat.c: Likewise.
30643 * math/w_fmodf_compat.c: Likewise.
30644 * math/w_fmodl_compat.c: Likewise.
30645 * math/w_hypot_compat.c: Likewise.
30646 * math/w_hypotf_compat.c: Likewise.
30647 * math/w_hypotl_compat.c: Likewise.
30648 * math/w_j0_compat.c: Likewise.
30649 * math/w_j0f_compat.c: Likewise.
30650 * math/w_j0l_compat.c: Likewise.
30651 * math/w_j1_compat.c: Likewise.
30652 * math/w_j1f_compat.c: Likewise.
30653 * math/w_j1l_compat.c: Likewise.
30654 * math/w_jn_compat.c: Likewise.
30655 * math/w_jnf_compat.c: Likewise.
30656 * math/w_jnl_compat.c: Likewise.
30657 * math/w_lgamma_main.c: Likewise.
30658 * math/w_lgamma_r_compat.c: Likewise.
30659 * math/w_lgammaf_main.c: Likewise.
30660 * math/w_lgammaf_r_compat.c: Likewise.
30661 * math/w_lgammal_main.c: Likewise.
30662 * math/w_lgammal_r_compat.c: Likewise.
30663 * math/w_log10_compat.c: Likewise.
30664 * math/w_log10f_compat.c: Likewise.
30665 * math/w_log10l_compat.c: Likewise.
30666 * math/w_log2_compat.c: Likewise.
30667 * math/w_log2f_compat.c: Likewise.
30668 * math/w_log2l_compat.c: Likewise.
30669 * math/w_log_compat.c: Likewise.
30670 * math/w_logf_compat.c: Likewise.
30671 * math/w_logl_compat.c: Likewise.
30672 * math/w_pow_compat.c: Likewise.
30673 * math/w_powf_compat.c: Likewise.
30674 * math/w_powl_compat.c: Likewise.
30675 * math/w_remainder_compat.c: Likewise.
30676 * math/w_remainderf_compat.c: Likewise.
30677 * math/w_remainderl_compat.c: Likewise.
30678 * math/w_scalb_compat.c: Likewise.
30679 * math/w_scalbf_compat.c: Likewise.
30680 * math/w_scalbl_compat.c: Likewise.
30681 * math/w_sinh_compat.c: Likewise.
30682 * math/w_sinhf_compat.c: Likewise.
30683 * math/w_sinhl_compat.c: Likewise.
30684 * math/w_sqrt_compat.c: Likewise.
30685 * math/w_sqrtf_compat.c: Likewise.
30686 * math/w_sqrtl_compat.c: Likewise.
30687 * math/w_tgamma_compat.c: Likewise.
30688 * math/w_tgammaf_compat.c: Likewise.
30689 * math/w_tgammal_compat.c: Likewise.
30690 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30691 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30692 * sysdeps/ieee754/k_standard.c: Likewise.
30693 * sysdeps/ieee754/k_standardf.c: Likewise.
30694 * sysdeps/ieee754/k_standardl.c: Likewise.
30695 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30696 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30697 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30698 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30699 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30700 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30701 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30702 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30703 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30705 Likewise.
30706 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30707 Likewise.
30708 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30709 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30710 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30711 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30712
30713 2017-08-21 Florian Weimer <fweimer@redhat.com>
30714
30715 [BZ #21864]
30716 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30717 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30718 Move before inclusion of ../Rules.
30719
30720 2017-08-21 Florian Weimer <fweimer@redhat.com>
30721
30722 [BZ #21972]
30723 * assert/assert.h (assert): Use static_cast (bool) for C++.
30724 Use the ternary operator in the warning branch for GNU C.
30725 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30726 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30727 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30728 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30729 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30730
30731 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30732
30733 [BZ #18822]
30734 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30735 (__syscall_clock_gettime): Add attribute_hidden.
30736 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30737 (__start_context): Likewise.
30738
30739 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30740
30741 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30742 building libc.a.
30743 (hidden_proto): Likewise.
30744 (hidden_tls_proto): Likewise.
30745 (__hidden_proto): Likewise.
30746
30747 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30748
30749 * include/libc-symbols.h (attribute_hidden): Enable hidden
30750 visibility in libc.a compiled with PIE.
30751
30752 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30753
30754 [BZ #18822]
30755 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30756 Add attribute_hidden.
30757
30758 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30759
30760 [BZ #21864]
30761 * Makerules (all-nonlib): Add $(others-extras).
30762 * catgets/Makefile (others-extras): New.
30763 * elf/Makefile (others-extras): Likewise.
30764 * nss/Makefile (others-extras): Likewise.
30765
30766 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30767
30768 [BZ #18822]
30769 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30770 * elf/dl-open.c: Include <libc-internal.h>.
30771 (__libc_multiple_libcs): Removed.
30772 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30773 <hp-timing.h>.
30774 * include/libc-internal.h (__libc_multiple_libcs): New.
30775 * misc/sbrk.c: Include <libc-internal.h>.
30776 (__libc_multiple_libcs): Removed.
30777
30778 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30779
30780 [BZ #18822]
30781 * grp/initgroups.c (__nss_group_database): Removed.
30782 (__nss_initgroups_database): Likewise.
30783 * nscd/gai.c (__nss_hosts_database): Likewise.
30784 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30785 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30786 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30787 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30788 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30789 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30790 attribute_hidden.
30791 * nss/nsswitch.c (__nss_database_custom): Define only if
30792 USE_NSCD is defined.
30793 (__nss_configure_lookup): Use __nss_database_custom only if
30794 USE_NSCD is defined.
30795 * nss/nsswitch.h (__nss_database_custom): Declare only if
30796 USE_NSCD is defined. Add attribute_hidden.
30797 (__nss_setent): Add attribute_hidden.
30798 (__nss_endent): Likewise.
30799 (__nss_getent_r): Likewise.
30800 (__nss_getent): Likewise.
30801 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30802
30803 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30804
30805 [BZ #18822]
30806 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30807 libc_hidden_proto and libc_hidden_def.
30808
30809 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30810
30811 [BZ #18822]
30812 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30813 Add libc_hidden_proto.
30814 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30815 Add libc_hidden_def.
30816
30817 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30818
30819 [BZ #21974]
30820 * gmon/Makefile (routines): Remove bb_init_func and
30821 bb_exit_func.
30822 (elide-routines.os): Removed.
30823 * gmon/bb_exit_func.c: Likewise.
30824 * gmon/bb_init_func.c: Likewise.
30825 * include/sys/gmon.h (__bb): Likewise.
30826 (__bb_init_func): Likewise.
30827 (__bb_exit_func): Likewise.
30828 * sysdeps/alpha/bb_init_func.S: Likewise.
30829
30830 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30831
30832 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30833 * include/setjmp.h (____longjmp_chk): Here. Add
30834 attribute_hidden.
30835
30836 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30837
30838 [BZ #18822]
30839 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30840 attribute_hidden.
30841 (__strspn_sse2): Likewise.
30842
30843 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30844
30845 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30846 (close_not_cancel_no_status): Likewise.
30847 (__close_nocancel): New macro.
30848 (__close_nocancel_nostatus): Likewise.
30849 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30850 macro.
30851 (close_not_cancel): Likewise.
30852 (close_not_cancel_no_status): Likewise.
30853 (__close_nocancel): New prototype.
30854 (__close_nocancel_nostatus): New function.
30855 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30856 * catgets/open_catalog.c (__open_catalog): Replace
30857 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30858 * gmon/gmon.c (write_gmon): Likewise.
30859 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30860 * intl/loadmsgcat.c (close): Likewise.
30861 * io/ftw.c (open_dir_stream): Likewise.
30862 (ftw_startup): Likewise.
30863 * libio/fileops.c (_IO_file_open): Likewise.
30864 (_IO_file_close_mmap): Likewise.
30865 (_IO_file_close): Likewise.
30866 * libio/iopopen.c (_IO_dup2): Likewise.
30867 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30868 * locale/loadlocale.c (_nl_load_locale): Likewise.
30869 * login/utmp_file.c (pututline_file): Likewise.
30870 (endutent_file): Likewise.
30871 * misc/daemon.c (daemon): Likewise.
30872 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30873 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30874 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30875 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30876 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30877 * nscd/nscd_helper.c (open_socket): Likewise.
30878 (__nscd_open_socket): Likewise.
30879 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30880 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30881 (__nscd_innetgr): Likewise.
30882 * nss/nss_db/db-open.c (internal_setent): Likewise.
30883 * resolv/res-close.c (__res_iclose): Likewise.
30884 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30885 * sysdeps/posix/closedir.c (__closedir): Likewise.
30886 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30887 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30888 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30889 (opendir_tail): Likewise.
30890 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30891 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30892 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30893 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30894 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30895 (gethostid): Likewise.
30896 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30897 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30898 Likewise.
30899 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30900 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30901 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30902 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30903 Likewise.
30904 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30905 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30906 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30907 Likewise.
30908 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30909 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30910 Likewise.
30911 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30912 Likewise.
30913 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30914 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30915 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30916 __close_nocancel.
30917
30918 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30919 (openat_not_cancel_3): Likewise.
30920 (openat64_not_cancel_3): Likewise).
30921 (openat_not_cancel_3): Likewise).
30922 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30923 macro.
30924 (openat_not_cancel_3): Likewise.
30925 (openat64_not_cancel): Likewise.
30926 (openat64_not_cancel_3): Likewise.
30927 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30928 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30929 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30930 __open{64}_nocancel.
30931 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30932 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30933 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30934
30935 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30936
30937 [BZ #18822]
30938 * include/argz.h (__argz_create_sep): New function prototype.
30939 (__argz_append): Likewise.
30940 (__argz_add): Likewise.
30941 (__argz_add_sep): Likewise.
30942 (__argz_delete): Likewise.
30943 (__argz_insert): Likewise.
30944 (__argz_replace): Likewise.
30945 * string/argz.h (__argz_create_sep): Removed.
30946 (__argz_append): Likewise.
30947 (__argz_add): Likewise.
30948 (__argz_add_sep): Likewise.
30949 (__argz_delete): Likewise.
30950 (__argz_insert): Likewise.
30951 (__argz_replace): Likewise.
30952
30953 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30954
30955 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30956 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30957 (GNU_PROPERTY_STACK_SIZE): Likewie.
30958 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30959 (GNU_PROPERTY_LOPROC): Likewise.
30960 (GNU_PROPERTY_HIPROC): Likewise.
30961 (GNU_PROPERTY_LOUSER): Likewise.
30962 (GNU_PROPERTY_HIUSER): Likewise.
30963 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30964 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30965 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30966 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30967 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30968 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30969 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30970 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30971 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30972 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30973 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30974 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30975 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30976 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30977 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30978 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30979 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30980 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30981 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30982 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30983 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30984 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30985 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30986
30987 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30988
30989 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30990 in C++ mode.
30991
30992 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30993
30994 [BZ #21930]
30995 * math/math.h (isinf): Check if in C or C++ mode before using
30996 __builtin_types_compatible_p, since this is a C mode feature.
30997
30998 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30999
31000 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31001 (__write_nocancel): New macro.
31002 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31003 Rewrite as a function prototype.
31004 (write_not_cancel): Remove macro.
31005 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31006 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31007 (write_gmon): Likewise.
31008 * libio/fileops.c (_IO_new_file_write): Likewise.
31009 * login/utmp_file.c (pututline_file): Likewise.
31010 (updwtmp_file): Likewise.
31011 * stdio-common/psiginfo.c (psiginfo): Likewise.
31012 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31013 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31014 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31015 Likewise.
31016 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31017 Likewise.
31018
31019 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31020 (__read_nocancel): New macro.
31021 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31022 __read_nocancel.
31023 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31024 macro.
31025 (__read_nocancel): New prototype.
31026 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31027 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31028 with __read_nocancel.
31029 * intl/loadmsgcat.c (read): Likewise.
31030 * libio/fileops.c (_IO_file_read): Likewise.
31031 * locale/loadlocale.c (_nl_load_locale): Likewise.
31032 * login/utmp_file.c (getutent_r_file): Likewise.
31033 (internal_getut_r): Likewise.
31034 (getutline_r_file): Likewise.
31035 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31036 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31037 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31038 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31039 Likewise.
31040 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31041 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31042 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31043 Likewise.
31044 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31045 Likewise.
31046 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31047 Likewise.
31048 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31049 Likewise.
31050 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31051
31052 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31053
31054 [BZ #21966]
31055 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31056 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31057 usable.
31058
31059 2017-08-17 DJ Delorie <dj@redhat.com>
31060
31061 * bug17079.c: Update to new test harness.
31062 * test-digits-dots.c: Likewise.
31063 * test-netdb.c: Likewise.
31064 * tst-field.c: Likewise.
31065 * tst-nss-getpwent.c: Likewise.
31066 * tst-nss-static.c: Likewise.
31067 * tst-nss-test1.c: Likewise.
31068 * tst-nss-test2.c: Likewise.
31069 * tst-nss-test3.c: Likewise.
31070 * tst-nss-test4.c: Likewise.
31071 * tst-nss-test5.c: Likewise.
31072
31073 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31074
31075 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31076 (open_not_cancel_2): Likewise.
31077 (open_nocancel): New macro.
31078 (open64_nocancel): Likewise.
31079 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31080 (open_not_cancel_2): Likewise.
31081 (__open_nocancel): New prototype.
31082 (__open64_nocancel): Likewise.
31083 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31084 __open_nocancel.
31085 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31086 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31087 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31088 with __open_nocancel.
31089 * csu/check_fds.c (check_one_fd): Likewise.
31090 * gmon/gmon.c (write_gmon): Likewise.
31091 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31092 * intl/loadmsgcat.c (open): Likewise.
31093 * libio/fileops.c (_IO_file_open): Likewise.
31094 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31095 * locale/loadlocale.c (_nl_load_locale): Likewise.
31096 * login/utmp_file.c (setutent_file): Likewise.
31097 * misc/daemon.c (daemon): Likewise.
31098 * nss/nss_db/db-open.c (internal_setent): Likewise.
31099 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31100 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31101 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31102 (__opendir): Likewise.
31103 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31104 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31105 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31106 (gethostid): Likewise.
31107 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31108 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31109 Likewise.
31110 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31111 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31112 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31113 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31114 Likewise.
31115 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31116 Likewise.
31117 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31118 Likewise.
31119 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31120 Likewise.
31121 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31122 Likewise.
31123 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31124 Likewise.
31125 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31126 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31127
31128 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31129
31130 * benchtests/bench-skeleton.c (main): Add support for
31131 latency benchmarking.
31132 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31133
31134 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31135
31136 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31137 the startup object.
31138
31139 2017-08-17 Florian Weimer <fweimer@redhat.com>
31140
31141 * include/sys/socket.h (__opensock): Remove internal_function.
31142 * socket/opensock.c (__opensock): Likewise.
31143 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31144
31145 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31146
31147 [BZ #21944]
31148 * signal/bits/types/__sigval_t.h: New file.
31149 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31150 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31151 and define sigval_t using __sigval_t.
31152 * include/bits/types/__sigval_t.h: New file.
31153 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31154 instead of <bits/types/__sigval_t.h>.
31155 (struct sigevent): Use __sigval_t instead of sigval_t.
31156 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31157 instead of <bits/types/__sigval_t.h>.
31158 (siginfo_t): Use __sigval_t instead of sigval_t.
31159 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31160 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31161 (struct sigevent): Use __sigval_t instead of sigval_t.
31162 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31163 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31164 (siginfo_t): Use __sigval_t instead of sigval_t.
31165 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31166
31167 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31168
31169 * NEWS: Remove "[Add new features here]" for 2.27.
31170
31171 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31172
31173 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31174 libc.so.
31175
31176 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31177
31178 * NEWS: Mention x86-64 FMA optimization.
31179
31180 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31181
31182 [BZ #21912]
31183 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31184 Add e_expf-fma.
31185 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31186 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31187 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31188
31189 2017-08-16 Andreas Schwab <schwab@suse.de>
31190
31191 [BZ #16750]
31192 CVE-2009-5064
31193 * elf/ldd.bash.in: Never run file directly.
31194
31195 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31196
31197 [BZ #21955]
31198 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31199 (L(SP_INF_0)): Likewise.
31200
31201 2017-08-15 Florian Weimer <fweimer@redhat.com>
31202
31203 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31204 run-built-tests.
31205
31206 2017-08-15 Florian Weimer <fweimer@redhat.com>
31207
31208 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31209 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31210 BROKEN_THREAD_SIGNALS code.
31211 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31212 request_list): Remove caller_pid member used for
31213 BROKEN_THREAD_SIGNALS.
31214 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31215 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31216 Remove BROKEN_THREAD_SIGNALS support.
31217 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31218 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31219
31220 2017-08-15 Florian Weimer <fweimer@redhat.com>
31221
31222 * gmon/Makefile (tests): Add tst-gmon.
31223 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31224 Set.
31225 (tests-special): Add tst-gmon-prof.out.
31226 (tst-gmon.out): Depend on clean-tst-gmon-data.
31227 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31228 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31229 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31230 startup object.
31231 * aclocal.m4 (GPROF): Set and substitute.
31232 * config.amke.in (GPROF): Set.
31233 * configure: Regenerate.
31234
31235 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31236
31237 * elf/elf.h A (NT_PPC_TAR): New macro.
31238 (NT_PPC_PPR): Likewise.
31239 (NT_PPC_DSCR): Likewise.
31240 (NT_PPC_EBB): Likewise.
31241 (NT_PPC_PMU): Likewise.
31242 (NT_PPC_TM_CGPR): Likewise.
31243 (NT_PPC_TM_CFPR): Likewise.
31244 (NT_PPC_TM_CVMX): Likewise.
31245 (NT_PPC_TM_CVSX): Likewise.
31246 (NT_PPC_TM_SPR): Likewise.
31247 (NT_PPC_TM_CTAR): Likewise.
31248 (NT_PPC_TM_CPPR): Likewise.
31249 (NT_PPC_TM_CDSCR): Likewise.
31250
31251 2017-08-15 Florian Weimer <fweimer@redhat.com>
31252
31253 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31254 regparm (2) instead of internal_function.
31255 (_MCOUNT_DECL): Adjust.
31256
31257 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31258
31259 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31260 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31261
31262 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31263
31264 * conform/data/sys/wait.h-data (si_value): Do not expect for
31265 XPG42.
31266
31267 2017-08-14 Florian Weimer <fweimer@redhat.com>
31268
31269 [BZ #21962]
31270 NSS: Create stubs for accidentally exported lookup functions.
31271 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31272 Remove declaration.
31273 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31274 (ether_hostton): Call __nss_ethers_lookup2 instead.
31275 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31276 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31277 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31278 (setup): Call __nss_netgroup_lookup2 instead.
31279 * nss/Makefile (routines): Add compat-lookup.
31280 * nss/Versions (GLIBC_2.27): Add symbol version.
31281 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31282 (DB_COMPAT_FCT): Remove.
31283 * nss/compat-lookup.c: New file.
31284 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31285 from databases.def.
31286 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31287 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31288 (netname2user): Call __nss_publickey_lookup2 instead.
31289 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31290 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31291 instead.
31292
31293 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31294 Sergei Trofimovich <slyfox@inbox.ru>
31295
31296 [BZ #21908]
31297 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31298 Rename to MMAP2_PAGE_UNIT.
31299 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31300 __OFF_T_MATCHES_OFF64_T is not defined.
31301 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31302 uint64_t.
31303 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31304 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31305
31306 2017-08-14 Florian Weimer <fweimer@redhat.com>
31307
31308 i386: Do not set internal_function.
31309 * config.h.in (USE_REGPARMS, internal_function): Remove.
31310 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31311 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31312
31313 2017-08-14 Florian Weimer <fweimer@redhat.com>
31314
31315 * elf/dl-init.c (_dl_init): Remove internal_function.
31316 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31317 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31318
31319 2017-08-14 Florian Weimer <fweimer@redhat.com>
31320
31321 * elf/rtld.c (_dl_start): Remove internal_function.
31322 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31323 _dl_start.
31324
31325 2017-08-14 Florian Weimer <fweimer@redhat.com>
31326
31327 * elf/dl-fini.c (_dl_fini): Remove internal_function
31328 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31329
31330 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31331
31332 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31333 (bit_cpu_SHSTK): Likewise.
31334 (index_cpu_IBT): Likewise.
31335 (index_cpu_SHSTK): Likewise.
31336 (reg_IBT): Likewise.
31337 (reg_SHSTK): Likewise.
31338 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31339 Handle index_cpu_IBT and index_cpu_SHSTK.
31340
31341 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31342
31343 [BZ #19982]
31344 * po/fr.po: Fix spelling mistake.
31345
31346 2017-08-13 Florian Weimer <fweimer@redhat.com>
31347
31348 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31349 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31350 (_dl_catch_error, _dl_receive_error): Likewise.
31351 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31352 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31353 (_dl_deallocate_tls): Likewise.
31354 * include/dlfcn.h (_dl_addr): Likewise.
31355 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31356 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31357 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31358 Likewise.
31359
31360 2017-08-13 Florian Weimer <fweimer@redhat.com>
31361
31362 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31363 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31364 internal_function.
31365 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31366
31367 2017-08-13 Florian Weimer <fweimer@redhat.com>
31368
31369 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31370 internal_function.
31371 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31372 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31373 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31374 internal_function from _dl_make_stack_executable_hook member.
31375 (_dl_make_stack_executable): Remove internal_function.
31376 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31377 Likewise.
31378 * sysdeps/unix/sysv/linux/dl-execstack.c
31379 (_dl_make_stack_executable): Likewise.
31380
31381 2017-08-13 Florian Weimer <fweimer@redhat.com>
31382
31383 * sysdeps/unix/sysv/linux/netlinkaccess.h
31384 (__netlink_assert_response): Remove internal_function.
31385 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31386 (__netlink_assert_response): Likewise.
31387
31388 2017-08-13 Florian Weimer <fweimer@redhat.com>
31389
31390 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31391 internal_function.
31392 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31393
31394 2017-08-13 Florian Weimer <fweimer@redhat.com>
31395
31396 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31397 internal_function.
31398 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31399 * inet/netgroup.h (__internal_setnetgrent)
31400 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31401 * inet/getnetgrent_r.c (__internal_setnetgrent)
31402 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31403 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31404 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31405 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31406 * nss/nsswitch.h (db_lookup_function): Likewise.
31407
31408 2017-08-13 Florian Weimer <fweimer@redhat.com>
31409
31410 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31411 Remove internal_function.
31412 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31413 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31414 message argument on the stack.
31415 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31416 Likeweise.
31417
31418 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31419
31420 Adapt test case data to the changes in the thousands
31421 separators.
31422
31423 [BZ #20756]
31424 * localedata/tst-langinfo.sh: Adapt test case data.
31425 * stdlib/tst-strfmon_l.c: Likewise.
31426 * stdlib/tst-strtod4.c: Likewise.
31427 * stdlib/tst-strtod5i.c: Likewise.
31428
31429 2017-08-11 Florian Weimer <fweimer@redhat.com>
31430
31431 [BZ #21242]
31432 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31433 Suppress pedantic warning resulting from statement expression.
31434 (__ASSERT_FUNCTION): Add missing __extension__.
31435
31436 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31437
31438 * benchtests/bench-memmove-large.c: Print output in JSON
31439 format.
31440 * benchtests/bench-memmove.c: Likewise.
31441
31442 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31443 * benchtests/bench-memchr.c (do_one_test): Likewise.
31444 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31445 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31446 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31447 * benchtests/bench-memmove.c (do_one_test): Likewise.
31448 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31449 * benchtests/bench-memset.c (do_one_test): Likewise.
31450 * benchtests/bench-string.h (test_init): Remove memsets.
31451
31452 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31453
31454 * manual/lang.texi
31455 (Computing the Width of an Integer Data Type): Rename section to
31456 "Width of an Integer Type". Remove inaccurate statement regarding
31457 lack of C language facilities for determining width of integer
31458 types, and reorder content to improve flow and context of
31459 discussion.
31460
31461 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31462
31463 * lang.texi (va_copy): Change standard from ISO to C99.
31464 (__va_copy): Add standard and header annotation.
31465 Update description for clarity of origins and current use.
31466
31467 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31468
31469 [BZ #21941]
31470 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31471 xssqrtqp requires operands to be in Vector Registers
31472 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31473 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31474 (__ieee754_sqrtf128): Likewise.
31475
31476 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31477
31478 * sysdeps/aarch64/memcmp.S (memcmp):
31479 Rewrite of optimized memcmp.
31480
31481 2017-08-10 Florian Weimer <fweimer@redhat.com>
31482
31483 Introduce ld.so exceptions.
31484 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31485 (_dl_exception_create, _dl_exception_create_format)
31486 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31487 (_dl_catch_exception): Declare.
31488 (_dl_catch_error): Update comment.
31489 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31490 errstring, malloced members with exception member.
31491 (_dl_out_of_memory): Remove.
31492 (fatal_error): New function, extracted from _dl_signal_error.
31493 (_dl_signal_exception, _dl_signal_cexception): New functions.
31494 (_dl_signal_error): Call _dl_exception_create to allocate an
31495 exception object.
31496 (_dl_catch_exception): New function, based on _dl_catch_error.
31497 (_dl_catch_error): Implement using _dl_catch_exception.
31498 * elf/dl-exception.c: New file.
31499 * elf/Makefile (dl-routines): Add dl-exception.
31500 (elide-routines.os): Likewise.
31501 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31502 _dl_exception_create_format, _dl_exception_free.
31503 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31504 _dl_signal_exception.
31505 * elf/dl-lookup.c (make_string): Remove.
31506 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31507 _dl_signal_cexception, _dl_exception_free.
31508 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31509 _dl_signal_exception.
31510 * elf/dl-sym.c (do_sym): Likewise.
31511 * elf/dl-version.c (make_string): Remove.
31512 (match_symbol): Use _dl_exception_create_format,
31513 _dl_signal_cexception, _dl_exception_free.
31514 (_dl_check_map_versions): Likewise.
31515 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31516 _dl_catch_exception.
31517 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31518 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31519 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31520 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31521 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31522 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31523 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31524 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31525 Likewise.
31526 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31528 (ld.so): Likewise.
31529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31530 (ld.so): Likewise.
31531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31532 Likewise.
31533 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31534 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31535 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31536 Likewise.
31537 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31538 Likewise.
31539 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31540
31541 2017-08-10 Florian Weimer <fweimer@redhat.com>
31542
31543 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31544 attribute_hidden, internal_function.
31545 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31546 internal_function.
31547
31548 2017-08-10 Florian Weimer <fweimer@redhat.com>
31549
31550 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31551 function which calls __builtin_unreachable.
31552
31553 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31554
31555 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31556 Indian monetary formatting
31557 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31558 test cases.
31559
31560 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31561
31562 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31563 Fix typo in comment.
31564
31565 [BZ #21928]
31566 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31567 PTRACE_SEIZE_DEVEL): Remove.
31568 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31569 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31570 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31571 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31572 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31573
31574 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31575
31576 * posix/bits/types.h (__qaddr_t): Remove.
31577
31578 [BZ #21457]
31579 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31580 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31581 __glibc_reserved1.
31582 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31583 (ucontext_t): Use __ctx with uc_flags.
31584 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31585 (__ctxt): Likewise.
31586 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31587 __glibc_reserved1.
31588 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31589 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31590 __glibc_reserved1.
31591 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31592 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31593 __glibc_reserved1.
31594 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31595 macro.
31596 (ucontext_t): Use __ctx with uc_flags.
31597 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31598 (ucontext_t): Use __ctx with uc_flags.
31599 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31600 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31601 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31602 (ucontext_t): Use __ctx with uc_flags.
31603 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31604 undefine further down.
31605 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31606 __glibc_reserved1.
31607 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31608 undefine further down.
31609 (ucontext_t): Use __ctx with uc_flags.
31610 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31611 undefine further down.
31612 (ucontext_t): Use __ctx with uc_flags.
31613 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31614 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31615 Rename uc_pad to __glibc_reserved1.
31616 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31617 undefine further down.
31618 (ucontext_t): Use __ctx with uc_flags.
31619 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31620 further down.
31621 (ucontext_t): Use __ctx with uc_flags.
31622 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31623 __ctx with uc_flags.
31624 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31625 (ucontext_t): Use __ctx with uc_flags.
31626 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31627 __ctx with uc_flags.
31628
31629 2017-08-09 Florian Weimer <fweimer@redhat.com>
31630
31631 [BZ #21932]
31632 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31633 before early return.
31634
31635 2017-08-09 Andreas Schwab <schwab@suse.de>
31636
31637 [BZ #21041]
31638 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31639 renamed alias.
31640
31641 [BZ #21041]
31642 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31643 tst-compat-forwarder.
31644 (modules-names): Add tst-compat-forwarder-mod.
31645 ($(objpfx)tst-compat-forwarder): Depend on
31646 $(objpfx)tst-compat-forwarder-mod.so.
31647 * nptl/tst-compat-forwarder.c: New file.
31648 * nptl/tst-compat-forwarder-mod.c: New file.
31649
31650 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31651
31652 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31653 comments.
31654
31655 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31656 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31657 memcpy_falkor.
31658 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31659 Bump.
31660 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31661 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31662 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31663 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31664 Add falkor.
31665 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31666 New macro.
31667
31668 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31669
31670 [BZ #759]
31671 * manual/setjmp.texi (getcontex): Document uc_stack value
31672 compatibility differences.
31673
31674 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31675
31676 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31677 (old_malloc_hook): Likewise.
31678 (old_memalign_hook): Likewise.
31679 (old_realloc_hook): Likewise.
31680 (struct hdr): Likewise.
31681 (flood): Likewise.
31682 (freehook): Likewise.
31683 (mallochook): Likewise.
31684 (memalignhook): Likewise.
31685 (reallochook): Likewise.
31686 (mprobe): Likewise.
31687 * malloc/mtrace.c (mallwatch): Likewise.
31688 (tr_old_free_hook): Likewise.
31689 (tr_old_malloc_hook): Likewise.
31690 (tr_old_realloc_hook): Likewise.
31691 (tr_old_memalign_hook): Likewise.
31692 (tr_where): Likewise.
31693 (lock_and_info): Likewise.
31694 (tr_freehook): Likewise.
31695 (tr_mallochook): Likewise.
31696 (tr_reallochook): Likewise.
31697 (tr_memalignhook): Likewise.
31698 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31699 * misc/mmap.c (__mmap): Likewise.
31700 * misc/mmap64.c (__mmap64): Likewise.
31701 * misc/mprotect.c (__mprotect): Likewise.
31702 * misc/msync.c (msync): Likewise.
31703 * misc/munmap.c (__munmap): Likewise.
31704 * posix/posix_madvise.c (posix_madvise): Likewise.
31705 * socket/send.c (__send): Likewise.
31706 * socket/sendto.c (__sendto): Likewise.
31707 * socket/setsockopt.c (__setsockopt): Likewise.
31708 * string/memcmp.c (__ptr_t): Remove macro.
31709 (MEMCMP): Use void * instead of ptr_t.
31710 * string/memrchr.c (__ptr_t): Remove macro.
31711 (__memrchr): Use void * instead of ptr_t.
31712 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31713 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31714 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31715 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31716 * sysdeps/mach/msync.c (msync): Likewise.
31717 * sysdeps/mach/munmap.c (__munmap): Likewise.
31718 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31719 Likewise.
31720 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31721 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31722 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31723 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31724 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31725 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31726 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31727 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31728 Likewise.
31729 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31730 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31731 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31732 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31733 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31734 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31735 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31736 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31737 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31738 Likewise.
31739 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31740 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31741 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31742 (MEMCMP): Use void * instead of ptr_t.
31743 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31744 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31745
31746 2017-08-08 Florian Weimer <fweimer@redhat.com>
31747
31748 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31749 return statement.
31750
31751 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31752
31753 [BZ #21913]
31754 * csu/libc-tls.c: Include <startup.h> first.
31755 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31756 * elf/dl-tunables.c: Include <startup.h> first.
31757 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31758 * sysdeps/generic/startup.h: New file.
31759 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31760 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31761 (I386_USE_SYSENTER): New. Defined to 0.
31762
31763 2017-08-08 Andreas Schwab <schwab@suse.de>
31764
31765 [BZ #21041]
31766 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31767 * nptl/pt-system.c (system): Likewise.
31768
31769 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31770
31771 [BZ #21780]
31772 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31773 EOPNOTSUPP.
31774 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31775 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31776 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31777 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31778 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31779 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31780 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31781
31782 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31783
31784 [BZ #21899]
31785 * bits/sigaction.h (struct sigaction): Define sa_handler and
31786 sa_sigaction using union 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 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31793 (struct sigaction): Define sa_handler and sa_sigaction using union
31794 also for [__USE_XOPEN_EXTENDED].
31795 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31796 [__USE_XOPEN_EXTENDED].
31797 (SA_RESTART): Likewise.
31798 (SA_NODEFER): Likewise.
31799 (SA_RESETHAND): Likewise.
31800 * sysdeps/unix/sysv/linux/bits/sigaction.h
31801 (struct sigaction): Define sa_handler and sa_sigaction using union
31802 also for [__USE_XOPEN_EXTENDED].
31803 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31804 [__USE_XOPEN_EXTENDED].
31805 (SA_RESTART): Likewise.
31806 (SA_NODEFER): Likewise.
31807 (SA_RESETHAND): Likewise.
31808 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31809 (struct sigaction): Define sa_handler and sa_sigaction using union
31810 also for [__USE_XOPEN_EXTENDED].
31811 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31812 [__USE_XOPEN_EXTENDED].
31813 (SA_RESTART): Likewise.
31814 (SA_NODEFER): Likewise.
31815 (SA_RESETHAND): Likewise.
31816 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31817 (struct sigaction): Define sa_handler and sa_sigaction using union
31818 also for [__USE_XOPEN_EXTENDED].
31819 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31820 [__USE_XOPEN_EXTENDED].
31821 (SA_RESTART): Likewise.
31822 (SA_NODEFER): Likewise.
31823 (SA_RESETHAND): Likewise.
31824 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31825 (struct sigaction): Define sa_handler and sa_sigaction using union
31826 also for [__USE_XOPEN_EXTENDED].
31827 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31828 [__USE_XOPEN_EXTENDED].
31829 (SA_RESTART): Likewise.
31830 (SA_NODEFER): Likewise.
31831 (SA_RESETHAND): Likewise.
31832 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31833 (struct sigaction): Define sa_handler and sa_sigaction using union
31834 also for [__USE_XOPEN_EXTENDED].
31835 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31836 [__USE_XOPEN_EXTENDED].
31837 (SA_RESTART): Likewise.
31838 (SA_NODEFER): Likewise.
31839 (SA_RESETHAND): Likewise.
31840 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31841 (struct sigaction): Define sa_handler and sa_sigaction using union
31842 also for [__USE_XOPEN_EXTENDED].
31843 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31844 [__USE_XOPEN_EXTENDED].
31845 (SA_RESTART): Likewise.
31846 (SA_NODEFER): Likewise. Define directly rather than as alias.
31847 (SA_RESETHAND): Likewise.
31848 (SA_INTERRUPT): Define only for [__USE_MISC].
31849 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31850 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31851 [__USE_MISC].
31852 (SA_STACK): Define only for [__USE_MISC].
31853 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31854 (struct sigaction): Define sa_handler and sa_sigaction using union
31855 also for [__USE_XOPEN_EXTENDED].
31856 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31857 [__USE_XOPEN_EXTENDED].
31858 (SA_RESTART): Likewise.
31859 (SA_NODEFER): Likewise.
31860 (SA_RESETHAND): Likewise.
31861 (SA_NOPTRACE): Define only for [__USE_MISC].
31862
31863 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31864 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31865 (struct catalog_info): Likewise.
31866 * inet/htontest.c (lo): Likewise.
31867 (foo): Likewise.
31868 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31869 * inet/inet_net.c (inet_network): Likewise.
31870 * inet/inet_netof.c (inet_netof): Likewise.
31871 * inet/rcmd.c (__ivaliduser): Likewise.
31872 (iruserok): Likewise.
31873 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31874 * locale/programs/locale-spec.c (locale_special): Likewise.
31875 * nis/nis_findserv.c (struct findserv_req): Likewise.
31876 (__nis_findfastest_with_timeout): Likewise.
31877 * nss/test-netdb.c (test_network): Likewise.
31878 * resolv/inet_neta.c (inet_neta): Likewise.
31879 * resolv/ns_date.c (ns_datetosecs): Likewise.
31880 (SECS_PER_DAY): Likewise.
31881 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31882 Likewise.
31883 * resolv/res_comp.c (__putlong): Likewise.
31884 (__putshort): Likewise.
31885 (_getlong): Likewise.
31886 (_getshort): Likewise.
31887 * resolv/res_debug.c (p_time): Likewise.
31888 (precsize_ntoa): Likewise.
31889 (precsize_aton): Likewise.
31890 (latlon2ul): Likewise.
31891 (loc_aton): Likewise.
31892 (loc_ntoa): Likewise.
31893 * resolv/res_hconf.c (struct netaddr): Likewise.
31894 (_res_hconf_reorder_addrs): Likewise.
31895 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31896 (clnttcp_control): Likewise.
31897 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31898 (clntudp_control): Likewise.
31899 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31900 (clntunix_control): Likewise.
31901 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31902 * sunrpc/rpc/auth.h (union des_block): Likewise.
31903 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31904 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31905 (xdrrec_create): Likewise.
31906 (xdrrec_endofrecord): Likewise.
31907 (flush_out): Likewise.
31908 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31909 (xdrstdio_putlong): Likewise.
31910 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31911 Likewise.
31912
31913 * misc/sys/cdefs.h (__long_double_t): Remove.
31914 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31915 instead of __long_double_t,
31916 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31917
31918 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31919
31920 * benchtests/scripts/compare_strings.py: Avoid display error when
31921 running on a text terminal.
31922
31923 * benchtests/scripts/compare_strings.py (main): Add an
31924 optional -base option.
31925 (process_results): New argument base_func.
31926
31927 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31928 hardcoding memcpy.
31929 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31930 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31931
31932 2017-08-07 Andreas Schwab <schwab@suse.de>
31933
31934 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31935 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31936 * intl/Makefile ($(objpfx)tst-gettext.out)
31937 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31938 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31939 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31940 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31941 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31942 * posix/Makefile ($(objpfx)globtest.out)
31943 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31944 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31945 ($(objpfx)tst-printf.out): Likewise.
31946 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31947 ($(objpfx)tst-setcontext3.out): Likewise.
31948
31949 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31952 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31953 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31954 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31955 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31956 and mptan-fma.
31957 (CFLAGS-doasin-fma.c): New.
31958 (CFLAGS-dosincos-fma.c): Likewise.
31959 (CFLAGS-e_asin-fma.c): Likewise.
31960 (CFLAGS-e_atan2-fma.c): Likewise.
31961 (CFLAGS-e_exp-fma.c): Likewise.
31962 (CFLAGS-e_log-fma.c): Likewise.
31963 (CFLAGS-e_pow-fma.c): Likewise.
31964 (CFLAGS-halfulp-fma.c): Likewise.
31965 (CFLAGS-mpa-fma.c): Likewise.
31966 (CFLAGS-mpatan-fma.c): Likewise.
31967 (CFLAGS-mpatan2-fma.c): Likewise.
31968 (CFLAGS-mpexp-fma.c): Likewise.
31969 (CFLAGS-mplog-fma.c): Likewise.
31970 (CFLAGS-mpsqrt-fma.c): Likewise.
31971 (CFLAGS-mptan-fma.c): Likewise.
31972 (CFLAGS-s_atan-fma.c): Likewise.
31973 (CFLAGS-sincos32-fma.c): Likewise.
31974 (CFLAGS-slowexp-fma.c): Likewise.
31975 (CFLAGS-slowpow-fma.c): Likewise.
31976 (CFLAGS-s_sin-fma.c): Likewise.
31977 (CFLAGS-s_tan-fma.c): Likewise.
31978 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31979 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31980 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31981 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31982 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31983 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31984 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31985 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31986 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31987 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31988 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31989 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31990 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31991 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31992 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31993 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31994 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31995 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31996 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31997 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31998 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31999 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32000 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32001 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32002 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32003 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32004 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32005 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32006 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32007 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32008 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32009
32010 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32011
32012 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32013 (min_of_type_f): New macro.
32014 (min_of_type_): Likewise.
32015 (min_of_type_l): Likewise.
32016 (min_of_type_f128): Likewise.
32017 (min_of_type): Define using __MATH_TG and taking an expression
32018 argument.
32019 (math_check_force_underflow): Pass expression instead of type to
32020 min_of_type.
32021 (math_check_force_underflow_nonneg): Likewise.
32022
32023 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32024
32025 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32026 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32027 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32028
32029 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32030
32031 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32032 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32033 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32034 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32035 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32036 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32037 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32038 memmove_chk-nonshared and memset_chk-nonshared
32039 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32040 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32041 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32042 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32043 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32044 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32045 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32046 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32047 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32048 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32049 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32050 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32051 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32052 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32053 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32054 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32055 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32056 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32057 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32058 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32059 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32060 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32061 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32062 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32063 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32064 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32065 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32066 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32067 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32068 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32069 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32070 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32071 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32072 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32073 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32074 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32075 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32076 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32077 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32078 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32079 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32080 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32081 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32082 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32083 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32084 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32085 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32086 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32087 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32088 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32089 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32090 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32091 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32092 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32093 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32094 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32095 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32096 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32097 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32098 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32099 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32100 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32101 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32102 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32103 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32104 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32105 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32106 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32107 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32108 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32109 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32110 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32111 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32112 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32113 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32114 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32115 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32116 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32117 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32118 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32119 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32120 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32121 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32122 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32123 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32124 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32125 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32126 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32127 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32128 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32129 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32130 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32131 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32132 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32133 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32134 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32135 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32136 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32137 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32138 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32139 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32140 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32141 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32142 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32143 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32144 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32145 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32146 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32147
32148 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32149
32150 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32151 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32152 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32153 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32154 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32155 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32156 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32157 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32158 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32159 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32160 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32161 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32162 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32163 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32164 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32165 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32166 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32167 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32168 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32169 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32170 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32171 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32172 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32173 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32174 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32175 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32176 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32177 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32178 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32179 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32180 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32181 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32182 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32183 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32184 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32185 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32186 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32187 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32188 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32189 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32190 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32191 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32192 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32193 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32194 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32195 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32196 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32197 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32198 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32199 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32200 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32201 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32202 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32203 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32204 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32205 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32206 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32207 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32208 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32209 ...
32210 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32211 Don't include <sysdep.h> nor <init-arch.h>.
32212 (_ZGVbN2v_cos): Removed.
32213 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32214 ...
32215 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32216 Don't include <sysdep.h> nor <init-arch.h>.
32217 (_ZGVdN4v_cos): Removed.
32218 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32219 ...
32220 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32221 Don't include <sysdep.h> nor <init-arch.h>.
32222 (_ZGVeN8v_cos): Removed.
32223 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32224 ...
32225 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32226 Don't include <sysdep.h> nor <init-arch.h>.
32227 (_ZGVbN2v_exp): Removed.
32228 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32229 ...
32230 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32231 Don't include <sysdep.h> nor <init-arch.h>.
32232 (_ZGVdN4v_exp): Removed.
32233 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32234 ...
32235 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32236 Don't include <sysdep.h> nor <init-arch.h>.
32237 (_ZGVeN8v_exp): Removed.
32238 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32239 ...
32240 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32241 Don't include <sysdep.h> nor <init-arch.h>.
32242 (_ZGVbN2v_log): Removed.
32243 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32244 ...
32245 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32246 Don't include <sysdep.h> nor <init-arch.h>.
32247 (_ZGVdN4v_log): Removed.
32248 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32249 ...
32250 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32251 Don't include <sysdep.h> nor <init-arch.h>.
32252 (_ZGVeN8v_log): Removed.
32253 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32254 ...
32255 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32256 Don't include <sysdep.h> nor <init-arch.h>.
32257 (_ZGVbN2vv_pow): Removed.
32258 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32259 ...
32260 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32261 Don't include <sysdep.h> nor <init-arch.h>.
32262 (_ZGVdN4vv_pow): Removed.
32263 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32264 ...
32265 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32266 Don't include <sysdep.h> nor <init-arch.h>.
32267 (_ZGVeN8vv_pow): Removed.
32268 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32269 ...
32270 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32271 Don't include <sysdep.h> nor <init-arch.h>.
32272 (_ZGVbN2v_sin): Removed.
32273 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32274 ...
32275 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32276 Don't include <sysdep.h> nor <init-arch.h>.
32277 (_ZGVbN4v_sin): Removed.
32278 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32279 ...
32280 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32281 Don't include <sysdep.h> nor <init-arch.h>.
32282 (_ZGVbN8v_sin): Removed.
32283 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32284 ...
32285 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32286 Don't include <sysdep.h> nor <init-arch.h>.
32287 (_ZGVbN2vvv_sincos): Removed.
32288 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32289 ...
32290 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32291 Don't include <sysdep.h> nor <init-arch.h>.
32292 (_ZGVdN4vvv_sincos): Removed.
32293 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32294 ...
32295 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32296 Don't include <sysdep.h> nor <init-arch.h>.
32297 (_ZGVeN8vvv_sincos): Removed.
32298 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32299 ...
32300 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32301 Don't include <sysdep.h> nor <init-arch.h>.
32302 (_ZGVeN16v_cosf): Removed.
32303 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32304 ...
32305 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32306 Don't include <sysdep.h> nor <init-arch.h>.
32307 (_ZGVbN4v_cosf): Removed.
32308 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32309 ...
32310 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32311 Don't include <sysdep.h> nor <init-arch.h>.
32312 (_ZGVdN8v_cosf): Removed.
32313 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32314 ...
32315 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32316 Don't include <sysdep.h> nor <init-arch.h>.
32317 (_ZGVeN16v_expf): Removed.
32318 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32319 ...
32320 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32321 Don't include <sysdep.h> nor <init-arch.h>.
32322 (_ZGVbN4v_expf): Removed.
32323 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32324 ...
32325 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32326 Don't include <sysdep.h> nor <init-arch.h>.
32327 (_ZGVdN8v_expf): Removed.
32328 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32329 ...
32330 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32331 Don't include <sysdep.h> nor <init-arch.h>.
32332 (_ZGVeN16v_logf): Removed.
32333 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32334 ...
32335 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32336 Don't include <sysdep.h> nor <init-arch.h>.
32337 (_ZGVbN4v_logf): Removed.
32338 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32339 ...
32340 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32341 Don't include <sysdep.h> nor <init-arch.h>.
32342 (_ZGVdN8v_logf): Removed.
32343 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32344 ...
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32346 Don't include <sysdep.h> nor <init-arch.h>.
32347 (_ZGVeN16vv_powf): Removed.
32348 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32349 ...
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32351 Don't include <sysdep.h> nor <init-arch.h>.
32352 (_ZGVbN4vv_powf): Removed.
32353 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32354 ...
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32356 Don't include <sysdep.h> nor <init-arch.h>.
32357 (_ZGVdN8vv_powf): Removed.
32358 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32359 ...
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32361 Don't include <sysdep.h> nor <init-arch.h>.
32362 (_ZGVeN16vvv_sincosf): Removed.
32363 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32364 ...
32365 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32366 Don't include <sysdep.h> nor <init-arch.h>.
32367 (_ZGVbN4vvv_sincosf): Removed.
32368 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32369 ...
32370 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32371 Don't include <sysdep.h> nor <init-arch.h>.
32372 (_ZGVdN8vvv_sincosf): Removed.
32373 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32374 ...
32375 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32376 Don't include <sysdep.h> nor <init-arch.h>.
32377 (_ZGVeN16v_sinf): Removed.
32378 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32379 ...
32380 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32381 Don't include <sysdep.h> nor <init-arch.h>.
32382 (_ZGVbN4v_sinf): Removed.
32383 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32384 ...
32385 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32386 Don't include <sysdep.h> nor <init-arch.h>.
32387 (_ZGVdN8v_sinf): Removed.
32388
32389 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32390
32391 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32392 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32393 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32394 s_rint-sse4_1 and s_rintf-sse4_1.
32395 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32396 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32397 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32398 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32399 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32400 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32401 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32402 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32403 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32404 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32405 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32406 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32407 (__ceil): Removed.
32408 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32409 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32410 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32411 (__ceilf): Removed.
32412 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32413 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32414 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32415 (__floor): Removed.
32416 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32417 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32418 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32419 (__floorf): Removed.
32420 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32421 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32422 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32423 (__nearbyint): Removed.
32424 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32425 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32426 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32427 (__nearbyintf): Removed.
32428 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32429 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32430 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32431 (__rint): Removed.
32432 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32433 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32434 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32435 (__rintf): Removed.
32436
32437 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32438
32439 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32440 SHARED. Avoid dynamic relocation against main in static PIE.
32441
32442 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32443
32444 [BZ #21815]
32445 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32446 (LDFLAGS-tst-prelink): Likewise.
32447
32448 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32449
32450 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32451 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32452 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32453 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32454 (INTERNAL_SYSCALL_NCS): Likewise.
32455 (LOADARGS_1): Likewise.
32456 (LOADARGS_5): Likewise.
32457 (RESTOREARGS_1): Likewise.
32458 (RESTOREARGS_5): Likewise.
32459
32460 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32461
32462 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32463 (MEMPCPY_SYMBOL): Likewise.
32464 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32465 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32466 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32467 in libc.a.
32468 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32469 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32470 Likewise.
32471 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32472 (__hidden_ver1): Don't use in libc.a.
32473 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32474 (__mempcpy): Don't create a weak alias in libc.a.
32475 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32476 libc.a.
32477 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32478 (__hidden_ver1): Don't use in libc.a.
32479
32480 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32481
32482 * config.make.in (have-insert): New.
32483 * configure.ac (libc_cv_insert): New. Set to yes if linker
32484 supports INSERT in linker script.
32485 (AC_SUBST(libc_cv_insert): New.
32486 * configure: Regenerated.
32487 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32488 if $(have-insert) == yes.
32489
32490 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32491
32492 * elf/Makefile (tests): Add vismain only if
32493 $(have-protected-data) == yes.
32494 (tests-pie): Likewise.
32495
32496 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32497
32498 [BZ #21871]
32499 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32500 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32501
32502 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32503
32504 [BZ #21790]
32505 * sysdeps/i386/i586/memset.S
32506 (__memset_zero_constant_len_parameter): Removed.
32507 * sysdeps/i386/i686/memset.S
32508 (__memset_zero_constant_len_parameter): Likewise.
32509 * sysdeps/i386/i686/multiarch/memset_chk.S
32510 (__memset_zero_constant_len_parameter): Likewise.
32511 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32512 Likewise.
32513
32514 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32515
32516 * stdlib/getentropy.c (getentropy): Change return type to int.
32517
32518 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32519
32520 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32521
32522 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32523
32524 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32525 u_intN_t.
32526 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32527 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32528 Likewise.
32529 (ieee_float_shape_type): Likewise.
32530 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32531 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32532 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32533 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32534 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32535 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32536 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32537 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32538 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32539 Likewise.
32540 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32541 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32542 (__ieee754_yn): Likewise.
32543 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32544 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32545 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32546 Likewise.
32547 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32548 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32549 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32550 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32551 (__erfc): Likewise.
32552 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32553 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32554 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32555 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32556 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32557 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32558 Likewise.
32559 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32560 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32561 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32562 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32563 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32564 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32565 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32566 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32567 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32568 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32569 (__issignaling): Likewise.
32570 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32571 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32572 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32573 Likewise.
32574 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32575 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32576 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32577 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32578 Likewise.
32579 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32580 Likewise.
32581 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32582 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32583 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32584 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32585 (__erfcf): Likewise.
32586 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32587 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32588 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32589 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32590 Likewise.
32591 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32592 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32593 Likewise.
32594 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32595 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32596 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32597 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32598 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32599 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32600 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32601 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32602 Likewise.
32603 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32604 Likewise.
32605 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32606 Likewise.
32607 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32608 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32609 Likewise.
32610 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32611 Likewise.
32612 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32613 (__ieee754_ynl): Likewise.
32614 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32615 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32616 Likewise.
32617 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32618 Likewise.
32619 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32620 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32621 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32622 Likewise.
32623 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32624 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32625 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32626 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32627 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32628 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32629 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32630 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32631 Likewise.
32632 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32633 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32634 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32635 Likewise.
32636 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32637 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32638 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32639 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32640 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32641 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32642 Likewise.
32643 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32644 Likewise.
32645 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32646 Likewise.
32647 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32648 Likewise.
32649 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32650 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32651 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32652 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32653 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32654 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32655 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32656 Likewise.
32657 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32658 Likewise.
32659 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32660 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32661 Likewise.
32662 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32663 (__ieee754_remainderl): Likewise.
32664 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32665 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32666 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32667 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32668 Likewise.
32669 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32670 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32671 Likewise.
32672 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32673 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32674 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32675 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32676 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32677 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32678 Likewise.
32679 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32680 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32681 (__ieee754_y0l): Likewise.
32682 (pzero): Likewise.
32683 (qzero): Likewise.
32684 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32685 (__ieee754_y1l): Likewise.
32686 (pone): Likewise.
32687 (qone): Likewise.
32688 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32689 (__ieee754_ynl): Likewise.
32690 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32691 (__ieee754_lgammal_r): Likewise.
32692 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32693 Likewise.
32694 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32695 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32696 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32697 (__erfcl): Likewise.
32698 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32699 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32700 Likewise.
32701 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32702 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32703 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32704 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32705 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32706 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32707 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32708 Likewise.
32709 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32710 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32711 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32712 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32713 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32714 Likewise.
32715 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32716 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32717 Likewise.
32718 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32719 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32720 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32721 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32722 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32723
32724 2017-08-03 Florian Weimer <fweimer@redhat.com>
32725
32726 [BZ #21885]
32727 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32728 on memory allocation failure.
32729
32730 2017-08-03 Alan Modra <amodra@gmail.com>
32731
32732 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32733 tst-tlsopt-powerpc.c with function name change and no test harness.
32734 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32735 Call tls_get_addr_opt_test.
32736 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32737 (modules-names): Add mod-tlsopt-powerpc.
32738 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32739 (tst-tlsopt-powerpc): Depend on .so.
32740 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32741 define. Expand use in TLS_GD and TLS_LD.
32742
32743 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32744
32745 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32746 function.
32747 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32748
32749 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32750
32751 [BZ #21686]
32752 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32753 comparing size with that of double.
32754 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32755 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32756 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32757 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32758 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32759 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32760 unsigned __int128 types.
32761
32762 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32763
32764 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32765 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32766 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32767 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32768 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32769
32770 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32771
32772 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32773
32774 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32775
32776 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32777 of SHARED.
32778 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32779 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32780 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32781 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32782 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32783 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32784 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32785
32786 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32787
32788 [BZ #21685]
32789 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32790 bit-field expressions passed to sizeof or typeof.
32791 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32792 (__TGMATH_F128): Likewise.
32793 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32794 (__TGMATH_CF128): Likewise.
32795 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32796 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32797 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32798 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32799 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32800 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32801 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32802 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32803 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32804 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32805 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32806 (__TGMATH_UNARY_IMAG): Likewise.
32807 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32808 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32809 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32810 type.
32811 (define_vars_for_type): Handle bit_field type specially.
32812 (Tests.__init__): Declare structure with bit-field element.
32813
32814 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32815
32816 [BZ #21791]
32817 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32818 (MEMCPY_CHK): Define only if SHARED is defined.
32819 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32820 Likewise.
32821 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32822 Likewise.
32823
32824 See ChangeLog.18 for earlier changes.