]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
elf/Makefile: Run IFUNC tests if binutils supports IFUNC
[thirdparty/glibc.git] / ChangeLog
1 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2
3 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
4 * configure: Regenerated.
5 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
6
7 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8
9 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
10 symbol as __wcspcy instead of wcscpy.
11
12 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13
14 * include/stdio.h (__renameat2): New hidden prototype.
15 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
16 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
17 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
18 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
19
20 2019-02-27 Joseph Myers <joseph@codesourcery.com>
21
22 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
23 if statement.
24
25 * benchtests/bench-strcpy.c (do_test): Use space before '('.
26 * benchtests/bench-string.h (cmdline_process_function): Likewise.
27 * benchtests/bench-strlen.c (do_test): Likewise.
28 (test_main): Likewise.
29 * catgets/gencat.c (read_old): Likewise.
30 * elf/cache.c (load_aux_cache): Likewise.
31 * iconvdata/bug-iconv8.c (do_test): Likewise.
32 * math/test-tgmath-ret.c (do_test): Likewise.
33 * nis/nis_call.c (rec_dirsearch): Likewise.
34 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
35 * nptl/tst-audit-threads.c (do_test): Likewise.
36 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
37 * nss/nss_test1.c (init): Likewise.
38 * nss/test-netdb.c (test_hosts): Likewise.
39 * posix/execvpe.c (maybe_script_execute): Likewise.
40 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
41 * stdio-common/tst-printf.c (do_test): Likewise.
42 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
43 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
44 * stdlib/qsort.c (STACK_SIZE): Likewise.
45 * stdlib/test-canon.c (do_test): Likewise.
46 * stdlib/tst-swapcontext1.c (do_test): Likewise.
47 * string/memcmp.c (OPSIZ): Likewise.
48 * string/test-strcpy.c (do_test): Likewise.
49 (do_random_tests): Likewise.
50 * string/test-strlen.c (do_test): Likewise.
51 (test_main): Likewise.
52 * string/test-strrchr.c (do_test): Likewise.
53 (do_random_tests): Likewise.
54 * string/tester.c (test_memrchr): Likewise.
55 (test_memchr): Likewise.
56 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
57 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
58 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
59 (read_encoded_value_with_base): Likewise.
60 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
61 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
62 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
63 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
64 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
65 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
66 Likewise.
67 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
68 Likewise.
69 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
70 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
71 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
72 Likewise.
73 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
74 Likewise.
75 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
76 Likewise.
77 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
78 Likewise.
79 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
80 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
81 (FP_XSTATE_MAGIC2_SIZE): Likewise.
82 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
83 * time/test_time.c (main): Likewise.
84
85 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
86
87 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
88
89 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
90 wmemcpy.
91
92 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
93 wmemcpy.
94
95 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
96
97 * include/wchar.h (__wcscpy): New prototype.
98 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
99 (__wcscpy): Route internal symbol to generic implementation.
100 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
101 Add internal __wcscpy alias.
102 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
103 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
104 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
105 * wcsmbs/wcscpy.c (wcscpy): Add
106 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
107 use generic implementation.
108 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
109
110 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
111 wmemset.
112
113 * sysdeps/m68k/wcpcpy.c: Remove file.
114 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
115
116 2019-02-26 Joseph Myers <joseph@codesourcery.com>
117
118 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
119 than after operators.
120 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
121 * sysdeps/mach/hurd/getcwd.c
122 (__hurd_canonicalize_directory_name_internal): Likewise.
123 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
124 (pthread_mutex_consistent): Likewise.
125 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
126 Likewise.
127 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
128 (__pthread_mutex_transfer_np): Likewise.
129 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
130 (__pthread_mutex_unlock): Likewise.
131 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
132 (mtx_owned_p): Likewise.
133 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
134 (pthread_mutexattr_getrobust): Likewise.
135 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
136 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
137 Likewise.
138 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
139 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
140 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
141 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
142 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
143 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
144 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
145 Likewise.
146 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
147 Likewise.
148 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
149 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
150 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
151 (____longjmp_chk): Likewise.
152 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
153 Likewise.
154 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
155 (INTERNAL_SYSCALL): Likewise.
156 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
157 (INTERNAL_SYSCALL): Likewise.
158 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
159 (__get_clockfreq_via_cpuinfo): Likewise.
160
161 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
162 comments.
163 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
164 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
165 (WORD_COPY_BWD): Likewise.
166 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
167 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
168 Likewise.
169 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
170 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
171 comment.
172 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
173
174 2019-02-25 Joseph Myers <joseph@codesourcery.com>
175
176 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
177 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
178 rather than after operators.
179 * elf/cache.c (print_cache): Likewise.
180 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
181 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
182 * hurd/hurdinit.c (_hurd_setproc): Likewise.
183 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
184 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
185 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
186 (reauth_proc): Likewise.
187 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
188 (__file_name_split_at): Likewise.
189 (__directory_name_split_at): Likewise.
190 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
191 * hurd/port2fd.c (_hurd_port2fd): Likewise.
192 * iconv/gconv_dl.c (do_print): Likewise.
193 * inet/netinet/in.h (struct sockaddr_in): Likewise.
194 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
195 * locale/setlocale.c (new_composite_name): Likewise.
196 * malloc/memusagestat.c (main): Likewise.
197 * misc/fstab.c (fstab_convert): Likewise.
198 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
199 Likewise.
200 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
201 (getgrent_next_file): Likewise.
202 (internal_getgrnam_r): Likewise.
203 (internal_getgrgid_r): Likewise.
204 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
205 Likewise.
206 (internal_getgrent_r): Likewise.
207 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
208 (getpwent_next_nss): Likewise.
209 (getpwent_next_file): Likewise.
210 (internal_getpwnam_r): Likewise.
211 (internal_getpwuid_r): Likewise.
212 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
213 Likewise.
214 (getspent_next_nss): Likewise.
215 (internal_getspnam_r): Likewise.
216 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
217 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
218 * string/strchr.c (STRCHR): Likewise.
219 * string/strchrnul.c (STRCHRNUL): Likewise.
220 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
221 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
222 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
223 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
224 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
225 Likewise.
226 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
227 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
228 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
229 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
230 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
231 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
232 (open_file): Likewise.
233 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
234 (pthread_mutexattr_setprotocol): Likewise.
235 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
236 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
237 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
238 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
239 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
240 Likewise.
241 (elf_machine_rela): Likewise.
242 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
243 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
244 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
245 * sysdeps/posix/rename.c (rename): Likewise.
246 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
247 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
248 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
249 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
250 * sysdeps/unix/grantpt.c (grantpt): Likewise.
251 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
252 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
253 Likewise.
254 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
255 Likewise.
256 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
257 * time/tzfile.c (__tzfile_compute): Likewise.
258
259 2019-02-22 Joseph Myers <joseph@codesourcery.com>
260
261 * benchtests/bench-memmem.c (simple_memmem): Break lines before
262 rather than after operators.
263 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
264 * crypt/md5.c (md5_finish_ctx): Likewise.
265 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
266 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
267 * elf/cache.c (load_aux_cache): Likewise.
268 * elf/dl-load.c (open_verify): Likewise.
269 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
270 * elf/readelflib.c (process_elf_file): Likewise.
271 * elf/rtld.c (dl_main): Likewise.
272 * elf/sprof.c (generate_call_graph): Likewise.
273 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
274 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
275 * hurd/dtable.c (reauth_dtable): Likewise.
276 * hurd/getdport.c (__getdport): Likewise.
277 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
278 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
279 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
280 Likewise.
281 * hurd/hurdioctl.c (fioctl): Likewise.
282 * hurd/hurdselect.c (_hurd_select): Likewise.
283 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
284 (STOPSIGS): Likewise.
285 * hurd/hurdstartup.c (_hurd_startup): Likewise.
286 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
287 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
288 * hurd/msgportdemux.c (msgport_server): Likewise.
289 * hurd/setauth.c (_hurd_setauth): Likewise.
290 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
291 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
292 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
293 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
294 * login/tst-utmp.c (do_check): Likewise.
295 (simulate_login): Likewise.
296 * mach/lowlevellock.h (lll_lock): Likewise.
297 (lll_trylock): Likewise.
298 * math/test-fenv.c (ALL_EXC): Likewise.
299 * math/test-fenvinline.c (ALL_EXC): Likewise.
300 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
301 * nis/nis_call.c (__do_niscall3): Likewise.
302 * nis/nis_callback.c (cb_prog_1): Likewise.
303 * nis/nis_defaults.c (searchaccess): Likewise.
304 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
305 * nis/nis_ismember.c (internal_ismember): Likewise.
306 * nis/nis_local_names.c (nis_local_principal): Likewise.
307 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
308 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
309 Likewise.
310 * nis/ypclnt.c (yp_match): Likewise.
311 (yp_first): Likewise.
312 (yp_next): Likewise.
313 (yp_master): Likewise.
314 (yp_order): Likewise.
315 * nscd/hstcache.c (cache_addhst): Likewise.
316 * nscd/initgrcache.c (addinitgroupsX): Likewise.
317 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
318 (internal_getpwuid_r): Likewise.
319 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
320 * posix/glob.h (__GLOB_FLAGS): Likewise.
321 * posix/regcomp.c (peek_token): Likewise.
322 (peek_token_bracket): Likewise.
323 (parse_expression): Likewise.
324 * posix/regexec.c (sift_states_iter_mb): Likewise.
325 (check_node_accept_bytes): Likewise.
326 * posix/tst-spawn3.c (do_test): Likewise.
327 * posix/wordexp-test.c (testit): Likewise.
328 * posix/wordexp.c (parse_tilde): Likewise.
329 (exec_comm): Likewise.
330 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
331 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
332 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
333 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
334 * stdio-common/tst-fileno.c (do_test): Likewise.
335 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
336 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
337 * stdlib/strtod_l.c (round_and_return): Likewise.
338 (____STRTOF_INTERNAL): Likewise.
339 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
340 * string/strcspn.c (STRCSPN): Likewise.
341 * string/test-memmem.c (simple_memmem): Likewise.
342 * termios/tcsetattr.c (tcsetattr): Likewise.
343 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
344 * time/asctime.c (asctime_internal): Likewise.
345 * time/strptime_l.c (__strptime_internal): Likewise.
346 * time/sys/time.h (timercmp): Likewise.
347 * time/tzfile.c (__tzfile_compute): Likewise.
348
349 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
350
351 [BZ #21915]
352 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
353
354 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
355
356 * argp/argp-help.c (__argp_error_internal): New function,
357 renamed from __argp_error, but that takes a 'mode_flags'
358 parameter to control the format of long double parameters.
359 (__argp_error): Converted into a call __argp_error_internal.
360 (__argp_failure_internal): New function, renamed from
361 __argp_failure, but that takes a 'mode_flags' parameter.
362 (__argp_failure): Converted into a call __argp_failure_internal.
363 * misc/err.c (__vwarnx_internal): New function, renamed from
364 vwarnx, but that takes a 'mode_flags' parameter.
365 (vwarnx): Converted into a call to __vwarnx_internal.
366 (__vwarn_internal): New function, renamed from vwarn, but that
367 takes a 'mode_flags' parameter.
368 (vwarn): Converted into a call to __vwarn_internal.
369 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
370 call to __vfxprintf with 'mode_flags'.
371 (__error_internal): New function, renamed from error, but that
372 takes a 'mode_flags' parameter.
373 (error): Converted into a call to __error_internal.
374 (__error_at_line_internal): New function, renamed from
375 error_at_line, but that takes a 'mode_flags' parameter.
376 (error_at_line): Converted into a call to
377 __error_at_line_internal.
378 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
379 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
380 Likewise.
381
382 2019-02-20 Martin Liska <mliska@suse.cz>
383
384 * math/Makefile: Install math-vector-fortran.h.
385 * bits/math-vector-fortran.h: New file.
386 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
387
388 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
389
390 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
391 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
392
393 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
394
395 * nptl/pthread_mutex_trylock.c: Fix comment.
396
397 2019-02-19 Carlos O'Donell <carlos@redhat.com>
398
399 * nptl/pthread_tryjoin.c: Fix comment.
400
401 2019-02-18 Joseph Myers <joseph@codesourcery.com>
402
403 [BZ #24231]
404 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
405 after R_SPARC_H34 case.
406
407 2019-02-18 Florian Weimer <fweimer@redhat.com>
408
409 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
410 (getanswer): Do not call Dprintf.
411 (res_gethostbyname2_context): Likewise.
412 (res_gethostbyaddr_context): Likewise.
413
414 2019-02-18 Florian Weimer <fweimer@redhat.com>
415
416 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
417 declaration.
418 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
419 Remove definitions.
420 * libio/stdfiles.c: Update comment.
421 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
422 set _IO_stdin, _IO_stdout, _IO_stderr.
423 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
424 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
425 inline function.
426 (_IO_deallocate_file): New inline function.
427 * libio/iolibio.h (_IO_vprintf): Remove definition.
428 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
429 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
430 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
431 _IO_legacy_file.
432 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
433 __builtin_expect. Use _IO_legacy_file.
434
435 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
436
437 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
438 Initialize ctid with a known value and remove update of ctid
439 after clone.
440 (wait_tid): Adjust arguments and call futex_wait with ctid_val
441 as assumed current value of ctid_ptr.
442
443 2019-02-15 Florian Weimer <fweimer@redhat.com>
444
445 Check that non-sysdeps headers have wrapper headers.
446 * scripts/check-wrapper-headers.py: New file.
447 * Makefile (tests-special): Add check-wrapper-headers.out.
448 (check-wrapper-headers.out): New target.
449 * Rules (tests-special): Add check-wrapper-headers.out.
450 (check-wrapper-headers.out): New target.
451
452 2019-02-15 Florian Weimer <fweimer@redhat.com>
453
454 Add missing header wrappers under include/.
455 * include/ar.h: New file.
456 * include/bits/mqueue2.h: Likewise.
457 * include/bits/stdio.h: Likewise.
458 * include/bits/stdio2.h: Likewise.
459 * include/fstab.h: Likewise.
460 * include/fts.h: Likewise.
461 * include/lastlog.h: Likewise.
462 * include/netinet/icmp6.h: Likewise.
463 * include/netinet/igmp.h: Likewise.
464 * include/netinet/ip6.h: Likewise.
465 * include/re_comp.h: Likewise.
466 * include/regexp.h: Likewise.
467 * include/rpcsvc/bootparam.h: Likewise.
468 * include/rpcsvc/yp_prot.h: Likewise.
469 * include/sys/random.h: Likewise.
470 * include/sys/stropts.h: Likewise.
471 * include/sys/ttychars.h: Likewise.
472 * include/sys/vfs.h: Likewise.
473 * include/wait.h: Likewise.
474
475 2019-02-15 Florian Weimer <fweimer@redhat.com>
476
477 * nptl_db/proc_service.h: Move to ...
478 * sysdeps/nptl/proc_service.h: ... here.
479 * nptl_db/thread_db.h: Move to ...
480 * sysdeps/nptl/thread_db.h: ... here.
481 * nptl/descr.h: Include <thread_db.h>.
482
483 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
484
485 * io/Makefile (tests): Add tst-lockf.
486 * io/lockf.c (lockf): Use __fcntl and only define for
487 !__OFF_T_MATCHES_OFF64_T.
488 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
489 __OFF_T_MATCHES_OFF64_T case.
490 * io/tst-lockf.c: New file.
491 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
492 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
493 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
494 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
495 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
497 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
498 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
499 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
500
501 2019-02-15 Florian Weimer <fweimer@redhat.com>
502
503 [BZ #24211]
504 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
505 pd->result after the thread descriptor has been freed.
506
507 2019-02-15 Joseph Myers <joseph@codesourcery.com>
508
509 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
510 from function return type.
511
512 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
513
514 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 * scripts/test_printers_common.py: Set TERM to a known harmless
517 value.
518
519 2019-02-14 Joseph Myers <joseph@codesourcery.com>
520
521 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
522 (xdr_u_int): Likewise.
523 (xdr_enum): Likewise.
524 (xdr_bytes): Reword fall-through comment.
525 (xdr_string): Likewise.
526
527 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
528
529 [BZ #2421]
530 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
531 (tests): Add tst-join8 tst-join9.
532 * nptl/lll_timedwait_tid.c: Remove file.
533 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
534 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
535 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
536 * nptl/pthread_join_common.c (timedwait_tid): New function.
537 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
538 is set.
539 * nptl/tst-join5.c (thread_join): New function.
540 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
541 check.
542 * nptl/tst-join8.c: New file.
543 * nptl/tst-join9.c: Likewise.
544 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
545 lll_futex_timed_wait_cancel): Add generic macros.
546 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
547 Remove definitions.
548 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
549 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
550 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
551 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
552 Remove function.
553 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
554 Likewise.
555 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
556 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
557 (lll_futex_timed_wait_cancel): New macro.
558
559 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
560
561 * benchtests/Makefile: Add malloc-simple benchmark.
562 * benchtests/bench-malloc-simple.c: New benchmark.
563
564 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
565
566 * benchtests/bench-memmove.c (do_one_test): Remove unused
567 ORIG_SRC.
568 (do_test): Adjust.
569 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
570 ORIG_SRC.
571 (do_test): Adjust.
572
573 2019-01-13 Jim Wilson <jimw@sifive.com>
574
575 [BZ #24040]
576 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
577 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
578 (func): New.
579 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
580 call func directly.
581 * nptl/Makefile (tests): Add tst-unwind-thread.
582 (CFLAGS-tst-unwind-thread.c): Define.
583 * nptl/tst-unwind-thread.c: New file.
584 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
585 as undefined.
586
587 2019-02-13 Joseph Myers <joseph@codesourcery.com>
588
589 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
590 comment wording.
591 * nis/nis_call.c (__do_niscall3): Likewise.
592
593 * catgets/gencat.c (normalize_line): Use braces around empty
594 'else' body.
595 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
596 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
597 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
598 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
599 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
600 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
601 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
602 definition.
603
604 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
605 execlp returns.
606
607 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
608
609 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
610 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
611 * benchtests/bench-strchr.c (stupid_strchr): Remove.
612 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
613 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
614 * benchtests/bench-strlen.c (builtin_strlen): Remove.
615 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
616 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
617 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
618 * benchtests/bench-strspn.c (stupid_strspn): Remove.
619 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
620 * benchtests/bench-bcopy.c: Delete file.
621 * benchtests/bench-bzero.c: Likewise.
622 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
623 (simple_memccpy): Remove.
624 (generic_memccpy): Add function.
625 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
626 * benchtests/bench-memmove.c (simple_bcopy): Remove.
627 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
628 (generic_mempcpy): Add new function.
629 * benchtests/bench-memset.c (simple_bzero): Remove.
630 (builtin_bzero): Remove.
631 (builtin_memset): Remove.
632 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
633 (generic_rawmemchr): Add new function.
634
635 2019-02-12 Florian Weimer <fweimer@redhat.com>
636
637 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
638
639 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
640
641 [BZ #24122]
642 * elf/Makefile (tests): Add tst-audit13.
643 (modules-names): Add tst-audit13mod1.
644 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
645 rule.
646 * elf/tst-audit13.c: New file.
647 * elf/tst-audit13mod1.c: Likewise.
648
649 2019-02-12 Florian Weimer <fweimer@redhat.com>
650
651 [BZ #24122]
652 * elf/rtld.c (unload_audit_module): New function.
653 (report_audit_module_load_error): Likewise.
654 (load_audit_module): Likewise. Extracted from dl_main. Call
655 _dl_close if the laversion symbol cannot be found. Use early
656 returns for error handling. Add malloc error check. Check for a
657 zero return value from la_version. Remove spurious comment about
658 static TLS initialization. Remove useless casts.
659 (notify_audit_modules_of_loaded_object): New function. Extracted
660 from dl_main.
661 (load_audit_module): Likewise.
662 (dl_main): Call load_audit_modules.
663
664 2019-02-12 Joseph Myers <joseph@codesourcery.com>
665
666 * elf/dl-exception.c (_dl_exception_create_format): Add
667 fall-through comments.
668 * elf/ldconfig.c (parse_conf_include): Likewise.
669 * elf/rtld.c (print_statistics): Likewise.
670 * locale/programs/charmap.c (parse_charmap): Likewise.
671 * misc/mntent_r.c (__getmntent_r): Likewise.
672 * posix/wordexp.c (parse_arith): Likewise.
673 (parse_backtick): Likewise.
674 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
675 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
676 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
677
678 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
679
680 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
681 Use float instead of double.
682
683 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
684
685 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
686
687 2019-02-08 Joseph Myers <joseph@codesourcery.com>
688
689 * sysdeps/powerpc/bits/mathinline.h: Remove.
690
691 2019-02-08 Florian Weimer <fweimer@redhat.com>
692
693 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
694 * math/bits/math-finite.h: Move to ...
695 * bits/math-finite.h: ... here.
696
697 2019-02-08 Florian Weimer <fweimer@redhat.com>
698
699 * sysdeps/generic/bits/unistd_ext.h: Move to ...
700 * bits/unistd_ext.h: here.
701
702 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
703
704 [BZ #21915]
705 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
706 * nss/tst-nss-files-hosts-long.c: New file.
707 * nss/tst-nss-files-hosts-long.root: New directory.
708 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
709 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
710
711 2019-02-08 Florian Weimer <fweimer@redhat.com>
712
713 * include/bits/unistd_ext.h: Remove file.
714 * posix/bits/unistd_ext.h: Move to ...
715 * sysdeps/generic/bits/unistd_ext.h: ... here.
716
717 2019-02-08 Florian Weimer <fweimer@redhat.com>
718
719 * include/bits/unistd_ext.h: New file.
720
721 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
722
723 * time/tst-strftime2.c: Use array_length macros instead of magic
724 numbers.
725
726 2019-02-08 Florian Weimer <fweimer@redhat.com>
727
728 [BZ #24161]
729 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
730 argument.
731 * nptl/register-atfork.c (__run_fork_handlers): Only perform
732 locking if the new do_locking argument is true.
733 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
734 __run_fork_handlers.
735
736 2019-02-08 Florian Weimer <fweimer@redhat.com>
737
738 [BZ #6399]
739 Linux: Add gettid system call wrapper.
740 * posix/Makefile (headers): Add bits/unistd_ext.h.
741 * posix/bits/unistd_ext.h: New file.
742 * posix/unistd.h: Include it.
743 * manual/process.texi (Process Identification): Document gettid.
744 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
745 tst-gettid, tst-gettid-kill.
746 (tst-gettid): Link with $(shared-thread-library).
747 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
748 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
749 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
750 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
751 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
752 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
753 Add gettid.
754 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
755 Likewise.
756 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
757 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
758 Likewise.
759 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
760 Likewise.
761 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
762 Likewise.
763 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
764 Likewise.
765 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
766 Likewise.
767 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
768 Likewise.
769 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
770 Likewise.
771 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
772 (GLIBC_2.30): Likewise.
773 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
774 (GLIBC_2.30): Likewise.
775 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
776 (GLIBC_2.30): Likewise.
777 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
778 (GLIBC_2.30): Likewise.
779 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
780 Likewise.
781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
782 (GLIBC_2.30): Likewise.
783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
784 (GLIBC_2.30): Likewise.
785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
786 (GLIBC_2.30): Likewise.
787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
788 (GLIBC_2.30): Likewise.
789 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
790 Likewise.
791 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
792 Likewise.
793 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
794 Likewise.
795 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
796 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
797 Likewise.
798 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
799 Likewise.
800 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
801 Likewise.
802 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
803 Likewise.
804 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
805
806 2019-02-07 Florian Weimer <fweimer@redhat.com>
807
808 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
809 compatibility symbols.
810
811 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
812
813 [BZ #24180]
814 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
815 Add compiler barriers and comments.
816
817 2019-02-07 Florian Weimer <fweimer@redhat.com>
818
819 * include/array_length.h (array_length): Do not use a statement
820 expression and _Static_assert, so that array_length can be used at
821 file scope and as a constant expression.
822
823 2019-02-07 Florian Weimer <fweimer@redhat.com>
824
825 * support/xdlfcn.h (xdlmopen): Declare.
826 * support/xdlmopen.c: New file.
827 * support/Makefile (libsupport-routines): Add xdlmopen.
828
829 2019-02-06 Joseph Myers <joseph@codesourcery.com>
830
831 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
832 before return type, without separate inline.
833 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
834 * elf/dl-tunables.h (tunable_is_name): Likewise.
835 * malloc/malloc.c (do_set_trim_threshold): Likewise.
836 (do_set_top_pad): Likewise.
837 (do_set_mmap_threshold): Likewise.
838 (do_set_mmaps_max): Likewise.
839 (do_set_mallopt_check): Likewise.
840 (do_set_perturb_byte): Likewise.
841 (do_set_arena_test): Likewise.
842 (do_set_arena_max): Likewise.
843 (do_set_tcache_max): Likewise.
844 (do_set_tcache_count): Likewise.
845 (do_set_tcache_unsorted_limit): Likewise.
846 * nis/nis_subr.c (count_dots): Likewise.
847 * nptl/allocatestack.c (advise_stack_range): Likewise.
848 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
849 (do_sin): Likewise.
850 (reduce_sincos): Likewise.
851 (do_sincos): Likewise.
852 * sysdeps/unix/sysv/linux/x86/elision-conf.c
853 (do_set_elision_enable): Likewise.
854 (TUNABLE_CALLBACK_FNDECL): Likewise.
855
856 2019-02-06 Florian Weimer <fweimer@redhat.com>
857
858 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
859 (xdlsym): Use dlerror to detect a NULL symbol.
860
861 2019-02-06 Florian Weimer <fweimer@redhat.com>
862
863 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
864 <stap-probe.h>.
865 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
866
867 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
868
869 * libio/tst-bz24153.c (wide): Use wide char format specifier.
870
871 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
872
873 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
874 __wmemcmp and weak alias to wmemcmp.
875
876 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
877
878 [BZ #23403]
879 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
880 TLS_TCB_AT_TP tls variant.
881 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
882 Add alignment checks.
883 * support/Makefile (libsupport-routines): Add xposix_memalign and
884 xpthread_setstack.
885 * support/support.h: Add xposix_memalign.
886 * support/xthread.h: Add xpthread_attr_setstack.
887 * support/xposix_memalign.c: New File.
888 * support/xpthread_attr_setstack.c: Likewise.
889
890 2019-02-05 Florian Weimer <fweimer@redhat.com>
891
892 [BZ #24164]
893 arm: Use "nr" constraint for Systemtap probes, to avoid the
894 compiler using memory operands for constants, due to the "o"
895 alternative in the default "nor" constraint.
896 * include/stap-probe.h [USE_STAP_PROBE]: Include
897 <stap-probe-machine.h>
898 * sysdeps/generic/stap-probe-machine.h: New file.
899 * sysdeps/arm/stap-probe-machine.h: Likewise.
900
901 2019-02-04 Joseph Myers <joseph@codesourcery.com>
902
903 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
904 with 0, not tcache->entries[tc_idx].
905
906 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
907 once.
908
909 2019-02-04 Andreas Schwab <schwab@suse.de>
910
911 [BZ #16976]
912 [BZ #17396]
913 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
914 looking up collating elements match against (wide) character
915 sequence instead of name. Correct alignment adjustment.
916 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
917 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
918 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
919 (LOCALES): Add cs_CZ.ISO-8859-2.
920 * posix/tst-fnmatch4.c: New file.
921 * posix/tst-fnmatch5.c: New file.
922 * include/wchar.h (__wmemcmp): Declare.
923 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
924 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
925 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
926 * sysdeps/s390/wmemcmp.c: Likewise.
927
928 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
929
930 [BZ #24155]
931 CVE-2019-7309
932 * NEWS: Updated for CVE-2019-7309.
933 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
934 upper 32 bits of RDX register for x32. Use unsigned Jcc
935 instructions, instead of signed.
936 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
937 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
938
939 2019-02-04 Florian Weimer <fweimer@redhat.com>
940
941 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
942 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
943 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
944 Likewise.
945 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
946 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
947 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
948 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
949 Likewise.
950 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
951 Likewise.
952 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
953 Likewise.
954 (posix_spawn_file_actions_addopen): Likewise.
955 (posix_spawn_file_actions_addclose): Likewise.
956 (posix_spawn_file_actions_adddup2): Likewise.
957 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
958 qualifiers.
959 (posix_spawn_file_actions_addfchdir_np): Likewise.
960
961 2019-02-04 David Newall <glibc@davidnewall.com>
962
963 elf: Implement --preload option for the dynamic linker.
964 * elf/rtld.c (preloadarg): New variable.
965 (handle_preload_list): Pass through “where” argument to
966 do_preload.
967 (dl_main): Handle "--preload" and add second call to
968 handle_preload_list.
969 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
970 (tst-rtld-preload-OBJS): Set variable.
971 (tst-rtld-preload.out): New target.
972 * elf/tst-rtld-preload.sh: New file.
973
974 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
975
976 * Makefile (testrun.sh): Exit in case of incorrect argument.
977
978 2019-02-04 Florian Weimer <fweimer@redhat.com>
979
980 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
981 alignment gaps.
982
983 2019-02-03 Florian Weimer <fweimer@redhat.com>
984
985 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
986 implicit overflow checks.
987
988 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
989
990 * stdlib/isomac.c: Include <unistd.h>.
991
992 2019-02-03 Florian Weimer <fweimer@redhat.com>
993
994 * include/time.h (__tzfile_default): Use int, not long int, for
995 the GMT offsets.
996 * time/tzfile.c (struct ttinfo): Change type of the offset member
997 to int.
998 (__tzfile_read): Remove useless cast.
999 (__tzfile_default): Adjust prototype.
1000 * time/tzset.c (tz_rule): Change type of the offset member to int.
1001 (parse_offset): Change the type of the sign variable to int.
1002
1003 2019-02-03 Florian Weimer <fweimer@redhat.com>
1004
1005 [BZ #24153]
1006 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1007 * libio/getchar.c (getchar): Likewise.
1008 * libio/getchar_u.c (getchar_unlocked): Likewise.
1009 * libio/getwchar.c (getwchar): Likewise.
1010 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1011 * libio/iogets.c (_IO_gets): Likewise.
1012 * libio/vscanf.c (_IO_vscanf): Likewise.
1013 * libio/vwscanf.c (__vwscanf): Likewise.
1014 * libio/tst-bz24153.c: New file.
1015 * libio/Makefile (tests): Add it.
1016
1017 2019-02-02 Florian Weimer <fweimer@redhat.com>
1018
1019 [BZ #14829]
1020 * manual/resource.texi (Basic Scheduling Functions): Add
1021 portability note. Change process to task throughout the section.
1022 Remove incorrect comment about sched_yield as it affects
1023 tasks/threads, not entire processes.
1024 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1025 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1026
1027 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1028
1029 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1030 * configure: Regenerated.
1031 * manual/install.texi (Tools for Compilation): Update minimum GCC
1032 version.
1033 * INSTALL: Regenerated.
1034
1035 2019-02-01 Florian Weimer <fweimer@redhat.com>
1036
1037 * support/support_test_compare_string.c
1038 (support_test_compare_string): Use "string" in error message.
1039 * support/tst-test_compare_string.c (do_test): Adjust.
1040
1041 2019-02-01 Florian Weimer <fweimer@redhat.com>
1042
1043 * support/support_format_address_family.c
1044 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1045
1046 2019-02-01 Florian Weimer <fweimer@redhat.com>
1047
1048 * manual/socket.texi (Internet Address Formats): Clarify the byte
1049 order of struct sockaddr_in, struct sockaddr_in6. Document
1050 sin6_flowinfo and sin6_scope_id.
1051
1052 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1053
1054 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1055 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1056 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1057 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1058 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1059 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1060
1061 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1062
1063 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1064 [!MEMCHR](MEMCHR): Set to __memchr.
1065 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1066 Add memchr_generic and memchr_nosimd.
1067 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1068 (__libc_ifunc_impl_list): Add memchr ifuncs.
1069 * sysdeps/aarch64/multiarch/memchr.c: New file.
1070 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1071 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1072
1073 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1074
1075 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1076 Add memset_emag.
1077 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1078 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1079 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1080 Add IS_EMAG check for ifunc dispatch.
1081 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1082 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1083
1084 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1085
1086 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1087 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1088 Add emag.
1089 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1090 New macro.
1091
1092 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1093
1094 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1095
1096 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1097
1098 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1099 syscall-template file.
1100
1101 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1102 Torvald Riegel <triegel@redhat.com>
1103 Rik Prohaska <prohaska7@gmail.com>
1104
1105 [BZ# 23844]
1106 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1107 tst-rwlock-trywrlock-stall.
1108 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1109 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1110 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1111 Set __wrphase_fute to 1 only if we started the write phase.
1112 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1113 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1114 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1115 * support/xpthread_rwlock_destroy.c: New file.
1116 * support/xthread.h: Declare xpthread_rwlock_destroy.
1117
1118 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1119
1120 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1121 version to 4.0.2.
1122
1123 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1124
1125 [BZ #24051]
1126 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1127 * libio/fileops.c (_IO_new_file_underflow): Likewise
1128 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1129 * libio/putchar.c (putchar): Likewise.
1130 * libio/putchar_u.c (putchar_unlocked): Likewise.
1131 * libio/putwchar.c (putchar): Likewise.
1132 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1133 * libio/tst-bz24051.c: New test.
1134 * libio/Makefile (tests): Add tst-bz24051
1135
1136 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1137
1138 regex: fix read overrun [BZ #24114]
1139 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1140 https://debbugs.gnu.org/34140
1141 * posix/regexec.c (proceed_next_node):
1142 Do not read past end of input buffer.
1143
1144 2019-01-31 Florian Weimer <fweimer@redhat.com>
1145
1146 [BZ #24059]
1147 * nss/nss_files/files-alias.c (get_next_alias): Handle
1148 continuation line without newline at the end.
1149 * nss/tst-nss-files-alias-truncated.c: New file.
1150 * nss/Makefile [$(build-shared)] (tests): Add
1151 tst-nss-files-alias-truncated.
1152 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1153 * support/namespace.h (struct support_chroot_configuration): Add
1154 aliases member.
1155 (struct support_chroot): Add path_aliases member.
1156 * support/support_chroot.c (support_chroot_create): Handle
1157 aliases.
1158 (support_chroot_free): Free path_aliases.
1159
1160 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1161
1162 * version.h (RELEASE): Set to "development".
1163 (VERSION): Set to "2.29.9000".
1164 * NEWS: Add section for 2.30.
1165
1166 * version.h (RELEASE): Set to "stable".
1167 (VERSION): Set to "2.29".
1168 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1169
1170 * NEWS: Add the list of bugs fixed in 2.29.
1171 * manual/contrib.texi: Update contributors list with some more
1172 names.
1173 * manual/install.texi: Update latest versions of packages
1174 tested.
1175 * INSTALL: Regenerated.
1176
1177 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1178
1179 * po/be.po: Update translations.
1180 * po/bg.po: Likewise.
1181 * po/ca.po: Likewise.
1182 * po/cs.po: Likewise.
1183 * po/da.po: Likewise.
1184 * po/de.po: Likewise.
1185 * po/el.po: Likewise.
1186 * po/eo.po: Likewise.
1187 * po/es.po: Likewise.
1188 * po/fi.po: Likewise.
1189 * po/fr.po: Likewise.
1190 * po/gl.po: Likewise.
1191 * po/hr.po: Likewise.
1192 * po/hu.po: Likewise.
1193 * po/ia.po: Likewise.
1194 * po/id.po: Likewise.
1195 * po/it.po: Likewise.
1196 * po/ja.po: Likewise.
1197 * po/ko.po: Likewise.
1198 * po/lt.po: Likewise.
1199 * po/nb.po: Likewise.
1200 * po/nl.po: Likewise.
1201 * po/pl.po: Likewise.
1202 * po/pt_BR.po: Likewise.
1203 * po/ru.po: Likewise.
1204 * po/rw.po: Likewise.
1205 * po/sk.po: Likewise.
1206 * po/sl.po: Likewise.
1207 * po/sv.po: Likewise.
1208 * po/tr.po: Likewise.
1209 * po/uk.po: Likewise.
1210 * po/vi.po: Likewise.
1211 * po/zh_CN.po: Likewise.
1212 * po/zh_TW.po: Likewise.
1213
1214 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1215
1216 [BZ #24130]
1217 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1218 of $f3 register on $y_is_neg path.
1219
1220 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1221
1222 [BZ #24110]
1223 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1224 sigaltstack.ss_flags.
1225
1226 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1227
1228 [BZ #23758]
1229 * manual/time.texi (strftime): Document "%Ey".
1230 * time/strftime_l.c (__strftime_internal): Set the default width
1231 padding with zero of "%Ey" to 2.
1232
1233 [BZ #24096]
1234 * manual/time.texi (strftime): Document "%EC" and "%EY".
1235 * time/Makefile (tests): Add tst-strftime2.
1236 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1237 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1238 override padding for "%Ey".
1239 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1240 "%Ey" in the subformat as if decorated with that flag.
1241 * time/tst-strftime2.c: New file.
1242
1243 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1244
1245 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1246 are not defined.
1247
1248 [BZ #24122]
1249 * elf/Makefile (tests): Add tst-audit13.
1250 (modules-names): Add tst-audit13mod1.
1251 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1252 rule.
1253 * elf/rtld.c (dl_main): Handle invalid audit module version.
1254 * elf/tst-audit13.c: New file.
1255 * elf/tst-audit13mod1.c: Likewise.
1256
1257 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1258
1259 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1260 returned by __hurd_at_flags.
1261 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1262 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1263 directly instead of __hurd_file_name_lookup.
1264
1265 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1266
1267 * scripts/build-many-glibcs.py (Context.checkout): Default
1268 binutils version to 2.32 branch.
1269
1270 2019-01-21 Florian Weimer <fweimer@redhat.com>
1271
1272 [BZ #20018]
1273 CVE-2016-10739
1274 resolv: Reject trailing characters in host names
1275 * include/arpa/inet.h (__inet_aton_exact): Declare.
1276 (inet_aton): Remove hidden prototype. No longer used internally.
1277 * nscd/gai.c (__inet_aton): Do not define.
1278 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1279 * nss/digits_dots.c (__inet_aton): Likewise.
1280 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1281 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1282 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1283 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1284 (tst-resolv-trailing): Likewise.
1285 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1286 libc.
1287 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1288 Make static. Add endp parameter.
1289 (__inet_aton_exact): New function.
1290 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1291 (__inet_addr): Call inet_aton_end.
1292 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1293 not just IPv6. Call __inet_aton_exact.
1294 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1295 (tests): Make const. Add additional test cases with trailing
1296 characters.
1297 (do_test): Use array_length.
1298 * resolv/tst-inet_aton_exact.c: New file.
1299 * resolv/tst-resolv-trailing.c: Likewise.
1300 * resolv/tst-resolv-nondecimal.c: Likewise.
1301 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1302
1303 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1304
1305 [BZ# 24097]
1306 CVE-2019-6488
1307 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1308 Clear the upper 32 bits of RSI register.
1309 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1310 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1311 and tst-size_t-wcsnlen.
1312 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1313 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1314
1315 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1316
1317 [BZ# 24097]
1318 CVE-2019-6488
1319 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1320 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1321 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1322 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1323 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1324
1325 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1326
1327 [BZ# 24097]
1328 CVE-2019-6488
1329 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1330 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1331 * sysdeps/x86_64/strcmp.S: Likewise.
1332 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1333 tst-size_t-strncmp and tst-size_t-wcsncmp.
1334 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1335 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1336 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1337
1338 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1339
1340 [BZ# 24097]
1341 CVE-2019-6488
1342 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1343 RDX_LP for length. Clear the upper 32 bits of RDX register.
1344 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1345 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1346 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1347 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1348
1349 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 [BZ# 24097]
1352 CVE-2019-6488
1353 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1354 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1355 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1356 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1357
1358 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1359
1360 [BZ# 24097]
1361 CVE-2019-6488
1362 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1363 length. Clear the upper 32 bits of RDX register.
1364 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1365 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1366 Likewise.
1367 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1368 Likewise.
1369 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1370 tst-size_t-wmemchr.
1371 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1372
1373 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 [BZ# 24097]
1376 CVE-2019-6488
1377 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1378 length. Clear the upper 32 bits of RDX register.
1379 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1380 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1381 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1382 tst-size_t-wmemcmp.
1383 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1384 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1385
1386 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1387
1388 [BZ# 24097]
1389 CVE-2019-6488
1390 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1391 upper 32 bits of RDX register.
1392 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1393 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1394 tst-size_t-wmemchr.
1395 * sysdeps/x86_64/x32/test-size_t.h: New file.
1396 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1397 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1398
1399 2019-01-18 Florian Weimer <fweimer@redhat.com>
1400
1401 [BZ #24112]
1402 resolv: Do not send queries for non-host-names in nss_dns.
1403 * resolv/nss_dns/dns-host.c (check_name): New function.
1404 (_nss_dns_gethostbyname2_r): Use it.
1405 (_nss_dns_gethostbyname_r): Likewise.
1406 (_nss_dns_gethostbyname4_r): Likewise.
1407
1408 2019-01-21 Florian Weimer <fweimer@redhat.com>
1409
1410 * resolv/inet_addr.c: Reformat to GNU style.
1411 (__inet_addr, __inet_aton): Update comment.
1412
1413 2019-01-18 Florian Weimer <fweimer@redhat.com>
1414
1415 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1416 ("malloc: Use current (C11-style) atomics for fastbin access").
1417 This commit introduces a substantial performance regression on
1418 POWER and Aarch64.
1419 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1420 (REMOVE_FB): Define.
1421 (_int_malloc): Use it and reindent.
1422 (_int_free): Use CAS loop with
1423 catomic_compare_and_exchange_val_rel.
1424 (malloc_consolidate): Use atomic_exchange_acq.
1425
1426
1427 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1428
1429 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1430 -Wl,-z,now.
1431 (LDFLAGS-tst-minsigstksz-2): Likewise.
1432 (LDFLAGS-tst-minsigstksz-3): Likewise.
1433 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1434 (LDFLAGS-tst-minsigstksz-4): Likewise.
1435
1436 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1437
1438 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1439 than "alternate".
1440
1441 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1442
1443 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1444
1445 2019-01-16 Zack Weinberg <zackw@panix.com>
1446
1447 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1448 (xget_sigstack_location): New test support functions.
1449 * support/xsigstack.c: New file, implementing them.
1450 * support/tst-xsigstack.c: New test for them.
1451 * support/Makefile: Update.
1452
1453 * signal/tst-minsigstksz-1.c
1454 * signal/tst-minsigstksz-2.c
1455 * signal/tst-minsigstksz-3.c
1456 * signal/tst-minsigstksz-3a.c
1457 * signal/tst-minsigstksz-4.c: New tests.
1458 * signal/Makefile: Run them.
1459
1460 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1461
1462 * po/libc.pot: Regenerate.
1463
1464 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1465
1466 * math/libm-test-fma.inc (fma_test_data): Set
1467 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1468
1469 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1470
1471 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1472 (do_test): Changed __vector __int128_t to __vector unsigned int.
1473
1474 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1475
1476 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1477 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1478 stpcpy-avx2 and stpncpy-avx2.
1479 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1480 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1481 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1482 and __stpncpy_avx2.
1483 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1484 ifunc-strcpy.h}: rename header for a more generic name.
1485 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1486 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1487 AVX unaligned load is fast and vzeroupper is preferred.
1488 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1489 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1490 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1491 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1492 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1493 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1494
1495 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1496
1497 * argp/argp-help.c: Fix typo in comment.
1498 * misc/sys/cdefs.h: Likewise.
1499 * posix/regexec.c (sift_states_iter_mb): Likewise.
1500 * socket/sockatmark.c: Likewise.
1501 * socket/sys/socket.h: Likewise.
1502 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1503 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1504 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1505 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1506 * sysdeps/unix/sockatmark.c: Likewise.
1507 * time/strptime_l.c: Likewise.
1508
1509 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1510
1511 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1512 missing space after the cast of "_NL_CURRENT".
1513
1514 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1515
1516 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1517 ifdef to fix read of VSCR.
1518 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1519 tst-ucontext-ppc64-vscr.c to test list.
1520 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1521
1522 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1523
1524 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1525 fall-through.
1526
1527 2019-01-09 Jim Wilson <jimw@sifive.com>
1528
1529 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1530
1531 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1532
1533 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1534 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1535 __memcpy_falkor for ares.
1536 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1537 Add new define.
1538 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1539 Add ares cpu.
1540
1541 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1542
1543 [BZ #24066]
1544 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1545 4_FP_W_TYPEs are used for IEEE quad precision.
1546 * soft-fp/extendhftf2.c: Likewise.
1547 * soft-fp/extendsftf2.c: Likewise.
1548 * soft-fp/extendxftf2.c: Likewise.
1549 * soft-fp/trunctfdf2.c: Likewise.
1550 * soft-fp/trunctfhf2.c: Likewise.
1551 * soft-fp/trunctfsf2.c: Likewise.
1552 * soft-fp/trunctfxf2.c: Likewise.
1553 * sysdeps/alpha/ots_cvttx.c: Likewise.
1554 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1555 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1556 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1557 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1558 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1559 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1560 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1561 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1562 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1563 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1564 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1565 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1566 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1567 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1568 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1569 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1570 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1571
1572 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1573
1574 [BZ #24024]
1575 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1576 code with -fmath-errno.
1577 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1578 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1579 * string/test-strerror-errno.c: New file.
1580
1581 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1582
1583 [BZ #24046]
1584 * localedata/locales/en_US (date_fmt): Add, set to
1585 "%a %d %b %Y %r %Z".
1586
1587 2019-01-07 Florian Weimer <fweimer@redhat.com>
1588
1589 [BZ #24063]
1590 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1591 instead of @var{errno}.
1592 (Parsing of Integers): Likewise.
1593 (Parsing of Floats): Likewise.
1594 * manual/filesys.texi (Working with Directory Trees): Likewise.
1595 (Temporary Files): Likewise.
1596 * manual/job.texi (Terminal Access Functions): Likewise.
1597 * manual/llio.texi (Synchronizing I/O): Likewise.
1598 * manual/math.texi (SVID Random): Likewise.
1599 * manual/message.texi (The catgets Functions): Likewise.
1600 (Translation with gettext): Likewise.
1601 (Locating gettext catalog): Likewise.
1602 (Charset conversion in gettext): Likewise.
1603 * manual/nss.texi (NSS Module Function Internals): Likewise.
1604 * manual/search.texi (Hash Search Function): Likewise.
1605 * manual/setjmp.texi (System V contexts): Likewise.
1606 * manual/time.texi (Sleeping): Likewise.
1607 * manual/users.texi (Lookup User): Likewise.
1608 (Lookup Group): Likewise.
1609
1610 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1611
1612 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1613 fix typo.
1614
1615 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1616
1617 [BZ #19444]
1618 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1619 __builtin_unreachable for default case in switch.
1620 (__ieee754_yn): Likewise.
1621 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1622 (__ieee754_ynl): Likewise.
1623 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1624 (__ieee754_ynl): Likewise.
1625 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1626 (__ieee754_ynl): Likewise.
1627
1628 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1629
1630 * manual/maint.texi: Use @{ and @}.
1631
1632 2019-01-04 Florian Weimer <fweimer@redhat.com>
1633
1634 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1635 function.
1636 (do_in_chroot_1): Call it.
1637 (run_chroot_tests):
1638 Improve error reporting in case it is not possible to create a
1639 collision for the PTY name required by the test.
1640
1641 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1642
1643 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1644 lll_wait_tid with timeout.
1645 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1646 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1647 futex_reltimed_wait_cancelable for cancelabla mode.
1648 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1649 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1650 macros.
1651 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1652 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1653 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1654 SYSCALL_CANCEL_NCS): New macro.
1655 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1656 (lll_timedwait_tid): Remove macro.
1657 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1658 Likewise.
1659 (lll_timedwait_tid): Likewise.
1660 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1661 Likewise.
1662 (lll_timedwait_tid): Likewise.
1663 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1664 Likewise.
1665 (lll_timedwait_tid): Likewise.
1666 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1667 Use INTERNAL_SYSCALL_CANCEL.
1668 * sysdeps/unix/sysv/linux/futex-internal.h
1669 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1670 instead of __pthread_{enable,disable}_asynccancel.
1671 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1672 (lll_futex_wait_cancel): New macro.
1673
1674 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1675 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1676
1677 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1678 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1679
1680 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1681 in backtrace analysis.
1682 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1683 side-effects.
1684 (tf_send): Likewise.
1685
1686 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1687 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1688 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1689 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1690 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1691 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1692 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1693 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1694 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1695 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1696 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1697 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1698 Likewise.
1699 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1700 tst-cancel-wrappers.sh.
1701 (generated): Remove tst-cancel-wrappers.out.
1702 (tst-cancel-wrappers.out): Remove rule.
1703 * nptl/tst-cancel-wrappers.sh: Remove file.
1704
1705 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1706
1707 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1708 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1709 Update.
1710
1711 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1712
1713 [BZ #23640]
1714 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1715 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1716 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1717 close-on-exec reset for adddup2 file action.
1718 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1719
1720 2019-01-03 Zack Weinberg <zackw@panix.com>
1721
1722 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1723 parameter. Only use deprecated scanf when __USE_GNU is defined
1724 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1725 than 201103L, whichever is relevant for the language being compiled.
1726
1727 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1728 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1729 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1730 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1731 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1732
1733 * libio/iovsscanf.c
1734 * libio/fwscanf.c
1735 * libio/iovswscanf.c
1736 * libio/swscanf.c
1737 * libio/vscanf.c
1738 * libio/vwscanf.c
1739 * libio/wscanf.c
1740 * stdio-common/fscanf.c
1741 * stdio-common/scanf.c
1742 * stdio-common/vfscanf.c
1743 * stdio-common/vfwscanf.c
1744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1745 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1746 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1747 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1748 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1749 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1750 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1751 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1752 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1753 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1754 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1755 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1756 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1757 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1758 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1759
1760 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1761 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1762 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1763 not sscanf.
1764 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1765 with a preprocessor macro.
1766
1767 * stdio-common/bug21.c, stdio-common/scanf14.c:
1768 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1769 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1770 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1771 to xscanf, xfscanf, xsscanf.
1772
1773 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1774 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1775 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1776 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1777 xfscanf, xsscanf.
1778 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1779 override feature selection macros or provide definitions of u_char etc.
1780 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1781 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1782 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1783 with -std=gnu89.
1784
1785 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1786
1787 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1788 bits/termios-misc.h.
1789 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1790 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1791 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1792 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1793 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1794 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1795
1796 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1797 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1798 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1799 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1800 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1801 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1802 termios-misc.h.
1803 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1804 (sysdep_headers): Add termios-misc.h.
1805
1806 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1807 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1808 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1809
1810 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1811 termios-tcflow.h.
1812 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1813 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1814 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1815 TCSAFLUSH): Move to termios-tcflow.h.
1816 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1817 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1818 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1819 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1820
1821 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1822 termios-c_lflag.h.
1823 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1824 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1825 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1826 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1827 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1828 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1829 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1830 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1831 Likewise.
1832 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1833 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1834 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1835 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1836
1837 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1838 termios-c_cflag.h.
1839 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1840 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1841 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1842 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1843 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1844 termios-c_cflag.h.
1845 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1846 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1847 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1848 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1849
1850 [BZ #23783]
1851 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1852 termios-baud.h.
1853 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1854 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1855 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1856 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1857 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1858 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1859 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1860 __MAX_BAUD): Move to termios-baud.h.
1861 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1862 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1863 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1864 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1865 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1866
1867 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1868 termios-c_oflag.h.
1869 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1870 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1871 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1872 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1873 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1874 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1875 termios-c_oflag.h.
1876 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1877 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1878 FFR1): Likewise.
1879 [USE_MISC] (XTABS): Likewise.
1880 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1881 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1882 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1883 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1884
1885 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1886 termios-c_iflag.h.
1887 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1888 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1889 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1890 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1891 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1892 IUTF8): Move to termios-c_iflag.h.
1893 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1894 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1895 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1896 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1897
1898 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1899 termios-cc.h.
1900 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1901 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1902 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1903 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1904 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1905 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1906 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1907 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1908 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1909 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1910 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1911 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1912
1913 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1914 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1915 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1916 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1917 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1918 termios-struct.h.
1919 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1920 termios-struct.h.
1921 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1922 Likewise.
1923 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1924 Likewise.
1925 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1926 Likewise.
1927 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1928 Likewise.
1929 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1930 _HAVE_C_OSPEED): Define.
1931 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1932 _HAVE_C_OSPEED): Likewise.
1933 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1934 _HAVE_C_OSPEED): Likewise.
1935 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1936 (cfsetospeed): Check for define value instead of existence.
1937 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1938 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1939 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1940 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1941 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1942
1943 [BZ #17783]
1944 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1945 Define.
1946 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1947 (TIOCSER_TEMT): Likewise.
1948 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1949 (TEOCSER_TEMT): Likewise.
1950
1951 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1952
1953 [BZ #24011]
1954 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1955
1956 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1957
1958 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1959
1960 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1961
1962 * sysdeps/htl/pt-barrierattr-setpshared.c
1963 (pthread_barrierattr_setpshared): Add stub warning.
1964 * sysdeps/htl/pt-condattr-setpshared.c
1965 (pthread_condattr_setpshared): Likewise.
1966 * sysdeps/htl/pt-mutexattr-setpshared.c
1967 (pthread_mutexattr_setpshared): Likewise.
1968 * sysdeps/htl/pt-rwlockattr-setpshared.c
1969 (pthread_rwlockattr_setpshared): Likewise.
1970 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1971 (pthread_mutexattr_setpshared): Likewise.
1972
1973 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1974
1975 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1976 constants to match with Linux 4.20.
1977
1978 * sysdeps/mips/mips32/libm-test-ulps: Update.
1979 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1980
1981 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1982
1983 [BZ #24034]
1984 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1985 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1986 than __typeof (...) for the a_ptr variable.
1987
1988 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1989
1990 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1991 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1992 * libio/Makefile (tests): Add tst-sprintf-ub and
1993 tst-sprintf-chk-ub.
1994 (CFLAGS-tst-sprintf-ub.c): New variable.
1995 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1996 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1997 destination buffer and check for overflows in fortified mode.
1998 * libio/libioP.h (PRINTF_CHK): New macro.
1999 * libio/tst-sprintf-chk-ub.c: New file.
2000 * libio/tst-sprintf-ub.c: Likewise.
2001
2002 2019-01-02 Florian Weimer <fweimer@redhat.com>
2003
2004 [BZ #24018]
2005 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2006 failure.
2007
2008 2019-01-02 Florian Weimer <fweimer@redhat.com>
2009
2010 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2011
2012 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2013
2014 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2015 macro.
2016
2017 * sysdeps/unix/sysv/linux/netpacket/packet.h
2018 (PACKET_IGNORE_OUTGOING): New macro.
2019
2020 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2021 macro.
2022
2023 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2024 version to 4.20.
2025 (riscv_flush_icache): New syscall.
2026
2027 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2028 trailing whitespace removed.
2029 * scripts/config.guess: Update to version 2019-01-01.
2030 * scripts/config.sub: Update to version 2019-01-01.
2031 * scripts/move-if-change: Update from gnulib.
2032
2033 * NEWS: Update copyright dates.
2034 * catgets/gencat.c (print_version): Likewise.
2035 * csu/version.c (banner): Likewise.
2036 * debug/catchsegv.sh: Likewise.
2037 * debug/pcprofiledump.c (print_version): Likewise.
2038 * debug/xtrace.sh (do_version): Likewise.
2039 * elf/ldconfig.c (print_version): Likewise.
2040 * elf/ldd.bash.in: Likewise.
2041 * elf/pldd.c (print_version): Likewise.
2042 * elf/sotruss.sh: Likewise.
2043 * elf/sprof.c (print_version): Likewise.
2044 * iconv/iconv_prog.c (print_version): Likewise.
2045 * iconv/iconvconfig.c (print_version): Likewise.
2046 * locale/programs/locale.c (print_version): Likewise.
2047 * locale/programs/localedef.c (print_version): Likewise.
2048 * login/programs/pt_chown.c (print_version): Likewise.
2049 * malloc/memusage.sh (do_version): Likewise.
2050 * malloc/memusagestat.c (print_version): Likewise.
2051 * malloc/mtrace.pl: Likewise.
2052 * manual/libc.texinfo: Likewise.
2053 * nptl/version.c (banner): Likewise.
2054 * nscd/nscd.c (print_version): Likewise.
2055 * nss/getent.c (print_version): Likewise.
2056 * nss/makedb.c (print_version): Likewise.
2057 * posix/getconf.c (main): Likewise.
2058 * scripts/test-installation.pl: Likewise.
2059 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2060
2061 * All files with FSF copyright notices: Update copyright dates
2062 using scripts/update-copyrights.
2063 * locale/programs/charmap-kw.h: Regenerated.
2064 * locale/programs/locfile-kw.h: Likewise.
2065
2066 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2067
2068 * timezone/zdump.c: Update from tzcode 2018i.
2069 * timezone/zic.c: Likewise.
2070
2071 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2072
2073 regex: improve Gnulib port to AIX
2074 From the glibc point of view, this removes duplicate macro
2075 definitions and is obviously safe.
2076 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2077 * posix/regex_internal.h:
2078 (__attribute__, __attribute_warn_unused_result__):
2079 Remove; already defined elsewhere.
2080
2081 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2082
2083 [BZ #24027]
2084 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2085 copying operation. (ncopies had the wrong type, resulting in an
2086 integer wraparound and too few elements being copied.)
2087
2088 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2089
2090 [BZ #24022]
2091 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2092 <asm/syscalls.h> exists with __has_include__ before including it.
2093
2094 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2095
2096 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2097 version to 4.20.
2098
2099 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2100
2101 * hurd/lookup-retry: Include <unistd.h>.
2102 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2103 Release it on return. Handle "pid" magical lookup retry.
2104
2105 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2106
2107 [BZ #10496]
2108 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2109 (t_fmt_ampm): Likewise.
2110 * localedata/locales/aa_ER (t_fmt): Likewise.
2111 (t_fmt_ampm): Likewise.
2112 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2113 (t_fmt_ampm): Likewise.
2114 * localedata/locales/aa_ET (t_fmt): Likewise.
2115 (t_fmt_ampm): Likewise.
2116 * localedata/locales/am_ET (t_fmt): Likewise.
2117 (t_fmt_ampm): Likewise.
2118 * localedata/locales/byn_ER (t_fmt): Likewise.
2119 (t_fmt_ampm): Likewise.
2120 * localedata/locales/om_ET (t_fmt): Likewise.
2121 (t_fmt_ampm): Likewise.
2122 * localedata/locales/sid_ET (t_fmt): Likewise.
2123 (t_fmt_ampm): Likewise.
2124 * localedata/locales/so_DJ (t_fmt): Likewise.
2125 (t_fmt_ampm): Likewise.
2126 * localedata/locales/so_ET (t_fmt): Likewise.
2127 (t_fmt_ampm): Likewise.
2128 * localedata/locales/so_SO (t_fmt): Likewise.
2129 (t_fmt_ampm): Likewise.
2130 * localedata/locales/ti_ER (t_fmt): Likewise.
2131 (t_fmt_ampm): Likewise.
2132 * localedata/locales/ti_ET (t_fmt): Likewise.
2133 (t_fmt_ampm): Likewise.
2134 * localedata/locales/tig_ER (t_fmt): Likewise.
2135 (t_fmt_ampm): Likewise.
2136 * localedata/locales/wal_ET (t_fmt): Likewise.
2137 (t_fmt_ampm): Likewise.
2138
2139 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2140 * localedata/locales/ar_IN (t_fmt): Likewise.
2141 * localedata/locales/bhb_IN (t_fmt): Likewise.
2142 * localedata/locales/bho_IN (t_fmt): Likewise.
2143 * localedata/locales/bi_VU (t_fmt): Likewise.
2144 * localedata/locales/bn_BD (t_fmt): Likewise.
2145 * localedata/locales/bn_IN (t_fmt): Likewise.
2146 * localedata/locales/brx_IN (t_fmt): Likewise.
2147 * localedata/locales/doi_IN (t_fmt): Likewise.
2148 * localedata/locales/en_HK (t_fmt): Likewise.
2149 (t_fmt_ampm): Likewise.
2150 * localedata/locales/en_IN (t_fmt): Likewise.
2151 * localedata/locales/en_PH (t_fmt): Likewise.
2152 * localedata/locales/gu_IN (t_fmt): Likewise.
2153 * localedata/locales/hi_IN (t_fmt): Likewise.
2154 * localedata/locales/hif_FJ (t_fmt): Likewise.
2155 * localedata/locales/hne_IN (t_fmt): Likewise.
2156 * localedata/locales/kn_IN (t_fmt): Likewise.
2157 * localedata/locales/kok_IN (t_fmt): Likewise.
2158 * localedata/locales/ks_IN (t_fmt): Likewise.
2159 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2160 * localedata/locales/mag_IN (t_fmt): Likewise.
2161 * localedata/locales/mai_IN (t_fmt): Likewise.
2162 * localedata/locales/mjw_IN (t_fmt): Likewise.
2163 * localedata/locales/ml_IN (t_fmt): Likewise.
2164 * localedata/locales/mni_IN (t_fmt): Likewise.
2165 * localedata/locales/mr_IN (t_fmt): Likewise.
2166 * localedata/locales/ms_MY (t_fmt): Likewise.
2167 * localedata/locales/pa_IN (t_fmt): Likewise.
2168 * localedata/locales/raj_IN (t_fmt): Likewise.
2169 * localedata/locales/sa_IN (t_fmt): Likewise.
2170 * localedata/locales/sat_IN (t_fmt): Likewise.
2171 * localedata/locales/sd_IN (t_fmt): Likewise.
2172 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2173 * localedata/locales/tcy_IN (t_fmt): Likewise.
2174 * localedata/locales/the_NP (t_fmt): Likewise.
2175 * localedata/locales/to_TO (t_fmt): Likewise.
2176 * localedata/locales/ur_IN (t_fmt): Likewise.
2177
2178 * localedata/locales/hif_FJ (d_t_fmt): Set to
2179 "%A %d %b %Y %I:%M:%S %p".
2180 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2181
2182 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2183 * localedata/locales/ar_BH (t_fmt): Likewise.
2184 * localedata/locales/ar_DZ (t_fmt): Likewise.
2185 * localedata/locales/ar_EG (t_fmt): Likewise.
2186 * localedata/locales/ar_IQ (t_fmt): Likewise.
2187 * localedata/locales/ar_JO (t_fmt): Likewise.
2188 * localedata/locales/ar_KW (t_fmt): Likewise.
2189 * localedata/locales/ar_LB (t_fmt): Likewise.
2190 * localedata/locales/ar_LY (t_fmt): Likewise.
2191 * localedata/locales/ar_OM (t_fmt): Likewise.
2192 * localedata/locales/ar_QA (t_fmt): Likewise.
2193 * localedata/locales/ar_SD (t_fmt): Likewise.
2194 * localedata/locales/ar_SS (t_fmt): Likewise.
2195 * localedata/locales/ar_SY (t_fmt): Likewise.
2196 * localedata/locales/ar_TN (t_fmt): Likewise.
2197 * localedata/locales/ar_YE (t_fmt): Likewise.
2198
2199 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2200 (t_fmt_ampm): Likewise.
2201 * localedata/locales/gez_ET (t_fmt): Likewise.
2202 (t_fmt_ampm): Likewise.
2203
2204 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2205 (t_fmt_ampm): Likewise.
2206 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2207
2208 * localedata/locales/zh_HK (t_fmt):
2209 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2210
2211 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2212 because this locale does not use the 12-hour clock.
2213 (t_fmt): Set to "%Z %H:%M:%S".
2214 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2215
2216 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2217 because this locale does not use the 12-hour clock.
2218 (t_fmt): Set to "%H:%M:%S %Z".
2219 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2220
2221 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2222 because this locale does not use the 12-hour clock.
2223 (t_fmt): Set to "%T".
2224 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2225 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2226
2227 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2228 because this locale does not use the 12-hour clock.
2229 (t_fmt): Set to "%H:%M:%S %Z".
2230 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2231
2232 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2233 because this locale does not use the 12-hour clock.
2234 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2235 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2236
2237 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2238
2239 [BZ #10496]
2240 [BZ #23724]
2241 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2242 (t_fmt_ampm): Likewise.
2243 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2244 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2245 (d_fmt): Set to "%-d.%-m.%y".
2246
2247 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2248
2249 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2250 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2251 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2252 Likewise.
2253 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2254 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2255 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2256 function.
2257 * support/blob_repeat.c (check_mul_overflow_size_t,
2258 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2259
2260 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2261
2262 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2263
2264 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2265
2266 regex: simplify Gnulib port
2267 This simplifies the code, by removing stuff intended for porting
2268 to Gnulib but no longer needed there.
2269 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2270 uses of libc_hidden_def, weak_alias.
2271 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2272 _Restrict_ except for public-facing headers.
2273 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2274 Remove; already defined elsewhere.
2275 * posix/regex.c, posix/regex_internal.h:
2276 Use __GNUC_PREREQ instead of rolling our own.
2277 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2278
2279 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2280
2281 * benchtests/bench-strlen.c (generic_strlen): New function.
2282 (memchr_strlen): New function.
2283
2284 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2285
2286 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2287 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2288 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2289
2290 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2291
2292 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2293
2294 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2295
2296 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2297 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2298 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2299 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2300 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2301 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2302 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2303
2304 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2305
2306 [BZ #24023]
2307 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2308 PLT reference in libc.so.
2309 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2310 _Q_lltoq and _Q_qtod PLT references in libc.so.
2311
2312 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2313
2314 * benchtests/bench-memchr.c: Cleanup defines.
2315 * benchtests/bench-memcmp.c: Likewise.
2316 * benchtests/bench-memset.c: Likewise.
2317 * benchtests/bench-memset-large.c: Likewise.
2318 * benchtests/bench-memset-walk.c: Likewise.
2319 * benchtests/bench-stpcpy.c: Likewise.
2320 * benchtests/bench-stpncpy.c: Likewise.
2321 * benchtests/bench-strcat.c: Likewise.
2322 * benchtests/bench-strchr.c: Likewise.
2323 * benchtests/bench-strcmp.c: Likewise.
2324 * benchtests/bench-strcpy.c: Likewise.
2325 * benchtests/bench-strcspn.c: Likewise.
2326 * benchtests/bench-string.h: Likewise.
2327 * benchtests/bench-strlen.c: Likewise.
2328 * benchtests/bench-strncat.c: Likewise.
2329 * benchtests/bench-strncmp.c: Likewise.
2330 * benchtests/bench-strncpy.c: Likewise.
2331 * benchtests/bench-strnlen.c: Likewise.
2332 * benchtests/bench-strpbrk.c: Likewise.
2333 * benchtests/bench-strrchr.c: Likewise.
2334 * benchtests/bench-strspn.c: Likewise.
2335
2336 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2337
2338 * stdlib/longlong.h: Update from GCC.
2339
2340 [BZ #23993]
2341 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2342 * configure: Regenerated.
2343 * manual/install.texi (Tools for Compilation): Update minimum GCC
2344 version.
2345 * INSTALL: Regenerated.
2346
2347 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2348
2349 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2350
2351 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2352
2353 * malloc/malloc.c (mremap_chunk): Additional checks.
2354
2355 2018-12-21 Mao Han <han_mao@c-sky.com>
2356
2357 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2358 * scripts/build-many-glibcs.py: Add C-SKY targets.
2359 * sysdeps/csky/Implies: New file.
2360 * sysdeps/csky/Makefile: Likewise.
2361 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2362 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2363 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2364 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2365 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2366 * sysdeps/csky/abiv2/memmove.S: Likewise.
2367 * sysdeps/csky/abiv2/memset.S: Likewise.
2368 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2369 * sysdeps/csky/abiv2/start.S: Likewise.
2370 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2371 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2372 * sysdeps/csky/abiv2/strlen.S: Likewise.
2373 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2374 * sysdeps/csky/abort-instr.h: Likewise.
2375 * sysdeps/csky/atomic-machine.h: Likewise.
2376 * sysdeps/csky/bits/endian.h: Likewise.
2377 * sysdeps/csky/bits/fenv.h: Likewise.
2378 * sysdeps/csky/bits/link.h: Likewise.
2379 * sysdeps/csky/bits/setjmp.h: Likewise.
2380 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2381 * sysdeps/csky/bsd-setjmp.S: Likewise.
2382 * sysdeps/csky/configure: Likewise.
2383 * sysdeps/csky/configure.ac: Likewise.
2384 * sysdeps/csky/dl-machine.h: Likewise.
2385 * sysdeps/csky/dl-procinfo.c: Likewise.
2386 * sysdeps/csky/dl-procinfo.h: Likewise.
2387 * sysdeps/csky/dl-sysdep.h: Likewise.
2388 * sysdeps/csky/dl-tls.h: Likewise.
2389 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2390 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2391 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2392 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2393 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2394 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2395 * sysdeps/csky/fpu/fegetround.c: Likewise.
2396 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2397 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2398 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2399 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2400 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2401 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2402 * sysdeps/csky/fpu/fesetround.c: Likewise.
2403 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2404 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2405 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2406 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2407 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2408 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2409 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2410 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2411 * sysdeps/csky/fpu_control.h: Likewise.
2412 * sysdeps/csky/gccframe.h: Likewise.
2413 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2414 * sysdeps/csky/ldsodefs.h: Likewise.
2415 * sysdeps/csky/libc-tls.c: Likewise.
2416 * sysdeps/csky/linkmap.h: Likewise.
2417 * sysdeps/csky/machine-gmon.h: Likewise.
2418 * sysdeps/csky/memusage.h: Likewise.
2419 * sysdeps/csky/nofpu/Implies: Likewise.
2420 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2421 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2422 * sysdeps/csky/nptl/Makefile: Likewise.
2423 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2424 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2425 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2426 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2427 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2428 * sysdeps/csky/nptl/tls.h: Likewise.
2429 * sysdeps/csky/preconfigure: Likewise.
2430 * sysdeps/csky/sfp-machine.h: Likewise.
2431 * sysdeps/csky/sotruss-lib.c: Likewise.
2432 * sysdeps/csky/stackinfo.h: Likewise.
2433 * sysdeps/csky/sysdep.h: Likewise.
2434 * sysdeps/csky/tininess.h: Likewise.
2435 * sysdeps/csky/tst-audit.h: Likewise.
2436 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2437 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2438 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2439 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2440 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2441 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2442 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2443 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2444 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2445 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2446 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2447 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2448 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2449 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2450 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2451 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2452 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2453 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2454 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2455 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2456 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2457 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2458 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2459 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2460 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2461 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2462 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2463 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2464 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2465 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2466 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2467 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2468 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2469 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2470 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2471 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2472 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2473 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2474 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2475 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2476 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2477 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2478 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2479 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2480
2481 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2482
2483 * include/time.h (__difftime64): Add.
2484 * time/difftime.c (subtract): convert to 64-bit time.
2485 * time/difftime.c (__difftime64): Add.
2486 * time/difftime.c (__difftime): Wrap around __difftime64.
2487
2488 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2489
2490 * manual/examples/add.c: Remove redundant "if not".
2491 * manual/examples/argp-ex1.c: Likewise.
2492 * manual/examples/argp-ex2.c: Likewise.
2493 * manual/examples/argp-ex3.c: Likewise.
2494 * manual/examples/argp-ex4.c: Likewise.
2495 * manual/examples/atexit.c: Likewise.
2496 * manual/examples/db.c: Likewise.
2497 * manual/examples/dir.c: Likewise.
2498 * manual/examples/dir2.c: Likewise.
2499 * manual/examples/execinfo.c: Likewise.
2500 * manual/examples/filecli.c: Likewise.
2501 * manual/examples/filesrv.c: Likewise.
2502 * manual/examples/fmtmsgexpl.c: Likewise.
2503 * manual/examples/genpass.c: Likewise.
2504 * manual/examples/inetcli.c: Likewise.
2505 * manual/examples/inetsrv.c: Likewise.
2506 * manual/examples/isockad.c: Likewise.
2507 * manual/examples/longopt.c: Likewise.
2508 * manual/examples/memopen.c: Likewise.
2509 * manual/examples/memstrm.c: Likewise.
2510 * manual/examples/mkdirent.c: Likewise.
2511 * manual/examples/mkfsock.c: Likewise.
2512 * manual/examples/mkisock.c: Likewise.
2513 * manual/examples/mygetpass.c: Likewise.
2514 * manual/examples/pipe.c: Likewise.
2515 * manual/examples/popen.c: Likewise.
2516 * manual/examples/rprintf.c: Likewise.
2517 * manual/examples/search.c: Likewise.
2518 * manual/examples/select.c: Likewise.
2519 * manual/examples/setjmp.c: Likewise.
2520 * manual/examples/sigh1.c: Likewise.
2521 * manual/examples/sigusr.c: Likewise.
2522 * manual/examples/stpcpy.c: Likewise.
2523 * manual/examples/strdupa.c: Likewise.
2524 * manual/examples/strftim.c: Likewise.
2525 * manual/examples/subopt.c: Likewise.
2526 * manual/examples/swapcontext.c: Likewise.
2527 * manual/examples/termios.c: Likewise.
2528 * manual/examples/testopt.c: Likewise.
2529 * manual/examples/testpass.c: Likewise.
2530 * manual/examples/timeval_subtract.c: Likewise.
2531
2532 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2533
2534 * sysdeps/x86/fpu/math_private.h: New file.
2535 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2536
2537 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2538 definition.
2539 (cosh): Likewise.
2540 (tanh): Likewise.
2541
2542 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2543
2544 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2545 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2546 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2547 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2548 fields.
2549 (_dl_show_auxv): Give a special treatment to
2550 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2551 and AT_L3_CACHEGEOMETRY.
2552 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2553 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2554 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2555 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2556
2557 2018-12-19 Andreas Schwab <schwab@suse.de>
2558
2559 * nscd/connections.c (check_use): Don't abort on invalid len.
2560
2561 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2562
2563 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2564 values in the 64bit value cases.
2565
2566 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2567
2568 * include/time.h
2569 (__ctime64_r): Add.
2570 * time/ctime_r.c
2571 (__ctime64_r): Add.
2572 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2573
2574 * include/time.h
2575 (__ctime64): Add.
2576 * time/gmtime.c
2577 (__ctime64): Add.
2578 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2579
2580 * include/time.h
2581 (__gmtime64_r): Add.
2582 * time/gmtime.c
2583 (__gmtime64_r): Add.
2584 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2585
2586 * include/time.h
2587 (__gmtime64): Add.
2588 * time/gmtime.c
2589 (__gmtime64): Add.
2590 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2591
2592 * include/time.h
2593 (__localtime64_r): Add.
2594 * time/localtime.c
2595 (__localtime64_r): Add.
2596 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2597
2598 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2599
2600 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2601 kernel_sigction definition.
2602
2603 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2604
2605 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2606
2607 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2608 __syscall_rt_sigaction.
2609 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2610 (kernel_sigaction): Use Linux generic defintion.
2611 (STUB): Define.
2612 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2613 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2614 (__syscall_rt_sigaction): Remove implementation.
2615 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2616 hidden.
2617 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2618 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2619 INTERNAL_SYSCALL): Remove definitions.
2620 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2621 action and signal set size.
2622 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2623 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2624
2625 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2626 James Clarke <jrtc27@jrtc27.com>
2627
2628 [BZ #23967]
2629 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2630 Define if SA_RESTORER is defined.
2631 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2632 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2633 already defined.
2634 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2635 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2636 definitions.
2637 (HAS_SA_RESTORER): Define.
2638 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2639 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2640 (HAS_SA_RESTORER): Define.
2641 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2642 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2643 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2644 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2645 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2646
2647 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2648
2649 * sysdeps/unix/sysv/linux/kernel-features.h
2650 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2651 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2652 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2653 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2654 (__ASSUME_ST_INO_64_BIT): Likewise.
2655 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2656 <kernel-features.h>.
2657 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2658 Remove conditional code.
2659 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2660 <kernel-features.h>.
2661 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2662 Remove conditional code.
2663 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2664 <kernel-features.h>.
2665 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2666 Remove conditional code.
2667 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2668 <kernel-features.h>.
2669 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2670 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2671
2672 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2673
2674 * sysdeps/s390/multiarch/ifunc-resolve.h
2675 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2676 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2677 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2678 Delete macro definition.
2679 (s390_libc_ifunc_init): Rename to
2680 s390_libc_ifunc_expr_stfle_init.
2681 * sysdeps/s390/bzero: Use
2682 s390_libc_ifunc_expr_stfle_init instead of
2683 s390_libc_ifunc_init.
2684 * sysdeps/s390/memcmp.c: Likewise.
2685 * sysdeps/s390/memcpy.c: Likewise.
2686 * sysdeps/s390/mempcpy.c: Likewise.
2687 * sysdeps/s390/memset.c: Likewise.
2688
2689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2690
2691 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2692 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2693
2694 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2695
2696 * sysdeps/s390/multiarch/Makefile
2697 (sysdep_routines): Remove wmemcmp variants.
2698 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2699 * sysdeps/s390/multiarch/ifunc-impl-list.c
2700 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2701 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2702 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2703 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2704 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2705 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2706 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2707 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2708
2709 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2710
2711 * sysdeps/s390/multiarch/Makefile
2712 (sysdep_routines): Remove wmemset variants.
2713 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2714 * sysdeps/s390/multiarch/ifunc-impl-list.c
2715 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2716 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2717 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2718 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2719 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2720 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2721 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2722 * sysdeps/s390/ifunc-wmemset.h: New file.
2723
2724 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2725
2726 * sysdeps/s390/multiarch/Makefile
2727 (sysdep_routines): Remove wmemchr variants.
2728 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2729 * sysdeps/s390/multiarch/ifunc-impl-list.c
2730 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2731 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2732 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2734 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2735 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2736 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2737 * sysdeps/s390/ifunc-wmemchr.h: New file.
2738
2739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2740
2741 * sysdeps/s390/multiarch/Makefile
2742 (sysdep_routines): Remove wcscspn variants.
2743 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2744 * sysdeps/s390/multiarch/ifunc-impl-list.c
2745 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2746 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2747 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2748 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2749 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2750 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2751 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2752 * sysdeps/s390/ifunc-wcscspn.h: New file.
2753
2754 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2755
2756 * sysdeps/s390/multiarch/Makefile
2757 (sysdep_routines): Remove wcspbrk variants.
2758 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2759 * sysdeps/s390/multiarch/ifunc-impl-list.c
2760 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2761 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2762 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2763 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2764 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2765 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2766 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2768
2769 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2770
2771 * sysdeps/s390/multiarch/Makefile
2772 (sysdep_routines): Remove wcsspn variants.
2773 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2774 * sysdeps/s390/multiarch/ifunc-impl-list.c
2775 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2776 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2777 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2778 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2779 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2780 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2781 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2782 * sysdeps/s390/ifunc-wcsspn.h: New file.
2783
2784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2785
2786 * sysdeps/s390/multiarch/Makefile
2787 (sysdep_routines): Remove wcsrchr variants.
2788 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2789 * sysdeps/s390/multiarch/ifunc-impl-list.c
2790 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2791 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2792 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2793 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2794 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2795 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2796 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2797 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2798
2799 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2800
2801 * sysdeps/s390/multiarch/Makefile
2802 (sysdep_routines): Remove wcschrnul variants.
2803 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2804 * sysdeps/s390/multiarch/ifunc-impl-list.c
2805 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2806 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2807 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2808 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2809 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2810 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2811 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2812 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2813
2814 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2815
2816 * sysdeps/s390/multiarch/Makefile
2817 (sysdep_routines): Remove wcschr variants.
2818 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2819 * sysdeps/s390/multiarch/ifunc-impl-list.c
2820 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2821 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2822 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2823 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2824 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2825 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2826 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2827 * sysdeps/s390/ifunc-wcschr.h: New file.
2828
2829 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2830
2831 * sysdeps/s390/multiarch/Makefile
2832 (sysdep_routines): Remove wcsncmp variants.
2833 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2834 * sysdeps/s390/multiarch/ifunc-impl-list.c
2835 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2836 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2837 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2838 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2839 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2840 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2841 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2842 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2843
2844 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2845
2846 * sysdeps/s390/multiarch/Makefile
2847 (sysdep_routines): Remove wcscmp variants.
2848 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2849 * sysdeps/s390/multiarch/ifunc-impl-list.c
2850 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2851 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2852 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2853 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2854 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2855 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2856 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2857 * sysdeps/s390/ifunc-wcscmp.h: New file.
2858
2859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2860
2861 * sysdeps/s390/multiarch/Makefile
2862 (sysdep_routines): Remove wcsncat variants.
2863 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2864 * sysdeps/s390/multiarch/ifunc-impl-list.c
2865 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2866 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2867 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2868 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2869 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2870 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2871 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2872 * sysdeps/s390/ifunc-wcsncat.h: New file.
2873
2874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2875
2876 * sysdeps/s390/multiarch/Makefile
2877 (sysdep_routines): Remove wcscat variants.
2878 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2879 * sysdeps/s390/multiarch/ifunc-impl-list.c
2880 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2881 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2882 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2883 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2884 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2885 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2886 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2887 * sysdeps/s390/ifunc-wcscat.h: New file.
2888
2889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2890
2891 * sysdeps/s390/multiarch/Makefile
2892 (sysdep_routines): Remove wcpncpy variants.
2893 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2894 * sysdeps/s390/multiarch/ifunc-impl-list.c
2895 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2896 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2897 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2898 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2899 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2900 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2901 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2902 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2903
2904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2905
2906 * sysdeps/s390/multiarch/Makefile
2907 (sysdep_routines): Remove wcsncpy variants.
2908 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2909 * sysdeps/s390/multiarch/ifunc-impl-list.c
2910 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2911 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2912 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2913 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2914 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2915 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2916 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2917 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2918
2919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2920
2921 * sysdeps/s390/multiarch/Makefile
2922 (sysdep_routines): Remove wcpcpy variants.
2923 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2924 * sysdeps/s390/multiarch/ifunc-impl-list.c
2925 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2926 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2927 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2928 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2929 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2930 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2931 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2932 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2933
2934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2935
2936 * sysdeps/s390/multiarch/Makefile
2937 (sysdep_routines): Remove wcscpy variants.
2938 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2939 * sysdeps/s390/multiarch/ifunc-impl-list.c
2940 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2941 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2942 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2943 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2944 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2945 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2946 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2947 * sysdeps/s390/ifunc-wcscpy.h: New file.
2948
2949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * sysdeps/s390/multiarch/Makefile
2952 (sysdep_routines): Remove wcsnlen variants.
2953 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2954 * sysdeps/s390/multiarch/ifunc-impl-list.c
2955 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2956 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2957 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2958 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2959 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2960 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2961 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2962 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2963
2964 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2965
2966 * sysdeps/s390/multiarch/Makefile
2967 (sysdep_routines): Remove wcslen variants.
2968 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2969 * sysdeps/s390/multiarch/ifunc-impl-list.c
2970 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2971 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2972 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2973 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2974 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2975 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2976 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2977 * sysdeps/s390/ifunc-wcslen.h: New file.
2978
2979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2980
2981 * sysdeps/s390/multiarch/Makefile
2982 (sysdep_routines): Remove memrchr variants.
2983 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2984 * sysdeps/s390/multiarch/ifunc-impl-list.c
2985 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2986 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2987 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2988 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2989 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2990 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2991 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2992 * sysdeps/s390/ifunc-memrchr.h: New file.
2993
2994 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2995
2996 * sysdeps/s390/multiarch/Makefile
2997 (sysdep_routines): Remove memccpy variants.
2998 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2999 * sysdeps/s390/multiarch/ifunc-impl-list.c
3000 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3001 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3002 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3003 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3004 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3005 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3006 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3007 * sysdeps/s390/ifunc-memccpy.h: New file.
3008
3009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3010
3011 * sysdeps/s390/multiarch/Makefile
3012 (sysdep_routines): Remove rawmemchr variants.
3013 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3014 * sysdeps/s390/multiarch/ifunc-impl-list.c
3015 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3016 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3017 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3018 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3019 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3020 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3021 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3022 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3023
3024 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3025
3026 * sysdeps/s390/multiarch/Makefile
3027 (sysdep_routines): Remove memchr variants.
3028 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3029 * sysdeps/s390/multiarch/ifunc-impl-list.c
3030 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3031 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3032 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3033 * sysdeps/s390/multiarch/memchr.c: Move to ...
3034 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3035 * sysdeps/s390/ifunc-memchr.h: New file.
3036 * sysdeps/s390/s390-64/memchr.S: Move to ...
3037 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3038 for 31/64bit and ifunc handling.
3039 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3040 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3041 * sysdeps/s390/s390-32/memchr.S: Likewise.
3042
3043 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3044
3045 * sysdeps/s390/multiarch/Makefile
3046 (sysdep_routines): Remove strcspn variants.
3047 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3048 * sysdeps/s390/multiarch/ifunc-impl-list.c
3049 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3050 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3051 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3052 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3053 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3054 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3055 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3056 * sysdeps/s390/ifunc-strcspn.h: New file.
3057
3058 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3059
3060 * sysdeps/s390/multiarch/Makefile
3061 (sysdep_routines): Remove strpbrk variants.
3062 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3063 * sysdeps/s390/multiarch/ifunc-impl-list.c
3064 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3065 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3066 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3067 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3068 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3069 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3070 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3071 * sysdeps/s390/ifunc-strpbrk.h: New file.
3072
3073 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3074
3075 * sysdeps/s390/multiarch/Makefile
3076 (sysdep_routines): Remove strspn variants.
3077 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3078 * sysdeps/s390/multiarch/ifunc-impl-list.c
3079 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3080 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3081 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3082 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3083 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3084 * sysdeps/s390/multiarch/strspn.c: Move to ...
3085 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3086 * sysdeps/s390/ifunc-strspn.h: New file.
3087
3088 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3089
3090 * sysdeps/s390/multiarch/Makefile
3091 (sysdep_routines): Remove strrchr variants.
3092 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3093 * sysdeps/s390/multiarch/ifunc-impl-list.c
3094 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3095 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3096 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3097 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3098 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3099 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3100 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3101 * sysdeps/s390/ifunc-strrchr.h: New file.
3102
3103 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3104
3105 * sysdeps/s390/multiarch/Makefile
3106 (sysdep_routines): Remove strchrnul variants.
3107 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3108 * sysdeps/s390/multiarch/ifunc-impl-list.c
3109 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3110 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3111 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3112 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3113 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3114 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3115 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3116 * sysdeps/s390/ifunc-strchrnul.h: New file.
3117
3118 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3119
3120 * sysdeps/s390/multiarch/Makefile
3121 (sysdep_routines): Remove strchr variants.
3122 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3123 * sysdeps/s390/multiarch/ifunc-impl-list.c
3124 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3125 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3126 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3127 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3128 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3129 * sysdeps/s390/multiarch/strchr.c: Move to ...
3130 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3131 * sysdeps/s390/ifunc-strchr.h: New file.
3132
3133 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3134
3135 * sysdeps/s390/multiarch/Makefile
3136 (sysdep_routines): Remove strncmp variants.
3137 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3138 * sysdeps/s390/multiarch/ifunc-impl-list.c
3139 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3140 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3141 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3142 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3143 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3144 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3145 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3146 * sysdeps/s390/ifunc-strncmp.h: New file.
3147
3148 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3149
3150 * sysdeps/s390/multiarch/Makefile
3151 (sysdep_routines): Remove strcmp variants.
3152 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3153 * sysdeps/s390/multiarch/ifunc-impl-list.c
3154 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3155 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3156 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3157 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3158 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3159 * sysdeps/s390/ifunc-strcmp.h: New file.
3160 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3161 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3162 for 31/64bit and ifunc handling.
3163 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3164 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3165 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3166
3167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3168
3169 * sysdeps/s390/multiarch/Makefile
3170 (sysdep_routines): Remove strncat variants.
3171 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3172 * sysdeps/s390/multiarch/ifunc-impl-list.c
3173 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3174 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3175 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3177 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3178 * sysdeps/s390/multiarch/strncat.c: Move to ...
3179 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/ifunc-strncat.h: New file.
3181
3182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3183
3184 * sysdeps/s390/multiarch/Makefile
3185 (sysdep_routines): Remove strcat variants.
3186 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3187 * sysdeps/s390/multiarch/ifunc-impl-list.c
3188 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3189 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3190 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3192 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3193 * sysdeps/s390/multiarch/strcat.c: Move to ...
3194 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/ifunc-strcat.h: New file.
3196
3197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3198
3199 * sysdeps/s390/multiarch/Makefile
3200 (sysdep_routines): Remove stpncpy variants.
3201 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3202 * sysdeps/s390/multiarch/ifunc-impl-list.c
3203 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3204 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3205 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3206 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3207 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3208 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3209 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/ifunc-stpncpy.h: New file.
3211
3212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3213
3214 * sysdeps/s390/multiarch/Makefile
3215 (sysdep_routines): Remove strncpy variants.
3216 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3217 * sysdeps/s390/multiarch/ifunc-impl-list.c
3218 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3219 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3220 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3221 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3222 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3223 * sysdeps/s390/ifunc-strncpy.h: New file.
3224 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3225 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3226 and adjust ifunc handling.
3227 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3228 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3229 and adjust ifunc handling.
3230 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3231 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3232
3233 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3234
3235 * sysdeps/s390/multiarch/Makefile
3236 (sysdep_routines): Remove stpcpy variants.
3237 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3238 * sysdeps/s390/multiarch/ifunc-impl-list.c
3239 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3240 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3241 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3242 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3243 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3244 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3245 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3246 * sysdeps/s390/ifunc-stpcpy.h: New file.
3247
3248 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3249
3250 * sysdeps/s390/multiarch/Makefile
3251 (sysdep_routines): Remove strcpy variants.
3252 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3253 * sysdeps/s390/multiarch/ifunc-impl-list.c
3254 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3255 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3256 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3257 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3258 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3259 * sysdeps/s390/ifunc-strcpy.h: New file.
3260 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3261 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3262 for 31/64bit and ifunc handling.
3263 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3264 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3265 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3266
3267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3268
3269 * sysdeps/s390/multiarch/Makefile
3270 (sysdep_routines): Remove strnlen variants.
3271 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3272 * sysdeps/s390/multiarch/ifunc-impl-list.c
3273 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3274 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3275 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3276 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3277 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3278 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3279 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3280 * sysdeps/s390/ifunc-strnlen.h: New file.
3281
3282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3283
3284 * sysdeps/s390/multiarch/Makefile
3285 (sysdep_routines): Remove strlen variants.
3286 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3287 * sysdeps/s390/multiarch/ifunc-impl-list.c
3288 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3289 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3290 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3291 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3292 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3293 * sysdeps/s390/multiarch/strlen.c: Move to ...
3294 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3295 * sysdeps/s390/ifunc-strlen.h: New file.
3296
3297 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3298
3299 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3300 * sysdeps/s390/multiarch/ifunc-impl-list.c
3301 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3302 * sysdeps/s390/ifunc-memmem.h: New file.
3303 * sysdeps/s390/memmem.c: Likewise.
3304 * sysdeps/s390/memmem-c.c: Likewise.
3305 * sysdeps/s390/memmem-vx.c: Likewise.
3306
3307 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3308
3309 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3310 * sysdeps/s390/multiarch/ifunc-impl-list.c
3311 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3312 * sysdeps/s390/ifunc-strstr.h: New file.
3313 * sysdeps/s390/strstr.c: Likewise.
3314 * sysdeps/s390/strstr-c.c: Likewise.
3315 * sysdeps/s390/strstr-vx.c: Likewise.
3316
3317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3318
3319 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3320 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3321 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3322 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3323 New defines.
3324 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3325 * sysdeps/s390/memmove-c.c: New file.
3326 * sysdeps/s390/memmove.c: Likewise.
3327 * sysdeps/s390/multiarch/ifunc-impl-list.c
3328 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3329
3330 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3331
3332 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3333 * sysdeps/s390/configure.ac: Add check for z13 support.
3334 * sysdeps/s390/configure: Regenerated.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/memcopy.h: New file.
3339
3340 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3341
3342 * sysdeps/s390/s390-32/bcopy.S: Remove.
3343 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3344
3345 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3346
3347 * sysdeps/s390/ifunc-memcpy.h: New File.
3348 * sysdeps/s390/memcpy.S: Move to ...
3349 * sysdeps/s390/memcpy-z900.S ... here.
3350 Move implementations from memcpy-s390x.s to here.
3351 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3352 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3353 Remove memcpy/mempcpy variants.
3354 * sysdeps/s390/Makefile (sysdep_routines):
3355 Add memcpy/mempcpy variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Adjust ifunc variants for
3358 memcpy and mempcpy.
3359 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3360 to ...
3361 * sysdeps/s390/memcpy.c: ... here.
3362 Adjust ifunc variants for memcpy.
3363 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3364 * sysdeps/s390/mempcpy.c: ... here.
3365 Adjust ifunc variants for mempcpy.
3366 * sysdeps/s390/mempcpy.S: Delete file.
3367
3368 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3369
3370 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3371 * sysdeps/s390/memcpy.S: ... here.
3372 Adjust to be usable for 31/64bit.
3373 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3374 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3375 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3376 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3377 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3378 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3379 Adjust to be usable for 31/64bit.
3380 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3381 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3382 * sysdeps/s390/multiarch/memcpy.c: ... here.
3383 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3384
3385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3386
3387 * sysdeps/s390/ifunc-memcmp.h: New File.
3388 * sysdeps/s390/memcmp.S: Move to ...
3389 * sysdeps/s390/memcmp-z900.S ... here.
3390 Move implementations from memcmp-s390x.s to here.
3391 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3392 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3393 Remove memcmp variants.
3394 * sysdeps/s390/Makefile (sysdep_routines):
3395 Add memcmp variants.
3396 * sysdeps/s390/multiarch/ifunc-impl-list.c
3397 (__libc_ifunc_impl_list): Adjust ifunc variants for
3398 memcmp.
3399 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3400 to ...
3401 * sysdeps/s390/memcmp.c: ... here.
3402 Adjust ifunc variants for memcmp.
3403
3404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3405
3406 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3407 * sysdeps/s390/memcmp.S: ... here.
3408 Adjust to be usable for 31/64bit.
3409 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3410 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3411 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3412 Remove memcmp.
3413 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3414 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3415 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3416 Adjust to be usable for 31/64bit.
3417 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3418 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3419 * sysdeps/s390/multiarch/memcmp.c: ... here.
3420 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3421
3422 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3423
3424 * sysdeps/s390/s390-32/bzero.S: Delete file.
3425 * sysdeps/s390/s390-64/bzero.S: Likewise.
3426 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3427 * sysdeps/s390/bzero.c: New file.
3428 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3429 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3430 * sysdeps/s390/multiarch/ifunc-impl-list.c
3431 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3432
3433 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3434
3435 * sysdeps/s390/ifunc-memset.h: New File.
3436 * sysdeps/s390/memset.S: Move to ...
3437 * sysdeps/s390/memset-z900.S ... here.
3438 Move implementations from memset-s390x.s to here.
3439 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3440 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3441 Remove memset variants.
3442 * sysdeps/s390/Makefile (sysdep_routines):
3443 Add memset variants.
3444 * sysdeps/s390/multiarch/ifunc-impl-list.c
3445 (__libc_ifunc_impl_list): Adjust ifunc variants for
3446 memset.
3447 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3448 to ...
3449 * sysdeps/s390/memset.c: ... here.
3450 Adjust ifunc variants for memset.
3451
3452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3453
3454 * sysdeps/s390/s390-64/memset.S: Move to ...
3455 * sysdeps/s390/memset.S: ... here.
3456 Adjust to be usable for 31/64bit.
3457 * sysdeps/s390/s390-32/memset.S: Delete File.
3458 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3459 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3460 Remove memset.
3461 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3462 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3463 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3464 Adjust to be usable for 31/64bit.
3465 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3466 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3467 * sysdeps/s390/multiarch/memset.c: ... here.
3468 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3469
3470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3471
3472 * sysdeps/s390/multiarch/ifunc-resolve.h
3473 (s390_libc_ifunc_init, s390_libc_ifunc,
3474 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3475
3476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3477
3478 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3479 * sysdeps/s390/configure.ac: Add check for z10 support.
3480 * sysdeps/s390/configure: Regenerated.
3481
3482 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3483
3484 * sysdeps/i386/atomic-machine.h: Merged with ...
3485 * sysdeps/x86_64/atomic-machine.h: To ...
3486 * sysdeps/x86/atomic-machine.h: This. New file.
3487
3488 2018-12-18 Florian Weimer <fweimer@redhat.com>
3489
3490 Rewrite locale/gen-translit.pl in Python.
3491 * locale/Makefile (generated): Add C-translit.h.
3492 (before-compile): Add $(objpfx)C-translit.h.
3493 (C-translit.h): Move to $(objpfx). Create target directory.
3494 Build using Python script.
3495 * locale/gen-translit.py: New file.
3496 * locale/gen-translit.pl: Remove file.
3497 * locale/C-translit.h.in: Change comment character to '#' for
3498 easier parsing without a C preprocessor.
3499 * locale/C-translit.h: Remove generated file.
3500 * manual/install.texi (Tools for Compilation): Do not mention
3501 C-translit.h.
3502 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3503 Remove locale/C-translit.h.
3504 * scripts/update-copyrights: Likewise.
3505 * INSTALL: Regenerate.
3506
3507 2018-12-18 Florian Weimer <fweimer@redhat.com>
3508
3509 [BZ #23995]
3510 * localedata/locales/bi_VU: Remove executable bit from file.
3511
3512 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3513
3514 * include/time.h
3515 (__localtime64): Add.
3516 * manual/maint.texi: Document Y2038 symbol handling.
3517 * time/localtime.c
3518 (__localtime64): Add.
3519 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3520
3521 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3522
3523 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3524 Do not clobber r12.
3525
3526 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3527 to allow extra macros from first or second sources.
3528 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3529 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3530 (tests-special): Add $(objpfx)tst-mman-consts.out.
3531 ($(objpfx)tst-mman-consts.out): New makefile target.
3532
3533 2018-12-17 Mao Han <han_mao@c-sky.com>
3534
3535 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3536 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3537 without stat64 system call support.
3538 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3539 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3540 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3541 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3542 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3543 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3544 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3545 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3546 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3547 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3548 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3549
3550 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3551
3552 regex: fix storage-exhaustion error
3553 [BZ #18040]
3554 * posix/regexec.c (get_subexp):
3555 Do not continue if storage is exhausted.
3556
3557 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3558
3559 regex: fix heap-use-after-free error
3560 [BZ #18040]
3561 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3562 https://debbugs.gnu.org/32592
3563 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3564 call extend_buffers which reallocates the re_string_t internal buffer.
3565 Local variable 'buf' was not updated in such case, resulting in
3566 use-after-free.
3567 * posix/regexec.c (get_subexp): Update 'buf' after call to
3568 get_subexp_sub.
3569
3570 2018-12-15 Florian Weimer <fweimer@redhat.com>
3571
3572 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3573 (minimum_stride_size): Use it.
3574 (support_blob_repeat_allocate): Likewise.
3575
3576 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3577
3578 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3579 definition.
3580 (acosh): Likewise.
3581 (atanh): Likewise.
3582
3583 2018-12-14 Florian Weimer <fweimer@redhat.com>
3584
3585 * manual/process.texi (Process Creation Concepts): Remove
3586 documentation of process (ID) lifetime. List more process
3587 creation functions. Reference Process Identification section.
3588 (Process Identification): Add information about process ID
3589 lifetime. Describe Linux thread/task IDs.
3590 * manual/signal.texi (Signaling Another Process): Mention that the
3591 signal is always sent to the process.
3592
3593 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3594
3595 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3596 and tst-ldbl-efgcvt.
3597 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3598 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3599 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3600 (fcvt_tests, output_error, output_r_error, do_test): Use the
3601 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3602 select the type of floating-point variables and arguments; to
3603 produce extra tests for double and conversion specifiers for
3604 printf; and to set the names of called functions.
3605 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3606 in tst-efgcvt-template.c.
3607 * misc/tst-ldbl-efgcvt.c: Likewise.
3608
3609 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3610
3611 * nss/Makefile (tst-nss-test3.out): New rule.
3612
3613 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3614
3615 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3616 clobber sp.
3617
3618 2018-12-13 fanjinke <fanjinke@hygon.cn>
3619
3620 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3621 "HygonGenuine".
3622
3623 2018-12-13 Andreas Schwab <schwab@suse.de>
3624
3625 [BZ #23861]
3626 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3627 (__pthread_rwlock_rdlock_full): Update expected value for
3628 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3629 * nptl/tst-rwlock-pwn.c: New file.
3630 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3631
3632 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3633
3634 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3635 definition.
3636
3637 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3638
3639 * benchtests/scripts/compare_bench.py (do_compare): write to
3640 stderr in casestat is not present.
3641 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3642 stderr in case timings field is not present. Also string showing
3643 the output filename goes into the stderr.
3644
3645 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3646
3647 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3648 and ZeroDivisorError exceptions.
3649 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3650 argument to loop through user provided statistics.
3651 * benchtests/scripts/compare_bench.py (main): Include the --stats
3652 argument.
3653
3654 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3655
3656 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3657 instead of return.
3658
3659 2018-12-12 Florian Weimer <fweimer@redhat.com>
3660
3661 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3662 clause to copyright header.
3663
3664 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3665
3666 [BZ #23614]
3667 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3668 registers saved in the stack frame.
3669 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3670 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3671
3672 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3673
3674 * include/bits/monetary-ldbl.h: New file.
3675 * include/bits/printf-ldbl.h: Likewise.
3676 * include/bits/stdio-ldbl.h: Likewise.
3677 * include/bits/stdlib-ldbl.h: Likewise.
3678 * include/bits/syslog-ldbl.h: Likewise.
3679 * include/bits/wchar-ldbl.h: Likewise.
3680
3681 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3682
3683 * libio/libio.h: Remove redirection for _IO_vfprintf.
3684
3685 2018-12-11 Andreas Schwab <schwab@suse.de>
3686
3687 * Makerules: Remove all references to abilist-pattern.
3688 (update-all-abi): Simplify find expression.
3689
3690 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3691
3692 [BZ #23961]
3693 * math/auto-libm-test-in: Add new test case.
3694 * math/auto-libm-test-out-pow: Regenerated.
3695 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3696
3697 2018-12-10 DJ Delorie <dj@redhat.com>
3698
3699 [BZ #23948]
3700 * support/test-container.c: Move postclean step to before we
3701 change namespaces.
3702
3703 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3704
3705 * scripts/gen-as-const.py (main): Handle --python option.
3706 * scripts/gen-py-const.awk: Remove.
3707 * Makerules (py-const-script): Use gen-as-const.py.
3708 ($(py-const)): Likewise.
3709 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3710 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3711 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3712 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3713 ~PTHREAD_MUTEX_NO_ELISION_NP.
3714 * manual/README.pretty-printers: Update reference to
3715 gen-py-const.awk.
3716
3717 * scripts/glibcextract.py: New file.
3718 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3719 or tempfile. Import glibcexctract.
3720 (compute_c_consts): Remove. Moved to glibcextract.py.
3721 (gen_test): Update reference to compute_c_consts.
3722 (main): Likewise.
3723 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3724 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3725 * sysdeps/unix/sysv/linux/Makefile
3726 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3727 Redirect stderr as well as stdout.
3728
3729 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3730
3731 [BZ #19767]
3732 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3733 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3734 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3735 ALWAYS_USE_VSYSCALL.
3736 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3737 ALWAYS_USE_VSYSCALL.
3738 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3739 ALWAYS_USE_VSYSCALL.
3740
3741 2018-12-10 Florian Weimer <fweimer@redhat.com>
3742
3743 [BZ #23972]
3744 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3745 offset instead of count for clarity. Fix typo in comment.
3746 (__old_getdents64): Keep track of previous offset. Use it to call
3747 handle_overflow.
3748 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3749 that d_off is never zero.
3750
3751 2018-12-10 Andreas Schwab <schwab@suse.de>
3752
3753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3754 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3756 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3757 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3758
3759 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3760
3761 * timezone/private.h: Update from tzcode 2018g.
3762 * timezone/tzfile.h: Likewise.
3763 * timezone/tzselect.ksh: Likewise.
3764 * timezone/zdump.c: Likewise.
3765 * timezone/zic.c: Likewise.
3766
3767 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3768
3769 [BZ #23490]
3770 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3771 (do_test): Adjust buffer size and fix format.
3772
3773 2018-12-07 DJ Delorie <dj@redhat.com>
3774
3775 [BZ #23907]
3776 * malloc/tst-tcfree3.c: New.
3777 * malloc/Makefile: Add it.
3778
3779 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3780
3781 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3782
3783 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3784
3785 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3786 used as a mask for the mode argument of __vfscanf_internal and
3787 __vfwscanf_internal.
3788 * stdio-common/vfscanf-internal.c
3789 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3790 (__strtof128_internal): Define to __wcstof128_internal.
3791 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3792 __strtof128_internal or __wcstof128_internal when the format of
3793 long double is the same as _Float128.
3794
3795 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3796
3797 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3798 * posix/confstr.c (confstr): Rename to __confstr.
3799 (__confstr): Add hidden def.
3800 (confstr): Add weak alias for __confstr.
3801 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3802 confstr.
3803
3804 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3805
3806 * NEWS: Mention getcpu.
3807 * include/sched.h (__getcpu): New libc_hidden_proto.
3808 * manual/resource.texi: Document getcpu.
3809 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3810 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3811 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3812 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3813 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3814 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3815 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3816 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3817 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3818 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3819 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3820 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3821 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3822 Likewise.
3823 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3824 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3825 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3827 Likewise.
3828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3829 Likewise.
3830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3831 Likewise.
3832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3833 Likewise.
3834 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3835 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3836 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3837 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3838 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3839 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3840 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3841 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3842 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3843 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3844 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3845 Also check getcpu.
3846
3847 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3848
3849 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3850 functions.
3851 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3852
3853 2018-12-07 Florian Weimer <fweimer@redhat.com>
3854
3855 [BZ #17405]
3856 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3857 * posix/Versions (GLIBC_2.29): Export
3858 posix_spawn_file_actions_addfchdir_np.
3859 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3860 * posix/spawn_faction_destroy.c
3861 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3862 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3863 and the field action.fchdir_action.
3864 * posix/tst-spawn-chdir.c (add_chdir): New function.
3865 (do_test): Add do_fchdir loop. Call add_chdir.
3866 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3867 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3868 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3869 posix_spawn_file_actions_addfchdir_np.
3870 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3871 Likewise.
3872 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3873 Likewise.
3874 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3875 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3876 Likewise.
3877 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3878 Likewise.
3879 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3880 Likewise.
3881 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3882 Likewise.
3883 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3884 Likewise.
3885 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3886 Likewise.
3887 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3888 (GLIBC_2.29): Likewise.
3889 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3890 (GLIBC_2.29): Likewise.
3891 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3892 (GLIBC_2.29): Likewise.
3893 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3894 (GLIBC_2.29): Likewise.
3895 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3896 Likewise.
3897 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3898 (GLIBC_2.29): Likewise.
3899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3900 (GLIBC_2.29): Likewise.
3901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3902 (GLIBC_2.29): Likewise.
3903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3904 (GLIBC_2.29): Likewise.
3905 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3906 Likewise.
3907 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3908 Likewise.
3909 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3910 Likewise.
3911 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3912 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3913 Likewise.
3914 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3915 Likewise.
3916 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3917 Likewise.
3918 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3919 Likewise.
3920
3921 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3922
3923 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3924 trailing whitespace removed.
3925 * scripts/config.guess: Update to version 2018-11-28.
3926 * scripts/config.sub: Update to version 2018-11-28.
3927 * scripts/install-sh: Update to version 2018-03-11.20.
3928 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3929 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3930
3931 2018-12-07 Florian Weimer <fweimer@redhat.com>
3932
3933 [BZ #23927]
3934 CVE-2018-19591
3935 * inet/tst-if_index-long.c: New file.
3936 * inet/Makefile (tests): Add tst-if_index-long.
3937
3938 2018-12-07 Florian Weimer <fweimer@redhat.com>
3939
3940 * support/check.h (support_record_failure_is_failed): Declare.
3941 * support/descriptors.h: New file.
3942 * support/support_descriptors.c: Likewise.
3943 * support/tst-support_descriptors.c: Likewise.
3944 * support/support_record_failure.c
3945 (support_record_failure_is_failed): New function.
3946 * support/Makefile (libsupport-routines): Add support_descriptors.
3947 (tests): Add tst-support_descriptors.
3948
3949 2018-12-05 Zack Weinberg <zackw@panix.com>
3950 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3951
3952 * stdio-common/vfprintf-internal.c
3953 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3954 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3955 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3956 and __no_long_double.
3957 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3958 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3959 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3960 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3961 and __nldbl_*syslog* functions.
3962 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3963 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3964 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3965 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3966 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3967 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3968 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3969 (__nldbl_vwprintf, __nldbl_wprintf):
3970 Directly call the appropriate __v*printf_internal routine, passing
3971 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3972 variable names.
3973 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3974 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3975 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3976 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3977 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3978 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3979 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3980 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3981 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3982 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3983 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3984 (__nldbl_syslog, __nldbl_vsyslog):
3985 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3986 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3987 appropriate.
3988 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3989 appropriate.
3990
3991 2018-12-05 Zack Weinberg <zackw@panix.com>
3992 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3993
3994 [BZ #11319]
3995 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3996 Moved here from debug/vsprintf_chk.c.
3997 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3998 and completion logic for the strfile to match exactly what
3999 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4000 _IO_str_init_static_internal instead of maxlen-1.
4001 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4002 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4003 __vsprintf_internal.
4004
4005 * debug/vsprintf_chk.c (__vsprintf_chk)
4006 * debug/sprintf_chk.c (__sprintf_chk):
4007 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4008 'flags' argument is positive, and slen as maxlen. No need to lock
4009 the FILE and/or construct a temporary FILE. Minimize and normalize
4010 header inclusions and variable names. Do not libc_hidden_def anything.
4011
4012 * debug/asprintf_chk.c (__asprintf_chk)
4013 * debug/dprintf_chk.c (__dprintf_chk)
4014 * debug/fprintf_chk.c (__fprintf_chk)
4015 * debug/fwprintf_chk.c (__fwprintf_chk)
4016 * debug/printf_chk.c (__printf_chk)
4017 * debug/snprintf_chk.c (__snprintf_chk)
4018 * debug/swprintf_chk.c (__swprintf_chk)
4019 * debug/vasprintf_chk.c (__vasprintf_chk)
4020 * debug/vdprintf_chk.c (__vdprintf_chk)
4021 * debug/vfprintf_chk.c (__vfprintf_chk)
4022 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4023 * debug/vprintf_chk.c (__vprintf_chk)
4024 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4025 * debug/vswprintf_chk.c (__vswprintf_chk)
4026 * debug/vwprintf_chk.c (__vwprintf_chk)
4027 * debug/wprintf_chk.c (__wprintf_chk):
4028 Directly call the corresponding vxxprintf_internal function, passing
4029 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4030 the FILE and/or construct a temporary FILE. Minimize and normalize
4031 header inclusions and variable names. Do not libc_hidden_def anything.
4032
4033 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4034 __obstack_vprintf_internal.
4035 (__obstack_vprintf_chk): Convert into a wrapper that calls
4036 __obstack_vprintf_internal (these two functions already had the
4037 same code) and move to new file...
4038 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4039 file.
4040 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4041 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4042 * debug/Makefile (routines): Add vobprintf_chk.
4043
4044 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4045 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4046 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4047 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4048 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4049 (__nldbl___obstack_vfprintf_chk):
4050 Directly call the corresponding vxxprintf_internal function,
4051 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4052 duplicate comparison of slen with 0 or maxlen from the corresponding
4053 non-__nldbl function.
4054
4055 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4056 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4057 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4058 Remove libc_hidden_proto.
4059
4060 * stdio-common/vfprintf-internal.c
4061 (__vfprintf_internal, __vfwprintf_internal):
4062 Do not check _IO_FLAGS2_FORTIFY.
4063 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4064 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4065 a comment explaining why it has the maxlen argument.
4066 (_IO_acquire_lock_clear_flags2_fct): Remove.
4067 (_IO_acquire_lock_clear_flags2): Remove.
4068 (_IO_release_lock): Remove conditional statement which will
4069 now never execute.
4070 (_IO_acquire_lock): Remove variable which is now unused.
4071 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4072 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4073
4074 * stdio-common/Makefile (tests): Add tst-bz11319 and
4075 tst-bz11319-fortify2.
4076 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4077 * stdio-common/tst-bz11319-fortify2.c: New file.
4078 * stdio-common/tst-bz11319.c: Likewise.
4079
4080 2018-12-05 Zack Weinberg <zackw@panix.com>
4081 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4082
4083 * misc/syslog.c: Include libioP.h, not iolibio.h.
4084 (__vsyslog_internal): New function with the former body of
4085 __vsyslog_chk; takes mode_flags argument same as
4086 __v*printf_internal. Call __vfprintf_internal directly.
4087
4088 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4089 Remove libc_hidden_def.
4090 (__syslog, __syslog_chk): Use __vsyslog_internal.
4091 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4092
4093 * include/sys/syslog.h: Add multiple inclusion guard.
4094 Add prototype for __vsyslog_internal.
4095 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4096
4097 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4098 Use __vsyslog_internal.
4099
4100 2018-12-05 Zack Weinberg <zackw@panix.com>
4101 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4102
4103 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4104 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4105 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4106 New functions.
4107 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4108 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4109
4110 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4111 Include wctype.h here if COMPILE_WPRINTF is defined.
4112 Define __vfprintf_internal or __vfwprintf_internal, depending
4113 on COMPILE_WPRINTF.
4114 Temporarily, on entry to this function, update mode_flags
4115 according to the environmental settings corresponding to
4116 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4117 Throughout, check mode_flags instead of __ldbl_is_dbl and
4118 _IO_FLAGS2_FORTIFY on the destination FILE.
4119 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4120 Include vfprintf-internal.c. Don't include wctype.h.
4121 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4122 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4123 and vfprintf.
4124 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4125 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4126 and vfwprintf.
4127 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4128
4129 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4130 and add mode_flags argument; use __vfprintf_internal.
4131 (__vdprintf): New function. Alias vdprintf to this.
4132 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4133 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4134 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4135 (__obstack_printf): Use __obstack_printf_internal.
4136 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4137 public aliases __vsnprintf and vsnprintf.
4138 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4139 called internally.
4140 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4141 public aliases _IO_vsprintf and vsprintf.
4142 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4143 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4144 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4145 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4146 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4147
4148 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4149 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4150 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4151 * stdio-common/printf.c: Use __vfprintf_internal.
4152
4153 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4154 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4155 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4156
4157 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4158 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4159 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4160 __vfwprintf_internal.
4161
4162 * libio/libio.h: Remove libc_hidden_proto and declaration for
4163 _IO_vfprintf.
4164 Remove declaration of _IO_vfwprintf.
4165 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4166 _IO_vsprintf.
4167 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4168 _IO_obstack_printf.
4169 * include/stdio.h: Add prototype for __vasprintf.
4170 (__vsnprintf): Remove declaration, because there are no more
4171 internal calls.
4172 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4173 declaration, because there are no more internal calls.
4174
4175 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4176 __vsnprintf_internal, instead of _IO_vsnprintf.
4177 * argp/argp-help.c (__argp_error, __argp_failure): Use
4178 __vasprintf_internal, instead of _IO_vasprintf.
4179 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4180 redefine, because there are no more internal calls.
4181
4182 2018-12-05 Zack Weinberg <zackw@panix.com>
4183 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4184
4185 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4186 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4187 Include libio/strfile.h instead of libioP.h.
4188 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4189 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4190 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4191 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4192 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4193 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4194 necessary. Do not set __no_long_double. Normalize variable names.
4195 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4196 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4197 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4198 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4199 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4200 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4201 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4202 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4203 Do not set __no_long_double. Normalize variable names.
4204
4205 2018-12-05 Zack Weinberg <zackw@panix.com>
4206 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4207
4208 * stdio-common/isoc99_scanf.c
4209 * stdio-common/isoc99_fscanf.c
4210 * stdio-common/isoc99_sscanf.c
4211 * stdio-common/isoc99_vscanf.c
4212 * stdio-common/isoc99_vfscanf.c
4213 * stdio-common/isoc99_vsscanf.c
4214 * wcsmbs/isoc99_wscanf.c
4215 * wcsmbs/isoc99_fwscanf.c
4216 * wcsmbs/isoc99_swscanf.c
4217 * wcsmbs/isoc99_vwscanf.c
4218 * wcsmbs/isoc99_vfwscanf.c
4219 * wcsmbs/isoc99_vswscanf.c:
4220 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4221 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4222 No need to lock and unlock the FILE passed to that function.
4223
4224 * stdio-common/vfscanf-internal.c
4225 (__vfscanf_internal, __vfwscanf_internal):
4226 Don't look at _IO_FLAGS2_SCANF_STD.
4227 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4228 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4229 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4230
4231 2018-12-05 Zack Weinberg <zackw@panix.com>
4232 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4233
4234 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4235 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4236 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4237 * libio/strfile.h: Add multiple inclusion guard.
4238 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4239
4240 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4241 consistency with the other version of this file.
4242 (ldbl_compat_symbol): New macro.
4243 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4244 New macro.
4245
4246 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4247 Define __vfscanf_internal or __vfwscanf_internal, depending on
4248 COMPILE_WSCANF; don't define any other public symbols.
4249 Remove errval and code to set errp.
4250 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4251 as the mode_flags argument.
4252 (encode_error, conv_error, input_error): Don't set errval.
4253 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4254 Include vfscanf-internal.c.
4255 * stdio-common/vfscanf.c: New file defining the public entry
4256 point vfscanf, which calls __vfscanf_internal.
4257 * stdio-common/vfwscanf.c: New file defining the public entry
4258 point vfwscanf, which calls __vfwscanf_internal.
4259
4260 * stdio-common/iovfscanf.c: New file.
4261 * stdio-common/iovfwscanf.c: Likewise.
4262
4263 * stdio-common/Makefile (routines): Add vfscanf-internal,
4264 vfwscanf-internal, iovfscanf, iovfwscanf.
4265 * stdio-common/Versions: Mention GLIBC_2.29, so that
4266 it can be used in SHLIB_COMPAT expressions.
4267 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4268 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4269 Call __vfscanf_internal, instead of _IO_vfscanf.
4270 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4271 _IO_vfscanf.
4272 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4273 _IO_vfwscanf.
4274
4275 * libio/iovsscanf.c: Clean up includes, when possible. Use
4276 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4277 __vfscanf_internal or __vfwscanf_internal directly.
4278 * libio/iovswscanf.c: Likewise.
4279 * libio/swscanf.c: Likewise.
4280 * libio/vscanf.c: Likewise.
4281 * libio/vwscanf.c: Likewise.
4282 * libio/wscanf.c: Likewise.
4283 * stdio-common/isoc99_fscanf.c: Likewise.
4284 * stdio-common/isoc99_scanf.c: Likewise.
4285 * stdio-common/isoc99_sscanf.c: Likewise.
4286 * stdio-common/isoc99_vfscanf.c: Likewise.
4287 * stdio-common/isoc99_vscanf.c: Likewise.
4288 * stdio-common/isoc99_vsscanf.c: Likewise.
4289 * stdio-common/scanf.c: Likewise.
4290 * stdio-common/sscanf.c: Likewise.
4291 * wcsmbs/isoc99_fwscanf.c: Likewise.
4292 * wcsmbs/isoc99_swscanf.c: Likewise.
4293 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4294 * wcsmbs/isoc99_vswscanf.c: Likewise.
4295 * wcsmbs/isoc99_vwscanf.c: Likewise.
4296 * wcsmbs/isoc99_wscanf.c: Likewise.
4297
4298 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4299
4300 * include/time.h
4301 (__tz_compute): Replace time_t with __time64_t.
4302 (__tz_convert): Replace time_t* with __time64_t.
4303 (__offtime): Replace time_t* with __time64_t.
4304 * time/gmtime.c
4305 (__gmtime_r): Adjust call to __tz_convert.
4306 (gmtime): Likewise.
4307 * time/localtime.c
4308 (__localtime_r): Likewise.
4309 (localtime): Likewise.
4310 * time/offtime.c: Replace time_t with __time64_t.
4311 * time/tzset.c: Likewise.
4312
4313 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4314
4315 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4316 dynamic linker unless [$(run-built-tests) = yes].
4317
4318 2018-12-03 DJ Delorie <dj@delorie.com>
4319
4320 * support/test-container.c (check_for_unshare_hints): New.
4321 (main): Call it if unshare fails. Add support for "su" scriptlet
4322 command.
4323
4324 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4325
4326 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4327 'START' to indicate that start text should be output.
4328 (gen_test): Likewise.
4329 (main): Generate 'START' for first symbol or '--' line, or at end
4330 of input if not previously generated.
4331
4332 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4333
4334 [BZ #19767]
4335 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4336 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4337 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4338 ALWAYS_USE_VSYSCALL.
4339
4340 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4341
4342 [BZ #23913]
4343 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4344 new_argv by one.
4345
4346 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4347
4348 [BZ #23923]
4349 * locale/programs/localedef.c: Declare boolean hard_links default true.
4350 (options): Add --no-hard-links option.
4351 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4352 * locale/programs/localedef.h: Declare prototype for hard_links.
4353 * locale/programs/locfile.c (write_locale_data): Don't use hard
4354 links if hard_links is false.
4355
4356 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4357
4358 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4359 cpu_features_basic.
4360 (__cache_sysconf): Likewise.
4361 (init_cacheinfo): Likewise.
4362 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4363 populate COMMON_CPUID_INDEX_80000007 and
4364 COMMON_CPUID_INDEX_80000008.
4365 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4366 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4367 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4368 (init_cpu_features): Use _Static_assert on
4369 index_arch_Fast_Unaligned_Load.
4370 __get_cpuid_registers and __get_arch_feature. Updated for
4371 cpu_features_basic. Set stepping in cpu_features.
4372 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4373 (FEATURE_INDEX_2): New.
4374 (FEATURE_INDEX_MAX): Changed to enum.
4375 (COMMON_CPUID_INDEX_D_ECX_1): New.
4376 (COMMON_CPUID_INDEX_80000007): Likewise.
4377 (COMMON_CPUID_INDEX_80000008): Likewise.
4378 (cpuid_registers): Likewise.
4379 (cpu_features_basic): Likewise.
4380 (CPU_FEATURE_USABLE): Likewise.
4381 (bit_arch_XXX_Usable): Likewise.
4382 (cpu_features): Use cpuid_registers and cpu_features_basic.
4383 (bit_arch_XXX): Reweritten.
4384 (bit_cpu_XXX): Likewise.
4385 (index_cpu_XXX): Likewise.
4386 (reg_XXX): Likewise.
4387 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4388 <support/check.h>.
4389 (CHECK_CPU_FEATURE): New.
4390 (CHECK_CPU_FEATURE_USABLE): Likewise.
4391 (cpu_kinds): Likewise.
4392 (do_test): Print vendor, family, model and stepping. Check
4393 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4394 (TEST_FUNCTION): Removed.
4395 Include <support/test-driver.c> instead of
4396 "../../test-skeleton.c".
4397 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4398 Check POPCNT instead of POPCOUNT.
4399 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4400
4401 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4402
4403 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4404 there is no element in `consts'.
4405
4406 2018-12-01 Florian Weimer <fweimer@redhat.com>
4407
4408 * support/support_capture_subprocess.c
4409 (support_capture_subprocess): Check that pipe descriptors have
4410 expected values. Close original pipe descriptors in subprocess.
4411
4412 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4413
4414 [BZ #23032]
4415 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4416 attr with __pthread_default_barrierattr.
4417 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4418 attr with __pthread_default_condattr.
4419 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4420 attr with __pthread_default_mutexattr.
4421 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4422 attr with __pthread_default_rwlockattr.
4423
4424 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4425
4426 * manual/tunables.texi (POSIX Thread Tunables): New node.
4427 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4428 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4429 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4430 __pthread_tunables_init.
4431 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4432 (max_adaptive_count): Define.
4433 * nptl/pthread_mutex_conf.c: New file.
4434 * nptl/pthread_mutex_conf.h: New file.
4435 * sysdeps/generic/adaptive_spin_count.h: New file.
4436 * sysdeps/nptl/dl-tunables.list: New file.
4437 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4438 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4439 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4440 Likewise.
4441
4442 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4443
4444 [BZ #20544]
4445 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4446 * stdlib/on_exit.c (__on_exit): Likewise.
4447 * stdlib/Makefile (tests): Add tst-bz20544.
4448 * stdlib/tst-bz20544.c: New test.
4449
4450 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4451
4452 [BZ #19767]
4453 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4454 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4455 New.
4456
4457 2018-11-30 Florian Weimer <fweimer@redhat.com>
4458
4459 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4460 Extend error logging.
4461 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4462 symbol.
4463
4464 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4465
4466 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4467 __sigismember instead of sigismember.
4468 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4469 cancel_handler): New definitions.
4470 (do_system): Use posix_spawn instead of fork and execl and remove
4471 reentracy code.
4472 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4473 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4474 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4475 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4476 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4477 * sysdeps/unix/sysv/linux/system.c: Likewise.
4478
4479 [BZ #22834]
4480 [BZ #17490]
4481 * NEWS: Add new semantic for atfork with popen and system.
4482 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4483 fork and execl.
4484
4485 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4486
4487 [BZ #23690]
4488 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4489 modification order when accessing reloc_result->addr.
4490 * include/link.h (reloc_result): Add field init.
4491 * nptl/Makefile (tests): Add tst-audit-threads.
4492 (modules-names): Add tst-audit-threads-mod1 and
4493 tst-audit-threads-mod2.
4494 Add rules to build tst-audit-threads.
4495 * nptl/tst-audit-threads-mod1.c: New file.
4496 * nptl/tst-audit-threads-mod2.c: Likewise.
4497 * nptl/tst-audit-threads.c: Likewise.
4498 * nptl/tst-audit-threads.h: Likewise.
4499
4500 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4501
4502 * scripts/gen-as-const.py: New file.
4503 * scripts/gen-as-const.awk: Remove.
4504 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4505 gen-as-const.py.
4506 ($(objpfx)test-as-const-%.c): Likewise.
4507
4508 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4509
4510 * elf/dl-exception.c: Include <_itoa.h>.
4511
4512 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4513
4514 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4515 returned by __f_setlk.
4516
4517 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4518 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4519
4520 * elf/Makefile (tests-internal): Add tst-create_format1.
4521 * elf/dl-exception.c (_dl_exception_create_format): Support
4522 %x, %lx and %zx.
4523 * elf/tst-create_format1.c: New file.
4524
4525 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4526
4527 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4528 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4529 gnulib.)
4530 * argp/argp-help.c (__argp_failure): Likewise.
4531
4532 2018-11-29 Mao Han <han_mao@c-sky.com>
4533
4534 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4535 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4536 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4537 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4538 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4539 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4540 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4541 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4542 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4543 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4544 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4545 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4546 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4547 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4548 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4549 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4550 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4551 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4552 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4553 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4554 (R_CKCORE_TLS_TPOFF32): New defines.
4555
4556 2018-11-29 Florian Weimer <fweimer@redhat.com>
4557
4558 * posix/Makefile (before-compile): Remove testcases.h and
4559 ptestcases.h.
4560 (generated): Add testcases.h and ptestcases.h.
4561 (testcases.h, ptestcases.h): Move to $(objpfx).
4562 (runtests.o): Add dependency on testcases.h.
4563 (runptests.o): Add dependency on ptestcases.h.
4564 * posix/testcases.h, posix/ptestcases.h: Remove files.
4565 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4566 not touch posix/testcases.h and posix/ptestcases.h.
4567
4568 2018-11-28 Florian Weimer <fweimer@redhat.com>
4569
4570 support: Add signal support to support_capture_subprocess_check.
4571 * support/capture_subprocess.h (support_capture_subprocess_check):
4572 Adjust comment and rename parameter.
4573 * support/support_capture_subprocess_check.c
4574 (print_actual_status): New function.
4575 (support_capture_subprocess_check): Support negative
4576 status_or_signal. Call print_actual_status.
4577 * support/tst-support_capture_subprocess.c (do_test): Call
4578 support_capture_subprocess_check.
4579 * libio/tst-vtables-common.c (termination_status)
4580 (init_termination_status): Remove.
4581 (check_for_termination): Adjust support_capture_subprocess_check
4582 call.
4583 (do_test): Remove call to init_termination_status.
4584
4585 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4586
4587 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4588 source directory instead of a copy.
4589 (CommandList.create_copy_dir): Remove.
4590
4591 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4592
4593 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4594
4595 2018-11-28 Florian Weimer <fweimer@redhat.com>
4596
4597 * support/support.h (support_quote_string): Do not use str
4598 parameter name.
4599
4600 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4601
4602 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4603 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4604
4605 2018-11-27 Florian Weimer <fweimer@redhat.com>
4606
4607 * support/support.h (support_quote_string): Declare.
4608 * support/support_quote_string.c: New file.
4609 * support/tst-support_quote_string.c: Likewise.
4610 * support/Makefile (libsupport-routines): Add
4611 support_quote_string.
4612 (tests): Add tst-support_quote_string.
4613
4614 2018-11-27 Florian Weimer <fweimer@redhat.com>
4615
4616 [BZ #23927]
4617 CVE-2018-19591
4618 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4619 descriptor leak in case of ENODEV error.
4620
4621 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4622
4623 [BZ #19767]
4624 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4625 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4626 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4627
4628 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4629
4630 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4631 Error for unknown lines.
4632
4633 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4634
4635 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4636 Touch additional files.
4637
4638 2018-11-26 Florian Weimer <fweimer@redhat.com>
4639
4640 [BZ #23907]
4641 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4642 double-frees.
4643
4644 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4645
4646 [BZ #19767]
4647 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4648 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4649 SHARED. Include sysdep.h.
4650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4651 ALWAYS_USE_VSYSCALL.
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4653 ALWAYS_USE_VSYSCALL.
4654
4655 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4656
4657 [BZ #19767]
4658 * nptl/Makefile (tests-static): Add tst-cond11-static.
4659 (tests): Likewise.
4660 * nptl/tst-cond11-static.c: New File.
4661 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4662 tst-affinity-static.
4663 (tests): Likewise.
4664 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4665 instead of SHARED.
4666 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4667 (USE_VSYSCALL): Likewise.
4668 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4669 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4670 instead of SHARED.
4671 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4672 SHARED.
4673 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4674 New.
4675
4676 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4677
4678 [BZ #23915]
4679 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4680 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4681 Undefine.
4682
4683 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4684
4685 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4686 (tst-cet-legacy-1a-ARGS): New.
4687 ($(objpfx)tst-cet-legacy-1a): New target.
4688 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4689
4690 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4691
4692 * conform/conformtest.py (CompileSubTest.__init__): Set
4693 self.run_early to False.
4694 (ExecuteSubTest.__init__): Likewise.
4695 (HeaderTests.run): Try running all non-optional, non-XFAILed
4696 compilation tests in a single execution of the compiler.
4697
4698 * conform/conformtest.py (CompileSubTest): New class.
4699 (ExecuteSubTest): Likewise.
4700 (ElementTest.run): Rename to gen_subtests. Append tests to
4701 self.subtests instead of running them.
4702 (ConstantTest.run): Likewise.
4703 (SymbolTest.run): Likewise.
4704 (TypeTest.run): Likewise.
4705 (TagTest.run): Likewise.
4706 (FunctionTest.run): Likewise.
4707 (VariableTest.run): Likewise.
4708 (MacroFunctionTest.run): Likewise.
4709 (MacroStrTest.run): Likewise.
4710 (HeaderTests.handle_test_line): Generate subtests for tests.
4711 (HeaderTests.run): Run subtests for tests.
4712
4713 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4714
4715 * math/Versions (GLIBC_2.29): Add pow.
4716 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4717 symbol.
4718 * math/w_pow.c: New file.
4719 * sysdeps/i386/fpu/w_pow.c: New file.
4720 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4721 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4722 and add necessary aliases.
4723 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4724 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4725 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4726 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4727 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4728 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4729 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4730 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4731 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4732 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4733 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4734 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4735 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4736 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4737 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4742 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4743 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4744 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4745 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4746 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4747 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4748 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4749 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4750 __pow.
4751 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4752 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4753 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4754
4755 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4756
4757 * math/Versions (GLIBC_2.29): Add log2.
4758 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4759 symbol.
4760 * math/w_log2.c: New file.
4761 * sysdeps/i386/fpu/w_log2.c: New file.
4762 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4763 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4764 and add necessary aliases.
4765 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4766 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4767 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4768 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4769 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4770 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4771 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4772 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4773 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4774 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4775 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4776 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4777 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4778 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4779 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4784 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4785 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4786 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4787 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4788 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4789 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4790 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4791
4792 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4793
4794 * math/Versions (GLIBC_2.29): Add log.
4795 * math/w_log_compat.c (__log_compat): Change to versioned compat
4796 symbol.
4797 * math/w_log.c: New file.
4798 * sysdeps/i386/fpu/w_log.c: New file.
4799 * sysdeps/ia64/fpu/e_log.S: Update.
4800 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4801 and add necessary aliases.
4802 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4803 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4804 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4805 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4806 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4807 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4808 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4809 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4810 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4811 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4812 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4813 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4814 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4815 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4816 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4821 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4822 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4823 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4824 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4825 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4826 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4827 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4828 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4829 __log.
4830 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4831 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4832 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4833 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4834
4835 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4836
4837 * math/Versions (GLIBC_2.29): Add exp and exp2.
4838 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4839 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4840 * math/w_exp_compat.c (__exp_compat): Likewise.
4841 * math/w_exp.c: New file.
4842 * math/w_exp2.c: New file.
4843 * sysdeps/i386/fpu/w_exp.c: New file.
4844 * sysdeps/i386/fpu/w_exp2.c: New file.
4845 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4846 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4847 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4848 and add necessary aliases.
4849 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4850 and add necessary aliases.
4851 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4852 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4853 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4854 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4855 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4856 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4857 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4858 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4859 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4860 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4861 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4862 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4863 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4864 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4865 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4866 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4867 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4872 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4873 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4874 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4875 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4876 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4877 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4878 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4879 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4880 (__ieee754_exp): Rename to __exp.
4881 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4882 (__ieee754_exp): Rename to __exp.
4883 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4884 (__ieee754_exp): Rename to __exp.
4885 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4886 __exp.
4887 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4888
4889 2018-11-20 DJ Delorie <dj@redhat.com>
4890
4891 * malloc/malloc.c (tcache_entry): Add key field.
4892 (tcache_put): Set it.
4893 (tcache_get): Likewise.
4894 (_int_free): Check for double free in tcache.
4895 * malloc/tst-tcfree1.c: New.
4896 * malloc/tst-tcfree2.c: New.
4897 * malloc/Makefile: Run the new tests.
4898 * manual/probes.texi: Document memory_tcache_double_free probe.
4899
4900 * dlfcn/dlerror.c (check_free): Prevent double frees.
4901
4902 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4903
4904 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4905
4906 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4907
4908 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4909 in tests. Use names for format arguments.
4910 (ConstantTest.run): Likewise.
4911 (SymbolTest.run): Likewise.
4912 (TypeTest.run): Likewise.
4913 (TagTest.run): Likewise.
4914 (FunctionTest.run): Likewise.
4915 (VariableTest.run): Likewise.
4916 (MacroFunctionTest.run): Likewise.
4917 (MacroStrTest.run): Likewise.
4918 (HeaderTests.__init__): Set self.num_tests.
4919 (HeaderTests.handle_test_line): Set test.num. Increment
4920 self.num_tests.
4921
4922 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4923
4924 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4925 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4926 SEEK_SET.
4927
4928 2018-11-19 Mao Han <han_mao@c-sky.com>
4929
4930 * scripts/config.guess: Update to version 2018-08-29.
4931 * scripts/config.sub: Update to version 2018-08-29.
4932
4933 2018-11-19 Florian Weimer <fweimer@redhat.com>
4934
4935 support: Print timestamps in timeout handler.
4936 * support/support_test_main.c (print_timestamp): New function.
4937 (signal_handler): Use it to print the termination time and the
4938 time of the last write to standard output.
4939
4940 2018-11-16 Zack Weinberg <zackw@panix.com>
4941 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4942
4943 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4944 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4945 argument.
4946 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4947 and add flags argument. Check flags instead of __ldbl_is_dbl when
4948 deciding whether to set is_long_double.
4949 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4950 passing zero for flags argument.
4951 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4952
4953 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4954 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4955 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4956 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4957 variable names. Remove libc_hidden_def/libc_hidden_proto from
4958 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4959 longer called from within the library.
4960 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4961 for __nldbl___vstrfmon_l, declare it explicitly.
4962
4963 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4964
4965 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4966
4967 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4968 macros
4969 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4970 F_SETLK64, F_SETLKW64, respectively.
4971 * sysdeps/mach/hurd/f_setlk.c: New file.
4972 * sysdeps/mach/hurd/f_setlk.h: New file.
4973 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4974 f_setlk.
4975 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4976 (__libc_fcntl): Move non-flock operations to...
4977 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4978 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4979
4980 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4981
4982 mktime: DEBUG_MKTIME cleanup
4983 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4984 And it’s no longer needed now that glibc and Gnulib both have
4985 their own testing mechanisms for mktime.
4986 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4987
4988 mktime: fix non-EOVERFLOW errno handling
4989 [BZ#23789]
4990 mktime was not properly reporting failures when the underlying
4991 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4992 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4993 The problem could happen on non-glibc platforms, with Gnulib.
4994 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4995 (tm_diff): ... this simpler function, which does not change errno.
4996 All callers changed to deal with errno themselves.
4997 (ranged_convert, __mktime_internal): Return failure immediately if
4998 the underlying function reports any failure other than EOVERFLOW.
4999 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5000 gap code fails.
5001
5002 mktime: fix bug with Y2038 DST transition
5003 [BZ#23789]
5004 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5005 mishandle a DST transition that jumps over the Y2038 boundary.
5006 No such DST transitions are known so this is only a theoretical
5007 bug, but we might as well do things right.
5008
5009 mktime: make more room for overflow
5010 [BZ#23789]
5011 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5012 This is so that we can add tm_diff results to a previous guess,
5013 which will be useful in a later patch.
5014
5015 mktime: simplify offset guess
5016 [BZ#23789]
5017 * time/mktime.c (__mktime_internal): Omit excess precision.
5018
5019 mktime: new test for mktime failure
5020 [BZ#23789]
5021 Based on a test suggested by Albert Aribaud in:
5022 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5023 * time/Makefile (tests): Add bug-mktime4.
5024 * time/bug-mktime4.c: New file.
5025
5026 mktime: fix EOVERFLOW bug
5027 [BZ#23789]
5028 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5029 Include libc-config.h, not config.h, for __set_errno.
5030 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5031
5032 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5033
5034 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5035 __attribute_copy__ to copy attributes from name. Drop static qualifier
5036 to avoid warnings about leaf attribute not having effect on static
5037 functions.
5038
5039 2018-11-13 Florian Weimer <fweimer@redhat.com>
5040
5041 * malloc/malloc.c (fastbin_push_entry): New function.
5042 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5043 (REMOVE_FB): Remove macro.
5044 (_int_malloc): Use fastbin_pop_entry and reindent.
5045 (_int_free): Use fastbin_push_entry.
5046 (malloc_consolidate): Use atomic_exchange_acquire.
5047
5048 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5049
5050 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5051 alias attribute, not with strong_alias.
5052
5053 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5054 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5055 with additional parameter thread.
5056 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5057 in terms of __hidden_ver2.
5058 (hidden_tls_def): New macro.
5059 (libc_hidden_tls_def): Likewise.
5060 (rtld_hidden_tls_def): Likewise.
5061 (libm_hidden_tls_def): Likewise.
5062 (libmvec_hidden_tls_def): Likewise.
5063 (libresolv_hidden_tls_def): Likewise.
5064 (librt_hidden_tls_def): Likewise.
5065 (libdl_hidden_tls_def): Likewise.
5066 (libnss_files_hidden_tls_def): Likewise.
5067 (libnsl_hidden_tls_def): Likewise.
5068 (libnss_nisplus_hidden_tls_def): Likewise.
5069 (libutil_hidden_tls_def): Likewise.
5070 (libutil_hidden_tls_def): Likweise.
5071 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5072 libc_hidden_tls_def.
5073 (__sim_disabled_exceptions_thread): Likewise.
5074 (__sim_round_mode_thread): Likewise.
5075
5076 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5077 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5078 copy attributes from name.
5079
5080 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5081
5082 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5083 Use __attribute_copy__ to copy attributes from name.
5084
5085 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5086 with __hidden_ver1 call.
5087 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5088 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5089 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5090 (__cosf): Do not declare here.
5091 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5092 (__sincosf): Do not declare here.
5093 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5094 (__sinf): Do not declare here.
5095
5096 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5097 (__BIG_ENDIAN): Likewise.
5098 (__BYTE_ORDER): Likewise.
5099 (strong_alias): Likewise.
5100 (_strong_alias): Likewise.
5101
5102 2018-11-12 Florian Weimer <fweimer@redhat.com>
5103
5104 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5105 function. Move after the definition of in_smallbin_range. Do not
5106 use __builtin_expect for paths that lead to a noreturn function.
5107 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5108 because it is unclear whether this is in fact an unlikely
5109 condition.
5110 (_int_malloc, _int_free): Adjust.
5111 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5112 variables.
5113 * malloc/arena.c (heap_trim): Likewise.
5114
5115 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5116
5117 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5118 it, free it if needed.
5119 (reauthenticate): Test and use ccwdir.
5120 (child_init_port): In non-resetids case, test and use ccwdir.
5121 (child_chdir): New nested function to set ccwdir.
5122 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5123 * hurd/hurd/port.h (_hurd_port_move): New function.
5124 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5125 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5126 * hurd/Versions (_hurd_port_move): Export function.
5127 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5128 symbol.
5129 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5130 of dtablesize for allocating dtable_cloexec.
5131
5132 2018-11-09 Martin Sebor <msebor@redhat.com>
5133
5134 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5135 it's already defined.
5136 (_strong_alias): Use __attribute_copy__.
5137 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5138 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5139 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5140 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5141 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5142 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5143 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5144 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5145 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5146 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5147 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5148 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5149 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5150 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5151 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5152 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5153 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5154 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5155 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5156
5157 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5158
5159 * misc/tst-efgcvt.c: Include support/check.h and
5160 support/test-driver.c. Do not include test-skeleton.c.
5161 (error_count): Remove.
5162 (output_error): Replace increments to error_count with calls to
5163 support_record_failure.
5164 (output_r_error): Likewise.
5165 (special): Likewise.
5166 (do_test): Unconditionally return zero.
5167 (TEST_FUNCTION): Remove.
5168
5169 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5170
5171 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5172 not $(@D)/scratch.
5173 ($(linknamespace-header-tests)): Likewise.
5174
5175 * conform/conformtest.py: New file.
5176 * conform/conformtest.pl: Remove.
5177 * conform/GlibcConform.pm: Likewise.
5178 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5179 (KEYWORDS_C99): Likewise.
5180 (KEYWORDS): Likewise.
5181 * conform/Makefile ($(conformtest-header-tests)): Use
5182 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5183 option. Use --header instead of --headers.
5184 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5185 function entries.
5186 * conform/data/spawn.h-data: Likewise.
5187 * conform/data/fcntl.h-data (openat): Add space after function
5188 name.
5189 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5190 (wcscasecmp_l): Likewise.
5191 * conform/data/termios.h-data (c_cc): Add space after element
5192 name.
5193
5194 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5195
5196 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5197 instead of manually comparing and reporting mismatching strings.
5198 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5199 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5200
5201 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5202
5203 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5204 __ASSUME_SOCKETCALL.
5205 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5206 (__ASSUME_SOCKETCALL): Remove.
5207 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5208 (__ASSUME_SOCKETCALL): Likewise.
5209 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5210 (__ASSUME_SOCKETCALL): Likewise.
5211 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5212 (__ASSUME_SOCKETCALL): Likewise.
5213 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5214 (__ASSUME_SOCKETCALL): Likewise.
5215 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5216 (__ASSUME_SOCKETCALL): Likewise.
5217 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5218 (__ASSUME_SOCKETCALL): Likewise.
5219
5220 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5221
5222 [BZ #23509]
5223 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5224 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5225 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5226 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5227 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5228 lc_unknown.
5229
5230 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5231
5232 [BZ #17630]
5233 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5234
5235 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5236
5237 [BZ #23867]
5238 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5239 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5240 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5241 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5242
5243 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5244
5245 * support/support_test_compare_string.c
5246 (support_test_compare_string): Fix printf format.
5247
5248 2018-11-07 Florian Weimer <fweimer@redhat.com>
5249
5250 Implement TEST_COMPARE_STRING.
5251 * support/check.h (TEST_COMPARE_STRING): Define.
5252 (support_test_compare_string): Declare.
5253 * support/Makefile (libsupport-routines): Add
5254 support_test_compare_string.
5255 (tests): Add tst-test_compare_string.
5256 * support/support_test_compare_string.c: New file.
5257 * support/tst-test_compare_string.c: Likewise.
5258
5259 2018-11-07 Andreas Schwab <schwab@suse.de>
5260
5261 [BZ #23864]
5262 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5263 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5264 Undef.
5265
5266 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5267
5268 [BZ #23862]
5269 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5270 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5271 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5272 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5273 Likewise.
5274
5275 2018-11-06 Florian Weimer <fweimer@redhat.com>
5276
5277 [BZ #17405]
5278 * posix/Makefile (routines): Add spawn_faction_addchdir.
5279 (tests): Add tst-spawn-chdir.
5280 * posix/Versions (GLIBC_2.29): Add
5281 posix_spawn_file_actions_addchdir_np.
5282 * posix/spawn_faction_addchdir.c: New file.
5283 * posix/spawn_faction_destroy.c
5284 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5285 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5286 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5287 chdir_action.
5288 * posix/tst-spawn-chdir.c: New file.
5289 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5290 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5291 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5292 posix_spawn_file_actions_addchdir_np.
5293 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5294 Likewise.
5295 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5296 Likewise.
5297 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5298 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5299 Likewise.
5300 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5301 Likewise.
5302 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5303 Likewise.
5304 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5305 Likewise.
5306 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5307 Likewise.
5308 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5309 Likewise.
5310 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5311 (GLIBC_2.29): Likewise.
5312 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5313 (GLIBC_2.29): Likewise.
5314 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5315 (GLIBC_2.29): Likewise.
5316 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5317 (GLIBC_2.29): Likewise.
5318 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5319 Likewise.
5320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5321 (GLIBC_2.29): Likewise.
5322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5323 (GLIBC_2.29): Likewise.
5324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5325 (GLIBC_2.29): Likewise.
5326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5327 (GLIBC_2.29): Likewise.
5328 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5329 Likewise.
5330 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5331 Likewise.
5332 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5333 Likewise.
5334 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5335 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5336 Likewise.
5337 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5338 Likewise.
5339 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5340 Likewise.
5341 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5342 Likewise.
5343
5344 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5345
5346 * misc/Makefile (tests): Add tst-ldbl-error.
5347 * misc/tst-ldbl-error.c: New file.
5348
5349 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5350
5351 * misc/Makefile (tests): Add tst-ldbl-warn.
5352 * misc/tst-ldbl-warn.c: New file.
5353
5354 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5355
5356 * argp/Makefile (tests): Add tst-ldbl-argp.
5357 * argp/tst-ldbl-argp.c: New file.
5358
5359 2018-11-05 Arjun Shankar <arjun@redhat.com>
5360
5361 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5362 __gconv_path_elem and call __gconv_get_path unconditionally.
5363
5364 2018-11-05 Andreas Schwab <schwab@suse.de>
5365
5366 [BZ #22927]
5367 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5368 creating the first helper thread failed.
5369
5370 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5371
5372 * sysdeps/mach/hurd/msync.c: New file.
5373
5374 2018-11-02 Florian Weimer <fweimer@redhat.com>
5375
5376 * support/shell-container.c (copy_func): Call
5377 support_copy_file_range instead of copy_file_range to support
5378 cross-device copies.
5379
5380 2018-11-02 Florian Weimer <fweimer@redhat.com>
5381
5382 * support/test-container.c: Include <libc-pointer-arith.h> for
5383 ALIGN_UP.
5384
5385 2018-11-01 Zong Li <zong@andestech.com>
5386
5387 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5388 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5389 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5390 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5391
5392 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5393 variable to avoid overlap arguments.
5394
5395 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5396
5397 * posix/bug-regex22.c (main): Use puts with distinct error
5398 messages for unexpected success of re_compile_pattern, not printf
5399 with NULL argument to %s.
5400
5401 * stdio-common/bug22.c: Include <libc-diag.h>.
5402 (do_test): Disable -Wformat-overflow= warnings around fprintf
5403 calls outputting more than INT_MAX characters.
5404 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5405 around printf call with NULL %s argument.
5406
5407 [BZ #23848]
5408 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5409 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5410 Undefine.
5411 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5412 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5413 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5414 (__ASSUME_SENDTO_SYSCALL): Likewise.
5415 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5416 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5417 [!__arch64__].
5418 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5419 (__ASSUME_CONNECT_SYSCALL): Likewise.
5420 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5421 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5422 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5423 Define.
5424 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5425 Likewise.
5426 [__LINUX_KERNEL_VERSION >= 0x040400]
5427 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5428 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5429 Remove.
5430 (listen): Likewise.
5431 (setsockopt): Likewise.
5432
5433 2018-11-01 Fredrik Noring <noring@nocrew.org>
5434
5435 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5436 with the ISA override.
5437
5438 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5439
5440 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5441 #endif.
5442
5443 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5444
5445 * manual/errno.texi (EIEIO): Document how translators should
5446 translate the error message.
5447 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5448 printing trailing whitespaces refused by git.
5449 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5450 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5451 * hurd/Makefile (user-interfaces): Add pci.
5452
5453 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5454
5455 * conform/linknamespace.py: New file.
5456 * conform/linknamespace.pl: Remove file.
5457 * conform/Makefile ($(linknamespace-header-tests)): Use
5458 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5459 option.
5460
5461 2018-10-30 Florian Weimer <fweimer@redhat.com>
5462
5463 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5464 memory leaks.
5465
5466 2018-10-30 Florian Weimer <fweimer@redhat.com>
5467
5468 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5469
5470 2018-10-30 Florian Weimer <fweimer@redhat.com>
5471
5472 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5473 support_blob_repeat.
5474
5475 2018-10-30 Florian Weimer <fweimer@redhat.com>
5476
5477 Avoid spurious test failures in stdlib/test-bz22786.
5478 * support/Makefile (libsupport-routines): Add blob_repeat.
5479 (tests): Add tst-support_blob_repeat.
5480 * support/blob_repeat.h: New file.
5481 * support/blob_repeat.c: Likewise.
5482 * support/tst-support_blob_repeat.c: Likewise.
5483 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5484 support_blob_repeat_allocate.
5485
5486 2018-10-30 Andreas Schwab <schwab@suse.de>
5487
5488 [BZ #23125]
5489 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5490 Don't use tail call.
5491 * elf/tst-unwind-main.c: New file.
5492 * elf/Makefile (tests): Add tst-unwind-main.
5493 (CFLAGS-tst-unwind-main.c): Define.
5494
5495 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5496
5497 [BZ #23791]
5498 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5499 n_cs_precedes to 0.
5500 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5501
5502 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5503
5504 * conform/glibcconform.py: Do not import shutil.
5505 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5506 of mkdtemp.
5507
5508 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5509 critic_missing for versions before 3.4.
5510 * configure: Regenerated.
5511 * manual/install.texi (Tools for Compilation): Document
5512 requirement for Python to build glibc.
5513 * INSTALL: Regenerated.
5514 * Rules [PYTHON]: Make code unconditional.
5515 * benchtests/Makefile [PYTHON]: Likewise.
5516 * conform/Makefile [PYTHON]: Likewise.
5517 * manual/Makefile [PYTHON]: Likewise.
5518 * math/Makefile [PYTHON]: Likewise.
5519
5520 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5521
5522 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5523 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5524 answer to interrupt_operation, return EIEIO instead of EINTR.
5525 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5526 _hurd_intr_rpc_msg_about_to global point to start of controlled
5527 assembly snippet. Make it check canceled flag.
5528 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5529 the _hurd_intr_rpc_msg_about_to point.
5530 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5531 issue, remove cancel flag check.
5532
5533 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5534
5535 * scripts/build-many-glibcs.py: Remove compatibility for missing
5536 os.cpu_count and re.fullmatch.
5537
5538 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5539
5540 [BZ #23822]
5541 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5542 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5543 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5544
5545 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5546
5547 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5548 macro.
5549
5550 2018-10-25 Florian Weimer <fweimer@redhat.com>
5551
5552 [BZ #23562]
5553 [BZ #23821]
5554 XFAIL siginfo_t si_band conform test on sparc64.
5555 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5556 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5557 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5558 (conformtest-xfail-conds): Add sparc64-linux.
5559 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5560 sparc64.
5561 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5562
5563 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5564
5565 * elf/elf.h (NT_MIPS_DSP): New macro.
5566 (NT_MIPS_FP_MODE): Likewise.
5567
5568 2018-10-25 Zong Li <zong@andestech.com>
5569
5570 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5571 name by adding the file extension (.so).
5572
5573 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5574
5575 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5576 (test-xfail-ISO11/threads.h/linknamespace,
5577 test-xfail-ISO11/threads.h/conform): Add.
5578
5579 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5580
5581 * math/gen-libm-test.py: Import os.
5582 (ALL_FLOATS_MANUAL): New constant.
5583 (ALL_FLOATS_SUFFIX): Likewise.
5584 (Ulps.all_functions): New function.
5585 (real_all_ulps): Likewise.
5586 (generate_err_table_sub): Likewise.
5587 (generate_err_table): Likewise.
5588 (main): Handle -s and -m options.
5589 * manual/libm-err-tab.pl: Remove.
5590 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5591 instead of libm-err-tab.pl.
5592 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5593 != no].
5594 * manual/install.texi (Tools for Compilation): Document
5595 requirement for Python to build manual.
5596 * INSTALL: Regenerated.
5597
5598 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5599
5600 * bits/time64.h: New file.
5601 * include/time.h: Replace internal_time_t with __time64_t.
5602 * posix/bits/types (__time64_t): Add.
5603 * stdlib/Makefile: Add bits/time64.h to includes.
5604 * time/tzfile.c: Replace internal_time_t with __time64_t.
5605
5606 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5607
5608 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5609 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5610 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5611 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5612 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5613 prototype.
5614 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5615 * posix/spawn_faction_addclose.c
5616 (__posix_spawn_file_actions_addclose): Add hidden definition.
5617 * posix/spawn_faction_adddup2.c
5618 (__posix_spawn_file_actions_adddup2): Likewise.
5619 * posix/spawn_faction_destroy.c
5620 (__posix_spawn_file_actions_destroy): Likewise.
5621 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5622 Likewise.
5623 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5624 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5625 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5626 Likewise.
5627 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5628 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5629 Likewise.
5630
5631 2018-10-24 Andreas Schwab <schwab@suse.de>
5632
5633 [BZ #18093]
5634 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5635 format cache.
5636 * elf/cache.c (print_cache): Likewise.
5637
5638 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5639
5640 * bits/timesize.h: New file.
5641 * stdlib/Makefile (headers): Add bits/timesize.h.
5642 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5643 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5644 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5645 (__SEM_PAD_AFTER_TIME): Likewise.
5646 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5647 (__SHM_PAD_AFTER_TIME): Likewise.
5648 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5649 (__MSQ_PAD_BEFORE_TIME): Likewise.
5650 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5651 (__SEM_PAD_BEFORE_TIME): Likewise.
5652 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5653 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5654 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5655 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5656 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5657 (__MSQ_PAD_BEFORE_TIME): Likewise.
5658 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5659 (__SEM_PAD_BEFORE_TIME): Likewise.
5660 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5661 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5662 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5663 (__MSQ_PAD_BEFORE_TIME): Likewise.
5664 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5665 (__SEM_PAD_BEFORE_TIME): Likewise.
5666 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5667 (__SHM_PAD_BEFORE_TIME): Likewise.
5668 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5669 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5670 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5671
5672 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5673
5674 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5675 USE_RDTSCP is defined.
5676 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5677 USE_RDTSCP is defined.
5678
5679 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5680
5681 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5682 defined.
5683
5684 [BZ #23709]
5685 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5686 independently of other flags.
5687
5688 2018-10-23 Florian Weimer <fweimer@redhat.com>
5689
5690 * time/tst-mktime2.c (N_STRINGS): Remove.
5691 (set_timezone): New function.
5692 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5693 (mktime_test1): Report localtime failure and check errno value.
5694 Use TEST_COMPARE.
5695 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5696 (do_test): Remove alarm call. Use set_timezone and array_length.
5697
5698 2018-10-23 Andreas Schwab <schwab@suse.de>
5699
5700 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5701 (__start_context): Use END instead of PSEUDO_END.
5702
5703 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5704
5705 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5706 version to 4.19.
5707
5708 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5709 version to 4.19.
5710
5711 [BZ #23793]
5712 * wcsmbs/c32rtomb.c: New file.
5713 * wcsmbs/mbrtoc32.c: Likewise.
5714 * wcsmbs/tst-c32-state.c: Likewise.
5715 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5716 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5717 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5718 (tests): Add tst-c32-state.
5719 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5720 $(gen-locales).
5721
5722 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5723
5724 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5725 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5726
5727 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5728
5729 [BZ #23794]
5730 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5731 pair and return 0 in that case, and use saved character to
5732 interpret following character.
5733 * wcsmbs/tst-c16-surrogate.c: New file.
5734 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5735 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5736 Depend on $(gen-locales)
5737
5738 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5739
5740 [BZ #23562]
5741 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5742 (struct siginfo_t): Use correct type for si_band.
5743
5744 2018-10-19 Florian Weimer <fweimer@redhat.com>
5745
5746 [BZ #23689]
5747 * resource/bits/types/struct_rusage.h (struct rusage): Update
5748 comment on struct. Remove extraneous field comment.
5749
5750 2018-10-18 David S. Miller <davem@davemloft.net>
5751
5752 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5753 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5754 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5755 sysdep_routines in subdir elf.
5756 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5757 version for __vdso_clock_gettime.
5758 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5759 Define.
5760 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5761 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5762
5763 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5764
5765 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5766
5767 * sysdeps/i386/init-arch.h: Removed.
5768 * sysdeps/i386/i586/init-arch.h: Likewise.
5769 * sysdeps/i386/i686/init-arch.h: Likewise.
5770 * sysdeps/i386/i686/hp-timing.h: Likewise.
5771 * sysdeps/x86_64/hp-timing.h: Likewise.
5772 * sysdeps/i386/isa.h: New file.
5773 * sysdeps/i386/i586/isa.h: Likewise.
5774 * sysdeps/i386/i686/isa.h: Likewise.
5775 * sysdeps/x86_64/isa.h: Likewise.
5776 * sysdeps/x86/hp-timing.h: New file.
5777 * sysdeps/x86/init-arch.h: Include <isa.h>.
5778
5779 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5780
5781 * math/libm-test-pow.inc (pow_test_data): Do not allow
5782 divide-by-zero exception for pow(+/- 0, -Inf).
5783
5784 2018-10-17 Zack Weinberg <zackw@panix.com>
5785
5786 * manual/job.texi (Job Control is Optional): Remove node, as
5787 job control has not been optional in quite some time.
5788 (Job Control): Mention briefly that systems older than
5789 POSIX.1-2001 might not support job control.
5790 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5791 defined on systems conforming to POSIX.1-2001.
5792
5793 2018-10-17 Arjun Shankar <arjun@redhat.com>
5794
5795 [BZ #22062]
5796 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5797 indentation.
5798 * (__gconv_read_conf): Mark function static.
5799 * (once): New static variable.
5800 * (__gconv_load_conf): New function.
5801 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5802 * iconv/gconv_db.c (once): Remove static variable.
5803 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5804 __gconv_read_conf.
5805 * (__gconv_find_transform): Likewise.
5806 * iconv/tst-iconv-mt.c: New test.
5807 * iconv/Makefile: Add tst-iconv_mt.
5808
5809 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5810
5811 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5812 bits/shm-pad.h.
5813 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5814 (shmatt_t): Define as __syscall_ulong_t.
5815 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5816 and [__SHM_PAD_AFTER_TIME].
5817 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5818 Define shm_segsz and associated padding based on
5819 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5820 Use __syscall_ulong_t instead of unsigned long int.
5821 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5822 unsigned long int.
5823 [__USE_MISC] (struct shm_info): Likewise.
5824 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5825 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5826 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5827 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5828 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5829 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5830 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5831 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5832 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5833 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5834 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5835
5836 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5837 bits/shmlba.h.
5838 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5839 (SHMLBA): Remove macro.
5840 (__getpagesize): Remove function declaration.
5841 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5842 <bits/shmlba.h>.
5843 (SHMLBA): Remove macro.
5844 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5845 <bits/shmlba.h>.
5846 (SHMLBA): Remove macro.
5847 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5848 <bits/shmlba.h>.
5849 (SHMLBA): Remove macro.
5850 (__getpagesize): Remove function declaration.
5851 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5852 <bits/shmlba.h>.
5853 (SHMLBA): Remove macro.
5854 (__getshmlba): Remove function declaration.
5855 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5856 (SHMLBA): Remove macro.
5857 (__getpagesize): Remove function declaration.
5858 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5859 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5860 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5861 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5862 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5863 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5864 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5865 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5866 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5867 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5868
5869 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5870
5871 [BZ #23275]
5872 * nptl/tst-mutex10.c: New File.
5873 * nptl/Makefile (tests): Add tst-mutex10.
5874 (tst-mutex10-ENV): New variable.
5875 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5876 Ensure that elision path is used if elision is available.
5877 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5878 Likewise.
5879 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5880 Likewise.
5881 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5882 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5883 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5884 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5885 Likewise.
5886 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5887 (__pthread_mutex_cond_lock_adjust): Likewise.
5888 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5889 Likewise.
5890 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5891 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5892 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5893 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5894 Add comments.
5895 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5896 Use atomic_load_relaxed and atomic_store_relaxed.
5897 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5898 Use atomic_store_relaxed.
5899
5900 2018-10-17 Andreas Schwab <schwab@suse.de>
5901
5902 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5903 * crypt/badsalttest.c (TIMEOUT): Likewise.
5904 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5905 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5906 * io/test-lfs.c (TIMEOUT): Likewise.
5907 * libio/tst-atime.c (TIMEOUT): Likewise.
5908 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5909 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5910 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5911 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5912 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5913 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5914 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5915 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5916 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5917 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5918 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5919 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5920 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5921 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5922 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5923 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5924 * nptl/tst-once2.c (TIMEOUT): Likewise.
5925 * nptl/tst-once3.c (TIMEOUT): Likewise.
5926 * nptl/tst-once4.c (TIMEOUT): Likewise.
5927 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5928 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5929 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5930 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5931 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5932 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5933 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5934 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5935 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5936 * posix/tst-chmod.c (TIMEOUT): Likewise.
5937 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5938 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5939 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5940 * posix/tst-regex2.c (TIMEOUT): Likewise.
5941 * posix/tst-waitid.c (TIMEOUT): Likewise.
5942 * rt/tst-aio.c (TIMEOUT): Likewise.
5943 * rt/tst-aio10.c (TIMEOUT): Likewise.
5944 * rt/tst-aio4.c (TIMEOUT): Likewise.
5945 * rt/tst-aio5.c (TIMEOUT): Likewise.
5946 * rt/tst-aio6.c (TIMEOUT): Likewise.
5947 * rt/tst-aio64.c (TIMEOUT): Likewise.
5948 * rt/tst-aio7.c (TIMEOUT): Likewise.
5949 * rt/tst-aio9.c (TIMEOUT): Likewise.
5950 * rt/tst-clock.c (TIMEOUT): Likewise.
5951 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5952 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5953 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5954 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5955 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5956 * rt/tst-timer4.c (TIMEOUT): Likewise.
5957 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5958 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5959 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5960 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5961 * time/tst-ftime.c (TIMEOUT): Likewise.
5962 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5963
5964 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5965
5966 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5967 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5968 for thunderX2.
5969
5970 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5971
5972 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5973 bits/sem-pad.h.
5974 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5975 instead of <bits/wordsize.h>.
5976 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5977 and [__SEM_PAD_AFTER_TIME].
5978 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5979 __syscall_ulong_t instead of unsigned long int.
5980 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5981 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5982 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5983 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5984 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5985 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5986 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5987 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5988 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5989 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5990 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5991
5992 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5993
5994 regex: simplify by using intprops.h
5995 [BZ#23744]
5996 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5997 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5998 intprops.h defines them.
5999
6000 regex: __builtin_expect → __glibc_unlikely
6001 [BZ#23744]
6002 This refactoring was prompted by a problem when the regex code is
6003 used as part of Gnulib and when the builder’s compiler does not grok
6004 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6005 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6006 Although this refactoring does not fix the problem directly,
6007 we might as well have Gawk use the now-preferred glibc style for when
6008 __builtin_expect is unavailable.
6009 * posix/regex_internal.h (BE): Remove.
6010 All uses replaced by __glibc_unlikely or __glibc_likely.
6011
6012 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6013
6014 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6015 bits/msq-pad.h.
6016 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6017 instead of <bits/wordsize.h>.
6018 (msgqnum_t): Define as __syscall_ulong_t.
6019 (msglen_t): Likewise.
6020 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6021 and [__MSQ_PAD_AFTER_TIME].
6022 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6023 __syscall_ulong_t instead of unsigned long int.
6024 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6025 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6026 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6027 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6028 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6029 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6030 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6031 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6032 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6033 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6034 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6035
6036 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6037
6038 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6039 (struct shmid_ds): Condition padding after time fields on
6040 [__WORDSIZE == 32].
6041 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6042 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6043 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6044
6045 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6046 (struct semid_ds): Condition padding after time fields on
6047 [__WORDSIZE == 32].
6048 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6049 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6050 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6051 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6052
6053 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6054 (struct msqid_ds): Condition padding after time fields on
6055 [__WORDSIZE == 32].
6056 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6057 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6058 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6059 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6060
6061 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6062
6063 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6064
6065 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6066
6067 * libio/tst-readline.c (TIMEOUT): Define.
6068
6069 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6070
6071 mktime fix for Gnulib + coreutils
6072 [BZ#23745]
6073 This fix affects only Gnulib. Problem discovered when
6074 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6075 * time/mktime.c:
6076 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6077 Do not define since it is not used. Defining an unused static
6078 function prompts a warning from GCC when Coreutils is configured
6079 with --enable-gcc-warnings.
6080
6081 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6082
6083 * benchtests/scripts/compare_bench.py (main): set float type on
6084 threshold argument.
6085
6086 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6087
6088 [BZ #23740]
6089 * localedata/locales/kl_GL (mon): Update, the relative case.
6090 (alt_mon): Add, fill with month names in the nominative case.
6091 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6092 (d_fmt): Set to "%b %d %Y".
6093
6094 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6095
6096 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6097 <bits/mman-linux.h>.
6098 (PROT_READ): Don't define here.
6099 (PROT_WRITE): Likewise.
6100 (PROT_EXEC): Likewise.
6101 (PROT_NONE): Likewise.
6102 (PROT_GROWSDOWN): Likewise.
6103 (PROT_GROWSUP): Likewise.
6104 (MAP_SHARED): Likewise.
6105 (MAP_PRIVATE): Likewise.
6106 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6107 [__USE_MISC] (MAP_FILE): Likewise.
6108 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6109 [__USE_MISC] (MAP_ANON): Likewise.
6110 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6111 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6112 (MCL_CURRENT): Likewise.
6113 (MCL_FUTURE): Likewise.
6114 (MCL_ONFAULT): Likewise.
6115 [__USE_MISC] (MADV_NORMAL): Likewise.
6116 [__USE_MISC] (MADV_RANDOM): Likewise.
6117 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6118 [__USE_MISC] (MADV_WILLNEED): Likewise.
6119 [__USE_MISC] (MADV_DONTNEED): Likewise.
6120 [__USE_MISC] (MADV_FREE): Likewise.
6121 [__USE_MISC] (MADV_REMOVE): Likewise.
6122 [__USE_MISC] (MADV_DONTFORK): Likewise.
6123 [__USE_MISC] (MADV_DOFORK): Likewise.
6124 [__USE_MISC] (MADV_HWPOISON): Likewise.
6125 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6126 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6127 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6128 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6129 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6130 (__MAP_ANONYMOUS): New macro.
6131 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6132 <bits/mman-linux.h> inclusion.
6133 (MAP_FIXED): Likewise.
6134 (MS_SYNC): Likewise.
6135 (MS_ASYNC): Likewise.
6136 (MS_INVALIDATE): Likewise.
6137 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6138 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6139 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6140 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6141 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6142 [__USE_MISC] (MADV_DODUMP): Likewise.
6143 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6144 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6145
6146 [BZ #23735]
6147 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6148 Define.
6149 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6150 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6151 Add test-nldbl-redirect.
6152 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6153 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6154 $(objpfx)libnldbl_nonshared.a.
6155
6156 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6157
6158 * support/support.h (support_objdir_elf_ldso): New variable.
6159 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6160 * support/Makefile (CFLAGS-support_paths.c): Add definition
6161 for OBJDIR_ELF_LDSO_PATH.
6162 * support/test-container.c (main): Search for the ld.so
6163 which is also used by the testsuite.
6164
6165 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6166
6167 [BZ #20209]
6168 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6169 should be "sap" rather than "sab".
6170 (day): Fix spelling of Sunday, should be "sapaat" rather than
6171 "sabaat".
6172
6173 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6174
6175 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6176
6177 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6178
6179 [BZ #19444]
6180 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6181 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6182 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6183
6184 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6185
6186 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6187
6188 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6189
6190 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6191 Add -mrtm.
6192 (CFLAGS-elision-unlock.c): Likewise.
6193 (CFLAGS-elision-timed.c): Likewise.
6194 (CFLAGS-elision-trylock.c): Likewise.
6195 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6196
6197 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6198
6199 [BZ #21037]
6200 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6201 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6202 new fd_to_filename interface.
6203 * libio/freopen64.c (freopen64): Likewise.
6204 * libio/tst-memstream.h: New file.
6205 * libio/tst-memstream4.c: Likewise.
6206 * libio/tst-wmemstream4.c: Likewise.
6207 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6208 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6209 and remove internal dynamic allocation.
6210
6211 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6212
6213 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6214 (MREMAP_MAYMOVE): Do not define here.
6215 [__USE_GNU] (MREMAP_FIXED): Likewise.
6216 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6217 (MREMAP_MAYMOVE): Define here instead.
6218 [__USE_GNU] (MREMAP_FIXED): Likewise.
6219 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6220 (MREMAP_MAYMOVE): Remove.
6221 [__USE_GNU] (MREMAP_FIXED): Likewise.
6222
6223 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6224
6225 * math/fromfp.h: Do not include <math_private.h>.
6226 * math/s_cacosh_template.c: Likewise.
6227 * math/s_casin_template.c: Likewise.
6228 * math/s_casinh_template.c: Likewise.
6229 * math/s_ccos_template.c: Likewise.
6230 * math/s_cproj_template.c: Likewise.
6231 * math/s_fdim_template.c: Likewise.
6232 * math/s_fmaxmag_template.c: Likewise.
6233 * math/s_fminmag_template.c: Likewise.
6234 * math/s_iseqsig_template.c: Likewise.
6235 * math/s_ldexp_template.c: Likewise.
6236 * math/s_nextdown_template.c: Likewise.
6237 * math/w_log1p_template.c: Likewise.
6238 * math/w_scalbln_template.c: Likewise.
6239 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6240 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6241 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6242 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6243 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6244 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6245 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6246 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6247 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6248 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6249 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6250 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6251 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6252 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6253 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6254 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6255 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6256 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6257 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6258 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6259 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6260 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6261 * sysdeps/ieee754/k_standardf.c: Likewise.
6262 * sysdeps/ieee754/k_standardl.c: Likewise.
6263 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6264 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6265 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6266 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6267 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6268 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6269 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6270 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6271 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6272 * sysdeps/ieee754/s_signgam.c: Likewise.
6273 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6274 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6275 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6276 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6277 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6278 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6279 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6280 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6281 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6282 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6283 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6284 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6285 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6286 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6287 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6288 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6289 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6290 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6291 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6292 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6293 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6294 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6295 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6296 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6297 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6298 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6299 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6300 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6301 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6302 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6303 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6304 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6305 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6306 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6307 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6308 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6309 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6310 <math_private.h>.
6311 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6312
6313 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6314
6315 [BZ #23716]
6316 * sysdeps/i386/dl-cet.c: Removed.
6317 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6318 prototype.
6319 (_dl_runtime_profile_shstk): Likewise.
6320 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6321 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6322
6323 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6324
6325 [BZ #23579]
6326 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6327 do_test_with_invalid_iov): New tests.
6328 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6329 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6330 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6331 errno is ENOSYS.
6332 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6333 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6334 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6335
6336 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6337
6338 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6339 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6340 (MATH_REDIRECT_BINARY_ARGS): New macro.
6341 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6342 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6343 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6344 header inclusion.
6345 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6346 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6347 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6348 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6349 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6350 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6351 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6353 Likewise.
6354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6355 Likewise.
6356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6358 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6359 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6361 Likewise.
6362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6363 Likewise.
6364 * sysdeps/generic/math_private_calls.h
6365 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6366 Do not declare and define as an inline function.
6367 * math/divtc3.c (__divtc3): Use copysign functions instead of
6368 __copysign variants.
6369 * math/multc3.c (__multc3): Likewise.
6370 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6371 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6372 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6373 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6374 Likewise.
6375 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6376 (__ieee754_yn): Likewise.
6377 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6378 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6379 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6380 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6381 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6382 (__sin): Likewise.
6383 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6384 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6385 Likewise.
6386 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6387 Likewise.
6388 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6389 Likewise.
6390 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6391 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6392 Likewise.
6393 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6394 (__ieee754_ynf): Likewise.
6395 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6396 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6397 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6398 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6399 Likewise.
6400 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6401 (__ieee754_ynl): Likewise.
6402 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6403 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6404 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6405 Likewise.
6406 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6407 (__ieee754_ynl): Likewise.
6408 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6409 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6410 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6411 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6412 Likewise.
6413 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6414 (__ieee754_ynl)
6415 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6416 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6417 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6418 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6419 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6420
6421 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6422 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6423 using MATH_REDIRECT.
6424 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6425 header inclusion.
6426 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6427 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6428 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6429 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6430 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6431 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6432 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6434 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6437 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6438 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6439 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6440 (round): Redirect to __round.
6441 (__roundl): Call round instead of __round.
6442 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6443 Remove macro.
6444 [_ARCH_PWR5X] (__roundf): Likewise.
6445 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6446 functions instead of __round variants.
6447 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6448 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6449 Likewise.
6450 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6451 Likewise.
6452 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6453 Likewise.
6454 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6455 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6456 __lroundl.
6457 (__ieee754_expl): Call roundl instead of __roundl.
6458
6459 2018-09-27 Andreas Schwab <schwab@suse.de>
6460
6461 [BZ #23717]
6462 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6463 (do_test): Make st1 static.
6464
6465 2018-09-26 Andreas Schwab <schwab@suse.de>
6466
6467 [BZ #23707]
6468 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6469 * elf/Makefile (tests): Add tst-unwind-ctor.
6470 (modules-names): Add tst-unwind-ctor-lib.
6471 ($(objpfx)tst-unwind-ctor): Depend on
6472 $(objpfx)tst-unwind-ctor-lib.so.
6473
6474 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6475
6476 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6477 file. Most contents moved from ....
6478 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6479 and include <bits/mman-map-flags-generic.h>.
6480 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6481 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6482 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6483 <bits/mman-map-flags-generic.h>.
6484 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6485 macros defined in <bits/mman-map-flags-generic.h>.
6486 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6487 <bits/mman-map-flags-generic.h>.
6488 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6489 defined in <bits/mman-map-flags-generic.h>.
6490
6491 2018-09-26 Andreas Schwab <schwab@suse.de>
6492
6493 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6494 output.
6495
6496 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6497 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6498 Fangrui Song <maskray@google.com>
6499
6500 [BZ #20480]
6501 * config.make.in (have-textrel_ifunc): New define.
6502 * configure.ac: Add check if linker supports textrel relocation with
6503 ifunc.
6504 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6505 tst-ifunc-textrel.
6506 (CFLAGS-tst-ifunc-textrel.c): New rule.
6507 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6508 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6509 * elf/tst-ifunc-textrel.c: New file.
6510
6511 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6512
6513 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6514 <bits/procfs-prregset.h>.
6515 (prgregset_t): Define using __prgregset_t.
6516 (prfpregset_t): Define using __prfpregset_t.
6517 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6518 (sysdep_headers): Add bits/procfs-prregset.h.
6519 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6520 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6521 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6522 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6523
6524 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6525 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6526 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6527 pr_uid and pr_gid.
6528 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6529 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6530 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6531 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6532 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6533 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6534 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6535 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6536 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6537 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6538 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6539 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6540 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6541 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6542 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6543 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6544 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6545 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6546 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6547 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6548 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6549 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6550 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6551 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6552
6553 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6554 AArch64 version. Include <bits/procfs.h>.
6555 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6556 (sysdep_headers): Add bits/procfs.h.
6557 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6558 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6559 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6560 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6561 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6562 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6563 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6564 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6565 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6566 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6567 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6568 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6569 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6570 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6571 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6572 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6573 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6574
6575 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6576
6577 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6578 Use libsupport.
6579
6580 2018-09-25 Arjun Shankar <arjun@redhat.com>
6581
6582 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6583 (__gconv_max_path_elem_len): Likewise.
6584 (__gconv_nmodules): Likewise.
6585 (__gconv_get_path): Likewise.
6586 (path_elem): Move to ...
6587 * iconv/gconv_conf.c: ... here.
6588 (__gconv_get_path): Mark function static.
6589 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6590 * iconv/gconv_open.c: ... here.
6591
6592 2018-09-24 Andreas Schwab <schwab@suse.de>
6593
6594 * scripts/haveversions.awk: New file.
6595 * Makerules ($(common-objpfx)Versions.def)
6596 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6597 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6598 Move rules ...
6599 * Makeconfig ($(common-objpfx)Versions.def)
6600 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6601 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6602 ... here.
6603 ($(common-objpfx)Versions.mk): New rule. Include it.
6604 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6605 Emit error if build-obsolete-nsl = yes.
6606 * manual/install.texi (Configuring and compiling): Describe
6607 --enable-obsolete-nsl as unavaiable after version 2.28.
6608 * INSTALL: Regenerate.
6609
6610 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6611
6612 * NEWS: Add note about new TLE support on powerpc64le.
6613 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6614 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6615 __ununsed1.
6616 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6617 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6618 * sysdeps/powerpc/powerpc32/sysdep.h,
6619 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6620 ABORT_TRANSACTION): Remove macros.
6621 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6622 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6623 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6625 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6626 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6627 usage.
6628 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6629
6630 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6631
6632 [BZ #10425]
6633 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6634 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6635 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6636 which is the same as in it_IT.
6637 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6638 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6639
6640 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6641
6642 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6643 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6644 using MATH_REDIRECT.
6645 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6646 header inclusion.
6647 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6648 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6649 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6650 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6651 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6652 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6657 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6658 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6659 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6660 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6661 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6662 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6663 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6664 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6665 (ceil): Redirect to __ceil.
6666 (floor): Redirect to __floor.
6667 (trunc): Redirect to __trunc.
6668 (__truncl): Call trunc instead of __trunc.
6669 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6670 Remove macro.
6671 [_ARCH_PWR5X] (__truncf): Likewise.
6672 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6673 trunc functions instead of __trunc variants.
6674 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6675 Likewise.
6676 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6677 Likewise.
6678 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6679 Likewise.
6680 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6681 Likewise.
6682
6683 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6684 [__i586__ || __pentium__].
6685 [__i486__]: Handle explicitly.
6686 (HAS_CPUID): Define to 1 if above macros are undefined.
6687 (HAS_I586): Likewise.
6688 (HAS_I686): Likewise.
6689
6690 2018-09-20 Florian Weimer <fweimer@redhat.com>
6691
6692 * misc/tst-gethostid.c: New file.
6693 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6694 (tst-gethostid): Link with -ldl.
6695
6696 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6697
6698 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6699 value from gethostbyname_r.
6700
6701 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6702
6703 * stdlib/tst-setcontext9.c (f1): Rename to...
6704 (f1a): ... this.
6705 (f1b): New function implementing lower half of f1 in alternate stack.
6706
6707 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6708
6709 Fix mktime localtime offset confusion
6710 [BZ #23603]
6711 * include/time.h (__mktime_internal): The localtime offset is now
6712 of type long int instead of time_t. This is the longstanding type
6713 in glibc, and it is more than enough to represent difference
6714 between localtime and gmtime even if it is 32 bits and time_t is
6715 64. Changing it now will let us avoid an unnecessary change when
6716 time_t is widened to 64 bits on 32-bit platforms.
6717 * time/mktime-internal.h (mktime_offset_t): Now long int.
6718
6719 Merge mktime, timegm from upstream Gnulib
6720 [BZ #23603][BZ #16346]
6721 This fixes some obscure problems with integer overflow.
6722 Although it looks scary, it is almost all a byte-for-byte copy
6723 from Gnulib, and the Gnulib code has been tested reasonably well.
6724 * include/intprops.h: New file, copied from Gnulib.
6725 * include/verify.h, time/mktime-internal.h:
6726 New tiny files, simplified from Gnulib.
6727 * time/mktime.c: Copy from Gnulib. This has the following changes:
6728 Do not include config.h if DEBUG_MKTIME is nonzero.
6729 Include stdbool.h, intprops.h, verify.h.
6730 Include string.h only if needed.
6731 Include stdlib.h on MS-Windows.
6732 Include mktime-internal.h.
6733 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6734 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6735 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6736 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6737 simplify later conditionals; default the others to zero. Use
6738 these conditionals to express only the code needed on the current
6739 platform. In uses of these conditionals, explicitly spell out how
6740 _LIBC affects things, so it’s easier to review from a glibc
6741 viewpoint.
6742 (WRAPV): Remove; no longer needed now that we have
6743 systematic overflow checking.
6744 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6745 compartmentalize tzset issues. Move system-dependent tzsettish
6746 code here from mktime.
6747 (verify): Remove; now done by verify.h. All uses changed.
6748 (long_int): Use a more-conservative definition, to avoid
6749 integer overflow.
6750 (SHR): Remove, replacing with ...
6751 (shr): New function, which means we needn’t worry about side
6752 effects in args, and conversion analysis is simpler.
6753 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6754 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6755 (time_t_avg, time_t_add_ok): Remove.
6756 (mktime_min, mktime_max): New constants.
6757 (leapyear, isdst_differ): Use bool for booleans.
6758 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6759 Use long_int, not time_t, for mktime differences.
6760 (long_int_avg): New function, replacing time_t_avg.
6761 INT_ADD_WRAPV replaces time_t_add_ok.
6762 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6763 All uses changed.
6764 (convert_time): New function.
6765 (ranged_convert): Use it.
6766 (__mktime_internal): Last arg now points to mktime_offset_t, not
6767 time_t. All uses changed. This is a no-op on glibc, where
6768 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6769 offset guess. Directly check for integer overflow instead of
6770 using a heuristic that works only 99.9...% of the time.
6771 Access *OFFSET only once, to avoid an unlikely race if the
6772 compiler delays a load and if this cascades into a signed integer
6773 overflow.
6774 (mktime): Move tzsettish code to my_tzset, and move
6775 localtime_offset to within mktime so that it doesn’t
6776 need a separate ifdef.
6777 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6778 instead of localtime.
6779 * time/timegm.c: Copy from Gnulib. This has the following changes:
6780 Include mktime-internal.h.
6781 [!_LIBC]: Include config.h and time.h. Do not include
6782 timegm.h or time_r.h. Make __mktime_internal a macro,
6783 and include mktime-internal.h to get its declaration.
6784 (timegm): Temporary is now mktime_offset_t, not time_t.
6785 This affects only Gnulib.
6786
6787 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6788
6789 [BZ #23637]
6790 * string/test-strstr.c (pr23637): New function.
6791 (test_main): Add tests with longer needles.
6792 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6793 * string/strstr.c (AVAILABLE): Likewise.
6794
6795 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6796
6797 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6798
6799 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6800
6801 * NEWS: Mention pow improvements.
6802 * math/Makefile (type-double-routines): Add e_pow_log_data.
6803 * sysdeps/generic/math_private.h (__exp1): Remove.
6804 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6805 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6806 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6807 contraction.
6808 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6809 (exp_inline): Remove.
6810 (__ieee754_exp): Only single double input is handled.
6811 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6812 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6813 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6814 (__pow_log_data): Define.
6815 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6816 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6817 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6818 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6819 contraction.
6820 (CFLAGS-e_pow-fma4.c): Likewise.
6821
6822 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6823
6824 Simplify tzfile fstat failure code
6825 [BZ #21716]
6826 * time/tzfile.c (__tzfile_read): Simplify slightly.
6827
6828 Fix tzfile low-memory assertion failure
6829 [BZ #21716]
6830 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6831 when registering time zone abbreviations.
6832
6833 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6834
6835 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6836 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6837 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6838 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6839 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6840 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6841 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6842 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6843 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6844
6845 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6846 __ceil.
6847 (__ceill): Call ceil instead of __ceil.
6848 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6849 __floor.
6850 (__floorl): Call floor instead of __floor.
6851
6852 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6853
6854 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6855 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6856 using MATH_REDIRECT.
6857 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6858 header inclusion.
6859 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6860 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6861 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6862 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6863 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6864 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6865 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6866 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6868 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6871 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6872 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6873 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6874 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6875 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6876 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6877 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6878 Remove macro.
6879 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6880 functions instead of __ceil variants.
6881 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6882 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6883 Likewise.
6884 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6885 Likewise.
6886 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6887 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6888 Likewise.
6889 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6890 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6891
6892 [BZ #21286]
6893 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6894 constant.
6895 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6896 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6897 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6898 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6899 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6900 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6901 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6902 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6903 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6904 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6905 (ILL_BADIADDR): Remove constant.
6906 (TRAP_BRANCH): Likewise.
6907 (TRAP_HWBKPT): Likewise.
6908
6909 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6910
6911 [BZ #23656]
6912 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6913 Remove [_MIPS_SIM = _ABIN32] conditional case.
6914 (struct elf_prpsinfo): Likewise.
6915
6916 [BZ #23649]
6917 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6918 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6919 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6920 Likewise.
6921 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6922 elf_prpsinfo): Likewise.
6923 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6924 elf_prpsinfo): Likewise.
6925 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6926 Likewise.
6927
6928 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6929 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6930 using MATH_REDIRECT.
6931 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6932 header inclusion.
6933 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6934 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6935 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6936 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6937 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6939 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6940 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6941 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6942 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6943 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6944 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6945 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6946 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6947 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6948 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6949 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6950 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6951 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6954 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6955 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6956 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6957 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6958 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6959 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6960 __rint variants.
6961 * math/e_scalbf.c (invalid_fn): Likewise.
6962 * math/e_scalbl.c (invalid_fn): Likewise.
6963 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6964 Likewise.
6965 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6966 Likewise.
6967 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6968 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6969 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6970 Likewise.
6971 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6972 Likewise.
6973 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6974 Likewise.
6975 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6976 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6977
6978 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6979 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6980 New macro.
6981 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6982 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6983 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6984 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6985 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6986 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6987 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6988 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6989 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6990 && !NO_MATH_REDIRECT] (floor): Likewise.
6991 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6992 header inclusion.
6993 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6994 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6995 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6996 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6997 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6998 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6999 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7000 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7001 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7005 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7006 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7007 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7008 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7009 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7010 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7011 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7012 Remove macro.
7013 [_ARCH_PWR5X] (__floorf): Likewise.
7014 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7015 inline function.
7016 [__SSE4_1__] (__floorf): Likewise.
7017 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7018 instead of __floor variants.
7019 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7020 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7021 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7022 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7023 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7024 * math/w_tgamma_compat.c (__tgamma): Likewise.
7025 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7026 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7027 * math/w_tgammal_compat.c (__tgammal): Likewise.
7028 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7029 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7030 Likewise.
7031 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7032 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7033 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7034 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7035 Likewise.
7036 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7037 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7038 Likewise.
7039 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7040 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7041 Likewise.
7042 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7043 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7044 Likewise.
7045 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7046 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7047 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7048 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7049 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7050 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7051
7052 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7053
7054 * elf/Makefile (modules-names-tests): New variable.
7055
7056 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7057
7058 * NEWS: Mention log2 improvements.
7059 * math/Makefile (type-double-routines): Add e_log2_data.
7060 * sysdeps/i386/fpu/e_log2_data.c: New file.
7061 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7062 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7063 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7064 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7065 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7066 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7067
7068 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7069
7070 * NEWS: Mention log improvement.
7071 * math/Makefile (type-double-routines): Add e_log_data.
7072 * sysdeps/i386/fpu/e_log_data.c: New file.
7073 * sysdeps/ia64/fpu/e_log_data.c: New file.
7074 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7075 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7076 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7077 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7078 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7079 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7080
7081 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7082 Xuepeng Guo <xuepeng.guo@intel.com>
7083
7084 [BZ #23606]
7085 * sysdeps/i386/start.S: Include <sysdep.h>
7086 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7087 enabled. Add cfi_undefined (eip).
7088
7089 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7090
7091 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7092 (MOVQ): Likewise.
7093 (EXTRACT_WORDS64): Likewise.
7094 (INSERT_WORDS64): Likewise.
7095 (GET_FLOAT_WORD): Likewise.
7096 (SET_FLOAT_WORD): Likewise.
7097
7098 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7099 argument.
7100 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7101 build, but not for second build if --full-gcc. Use
7102 --enable-languages=all for second build if --full-gcc.
7103 (get_parser): Add --full-gcc option.
7104 (main): Update call to Context.
7105
7106 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7107
7108 [BZ #10797]
7109 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7110 Single Quotation Mark).
7111 (thousands_sep): Likewise.
7112 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7113 * localedata/locales/it_IT (thousands_sep): Use ".".
7114 (grouping): Use "3;3".
7115
7116 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7117
7118 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7119 x86_64 and i686 configs using --enable-obsolete-rpc
7120 --enable-obsolete-nsl.
7121
7122 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7123
7124 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7125
7126 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7127
7128 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7129 Increment size of new_argv by one.
7130
7131 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7132
7133 [BZ #17426]
7134 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7135 * localedata/locales/ar_IN (d_fmt): Likewise.
7136 * localedata/locales/bhb_IN (d_fmt): Likewise.
7137 * localedata/locales/bho_IN (d_fmt): Likewise.
7138 * localedata/locales/bn_BD (d_fmt): Likewise.
7139 * localedata/locales/bn_IN (d_fmt): Likewise.
7140 * localedata/locales/doi_IN (d_fmt): Likewise.
7141 * localedata/locales/gu_IN (d_fmt): Likewise.
7142 * localedata/locales/hi_IN (d_fmt): Likewise.
7143 * localedata/locales/hne_IN (d_fmt): Likewise.
7144 * localedata/locales/kn_IN (d_fmt): Likewise.
7145 * localedata/locales/mag_IN (d_fmt): Likewise.
7146 * localedata/locales/mai_IN (d_fmt): Likewise.
7147 * localedata/locales/mjw_IN (d_fmt): Likewise.
7148 * localedata/locales/ml_IN (d_fmt): Likewise.
7149 * localedata/locales/mni_IN (d_fmt): Likewise.
7150 * localedata/locales/mr_IN (d_fmt): Likewise.
7151 * localedata/locales/pa_IN (d_fmt): Likewise.
7152 * localedata/locales/raj_IN (d_fmt): Likewise.
7153 * localedata/locales/sat_IN (d_fmt): Likewise.
7154 * localedata/locales/sd_IN (d_fmt): Likewise.
7155 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7156 * localedata/locales/ta_IN (d_fmt): Likewise.
7157 * localedata/locales/ta_LK (d_fmt): Likewise.
7158 * localedata/locales/tcy_IN (d_fmt): Likewise.
7159 * localedata/locales/ur_IN (d_fmt): Likewise.
7160
7161 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7162 * localedata/locales/ks_IN (d_fmt): Likewise.
7163 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7164
7165 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7166 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7167 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7168 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7169
7170 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7171
7172 * NEWS: Mention exp and exp2 improvements.
7173 * math/Makefile (libm-support): Remove t_exp.
7174 (type-double-routines): Add math_err and e_exp_data.
7175 * sysdeps/aarch64/libm-test-ulps: Update.
7176 * sysdeps/arm/libm-test-ulps: Update.
7177 * sysdeps/i386/fpu/e_exp_data.c: New file.
7178 * sysdeps/i386/fpu/math_err.c: New file.
7179 * sysdeps/i386/fpu/t_exp.c: Remove.
7180 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7181 * sysdeps/ia64/fpu/math_err.c: New file.
7182 * sysdeps/ia64/fpu/t_exp.c: Remove.
7183 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7184 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7185 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7186 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7187 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7188 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7189 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7190 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7191 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7192 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7193 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7194 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7195 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7196 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7197 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7198 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7199
7200 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7201
7202 * sysdeps/alpha/fpu/math_private.h: Remove.
7203
7204 * sysdeps/generic/math_private.h
7205 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7206 Move this inline function ....
7207 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7208 * include/math.h [!_ISOMAC]: To here....
7209
7210 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7211
7212 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7213 code ....
7214 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7215 * include/fenv.h [!_ISOMAC]: ... to here.
7216 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7217 (feraiseexcept): Likewise.
7218 * math/fromfp.h: Do not include <fenv_private.h>.
7219 * math/s_cexp_template.c: Likewise.
7220 * math/s_csin_template.c: Likewise.
7221 * math/s_csinh_template.c: Likewise.
7222 * math/s_ctan_template.c: Likewise.
7223 * math/s_ctanh_template.c: Likewise.
7224 * math/s_iseqsig_template.c: Likewise.
7225 * math/w_acos_compat.c: Likewise.
7226 * math/w_acosf_compat.c: Likewise.
7227 * math/w_acosl_compat.c: Likewise.
7228 * math/w_asin_compat.c: Likewise.
7229 * math/w_asinf_compat.c: Likewise.
7230 * math/w_asinl_compat.c: Likewise.
7231 * math/w_j0_compat.c: Likewise.
7232 * math/w_j0f_compat.c: Likewise.
7233 * math/w_j0l_compat.c: Likewise.
7234 * math/w_j1_compat.c: Likewise.
7235 * math/w_j1f_compat.c: Likewise.
7236 * math/w_j1l_compat.c: Likewise.
7237 * math/w_jn_compat.c: Likewise.
7238 * math/w_jnf_compat.c: Likewise.
7239 * math/w_log10_compat.c: Likewise.
7240 * math/w_log10f_compat.c: Likewise.
7241 * math/w_log10l_compat.c: Likewise.
7242 * math/w_log2_compat.c: Likewise.
7243 * math/w_log2f_compat.c: Likewise.
7244 * math/w_log2l_compat.c: Likewise.
7245 * math/w_log_compat.c: Likewise.
7246 * math/w_logf_compat.c: Likewise.
7247 * math/w_logl_compat.c: Likewise.
7248 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7249 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7250 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7251 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7252 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7253 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7254 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7255 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7256 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7257 * sysdeps/ieee754/k_standardl.c: Likewise.
7258 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7259 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7260 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7261 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7262 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7263 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7264 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7265 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7266 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7267 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7268 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7269 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7270 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7271 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7272 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7273 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7274 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7275 * math/w_ilogb_template.c: Include <fenv.h> instead of
7276 <fenv_private.h>.
7277 * math/w_llogb_template.c: Likewise.
7278 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7279 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7280
7281 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7282
7283 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7284 * math/fromfp.h: Include <fenv_private.h>.
7285 * math/math-narrow.h: Likewise.
7286 * math/s_cexp_template.c: Likewise.
7287 * math/s_csin_template.c: Likewise.
7288 * math/s_csinh_template.c: Likewise.
7289 * math/s_ctan_template.c: Likewise.
7290 * math/s_ctanh_template.c: Likewise.
7291 * math/s_iseqsig_template.c: Likewise.
7292 * math/w_acos_compat.c: Likewise.
7293 * math/w_acosf_compat.c: Likewise.
7294 * math/w_acosl_compat.c: Likewise.
7295 * math/w_asin_compat.c: Likewise.
7296 * math/w_asinf_compat.c: Likewise.
7297 * math/w_asinl_compat.c: Likewise.
7298 * math/w_ilogb_template.c: Likewise.
7299 * math/w_j0_compat.c: Likewise.
7300 * math/w_j0f_compat.c: Likewise.
7301 * math/w_j0l_compat.c: Likewise.
7302 * math/w_j1_compat.c: Likewise.
7303 * math/w_j1f_compat.c: Likewise.
7304 * math/w_j1l_compat.c: Likewise.
7305 * math/w_jn_compat.c: Likewise.
7306 * math/w_jnf_compat.c: Likewise.
7307 * math/w_llogb_template.c: Likewise.
7308 * math/w_log10_compat.c: Likewise.
7309 * math/w_log10f_compat.c: Likewise.
7310 * math/w_log10l_compat.c: Likewise.
7311 * math/w_log2_compat.c: Likewise.
7312 * math/w_log2f_compat.c: Likewise.
7313 * math/w_log2l_compat.c: Likewise.
7314 * math/w_log_compat.c: Likewise.
7315 * math/w_logf_compat.c: Likewise.
7316 * math/w_logl_compat.c: Likewise.
7317 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7318 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7319 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7320 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7321 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7322 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7323 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7324 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7325 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7326 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7327 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7328 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7329 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7330 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7331 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7332 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7333 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7334 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7335 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7336 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7337 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7338 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7339 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7340 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7341 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7342 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7343 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7344 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7345 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7346 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7347 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7348 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7349 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7350 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7351 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7352 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7353 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7354 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7355 * sysdeps/ieee754/k_standardl.c: Likewise.
7356 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7357 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7358 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7359 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7360 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7361 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7362 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7363 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7364 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7365 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7366 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7367 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7368 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7369 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7370 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7371 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7372 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7373 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7374 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7375 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7376 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7377 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7378 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7379 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7380 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7381 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7382 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7383 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7384 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7385 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7386 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7387 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7388 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7389 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7390 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7391 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7392 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7393 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7394 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7395 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7396 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7397 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7398 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7399 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7400 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7401 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7402 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7403 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7404 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7405 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7406 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7407 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7408 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7409 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7410 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7411 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7412 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7413 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7414 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7415 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7416 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7417 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7418 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7419 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7420 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7421 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7422 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7423 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7424 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7425 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7426 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7427
7428 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7429
7430 [BZ #20271]
7431 * include/stdio.h (__libc_fatal): Mention newline in comment.
7432 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7433 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7434 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7435 * nss/nsswitch.c (__nss_next2): Likewise.
7436 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7437 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7438 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7439 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7440 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7441 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7442 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7443 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7444 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7445 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7446 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7447 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7448 (__netlink_assert_response): Likewise.
7449
7450 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7451
7452 * conform/glibcconform.py: New file.
7453 * conform/list-header-symbols.py: Likewise.
7454 * conform/list-header-symbols.pl: Remove.
7455 * conform/Makefile (tests-special): Only add linknamespace tests
7456 if [PYTHON].
7457 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7458
7459 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7460
7461 [BZ #23597]
7462 * support/Makefile (libsupport-routines): Add
7463 support_copy_file_range and xcopy_file_range.
7464 * support/support.h: Include <sys/types.h>.
7465 (support_copy_file_range): New prototype.
7466 * support/support_copy_file_range.c: New file. Copied and
7467 modified from io/copy_file_range-compat.c.
7468 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7469 instead of copy_file_range.
7470 * support/xcopy_file_range.c: New file.
7471 * support/xunistd.h (xcopy_file_range): New prototype.
7472
7473 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7474
7475 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7476 xpthread_create and xpthread_join.
7477
7478 2018-08-30 Florian Weimer <fweimer@redhat.com>
7479
7480 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7481
7482 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7483
7484 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7485 if malloc fails.
7486
7487 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7488
7489 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7490 and minus_oflow as non-finite.
7491
7492 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7493
7494 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7495 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7496 moved to fenv_private.h except for ...
7497 (TOINT_INTRINSICS): Kept in math_private.h.
7498 (roundtoint): Likewise.
7499 (converttoint): Likewise.
7500 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7501 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7502 * sysdeps/arm/math_private.h: Remove.
7503 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7504 ....
7505 * sysdeps/generic/math_private.h: ... this file. Include
7506 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7507 Include <fenv_private.h>. Remove functions and macros moved to
7508 fenv_private.h.
7509 * sysdeps/i386/fpu/math_private.h: Remove.
7510 * sysdeps/mips/math_private.h: Move to ....
7511 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7512 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7513 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7514 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7515 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7516 * sysdeps/powerpc/fpu/math_private.h: Do not include
7517 <fenv_private.h>.
7518 * sysdeps/riscv/rvf/math_private.h: Move to ....
7519 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7520 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7521 <fenv_private.h>.
7522 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7523 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7524 * sysdeps/sparc/fpu/math_private.h: Remove.
7525 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7526 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7527 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7528 <fenv_private.h>.
7529 * sysdeps/x86_64/fpu/math_private.h: Do not include
7530 <sysdeps/i386/fpu/fenv_private.h>.
7531
7532 2018-08-28 Florian Weimer <fweimer@redhat.com>
7533
7534 [BZ #23578]
7535 * posix/tst-regcomp-truncated.c: New file.
7536 * posix/Makefile (tests): Add it.
7537 (tst-regcomp-truncated.out): Depend on generated locales.
7538
7539 2018-08-28 Florian Weimer <fweimer@redhat.com>
7540
7541 * support/test-container.c (main): Treat unshare failure with
7542 EPERM as an unsupported test.
7543
7544 2018-08-28 Florian Weimer <fweimer@redhat.com>
7545
7546 [BZ #23520]
7547 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7548 * nscd/netgroupcache.c
7549 (addgetnetgrentX): Add tofreep parameter. Do not free
7550 heap-allocated buffer.
7551 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7552 (addgetnetgrentX_ignore): New function.
7553 (addgetnetgrent): Call it.
7554 (readdgetnetgrent): Likewise.
7555
7556 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7557
7558 * string/memmem.c: Use memcmp for first match.
7559
7560 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7561
7562 [BZ #17426]
7563 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7564
7565 2018-08-27 DJ Delorie <dj@redhat.com>
7566
7567 * support/Makefile (others): Don't list programs explicitly as a
7568 dependency of "others".
7569
7570 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7571
7572 * sysdeps/generic/math-tests-trap-force.h: New file.
7573 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7574 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7575 * sysdeps/powerpc/math-tests.h: Remove file.
7576 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7577
7578 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7579 Torvald Riegel <triegel@redhat.com>
7580
7581 [BZ #23538]
7582 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7583 Update r to include the set wake-request flag if waiters are
7584 remaining after spinning.
7585
7586 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7587
7588 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7589
7590 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7591
7592 [BZ #23578]
7593 regex: fix uninitialized memory access
7594 I introduced this bug into gnulib in commit
7595 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7596 eventually it was merged into glibc. The bug was found by
7597 project-repo <bugs@feusi.co> and reported here:
7598 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7599 Diagnosis and draft fix reported by Assaf Gordon here:
7600 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7601 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7602 * posix/regex_internal.c (build_wcs_upper_buffer):
7603 Fix bug when mbrtowc returns 0.
7604
7605 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7606
7607 * po/be.po: Update translation.
7608
7609 2018-08-24 DJ Delorie <dj@delorie.com>
7610
7611 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7612 $(libunwind).
7613
7614 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7615
7616 [BZ #23400]
7617 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7618 create temporary files in source tree.
7619
7620 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7621
7622 * sysdeps/generic/math-tests-trap.h: New file.
7623 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7624 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7625 * sysdeps/aarch64/math-tests.h: Remove file.
7626 * sysdeps/arm/math-tests.h: Likewise.
7627 * sysdeps/riscv/math-tests.h: Likewise.
7628 * sysdeps/aarch64/math-tests-trap.h: New file.
7629 * sysdeps/arm/math-tests-trap.h: Likewise.
7630 * sysdeps/riscv/math-tests-trap.h: Likewise.
7631
7632 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7633
7634 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7635 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7636 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7637 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7638 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7639 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7640 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7641 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7642 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7643 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7644 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7645 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7646 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7647 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7648 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7649 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7650 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7651 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7652
7653 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7654
7655 * sysdeps/generic/math-tests-exceptions.h: New file.
7656 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7657 (EXCEPTION_TESTS_float): Do not define here.
7658 (EXCEPTION_TESTS_double): Likewise.
7659 (EXCEPTION_TESTS_long_double): Likewise.
7660 (EXCEPTION_TESTS_float128): Likewise.
7661 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7662 Likewise.
7663 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7664 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7665 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7666 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7667 * sysdeps/mips/math-tests.h: Likewise.
7668 * sysdeps/nios2/math-tests.h: Likewise.
7669 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7670 (EXCEPTION_TESTS_float): Do not define here.
7671 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7672 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7673 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7674
7675 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7676
7677 * NEWS: Move optimized sinf entry to 2.29.
7678
7679 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7680
7681 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7682
7683 2018-08-22 DJ Delorie <dj@redhat.com>
7684
7685 * Makefile (testroot.pristine): New rules to initialize the
7686 test-in-container "testroot".
7687 * Makerules (all-testsuite): Add tests-container.
7688 * Rules (tests-expected): Add tests-container.
7689 (binaries-all-tests): Likewise.
7690 (tests-container): New, run these tests in the testroot container.
7691 * support/Makefile (others): Add *-container, support_paths.c,
7692 xmkdirp, and links-dso-program.
7693 * support/links-dso-program-c.c: New.
7694 * support/links-dso-program.cc: New.
7695 * support/test-container.c: New.
7696 * support/shell-container.c: New.
7697 * support/echo-container.c: New.
7698 * support/true-container.c: New.
7699 * support/xmkdirp.c: New.
7700 * support/xsymlink.c: New.
7701 * support/support_paths.c: New.
7702 * support/support.h: Add support paths prototypes.
7703 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7704
7705 * nss/tst-nss-test3.c: Convert to test-in-container.
7706 * nss/tst-nss-test3.root/: New.
7707
7708 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7709
7710 regex: port Gnulib code to z/OS POSIX environment
7711 Problem reported by Arnold Robbins in:
7712 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7713 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7714 Undef.
7715
7716 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7717
7718 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7719 (ROUNDING_TESTS_double): Remove.
7720 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7721 (ROUNDING_TESTS_double): Remove.
7722 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7723 (ROUNDING_TESTS_double): Remove.
7724 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7725 (ROUNDING_TESTS_float): Remove.
7726 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7727 (ROUNDING_TESTS_float): Remove.
7728 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7729 (ROUNDING_TESTS_float): Remove.
7730 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7731 !TEST_MATHVEC here.
7732 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7733 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7734
7735 * sysdeps/generic/math-tests-rounding.h: New file.
7736 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7737 (ROUNDING_TESTS_float): Do not define here.
7738 (ROUNDING_TESTS_double): Likewise.
7739 (ROUNDING_TESTS_long_double): Likewise.
7740 (ROUNDING_TESTS_float128): Likewise.
7741 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7742 (ROUNDING_TESTS_double): Undefine before defining.
7743 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7744 (ROUNDING_TESTS_double): Undefine before defining.
7745 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7746 (ROUNDING_TESTS_double): Undefine before defining.
7747 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7748 (ROUNDING_TESTS_float): Undefine before defining.
7749 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7750 (ROUNDING_TESTS_float): Undefine before defining.
7751 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7752 (ROUNDING_TESTS_float): Undefine before defining.
7753 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7754 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7755 not define here.
7756 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7757 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7758 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7759 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7760 (ROUNDING_TESTS_float): Do not define here.
7761 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7762 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7763 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7764 (ROUNDING_TESTS_float): Likewise.
7765 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7766 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7767 * sysdeps/mips/math-tests.h [__mips_soft_float]
7768 (ROUNDING_TESTS_float): Likewise.
7769 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7770 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7771 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7772 (ROUNDING_TESTS_double): Likewise.
7773 (ROUNDING_TESTS_long_double): Likewise.
7774
7775 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7776
7777 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7778 (PF_XDP): New macro.
7779 (AF_XDP): New macro.
7780 (SOL_XDP): New macro.
7781
7782 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7783
7784 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7785 (TCP_INQ): Likewise.
7786 (TCP_CM_INQ): Likewise.
7787 (TCP_REPAIR_ON): Likewise.
7788 (TCP_REPAIR_OFF): Likewise.
7789 (TCP_REPAIR_OFF_NO_WP): Likewise.
7790 (struct tcp_zerocopy_receive): New type.
7791
7792 2018-08-21 Florian Weimer <fweimer@redhat.com>
7793
7794 * support/support.h (support_descriptor_supports_holes): Declare.
7795 * support/Makefile (libsupport-routines): Add
7796 support_descriptor_supports_holes.
7797 * support/support_descriptor_supports_holes.c: New file.
7798 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7799 and stop testing if holes are not supported.
7800 * io/test-lfs.c (do_prepare): Likewise.
7801 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7802 Likewise.
7803 * timezone/tst-tzset.c (create_tz_file): Likewise.
7804 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7805 variable.
7806 (do_prepare): Set it.
7807 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7808
7809 2018-08-21 Florian Weimer <fweimer@redhat.com>
7810
7811 [BZ #17248]
7812 * Makeconfig (+cflags): Do not sort (and deduplicate).
7813
7814 2018-08-21 Florian Weimer <fweimer@redhat.com>
7815
7816 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7817 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7818
7819 2018-08-20 Florian Weimer <fweimer@redhat.com>
7820
7821 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7822 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7823
7824 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7825
7826 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7827 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7828 and ssi_arch members.
7829
7830 * elf/elf.c (NT_VMCOREDD): New macro.
7831 (AT_MINSIGSTKSZ): Likewise.
7832
7833 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7834
7835 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7836 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7837 s_cosf-ppc64 and s_cosf-power8.
7838 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7839 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7840 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7841 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7845 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7848 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7849 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7850
7851 2018-08-17 Florian Weimer <fweimer@redhat.com>
7852
7853 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7854
7855 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7856
7857 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7858
7859 2018-08-16 Florian Weimer <fweimer@redhat.com>
7860
7861 * configure.ac: Add --with-nonshared-cflags option.
7862 * config.make.in (extra-nonshared-cflags): Set variable.
7863 * Makeconfig (CFLAGS-.oS): Use it.
7864 * manual/install.texi (Configuring and compiling): Document
7865 --with-nonshared-cflags.
7866 * configure: Regenerate.
7867 * INSTALL: Likewise.
7868
7869 2018-08-16 Florian Weimer <fweimer@redhat.com>
7870
7871 * Makeconfig (ASFLAGS): Always append required assembler flags.
7872
7873 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7874
7875 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7876 (malloc_consolidate): Likewise.
7877
7878 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7879
7880 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7881
7882 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7883
7884 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7885 every strlen call.
7886
7887 * benchtests/bench-strlen.c: Print performance numbers in json.
7888
7889 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7890
7891 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7892 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7893 only for little endian.
7894 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7895 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7896 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7897 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7898 Add check for little endian.
7899 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7900 (__strcmp_power9): Add check for little endian.
7901 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7902 Add check for little endian.
7903 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7904 (__strncmp_power9): Add check for little endian.
7905 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7906 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7907 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7908 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7909 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7910
7911 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7912
7913 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7914 [!STRLEN](STRLEN): Set to __strlen.
7915 * sysdeps/aarch64/multiarch/strlen.c: New file.
7916 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7917 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7918 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7919 (__libc_ifunc_impl_list): Add strlen.
7920 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7921 strlen_generic and strlen_asimd.
7922
7923 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7924
7925 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7926 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7927 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7928
7929 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7930
7931 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7932
7933 2018-08-14 Florian Weimer <fweimer@redhat.com>
7934
7935 [BZ #23519]
7936 * include/stdio.h (__vfxprintf): Declare.
7937 * stdio-common/fxprintf.c (__vfxprintf): New function.
7938 (__fxprintf): Call it.
7939 * misc/err.c (convert_and_print): Remove function.
7940 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7941 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7942 * misc/Makefile (tests): Add tst-warn-wide.
7943 * misc/tst-warn-wide.c: New file.
7944
7945 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7946 Szabolcs Nagy <szabolcs.nagy@arm.com>
7947
7948 * NEWS: Mention sinf, cosf, sincosf.
7949 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7950 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7951 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7952 constants rather than including generic sincosf.h.
7953 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7954 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7955 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7956 (reduced_cos): Remove.
7957 (sinf_poly): New function.
7958 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7959
7960 2018-08-14 Florian Weimer <fweimer@redhat.com>
7961
7962 [BZ #23521]
7963 [BZ #23522]
7964 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7965 processing, bail out if no room, and close the stream before
7966 returning ERANGE.
7967 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7968 (tst-nss-files-alias-leak): Link with libdl.
7969 (tst-nss-files-alias-leak.out): Depend on nss_files.
7970
7971 * nss/tst-nss-files-alias-leak.c: New file.
7972
7973 2018-08-14 Florian Weimer <fweimer@redhat.com>
7974
7975 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7976 server_user, stat_user.
7977
7978 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7979
7980 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7981 version to 4.18.
7982 (io_pgetevents): New syscall.
7983 (rseq): Likewise.
7984
7985 * manual/install.texi (Configuring and compiling): Do not list
7986 tools used for testing pretty printers here.
7987 (Tools for Compilation): List Python, PExpect and GDB here.
7988 Update descriptions of uses of Perl and Python.
7989 * INSTALL: Regenerate.
7990
7991 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7992 version to 4.18.
7993
7994 2018-08-13 Florian Weimer <fweimer@redhat.com>
7995
7996 * misc/error.c (error): Add missing va_end call.
7997 (error_at_line): Likewise.
7998
7999 2018-08-13 Florian Weimer <fweimer@redhat.com>
8000
8001 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8002
8003 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8004
8005 * benchtests/scripts/benchout.schema.json (properties): Add
8006 new properties.
8007
8008 * benchtests/bench-skeleton.c (main): Add duration and
8009 iterations attributes.
8010
8011 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8012
8013 regex: Gnulib unibyte RRI uses bytes not chars
8014 Adjust the non-glibc code to agree with what Gawk needs for
8015 rational range interpretation (RRI) for regular expression ranges.
8016 In unibyte locales, Gawk wants ranges to use the underlying byte
8017 rather than the character code point. This change does not affect
8018 glibc proper.
8019 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8020 In unibyte locales, use the byte value rather than
8021 running it through btowc.
8022
8023 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8024
8025 * sysdeps/generic/math-tests-snan.h: New file.
8026 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8027 (SNAN_TESTS_float): Do not define here.
8028 (SNAN_TESTS_double): Likewise.
8029 (SNAN_TESTS_long_double): Likewise.
8030 (SNAN_TESTS_float128): Likewise.
8031 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8032 * sysdeps/i386/fpu/math-tests.h: Remove file.
8033 * sysdeps/ia64/math-tests-snan.h: New file.
8034 * sysdeps/ia64/math-tests.h: Remove file.
8035 * sysdeps/x86/math-tests.h: Likewise.
8036 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8037
8038 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8039 Szabolcs Nagy <szabolcs.nagy@arm.com>
8040
8041 * math/Makefile: Add s_sincosf_data.c.
8042 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8043 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8044 (sincosf_poly): Likewise.
8045 (reduce_small): Likewise.
8046 (reduce_large): Likewise.
8047 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8048 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8049 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8050 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8051
8052 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8053 Szabolcs Nagy <szabolcs.nagy@arm.com>
8054
8055 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8056 (converttoint): Use lround.
8057 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8058 document the semantics when TOINT_INTRINSICS is set.
8059 (converttoint): Likewise.
8060 (TOINT_RINT): Remove.
8061 (TOINT_SHIFT): Remove.
8062 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8063 path.
8064
8065 2018-08-10 Florian Weimer <fweimer@redhat.com>
8066
8067 [BZ #23497]
8068 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8069 function.
8070 (__old_getdents64): Use getdents64. Convert entries without
8071 moving them.
8072 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8073 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8074 tst-readdir64-compat.
8075
8076 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8077
8078 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8079 Fix unwind.
8080
8081 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8082
8083 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8084 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8085 code to s390x-mcount.h and #include it.
8086 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8087 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8088 (__fentry__): Add.
8089
8090 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8091
8092 * stdlib/Versions: Remove __fentry__.
8093 * sysdeps/i386/Versions: Add __fentry__.
8094 * sysdeps/x86_64/Versions: Add __fentry__.
8095
8096 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8097
8098 * sysdeps/s390/Makefile: Register the new tests.
8099 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8100 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8101 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8102 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8103 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8104 * sysdeps/s390/tst-dl-runtime.c: New file.
8105
8106 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8107
8108 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8109 Do not clobber R0.
8110
8111 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8112
8113 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8114 Do not clobber R0.
8115
8116 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8117
8118 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8119 Do not clobber R0.
8120
8121 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8122
8123 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8124 Do not clobber R0.
8125
8126 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8127
8128 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8129 Use symbolic offsets for stack variables.
8130
8131 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8132
8133 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8134 Use symbolic offsets for stack variables.
8135
8136 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8137
8138 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8139 Use symbolic offsets for stack variables.
8140
8141 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8142
8143 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8144 Use symbolic offsets for stack variables.
8145
8146 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8147
8148 * math/gen-libm-test.py: New file.
8149 * math/gen-libm-test.pl: Remove.
8150 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8151 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8152 gen-libm-test.pl.
8153 ($(libm-test-c-noauto-obj)): Likewise.
8154 ($(libm-test-c-auto-obj)): Likewise.
8155 ($(libm-test-c-narrow-obj)): Likewise.
8156 (regen-ulps): Likewise.
8157 * math/README.libm-test: Update references to gen-libm-test.pl.
8158 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8159 referencing gen-libm-test.pl.
8160 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8161 * math/libm-test-support.c: Likewise.
8162 * math/libm-test-support.h: Likewise.
8163 * sysdeps/generic/libm-test-ulps: Likewise.
8164
8165 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8166
8167 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8168 Fix value.
8169
8170 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8171
8172 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8173 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8174
8175 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8176
8177 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8178 symbols.
8179 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8180 __pthread_setspecific): Add hidden proto.
8181 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8182 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8183
8184 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8185
8186 * benchtests/bench-string.h (buf1_size, buf2_size): New
8187 variables.
8188 (init_sizes): New function.
8189 (test_init): Use it.
8190 (alloc_buf, exit_error): New functions.
8191 (alloc_bufs): Use ALLOC_BUF.
8192 (realloc_bufs): Remove.
8193 * benchtests/bench-memcmp.c (do_test): Adjust.
8194 * benchtests/bench-memset-large.c (do_test): Likewise.
8195 * benchtests/bench-memset-walk.c (do_test): Likewise.
8196 * benchtests/bench-memset.c (do_test): Likewise.
8197 * benchtests/bench-strncmp.c (do_test): Likewise.
8198
8199 2018-08-06 Andreas Schwab <schwab@suse.de>
8200
8201 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8202 of CONST_THREAD_AREA.
8203
8204 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8205
8206 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8207 (STATE_SAVE_MASK): Likewise.
8208 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8209 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8210 (STATE_SAVE_MASK): Likewise.
8211 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8212 instead of <cpu-features.h>.
8213
8214 2018-08-03 DJ Delorie <dj@redhat.com>
8215
8216 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8217 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8218
8219 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8220
8221 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8222
8223 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8224 after TEST_* calls.
8225 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8226 * math/libm-test-logb.inc (logb_test_data): Likewise.
8227
8228 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8229
8230 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8231 * string/strstr.c (AVAILABLE): Likewise.
8232
8233 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8234
8235 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8236 <init-arch.h>.
8237 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8238 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8239 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8240
8241 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8242
8243 * po/be.po: Update translation.
8244
8245 * po/be.po: Update translation.
8246
8247 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8248
8249 * sysdeps/x86/cpu-features-offsets.sym
8250 (rtld_global_ro_offsetof): Removed.
8251 (CPU_FEATURES_SIZE): Likewise.
8252 (CPUID_OFFSET): Likewise.
8253 (CPUID_SIZE): Likewise.
8254 (CPUID_EAX_OFFSET): Likewise.
8255 (CPUID_EBX_OFFSET): Likewise.
8256 (CPUID_ECX_OFFSET): Likewise.
8257 (CPUID_EDX_OFFSET): Likewise.
8258 (FAMILY_OFFSET): Likewise.
8259 (MODEL_OFFSET): Likewise.
8260 (FEATURE_OFFSET): Likewise.
8261 (FEATURE_SIZ): Likewise.
8262 (COMMON_CPUID_INDEX_1): Likewise.
8263 (COMMON_CPUID_INDEX_7): Likewise.
8264 (FEATURE_INDEX_1): Likewise.
8265 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8266
8267 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8268
8269 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8270 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8271 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8272 (install-locales): Depend on install-locale-archive.
8273 (install-locale-archive): Define.
8274 (install-locale-files): Define.
8275 (build-one-locale): Define macro.
8276 * manual/install.texi (Running make install): Document.
8277 * manual/INSTALL: Regenerate.
8278
8279 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8280
8281 * benchtests/scripts/compare_strings.py: Import traceback.
8282 (parse_file): Pretty-print error.
8283
8284 * NEWS: Mention the change.
8285 * elf/dl-tunables.list: Rename tune namespace to cpu.
8286 * sysdeps/powerpc/dl-tunables.list: Likewise.
8287 * sysdeps/x86/dl-tunables.list: Likewise.
8288 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8289 cpu.name.
8290 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8291 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8292 * manual/README.tunables: Likewise.
8293 * manual/tunables.texi: Likewise.
8294 * sysdeps/powerpc/cpu-features.c: Likewise.
8295 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8296 (init_cpu_features): Likewise.
8297 * sysdeps/x86/cpu-features.c: Likewise.
8298 * sysdeps/x86/cpu-features.h: Likewise.
8299 * sysdeps/x86/cpu-tunables.c: Likewise.
8300 * sysdeps/x86_64/Makefile: Likewise.
8301 * sysdeps/x86/dl-cet.c: Likewise.
8302
8303 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8304
8305 [BZ #23479]
8306 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8307 [__mips_hard_float].
8308 (FE_UNDERFLOW): Likewise.
8309 (FE_OVERFLOW): Likewise.
8310 (FE_DIVBYZERO): Likewise.
8311 (FE_INVALID): Likewise.
8312 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8313 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8314 (FE_UPWARD): Likewise.
8315 (FE_DOWNWARD): Likewise.
8316 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8317 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8318 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8319 [__mips_hard_float].
8320 (FP_ROUNDMODE): Likewise.
8321 (FP_RND_NEAREST): Likewise.
8322 (FP_RND_ZERO): Likewise.
8323 (FP_RND_PINF): Likewise.
8324 (FP_RND_MINF): Likewise.
8325 (FP_EX_INVALID): Likewise.
8326 (FP_EX_OVERFLOW): Likewise.
8327 (FP_EX_UNDERFLOW): Likewise.
8328 (FP_EX_DIVZERO): Likewise.
8329 (FP_EX_INEXACT): Likewise.
8330 (FP_INIT_ROUNDMODE): Likewise.
8331 * sysdeps/mips/nofpu/fesetenv.c: New file.
8332 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8333
8334 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8335
8336 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8337 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8338 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8339 conditional on [FE_UPWARD].
8340
8341 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8342
8343 regex: fix memory leak in Gnulib
8344 Problem and fix reported by Assaf Gordon in:
8345 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8346 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8347 range_ends members too, as they are defined in 'struct
8348 re_charset_t' even if not _LIBC. This affects only Gnulib.
8349
8350 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8351
8352 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8353 ...
8354 (get_common_indices): This.
8355 (init_cpu_features): Updated.
8356
8357 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8358
8359 * sysdeps/generic/math-tests-snan-payload.h: New file.
8360 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8361 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8362 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8363 * sysdeps/generic/math-tests.h: Include
8364 <math-tests-snan-payload.h>.
8365 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8366 * sysdeps/hppa/math-tests.h: Remove file.
8367 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8368 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8369 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8370 Likewise.
8371
8372 * sysdeps/generic/math-tests-snan-cast.h: New file.
8373 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8374 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8375 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8376 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8377
8378 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8379
8380 * version.h (RELEASE): Set to "development".
8381 (VERSION): Set to "2.28.9000".
8382 * NEWS (2.29): New section.
8383
8384 * version.h (RELEASE): Set to "stable".
8385 (VERSION): Set to "2.28".
8386 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8387 * NEWS: Add the list of bugs fixed in 2.28.
8388
8389 * po/ca.po: Update to latest version.
8390 * po/cs.po: Likewise
8391 * po/da.po: Likewise
8392 * po/el.po: Likewise
8393 * po/eo.po: Likewise
8394 * po/es.po: Likewise
8395 * po/fi.po: Likewise
8396 * po/fr.po: Likewise
8397 * po/gl.po: Likewise
8398 * po/hu.po: Likewise
8399 * po/ia.po: Likewise
8400 * po/id.po: Likewise
8401 * po/it.po: Likewise
8402 * po/ja.po: Likewise
8403 * po/ko.po: Likewise
8404 * po/lt.po: Likewise
8405 * po/nb.po: Likewise
8406 * po/nl.po: Likewise
8407 * po/pt_BR.po: Likewise
8408 * po/ru.po: Likewise
8409 * po/rw.po: Likewise
8410 * po/sk.po: Likewise
8411 * po/sl.po: Likewise
8412 * po/tr.po: Likewise
8413 * po/zh_CN.po: Likewise
8414 * po/zh_TW.po: Likewise
8415
8416 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8417
8418 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8419 initialization...
8420 (init): ... before initializing libpthread.
8421
8422 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8423 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8424 (__mach_setup_tls): ... new function.
8425 (mach_setup_tls): New alias.
8426 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8427 __mach_setup_thread.
8428 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8429 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8430 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8431 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8432
8433 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8434
8435 * manual/install.texi: Update versions.
8436 * INSTALL: Regenerate.
8437
8438 * manual/contrib.texi (Contributors): Update contributions.
8439
8440 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8441
8442 * po/be.po: Update translations.
8443
8444 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8445
8446 * sysdeps/sh/libm-test-ulps: Update.
8447
8448 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8449
8450 * po/bg.po: Update translations.
8451 * po/de.po: Likewise.
8452 * po/hr.po: Likewise.
8453 * po/pt_BR.po: Likewise.
8454 * po/sv.po: Likewise.
8455 * po/vi.po: Likewise.
8456
8457 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8458
8459 [BZ #23467]
8460 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8461 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8462 (CFLAGS-tst-cet-property-1.o): New.
8463 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8464 ($(objpfx)tst-cet-property-2): Likewise.
8465 ($(objpfx)tst-cet-property-2.out): Likewise.
8466 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8467 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8468 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8469 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8470 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8471
8472 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8473
8474 [BZ #23458]
8475 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8476
8477 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8478
8479 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8480 __sbrk): Do not set attribute_hidden.
8481 * sysdeps/mach/hurd/not-errno.h: New file.
8482 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8483 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8484
8485 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8486
8487 * po/uk.po: Update translations.
8488 * po/cs.po: Likewise.
8489 * po/pl.po: Likewise.
8490
8491 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8492
8493 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8494 parse beyond the note end.
8495
8496 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8497
8498 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8499 kernel does not support OFD locks.
8500 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8501
8502 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8503
8504 * sysdeps/mach/hurd/Versions (libc): Make __access and
8505 __access_noerrno external so they can override the ld symbols.
8506 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8507 __writev, __open64, __access_noerrno extern so they can be overrided.
8508 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8509 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8510
8511 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8512
8513 * po/libc.pot: Regenerate.
8514
8515 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8516
8517 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8518
8519 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8520
8521 [BZ #23459]
8522 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8523 function.
8524 (init_cpu_features): Call get_extended_indices for both Intel
8525 and AMD CPUs.
8526 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8527 Remove "for AMD" comment.
8528
8529 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8530
8531 [BZ # 23456]
8532 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8533 COMMON_CPUID_INDEX_80000001.
8534
8535 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8536
8537 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8538 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8539
8540 2018-07-26 Florian Weimer <fweimer@redhat.com>
8541
8542 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8543 aliases for symbols not in the implementation namespace.
8544
8545 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8546
8547 [BZ #23393]
8548 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8549 lowercase in LATIN script.
8550 * localedata/Makefile (test-input): Add en_US.UTF-8.
8551 * localedata/en_US.UTF-8.in: New file.
8552 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8553 and restore old tests.
8554 * posix/tst-regexloc.c (do_test): Add back range expression test.
8555
8556 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8557
8558 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8559
8560 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8561
8562 * nptl/threads.h: Move to ...
8563 * sysdeps/nptl/threads.h: ... here.
8564 * sysdeps/hurd/stdc-predef.h: New file.
8565
8566 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8569 tst-cet-setcontext-1 if CET is enabled.
8570 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8571 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8572
8573 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8574
8575 * include/threads.h: Move to ...
8576 * sysdeps/nptl/threads.h: ... here.
8577 * sysdeps/htl/threads.h: New file.
8578 * conform/Makefile (linknamespace-libs-ISO11): Use
8579 static-thread-library instead of linking libpthread.
8580 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8581
8582 2018-07-25 Florian Weimer <fweimer@redhat.com>
8583
8584 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8585 nanoseconds into seconds.
8586 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8587 (do_test): Likewise.
8588 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8589 (do_test): Likewise. Avoid nanosecond overflow and spurious
8590 timeouts due to system load.
8591 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8592 (child_wait): Increment it.
8593 (do_test): Wait as long as necessary until all expected threads
8594 have arrived.
8595
8596 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8597 H.J. Lu <hongjiu.lu@intel.com>
8598
8599 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8600 __ssp.
8601 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8602 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8603 (__push___start_context): New.
8604 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8605 <asm/prctl.h>.
8606 (__getcontext): Record the current shadow stack base. Save the
8607 caller's shadow stack pointer and base.
8608 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8609 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8610 (__push___start_context): New prototype.
8611 (__makecontext): Call __push___start_context to allocate a new
8612 shadow stack, push __start_context onto the new stack as well
8613 as the new shadow stack.
8614 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8615 <asm/prctl.h>.
8616 (__setcontext): Restore the target shadow stack.
8617 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8618 <asm/prctl.h>.
8619 (__swapcontext): Record the current shadow stack base. Save
8620 the caller's shadow stack pointer and base. Restore the target
8621 shadow stack.
8622 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8623 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8624 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8625
8626 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8629 tst-setcontext8 and tst-setcontext9.
8630 * stdlib/tst-setcontext6.c: New file.
8631 * stdlib/tst-setcontext7.c: Likewise.
8632 * stdlib/tst-setcontext8.c: Likewise.
8633 * stdlib/tst-setcontext9.c: Likewise.
8634
8635 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8636
8637 * stdlib/Makefile ((tests): Add tst-setcontext5.
8638 * stdlib/tst-setcontext5.c: New file.
8639
8640 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8641
8642 * stdlib/Makefile (tests): Add tst-setcontext4.
8643 * stdlib/tst-setcontext4.c: New file.
8644
8645 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8646
8647 * stdlib/Makefile (tests): Add tst-swapcontext1.
8648 * stdlib/tst-swapcontext1.c: New test.
8649
8650 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8653 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8654 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8655 and tst-cet-legacy-4c.
8656 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8657 and tst-cet-legacy-mod-4.
8658 (CFLAGS-tst-cet-legacy-2.c): New.
8659 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8660 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8661 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8662 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8663 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8664 ($(objpfx)tst-cet-legacy-1): Likewise.
8665 ($(objpfx)tst-cet-legacy-2): Likewise.
8666 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8667 ($(objpfx)tst-cet-legacy-2a): Likewise.
8668 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8669 ($(objpfx)tst-cet-legacy-4): Likewise.
8670 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8671 ($(objpfx)tst-cet-legacy-4a): Likewise.
8672 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8673 (tst-cet-legacy-4a-ENV): Likewise.
8674 ($(objpfx)tst-cet-legacy-4b): Likewise.
8675 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8676 (tst-cet-legacy-4b-ENV): Likewise.
8677 ($(objpfx)tst-cet-legacy-4c): Likewise.
8678 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8679 (tst-cet-legacy-4c-ENV): Likewise.
8680 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8681 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8682 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8683 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8684 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8685 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8686 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8687 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8688 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8689 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8690 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8691
8692 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8693
8694 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8695 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8696 with ssp_base.
8697 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8698 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8699 with ssp_base.
8700
8701 2018-07-25 Andreas Schwab <schwab@suse.de>
8702
8703 [BZ #23442]
8704 * locale/weightwc.h (findidx): Handle the case where usrc is a
8705 prefix of cp but one character too short.
8706
8707 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8708
8709 * NEWS: Add ISO C threads addition.
8710
8711 2018-07-24 Florian Weimer <fweimer@redhat.com>
8712
8713 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8714 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8715 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8716 4.13.
8717
8718 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8721 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8722 <sys/prctl.h> and <asm/prctl.h>.
8723 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8724 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8725 and <asm/prctl.h>.
8726 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8727 ARCH_CET_LEGACY_BITMAP.
8728 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8729 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8730 * sysdeps/x86/libc-start.c: Include <startup.h>.
8731
8732 2018-07-24 Florian Weimer <fweimer@redhat.com>
8733
8734 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8735 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8736
8737 2018-07-24 Rical Jasan <rj@2c3t.io>
8738 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8739 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8740
8741 [BZ #14092]
8742 * manual/debug.texi: Update adjacent chapter name.
8743 * manual/probes.texi: Likewise.
8744 * manual/threads.texi (ISO C Threads): New section.
8745 (POSIX Threads): Convert to a section.
8746
8747 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8748 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8749
8750 [BZ# 14092]
8751 * nptl/Makefile (tests): Add new test files.
8752 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8753 * nptl/tst-cnd-basic.c: Likewise.
8754 * nptl/tst-cnd-broadcast.c: Likewise.
8755 * nptl/tst-cnd-timedwait.c: Likewise.
8756 * nptl/tst-mtx-basic.c: Likewise.
8757 * nptl/tst-mtx-recursive.c: Likewise.
8758 * nptl/tst-mtx-timedlock.c: Likewise.
8759 * nptl/tst-mtx-trylock.c: Likewise.
8760 * nptl/tst-thrd-basic.c: Likewise.
8761 * nptl/tst-thrd-detach.c: Likewise.
8762 * nptl/tst-thrd-sleep.c: Likewise.
8763 * nptl/tst-tss-basic.c: Likewise.
8764
8765 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8766
8767 [BZ #14092]
8768 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8769 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8770 symbols.
8771 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8772 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8773 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8774 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8775 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8776 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8777 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8778 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8779 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8780 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8781 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8782 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8784 Likewise.
8785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8786 Likewise.
8787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8788 Likewise.
8789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8790 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8791 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8794 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8795 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8796 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8797 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8798 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8799 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8800 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8801 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8802 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8803 Likewise.
8804 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8808 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8809 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8810 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8811 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8812 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8813 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8814 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8815 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8816 ikewise.
8817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8819 Likewise.
8820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8821 Likewise.
8822 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8823 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8824 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8825 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8826 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8827 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8828 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8829 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8830
8831 [BZ #14092]
8832 * conform/data/threads.h-data (thread_local): New macro.
8833 (TSS_DTOR_ITERATIONS): Likewise.
8834 (tss_t): New type.
8835 (tss_dtor_t): Likewise.
8836 (tss_create): New function.
8837 (tss_get): Likewise.
8838 (tss_set): Likewise.
8839 (tss_delete): Likewise.
8840 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8841 tss_get, and tss_set objects.
8842 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8843 * nptl/tss_create.c: New file.
8844 * nptl/tss_delete.c: Likewise.
8845 * nptl/tss_get.c: Likewise.
8846 * nptl/tss_set.c: Likewise.
8847 * sysdeps/nptl/threads.h (thread_local): New define.
8848 (TSS_DTOR_ITERATIONS): Likewise.
8849 (tss_t): New typedef.
8850 (tss_dtor_t): Likewise.
8851 (tss_create): New prototype.
8852 (tss_get): Likewise.
8853 (tss_set): Likewise.
8854 (tss_delete): Likewise.
8855
8856 [BZ #14092]
8857 * conform/data/threads.h-data (cnd_t): New type.
8858 (cnd_init): New function.
8859 (cnd_signal): Likewise.
8860 (cnd_broadcast): Likewise.
8861 (cnd_wait): Likewise.
8862 (cnd_timedwait): Likewise.
8863 (cnd_destroy): Likewise.
8864 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8865 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8866 object.
8867 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8868 * nptl/cnd_broadcast.c: New file.
8869 * nptl/cnd_destroy.c: Likewise.
8870 * nptl/cnd_init.c: Likewise.
8871 * nptl/cnd_signal.c: Likewise.
8872 * nptl/cnd_timedwait.c: Likewise.
8873 * nptl/cnd_wait.c: Likewise.
8874 * sysdeps/nptl/threads.h (cnd_t): New type.
8875 (cnd_init): New prototype.
8876 (cnd_signa): Likewise.
8877 (cnd_broadcast): Likewise.
8878 (cnd_wait): Likewise.
8879 (cnd_timedwait): Likewise.
8880 (cnd_destroy): Likewise.
8881
8882 [BZ #14092]
8883 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8884 (once_flag): New type.
8885 (call_once): New function.
8886 * nptl/Makefile (libpthread-routines): Add call_once object.
8887 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8888 * nptl/call_once.c: New file.
8889 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8890 (once_flag): New type.
8891 (call_once): New prototype.
8892
8893 [BZ #14092]
8894 * conform/data/threads.h-data (mtx_plain): New constant.
8895 (mtx_recursive): Likewise.
8896 (mtx_timed): Likewise.
8897 (mtx_t): New type.
8898 (mtx_init): New function.
8899 (mtx_lock): Likewise.
8900 (mtx_timedlock): Likewise.
8901 (mtx_trylock): Likewise.
8902 (mtx_unlock): Likewise.
8903 (mtx_destroy): Likewise.
8904 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8905 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8906 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8907 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8908 * nptl/mtx_destroy.c: New file.
8909 * nptl/mtx_init.c: Likewise.
8910 * nptl/mtx_lock.c: Likewise.
8911 * nptl/mtx_timedlock.c: Likewise.
8912 * nptl/mtx_trylock.c: Likewise.
8913 * nptl/mtx_unlock.c: Likewise.
8914 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8915 (mtx_recursive): Likewise.
8916 (mtx_timed): Likewise.
8917 (mtx_t): New type.
8918 (mtx_init): New prototype.
8919 (mtx_lock): Likewise.
8920 (mtx_timedlock): Likewise.
8921 (mtx_trylock): Likewise.
8922 (mtx_unlock): Likewise.
8923 (mtx_destroy): Likewise.
8924
8925 [BZ #14092]
8926 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8927 (linknamespace-libs-ISO11): Add libpthread.a.
8928 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8929 functions.
8930 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8931 * nptl/Makefile (headers): Add threads.h.
8932 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8933 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8934 thrd_yield.
8935 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8936 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8937 thrd_join, thrd_sleep, and thrd_yield symbols.
8938 * nptl/descr.h (struct pthread): Add c11 field.
8939 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8940 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8941 routine with expected function prototype.
8942 (__pthread_create_2_1): Add C11 threads check based on attribute
8943 value.
8944 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8945 * nptl/thrd_create.c: New file.
8946 * nptl/thrd_current.c: Likewise.
8947 * nptl/thrd_detach.c: Likewise.
8948 * nptl/thrd_equal.c: Likewise.
8949 * nptl/thrd_exit.c: Likewise.
8950 * nptl/thrd_join.c: Likewise.
8951 * nptl/thrd_priv.h: Likewise.
8952 * nptl/thrd_sleep.c: Likewise.
8953 * nptl/thrd_yield.c: Likewise.
8954 * include/threads.h: Likewise.
8955
8956 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8957
8958 * bits/indirect-return.h: New file.
8959 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8960 * sysdeps/x86/bits/indirect-return.h: Likewise.
8961 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8962 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8963 (swapcontext): Add __INDIRECT_RETURN.
8964 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8965 (prepare_test_buffer): Use it.
8966
8967 2018-07-24 Andreas Schwab <schwab@suse.de>
8968
8969 [BZ #23448]
8970 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8971 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8972
8973 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8974
8975 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8976 Redefine if shadow stack is enabled.
8977 (SYSCALL_ERROR_LABEL): Likewise.
8978 (__vfork): Pop shadow stack and jump back to to caller directly
8979 when shadow stack is in use.
8980 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8981 Redefine if shadow stack is enabled.
8982 (SYSCALL_ERROR_LABEL): Likewise.
8983 (__vfork): Pop shadow stack and jump back to to caller directly
8984 when shadow stack is in use.
8985
8986 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8987
8988 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8989 enabled.
8990 (foo): Likewise.
8991 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8992 (foo): Likewise.
8993
8994 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8995
8996 * scripts/build-many-glibcs.py (Context.checkout): Default
8997 binutils version to 2.31 branch.
8998
8999 2018-07-20 Zong Li <zong@andestech.com>
9000
9001 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9002 URL of gcc's tarball.
9003
9004 2018-07-20 Florian Weimer <fweimer@redhat.com>
9005
9006 [BZ #23396]
9007 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9008 not compare an extra byte after the end of the weights.
9009
9010 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9011
9012 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9013 to 1.
9014 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9015 hidden prototypes.
9016 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9017 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9018 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9019 list of libraries whose stack executability is expected.
9020 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9021 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9022 variable.
9023 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9024 libc.so libpthread.so.
9025
9026 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9027
9028 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9029 SOCK_NONBLOCK.
9030 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9031 and SOCK_NONBLOCK.
9032 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9033 implement __pipe2.
9034 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9035
9036 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9037
9038 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9039 library to improve command line parsing.
9040 (__main__): make schema file as optional parameter (--schema),
9041 defaulting to benchtests/scripts/benchout.schema.json.
9042 (main): move out of the parsing stuff to __main_  and leave it
9043 only as caller of main comparison functions.
9044
9045 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 * NEWS: Add a note for Intel CET status.
9048 * manual/install.texi: Likewise.
9049 * INSTALL: Regenerated.
9050
9051 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9052
9053 [BZ #23140]
9054 * localedata/locales/oc_FR (mon): Rename to...
9055 (alt_mon): This, then update October (typo fix).
9056 (mon): New content (genitive case, month names preceded by
9057 "de" or "d’").
9058
9059 [BZ #23422]
9060 * localedata/locales/oc_FR (abday): Update all items.
9061 (day): Update Wednesday and Saturday (typo fixes).
9062 (abmon): Update all items, except May.
9063 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9064 (LC_IDENTIFICATION): Bump the revision number and date.
9065 Keep the "category" entries in alphabetic order.
9066 (LC_ADDRESS): Remove no longer needed comment.
9067 (LC_COLLATE): Use “copy "ca_ES"”.
9068 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9069 "name_mrs".
9070
9071 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9072
9073 * grp/tst_fgetgrent.c: Include <unistd.h>.
9074 (main): Use mkstemp instead of tmpnam.
9075 * io/test-utime.c (main): Likewise.
9076 * posix/annexc.c (macrofile): Change to modifiable array.
9077 (main): Remove macrofile here.
9078 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9079 macrofile here.
9080 (check_header): Do not remove macrofile here.
9081 * posix/bug-getopt1.c: Include <stdlib.h>.
9082 (do_test): Use mkstemp instead of tmpnam.
9083 * posix/bug-getopt2.c: Include <stdlib.h>.
9084 (do_test): Use mkstemp instead of tmpnam.
9085 * posix/bug-getopt3.c: Include <stdlib.h>.
9086 (do_test): Use mkstemp instead of tmpnam.
9087 * posix/bug-getopt4.c: Include <stdlib.h>.
9088 (do_test): Use mkstemp instead of tmpnam.
9089 * posix/bug-getopt5.c: Include <stdlib.h>.
9090 (do_test): Use mkstemp instead of tmpnam.
9091 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9092 (main): Use mkstemp instead of tmpnam.
9093 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9094 (main): Use mkstemp instead of tmpnam.
9095 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9096 (main): use mkstemp instead of tmpnam.
9097 * stdlib/isomac.c (macrofile): Change to modifiable array.
9098 (main): Remove macrofile here.
9099 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9100 macrofile here.
9101 (check_header): Do not remove macrofile here.
9102
9103 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9104
9105 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9106 glibc.tune.x86_shstk.
9107
9108 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9109
9110 * NEWS: Mention --enable-cet.
9111 * manual/install.texi: Document --enable-cet.
9112 * INSTALL: Regenerated.
9113
9114 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9117 Add _CET_NOTRACK before indirect jump to jump table.
9118
9119 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9120
9121 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9122 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9123 to jump table.
9124
9125 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9126
9127 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9128 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9129 to jump table.
9130
9131 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9132
9133 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9134 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9135 to jump table.
9136
9137 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9138
9139 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9140 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9141 to jump table.
9142
9143 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9144
9145 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9146 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9147 to jump table.
9148 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9149
9150 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9151
9152 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9153 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9154 to jump table.
9155
9156 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9157
9158 * sysdeps/i386/i686/multiarch/memset-sse2.S
9159 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9160 to jump table.
9161
9162 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9163
9164 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9165 indirect jump to jump table.
9166
9167 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9168
9169 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9170 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9171 to jump table.
9172 (MEMCPY): Likewise.
9173
9174 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9177 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9178 to jump table.
9179 (MEMCPY): Likewise.
9180
9181 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9182
9183 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9184 _CET_NOTRACK before indirect jump to jump table.
9185
9186 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9187
9188 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9189 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9190 to jump table.
9191
9192 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9193
9194 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9195 indirect jump to jump table.
9196
9197 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9198
9199 [BZ #22241]
9200 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9201 (LOCALES): Likewise.
9202 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9203 * localedata/locales/sah_RU: New file.
9204 * localedata/sah_RU.UTF-8.in: New file.
9205
9206 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9207
9208 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9209 "sysdep.h".
9210 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9211 _CET_ENDBR to indirect jump targets and adjust jump destination
9212 for _CET_ENDBR.
9213 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9214 "sysdep.h".
9215 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9216 _CET_ENDBR to indirect jump targets and adjust jump destination
9217 for _CET_ENDBR.
9218 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9219 "sysdep.h".
9220 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9221 _CET_ENDBR to indirect jump targets and adjust jump destination
9222 for _CET_ENDBR.
9223
9224 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9225
9226 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9227 _CET_ENDBR.
9228
9229 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9230
9231 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9232 _CET_ENDBR.
9233 (_dl_tlsdesc_undefweak): Likewise.
9234 (_dl_tlsdesc_dynamic): Likewise.
9235 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9236 (_dl_tlsdesc_resolve_rel): Likewise.
9237 (_dl_tlsdesc_resolve_rela): Likewise.
9238 (_dl_tlsdesc_resolve_hold): Likewise.
9239 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9240 (_dl_tlsdesc_undefweak): Likewise.
9241 (_dl_tlsdesc_dynamic): Likewise.
9242 (_dl_tlsdesc_resolve_rela): Likewise.
9243 (_dl_tlsdesc_resolve_hold): Likewise.
9244
9245 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9246
9247 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9248 (_fini): Likewise.
9249 * sysdeps/x86_64/crti.S (_init): Likewise.
9250 (_fini): Likewise.
9251
9252 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9253
9254 [BZ #23140]
9255 * localedata/locales/os_RU (mon): Rename to...
9256 (alt_mon): This.
9257 (mon): Import from CLDR (genitive case).
9258
9259 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9260
9261 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9262 cet-tunables.h> when CET is enabled.
9263
9264 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9265
9266 [BZ #21598]
9267 * configure.ac: Add --enable-cet.
9268 * configure: Regenerated.
9269 * elf/Makefille (all-built-dso): Add a comment.
9270 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9271 Include <dl-prop.h>.
9272 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9273 segment.
9274 * elf/dl-open.c: Include <dl-prop.h>.
9275 (dl_open_worker): Call _dl_open_check.
9276 * elf/rtld.c: Include <dl-prop.h>.
9277 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9278 _rtld_main_check.
9279 * sysdeps/generic/dl-prop.h: New file.
9280 * sysdeps/i386/dl-cet.c: Likewise.
9281 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9282 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9283 * sysdeps/x86/cet-tunables.h: Likewise.
9284 * sysdeps/x86/check-cet.awk: Likewise.
9285 * sysdeps/x86/configure: Likewise.
9286 * sysdeps/x86/configure.ac: Likewise.
9287 * sysdeps/x86/dl-cet.c: Likewise.
9288 * sysdeps/x86/dl-procruntime.c: Likewise.
9289 * sysdeps/x86/dl-prop.h: Likewise.
9290 * sysdeps/x86/libc-start.h: Likewise.
9291 * sysdeps/x86/link_map.h: Likewise.
9292 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9293 _CET_ENDBR.
9294 (_dl_runtime_profile): Likewise.
9295 (_dl_runtime_resolve_shstk): New.
9296 (_dl_runtime_profile_shstk): Likewise.
9297 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9298 if CET is enabled.
9299 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9300 (CFLAGS-.os): Likewise.
9301 (CFLAGS-.op): Likewise.
9302 (CFLAGS-.oS): Likewise.
9303 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9304 is enabled.
9305 (tests-special): Add $(objpfx)check-cet.out.
9306 (cet-built-dso): New.
9307 (+$(cet-built-dso:=.note)): Likewise.
9308 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9309 ($(objpfx)check-cet.out): New.
9310 (generated): Add check-cet.out.
9311 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9312 <cet-tunables.h>.
9313 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9314 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9315 (init_cpu_features): Call get_cet_status to check CET status
9316 and update dl_x86_feature_1 with CET status. Call
9317 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9318 (set_x86_shstk). Disable and lock CET in libc.a.
9319 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9320 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9321 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9322 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9323 (_CET_ENDBR): Define if not defined.
9324 (ENTRY): Add _CET_ENDBR.
9325 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9326 x86_shstk.
9327 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9328 _CET_ENDBR.
9329 (_dl_runtime_profile): Likewise.
9330
9331 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9332
9333 [BZ #21895]
9334 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9335 restore r2 on longjmp.
9336 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9337 test list.
9338 Added rules to build test tst-setjmp-bug21895-static.
9339 Added module setjmp-bug21895 and rules to build a shared object from it.
9340 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9341 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9342
9343 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9344
9345 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9346 * benchtests/bench-strstr.c: Likewise.
9347 * string/memmem.c (FASTSEARCH): Define.
9348 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9349 Add support for FASTSEARCH.
9350 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9351 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9352 (FASTSEARCH): Define.
9353 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9354 * string/test-strstr.c: Likewise.
9355
9356 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9357
9358 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9359 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9360
9361 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9362 H.J. Lu <hongjiu.lu@intel.com>
9363
9364 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9365 (__longjmp): Restore shadow stack pointer if shadow stack is
9366 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9367 isn't defined for __longjmp_cancel.
9368 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9369 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9370 and SHADOW_STACK_POINTER_OFFSET is defined.
9371 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9372 (setjmp): Save shadow stack pointer if shadow stack is enabled
9373 and SHADOW_STACK_POINTER_OFFSET is defined.
9374 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9375 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9376 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9377 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9378 <jmp_buf-ssp.h>.
9379 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9380 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9381 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9382 Remove jmp_buf-ssp.sym.
9383 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9384 <jmp_buf-ssp.h>.
9385 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9386 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9387 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9388 jmp_buf-ssp.sym.
9389 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9390 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9391 (__longjmp): Restore shadow stack pointer if shadow stack is
9392 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9393 isn't defined for __longjmp_cancel.
9394 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9395 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9396 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9397
9398 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9399
9400 [BZ #22563]
9401 * nptl/pthread_create.c: Include <tls-setup.h>.
9402 (__pthread_create_2_1): Call tls_setup_tcbhead.
9403 * sysdeps/generic/tls-setup.h: New file.
9404 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9405 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9406 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9407 Likewise.
9408 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9409 to feature_1.
9410 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9411 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9412 (X86_FEATURE_1_SHSTK): Likewise.
9413 (CET_ENABLED): Likewise.
9414 (IBT_ENABLED): Likewise.
9415 (SHSTK_ENABLED): Likewise.
9416
9417 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9418
9419 [BZ #23208]
9420 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9421 (LOCALES): Likewise.
9422 * localedata/dsb_DE.UTF-8.in: New file.
9423 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9424
9425 2018-07-12 Florian Weimer <fweimer@redhat.com>
9426
9427 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9428 __mprotect, not mprotect.
9429
9430 2018-07-11 Florian Weimer <fweimer@redhat.com>
9431
9432 * io/Makefile (headers): Add bits/statx.h.
9433
9434 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9435
9436 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9437 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9438 and headers.
9439 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9440 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9441 for utf8_gen.py
9442
9443 2018-07-10 Florian Weimer <fweimer@redhat.com>
9444
9445 * io/Makefile (routines): Add statx.
9446 (tests-internal): Add tst-statx.
9447 * io/Versions (GLIBC_2.28): Export statx.
9448 * io/bits/statx.h: New file.
9449 * io/sys/stat.h [__USE_GNU]: Include it.
9450 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9451 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9452 Define.
9453 * io/statx.c: New file.
9454 * io/statx_generic.: Likewise.
9455 * io/tst-statx.: Likewise.
9456 * include/bits/statx.h: Likewise.
9457 * sysdeps/unix/sysv/linux/kernel-features.h
9458 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9459 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9460 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9461 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9462 Undefine.
9463 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9464 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9465 * sysdeps/unix/sysv/linux/statx.c: New file.
9466 * manual/filesys.texi: Note that statx is undocumented.
9467 * sysdeps/**/libc*.abilist: Update.
9468
9469 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9470
9471 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9472 a kernel issue which lead to test failure in some cases.
9473
9474 2018-07-10 Florian Weimer <fweimer@redhat.com>
9475
9476 [BZ #23036]
9477 * posix/regexec.c (check_node_accept_bytes): When comparing
9478 weights, do not compare an extra byte after the end of the
9479 weights.
9480
9481 2018-07-10 Florian Weimer <fweimer@redhat.com>
9482
9483 * libio/readline.c: Fix copyright year.
9484 * libio/tst-readline.c Likewise.
9485 * nss/tst-nss-files-hosts-getent.c: Likewise.
9486
9487 2018-07-06 Florian Weimer <fweimer@redhat.com>
9488
9489 [BZ #18991]
9490 * nss/nss_files/files-XXX.c (internal_getent): Use
9491 __libc_readline_unlocked. Seek back to the start of the line if
9492 parsing failes with ERANGE.
9493 (get_contents_ret, get_contents): Remove.
9494 * nss/tst-nss-files-hosts-getent.c: New file.
9495 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9496 (tst-nss-files-hosts-getent): Link with -ldl.
9497
9498 2018-07-06 Florian Weimer <fweimer@redhat.com>
9499
9500 * include/stdio.h (__libc_readline_unlocked): Declare.
9501 (__ftello64, __fseeko64): Declare aliases.
9502 * libio/readline.c: New file.
9503 * libio/tst-readline.c: Likewise.
9504 (routines): Add readline.
9505 (tests-internal): Add tst-readlime.
9506 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9507 __libc_readline_unlocked.
9508 * libio/fseeko.c (__fseeko): Rename from fseeko.
9509 (fseeko): Add alias.
9510 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9511 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9512 (fseeko64): Add alias.
9513 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9514 * libio/ftello64.c (__ftello64): Rename from ftello64.
9515 (ftello64): Add alias.
9516
9517 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9518
9519 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9520 HWCAP_ATOMICS.
9521
9522 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9523
9524 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9525 Use dl_hwcap without masking.
9526 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9527 Remove HWCAP_CPUID.
9528
9529 2018-07-06 Florian Weimer <fweimer@redhat.com>
9530
9531 * conform/conformtest.pl (checknamespace): Escape literal braces
9532 in regular expressions.
9533
9534 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9535
9536 * sysdeps/x86/cpu-features.c (get_common_indeces):
9537 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9538 * sysdeps/x86/cpu-features.c (init_cpu_features):
9539 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9540
9541 2018-07-05 Florian Weimer <fweimer@redhat.com>
9542
9543 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9544 protector.
9545 (CFLAGS-elf-init.oS): Likewise.
9546
9547 2018-07-05 Florian Weimer <fweimer@redhat.com>
9548 Carlos O'Donell <carlos@redhat.com>
9549
9550 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9551 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9552 with stack protector enabled because there is no risk of infinite
9553 recursion.
9554
9555 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9556
9557 [BZ #19818]
9558 [BZ #23307]
9559 * libc-abis (ABSOLUTE): New ABI.
9560 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9561 * NEWS: Mention the new ABI.
9562
9563 2018-07-05 Florian Weimer <fweimer@redhat.com>
9564
9565 [BZ # 17662]
9566 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9567 (RENAME_WHITEOUT): Define.
9568 [__USE_GNU] (renameat2): Declare.
9569 * stdio-common/Makefile (routines): Add renameat2.
9570 (tests): Add tst-renameat2.
9571 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9572 * stdio-common/renameat2.c: New file.
9573 * stdio-common/tst-renameat2.c: Likewise.
9574 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9575 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9576 undocumented.
9577 * sysdeps/unix/sysv/linux/kernel-features.h
9578 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9579 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9580 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9581 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9582 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9583 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9584 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9585 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9586 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9587 * include/stdio.h (__renameat): Add alias for renameat.
9588 * stdio-common/renameat.c (__renameat): Rename from renameat.
9589 Add hidden definition and alias.
9590 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9591 * sysdeps/mach/hurd/renameat.c: Likewise.
9592 * sysdeps/**/libc*.abilist: Add renameat2.
9593
9594 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9595
9596 * posix/bug-regex33.c: Fix build after regex sync.
9597
9598 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9599
9600 [BZ #23164]
9601 * localedata/tst-langinfo-setlocale.c: New file.
9602 * localedata/tst-langinfo-setlocale-static.c: New file.
9603 * localedata/tst-langinfo-newlocale.c: New file.
9604 * localedata/tst-langinfo-newlocale-static.c: New file.
9605 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9606 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9607 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9608 (tests-static): Remove tst-langinfo-static. Add
9609 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9610 (tests-special): Remove $(objpfx)tst-langinfo.out,
9611 $(objpfx)tst-langinfo-static.out. Add
9612 $(objpfx)tst-langinfo-setlocale.out,
9613 $(objpfx)tst-langinfo-newlocale.out,
9614 $(objpfx)tst-langinfo-setlocale-static.out,
9615 $(objpfx)tst-langinfo-newlocale-static.out.
9616 ($(objpfx)tst-langinfo.out): Remove.
9617 ($(objpfx)tst-langinfo-static.out): Remove.
9618 ($(objpfx)tst-langinfo-newlocale.out): New target.
9619 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9620 (test-xfail-tst-langinfo-newlocale-static): Add.
9621 ($(objpfx)tst-langinfo-setlocale.out): New target.
9622 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9623 * localedata/tst-langinfo.c: Call test_locale.
9624 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9625 data.
9626
9627 2018-07-04 Florian Weimer <fweimer@redhat.com>
9628
9629 testrun.sh: Implement --tool=strace, --tool=valgrind
9630 * Makefile (testrun-script): Define variable.
9631 (testrun.sh): Use variable.
9632 * manual/install.texi (Tools for Compilation): make 4.0 or later
9633 is required.
9634 * configure.ac: Check for make 4.0 or later.
9635 * INSTALL: Regenerate.
9636 * configure: Likewise.
9637
9638 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9639
9640 [BZ #23233]
9641 [BZ #21163]
9642 [BZ #18986]
9643 [BZ #13762]
9644 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9645 * posix/PCRE.tests: Remove invalid test.
9646 * posix/bug-regex28.c: Fix expected values for used syntax.
9647 * posix/bug-regex37.c: New file.
9648 * posix/bug-regex38.c: Likewise.
9649 * posix/regcomp.c: Sync with gnulib.
9650 * posix/regex.c: Likewise.
9651 * posix/regex.h: Likewise.
9652 * posix/regex_internal.c: Likewise.
9653 * posix/regex_internal.h: Likewise.
9654 * posix/regexec.c: Likewise.
9655
9656 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9657
9658 [BZ #23308]
9659 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9660 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9661 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9662 * localedata/unicode-gen/PropList.txt: likewise.
9663 * localedata/unicode-gen/UnicodeData.txt: likewise.
9664 * localedata/charmaps/UTF-8: Regenerate.
9665 * localedata/locales/i18n_ctype: likewise.
9666 * localedata/locales/tr_TR: likewise.
9667 * localedata/locales/translit_circle: likewise.
9668 * localedata/locales/translit_cjk_compat: likewise.
9669 * localedata/locales/translit_combining: likewise.
9670 * localedata/locales/translit_compat: likewise.
9671 * localedata/locales/translit_font: likewise.
9672 * localedata/locales/translit_fraction: likewise.
9673
9674 2018-07-03 Florian Weimer <fweimer@redhat.com>
9675
9676 [BZ #23363]
9677 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9678 * stdio-common/tst-printf.sh: Adjust expected output.
9679 * LICENSES: Update.
9680
9681 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9682
9683 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9684 symbol.
9685
9686 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9687
9688 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9689 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9690 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9691 * stdio-common/tst-printfsz-islongdouble.c: New file.
9692 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9693 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9694 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9695 [subdir == stdio-common] (tests-internal): Add
9696 test-printf-size-ieee128, and test-printf-size-ibm128.
9697 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9698 (CFLAGS-test-printf-size-ibm128.c): New variables.
9699 [subdir == stdio-common] (tests-special): Add
9700 $(objpfx)test-printf-size-ieee128.out and
9701 $(objpfx)test-printf-size-ibm128.out.
9702 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9703 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9704 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9705 __printf_sizeieee128.
9706 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9707 New file.
9708 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9709 Likewise.
9710 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9711 Likewise.
9712
9713 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9714
9715 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9716 (exp2f_inline): Likewise.
9717 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9718 (__math_uflowf): Likewise.
9719 (__math_may_uflowf): Likewise.
9720 (__math_divzerof): Likewise.
9721 (__math_invalidf): Likewise.
9722 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9723 (__math_oflowf): Likewise.
9724 (__math_uflowf): Likewise.
9725 (__math_may_uflowf): Likewise.
9726 (__math_divzerof): Likewise.
9727 (__math_invalidf): Likewise.
9728
9729 2018-06-29 DJ Delorie <dj@redhat.com>
9730 Carlos O'Donell <carlos@redhat.com>
9731
9732 [BZ #23329]
9733 * include/libc-symbols.h: Comment the freeres framework.
9734 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9735 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9736 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9737 * dlfcn/dlerror.c: Include libc-symbols.h
9738 (__dlerror_main_freeres): New function.
9739 * dlfcn/dlfreeres.c: New file.
9740 * dlfcn/sdlfreeres.c: New file.
9741 * include/dlfcn.h: Declare __dlerror_main_freeres.
9742 * malloc/set-freeres.c: Declare __libdl_freeres, and
9743 __libpthread_freeres.
9744 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9745 the releavant libraries are loaded.
9746 * malloc/thread-freeres.c: Add comments.
9747 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9748 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9749 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9750 (__free_stacks): Rename to...
9751 (free_stacks): ...this. Mark static.
9752 (queue_stack): Call free_stacks.
9753 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9754 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9755 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9756 ptr_freeres element from struct.
9757 (pthread_functions): Remove .ptr_freeres from struct initializer.
9758 [SHARED] (nptl_freeres): Remove.
9759 * nptl/nptlfreeres.c: New file.
9760 * nptl/pthreadP.h
9761 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9762 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9763 attribute_hidden.
9764 (__free_stacks): Rename to...
9765 (__nptl_stacks_freeres): ...this.
9766 (__shm_directory_freeres): Declare.
9767 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9768 (__nptl_unwind_freeres): ...this.
9769 * resolv/res-close.c: Add comment.
9770 * resolv/resolv_conf.c: Include libc-symbols.h.
9771 * string/strerror_l.c: Include libc-symbols.h.
9772 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9773 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9774 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9775 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9776
9777 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9778
9779 * stdlib/tst-strfmon_l.c: Add tests for long double.
9780
9781 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9782
9783 [BZ #23208]
9784 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9785 * localedata/locales/dsb_DE: New file.
9786
9787 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9788
9789 [BZ #23140]
9790 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9791 genitive case).
9792 (alt_mon): New entry, import from CLDR (nominative case).
9793
9794 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9795
9796 [BZ #22996]
9797 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9798
9799 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9800
9801 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9802 Use vector registers.
9803
9804 * sysdeps/aarch64/multiarch/memmove_falkor.S
9805 (__memcpy_falkor): Use vector registers.
9806
9807 2018-06-29 Martin Sebor <msebor@redhat.com>
9808
9809 * manual/stdio.texi (Customizing Printf): Mention interaction
9810 with GCC built-ins.
9811
9812 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9813
9814 [BZ #23307]
9815 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9816 `st_value' is 0 if `st_shndx' is SHN_ABS.
9817 * elf/tst-absolute-zero.c: New file.
9818 * elf/tst-absolute-zero-lib.c: New file.
9819 * elf/tst-absolute-zero-lib.lds: New file.
9820 * elf/Makefile (tests): Add `tst-absolute-zero'.
9821 (modules-names): Add `tst-absolute-zero-lib'.
9822 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9823 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9824 ($(objpfx)tst-absolute-zero: New dependency.
9825
9826 2018-06-29 Zack Weinberg <zackw@panix.com>
9827
9828 * configure.ac: New command-line option --disable-crypt.
9829 Force --disable-nss-crypt when --disable-crypt is given, with a
9830 warning if it was explicitly enabled.
9831 * configure: Regenerate.
9832 * config.make.in: New boolean substitution variable $(build-crypt).
9833 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9834 when $(build-crypt).
9835 * manual/install.texi: Document --disable-crypt.
9836 * INSTALL: Regenerate.
9837
9838 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9839 which is never set.
9840 * conform/Makefile: Only include libcrypt.a in
9841 linknamespace-libs-xsi and linknamespace-libs-XPG4
9842 when $(build-crypt).
9843 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9844 USE_CRYPT to 1 when $(build-crypt).
9845 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9846 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9847 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9848
9849 2018-06-29 Zack Weinberg <zackw@panix.com>
9850
9851 * crypt/crypt.h, posix/unistd.h: Update comments and
9852 prototypes for crypt and crypt_r.
9853
9854 * manual/crypt.texi (Cryptographic Functions): New initial
9855 exposition.
9856 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9857 (Unpredictable Bytes): Improve initial exposition. Clarify error
9858 behavior of getentropy and getrandom.
9859 * manual/examples/genpass.c: Generate a salt using getentropy
9860 instead of the current time. Use hash $5$ (SHA-2-256).
9861 * manual/examples/testpass.c: Demonstrate validation against
9862 hashes generated with three different one-way functions.
9863
9864 * manual/intro.texi: crypt.texi does not need an overview
9865 anymore.
9866
9867 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9868 * manual/terminal.texi: Consistently refer to "passphrases"
9869 * instead of "passwords", and to the "user database" instead
9870 * of the "password database".
9871 * manual/users.texi: Similarly. Add notes about how actual
9872 passphrase hashes are now stored in the shadow database.
9873 Remove 20-year-old junk todo note.
9874
9875 2018-06-29 Zack Weinberg <zackw@panix.com>
9876
9877 * manual/crypt.texi: Use a normal top-level @node declaration.
9878 Move most of the introductory text to the 'crypt' section.
9879 Move the example programs below the @deftypefun for 'crypt_r'.
9880 Move the 'getpass' section...
9881 * manual/terminal.texi: ...here.
9882
9883 2018-06-29 Zack Weinberg <zackw@panix.com>
9884 Florian Weimer <fweimer@redhat.com>
9885
9886 * posix/unistd.h: Do not declare encrypt.
9887 (_XOPEN_CRYPT): Remove macro definition.
9888 (crypt): Declare only for _USE_MISC.
9889 * stdlib/stdlib.h: Do not declare setkey.
9890 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9891 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9892
9893 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9894 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9895 into compat symbols. Don't define initial_perm if it's not
9896 going to be used.
9897 * crypt/cert.c: Link explicitly with the expected versions for
9898 setkey and encrypt. If they are not available at all, mark
9899 the test as unsupported.
9900
9901 * sunrpc/des_crypt.c: Unconditionally block linkage with
9902 cbc_crypt and ecb_crypt for new binaries.
9903 * sunrpc/des_soft.c: Unconditionally block linkage with
9904 des_setparity for new binaries.
9905
9906 * manual/crypt.texi: Remove the entire "DES Encryption"
9907 section. Also remove the paragraph talking about FIPS 140-2
9908 from the introduction.
9909 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9910 of libgcrypt for "real" encryption, not DES.
9911 * manual/conf.texi (Constants for Sysconf): Mention that
9912 _XOPEN_CRYPT is no longer impelemented.
9913
9914 * conform/data/unistd.h-data: Remove crypt function declaration.
9915
9916 2018-06-29 Florian Weimer <fweimer@redhat.com>
9917
9918 [BZ #23351]
9919 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9920 (disallow_malloc_check): Remove variable.
9921 (__malloc_check_init): Adjust.
9922 (malloc_set_state): Update comment.
9923 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9924 declarations.
9925
9926 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9927
9928 [BZ #23140]
9929 * localedata/locales/ast_ES (mon): Rename to...
9930 (alt_mon): This.
9931 (mon): Import from CLDR (genitive case).
9932
9933 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9934 Jakub Sitnicki <jkbs@redhat.com>
9935
9936 [BZ #21812]
9937 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9938 on NLM_F_DUMP_INTR.
9939
9940 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9941
9942 * manual/llio.texi: Remove spurious space.
9943
9944 2018-06-28 Florian Weimer <fweimer@redhat.com>
9945
9946 [BZ #23349]
9947 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9948 _STRUCT_TIMESPEC.
9949
9950 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9951
9952 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9953 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9954 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9955 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9956 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9957 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9958 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9959
9960 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9961
9962 [BZ #23266]
9963 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9964 Copy and null-terminate entries that are not terminated, in
9965 addition to empty ones.
9966
9967 2018-06-27 Florian Weimer <fweimer@redhat.com>
9968
9969 [BZ #18023]
9970 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9971 (extend_alloca_account): Remove.
9972 * manual/stdio.texi (Variable Arguments Output): Update comment.
9973
9974 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9975
9976 * nptl/sockperf.c: Remove file.
9977
9978 2018-06-27 Florian Weimer <fweimer@redhat.com>
9979
9980 [BZ #18023]
9981 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9982 scratch_buffer instead of extend_alloca.
9983
9984 2018-06-27 Florian Weimer <fweimer@redhat.com>
9985
9986 [BZ #18023]
9987 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9988 scratch_buffer instead of extend_alloca. Update comments.
9989
9990 2018-06-27 Florian Weimer <fweimer@redhat.com>
9991
9992 [BZ #18023]
9993 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9994 instead of extend_alloca.
9995
9996 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9997
9998 [BZ #13888]
9999 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10000 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10001 /tmp.
10002 * scripts/test-installation.pl: Put temporary files in build
10003 directory, not /tmp.
10004 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10005 (CFLAGS-bug4.c): Likewise.
10006 (CFLAGS-bug5.c): Likewise.
10007 (CFLAGS-test-fseek.c): Likewise.
10008 (CFLAGS-test-popen.c): Likewise.
10009 (CFLAGS-test_rdwr.c): Likewise.
10010 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10011 /tmp.
10012 * stdio-common/bug4.c (main): Likewise.
10013 * stdio-common/bug5.c (main): Likewise.
10014 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10015 * stdio-common/test-popen.c (do_test): Likewise.
10016 * stdio-common/test_rdwr.c (main): Likewise.
10017
10018 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10019
10020 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10021 (sem_open): Set sem.newsem.pad to zero for valgrind.
10022
10023 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10024
10025 [BZ #20251]
10026 * NEWS: Mention fcntl64 addition.
10027 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10028 * login/utmp_file.c: Likewise.
10029 * sysdeps/posix/fdopendir.c: Likewise.
10030 * sysdeps/posix/opendir.c: Likewise.
10031 * sysdeps/unix/pt-fcntl.c: Likewise.
10032 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10033 __fcntl64_nocancel_adjusted): New prototype.
10034 (__fcntl_nocancel_adjusted): Remove prototype.
10035 * io/Makefile (routines): Add fcntl64.
10036 (CFLAGS-fcntl64.c): New rule.
10037 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10038 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10039 * io/fcntl.h (fcntl64): Add prototype and redirect if
10040 __USE_FILE_OFFSET64 is defined.
10041 * io/fcntl64.c: New file.
10042 * manual/llio.text: Add a note for which commands fcntl acts a
10043 cancellation point.
10044 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10045 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10046 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10047 New symbols.
10048 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10049 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10050 non-LFS case.
10051 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10052 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10053 to __fcntl64_nocancel.
10054 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10055 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10056 to __fcntl64_nocancel.
10057 * sysdeps/generic/not-cancel.h: Likewise.
10058 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10059 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10060 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10061 (fcntl64): New symbol.
10062 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10063 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10064 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10067 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10068 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10069 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10070 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10071 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10072 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10073 fcntl64): Likewise.
10074 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10075 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10076 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10077 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10078 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10079 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10080 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10081 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10082 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10084 Likewise.
10085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10086 Likewise.
10087 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10088 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10089 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10090
10091 2018-06-26 Florian Weimer <fweimer@redhat.com>
10092
10093 Run thread shutdown functions in an explicit order.
10094 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10095 definition.
10096 (__libc_thread_freeres): Call thread shutdown functions
10097 explicitly.
10098 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10099 * include/string.h (__strerror_thread_freeres): Declare.
10100 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10101 arena_thread_freeres. No longer static. Remove thread shutdown
10102 hook registration.
10103 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10104 Declare.
10105 * resolv/res-close.c (__res_thread_freeres): Renamed from
10106 res_thread_freeres. No longer static. Remove thread shutdown
10107 hook registration.
10108 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10109 * resolv/resolv_conf.c (freeres): Remove incorrect section
10110 attribute and use libc_freeres_fn.
10111 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10112 strerror_thread_freeres. No longer static. Remove thread
10113 shutdown hook registration.
10114 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10115 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10116 shutdown hook registration.
10117 * Makerules (shlib.lds): Do not provide section boundary symbols
10118 for __libc_thread_subfreeres.
10119 * manual/memory.texi (Basic Allocation): Update comment.
10120
10121 2018-06-26 Florian Weimer <fweimer@redhat.com>
10122
10123 Remove always-defined _RPC_THREAD_SAFE_ macro.
10124 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10125 Do not define _RPC_THREAD_SAFE_.
10126 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10127 conditional.
10128 * sunrpc/clnt_perr.c: Likewise.
10129 * sunrpc/clnt_raw.c: Likewise.
10130 * sunrpc/clnt_simp.c: Likewise.
10131 * sunrpc/key_call.c: Likewise.
10132 * sunrpc/rpc_common.c: Likewise.
10133 * sunrpc/rpc_main.c: Likewise.
10134 * sunrpc/rpc_thread.c: Likewise.
10135 * sunrpc/svc.c: Likewise.
10136 * sunrpc/svc_raw.c: Likewise.
10137 * sunrpc/svc_simple.c: Likewise.
10138 * sumrpc/svcauth_des.c: Likewise.
10139
10140 2018-06-26 Florian Weimer <fweimer@redhat.com>
10141
10142 * libio/Makefile (tests-internal): Add tst-vtables,
10143 tst-vtables-interposed.
10144 * libio/tst-vtables.c: New file.
10145 * libio/tst-vtables-common.c: Likewise.
10146 * libio/tst-vtables-interposed.c: Likewise.
10147
10148 2018-06-26 Florian Weimer <fweimer@redhat.com>
10149
10150 * support/support_test_main.c (support_test_main): Only call
10151 setvbuf if not disables.
10152 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10153 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10154
10155 2018-06-26 Florian Weimer <fweimer@redhat.com>
10156
10157 [BZ #23313]
10158 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10159
10160 2018-06-25 Florian Weimer <fweimer@redhat.com>
10161
10162 [BZ #18023]
10163 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10164 Use struct scratch_buffer instead of extend_alloca.
10165
10166 2018-06-25 Florian Weimer <fweimer@redhat.com>
10167
10168 [BZ #18023]
10169 * nss/getent.c (initgroups_keys): Use dynarray instead of
10170 extend_alloca.
10171
10172 2018-06-25 Florian Weimer <fweimer@redhat.com>
10173
10174 [BZ #18023]
10175 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10176 Use struct scratch_buffer instead of extend_alloca.
10177
10178 2018-06-25 Florian Weimer <fweimer@redhat.com>
10179
10180 [BZ #18023]
10181 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10182 back to malloc directly, without stack allocations.
10183
10184 2018-06-25 Florian Weimer <fweimer@redhat.com>
10185
10186 [BZ #18023]
10187 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10188 of extend_alloca.
10189
10190 2018-06-25 Florian Weimer <fweimer@redhat.com>
10191
10192 [BZ #18023]
10193 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10194 of extend_alloca.
10195 * nscd/hstcache.c (addhstbyX): Likewise.
10196 * nscd/pwdcache.c (addpwbyX): Likewise.
10197 * nscd/servicescache.c (addservbyX): Likewise.
10198
10199 2018-06-25 Florian Weimer <fweimer@redhat.com>
10200
10201 [BZ #18023]
10202 * nscd/connections.c (read_cmdline): New function.
10203 (restart): Use it. Update comment.
10204
10205 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10206
10207 [BZ #23140]
10208 * localedata/locales/csb_PL (mon): Rename to...
10209 (alt_mon): This.
10210 (abmon): Rename to...
10211 (ab_alt_mon): This.
10212 (mon): Add with proper genitive forms, copy from Wikipedia.
10213 (abmon): Likewise.
10214
10215 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10216
10217 [BZ #19485]
10218 * localedata/locales/csb_PL (mon): Fix typos:
10219 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10220 (yesstr): Add, value is "jo".
10221 (nostr): Add, value is "nié".
10222
10223 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10224
10225 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10226 all log1p and significand functions on m680x0.
10227 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10228 of s_significand.c..
10229 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10230 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10231 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10232 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10233 s_log1p.c and include it..
10234
10235 2018-06-21 Vincent Chen <vincentc@andestech.com>
10236
10237 * elf/elf.h (R_NDS32_NONE): New define.
10238 (R_NDS32_32_RELA): Likewise.
10239 (R_NDS32_COPY): Likewise.
10240 (R_NDS32_GLOB_DAT): Likewise.
10241 (R_NDS32_JUMP_SLOT): Likewise.
10242 (R_NDS32_RELATIVE): Likewise.
10243 (R_NDS32_TLS_TPOFF): Likewise.
10244 (R_NDS32_TLS_DESC): Likewise.
10245
10246 2018-06-21 Mark Wielaard <mark@klomp.org>
10247
10248 * elf/elf.h (R_BPF_MAP_FD): Removed.
10249 (R_BPF_64_64, R_BPF_64_32): New.
10250
10251 2018-06-21 Florian Weimer <fweimer@redhat.com>
10252
10253 [BZ #23253]
10254 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10255 Renamed from libc_feholdsetround_ctx.
10256 (default_libc_feresetround_ctx): Renamed from
10257 libc_feresetround_ctx.
10258 (default_libc_feholdsetround_noex_ctx): Renamed from
10259 libc_feholdsetround_noex_ctx.
10260 (default_libc_feresetround_noex_ctx): Renamed from
10261 libc_feresetround_noex_ctx.
10262 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10263 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10264 forwardning to the old implementations under the new names.
10265 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10266 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10267 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10268 (libc_feresetround_ctx): Forward to default implements for i386
10269 and MATH_SET_BOTH_ROUNDING_MODES.
10270 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10271 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10272
10273 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10274
10275 * string/tst-cmp.c: Include <libc-diag.h>.
10276 (strncmp_max): Disable -Wstringop-overflow= around call to
10277 strncmp.
10278 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10279 strncasecmp.
10280
10281 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10282 (main): Disable -Wunused-value around call to strpbrk.
10283 * string/bug-strspn1.c: Include <libc-diag.h>.
10284 (main): Disable -Wunused-value around call to strspn.
10285
10286 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10287 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10288
10289 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10290 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10291
10292 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10293
10294 * math/Makefile (libm-calls): Move s_significandF to...
10295 (gen-libm-calls): ... here.
10296 * math/s_significand_template.c: New file.
10297 * math/s_significand.c: Removed.
10298 * math/s_significandf.c: Removed.
10299 * math/s_significandl.c: Removed.
10300 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10301 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10302
10303 * math/e_exp2_template.c (declare_mgen_finite_alias,
10304 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10305 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10306 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10307
10308 2018-06-20 Florian Weimer <fweimer@redhat.com>
10309
10310 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10311
10312 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10313
10314 [BZ #23280]
10315 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10316 floating-point number to strtod functions rather than possibly
10317 negating result of those functions.
10318 * stdio-common/tst-scanf-round.c: New file.
10319 * stdio-common/Makefile (tests): Add tst-scanf-round.
10320 ($(objpfx)tst-scanf-round): Depend on $(libm).
10321
10322 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10323
10324 * sysdeps/mach/hurd/localplt.data: Move to...
10325 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10326 R_386_GLOB_DAT like on Linux i386.
10327
10328 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10329
10330 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10331 (SHM_STAT_ANY): New macro.
10332 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10333 (SHM_STAT_ANY): Likewise.
10334 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10335 (SHM_STAT_ANY): Likewise.
10336 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10337 (SHM_STAT_ANY): Likewise.
10338 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10339 (SHM_STAT_ANY): Likewise.
10340 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10341 (SHM_STAT_ANY): Likewise.
10342 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10343 (SHM_STAT_ANY): Likewise.
10344 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10345 (SHM_STAT_ANY): Likewise.
10346 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10347 (SHM_STAT_ANY): Likewise.
10348 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10349 (SHM_STAT_ANY): Likewise.
10350 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10351 (SHM_STAT_ANY): Likewise.
10352 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10353 (SHM_STAT_ANY): Likewise.
10354
10355 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10356 (SEM_STAT_ANY): New macro.
10357 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10358 (SEM_STAT_ANY): Likewise.
10359 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10360 (SEM_STAT_ANY): Likewise.
10361 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10362 (SEM_STAT_ANY): Likewise.
10363 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10364 (SEM_STAT_ANY): Likewise.
10365 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10366 (SEM_STAT_ANY): Likewise.
10367 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10368 (SEM_STAT_ANY): Likewise.
10369 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10370 (SEM_STAT_ANY): Likewise.
10371 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10372 (SEM_STAT_ANY): Likewise.
10373 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10374 (SEM_STAT_ANY): Likewise.
10375
10376 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10377 (MSG_STAT_ANY): New macro.
10378 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10379 (MSG_STAT_ANY): Likewise.
10380 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10381 (MSG_STAT_ANY): Likewise.
10382 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10383 (MSG_STAT_ANY): Likewise.
10384 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10385 (MSG_STAT_ANY): Likewise.
10386 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10387 (MSG_STAT_ANY): Likewise.
10388 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10389 (MSG_STAT_ANY): Likewise.
10390 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10391 (MSG_STAT_ANY): Likewise.
10392 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10393 (MSG_STAT_ANY): Likewise.
10394 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10395 (MSG_STAT_ANY): Likewise.
10396
10397 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10398 (MAP_TYPE): Change value to 0x2b.
10399
10400 2018-06-18 Florian Weimer <fweimer@redhat.com>
10401
10402 [BZ #15722]
10403 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10404 socket with SOCK_CLOEXEC.
10405
10406 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10407
10408 [BZ #23303]
10409 * sysdeps/powerpc/powerpc64/le/Makefile
10410 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10411 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10412 (gnulib-tests): Also add $(f128-loader-link) for
10413 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10414
10415 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10416
10417 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10418 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10419 of sendfile.
10420 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10421 (sendfile64): New strong alias.
10422 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10423 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10424 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10425 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10426 attribute.
10427 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10428 ___pthread_get_cleanup_stack.
10429 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10430 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10431 * mach/shortcut.awk: Make syscall stubs include
10432 <mach-shortcuts-hidden.h> and add hidden definition.
10433 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10434 (__mach_msg): Add hidden prototype.
10435 * mach/msg.c: Include <mach.h>.
10436 (__mach_msg): Add hidden definition.
10437 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10438 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10439 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10440 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10441 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10442 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10443 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10444 prototype and definition.
10445 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10446 hidden target for _hurd_self_sigstate.
10447
10448 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10449
10450 [BZ #23007]
10451 * stdlib/tst-strtod-nan-sign-main.c: New file.
10452 * stdlib/tst-strtod-nan-sign.c: Likewise.
10453 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10454 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10455 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10456 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10457 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10458
10459 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10460
10461 [BZ #23007]
10462 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10463 appropriate sign.
10464
10465 2018-06-14 Florian Weimer <fweimer@redhat.com>
10466
10467 [BZ #23290]
10468 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10469 that the result stays within the ISO-8859-1 range.
10470 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10471 characters are defined in IBM273.
10472
10473 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10474
10475 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10476 __mach_task_self): Remove attribute_hidden.
10477
10478 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10479
10480 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10481 ignore -Wrestrict for one test.
10482
10483 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10484 Szabolcs Nagy <szabolcs.nagy@arm.com>
10485
10486 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10487
10488 2018-06-14 Florian Weimer <fweimer@redhat.com>
10489
10490 * scripts/update-abilist.sh: Accept empty list of files to patch.
10491
10492 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10493
10494 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10495 test-xfail-check-abi-libmachuser): Add.
10496 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10497 __libc_read and __libc_write to __read and __write.
10498 * sysdeps/hurd/include/hurd/port.h: New file.
10499 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10500 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10501 __thread_switch, __evc_wait): Move declarations to...
10502 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10503 attribute_hidden.
10504 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10505 use PLT to call _hurd_self_sigstate.
10506
10507 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10508
10509 [BZ #23279]
10510 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10511 MAX_EXP as overflowing.
10512 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10513 overflow flag.
10514 (round_str): Output also whether result overflows in each rounding
10515 mode.
10516 * stdlib/tst-strtod-round-data: Add more tests.
10517 * stdlib/tst-strtod-round-data.h: Regenerated.
10518 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10519 (TEST): Handle extra arguments for overflow flags.
10520 (struct test_overflow): New type.
10521 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10522 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10523 (test_in_one_mode): Take argument with overflow information.
10524 (do_test): Update calls to test_in_one_mode.
10525
10526 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10527
10528 * elf/dl-load (_dl_dst_substitute): Correct comment.
10529 (_dl_dst_count): Likewise.
10530
10531 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10532 lll_futex_timed_wait.
10533
10534 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10535
10536 [BZ #23277]
10537 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10538 attribute.
10539 * math/test-nan-const.c: New file.
10540 * math/Makefile (tests): Add test-nan-const.
10541 (CFLAGS-test-nan-const.c): New variable.
10542
10543 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10544
10545 * benchtests/scripts/compare_strings.py (process_results): Add
10546 funcs argument. Compare only functions which are selected.
10547 (main): Check if base function is among selected functions.
10548 Pass selected functions to process_results.
10549 (__main__): Add -f/--functions argument.
10550
10551 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10552 Hongbo Zhang <hongbo.zhang@linaro.org>
10553
10554 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10555 __memcpy_falkor for phecda core.
10556 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10557 __memmove_falkor for phecda core.
10558 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10559 __memset_falkor for phecda core.
10560 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10561 for phecda core.
10562 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10563 macro to identify phecda core.
10564
10565 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10566 Andreas Schwab <schwab@suse.de>
10567 Dmitry V. Levin <ldv@altlinux.org>
10568 Florian Weimer <fweimer@redhat.com>
10569
10570 [BZ #23102]
10571 [BZ #21942]
10572 [BZ #18018]
10573 [BZ #23259]
10574 CVE-2011-0536
10575 * elf/dl-dst.h: Remove DL_DST_COUNT.
10576 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10577 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10578 (is_dst): Comment. Support ELF gABI.
10579 (_dl_dst_count): Comment. Simplify and count DSTs.
10580 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10581 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10582 locals.
10583
10584 2018-06-12 Zack Weinberg <zackw@panix.com>
10585
10586 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10587 * sysdeps/unix/sysv/linux/dl-sysdep.c
10588 Include not-cancel.h. Use __close_nocancel instead of __close,
10589 __open64_nocancel instead of __open, __read_nocancel instead of
10590 __libc_read, and __write_nocancel instead of __libc_write.
10591
10592 * csu/check_fds.c (check_one_fd)
10593 * sysdeps/posix/fdopendir.c (__fdopendir)
10594 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10595 instead of __fcntl and/or __libc_fcntl.
10596
10597 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10598 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10599 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10600 Use __open64_nocancel instead of __open_nocancel.
10601
10602 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10603 hidden_proto declarations to the end and issue them if either
10604 IS_IN(libc) or IS_IN(rtld).
10605 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10606 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10607 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10608 read_nocancel, waitpid_nocancel, write_nocancel.
10609
10610 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10611 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10612 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10613
10614 * nptl/pt-fcntl.c: New file.
10615 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10616 (libpthread-routines): Add pt-fcntl.
10617 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10618 (__libc_fcntl): Remove attribute_hidden.
10619 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10620 __fcntl_nocancel_adjusted, not fcntl_common.
10621 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10622 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10623 to fcntl_nocancel.c.
10624 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10627 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10628
10629 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10630 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10631 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10632 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10633 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10634 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10635 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10636 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10637 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10638 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10639 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10640 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10641 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10642 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10643 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10644 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10645 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10646 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10647 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10648 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10649
10650 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10651 libpthread-routines.
10652 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10653 defines nothing.
10654
10655 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10656 __libc_read, and __write instead of __libc_write. Define
10657 __open64 in addition to __open.
10658
10659 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10660
10661 [BZ #23250]
10662 [BZ #10686]
10663 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10664 to _private_tm[3] and add __glibc_reserved2.
10665 Add _Static_assert of offset of __private_ss == 0x30.
10666 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10667 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10668
10669 2018-06-12 Florian Weimer <fweimer@redhat.com>
10670
10671 x86: Make strncmp usable from rtld.
10672 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10673 __strncmp_ia32 if in libc (and not in rtld).
10674 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10675 strncmp if not in libc (and not to __strncmp_sse2).
10676
10677 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10678
10679 [BZ #23140]
10680 * localedata/locales/gd_GB (mon): Rename to...
10681 (alt_mon): This.
10682 (mon): Import from CLDR (genitive case).
10683 * localedata/locales/hsb_DE (mon): Rename to...
10684 (alt_mon): This.
10685 (mon): Import from CLDR (genitive case).
10686 * localedata/locales/wa_BE (mon): Rename to...
10687 (alt_mon): This.
10688 (mon): Add, fill with the proper genitive forms, but CLDR data
10689 is incomplete; completed according to the comments in this file.
10690 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10691
10692 * localedata/locales/wa_BE (country_name): Reword
10693 "Beljike" -> "Beldjike".
10694
10695 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10696
10697 [BZ #23272]
10698 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10699 cases of non-finite arguments.
10700 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10701
10702 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10703
10704 [BZ #23174]
10705 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10706
10707 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10708
10709 [BZ #23264]
10710 * include/unistd.h (__execvpex): New prototype.
10711 * posix/Makefile (tests): Add tst-spawn4.
10712 (tests-internal): Add tst-spawn4-compat.
10713 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10714 * posix/tst-spawn4-compat.c: New file.
10715 * posix/tst-spawn4.c: Likewise.
10716 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10717 binaries as shell scripts.
10718 * sysdeps/posix/spawni.c (__spawni): Likewise.
10719
10720 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10721
10722 [BZ #23145]
10723 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10724 ($(all-built-dso:=.dynsym): New target.
10725 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10726 ($(objpfx)check-initfini.out): New target.
10727 (generated): Add check-initfini.out.
10728 * scripts/check-initfini.awk: New file.
10729 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10730 (_fini): Likewise.
10731 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10732 (_fini): Likewise.
10733 * sysdeps/arm/crti.S (_init): Mark as hidden.
10734 (_fini): Likewise.
10735 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10736 (_fini): Likewise.
10737 * sysdeps/i386/crti.S (_init): Mark as hidden.
10738 (_fini): Likewise.
10739 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10740 (_fini): Likewise.
10741 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10742 (_fini): Likewise.
10743 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10744 (_fini): Likewise.
10745 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10746 (_fini): Likewise.
10747 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10748 (_fini): Likewise.
10749 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10750 (_fini): Likewise.
10751 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10752 (_fini): Likewise.
10753 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10754 (_fini): Likewise.
10755 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10756 (_fini): Likewise.
10757 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10758 (_fini): Likewise.
10759 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10760 (_fini): Likewise.
10761 * sysdeps/sh/crti.S (_init): Mark as hidden.
10762 (_fini): Likewise.
10763 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10764 (_fini): Likewise.
10765 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10766 (_fini): Likewise.
10767
10768 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10769
10770 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10771 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10772 and TF redirection to KFtype and KF only when the default
10773 long double type is not the IEEE 128-bit floating point type.
10774
10775 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10776
10777 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10778 macro.
10779 (HWCAP_USCAT): Likewise.
10780 (HWCAP_ILRCPC): Likewise.
10781 (HWCAP_FLAGM): Likewise.
10782 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10783 Increase to 28.
10784 (_dl_aarch64_cap_flags): Add new flag names.
10785
10786 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10787 (MAP_FIXED_NOREPLACE): New macro.
10788 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10789 (MAP_FIXED_NOREPLACE): Likewise.
10790 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10791 (MAP_FIXED_NOREPLACE): Likewise.
10792 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10793 (MAP_FIXED_NOREPLACE): Likewise.
10794 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10795 (MAP_FIXED_NOREPLACE): Likewise.
10796 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10797 (MAP_FIXED_NOREPLACE): Likewise.
10798 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10799 (MAP_FIXED_NOREPLACE): Likewise.
10800 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10801 (MAP_FIXED_NOREPLACE): Likewise.
10802 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10803 (MAP_FIXED_NOREPLACE): Likewise.
10804 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10805 (MAP_FIXED_NOREPLACE): Likewise.
10806 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10807 (MAP_FIXED_NOREPLACE): Likewise.
10808 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10809 (MAP_FIXED_NOREPLACE): Likewise.
10810 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10811 (MAP_FIXED_NOREPLACE): Likewise.
10812 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10813 (MAP_FIXED_NOREPLACE): Likewise.
10814 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10815 (MAP_FIXED_NOREPLACE): Likewise.
10816
10817 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10818 version to 4.17.
10819
10820 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10821
10822 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10823 version to 4.17
10824
10825 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10826
10827 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10828 int.
10829 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10830
10831 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10832
10833 * benchtests/scripts/compare_string.py: (process_results) Catch
10834 exception in non-existent base_func and catch exception in
10835 non-existent attribute.
10836 (parse_file) Catch exception if input file does not exist.
10837
10838 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10839
10840 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10841 options to avoid diff calculation and omit header, respectively.
10842 (main): process --no-diff and --no-header
10843
10844 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10845 H.J. Lu <hongjiu.lu@intel.com>
10846
10847 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10848 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10849 wcsncmp-sse2.
10850 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10851 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10852 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10853 and __wcsncmp_sse2.
10854 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10855 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10856 AVX unaligned load is fast and vzeroupper is preferred.
10857 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10858 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10859 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10860 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10861 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10862 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10863 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10864 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10865 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10866 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10867 is undefined.
10868
10869 2018-06-01 Florian Weimer <fweimer@redhat.com>
10870
10871 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10872 configuring with --disable-multi-arch, building with
10873 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10874 Haswell-era CPU.
10875
10876 2018-06-01 Florian Weimer <fweimer@redhat.com>
10877
10878 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10879 results from building with “-march=x86-64 -mtune=generic
10880 -mfpmath=sse” and running on a Haswell-era CPU.
10881
10882 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10883
10884 [BZ #18473]
10885 * soft-fp/sqrttf2.c: Remove file.
10886 * soft-fp/sqrtdf2.c: Move to ....
10887 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10888 <shlib-compat.h>.
10889 (__sqrtdf2): Make conditional on
10890 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10891 symbol.
10892 * soft-fp/sqrtsf2.c: Move to ....
10893 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10894 <shlib-compat.h>.
10895 (__sqrtsf2): Make conditional on
10896 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10897 symbol.
10898 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10899 (gcc-double-routines): Remove sqrtdf2.
10900 (gcc-quad-routines): Remove sqrttf2.
10901 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10902 Do not filter out sqrtsf2 and sqrtdf2.
10903 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10904 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10905
10906 2018-06-01 Florian Weimer <fweimer@redhat.com>
10907
10908 * sysdeps/generic/libcidn.abilist: Remove file.
10909
10910 2018-06-01 Florian Weimer <fweimer@redhat.com>
10911
10912 [BZ #23236]
10913 * libio/strfile.h (struct _IO_str_fields): Rename members to
10914 discourage their use and add comment.
10915 (_IO_STR_DYNAMIC): Remove unused macro.
10916 * libio/strops.c (_IO_str_init_static_internal): Do not use
10917 callback pointers. Call malloc and free.
10918 (_IO_str_overflow): Do not use callback pointers. Call malloc
10919 and free.
10920 (enlarge_userbuf): Likewise.
10921 (_IO_str_finish): Call free.
10922 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10923 _allocate_buffer_unused.
10924 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10925 and free.
10926 (enlarge_userbuf): Likewise.
10927 (_IO_wstr_finish): Call free.
10928 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10929 _allocate_buffer_unused, _free_buffer_unused.
10930 * libio/memstream.c (__open_memstream): Likewise.
10931 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10932 * libio/wmemstream.c (open_wmemstream): Likewise.
10933
10934 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10935
10936 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10937 AMD Ryzen 7 1800X.
10938
10939 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10940
10941 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10942 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10943 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10944 New file.
10945 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10946 Likewise.
10947 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10948
10949 2018-05-29 Florian Weimer <fweimer@redhat.com>
10950
10951 * support/Makefile (libsupport-routines): Add
10952 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10953 xpthread_barrierattr_setpshared.
10954 * support/xpthread_barrierattr_destroy.c: New file.
10955 * support/xpthread_barrierattr_init.c: Likewise.
10956 * support/xpthread_barrierattr_setpshared.c: Likewise.
10957
10958 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10959
10960 [BZ #23206]
10961 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10962 _r_debug and update DT_DEBUG for debugger.
10963
10964 2018-05-29 Florian Weimer <fweimer@redhat.com>
10965
10966 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10967 (tst-strtod5i.out): Likewise.
10968
10969 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10970
10971 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10972 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10973 (sparc64-quad-routines): New variable. Moved from ....
10974 [$(subdir) = soft-fp] (sysdep_routines): Add
10975 $(sparc64-quad-routines). Moved from ....
10976 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10977 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10978 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10979 moved from ....
10980 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10981 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10982 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10983 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10984 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10985 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10986 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10987 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10988 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10989 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10990 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10991 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10992 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10993 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10994 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10995 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10996 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10997 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10998 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10999 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11000 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11001 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11002 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11003 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11004 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11005 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11006 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11007 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11008 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11009 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11010 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11011 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11012 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11013 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11014 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11015 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11016 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11017 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11018 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11019 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11020 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11021 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11022 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11023 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11024 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11025 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11026 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11027 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11028 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11029 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11030 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11031 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11032 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11033 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11034 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11035 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11036 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11037 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11038
11039 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11040 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11041 (sparc32-quad-routines): New variable. Moved from ....
11042 [$(subdir) = soft-fp] (sysdep_routines): Add
11043 $(sparc32-quad-routines). Moved from ....
11044 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11045 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11046 moved from ....
11047 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11048 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11049 * sysdeps/sparc/sparc32/q_add.c: ... here.
11050 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11051 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11052 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11053 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11054 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11055 * sysdeps/sparc/sparc32/q_div.c: ... here.
11056 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11057 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11058 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11059 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11060 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11061 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11062 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11063 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11064 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11065 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11066 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11067 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11068 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11069 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11070 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11071 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11072 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11073 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11074 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11075 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11076 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11077 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11078 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11079 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11080 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11081 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11082 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11083 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11084 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11085 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11086 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11087 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11088 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11089 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11090 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11091 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11092 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11093 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11094 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11095 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11096 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11097 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11098 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11099 * sysdeps/sparc/sparc32/q_util.c: ... here.
11100 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11101 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11102 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11103 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11104
11105 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11106 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11107
11108 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11109 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11110 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11111 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11112
11113 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11114
11115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11116 powerpc/soft-fp.
11117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11118 Likewise.
11119 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11120 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11121
11122 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11123
11124 [BZ #23171]
11125 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11126 double version.
11127
11128 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11129
11130 * sysdeps/sh/Implies: Remove sh/soft-fp.
11131 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11132 * sysdeps/sh/sfp-machine.h: ... here.
11133
11134 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11135
11136 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11137 (__mempcpy_erms): Skip zero length.
11138 (__memmove_erms): Likewise.
11139 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11140 (__memset_erms): Likewise.
11141
11142 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11143
11144 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11145 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11146 Add functions moved from ....
11147 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11148 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11149 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11150 from ....
11151 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11152 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11153 * sysdeps/alpha/e_sqrtl.c: ... here.
11154 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11155 * sysdeps/alpha/local-soft-fp.h: ... here.
11156 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11157 * sysdeps/alpha/ots_add.c: ... here.
11158 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11159 * sysdeps/alpha/ots_cmp.c: ... here.
11160 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11161 * sysdeps/alpha/ots_cmpe.c: ... here.
11162 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11163 * sysdeps/alpha/ots_cvtqux.c: ... here.
11164 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11165 * sysdeps/alpha/ots_cvtqx.c: ... here.
11166 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11167 * sysdeps/alpha/ots_cvttx.c: ... here.
11168 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11169 * sysdeps/alpha/ots_cvtxq.c: ... here.
11170 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11171 * sysdeps/alpha/ots_cvtxt.c: ... here.
11172 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11173 * sysdeps/alpha/ots_div.c: ... here.
11174 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11175 * sysdeps/alpha/ots_mul.c: ... here.
11176 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11177 * sysdeps/alpha/ots_nintxq.c: ... here.
11178 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11179 * sysdeps/alpha/ots_sub.c: ... here.
11180 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11181 * sysdeps/alpha/sfp-machine.h: ... here.
11182
11183 2018-05-23 Florian Weimer <fweimer@redhat.com>
11184
11185 [BZ #19728]
11186 [BZ #19729]
11187 [BZ #22247]
11188 CVE-2016-6261
11189 CVE-2016-6263
11190 CVE-2017-14062
11191 Switch to extern IDNA implementation (libidn2).
11192 * libidn: Remove subdirectory.
11193 * LICENSES: Do not mention licensing conditions for the removed
11194 libidn code.
11195 * config.h.in (HAVE_LIBIDN): Remove.
11196 * include/dlfcn.h (__libc_dlopen): Update comment.
11197 * include/idna.h: Remove file.
11198 * inet/Makefile (routines): Add idna.
11199 (tests-static, tests-internal): Add tst-idna_name_classify.
11200 (LOCALES): Generate locales for tests.
11201 (tst-idna_name_classify.out): Depend on generated locales.
11202 * inet/idna_name_classify.c: New file.
11203 * inet/tst-idna_name_classify.c: Likewise.
11204 * inet/net-internal.h (__idna_to_dns_encoding)
11205 (__idna_from_dns_encoding): Declare.
11206 * inet/net-internal.h (enum idna_name_classification): Define.
11207 (__idna_name_classify): Declare.
11208 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11209 __idna_from_dns_encoding.
11210 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11211 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11212 name as a fallback in case of encoding errors.
11213 (getnameinfo): Use DEPRECATED_NI_IDN.
11214 * inet/idna.c: New file.
11215 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11216 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11217 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11218 (modules-names): Add tst-no-libidn2.
11219 (extra-test-objs): Add tst-no-libidn2.os.
11220 (LDFLAGS-tst-no-libidn2.so): Set soname.
11221 (LOCALES): Set, and generate locales.
11222 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11223 (tst-resolv-ai_idn-latin1): Likewise.
11224 (tst-resolv-ai_idn-nolibidn2): Likewise.
11225 (tst-resolv-ai_idn.out): Depend on locales.
11226 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11227 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11228 tst-no-libidn2.so.
11229 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11230 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11231 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11232 * resolv/tst-resolv-ai_idn.c: New file.
11233 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11234 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11235 * resolv/tst-no-libidn2.c: Likewise.
11236 * support/support_format_addrinfo.c (format_ai_flags): Do not
11237 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11238 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11239 (gaih_inet): Call __idna_to_dns_encoding and
11240 __idna_from_dns_encoding, and use the original (punycode) name if
11241 __idna_from_dns_encoding fails due to an encoding error.
11242 (getaddrinfo): Use DEPRECATED_AI_IDN.
11243 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11244 * sysdeps/unix/inet/configure: Remove file.
11245 * sysdeps/unix/inet/configure.ac: Likewise.
11246
11247 2018-05-23 Florian Weimer <fweimer@redhat.com>
11248
11249 Implement allocate_once.
11250 * include/allocate_once.h: New file.
11251 * misc/allocate_once.c: Likewise.
11252 * misc/tst-allocate_once.c: Likewise.
11253 * misc/Makefile (routines): Add allocate_once.
11254 (tests-internal): Add tst-allocate_once.
11255 (generated): Add tst-allocate_once.mtrace,
11256 tst-allocate_once-mem.out.
11257 (tests-special): Add tst-allocate_once-mem.out.
11258 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11259 (tst-allocate_once-mem.out): Call mtrace.
11260 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11261
11262 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11263
11264 [BZ #23196]
11265 * string/test-memcpy.c (do_test1): New function.
11266 (test_main): Call it.
11267
11268 2018-05-23 Andreas Schwab <schwab@suse.de>
11269
11270 [BZ #23196]
11271 CVE-2018-11237
11272 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11273 (L(preloop_large)): Save initial destination pointer in %r11 and
11274 use it instead of %rax after the loop.
11275 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11276
11277 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11278
11279 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11280 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11281 -I../soft-fp. Moved from ....
11282 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11283 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11284 * sysdeps/aarch64/e_sqrtl.c: ... here.
11285 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11286 * sysdeps/aarch64/sfp-machine.h: ... here.
11287
11288 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11289 -Wmaybe-uninitialized around access to fq[0].
11290 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11291 Likewise.
11292
11293 [BZ #18471]
11294 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11295 aliases for non-libc case of versioned symbols.
11296 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11297 (llseek): Define as compat symbol if
11298 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11299 with link warning.
11300 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11301 Make into a compat symbol, disabled for minimum symbol version
11302 GLIBC_2.28 and later.
11303 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11304
11305 2018-05-22 Florian Weimer <fweimer@redhat.com>
11306
11307 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11308 not add -mpreferred-stack-boundary=4.
11309 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11310 (stack-align-test-flags): Likewise.
11311 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11312 Likewise.
11313 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11314 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11315 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11316 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11317 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11318 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11319 (CFLAGS-tst-align2.c): Likewise.
11320
11321 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11322
11323 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11324 (index_arch_Prefer_FSRM): Likewise.
11325 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11326 Also check Prefer_FSRM.
11327 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11328 Also return OPTIMIZE (erms) for Prefer_FSRM.
11329
11330 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11331
11332 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11333 (index_cpu_FSRM): Likewise.
11334 (reg_FSRM): Likewise.
11335
11336 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11337
11338 * math/gen-tgmath-tests.py: Import sys.
11339 (Tests.__init__): Initialize macros_seen.
11340 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11341 if requested to do so for this macro.
11342 (Tests.add_all_tests): Take argument for macro for which to
11343 generate tests.
11344 (Tests.check_macro_list): New function.
11345 (main): Handle check-list argument and argument specifying macro
11346 for which to generate tests.
11347 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11348 [PYTHON] (tgmath3-macro-tests): Likewise.
11349 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11350 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11351 not test-tgmath3.c.
11352 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11353 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11354 to CFLAGS.
11355 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11356 [PYTHON] ($(foreach
11357 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11358 rule.
11359 [PYTHON] (tests-special): Add
11360 $(objpfx)test-tgmath3-macro-list.out.
11361 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11362
11363 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11364 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11365 later.
11366
11367 [BZ #22639]
11368 * time/tzset.c (SECSPERDAY): Cast to time_t.
11369 * time/tst-y2039.c: New file.
11370 * time/Makefile (tests): Add tst-y2039.
11371
11372 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11373
11374 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11375 (PREFETCH_ONE_SET): Remove duplicate line.
11376
11377 2018-05-17 Florian Weimer <fweimer@redhat.com>
11378
11379 * sysdeps/generic/math-type-macros-double.h: Include
11380 <math-nan-payload-double.h> after <libm-alias-double.h>.
11381 * sysdeps/generic/math-type-macros-float.h: Include
11382 <math-nan-payload-float.h> after <libm-alias-float.h>.
11383 * sysdeps/generic/math-type-macros-float128.h: Include
11384 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11385 * sysdeps/generic/math-type-macros-ldouble.h: Include
11386 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11387
11388 2018-05-17 Andreas Schwab <schwab@suse.de>
11389
11390 * resolv/res_send.c (__res_context_send): Don't set errno when
11391 returing error after malloc failure.
11392
11393 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11394
11395 * nptl/allocatestack.c (allocate_stack): Remove the
11396 !__ASSUME_PRIVATE_FUTEX paths.
11397 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11398 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11399 Likewise.
11400 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11401 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11402 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11403 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11404 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11405 !__ASSUME_PRIVATE_FUTEX path.
11406 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11407 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11408 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11409 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11410 !__ASSUME_PRIVATE_FUTEX macros.
11411 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11412 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11413 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11414 * sysdeps/unix/sysv/linux/kernel-features.h
11415 (__ASSUME_PRIVATE_FUTEX): Removed.
11416
11417 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11418
11419 * math/Makefile (libm-narrow-fns): Add div.
11420 (libm-test-funcs-narrow): Likewise.
11421 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11422 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11423 * math/gen-auto-libm-tests.c (test_functions): Add div.
11424 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11425 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11426 (NARROW_DIV_TRIVIAL): Likewise.
11427 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11428 macro.
11429 (__ddivl): Likewise.
11430 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11431 ddiv.
11432 (CFLAGS-nldbl-ddiv.c): New variable.
11433 (CFLAGS-nldbl-fdiv.c): Likewise.
11434 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11435 __nldbl_ddivl.
11436 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11437 prototype.
11438 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11439 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11440 * math/auto-libm-test-in: Add tests of div.
11441 * math/auto-libm-test-out-narrow-div: New generated file.
11442 * math/libm-test-narrow-div.inc: New file.
11443 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11444 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11445 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11446 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11447 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11448 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11449 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11450 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11451 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11452 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11453 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11454 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11455 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11456 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11457 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11458 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11459 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11460 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11461 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11462 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11472 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11473 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11474 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11479 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11480 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11481 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11487
11488 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11489
11490 [BZ #23178]
11491 * nscd/nscd-client.h (sendfileall): Remove prototype.
11492 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11493 (handle_request): Use writeall instead of sendfileall.
11494 * nscd/aicache.c (addhstaiX): Likewise.
11495 * nscd/grpcache.c (cache_addgr): Likewise.
11496 * nscd/hstcache.c (cache_addhst): Likewise.
11497 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11498 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11499 * nscd/pwdcache.c (cache_addpw): Likewise.
11500 * nscd/servicescache.c (cache_addserv): Likewise.
11501 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11502 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11503 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11504 Remove define.
11505
11506 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11507
11508 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11509 Include <string/strncat.c>.
11510 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11511 alias.
11512 (__GI___strncat): New hidden alias.
11513
11514 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11515
11516 * sysdeps/mips/mips32/libm-test-ulps: Update.
11517 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11518
11519 2018-05-16 Florian Weimer <fweimer@redhat.com>
11520
11521 * support/Makefile (libsupport-routines): Add support_quote_blob,
11522 support_test_compare_blob.
11523 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11524 * support/check.h (TEST_COMPARE_BLOB): Define.
11525 (support_test_compare_blob): Declare.
11526 * support/support.h (support_quote_blob): Declare.
11527 * support/support_quote_blob.c: New file.
11528 * support/support_test_compare_blob.c: Likewise.
11529 * support/tst-support_quote_blob.c: Likewise.
11530 * support/tst-test_compare_blob.c: Likewise.
11531
11532 2018-05-16 Florian Weimer <fweimer@redhat.com>
11533
11534 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11535 of <strtod_nan_double.h>.
11536 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11537 instead of SET_MANTISSA.
11538 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11539 of include <strtod_nan_float.h>.
11540 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11541 instead of <strtod_nan_ldouble.h>.
11542 * stdlib/strtod_nan_double.h: Move to ...
11543 * sysdeps/generic/math-nan-payload-double.h: ... here.
11544 (FLOAT): Remove definition.
11545 (SET_MANTISSA): Rename to ...
11546 (SET_NAN_PAYLOAD): ... this.
11547 * stdlib/strtod_nan_float.h: Move to ...
11548 * sysdeps/generic/math-nan-payload-float.h: ... here.
11549 (FLOAT): Remove definition.
11550 (SET_MANTISSA): Rename to ...
11551 (SET_NAN_PAYLOAD): ... this.
11552 * sysdeps/generic/math-type-macros-double.h: Include
11553 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11554 instead of <math-svid-compat.h>.
11555 * sysdeps/generic/math-type-macros-float.h: Include
11556 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11557 instead of <math-svid-compat.h>.
11558 * sysdeps/generic/math-type-macros-float128.h: Include
11559 <math-nan-payload-float128.h>.
11560 * sysdeps/generic/math-type-macros-ldouble.h: Include
11561 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11562 instead of <math-svid-compat.h>.
11563 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11564 check for definition.
11565 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11566 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11567 Include <ieee754_float128.h>.
11568 (FLOAT): Remove definition.
11569 (SET_MANTISSA): Rename to ...
11570 (SET_NAN_PAYLOAD): ... this.
11571 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11572 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11573 Do not include <float128_private.h>.
11574 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11575 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11576 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11577 (FLOAT): Remove definition.
11578 (SET_MANTISSA): Rename to ...
11579 (SET_NAN_PAYLOAD): ... this.
11580 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11581 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11582 (FLOAT): Remove definition.
11583 (SET_MANTISSA): Rename to ...
11584 (SET_NAN_PAYLOAD): ... this.
11585 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11586 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11587 (FLOAT): Remove definition.
11588 (SET_MANTISSA): Rename to ...
11589 (SET_NAN_PAYLOAD): ... this.
11590 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11591 of "../stdlib/strtod_nan_double.h".
11592 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11593 of "../stdlib/strtod_nan_float.h".
11594 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11595 instead of "../stdlib/strtod_nan_ldouble.h".
11596 * manual/arith.texi (Parsing of Floats): Adjust comment.
11597
11598 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11599
11600 * math/Makefile (libm-narrow-fns): Add mul.
11601 (libm-test-funcs-narrow): Likewise.
11602 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11603 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11604 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11605 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11606 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11607 (NARROW_MUL_TRIVIAL): Likewise.
11608 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11609 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11610 macro.
11611 (__dmull): Likewise.
11612 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11613 dmul.
11614 (CFLAGS-nldbl-dmul.c): New variable.
11615 (CFLAGS-nldbl-fmul.c): Likewise.
11616 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11617 __nldbl_dmull.
11618 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11619 prototype.
11620 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11621 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11622 * math/auto-libm-test-in: Add tests of mul.
11623 * math/auto-libm-test-out-narrow-mul: New generated file.
11624 * math/libm-test-narrow-mul.inc: New file.
11625 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11626 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11627 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11628 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11629 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11630 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11631 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11632 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11633 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11634 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11635 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11636 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11637 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11638 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11639 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11640 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11641 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11642 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11643 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11644 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11669
11670 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11671
11672 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11673 with *%eax in call.
11674
11675 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11676
11677 * sysdeps/i386/ldsodefs.h: Removed.
11678 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11679 * sysdeps/x86/ldsodefs.h: This.
11680 (La_i86_regs): New.
11681 (La_i86_retval): Likewise.
11682 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11683 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11684
11685 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11686
11687 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11688 unnecessary testl.
11689
11690 2018-05-13 Alan Modra <amodra@gmail.com>
11691
11692 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11693 R_PARISC_TLS_DTPOFF32 reloc addend.
11694
11695 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11696
11697 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11698 * math/math.h: Restrict the prototype definition for the functions
11699 issignaling(_Float128) and iszero(_Float128); and template
11700 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11701 __HAVE_FLOAT128_UNLIKE_LDBL.
11702 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11703 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11704 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11705 __f128() constants; define the type _Float128 as long double;
11706 and reuse long double in __CFLOAT128.
11707
11708 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11709
11710 * sysdeps/generic/math_private.h: Do not include
11711 <math-barriers.h>.
11712 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11713 <math_private.h>.
11714 * math/fromfp.h: Include <math-barriers.h>.
11715 * math/math-narrow.h: Likewise.
11716 * math/s_nextafter.c: Likewise.
11717 * math/s_nexttowardf.c: Likewise.
11718 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11719 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11720 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11721 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11722 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11723 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11724 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11725 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11726 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11727 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11728 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11729 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11730 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11731 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11732 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11733 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11734 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11735 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11736 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11737 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11738 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11739 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11740 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11741 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11742 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11743 * sysdeps/ieee754/k_standardl.c: Likewise.
11744 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11745 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11746 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11747 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11748 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11749 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11750 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11751 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11752 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11753 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11754 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11755 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11756 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11757 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11758 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11759 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11760 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11761 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11762 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11763 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11764 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11765 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11766
11767 2018-05-11 Florian Weimer <fweimer@redhat.com>
11768
11769 Use 64-bit epoch values in the time zone file parser.
11770 * include/time.h (internal_time_t): Define.
11771 (__tzfile_compute): Use it.
11772 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11773 member.
11774 (transitions): Switch to internal_time_t.
11775 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11776 types.
11777 (__tzfile_compute): Use internal_time_t for timer argument. Check
11778 for truncation before calling __offtime.
11779
11780 2018-05-11 Florian Weimer <fweimer@redhat.com>
11781
11782 [BZ #23166]
11783 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11784 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11785 Likewise.
11786 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11787 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11788 export without --enable-obsolete-rpc.
11789 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11790 symbol. This should not have been exported, ever.
11791
11792 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11793
11794 [BZ #23152]
11795 * localedata/locales/gd_GB (abmon): Fix typo in May:
11796 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11797
11798 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11799
11800 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11801 Use multiple registers to copy data in loop tail.
11802
11803 * sysdeps/aarch64/multiarch/memmove_falkor.S
11804 (__memmove_falkor): Use multiple registers to move data in
11805 loop tail.
11806
11807 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11808
11809 * math/math-underflow.h: New file.
11810 * sysdeps/generic/math_private.h: Do not include <float.h>.
11811 (fabs_tg): Remove macro. Moved to math-underflow.h.
11812 (min_of_type_f): Likewise.
11813 (min_of_type_): Likewise.
11814 (min_of_type_l): Likewise.
11815 (min_of_type_f128): Likewise.
11816 (min_of_type): Likewise.
11817 (math_check_force_underflow): Likewise.
11818 (math_check_force_underflow_nonneg): Likewise.
11819 (math_check_force_underflow_complex): Likewise.
11820 * math/e_exp2_template.c: Include <math-underflow.h>.
11821 * math/k_casinh_template.c: Likewise.
11822 * math/s_catan_template.c: Likewise.
11823 * math/s_catanh_template.c: Likewise.
11824 * math/s_ccosh_template.c: Likewise.
11825 * math/s_cexp_template.c: Likewise.
11826 * math/s_clog10_template.c: Likewise.
11827 * math/s_clog_template.c: Likewise.
11828 * math/s_csin_template.c: Likewise.
11829 * math/s_csinh_template.c: Likewise.
11830 * math/s_csqrt_template.c: Likewise.
11831 * math/s_ctan_template.c: Likewise.
11832 * math/s_ctanh_template.c: Likewise.
11833 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11834 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11835 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11836 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11837 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11838 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11839 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11840 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11841 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11842 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11843 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11844 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11845 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11846 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11847 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11848 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11849 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11850 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11851 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11852 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11853 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11854 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11855 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11856 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11857 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11858 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11859 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11860 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11861 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11862 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11863 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11864 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11865 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11866 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11867 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11868 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11869 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11870 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11871 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11872 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11873 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11874 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11875 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11876 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11877 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11878 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11879 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11880 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11881 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11882 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11883 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11884 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11885 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11886 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11887 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11888 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11889 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11890 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11891 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11892 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11893 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11894 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11895 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11896 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11897 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11898 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11899 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11900 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11901 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11902 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11903 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11904 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11905 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11906 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11907 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11908 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11909 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11910 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11911 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11912 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11913 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11914 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11915 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11916 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11917
11918 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11919
11920 * sysdeps/generic/math-barriers.h: New file.
11921 * sysdeps/generic/math_private.h [!math_opt_barrier]
11922 (math_opt_barrier): Move to math-barriers.h.
11923 [!math_opt_barrier] (math_force_eval): Likewise.
11924 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11925 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11926 math-barriers.h.
11927 (math_force_eval): Likewise.
11928 * sysdeps/alpha/fpu/math-barriers.h: New file.
11929 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11930 math-barriers.h.
11931 (math_force_eval): Likewise.
11932 * sysdeps/x86/fpu/math-barriers.h: New file.
11933 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11934 math-barriers.h.
11935 (math_force_eval): Likewise.
11936 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11937 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11938 multiple-include guard for rename.
11939 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11940 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11941 math-barriers.h.
11942 (math_force_eval): Likewise.
11943
11944 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11945
11946 [BZ #22786]
11947 CVE-2018-11236
11948 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11949 computation.
11950 * stdlib/Makefile (test-bz22786): New test.
11951 * stdlib/test-bz22786.c: New test.
11952
11953 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11954
11955 * include/math-narrow-eval.h: New file. Contents moved from ....
11956 * sysdeps/generic/math_private.h: ... here.
11957 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11958 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11959 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11960 * stdlib/strtod_l.c: Likewise.
11961 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11962 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11963 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11964 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11965 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11966 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11967 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11968 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11969 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11970 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11971 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11972 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11973 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11974 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11975 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11976 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11977 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11978 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11979 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11980 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11981 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11982 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11983 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11984 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11985 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11986 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11987 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11988 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11989 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11990
11991 2018-05-08 Andreas Schwab <schwab@suse.de>
11992
11993 * sysdeps/nptl/internaltypes.h: Fix comment.
11994
11995 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11996
11997 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11998 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11999 hidden.
12000
12001 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12002
12003 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12004 of I into loop header.
12005 * benchtests/bench-memmove-walk.c
12006 (test_main): Likewise.
12007
12008 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12009
12010 Revert:
12011 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12012 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12013
12014 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12015
12016 [BZ #20419]
12017 * elf/dl-load.c (open_verify): Fix stack overflow.
12018 * elf/Makefile (tst-big-note): New test.
12019 * elf/tst-big-note-lib.S: New.
12020 * elf/tst-big-note.c: New.
12021
12022 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12023
12024 * scripts/abilist.awk: Ignore absolute symbols.
12025 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12026 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12027 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12028 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12029 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12030 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12031 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12032 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12033 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12034 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12035 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12036 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12039 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12040 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12045 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12046 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12047 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12048 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12049 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12050 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12061 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12062 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12063 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12064 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12065 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12066 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12073 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12074 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12078 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12080 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12117 Likewise.
12118 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12131 Likewise.
12132 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12159 Likewise.
12160 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12180 Likewise.
12181 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12206 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12207 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12212 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12213 Likewise.
12214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12219 Likewise.
12220 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12221 Likewise.
12222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12224 Likewise.
12225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12227 Likewise.
12228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12229 Likewise.
12230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12233 Likewise.
12234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12235 Likewise.
12236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12237 Likewise.
12238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12242 Likewise.
12243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12249 Likewise.
12250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12252 Likewise.
12253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12254 Likewise.
12255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12256 Likewise.
12257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12258 Likewise.
12259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12262 Likewise.
12263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12264 Likewise.
12265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12266 Likewise.
12267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12270 Likewise.
12271 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12285 Likewise.
12286 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12298 Likewise.
12299 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12324 Likewise.
12325 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12338 Likewise.
12339 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12377
12378 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12379
12380 [BZ #23137]
12381 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12382 Use atomic_load_acquire to load __tid.
12383
12384 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12385
12386 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12387 Restore the pointer into %rdx, after syscall and use %rdx,
12388 instead of %rsi, to restore context.
12389
12390 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12391
12392 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12393 Pop the pointer into %rdx after syscall and use %rdx, instead
12394 of %rsi, to restore context.
12395
12396 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12397
12398 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12399 handlers after setjmp.
12400 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12401 defined.
12402 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12403 <libc-pointer-arith.h>.
12404 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12405 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12406 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12407 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12408 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12409 * sysdeps/x86/__longjmp_cancel.S: New file.
12410 * sysdeps/x86/longjmp.c: Likewise.
12411 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12412
12413 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12414
12415 * NEWS: Add ustat.h deprecation entry.
12416 * bits/ustat.h: Remove file.
12417 * misc/sys/ustat.h: Likewise.
12418 * misc/ustat.h: Likewise.
12419 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12420 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12421 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12422 compatibility mode.
12423 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12424 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12425 generic Linux implementation.
12426
12427 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12428
12429 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12430 * math/w_expl_compat.c: Likewise.
12431 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12432
12433 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12434
12435 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12436
12437 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12438
12439 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12440 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12441 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12442 Remove.
12443 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12445 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12446 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12447 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12448 and SYSCALL_LL64.
12449
12450 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12451
12452 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12453
12454 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12455 * math/w_asin_template.c: Likewise.
12456 * math/w_atanh_template.c: Likewise.
12457
12458 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12459
12460 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12461 to powerpc/powerpc64/be for big-endian.
12462 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12463 little-endian.
12464
12465 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12466 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12467 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12468 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12469 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12470 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12471 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12472 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12473 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12474 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12475 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12476 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12477 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12478 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12479 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12480 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12481 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12482 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12483 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12484 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12485 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12486 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12487 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12488 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12489 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12490 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12491 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12492 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12493 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12494 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12495 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12496 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12497
12498 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12499 adjusted to imply powerpc64 and older processors on powerpc64/be.
12500 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12501 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12502 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12503 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12504 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12505 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12506 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12507 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12508 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12509 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12510 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12511 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12512 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12513 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12514 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12515 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12516 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12517 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12518 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12519 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12520 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12521 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12522 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12523 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12524 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12525 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12526 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12527 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12528 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12529 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12530 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12531
12532 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12533 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12534 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12535 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12536
12537 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12538 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12539 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12540 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12541
12542 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12543 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12544 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12545 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12546 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12547 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12548 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12549 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12550 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12551 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12552 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12553
12554 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12555 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12556 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12557 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12558 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12559 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12560 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12561 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12562 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12563 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12564 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12565
12566 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12567 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12568 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12569 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12570 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12571 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12572 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12573 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12574 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12575 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12576 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12577 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12578
12579 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12580 and adjusted to imply olders processors.
12581 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12582 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12583 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12584 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12585 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12586 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12587 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12588 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12589 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12590 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12591 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12592
12593 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12594 powerpc64/le.
12595 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12596 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12597
12598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12599 powerpc64le.
12600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12602
12603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12604 powerpc64/be.
12605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12608
12609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12610 powerpc64 and adjusted.
12611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12614 Likewise.
12615
12616 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12617
12618 * sysdeps/tile: Remove.
12619 * sysdeps/unix/sysv/linux/tile: Likewise.
12620 * README (tilegx-*-linux-gnu): Remove from list of supported
12621 configurations.
12622 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12623 contribution of support for generic Linux kernel syscall
12624 interface.
12625 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12626 tilegx configurations.
12627 (Config.install_linux_headers): Do not handle tile.
12628 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12629 in comment.
12630 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12631 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12632 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12633 conditional undefine and redefine.
12634 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12635 in comment.
12636 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12637 conditional undefine and redefine.
12638
12639 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12640
12641 * signal/tst-sigaction.c: New file to test BZ #23069.
12642 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12643
12644 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12645
12646 [BZ #22766]
12647 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12648 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12649 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12650 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12651
12652 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12653
12654 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12655 _DIRENT_MATCHES_DIRENT64 is not defined.
12656 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12657 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12658 is defined.
12659 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12660 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12661
12662 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12663
12664 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12665 version to GCC 8 branch.
12666
12667 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12668
12669 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12670 (check_no_hidden): Use type of original function when declaring
12671 alias.
12672
12673 * sysdeps/unix/sysv/linux/sys/ptrace.h
12674 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12675 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12676 (struct __ptrace_seccomp_metadata): New type.
12677 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12678 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12679 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12680 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12681 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12682 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12683 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12684 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12685 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12686 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12687 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12688 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12689 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12690 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12691 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12692 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12693
12694 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12695
12696 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12697 defined.
12698 * dirent/versionsort.c (versionsort): Likewise.
12699 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12700 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12701 * dirent/versionsort64.c (versionsort64): Likewise.
12702 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12703 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12704 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12705 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12706 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12707 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12708 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12709 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12710 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12711 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12714 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12715 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12716
12717 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12718
12719 * elf/elf.h (NT_PPC_PKEY): New macro.
12720
12721 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12722
12723 [BZ #23094]
12724 * localedata/locales/hr_HR: fix thousands_sep and
12725 mon_thousands_sep
12726
12727 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12728
12729 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12730 (XTABS): Define to TAB3.
12731
12732 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12733
12734 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12735
12736 * dirent/scandir-tail-common.c: New file.
12737 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12738 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12739 * dirent/scandir.c: Use scandir-tail-common.c.
12740 * dirent/scandirat.c: Likewise.
12741 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12742 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12743 if _DIRENT_MATCHES_DIRENT64 is defined.
12744 * dirent/scandirat64.c (scandirat64): Likewise.
12745 * include/dirent.h (__scandir_tail): Only define iff
12746 _DIRENT_MATCHES_DIRENT64 is not defined.
12747 (__scandir64_tail): Define regardless.
12748 (__scandirat, scandirat64): Remove libc_hidden_proto.
12749 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12750 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12752 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12753 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12754 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12755 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12756
12757 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12758
12759 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12760 New macro.
12761 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12762 Increase to 24.
12763 (_dl_aarch64_cap_flags): Add asimdfhm.
12764
12765 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12766
12767 * sysdeps/nios2/libm-test-ulps: Update.
12768
12769 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12770
12771 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12772 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12773
12774 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12775 requirements.
12776 (_DIRENT_MATCHES_DIRENT64): Undef
12777 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12778 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12779 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12780 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12781 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12782 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12783 use getdents64 syscalls as base.
12784 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12785 symbol if required.
12786 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12787 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12788 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12789 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12790 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12791 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12792 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12793 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12794 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12795 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12796 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12797
12798 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12799
12800 * scripts/test_printers_common.py (init_test): Disable lock elision.
12801
12802 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12803
12804 * math/test-tgmath.c (count_double, count_float,
12805 count_ldouble, count_cdouble, count_cfloat,
12806 count_cldouble): Use volatile int.
12807
12808 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12809
12810 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12811 (conformtest-xfail-conds): Add i386-gnu.
12812 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12813 i386-gnu.
12814 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12815 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12816 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12817 msqid_ds.msg_lrpid): Likewise.
12818 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12819 Likewise.
12820 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12821 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12822 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12823 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12824 unsigned int.
12825 (struct statvfs64): Likewise.
12826 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12827 Likewise.
12828 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12829 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12830 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12831 instead of wait_queue.
12832 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12833 instead of vm_area_struct.
12834 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12835 struct sched_param definition to it.
12836 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12837 * bits/types/struct_sched_param.h: New file.
12838 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12839 <bits/types/struct_sched_param.h> instead of <sched.h>.
12840 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12841 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12842 generic version but include <bits/pthreadtypes.h> to make struct
12843 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12844 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12845 non-compliant.
12846 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12847 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12848 [__USE_XOPEN] (OFDEL): New macro.
12849 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12850 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12851 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12852 prototypes.
12853 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12854 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12855 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12856 non-compliant.
12857 * sysdeps/i386/sys/ucontext.h: Likewise.
12858 * sysdeps/m68k/sys/ucontext.h: Likewise.
12859 * sysdeps/mips/sys/ucontext.h: Likewise.
12860 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12861 * sysdeps/mach/hurd/i386/Makefile
12862 (test-xfail-POSIX/fcntl.h/conform): Add.
12863 (test-xfail-POSIX/signal.h/conform): Add.
12864 (test-xfail-POSIX/semaphore.h/conform): Add.
12865 (test-xfail-POSIX/regex.h/conform): Add.
12866 (test-xfail-POSIX/aio.h/conform): Add.
12867 (test-xfail-POSIX/mqueue.h/conform): Add.
12868 (test-xfail-POSIX/sys/types.h/conform): Add.
12869 (test-xfail-UNIX98/fcntl.h/conform): Add.
12870 (test-xfail-UNIX98/netdb.h/conform): Add.
12871 (test-xfail-UNIX98/signal.h/conform): Add.
12872 (test-xfail-UNIX98/semaphore.h/conform): Add.
12873 (test-xfail-UNIX98/regex.h/conform): Add.
12874 (test-xfail-UNIX98/aio.h/conform): Add.
12875 (test-xfail-UNIX98/ftw.h/conform): Add.
12876 (test-xfail-UNIX98/mqueue.h/conform): Add.
12877 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12878 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12879 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12880 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12881 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12882 (test-xfail-UNIX98/sys/types.h/conform): Add.
12883 (test-xfail-UNIX98/stdlib.h/conform): Add.
12884 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12885 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12886 (test-xfail-POSIX2008/netdb.h/conform): Add.
12887 (test-xfail-POSIX2008/signal.h/conform): Add.
12888 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12889 (test-xfail-POSIX2008/regex.h/conform): Add.
12890 (test-xfail-POSIX2008/aio.h/conform): Add.
12891 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12892 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12893 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12894 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12895 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12896 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12897 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12898 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12899 (test-xfail-XOPEN2K/signal.h/conform): Add.
12900 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12901 (test-xfail-XOPEN2K/regex.h/conform): Add.
12902 (test-xfail-XOPEN2K/aio.h/conform): Add.
12903 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12904 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12905 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12906 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12907 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12908 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12909 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12910 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12911 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12912 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12913 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12914 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12915 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12916 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12917 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12918 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12919 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12920 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12921 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12922 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12923 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12924 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12925 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12926 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12927 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12928 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12929 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12930 i386-gnu.
12931 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12932 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12933
12934 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12935
12936 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12937 --enable-obsolete for powerpc-linux-gnuspe.
12938
12939 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12940
12941 * conform/data/sys/un.h-data: Allow sun_ prefix.
12942 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12943 prototypes.
12944 * sysdeps/mach/include/mach.h: Likewise.
12945 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12946 * sysdeps/mach/include/mach_error.h: Likewise.
12947
12948 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12949
12950 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12951 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12952 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12953 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12954
12955 2018-04-16 Andreas Schwab <schwab@suse.de>
12956
12957 [BZ #19527]
12958 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12959
12960 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12961
12962 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12963 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12964
12965 2018-04-12 DJ Delorie <dj@redhat.com>
12966
12967 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12968 version to 4.16.
12969
12970 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12971
12972 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12973 (struct kernel_sigaction): Use the same definition on 31bit as is used
12974 on 64bit.
12975
12976 2018-04-09 Florian Weimer <fweimer@redhat.com>
12977
12978 [BZ #23037]
12979 * resolv/res_send.c (send_dg): Use designated initializers instead
12980 of assignment to zero-initialize other fields of struct mmsghdr.
12981
12982 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12983
12984 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12985 __READDIR_ALIAS): Undefine after usage.
12986 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12987 __READDIR_R_ALIAS): Likewise.
12988 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12989 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12990 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12991 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12992 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12993 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12994 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12995 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12996 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12997 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12998 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12999 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13000 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13001 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13002 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13003 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13004 * sysdeps/unix/sysv/linux/readdir.c: New file.
13005 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13006 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13007 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13008
13009 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13010
13011 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13012
13013 * manual/charset.texi (Converting a Character): Fix typo.
13014
13015 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13016
13017 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13018
13019 * sysdeps/arm/libm-test-ulps: Update.
13020
13021 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13022 as base implementation.
13023 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13024 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13025 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13026 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13027 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13028 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13029 remove unrequired definitions and update comments.
13030 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13031 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13032 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13033 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13034 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13035 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13036 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13037 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13038 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13039 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13040 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13041 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13042 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13043 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13044 and RESET_SA_RESTORER hooks.
13045
13046 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13047
13048 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13049
13050 2018-04-05 Florian Weimer <fweimer@redhat.com>
13051
13052 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13053 integer overflow, memory leak on error, and indeterminate errno
13054 value. Add a null wide character to terminate the result string.
13055 * manual/charset.texi (Converting a Character): Mention embedded
13056 null bytes in the mbrtowc input string. Explain what happens in
13057 the -2 result case. Do not claim that mbrtowc is simple or
13058 obvious to use. Adjust the description of the code example. Use
13059 @code, not @var, for concrete variables.
13060
13061 2018-04-05 Florian Weimer <fweimer@redhat.com>
13062
13063 * manual/examples/mbstouwcs.c: New file.
13064 * manual/charset.texi (Converting a Character): Include it.
13065
13066 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13067
13068 * include/dirent.h (dirfd): Add hidden proto.
13069 * dirent/dirfd.c (dirfd): Add hidden def.
13070 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13071 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13072
13073 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13074
13075 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13076 sin, cos and sincos to 1 ULP.
13077
13078 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13079
13080 [BZ #19818]
13081 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13082 symbols.
13083 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13084 * elf/tst-absolute-sym.c: New file.
13085 * elf/tst-absolute-sym-lib.c: New file.
13086 * elf/tst-absolute-sym-lib.lds: New file.
13087 * elf/Makefile (tests): Add `tst-absolute-sym'.
13088 (modules-names): Add `tst-absolute-sym-lib'.
13089 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13090 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13091 ($(objpfx)tst-absolute-sym): New dependency.
13092
13093 [BZ #19818]
13094 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13095 parameter.
13096 (SYMBOL_ADDRESS): New macro.
13097 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13098 SYMBOL_ADDRESS for symbol address calculation.
13099 * elf/dl-runtime.c (_dl_fixup): Likewise.
13100 (_dl_profile_fixup): Likewise.
13101 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13102 * elf/rtld.c (dl_main): Likewise.
13103 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13104 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13105 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13106 (elf_machine_rela): Likewise.
13107 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13108 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13109 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13110 (elf_machine_rela): Likewise.
13111 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13112 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13113 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13114 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13115 Likewise.
13116 (elf_machine_reloc): Likewise.
13117 (elf_machine_got_rel): Likewise.
13118 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13119 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13120 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13121 Likewise.
13122 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13123 Likewise.
13124 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13125 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13126 Likewise.
13127 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13128 Likewise.
13129 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13130 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13131 Likewise.
13132 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13133 Likewise.
13134 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13135 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13136
13137 2018-04-04 Zack Weinberg <zackw@panix.com>
13138
13139 * sysdeps/generic/internal-signals.h: Include signal.h,
13140 sigsetops.h, and stdbool.h.
13141 (__libc_signal_block_all): Actually block all signals.
13142 (__libc_signal_block_app): Likewise.
13143 (__libc_signal_restore_set): Actually restore the signal mask.
13144
13145 2018-04-04 Florian Weimer <fweimer@redhat.com>
13146
13147 inet: Actually build and run tst-deadline.
13148 * inet/Makefile (tests-internal): Add tst-deadline and do not
13149 overwrite the variable.
13150 (tests-static-internal): Remove variable.
13151
13152 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13153
13154 [BZ #22947]
13155 * bits/uio-ext.h (RWF_APPEND): New.
13156 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13157 * manual/llio.texi: Document RWF_APPEND.
13158 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13159 (RWF_SUPPORTED): Add RWF_APPEND.
13160
13161 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13162
13163 [BZ #22391]
13164 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13165 check for internal nptl signals.
13166 * nptl/sigaction.c (__sigaction): Likewise.
13167 * signal/sigaddset.c (sigaddset): Likewise.
13168 * signal/sigdelset.c (sigdelset): Likewise.
13169 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13170 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13171 value.
13172 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13173 to filter out internal nptl signals.
13174 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13175 also check realtime signals using standard macros.
13176 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13177 __is_internal_signal, __libc_signal_block_all,
13178 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13179 * sysdeps/nptl/sigfillset.c: Remove file.
13180 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13181 Change return to bool.
13182 (__clear_internal_signals): Remove SIGTIMER clean since it is
13183 equal to SIGCANEL on Linux.
13184 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13185 signal set was constructed using standard functions.
13186
13187 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13188
13189 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13190 ifname is too long.
13191 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13192 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13193 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13194 hidden def.
13195 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13196 * signal/sigaddset.c: Include <sigsetopts.h>.
13197 * signal/sigdelset.c: Likewise.
13198
13199 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13200
13201 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13202 (__cos): Likewise.
13203 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13204 logic as sin and cos.
13205
13206 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13207
13208 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13209 inputs. Return correct sign.
13210 (do_sincos): Remove small input check before do_sin, let do_sin set
13211 the sign.
13212 (__sin): Likewise.
13213 (__cos): Likewise.
13214
13215 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13216
13217 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13218 (do_cos_slow): Likewise.
13219 (do_sin_slow): Likewise.
13220 (reduce_and_compute): Likewise.
13221 (slow): Likewise.
13222 (slow1): Likewise.
13223 (slow2): Likewise.
13224 (sloww): Likewise.
13225 (sloww1): Likewise.
13226 (sloww2): Likewise.
13227 (bslow): Likewise.
13228 (bslow1): Likewise.
13229 (bslow2): Likewise.
13230 (cslow2): Likewise.
13231
13232 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13233
13234 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13235 (do_cos): Remove corp parameter and calculations.
13236 (do_sin): Likewise.
13237 (do_sincos): Remove cor variable.
13238 (__sin): Use do_sincos for huge inputs.
13239 (__cos): Likewise.
13240 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13241 (reduce_and_compute_sincos): Remove unused function.
13242
13243 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13244
13245 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13246 reduce_sincos, improve accuracy to 136 bits.
13247 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13248 (__sin): Use improved reduction and simplified do_sincos calculation.
13249 (__cos): Likewise.
13250 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13251
13252 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13253
13254 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13255 (do_sincos_2): Likewise.
13256 (__sin): Remove middle range reduction case.
13257 (__cos): Likewise.
13258 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13259 reduction case.
13260
13261 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13262
13263 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13264 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13265 inputs.
13266 (__cos): Likewise.
13267 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13268
13269 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13270
13271 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13272 version to 4.16
13273
13274 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13275
13276 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13277 Remove definitions.
13278 (opendir_oflags): Use O_DIRECTORY regardless.
13279 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13280 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13281
13282 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13283
13284 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13285 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13286 macros.
13287 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13288 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13289 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13290 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13291 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13292 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13293
13294 * htl/Makefile: Bump licence to LGPL 2.1+.
13295 * htl/alloca_cutoff.c: Likewise.
13296 * htl/cthreads-compat.c: Likewise.
13297 * htl/lockfile.c: Likewise.
13298 * htl/pt-alloc.c: Likewise.
13299 * htl/pt-cancel.c: Likewise.
13300 * htl/pt-cleanup.c: Likewise.
13301 * htl/pt-create.c: Likewise.
13302 * htl/pt-dealloc.c: Likewise.
13303 * htl/pt-detach.c: Likewise.
13304 * htl/pt-exit.c: Likewise.
13305 * htl/pt-getattr.c: Likewise.
13306 * htl/pt-initialize.c: Likewise.
13307 * htl/pt-internal.h: Likewise.
13308 * htl/pt-join.c: Likewise.
13309 * htl/pt-self.c: Likewise.
13310 * htl/pt-setcancelstate.c: Likewise.
13311 * htl/pt-setcanceltype.c: Likewise.
13312 * htl/pt-sigmask.c: Likewise.
13313 * htl/pt-spin-inlines.c: Likewise.
13314 * htl/pt-testcancel.c: Likewise.
13315 * htl/pt-yield.c: Likewise.
13316 * htl/tests/test-1.c: Likewise.
13317 * htl/tests/test-10.c: Likewise.
13318 * htl/tests/test-11.c: Likewise.
13319 * htl/tests/test-12.c: Likewise.
13320 * htl/tests/test-13.c: Likewise.
13321 * htl/tests/test-14.c: Likewise.
13322 * htl/tests/test-15.c: Likewise.
13323 * htl/tests/test-16.c: Likewise.
13324 * htl/tests/test-17.c: Likewise.
13325 * htl/tests/test-2.c: Likewise.
13326 * htl/tests/test-3.c: Likewise.
13327 * htl/tests/test-4.c: Likewise.
13328 * htl/tests/test-5.c: Likewise.
13329 * htl/tests/test-6.c: Likewise.
13330 * htl/tests/test-7.c: Likewise.
13331 * htl/tests/test-8.c: Likewise.
13332 * htl/tests/test-9.c: Likewise.
13333 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13334 * sysdeps/htl/bits/cancelation.h: Likewise.
13335 * sysdeps/htl/bits/pthread-np.h: Likewise.
13336 * sysdeps/htl/bits/pthread.h: Likewise.
13337 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13338 * sysdeps/htl/bits/semaphore.h: Likewise.
13339 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13340 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13341 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13342 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13343 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13344 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13345 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13346 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13347 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13348 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13349 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13350 * sysdeps/htl/old_pt-atfork.c: Likewise.
13351 * sysdeps/htl/pt-atfork.c: Likewise.
13352 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13353 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13354 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13355 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13356 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13357 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13358 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13359 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13360 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13361 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13362 * sysdeps/htl/pt-attr-init.c: Likewise.
13363 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13364 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13365 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13366 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13367 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13368 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13369 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13370 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13371 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13372 * sysdeps/htl/pt-attr.c: Likewise.
13373 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13374 * sysdeps/htl/pt-barrier-init.c: Likewise.
13375 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13376 * sysdeps/htl/pt-barrier.c: Likewise.
13377 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13378 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13379 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13380 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13381 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13382 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13383 * sysdeps/htl/pt-cond-init.c: Likewise.
13384 * sysdeps/htl/pt-cond-signal.c: Likewise.
13385 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13386 * sysdeps/htl/pt-cond-wait.c: Likewise.
13387 * sysdeps/htl/pt-cond.c: Likewise.
13388 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13389 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13390 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13391 * sysdeps/htl/pt-condattr-init.c: Likewise.
13392 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13393 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13394 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13395 * sysdeps/htl/pt-equal.c: Likewise.
13396 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13397 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13398 * sysdeps/htl/pt-getschedparam.c: Likewise.
13399 * sysdeps/htl/pt-getspecific.c: Likewise.
13400 * sysdeps/htl/pt-init-specific.c: Likewise.
13401 * sysdeps/htl/pt-key-create.c: Likewise.
13402 * sysdeps/htl/pt-key-delete.c: Likewise.
13403 * sysdeps/htl/pt-key.h: Likewise.
13404 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13405 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13406 * sysdeps/htl/pt-mutex-init.c: Likewise.
13407 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13408 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13409 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13410 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13411 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13412 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13413 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13414 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13415 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13416 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13417 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13418 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13419 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13420 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13421 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13422 * sysdeps/htl/pt-mutexattr.c: Likewise.
13423 * sysdeps/htl/pt-once.c: Likewise.
13424 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13425 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13426 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13427 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13428 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13429 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13430 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13431 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13432 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13433 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13434 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13435 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13436 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13437 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13438 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13439 * sysdeps/htl/pt-setschedparam.c: Likewise.
13440 * sysdeps/htl/pt-setschedprio.c: Likewise.
13441 * sysdeps/htl/pt-setspecific.c: Likewise.
13442 * sysdeps/htl/pt-spin.c: Likewise.
13443 * sysdeps/htl/pt-startup.c: Likewise.
13444 * sysdeps/htl/pthread.h: Likewise.
13445 * sysdeps/htl/sem-close.c: Likewise.
13446 * sysdeps/htl/sem-destroy.c: Likewise.
13447 * sysdeps/htl/sem-getvalue.c: Likewise.
13448 * sysdeps/htl/sem-init.c: Likewise.
13449 * sysdeps/htl/sem-open.c: Likewise.
13450 * sysdeps/htl/sem-post.c: Likewise.
13451 * sysdeps/htl/sem-timedwait.c: Likewise.
13452 * sysdeps/htl/sem-trywait.c: Likewise.
13453 * sysdeps/htl/sem-unlink.c: Likewise.
13454 * sysdeps/htl/sem-wait.c: Likewise.
13455 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13456 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13457 * sysdeps/mach/htl/pt-block.c: Likewise.
13458 * sysdeps/mach/htl/pt-spin.c: Likewise.
13459 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13460 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13461 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13462 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13463 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13464 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13465 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13466 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13467 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13468 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13469 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13470 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13471 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13472 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13473 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13474 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13475 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13476 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13477 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13478 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13479 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13480 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13481 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13482 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13483 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13484 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13485 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13486 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13487 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13488 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13489 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13490 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13491 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13492 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13493 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13494 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13495 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13496 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13497 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13498 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13499 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13500 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13501 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13502
13503 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13504 * README: Remove the mention of out-of-tree patches needed for
13505 GNU/Hurd.
13506
13507 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13508 (UTIME_NOW, UTIME_OMIT): Define macros.
13509
13510 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13511 instead of pthread_detach.
13512 (__cthread_fork): Call __pthread_create instead of pthread_create.
13513 (__cthread_keycreate): Call __pthread_key_create instead of
13514 pthread_key_create.
13515 (__cthread_getspecific): Call __pthread_getspecific instead of
13516 pthread_getspecific.
13517 (__cthread_setspecific): Call __pthread_setspecific instead of
13518 pthread_setspecific.
13519 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13520 __pthread_mutex_unlock instead of pthread_mutex_lock and
13521 pthread_mutex_unlock.
13522 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13523 ___pthread_get_cleanup_stack.
13524 (__pthread_get_cleanup_stack): New strong alias.
13525 * htl/pt-create.c: Include <pthreadP.h>.
13526 (entry_point): Call __pthread_exit instead of pthread_exit.
13527 (pthread_create): Rename to __pthread_create.
13528 (pthread_create): New strong alias.
13529 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13530 (pthread_detach): New strong alias.
13531 (__pthread_detach): Call __pthread_cond_broadcast instead of
13532 pthread_cond_broadcast.
13533 * htl/pt-exit.c: Include <pthreadP.h>.
13534 (__pthread_exit): Call __pthread_setcancelstate and
13535 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13536 __pthread_get_cleanup_stack.
13537 * htl/pt-testcancel.c: Include <pthreadP.h>.
13538 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13539 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13540 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13541 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13542 pthread_attr_getstacksize.
13543 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13544 Rename to __pthread_attr_getstackaddr.
13545 (pthread_attr_getstackaddr): New strong alias.
13546 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13547 Rename to __pthread_attr_getstacksize.
13548 (pthread_attr_getstacksize): New strong alias.
13549 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13550 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13551 (pthread_attr_setstack): New strong alias.
13552 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13553 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13554 pthread_attr_getstacksize, pthread_attr_setstacksize and
13555 pthread_attr_setstackaddr.
13556 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13557 Rename to __pthread_attr_setstackaddr.
13558 (pthread_attr_setstackaddr): New strong alias.
13559 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13560 Rename to __pthread_attr_setstacksize.
13561 (pthread_attr_setstacksize): New strong alias.
13562 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13563 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13564 pthread_exit.
13565 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13566 (__pthread_key_create): New hidden def.
13567 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13568 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13569 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13570 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13571 __pthread_setspecific, __pthread_setcancelstate,
13572 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13573 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13574 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13575 declarations.
13576 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13577 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13578 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13579 (pthread_attr_setstackaddr): New strong alias.
13580 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13581 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13582 (pthread_attr_setstacksize): New strong alias.
13583 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13584 (call_exit): Call __pthread_exit instead of pthread_exit.
13585 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13586 (_pthread_mutex_init): New hidden definition.
13587 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13588 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13589 instead of pthread_attr_init and pthread_attr_setstack.
13590
13591 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13592 __vm_deallocate instead of vm_allocate and vm_deallocate.
13593 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13594 setenv.
13595 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13596 of geteuid.
13597 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13598 strdup.
13599 * hurd/siginfo.c: Include <libioP.h>.
13600 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13601 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13602 munmap.
13603 * mach/devstream.c: Include <libioP.h>.
13604 (dealloc_ref): Call __mach_port_deallocate instead of
13605 mach_port_deallocate.
13606 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13607 Call __mach_port_deallocate instead of mach_port_deallocate.
13608 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13609 pathconf.
13610 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13611 munmap.
13612 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13613 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13614 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13615 of munmap.
13616 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13617 of close.
13618 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13619 instead of sysconf.
13620 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13621 __clock_gettime instead of clock_gettime.
13622 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13623 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13624 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13625 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13626 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13627 tcgetattr.
13628 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13629 __clock_gettime and __nanosleep instead of clock_gettime and
13630 nanosleep.
13631 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13632 __hurd_catch_signal.
13633 (hurd_catch_signal): New strong alias.
13634 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13635 __hurd_catch_signal instead of hurd_catch_signal.
13636 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13637 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13638 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13639 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13640 (_hurd_thread_sigstate): Add hidden def.
13641 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13642 mutex_unlock.
13643 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13644 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13645 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13646 __hurd_file_name_path_lookup.
13647 (hurd_file_name_path_lookup): New strong alias.
13648 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13649 hurd_file_name_path_lookup.
13650 * mach/errstring.c (mach_error_type): Add hidden def.
13651 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13652 * mach/mutex-init.c (__mutex_init): Add hidden def.
13653 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13654 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13655 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13656 * sysdeps/mach/hurd/getcwd.c
13657 (_hurd_canonicalize_directory_name_internal): Rename to
13658 __hurd_canonicalize_directory_name_internal.
13659 (_hurd_canonicalize_directory_name_internal): New strong alias.
13660 (__canonicalize_directory_name_internal, __getcwd): Call
13661 __hurd_canonicalize_directory_name_internal instead of
13662 _hurd_canonicalize_directory_name_internal.
13663 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13664 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13665 hidden defs.
13666 * sysdeps/hurd/include/hurd.h: New file.
13667 * sysdeps/hurd/include/hurd/fd.h: New file.
13668 * sysdeps/hurd/include/hurd/signal.h: New file.
13669 * sysdeps/mach/include/lock-intern.h: New file.
13670 * sysdeps/mach/include/mach.h: New file.
13671 * sysdeps/mach/include/mach/mig_support.h: New file.
13672 * sysdeps/mach/include/mach_error.h: New file.
13673 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13674 prototype.
13675 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13676 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13677 _HEADER_H_HIDDEN_DEF macro.
13678 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13679 _hurd_fd_error_signal): Add hidden prototype.
13680 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13681 hidden def.
13682 * libio/iolibio.h (_IO_puts): New hidden prototype.
13683 * libio/ioputs.c (_IO_puts): New hidden def.
13684 * sysdeps/mach/hurd/localplt.data: New file.
13685
13686 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13687 Amos Jeffries <squid3@treenet.co.nz>
13688 David Michael <fedora.dm0@gmail.com>
13689 Marco Gerards <marco@gnu.org>
13690 Marcus Brinkmann <marcus@gnu.org>
13691 Neal H. Walfield <neal@gnu.org>
13692 Pino Toscano <toscano.pino@tiscali.it>
13693 Richard Braun <rbraun@sceen.net>
13694 Roland McGrath <roland@gnu.org>
13695 Samuel Thibault <samuel.thibault@ens-lyon.org>
13696 Thomas DiModica <ricinwich@yahoo.com>
13697 Thomas Schwinge <tschwinge@gnu.org>
13698
13699 * htl: New directory.
13700 * sysdeps/htl: New directory.
13701 * sysdeps/hurd/htl: New directory.
13702 * sysdeps/i386/htl: New directory.
13703 * sysdeps/mach/htl: New directory.
13704 * sysdeps/mach/hurd/htl: New directory.
13705 * sysdeps/mach/hurd/i386/htl: New directory.
13706 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13707 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13708 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13709
13710 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13711
13712 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13713 signals in thread created for runing timers.
13714
13715 2018-04-01 Florian Weimer <fweimer@redhat.com>
13716
13717 * support/support_format_addrinfo.c (support_format_addrinfo):
13718 Include unknown error number in formatted result.
13719
13720 2018-03-29 Florian Weimer <fweimer@redhat.com>
13721
13722 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13723 capture SIGBUS.
13724
13725 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13726
13727 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13728 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13729 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13730 (__ASSUME_CLONE_BACKWARDS): Define.
13731
13732 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13733
13734 [BZ #23024]
13735 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13736 early when linux sentinel value is set.
13737
13738 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13739
13740 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13741
13742 2018-03-27 Andreas Schwab <schwab@suse.de>
13743
13744 [BZ #23005]
13745 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13746 allocation of private copy of nsaddr_list fails.
13747
13748 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13749
13750 [BZ #16552]
13751 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13752 * sysdeps/unix/sysv/linux/umount.c: ... here.
13753 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13754 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13755 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13756 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13758 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13759 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13760
13761 2018-03-26 Andreas Schwab <schwab@suse.de>
13762
13763 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13764 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13765 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13766 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13767 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13768 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13769 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13770 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13771 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13772 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13773 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13774 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13775 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13776 (R_RISCV_NUM): Define.
13777
13778 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13779
13780 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13781 TLS declaration of errno.
13782 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13783 __libc_setup_tls.
13784 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13785 (ARCH_SETUP_TLS): Likewise.
13786 * sysdeps/mach/hurd/libc-start.h: New file copied from
13787 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13788 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13789 instead of __libc_setup_tls.
13790 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13791 __libc_setup_tls before initializing libpthread and running _hurd_init
13792 which starts the signal thread.
13793 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13794 Declare function.
13795 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13796
13797 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13798
13799 [BZ #22998]
13800 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13801 after it is defined.
13802
13803 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13804 Max Horn <max@quendi.de>
13805
13806 [BZ #22644]
13807 CVE-2017-18269
13808 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13809 branch conditions.
13810 * string/test-memmove.c (do_test2): New testcase.
13811
13812 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13813
13814 * sysdeps/generic/frame.h: Remove file.
13815 * sysdeps/arm/frame.h: Likewise.
13816 * sysdeps/hppa/frame.h: Likewise.
13817 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13818 macro.
13819 (GET_FRAME): Likewise.
13820 (GET_STACK): Likewise.
13821 (CALL_SIGHANDLER): Likewise.
13822 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13823 Likewise.
13824 (GET_FRAME): Likewise.
13825 (GET_STACK): Likewise.
13826 (CALL_SIGHANDLER): Likewise.
13827 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13828 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13829 (GET_FRAME): Likewise.
13830 (GET_STACK): Likewise.
13831 (CALL_SIGHANDLER): Likewise.
13832 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13833 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13834 (GET_FRAME): Likewise.
13835 (GET_STACK): Likewise.
13836 (ADVANCE_STACK_FRAME): Likewise.
13837 (CALL_SIGHANDLER): Likewise.
13838 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13839 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13840 (GET_FRAME): Likewise.
13841 (GET_STACK): Likewise.
13842 (CALL_SIGHANDLER): Likewise.
13843 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13844 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13845 (GET_FRAME): Likewise.
13846 (GET_STACK): Likewise.
13847 (CALL_SIGHANDLER): Likewise.
13848 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13849 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13850 (GET_FRAME): Likewise.
13851 (GET_STACK): Likewise.
13852 (CALL_SIGHANDLER): Likewise.
13853 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13854 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13855 (GET_FRAME): Likewise.
13856 (GET_STACK): Likewise.
13857 (CALL_SIGHANDLER): Likewise.
13858 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13859 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13860 (GET_FRAME): Likewise.
13861 (GET_STACK): Likewise.
13862 (CALL_SIGHANDLER): Likewise.
13863 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13864 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13865 (GET_FRAME): Likewise.
13866 (GET_STACK): Likewise.
13867 (CALL_SIGHANDLER): Likewise.
13868 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13869 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13870 (GET_FRAME): Likewise.
13871 (GET_STACK): Likewise.
13872 (CALL_SIGHANDLER): Likewise.
13873 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13874 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13875 (GET_FRAME): Likewise.
13876 (GET_STACK): Likewise.
13877 (CALL_SIGHANDLER): Likewise.
13878 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13879 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13880 (GET_FRAME): Likewise.
13881 (GET_STACK): Likewise.
13882 (CALL_SIGHANDLER): Likewise.
13883 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13884 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13885 (FIRST_FRAME_POINTER): Likewise.
13886 (ADVANCE_STACK_FRAME): Likewise.
13887 (GET_STACK): Likewise.
13888 (GET_FRAME): Likewise.
13889 (CALL_SIGHANDLER): Likewise.
13890 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13891 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13892 (ADVANCE_STACK_FRAME): Likewise.
13893 (GET_STACK): Likewise.
13894 (GET_FRAME): Likewise.
13895 (CALL_SIGHANDLER): Likewise.
13896 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13897 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13898 (GET_FRAME): Likewise.
13899 (GET_STACK): Likewise.
13900 (CALL_SIGHANDLER): Likewise.
13901 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13902 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13903 (GET_FRAME): Likewise.
13904 (GET_STACK): Likewise.
13905 (CALL_SIGHANDLER): Likewise.
13906
13907 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13908
13909 * sysdeps/x86_64/backtrace.c: Move to ....
13910 * debug/backtrace.c: ... here.
13911 * sysdeps/aarch64/backtrace.c: Remove file.
13912 * sysdeps/alpha/backtrace.c: Likewise.
13913 * sysdeps/hppa/backtrace.c: Likewise.
13914 * sysdeps/ia64/backtrace.c: Likewise.
13915 * sysdeps/mips/backtrace.c: Likewise.
13916 * sysdeps/nios2/backtrace.c: Likewise.
13917 * sysdeps/riscv/backtrace.c: Likewise.
13918 * sysdeps/sh/backtrace.c: Likewise.
13919 * sysdeps/tile/backtrace.c: Likewise.
13920
13921 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13922
13923 [BZ #22987]
13924 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13925 function.
13926 (fdimf): Likewise.
13927 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13928
13929 [BZ #17343]
13930 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13931 possibly overflowing computations.
13932
13933 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13934
13935 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13936 values from Linux-specific section now that it is in the GNU section.
13937 * sysdeps/gnu/errlist.c: Regenerate.
13938
13939 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13940
13941 * math/Makefile (libm-narrow-fns): Add sub.
13942 (libm-test-funcs-narrow): Likewise.
13943 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13944 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13945 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13946 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13947 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13948 (NARROW_SUB_TRIVIAL): Likewise.
13949 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13950 macro.
13951 (__dsubl): Likewise.
13952 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13953 dsub.
13954 (CFLAGS-nldbl-dsub.c): New variable.
13955 (CFLAGS-nldbl-fsub.c): Likewise.
13956 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13957 __nldbl_dsubl.
13958 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13959 prototype.
13960 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13961 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13962 * math/auto-libm-test-in: Add tests of sub.
13963 * math/auto-libm-test-out-narrow-sub: New generated file.
13964 * math/libm-test-narrow-sub.inc: New file.
13965 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13966 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13967 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13968 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13969 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13970 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13971 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13972 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13973 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13974 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13975 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13976 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13977 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13978 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13979 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13980 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13981 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13982 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13983 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13984 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13995 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13996 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14002 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14003 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14004 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14005 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14006 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14007 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14008 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14009 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14010 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14011
14012 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14013
14014 [BZ #20079]
14015 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14016
14017 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14018
14019 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14020
14021 2018-03-18 Richard Braun <rbraun@sceen.net>
14022
14023 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14024 thread reference.
14025
14026 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14027
14028 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14029 (__libc_cleanup_fct): Define function.
14030 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14031 __libc_cleanup_end): Rewrite implementation using
14032 __attribute__ ((__cleanup__)).
14033 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14034 * hurd/Makefile (routines): Add hurdlock.
14035 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14036 interface.
14037 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14038 * hurd/hurdpid.c: Include <lowlevellock.h>
14039 (_S_msg_proc_newids): Use lll_wait to synchronize.
14040 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14041 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14042 * mach/Makefile (lock-headers): Remove machine-lock.h.
14043 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14044 <machine-lock.h>.
14045 (__spin_lock_t): New type.
14046 (__SPIN_LOCK_INITIALIZER): New macro.
14047 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14048 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14049 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14050 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14051 (__mutex_init): Initialize with lll.
14052 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14053 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14054 needing lll.
14055 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14056 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14057 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14058 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14059 (__setpgid): Use lll for synchronization.
14060 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14061 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14062 instead of <cthreads.h>.
14063 (_IO_lock_inexpensive): New macro
14064 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14065 (__libc_lock_self0): New declaration.
14066 (__libc_lock_owner_self): New macro.
14067 (__libc_key_t): Remove type.
14068 (_LIBC_LOCK_INITIALIZER): New macro.
14069 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14070 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14071 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14072 __libc_lock_define_initialized_recursive,
14073 __rtld_lock_define_initialized_recursive,
14074 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14075 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14076 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14077 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14078 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14079 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14080 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14081 New macros.
14082 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14083 * hurd/hurdlock.c: New file.
14084 * hurd/hurdlock.h: New file.
14085 * mach/lowlevellock.h: New file
14086
14087 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14088
14089 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14090 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14091 when opening a symlink with O_NOFOLLOW.
14092 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14093 path when flags contains O_NOFOLLOW.
14094 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14095 if flags contains O_DIRECTORY and the result is a directory.
14096 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14097 oneself when the pointer given in D is nul (as set by ext2fs).
14098 * sysdeps/mach/hurd/mlockall.c: New file.
14099 * sysdeps/mach/hurd/munlockall.c: New file.
14100
14101 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14102
14103 * hurd/hurdsig.c: Include <pthread.h>.
14104 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14105 get the signal thread stack layout.
14106 * hurd/Makefile (headers): Remove threadvar.h.
14107 (inline-headers): Remove threadvar.h.
14108 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14109 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14110 __hurd_threadvar_max, __hurd_errno_location.
14111 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14112 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14113 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14114 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14115 unless TLS is not initialized yet, in which case we do not need a
14116 critical section yet anyway.
14117 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14118 <machine-sp.h>.
14119 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14120 declarations.
14121 (__hurd_threadvar_index): Remove enum.
14122 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14123 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14124 inlines.
14125 (__hurd_reply_port0): New variable declaration.
14126 (__hurd_local_reply_port): New macro.
14127 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14128 (interrupted_reply_port_location): Add thread_t parameter. Use it
14129 with THREAD_TCB to access thread-local variables.
14130 (_hurdsig_abort_rpcs): Pass ss->thread to
14131 interrupted_reply_port_location.
14132 (_hurd_internal_post_signal): Likewise.
14133 (_hurdsig_init): Use presence of cthread_fork instead of
14134 __hurd_threadvar_stack_mask to start signal thread by hand.
14135 Remove signal thread threadvar initialization.
14136 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14137 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14138 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14139 of threadvar.
14140 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14141 __libc_lock_self0.
14142 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14143 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14144 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14145 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14146 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14147 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14148 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14149 define variables.
14150 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14151 <hurd/threadvar.h>.
14152 [IS_IN(rtld)] (rtld_errno): New variable.
14153 [IS_IN(rtld)] (__errno_location): New weak function.
14154 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14155 * sysdeps/mach/hurd/errno.c: Remove file.
14156 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14157 (__fork): Remove THREADVAR_SPACE macro and its use.
14158 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14159 variable.
14160 (init): Do not initialize threadvar.
14161 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14162 symbol.
14163 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14164 __hurd_local_reply_port instead of threadvar.
14165 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14166 _hurd_sigstate fields.
14167 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14168 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14169 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14170 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14171 instead of threadvar.
14172 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14173 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14174 (use_threadvar, global_reply_port): Remove variables.
14175 (__hurd_reply_port0): New variable.
14176 (__mig_get_reply_port): Use __hurd_local_reply_port and
14177 __hurd_reply_port0 instead of threadvar.
14178 (__mig_dealloc_reply_port): Likewise.
14179 (__mig_init): Do not initialize threadvar.
14180 * sysdeps/mach/hurd/profil.c: Fix comment.
14181 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14182 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14183 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14184 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14185 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14186 __cthread_setspecific.
14187 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14188 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14189 __cthread_t instead of cthread_fork, cthread_detach,
14190 pthread_getattr_np, pthread_attr_getstack.
14191 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14192 __cthread_keycreate.
14193 (cthread_getspecific): Rename to __cthread_getspecific.
14194 (cthread_setspecific): Rename to __cthread_setspecific.
14195 (__libc_getspecific): Use __cthread_getspecific instead of
14196 cthread_getspecific.
14197 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14198 __cthread_keycreate instead of cthread_keycreate.
14199 (__libc_setspecific): Use __cthread_setspecific instead of
14200 cthread_setspecific.
14201 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14202 Likewise.
14203 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14204 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14205 testing whether it is defined.
14206
14207 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14208
14209 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14210 Define macro.
14211 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14212 * sysdeps/mach/i386/thread_state.h
14213 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14214 i386_THREAD_STATE.
14215 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14216 i386_THREAD_STATE.
14217 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14218
14219 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14220 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14221
14222 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14223 macros.
14224 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14225 descriptor instead of creating a new one.
14226 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14227
14228 * mach/setup-thread.c: Include <ldsodefs.h>.
14229 (__mach_setup_thread): Call _dl_allocate_tls, pass
14230 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14231 MACHINE_THREAD_STATE_FLAVOR, before getting
14232 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14233 MACHINE_THREAD_STATE_FLAVOR with the result.
14234 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14235 MACHINE_THREAD_STATE_FIX_NEW.
14236 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14237 too. Add original thread parameter.
14238
14239 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14240
14241 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14242 Remove inline function.
14243
14244 * sysdeps/i386/fpu/libm-test-ulps: Update.
14245 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14246
14247 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14248
14249 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14250 commit.
14251
14252 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14253
14254 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14255 (__sincos_code): Remove define and undefine.
14256 [__FAST_MATH__] (__sincos): Remove inline function.
14257 [__FAST_MATH__] (__sincosf): Remove inline function.
14258 [__FAST_MATH__] (__sincosl): Remove inline function.
14259 (__atan2l): Remove inline functions.
14260 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14261 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14262 function.
14263 (floor): Remove inline function.
14264 (ceil): Likewise.
14265 [__FAST_MATH__] (__ldexp_code): Remove macro.
14266 [__FAST_MATH__] (ldexp): Remove inline function.
14267 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14268 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14269 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14270 [__USE_ISOC99] (__lrint_code): Remove macro.
14271 [__USE_ISOC99] (__llrint_code): Likewise.
14272 [__USE_ISOC99] (lrintf): Remove inline function.
14273 [__USE_ISOC99] (lrint): Likewise.
14274 [__USE_ISOC99] (lrintl): Likewise.
14275 [__USE_ISOC99] (llrint): Likewise.
14276 [__USE_ISOC99] (llrintf): Likewise.
14277 [__USE_ISOC99] (llrintl): Likewise.
14278
14279 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14280
14281 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14282 (__ieee754_sqrtf): Remove.
14283 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14284 (__ieee754_sqrtf): Remove.
14285 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14286 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14287 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14288 (__ieee754_sqrtf): Remove.
14289 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14290 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14291 (sqrtf): Remove.
14292 (sqrtl): Remove.
14293 (__ieee754_sqrt): Remove.
14294 (__ieee754_sqrtf): Remove.
14295 (__ieee754_sqrtl): Remove.
14296 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14297 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14298 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14299 (__ieee754_sqrtf): Remove.
14300 (__ieee754_sqrtl): Remove.
14301
14302 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14303
14304 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14305 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14306 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14307 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14308 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14309 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14310 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14311 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14312 Likewise.
14313 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14314 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14315 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14316 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14317 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14318 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14319 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14320 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14321 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14322 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14323 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14324 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14325 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14326 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14327 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14328 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14329 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14330 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14331 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14332 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14333 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14334 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14335 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14336 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14337 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14338 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14339 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14340 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14341 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14342 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14343 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14344 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14345 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14346 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14347 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14348 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14349 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14350 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14351 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14352 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14353
14354 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14355
14356 * include/math.h (sqrt): Declare with asm redirect.
14357 (sqrtf): Likewise.
14358 (sqrtl): Likewise.
14359 (sqrtf128): Likewise.
14360 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14361 nonlib and libnldbl with -fmath-errno.
14362 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14363 * math/w_sqrt_template.c: Likewise.
14364 * math/w_sqrtf_compat.c: Likewise.
14365 * math/w_sqrtl_compat.c: Likewise.
14366 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14367 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14368 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14369 complex.h.
14370
14371 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14372
14373 * benchtests/Makefile: Define _ISOMAC.
14374 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14375 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14376 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14377 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14378 * benchtests/bench-timing.h: Define attribute_hidden.
14379
14380 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14381
14382 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14383 mov + lsr.
14384
14385 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14386
14387 [BZ #22963]
14388 * localedata/locales/cs_CZ (mon): Rename to...
14389 (alt_mon): This.
14390 (mon): Import from CLDR (genitive case).
14391
14392 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14393
14394 [BZ #22937]
14395 * localedata/locales/el_CY (abmon): Rename to...
14396 (ab_alt_mon): This.
14397 (abmon): Import from CLDR (abbreviated genitive case).
14398 * localedata/locales/el_GR (abmon): Rename to...
14399 (ab_alt_mon): This.
14400 (abmon): Import from CLDR (abbreviated genitive case).
14401
14402 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14403
14404 [BZ #22932]
14405 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14406
14407 2018-03-15 Robert Buj <robert.buj@gmail.com>
14408
14409 [BZ #22848]
14410 * localedata/locales/ca_ES (abmon): Rename to...
14411 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14412 (mon): Rename to...
14413 (alt_mon): This.
14414 (abmon): Import from CLDR (genitive case, month names preceded by
14415 "de" or "d’").
14416 (mon): Likewise.
14417 (abday): Synchronize with CLDR.
14418 (d_t_fmt): Likewise.
14419 (d_fmt): Likewise.
14420 (am_pm): Likewise.
14421
14422 (LC_TIME): Improve indentation.
14423 (LC_TELEPHONE): Likewise.
14424 (LC_NAME): Likewise.
14425 (LC_ADDRESS): Likewise.
14426
14427 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14428
14429 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14430 (lrintf): Remove definitions used only with old GCC.
14431 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14432 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14433 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14434 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14435 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14436 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14437 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14438 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14439 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14440 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14441 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14442 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14443 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14444 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14445 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14446 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14447 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14448 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14449 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14450 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14451 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14452 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14453 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14454 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14455 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14456 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14457 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14458 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14459
14460 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14461
14462 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14463 instruction to unbreak builds with binutils 2.26 and older.
14464
14465 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14466
14467 * sysdeps/aarch64/strncmp.S (count): New macro.
14468 (strncmp): Store misaligned length in SRC1 in COUNT.
14469 (mutual_align): Adjust.
14470 (misaligned8): Load dword at a time when it is safe.
14471
14472 2018-03-12 Zack Weinberg <zackw@panix.com>
14473
14474 [BZ #1190]
14475 [BZ #19476]
14476 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14477 if the _IO_EOF_SEEN bit is already set; update commentary.
14478 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14479 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14480
14481 * support/support_openpty.c, support/tty.h: New files.
14482 * support/Makefile (libsupport-routines): Add support_openpty.
14483
14484 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14485 New test cases.
14486 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14487 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14488
14489 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14490
14491 * po/pt_BR.po: Update translations.
14492
14493 2018-03-12 David Michael <fedora.dm0@gmail.com>
14494
14495 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14496 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14497 get a port to the startup server.
14498
14499 2018-03-11 Zack Weinberg <zackw@panix.com>
14500
14501 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14502 before nldbl-compat.h.
14503
14504 2018-03-10 Zack Weinberg <zackw@panix.com>
14505
14506 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14507 math.h or math_private.h.
14508
14509 * sysdeps/alpha/fpu/s_isnan.c
14510 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14511 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14512 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14513 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14514 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14515 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14516 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14517 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14518 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14521 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14522 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14523 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14524 Include math_private.h.
14525
14526 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14527 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14528 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14529 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14530 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14531 * sysdeps/powerpc/power7/fpu/s_logb.c:
14532 Include math.h and math_private.h.
14533
14534 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14535 uses of $at in .set noat / .set at.
14536
14537 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14538
14539 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14540 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14541 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14542 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14543 Likewise.
14544
14545 2018-03-09 Florian Weimer <fweimer@redhat.com>
14546
14547 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14548 in comment.
14549
14550 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14551
14552 [BZ #22919]
14553 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14554 Add nop before __startcontext, add explaining comments.
14555
14556 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14557
14558 [BZ #22926]
14559 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14560 empty for __SPE__.
14561 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14562 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14563 Do not build hardware transactional code for __SPE__.
14564 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14565 (__lll_trylock_elision): Likewise.
14566 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14567 (__lll_unlock_elision): Likewise.
14568
14569 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14570 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14571 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14572 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14573 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14574 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14575 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14576 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14577 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14578 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14579 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14580 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14581 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14582 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14583 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14584 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14585 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14586 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14587 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14588 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14589 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14590 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14591 (__ASSUME_CLONE_BACKWARDS): Define.
14592 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14593 __clone2 if __NR_clone2 is defined.
14594 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14595 (__ASSUME_CLONE_BACKWARDS): Likewise.
14596 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14597 (__ASSUME_CLONE_BACKWARDS): Likewise.
14598 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14599 (__ASSUME_CLONE2): Likewise.
14600 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14601 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14602 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14603 variants and the define architecture can use.
14604 (__ASSUME_CLONE_DEFAULT): Define as default.
14605 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14606 (__ASSUME_CLONE_BACKWARDS): Likewise.
14607 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14608 (__ASSUME_CLONE_BACKWARDS): Likewise.
14609 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14610 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14611
14612 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14613
14614 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14615
14616 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14617 time.
14618
14619 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14620 (do_test_limit): Likewise.
14621
14622 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14623 for every implementation.
14624 (do_test): Likewise.
14625
14626 * benchtests/bench-strncmp.c: Convert output to json.
14627
14628 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14629
14630 * io/futimens.c: Add missing start-of-file descriptive comment.
14631 * io/utime.c: Likewise.
14632 * misc/futimesat.c: Likewise.
14633 * misc/utimes.c: Likewise.
14634 * sysdeps/mach/hurd/futimesat.c: Likewise.
14635 * sysdeps/mach/hurd/utimes.c: Likewise.
14636 * sysdeps/posix/utime.c: Likewise.
14637 * sysdeps/posix/utimes.c: Likewise.
14638 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14639 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14640 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14641 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14642
14643 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14644
14645 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14646 hurd_futimes.
14647 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14648 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14649 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14650 (__futimens): Move implementation to...
14651 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14652 utime_tvalue_from_tspec): ... new helper functions.
14653 (hurd_futimens): New function.
14654 * sysdeps/mach/hurd/futimesat.c: New file.
14655 * sysdeps/mach/hurd/utimensat.c: New file.
14656
14657 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14658
14659 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14660 UTIME_OMIT): New macros.
14661 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14662 before reverting to converting time spec to time value and calling
14663 __file_utimes.
14664 * sysdeps/mach/hurd/utime-helper.c: New file.
14665 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14666 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14667 reverting to utime_tvalue_from_tval and __file_utimes.
14668 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14669 (__lutimes): Just call hurd_futimens after lookup.
14670 * sysdeps/mach/hurd/utimes.c: Likewise.
14671
14672 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14673
14674 * bits/sigaction.h: Add include guard.
14675 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14676 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14677 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14678 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14679 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14680 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14681 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14682 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14683 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14684
14685 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14686
14687 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14688 -Wmaybe-uninitialized for -Os.
14689 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14690 this disabling.
14691
14692 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14693
14694 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14695 __INO_T_MATCHES_INO64_T is defined.
14696 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14697 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14698 of definition.
14699 * dirent/alphasort64.c: Likewise.
14700 * dirent/scandir.c: Likewise.
14701 * dirent/scandir64-tail.c: Likewise.
14702 * dirent/scandir64.c: Likewise.
14703 * dirent/scandirat.c: Likewise.
14704 * dirent/scandirat64.c: Likewise.
14705 * dirent/versionsort.c: Likewise.
14706 * dirent/versionsort64.c: Likewise.
14707 * include/dirent.h: Likewise.
14708
14709 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14710 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14711 for socketpair endpoint.
14712 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14713 WRITE_BUFFER_SIZE as buffer size for sending socket.
14714 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14715 issue on system where send is implemented with sendto syscall.
14716 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14717 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14718 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14719 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14720
14721 [BZ #21269]
14722 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14723 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14724 sa_restorer for vDSO case.
14725 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14726
14727 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14728
14729 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14730 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14731 * hurd/hurd/ioctl.h: Include <mach/port.h>
14732 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14733 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14734 <mach/mach_types.h> and <mach/message.h>.
14735 (headers): Move mach/param.h to bits/mach/param.h.
14736 * sysdeps/mach/i386/mach/param.h: Move file to ...
14737 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14738 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14739 of <mach/param.h>.
14740 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14741 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14742 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14743 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14744 trivial, for C++ conformity.
14745 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14746 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14747 Process mig output through $(migheadersed).
14748 * hurd/Makefile (migheadersed): Define variable.
14749 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14750 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14751 headers.
14752 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14753 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14754 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14755 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14756 <bits/types/sigset_t.h>.
14757 [!defined __USE_GNU]: Do not #error out.
14758 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14759 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14760 Include <stddef.h> and <bits/types/sigset_t.h>
14761 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14762 instead of sighandler_t.
14763 * stdlib/errno.h (error_t): Move definition to...
14764 * bits/types/error_t.h: ... new header.
14765 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14766 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14767 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14768 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14769 * hurd/hurd.h: Include <bits/types/error_t.h>
14770 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14771 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14772 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14773 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14774 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14775 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14776 * sysdeps/mach/hurd/futimens.c: New file.
14777
14778 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14779
14780 [BZ #22918]
14781 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14782 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14783 * nscd/gai.c (__nss_hosts_database): Readd definition.
14784 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14785 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14786 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14787
14788 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14789
14790 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14791 (ifunc_one): Likewise.
14792
14793 2018-03-01 DJ Delorie <dj@delorie.com>
14794
14795 [BZ #22342]
14796 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14797 key value.
14798
14799 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14800
14801 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14802 `match_pid' parameter.
14803 (td_ta_thr_iter): Update accordingly.
14804
14805 2018-03-01 Florian Weimer <fweimer@redhat.com>
14806
14807 * nptl/Makefile (install-lib-ldscripts): Remove.
14808 (install): Remove rule.
14809 ($(inst_libdir)/libpthread.so): Likewise.
14810
14811 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14812
14813 [BZ #22896]
14814 * localedata/locales/an_ES: update month and day names,
14815 improve d_fmt, improve postal_fmt, add country_post,
14816 add country_isbn
14817
14818 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14819
14820 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14821 Ukrainian instead of Bulgarian.
14822
14823 2018-03-01 Florian Weimer <fweimer@redhat.com>
14824
14825 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14826 reference.
14827
14828 2018-03-01 Florian Weimer <fweimer@redhat.com>
14829
14830 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14831 * nptl/Makefile (routines): Add pthread_atfork.
14832 (static-only-routines): Set to pthread_atfork.
14833 (libpthread-routines): Remove pthread_atfork.
14834 (libpthread-static-only-routines): Remove.
14835 (install): Update comment.
14836 (libpthread.so): Do not install libpthread_nonshared.a.
14837 (tests): Do not link with libpthread_nonshared.a.
14838 (generated): Remove libpthread_nonshared.a.
14839 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14840 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14841 with libpthread_nonshared.a.
14842
14843 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14844
14845 [BZ #22902]
14846 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14847 (libc_feholdexcept_setroundf128): New macro.
14848 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14849
14850 [BZ #15105]
14851 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14852 libc_hidden_def.
14853 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14854 * include/inttypes.h: New file.
14855
14856 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14857
14858 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14859 -Os in two more places.
14860
14861 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14862
14863 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14864 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14865 be sorted correctly at the moment because of a bug.
14866
14867 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14868
14869 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14870 treat ñ as a primary different character, sync the collation
14871 for Spanish with CLDR.
14872 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14873 * localedata/Makefile: Add new test files.
14874 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14875 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14876 collation order.
14877 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14878 * localedata/am_ET.UTF-8.in: New test file.
14879 * localedata/az_AZ.UTF-8.in: Likewise.
14880 * localedata/be_BY.UTF-8.in: Likewise.
14881 * localedata/ber_DZ.UTF-8.in: Likewise.
14882 * localedata/ber_MA.UTF-8.in: Likewise.
14883 * localedata/bg_BG.UTF-8.in: Likewise.
14884 * localedata/br_FR.UTF-8.in: Likewise.
14885 * localedata/cmn_TW.UTF-8.in: Likewise.
14886 * localedata/crh_UA.UTF-8.in: Likewise.
14887 * localedata/csb_PL.UTF-8.in: Likewise.
14888 * localedata/cv_RU.UTF-8.in: Likewise.
14889 * localedata/cy_GB.UTF-8.in: Likewise.
14890 * localedata/dz_BT.UTF-8.in: Likewise.
14891 * localedata/eo.UTF-8.in: Likewise.
14892 * localedata/es_ES.UTF-8.in: Likewise.
14893 * localedata/fa_IR.UTF-8.in: Likewise.
14894 * localedata/fi_FI.UTF-8.in: Likewise.
14895 * localedata/fil_PH.UTF-8.in: Likewise.
14896 * localedata/fur_IT.UTF-8.in: Likewise.
14897 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14898 * localedata/ha_NG.UTF-8.in: Likewise.
14899 * localedata/ig_NG.UTF-8.in: Likewise.
14900 * localedata/ik_CA.UTF-8.in: Likewise.
14901 * localedata/kk_KZ.UTF-8.in: Likewise.
14902 * localedata/ku_TR.UTF-8.in: Likewise.
14903 * localedata/ky_KG.UTF-8.in: Likewise.
14904 * localedata/ln_CD.UTF-8.in: Likewise.
14905 * localedata/mi_NZ.UTF-8.in: Likewise.
14906 * localedata/ml_IN.UTF-8.in: Likewise.
14907 * localedata/mn_MN.UTF-8.in: Likewise.
14908 * localedata/mr_IN.UTF-8.in: Likewise.
14909 * localedata/mt_MT.UTF-8.in: Likewise.
14910 * localedata/nb_NO.UTF-8.in: Likewise.
14911 * localedata/om_KE.UTF-8.in: Likewise.
14912 * localedata/os_RU.UTF-8.in: Likewise.
14913 * localedata/ps_AF.UTF-8.in: Likewise.
14914 * localedata/ro_RO.UTF-8.in: Likewise.
14915 * localedata/ru_RU.UTF-8.in: Likewise.
14916 * localedata/sc_IT.UTF-8.in: Likewise.
14917 * localedata/se_NO.UTF-8.in: Likewise.
14918 * localedata/sq_AL.UTF-8.in: Likewise.
14919 * localedata/sv_SE.UTF-8.in: Likewise.
14920 * localedata/szl_PL.UTF-8.in: Likewise.
14921 * localedata/tg_TJ.UTF-8.in: Likewise.
14922 * localedata/tk_TM.UTF-8.in: Likewise.
14923 * localedata/tt_RU.UTF-8.in: Likewise.
14924 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14925 * localedata/ug_CN.UTF-8.in: Likewise.
14926 * localedata/uz_UZ.UTF-8.in: Likewise.
14927 * localedata/vi_VN.UTF-8.in: Likewise.
14928 * localedata/yi_US.UTF-8.in: Likewise.
14929 * localedata/yo_NG.UTF-8.in: Likewise.
14930 * localedata/zh_CN.UTF-8.in: Likewise.
14931 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14932 file and fix bugs in the collation.
14933 * localedata/locales/az_AZ: Likewise.
14934 * localedata/locales/be_BY: Likewise.
14935 * localedata/locales/ber_DZ: Likewise.
14936 * localedata/locales/ber_MA: Likewise.
14937 * localedata/locales/bg_BG: Likewise.
14938 * localedata/locales/br_FR: Likewise.
14939 * localedata/locales/br_FR@euro: Likewise.
14940 * localedata/locales/ca_ES: Likewise.
14941 * localedata/locales/cns11643_stroke: Likewise.
14942 * localedata/locales/crh_UA: Likewise.
14943 * localedata/locales/cs_CZ: Likewise.
14944 * localedata/locales/csb_PL: Likewise.
14945 * localedata/locales/cv_RU: Likewise.
14946 * localedata/locales/cy_GB: Likewise.
14947 * localedata/locales/da_DK: Likewise.
14948 * localedata/locales/dz_BT: Likewise.
14949 * localedata/locales/en_CA: Likewise.
14950 * localedata/locales/eo: Likewise.
14951 * localedata/locales/es_CU: Likewise.
14952 * localedata/locales/es_EC: Likewise.
14953 * localedata/locales/es_ES: Likewise.
14954 * localedata/locales/es_US: Likewise.
14955 * localedata/locales/et_EE: Likewise.
14956 * localedata/locales/fa_IR: Likewise.
14957 * localedata/locales/fi_FI: Likewise.
14958 * localedata/locales/fil_PH: Likewise.
14959 * localedata/locales/fur_IT: Likewise.
14960 * localedata/locales/gez_ER@abegede: Likewise.
14961 * localedata/locales/ha_NG: Likewise.
14962 * localedata/locales/hr_HR: Likewise.
14963 * localedata/locales/hsb_DE: Likewise.
14964 * localedata/locales/hu_HU: Likewise.
14965 * localedata/locales/ig_NG: Likewise.
14966 * localedata/locales/ik_CA: Likewise.
14967 * localedata/locales/is_IS: Likewise.
14968 * localedata/locales/iso14651_t1_pinyin: Likewise.
14969 * localedata/locales/kk_KZ: Likewise.
14970 * localedata/locales/ku_TR: Likewise.
14971 * localedata/locales/ky_KG: Likewise.
14972 * localedata/locales/ln_CD: Likewise.
14973 * localedata/locales/lt_LT: Likewise.
14974 * localedata/locales/lv_LV: Likewise.
14975 * localedata/locales/mi_NZ: Likewise.
14976 * localedata/locales/ml_IN: Likewise.
14977 * localedata/locales/mn_MN: Likewise.
14978 * localedata/locales/mr_IN: Likewise.
14979 * localedata/locales/mt_MT: Likewise.
14980 * localedata/locales/nb_NO: Likewise.
14981 * localedata/locales/om_KE: Likewise.
14982 * localedata/locales/os_RU: Likewise.
14983 * localedata/locales/pl_PL: Likewise.
14984 * localedata/locales/ps_AF: Likewise.
14985 * localedata/locales/ro_RO: Likewise.
14986 * localedata/locales/ru_RU: Likewise.
14987 * localedata/locales/ru_UA: Likewise.
14988 * localedata/locales/sc_IT: Likewise.
14989 * localedata/locales/se_NO: Likewise.
14990 * localedata/locales/si_LK: Likewise.
14991 * localedata/locales/sq_AL: Likewise.
14992 * localedata/locales/sv_FI: Likewise.
14993 * localedata/locales/sv_FI@euro: Likewise.
14994 * localedata/locales/sv_SE: Likewise.
14995 * localedata/locales/szl_PL: Likewise.
14996 * localedata/locales/tg_TJ: Likewise.
14997 * localedata/locales/ti_ER: Likewise.
14998 * localedata/locales/tk_TM: Likewise.
14999 * localedata/locales/tl_PH: Likewise.
15000 * localedata/locales/tr_TR: Likewise.
15001 * localedata/locales/tt_RU: Likewise.
15002 * localedata/locales/tt_RU@iqtelif: Likewise.
15003 * localedata/locales/ug_CN: Likewise.
15004 * localedata/locales/uk_UA: Likewise.
15005 * localedata/locales/uz_UZ: Likewise.
15006 * localedata/locales/uz_UZ@cyrillic: Likewise.
15007 * localedata/locales/vi_VN: Likewise.
15008 * localedata/locales/yi_US: Likewise.
15009 * localedata/locales/yo_NG: Likewise.
15010
15011 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15012
15013 * gen-locales.mk: Make test files which contain @ modifiers in their
15014 name work.
15015 * localedata/gen-locale.sh: Likewise.
15016
15017 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15018
15019 * posix/tst-fnmatch.input: Fix results for range expressions
15020 for non C locales.
15021 * posix/tst-regexloc.c: Do not use a range expression for
15022 de_DE.ISO-8859-1 locale.
15023
15024 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15025
15026 * posix/bug-regex5.c: Fix test case because with the new
15027 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15028 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15029 file.
15030
15031 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15032
15033 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15034 downloaded from ISO, the collation order of @-. and space has changed.
15035 Therefore, this test file needed to be adapted.
15036 * localedata/fr_CA.UTF-8.in: Likewise.
15037 * localedata/fr_FR.UTF-8.in: Likewise.
15038 * localedata/uk_UA.UTF-8.in: Likewise.
15039
15040 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15041
15042 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15043 order of ȥ in the new iso14651_t1_common file.
15044 * localedata/pl_PL.UTF-8.in: Likewise.
15045
15046 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15047
15048 * localedata/locales/iso14651_t1_common: Add sections for various
15049 scripts to the iso14651_t1_common file.
15050
15051 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15052
15053 * localedata/locales/iso14651_t1_common: Use the code point of a
15054 character in the fourth collation level instead of IGNORE for all
15055 entries which have IGNORE on all 4 levels.
15056
15057 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15058
15059 * localedata/locales/iso14651_t1_common: Add some convenient collation
15060 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15061 rules similar to those in CLDR.
15062
15063 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15064
15065 * localedata/locales/iso14651_t1_common: The new version of this
15066 file downloaded from ISO contained several syntax errors which
15067 are fixed by this patch.
15068
15069 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15070
15071 * localedata/locales/iso14651_t1_common: replace all <U.....>
15072 with <U000.....> because glibc understands only 4 digit or 8 digit
15073
15074 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15075
15076 * localedata/locales/iso14651_t1_common: Necessary changes
15077 to make the file downloaded from ISO usable by glibc.
15078
15079 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15080
15081 [BZ #14095]
15082 * localedata/locales/iso14651_t1_common: Update file to
15083 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15084
15085 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15086
15087 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15088 of <nptl/pthreadP.h>
15089 (thread_attr_compare): Move function to...
15090 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15091 * sysdeps/nptl/timer_routines.h: ... new header.
15092 * sysdeps/mach/hurd/gai_misc.h: New file.
15093
15094 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15095
15096 * string/strcoll_l.c: Include <libc-diag.h>.
15097 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15098 declarations of seq1 and seq2.
15099
15100 [BZ #15105]
15101 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15102 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15103
15104 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15105
15106 [BZ #22433]
15107 [BZ #22807]
15108 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15109 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15110 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15111 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15112 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15113 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15114
15115 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15116
15117 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15118 macros used in __ptrace_request.
15119
15120 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15121
15122 [BZ #22792]
15123 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15124 to $(CC).
15125 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15126 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15127 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15128 <tcb-offsets.h>.
15129
15130 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15131
15132 [BZ #15105]
15133 * ctype/ctype.c (tolower): Use libc_hidden_def.
15134 (toupper): Likewise.
15135 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15136 [!_ISOMAC] (toupper): Likewise.
15137
15138 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15139
15140 * localedata/Makefile: Remove --quiet argument when
15141 installing locales
15142
15143 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15144
15145 [BZ #17438]
15146 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15147 in d_fmt.
15148 * localedata/locales/pt_PT (LC_TIME): likewise
15149
15150 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15151
15152 [BZ #22646]
15153 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15154 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15155 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15156
15157 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15158
15159 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15160
15161 * nptl/Makefile (routines): Remove unregister-atfork.
15162 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15163 (fork_handler_alloc): Remove function.
15164 (fork_handlers, fork_handler_init): New variables.
15165 (__fork_lock): Rename to atfork_lock.
15166 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15167 to use a dynamic array to add/remove atfork handlers.
15168 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15169 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15170 Remove declaration.
15171 (fork_handler): Remove next, refcntr, and need_signal member.
15172 (__run_fork_handler_type): New enum.
15173 (__run_fork_handlers): New prototype.
15174 * nptl/register-atfork.c: Remove file.
15175 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15176
15177 * sysdeps/nptl/nptl-signals.h: Move to ...
15178 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15179 comments.
15180 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15181 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15182 unnecessary check for SIGTIMER.
15183 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15184 remove unnecessary removal of SIGTIMER.
15185 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15186 include-signals.h rename.
15187 * nptl/pthreadP.h: Likewise.
15188 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15189 __is_internal_signal instead of __nptl_is_internal_signal.
15190
15191 2018-02-22 Andrew Waterman <andrew@sifive.com>
15192
15193 [BZ # 22884]
15194 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15195 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15196 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15197 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15198
15199 2018-02-22 DJ Delorie <dj@delorie.com>
15200
15201 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15202
15203 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15204
15205 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15206 do_misaligned, not misaligned8.
15207
15208 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15209
15210 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15211 Add memcpy_thunderx2.
15212 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15213 Increment to 4.
15214 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15215 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15216 and IS_THUNDERX2PA checks.
15217 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15218 Use macro to set name appropriately.
15219 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15220 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15221 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15222 New macro.
15223 (IS_THUNDERX2): New macro.
15224
15225 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15226
15227 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15228
15229 2018-02-21 Zack Weinberg <zackw@panix.com>
15230
15231 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15232 Define here, unconditionally.
15233 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15234 * libio/libioP.h: Remove #if 0 blocks.
15235 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15236 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15237 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15238
15239 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15240 Assume weak_alias is always defined.
15241
15242 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15243 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15244 Remove #if 0 and #ifdef TODO blocks.
15245 Assume text_set_element is always defined.
15246
15247 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15248 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15249 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15250
15251 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15252 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15253 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15254 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15255 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15256 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15257 Reformat bit flags for _flags field to make occupancy clearer.
15258 Update commentary.
15259 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15260 Keep definitions consistent with those in libio/libio.h.
15261
15262 * libio/libio.h (_IO_file_flags): Remove macro.
15263 All uses changed to _flags.
15264
15265 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15266 (__HAVE_COLUMN, _IO_BE): Don't define.
15267 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15268 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15269 * libio/libioP.h (EOF): Don't define.
15270 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15271 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15272 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15273 testing _IO_UNIFIED_JUMPTABLES.
15274
15275 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15276 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15277 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15278 (_IO_size_t): Delete; all uses changed to size_t.
15279 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15280 (_IO_off_t): Delete; all uses changed to off_t.
15281 (_IO_off64_t): Delete; all uses changed to off64_t.
15282 (_IO_pid_t): Delete; all uses changed to pid_t.
15283 (_IO_uid_t): Delete; all uses changed to uid_t.
15284 (_IO_wint_t): Delete; all uses changed to wint_t.
15285 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15286 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15287 (_IO_cookie_io_functions_t): Delete; all uses changed to
15288 cookie_io_functions_t.
15289 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15290 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15291 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15292 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15293
15294 * libio/iofopncook.c: Remove unnecessary forward declarations.
15295 * libio/iolibio.h: Correct outdated commentary.
15296 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15297 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15298 Remove unnecessary casts.
15299 * stdio-common/getline.c: Use _IO_getdelim directly.
15300 Don't redefine ssize_t.
15301 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15302 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15303 Remove outdated comments.
15304 * stdio-common/vfscanf.c: Don't redefine va_list.
15305
15306 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15307 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15308 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15309 which are always true, and __cplusplus, which is always false.
15310
15311 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15312
15313 [BZ #15105]
15314 [BZ #19463]
15315 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15316 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15317 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15318 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15319 libc_hidden_proto.
15320 [!_ISOMAC] (putc_unlocked): Likewise.
15321 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15322 define inline if [__USE_EXTERN_INLINES].
15323 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15324 putc_unlocked.
15325
15326 [BZ #15105]
15327 [BZ #19463]
15328 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15329 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15330 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15331 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15332 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15333 getc_unlocked.
15334 * time/tzfile.c (__tzfile_read): Likewise.
15335
15336 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15337
15338 [BZ #22517]
15339 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15340
15341 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15342
15343 * io/fcntl.h: Fix a typo in a comment.
15344
15345 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15346
15347 [BZ #22862]
15348 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15349 define _DEFAULT_SOURCE.
15350 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15351
15352 2018-02-21 Florian Weimer <fweimer@redhat.com>
15353
15354 [BZ #20890]
15355 * elf/cache.c (save_cache): Call fsync on temporary file before
15356 renaming it.
15357 (save_aux_cache): Call fdatasync on temporary file before renaming
15358 it.
15359
15360 2018-02-21 Florian Weimer <fweimer@redhat.com>
15361
15362 [BZ #22787]
15363 * include/caller.h: Remove file.
15364 * elf/dl-caller.c: Likewise.
15365 * elf/Makefile (dl-routines): Remove dl-caller.
15366 (shared-only-routines): Do not add dl-caller.
15367 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15368 __check_caller.
15369 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15370 member.
15371 (dl_open_worker): Do not call __check_caller.
15372 (_dl_open): Do not set caller_dl_open member.
15373 * elf/rtld.c (_rtld_global_ro): Do not initialize
15374 _dl_check_caller member.
15375 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15376 _dl_check_caller member.
15377 (_dl_check_caller): Remove declaration.
15378 * sysdeps/unix/sysv/linux/dl-execstack.c
15379 (_dl_make_stack_executable): Do not call __check_caller.
15380
15381 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15382
15383 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15384 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15385
15386 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15387
15388 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15389 description.
15390
15391 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15392
15393 [BZ #16335]
15394 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15395 of 199606L, 200112L, and 200809L.
15396 (_XOPEN_SOURCE): Document special values of 600 and 700.
15397 (_ISOC11_SOURCE): Document macro.
15398 (_ATFILE_SOURCE): Likewise.
15399 (_FORTIFY_SOURCE): Likewise.
15400
15401 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15402
15403 [BZ #15105]
15404 [BZ #19463]
15405 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15406 and define as weak alias of __ferror_unlocked. Use
15407 libc_hidden_weak.
15408 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15409 libc_hidden_proto.
15410 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15411 function if [__USE_EXTERN_INLINES].
15412 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15413 ferror_unlocked.
15414
15415 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15416
15417 [BZ #6889]
15418 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15419
15420 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15421
15422 [BZ #22818]
15423 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15424 the GLIBC_2.1 version.
15425
15426 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15427
15428 [BZ #21508]
15429 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15430 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15431 intl/tst-gettext-de.po from po/de.po by removing the
15432 POT-Creation-Date line.
15433 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15434 ../po/de.po.
15435 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15436 ../po/de.po.
15437
15438 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15439
15440 * mach/Makefile (headers): Add mach/param.h.
15441 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15442 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15443 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15444 (__ptsname_r): Move implementation to...
15445 (__ptsname_internal): ... new function. Add filling the STP
15446 structure.
15447
15448 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15449
15450 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15451 idouble to 1 ULP.
15452
15453 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15454
15455 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15456 syntax.
15457
15458 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15459
15460 * nptl/Makefile (tst-mutex8-ENV): Delete.
15461 * nptl/tst-mutex8.c (check_type):
15462 Add runtime check if mutex will be elided.
15463
15464 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15465
15466 [BZ #20980]
15467 [BZ #21234]
15468 * manual/install.texi (Configuring and compiling): Describe
15469 passing CC and CFLAGS on configure command line, not as
15470 environment variables. Use @code markup on those variables.
15471 Specify what options go in CC and what go in CFLAGS. Note the
15472 requirement to compile with optimization.
15473 * INSTALL: Regenerated.
15474
15475 [BZ #18124]
15476 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15477 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15478 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15479 __sigprocmask instead of sigprocmask.
15480 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15481 Likewise.
15482 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15483 __sigsetjmp and sigprocmask.
15484
15485 [BZ #15105]
15486 * include/argz.h (argz_next): Use libc_hidden_proto.
15487 (__argz_next): Likewise.
15488 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15489 (argz_next): Use libc_hidden_weak.
15490
15491 [BZ #15105]
15492 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15493 libc_hidden_proto.
15494 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15495 libc_hidden_def.
15496
15497 [BZ #15105]
15498 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15499 libc_hidden_proto.
15500 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15501
15502 [BZ #15105]
15503 [BZ #19463]
15504 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15505 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15506 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15507 (__feof_unlocked): New declaration, and inline function if
15508 [__USE_EXTERN_INLINES].
15509 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15510 instead of feof_unlocked.
15511 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15512 * nss/nsswitch.c (nss_parse_file): Likewise.
15513 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15514 Likewise.
15515 * time/getdate.c (__getdate_r): Likewise.
15516 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15517 Define as macro to call __feof_unlocked.
15518
15519 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15520
15521 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15522
15523 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15524
15525 * math/Makefile: Remove mpexp.c and mplog.c
15526 * sysdeps/i386/fpu/mpexp.c: Delete file.
15527 * sysdeps/i386/fpu/mplog.c: Likewise.
15528 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15529 * sysdeps/ia64/fpu/mplog.c: Likewise.
15530 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15531 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15532 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15533 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15534 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15535 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15536 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15537 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15538 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15539 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15540 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15541 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15542 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15543 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15544 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15545 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15546
15547 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15548
15549 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15550
15551 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15552
15553 * sysdeps/sh/libm-test-ulps: Update.
15554
15555 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15556
15557 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15558 idouble to 1 ULP.
15559
15560 2018-02-12 Zack Weinberg <zackw@panix.com>
15561
15562 [BZ #19239]
15563 * posix/sys/types.h: Don't include sys/sysmacros.h.
15564 * misc/sys/sysmacros.h: Remove the conditional deprecation
15565 warnings for the macros defined by this header.
15566
15567 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15568
15569 * manual/probes.texi: Remove slowexp probes.
15570 * math/Makefile: Remove slowexp.
15571 * sysdeps/generic/math_private.h (__slowexp): Remove.
15572 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15573 document error bounds.
15574 * sysdeps/i386/fpu/slowexp.c: Remove.
15575 * sysdeps/ia64/fpu/slowexp.c: Remove.
15576 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15577 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15578 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15579 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15580 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15581 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15582 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15583 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15584 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15585 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15586 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15587
15588 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15589
15590 [BZ #13932]
15591 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15592 * benchtests/pow-inputs: Update comment for slow path cases.
15593 * manual/probes.texi (slowpow_p10): Delete removed probe.
15594 (slowpow_p10): Likewise.
15595 * math/Makefile: Remove halfulp.c and slowpow.c.
15596 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15597 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15598 (__halfulp): Remove.
15599 (__slowpow): Remove.
15600 * sysdeps/i386/fpu/halfulp.c: Delete file.
15601 * sysdeps/i386/fpu/slowpow.c: Likewise.
15602 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15603 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15604 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15605 improve comments and add error analysis.
15606 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15607 (power1): Remove function:
15608 (log1): Remove error argument, add error analysis.
15609 (my_log2): Remove function.
15610 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15611 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15612 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15613 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15614 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15615 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15616 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15617 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15618 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15619 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15620 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15621 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15622 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15623 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15624
15625 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15626
15627 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15628 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15629
15630 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15631
15632 [BZ #22433]
15633 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15634 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15635 and PTRACE_SETHBPREGS.
15636
15637 2018-02-10 Zack Weinberg <zackw@panix.com>
15638
15639 [BZ #22830]
15640 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15641 correctly.
15642 * malloc/tst-malloc-stats-cancellation.c: New test case.
15643 * malloc/Makefile: Add new test case.
15644
15645 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15646
15647 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15648
15649 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15650
15651 * math/Makefile (libm-narrow-fns): Add add.
15652 (libm-test-funcs-narrow): Likewise.
15653 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15654 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15655 * math/gen-auto-libm-tests.c (test_functions): Add add.
15656 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15657 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15658 (NARROW_ADD_TRIVIAL): Likewise.
15659 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15660 macro.
15661 (__daddl): Likewise.
15662 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15663 dadd.
15664 (CFLAGS-nldbl-dadd.c): New variable.
15665 (CFLAGS-nldbl-fadd.c): Likewise.
15666 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15667 __nldbl_daddl.
15668 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15669 prototype.
15670 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15671 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15672 * math/auto-libm-test-in: Add tests of add.
15673 * math/auto-libm-test-out-narrow-add: New generated file.
15674 * math/libm-test-narrow-add.inc: New file.
15675 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15676 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15677 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15678 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15679 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15680 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15681 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15682 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15683 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15684 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15685 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15686 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15687 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15688 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15689 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15690 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15691 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15692 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15693 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15694 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15695 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15696 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15697 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15698 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15699 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15700 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15701 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15702 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15703 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15704 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15705 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15706 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15711 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15712 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15713 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15714 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15715 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15716 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15717 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15718 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15719 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15720 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15721
15722 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15723 (f128-pairs): New variable.
15724 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15725 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15726 to CFLAGS.
15727 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15728 Also make tests add $(f128-loader-link) to gnulib-tests.
15729
15730 2018-02-09 DJ Delorie <dj@redhat.com>
15731
15732 [BZ #22827]
15733 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15734 64-bit ELF type for 64-bit ELF objects.
15735
15736 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15737
15738 * math/libm-test-driver.c (snan_tests_arg): New variable.
15739 * math/libm-test-support.h (snan_tests_arg): New declaration.
15740 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15741
15742 * math/Makefile (test-type-pairs): New variable.
15743 (test-type-pairs-f64xf128-yes): Likewise.
15744 (tests): Add test-narrow-macros.
15745 (libm-test-funcs-narrow): New variable.
15746 (libm-test-c-narrow): Likewise.
15747 (generated): Add $(libm-test-c-narrow).
15748 (libm-tests-base-narrow): New variable.
15749 (libm-tests-narrow): Likewise.
15750 (libm-tests): Add $(libm-tests-narrow).
15751 (libm-tests-for-type): Handle $(libm-tests-narrow).
15752 (libm-test-c-narrow-obj): New variable.
15753 ($(libm-test-c-narrow-obj)): New rule.
15754 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15755 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15756 $(o-iterator) to set dependencies and CFLAGS.
15757 * math/gen-auto-libm-tests.c: Document use for narrowing
15758 functions.
15759 (output_for_one_input_case): Take argument NARROW.
15760 (generate_output): Likewise. Update call to
15761 output_for_one_input_case.
15762 (main): Take --narrow option. Update call to generate_output.
15763 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15764 (apply_lit): Update call to _apply_lit.
15765 (apply_arglit): New function.
15766 (parse_args): Handle "a" arguments.
15767 (parse_auto_input): Handle format names using ":".
15768 * math/README.libm-test: Document "a" parameter type.
15769 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15770 (ARG_TYPE_TRUE_MIN): Likewise.
15771 (ARG_TYPE_MAX): Likwise.
15772 (ARG_MIN_EXP): Likewise.
15773 (ARG_MAX_EXP): Likewise.
15774 (ARG_MANT_DIG): Likewise.
15775 (TEST_COND_arg_ibm128): Likewise.
15776 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15777 (TEST_COND_arg_fmt): New macro.
15778 (init_max_error): Update prototype.
15779 * math/libm-test-support.c (test_ibm128): New variable.
15780 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15781 instead of using [TEST_COND_ibm128] conditional.
15782 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15783 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15784 [TEST_NARROW] (TEST_MSG): New definition.
15785 (arg_plus_zero): New macro.
15786 (arg_minus_zero): Likewise.
15787 (arg_plus_infty): Likewise.
15788 (arg_minus_infty): Likewise.
15789 (arg_qnan_value_pl): Likewise.
15790 (arg_qnan_value): Likewise.
15791 (arg_snan_value_pl): Likewise.
15792 (arg_snan_value): Likewise.
15793 (arg_max_value): Likewise.
15794 (arg_min_value): Likewise.
15795 (arg_min_subnorm_value): Likewise.
15796 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15797 (RUN_TEST_LOOP_aa_f): New macro.
15798 (TEST_SUFF): New macro.
15799 (TEST_SUFF_STR): Likewise.
15800 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15801 (TEST_COND_any_ibm128): New macro.
15802 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15803 this_func. Update call to init_max_error.
15804 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15805 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15806 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15807 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15808 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15809 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15810 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15811 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15812 * math/test-math-vector.h (TEST_NARROW): Likewise.
15813 * math/test-arg-double.h: New file.
15814 * math/test-arg-float128.h: Likewise.
15815 * math/test-arg-float32x.h: Likewise.
15816 * math/test-arg-float64.h: Likewise.
15817 * math/test-arg-float64x.h: Likewise.
15818 * math/test-arg-ldouble.h: Likewise.
15819 * math/test-math-narrow.h: Likewise.
15820 * math/test-narrow-macros.c: Likewise.
15821 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15822 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15823 test-narrow-macros-ldbl-64.
15824 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15825
15826 * math/bits/mathcalls-narrow.h: New file.
15827 * include/bits/mathcalls-narrow.h: Likewise.
15828 * math/math-narrow.h: Likewise.
15829 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15830 (__MATHCALL_NARROW_ARGS_2): Likewise.
15831 (__MATHCALL_NARROW_ARGS_3): Likewise.
15832 (__MATHCALL_NARROW_NORMAL): Likewise.
15833 (__MATHCALL_NARROW_REDIR): Likewise.
15834 (__MATHCALL_NARROW): Likewise.
15835 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15836 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15837 defined.
15838 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15839 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15840 (libm-narrow-fns): New variable.
15841 (libm-narrow-types-basic): Likewise.
15842 (libm-narrow-types-ldouble-yes): Likewise.
15843 (libm-narrow-types-float128-yes): Likewise.
15844 (libm-narrow-types-float128-alias-yes): Likewise.
15845 (libm-narrow-types): Likewise.
15846 (libm-routines): Add narrowing functions.
15847 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15848 (libc_feholdexcept_setroundf128): New macro.
15849 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15850 * sysdeps/ieee754/float128/float128_private.h: Include
15851 <math/math-narrow.h>.
15852 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15853 Undefine and redefine.
15854 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15855 (libm_alias_float_ldouble): Undefine and redefine.
15856 (libm_alias_double_ldouble): Likewise.
15857
15858 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15859
15860 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15861
15862 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15863 FPCR/FPSR.
15864
15865 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15866
15867 * manual/creature.texi: Convert references to gcc.info to gcc.
15868 * manual/stdio.texi: Likewise.
15869 * manual/string.texi: Likewise.
15870
15871 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15872
15873 [BZ #17979]
15874 * posix/bits/types.h (__int_least8_t): New typedef.
15875 (__uint_least8_t): Likewise.
15876 (__int_least16_t): Likewise.
15877 (__uint_least16_t): Likewise.
15878 (__int_least32_t): Likewise.
15879 (__uint_least32_t): Likewise.
15880 (__int_least64_t): Likewise.
15881 (__uint_least64_t): Likewise.
15882 * sysdeps/generic/stdint.h (int_least8_t): Define using
15883 __int_least8_t.
15884 (int_least16_t): Define using __int_least16_t.
15885 (int_least32_t): Define using __int_least32_t.
15886 (int_least64_t): Define using __int_least64_t.
15887 (uint_least8_t): Define using __uint_least8_t.
15888 (uint_least16_t): Define using __uint_least16_t.
15889 (uint_least32_t): Define using __uint_least32_t.
15890 (uint_least64_t): Define using __uint_least64_t.
15891 * wcsmbs/uchar.h: Include <bits/types.h>.
15892 (char16_t): Define using __uint_least16_t conditional only on
15893 [!__USE_ISOCXX11].
15894 (char32_t): Define using __uint_least32_t conditional only on
15895 [!__USE_ISOCXX11].
15896 * wcsmbs/test-char-types.c: New file.
15897 * wcsmbs/Makefile (tests): Add test-char-types.
15898
15899 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15900 version to 4.0.1.
15901
15902 2018-02-07 Zack Weinberg <zackw@panix.com>
15903
15904 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15905 Delete all contents except for definitions of _G_HAVE_MMAP and
15906 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15907 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15908 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15909 change as above.
15910
15911 * libio/libio.h: Don't include bits/_G_config.h here.
15912 Include stddef.h with __need_wchar_t defined. Include
15913 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15914 Define _IO_iconv_t here, directly.
15915 Don't define _IO_HAVE_ST_BLKSIZE.
15916 * libio/libioP.h: Include _G_config.h here. Move include of
15917 shlib-compat.h up with rest of includes. Simplify conditionals
15918 controlling definition of _IO_JUMPS_OFFSET.
15919
15920 * csu/init.c: Remove always-true #if around entire file.
15921 Don't include stdio.h. Set _IO_stdin_used to hardwired
15922 constant 0x20001, and update commentary.
15923 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15924 Replace all uses of _G_va_list with __gnuc_va_list.
15925 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15926 instead of #if _IO_HAVE_ST_BLKSIZE.
15927 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15928 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15929 not #ifdef.
15930
15931 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15932 multiple-include guard to match.
15933 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15934 into this file.
15935 Remove preprocessor conditionals that are always true and/or
15936 redundant to other preprocessor conditionals in the same nest.
15937 Include shlib-compat.h unconditionally.
15938 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15939 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15940 defined after including stdio.h.
15941 Use __BEGIN_DECLS/__END_DECLS.
15942
15943 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15944 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15945 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15946
15947 2018-02-07 Zack Weinberg <zackw@panix.com>
15948
15949 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15950 New single-type headers split from _G_config.h.
15951 * libio/bits/types/cookie_io_functions_t.h
15952 * libio/bits/types/struct_FILE.h
15953 New single-type headers split from libio.h.
15954
15955 * libio/Makefile: Install the above new headers. Don't install
15956 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15957 bits/libio-ldbl.h.
15958 * libio/_G_config.h, libio/libio.h: Delete file.
15959
15960 * libio/bits/libio.h: Remove improper-inclusion guard.
15961 Include stdio.h and don't repeat anything that it does.
15962 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15963 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15964 __io_read_fn as cookie_read_function_t,
15965 __io_write_fn as cookie_write_function_t,
15966 __io_seek_fn as cookie_seek_function_t,
15967 __io_close_fn as cookie_close_function_t,
15968 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15969 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15970 here, in the "compatibility defines" section. Remove an #if 0
15971 block. Use the "body" macros from bits/types/struct_FILE.h to
15972 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15973 and _IO_ferror_unlocked.
15974 Move prototypes of __uflow and __overflow...
15975
15976 * libio/stdio.h: ...here. Don't include bits/libio.h.
15977 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15978 directly from stdarg.h. Include bits/types/__fpos_t.h,
15979 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15980 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15981 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15982 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15983 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15984 __ssize_t, not _IO_ssize_t. Unconditionally define
15985 BUFSIZ as 8192 and EOF as (-1).
15986
15987 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15988 macros from bits/types/struct_FILE.h instead of _IO_* macros
15989 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15990 instead of _IO_ssize_t.
15991 * libio/bits/stdio2.h: Similarly.
15992
15993 * libio/iolibio.h: Add multiple-include guard.
15994 Include bits/libio.h after stdio.h.
15995 * libio/libioP.h: Add multiple-include guard.
15996 Include stdio.h and bits/libio.h before iolibio.h.
15997
15998 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15999 * include/bits/types/cookie_io_functions_t.h
16000 * include/bits/types/struct_FILE.h: New wrappers.
16001
16002 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16003 Get definitions of _G_fpos_t and _G_fpos64_t from
16004 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16005 respectively. Remove improper-inclusion guards.
16006
16007 * conform/data/stdio.h-data: Update expectations of va_list.
16008 * scripts/check-installed-headers.sh: Remove special case for
16009 libio.h and _G_config.h.
16010
16011 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16012
16013 [BZ #15105]
16014 [BZ #19463]
16015 * include/sys/sysmacros.h [!_ISOMAC]
16016 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16017 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16018 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16019 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16020 libc_hidden_proto.
16021 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16022 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16023 Likewise.
16024 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16025 Undefine and redefine to add use __gnu_dev_ prefix.
16026 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16027 Likewise.
16028 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16029 and define as hidden inline function.
16030 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16031 Likewise.
16032 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16033 Likewise.
16034 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16035 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16036 (gnu_dev_minor): Likewise.
16037 (gnu_dev_makedev): Likewise.
16038 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16039 makedev.
16040 * posix/wordexp.c (exec_comm_child): Likewise.
16041 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16042 instead of minor and __gnu_dev_major instead of major.
16043 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16044 __gnu_dev_major instead of major.
16045 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16046 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16047 instead of gnu_dev_minor.
16048 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16049 (SLAVE_P): Likewise.
16050 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16051 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16052 instead of major.
16053
16054 [BZ #21313]
16055 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16056 in another place.
16057 * locale/weightwc.h (findidx): Likewise.
16058
16059 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16060
16061 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16062 (slowlog_inexact): Likewise
16063 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16064 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16065
16066 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16067
16068 [BZ #22797]
16069 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16070 missing second underscore to parameter name.
16071
16072 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16073
16074 [BZ #14508]
16075 [BZ #15512]
16076 [BZ #17082]
16077 [BZ #20530]
16078 * bits/byteswap.h: Update file comment. Do not include
16079 <bits/byteswap-16.h>.
16080 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16081 constant.
16082 (__bswap_16): Define as inline function.
16083 (__bswap_constant_32): Reformat definition.
16084 (__bswap_32): Always define as inline function, not macro, using
16085 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16086 otherwise __bswap_constant_32.
16087 (__bswap_constant_64): Reformat definition. Do not use
16088 __extension__ here.
16089 (__bswap_64): Always define as inline function, not macro. Use
16090 __extension__ on function definition. Use __builtin_bswap64 if
16091 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16092 * string/test-endian-file-scope.c: New file.
16093 * string/test-endian-sign-conversion.c: Likewise.
16094 * string/Makefile (headers): Remove bits/byteswap-16.h.
16095 (tests): Add test-endian-file-scope and
16096 test-endian-sign-conversion.
16097 (CFLAGS-test-endian-sign-conversion.c): New variable.
16098 * bits/byteswap-16.h: Remove file.
16099 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16100 * sysdeps/ia64/bits/byteswap.h: Likewise.
16101 * sysdeps/m68k/bits/byteswap.h: Likewise.
16102 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16103 * sysdeps/s390/bits/byteswap.h: Likewise.
16104 * sysdeps/tile/bits/byteswap.h: Likewise.
16105 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16106 * sysdeps/x86/bits/byteswap.h: Likewise.
16107
16108 [BZ #17721]
16109 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16110 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16111 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16112 199901L] (__restrict): Define to restrict.
16113
16114 [BZ #19667]
16115 * string/testcopy.c: Include <support/support.h>. Do not include
16116 <malloc.h>. Use <support/test-driver.c>.
16117 (main): Rename to do_test. Make static. Use xmalloc instead of
16118 malloc.
16119
16120 [BZ #13575]
16121 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16122 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16123 (SSIZE_MAX): Define to INT_MAX.
16124 * posix/test-ssize-max.c: New file.
16125 * posix/Makefile (tests): Add test-ssize-max.
16126
16127 [BZ #19668]
16128 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16129 <support/support.h>. Do not include <malloc.h>.
16130 (query_auxv): Use xmalloc instead of malloc.
16131
16132 [BZ #14553]
16133 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16134 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16135 instead of loff_t.
16136
16137 2018-02-06 Florian Weimer <fweimer@redhat.com>
16138
16139 [BZ #18023]
16140 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16141 Use scratch_buffer instead of extend_alloca.
16142
16143 2018-02-06 Zack Weinberg <zackw@panix.com>
16144
16145 * libio/stdio.h: Don't define getc or putc as macros.
16146 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16147 not _IO_getc and _IO_putc.
16148
16149 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16150 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16151
16152 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16153
16154 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16155 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16156
16157 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16158
16159 [BZ #14890]
16160 * elf/elf.h (NT_PRFPREG): New macro.
16161 (NT_S390_VXRS_LOW): Likewise.
16162 (NT_S390_VXRS_HIGH): Likewise.
16163 (NT_S390_GS_CB): Likewise.
16164 (NT_S390_GS_BC): Likewise.
16165 (NT_S390_RI_CB): Likewise.
16166
16167 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16168 (MAP_SYNC): New macro.
16169 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16170 Likewise.
16171 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16172 (MAP_SYNC): Likewise.
16173 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16174 (MAP_SYNC): Likewise.
16175 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16176 (MAP_SYNC): Likewise.
16177 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16178 (MAP_SYNC): Likewise.
16179 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16180 (MAP_SYNC): Likewise.
16181 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16182 (MAP_SYNC): Likewise.
16183 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16184 Likewise.
16185 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16186 Likewise.
16187
16188 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16189 (MAP_SHARED_VALIDATE): New macro.
16190 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16191 (MAP_SHARED_VALIDATE): Likewise.
16192
16193 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16194
16195 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16196 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16197 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16198
16199 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16200
16201 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16202 (DT_NUM): Updated to 35.
16203
16204 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16205
16206 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16207 __builtin_expect with __glibc_likely and __glibc_unlikely.
16208 (elf_machine_rela): Likewise.
16209 (elf_machine_lazy_rel): Likewise.
16210
16211 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16212
16213 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16214 __builtin_expect with __glibc_likely and __glibc_unlikely.
16215 (elf_machine_lazy_rel): Likewise.
16216
16217 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16218
16219 [BZ #22638]
16220 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16221 SHARED.
16222 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16223
16224 2018-02-05 Andreas Schwab <schwab@suse.de>
16225
16226 [BZ #22761]
16227 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16228 string.
16229
16230 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16231
16232 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16233 not check against PTHREAD_STACK_MIN.
16234
16235 2018-02-02 Sean McKean <smckean83@gmail.com>
16236
16237 [BZ #22735]
16238 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16239
16240 2018-02-02 Florian Weimer <fweimer@redhat.com>
16241
16242 [BZ #22753]
16243 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16244 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16245 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16246 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16247 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16248 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16249 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16250 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16251 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16252 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16253 * misc/tst-preadvwritev2.c (do_test): Call it.
16254 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16255
16256 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16257
16258 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16259
16260 * benchtests/bench-memcmp.c: Print json instead of plain text.
16261
16262 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16263 every test run.
16264
16265 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16266
16267 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16268 version to 4.15.
16269 (s390_sthyi): New syscall.
16270
16271 * sysdeps/generic/ldbl-classify-compat.h: New file.
16272 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16273 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16274 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16275 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16276 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16277 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16278 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16279 <ldbl-classify-compat.h>.
16280 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16281 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16282 <ldbl-classify-compat.h>.
16283 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16284 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16285 <ldbl-classify-compat.h>.
16286 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16287 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16288 <ldbl-classify-compat.h>.
16289 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16290 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16291 <ldbl-classify-compat.h>.
16292 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16293 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16294 <ldbl-classify-compat.h>.
16295 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16296 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16297 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16298 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16299 * sysdeps/microblaze/math_private.h: Likewise.
16300 * sysdeps/nios2/math_private.h: Likewise.
16301 * sysdeps/sh/math_private.h: Likewise.
16302
16303 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16304 * sysdeps/m68k/coldfire/math_private.h: ... here.
16305 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16306 * sysdeps/tile/math_private.h: Likewise.
16307 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16308 Remove macro.
16309 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16310 Likewise.
16311
16312 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16313 Remove macro.
16314 (libc_fetestexcept): Likewise.
16315 (libc_feupdateenv_test): Likewise.
16316 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16317 (libc_fetestexcept): Likewise.
16318 (libc_feupdateenv_test): Likewise.
16319 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16320 (libc_fetestexcept): Likewise.
16321 (libc_feupdateenv_test): Likewise.
16322 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16323 (libc_fetestexcept): Likewise.
16324 (libc_feupdateenv_test): Likewise.
16325
16326 * sysdeps/generic/math_private.h
16327 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16328 New inline function.
16329 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16330 Likewise.
16331
16332 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16333 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16334 * sysdeps/generic/math_private.h
16335 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16336 inline function.
16337 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16338 Likewise.
16339 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16340 Likewise.
16341 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16342 Likewise.
16343 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16344 Likewise.
16345 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16346 Likewise.
16347 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16348 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16349 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16350 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16351 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16352 (__fegetenv): Likewise.
16353 (fesetenv): Likewise.
16354 (__fesetenv): Likewise.
16355 (feupdateenv): Likewise.
16356 (__feupdateenv): Likewise.
16357 (fegetround): Likewise.
16358 (__fegetround): Likewise.
16359 (fesetround): Likewise.
16360 (__fesetround): Likewise.
16361
16362 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16363 (feraiseexcept): New macro.
16364 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16365 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16366 Remove macro.
16367 (__feraiseexcept): Likewise.
16368 (feclearexcept): Likewise.
16369 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16370 (__feraiseexcept): Likewise.
16371 (feclearexcept): Likewise.
16372 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16373 (__feraiseexcept): Likewise.
16374 (feclearexcept): Likewise.
16375 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16376 (__feraiseexcept): Likewise.
16377 (feclearexcept): Likewise.
16378 (fetestexcept): Likewise.
16379
16380 * sysdeps/m68k/coldfire/math-tests.h: New file.
16381
16382 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16383 * sysdeps/m68k/bits/fenv.h: ... here.
16384 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16385 not define.
16386 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16387 Likewise.
16388 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16389 Likewise.
16390 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16391 Likewise.
16392 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16393 Likewise.
16394 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16395 Define to 0.
16396 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16397 (__FE_UNDEFINED): New enum constant.
16398 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16399 Do not define.
16400 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16401 Likewise.
16402 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16403 Likewise.
16404 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16405 to match generic bits/fenv.h.
16406 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16407 Do not define.
16408
16409 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16410 packed on bits.
16411 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16412 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16413 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16414 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16415
16416 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16417 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16418 Joseph Myers <joseph@codesourcery.com>
16419
16420 [BZ #21314]
16421 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16422 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16423 computation using c.
16424 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16425 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16426 computation using c.
16427
16428 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16429
16430 * version.h (RELEASE): Set to "development".
16431 (VERSION): Set to "2.27.9000".
16432 * NEWS (2.28): New section.
16433
16434 * version.h (RELEASE): Set to "stable".
16435 (VERSION): Set to "2.27".
16436 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16437
16438 * NEWS: Add the list of bugs fixed in 2.27.
16439
16440 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16441
16442 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16443 against PTHREAD_STACK_MIN.
16444
16445 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16446
16447 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16448 New entries.
16449 (Rafal Luzynski, Andreas Schwab): Update.
16450
16451 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16452
16453 [BZ #10871]
16454 * NEWS: List the languages which actually use the alternative
16455 months feature in this release. Also explain that "alt_mon" and
16456 "ab_alt_mon" are optional.
16457
16458 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16459
16460 [BZ #22765]
16461 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16462
16463 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16464
16465 * manual/install.texi (Tools for Compilation): Update the newest
16466 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16467 * INSTALL: Regenerated.
16468
16469 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16470
16471 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16472 instead of __builtin_expect.
16473
16474 2018-01-30 Florian Weimer <fweimer@redhat.com>
16475
16476 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16477 data.
16478 * nss/tst-nss-getpwent.c (do_test): Likewise.
16479
16480 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16481
16482 [BZ #10871]
16483 * localedata/locales/hr_HR (mon): Rename to...
16484 (alt_mon): This.
16485 (mon): Import from CLDR (genitive case).
16486 (d_t_fmt): Update the comment.
16487
16488 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16489
16490 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16491 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16492 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16493
16494 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16495
16496 * mach/Versions: Fix version when __mach_host_self_ was added.
16497 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16498 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16499 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16500 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16501 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16502 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16503 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16504 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16505 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16506 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16507 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16508 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16509 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16510 || to respect codestyle.
16511 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16512 (do_test_bz20181): Rename accordingly.
16513 * malloc/malloc.c: Include <assert.h>.
16514 (assert): Do not define.
16515 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16516 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16517 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16518 * sysdeps/mach/hurd/hp-timing.h: New file.
16519 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16520
16521 2018-01-29 Darius Rad <darius@bluespec.com>
16522
16523 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16524
16525 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16526
16527 * sysdeps/init_array/crti.S (.section .init_array): Add
16528 PREINIT_FUNCTION when defined.
16529 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16530 * config.h.in: Regenerate.
16531 * manual/platform.texi: Add RISC-V documenation for
16532 __riscv_flush_icache.
16533 * sysdeps/riscv/__longjmp.S: New file.
16534 * sysdeps/riscv/backtrace.c: Likewise.
16535 * sysdeps/riscv/bits/endian.h: Likewise.
16536 * sysdeps/riscv/bits/setjmp.h: Likewise.
16537 * sysdeps/riscv/bits/wordsize.h: Likewise.
16538 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16539 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16540 * sysdeps/riscv/dl-trampoline.S: Likewise.
16541 * sysdeps/riscv/gccframe.h: Likewise.
16542 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16543 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16544 * sysdeps/riscv/machine-gmon.h: Likewise.
16545 * sysdeps/riscv/memusage.h: Likewise.
16546 * sysdeps/riscv/setjmp.S: Likewise.
16547 * sysdeps/riscv/sys/asm.h: Likewise.
16548 * sysdeps/riscv/tls-macros.h: Likewise.
16549 * sysdeps/riscv/dl-tls.h: New file.
16550 * sysdeps/riscv/libc-tls.c: Likewise.
16551 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16552 * sysdeps/riscv/nptl/tls.h: Likewise.
16553 * sysdeps/riscv/stackinfo.h: Likewise.
16554 * sysdeps/riscv/bits/fenv.h: New file.
16555 * sysdeps/riscv/e_sqrtl.c: Likewise.
16556 * sysdeps/riscv/fpu_control.h: Likewise.
16557 * sysdeps/riscv/math-tests.h: Likewise.
16558 * sysdeps/riscv/nofpu/Implies: Likewise.
16559 * sysdeps/riscv/sfp-machine.h: Likewise.
16560 * sysdeps/riscv/tininess.h: Likewise.
16561 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16562 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16563 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16564 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16565 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16566 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16567 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16568 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16569 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16570 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16571 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16572 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16573 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16574 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16575 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16576 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16577 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16578 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16579 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16580 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16581 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16582 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16583 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16584 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16585 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16586 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16587 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16588 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16589 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16590 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16591 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16592 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16593 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16594 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16595 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16596 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16597 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16598 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16599 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16600 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16601 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16602 * sysdeps/riscv/rvf/math_private.h: Likewise.
16603 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16604 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16605 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16606 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16607 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16608 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16609 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16610 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16611 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16612 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16613 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16614 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16615 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16616 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16617 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16618 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16619 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16620 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16621 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16622 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16623 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16624 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16625 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16626 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16627 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16628 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16629 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16630 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16631 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16632 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16633 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16634 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16635 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16636 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16637 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16638 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16639 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16640 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16641 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16642 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16643 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16644 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16645 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16646 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16647 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16648 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16649 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16650 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16651 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16652 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16653 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16654 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16655 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16656 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16657 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16658 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16659 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16660 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16661 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16662 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16663 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16664 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16665 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16666 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16667 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16668 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16669 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16670 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16671 * sysdeps/riscv/Implies: New file.
16672 * sysdeps/riscv/Makefile: Likewise.
16673 * sysdeps/riscv/configure: Likewise.
16674 * sysdeps/riscv/configure.ac: Likewise.
16675 * sysdeps/riscv/nptl/Makefile: Likewise.
16676 * sysdeps/riscv/preconfigure: Likewise.
16677 * sysdeps/riscv/rv64/Implies-after: Likewise.
16678 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16679 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16680 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16681 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16682 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16683 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16684 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16685 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16686 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16687 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16688 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16689 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16690 (Config): Likewise.
16691
16692 2018-01-29 Florian Weimer <fweimer@redhat.com>
16693
16694 [BZ #22701]
16695 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16696 libnsl_hidden_proto.
16697 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16698 libnsl_hidden_proto.
16699 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16700 * nis/Makefile (libnsl-routines): Add nss-default only for
16701 build-obsolete-nsl.
16702 * nis/nis_defaults.c (__nis_default_ttl): Add
16703 libnsl_hidden_nolink_def.
16704 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16705 declaration.
16706 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16707 * nis/ypclnt.c (yp_maplist): Likewise.
16708
16709 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16710
16711 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16712 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16713
16714 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16715
16716 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16717 clean -dxfq for git updates when replacing sources.
16718
16719 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16720 --disable-libcilkrts unconditionally, not just for the final GCC
16721 build for Hurd.
16722
16723 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16724 version to 4.15.
16725
16726 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16727
16728 [BZ #10871]
16729 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16730 case).
16731
16732 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16733
16734 [BZ #10871]
16735 * localedata/locales/be_BY (mon): Rename to...
16736 (alt_mon): This, then synchronize with CLDR (nominative case).
16737 (abmon): Rename to...
16738 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16739 (mon): Import from CLDR (genitive case).
16740 (abmon): Likewise.
16741 * localedata/locales/be_BY@latin (mon): Rename to...
16742 (alt_mon): This.
16743 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16744
16745 * localedata/locales/be_BY@latin (lang_name): Reworded to
16746 "biełaruskaja mova".
16747
16748 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16749
16750 [BZ #10871]
16751 * localedata/locales/el_CY (mon): Renamed to...
16752 (alt_mon): This.
16753 (mon): Import from CLDR (genitive case).
16754 * localedata/locales/el_GR: Likewise.
16755
16756 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16757
16758 [BZ #10871]
16759 * localedata/locales/ru_RU (mon): Rename to...
16760 (alt_mon): This.
16761 (abmon): Rename to...
16762 (ab_alt_mon): This.
16763 (mon): Import from CLDR (genitive case).
16764 (abmon): Copy from the old content except the 5th month which is
16765 now in the genitive case, even when abbreviated.
16766 * localedata/locales/ru_UA: Likewise.
16767 * time/tst-strptime.c (day_tests): Add an actual example of
16768 a difference between %b and %Ob in Russian.
16769
16770 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16771
16772 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16773 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16774 a `c' variable.
16775 * resolv/res-close.c: Include <stdlib.h>.
16776 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16777 <sys/wait.h>, <time.h>, <sys/uio.h>.
16778 (NOT_CANCEL_H): Add inclusion guard.
16779 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16780 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16781 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16782 return 0.
16783 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16784 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16785 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16786 instead of void *.
16787 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16788 timer_ptr2id to cast struct timer_node * to void *.
16789 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16790 --disable-libcilkrts to gcc configure.
16791 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16792 and make them the default for now.
16793 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16794 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16795 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16796 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16797 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16798 MACH_IPC_COMPAT.
16799 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16800 __task_terminate would ever return successfully.
16801 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16802 to global scope.
16803 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16804 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16805 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16806 critical section to make code simpler and avoid warning.
16807 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16808 critical section to make code simpler and avoid warning.
16809 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16810 const char * instead of char *.
16811 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16812 __hurd_file_name_split, hurd_file_name_split,
16813 __hurd_directory_name_split, hurd_directory_name_split,
16814 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16815 hurd_file_name_path_lookup): Make lookup function parameter take a
16816 const char *name instead of char *name.
16817 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16818 __hurd_directory_name_split): Likewise.
16819 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16820 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16821 * sysdeps/mach/hurd/check_native.c: New file.
16822 * sysdeps/mach/hurd/check_pf.c: New file.
16823 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16824 (__freeifaddrs): Define macro to freeifaddrs.
16825 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16826 * sysdeps/mach/libmachuser.abilist: New file.
16827 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16828 (do_test_bz20181): Rename accordingly.
16829 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16830 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16831 <sys/mount.h>.
16832 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16833 version only if __USE_EXTERN_INLINES is defined.
16834 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16835 __hurd_sockfail): Likewise.
16836 (_hurd_fd_get): Always declare functions, and provide inline versions
16837 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16838 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16839 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16840 _hurd_port_set): Always declare functions, and provide inline versions
16841 only if __USE_EXTERN_INLINES and _LIBC are defined and
16842 IS_IN(libc).
16843 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16844 _hurd_critical_section_unlock): Likewise.
16845 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16846 * __hurd_threadvar_location): Likewise.
16847 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16848 _hurd_userlink_clear): Likewise.
16849 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16850 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16851 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16852 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16853 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16854 __spin_lock_locked): Likewise.
16855 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16856 __spin_lock_locked): Likewise.
16857 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16858 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16859 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16860 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16861 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16862 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16863 _POSIX_NO_TRUNC): Define to 0.
16864 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16865 check size against PTHREAD_STACK_MIN.
16866 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16867 IS_IN(libpthread)]: Include <sigsetops.h>.
16868 * mach/Makefile (user-interfaces): Add mach/gnumach.
16869 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16870 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16871 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16872 instead of invalid -1.
16873 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16874 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16875 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16876 <net/ppp_defs.h>.
16877
16878 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16879
16880 * hurd/fcntl-internal.h: New file.
16881
16882 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16883
16884 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16885
16886 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16887
16888 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16889
16890 [BZ #22701]
16891 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16892 Build only shared objects.
16893
16894 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16895
16896 * README: Update for hppa.
16897
16898 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16899
16900 * sysdeps/sparc/fpu/libm-test-ulps: Update
16901 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16902
16903 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16904
16905 Revert:
16906
16907 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16908
16909 [BZ #22563]
16910 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16911 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16912 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16913 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16914 to feature_1.
16915
16916 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16917
16918 [BZ #22563]
16919 * bits/types/__cancel_jmp_buf_tag.h: New file.
16920 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16921 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16922 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16923 * nptl/Makefile (headers): Add
16924 bits/types/__cancel_jmp_buf_tag.h.
16925 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16926 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16927 * sysdeps/nptl/pthread.h: Include
16928 <bits/types/__cancel_jmp_buf_tag.h>.
16929 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16930 __cancel_jmp_buf.
16931 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16932
16933 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16934
16935 [BZ #10871]
16936 * localedata/locales/uk_UA (mon): Renamed to...
16937 (alt_mon): This.
16938 (alt_digits): "0" removed and then renamed to...
16939 (mon): This.
16940 (date_fmt): Definition changed not to use the alternative
16941 digits hack.
16942
16943 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16944
16945 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16946 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16947 * elf/elf.h (EF_RISCV_RVC): New define.
16948 (EF_RISCV_FLOAT_ABI): Likewise.
16949 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16950 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16951 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16952 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16953 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16954 define.
16955 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16956
16957 2018-01-25 Andreas Schwab <schwab@suse.de>
16958
16959 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16960 single quotes.
16961 * sysdeps/gnu/configure: Regenerate.
16962 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16963 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16965 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16966 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16967 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16968 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16969 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16970
16971 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16972
16973 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16974 URL, and run autoconf, make it the default for now.
16975
16976 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16977
16978 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16979 soft-float ColdFire configuration.
16980
16981 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16982 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16983 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16984
16985 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16986 MicroBlaze file.
16987
16988 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16989 ....
16990 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16991 ... here.
16992 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16993 New file.
16994
16995 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16996 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16997 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16998 file.
16999
17000 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17001
17002 [BZ #22742]
17003 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17004 Rename to __reserved and add comment.
17005 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17006 Rename to __reserved.
17007
17008 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17009
17010 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17011 i686-gnu configurations.
17012 (Context.run_builds): Include mig, gnumach and hurd in components
17013 considered.
17014 (Context.checkout): Add mig, gnumach and hurd to components.
17015 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17016 hurd.
17017 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17018 (Config.build): Install gnumach headers, build mig and install
17019 hurd headers for 'gnu' OS.
17020 (Config.install_gnumach_headers): New function.
17021 (Config.install_hurd_headers): Likewise.
17022 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17023 when building for 'gnu' OS.
17024
17025 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17026
17027 * manual/tunables.texi (Hardware Capability Tunables): Fix
17028 spelling.
17029
17030 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17031
17032 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17033 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17034 (ALTMON_11, ALTMON_12): Improve documentation.
17035 * manual/time.texi (strftime): Likewise.
17036
17037 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17038
17039 [BZ #10871]
17040 * localedata/locales/pl_PL: Alternative month names added,
17041 primary month names are genitive now.
17042 * time/tst-strptime.c (day_tests): Actually use a genitive case
17043 of a month name in Polish language.
17044
17045 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17046
17047 [BZ #10871]
17048 * manual/locale.texi: Document ALTMON_1..12 constants for
17049 nl_langinfo. Specify when to use ALTMON instead of MON.
17050 * manual/time.texi (strftime, strptime): Document GNU extension
17051 permitting O modifier with %B and %b. Specify when to use
17052 %OB instead of %B.
17053
17054 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17055
17056 [BZ #10871]
17057 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17058 names, define them as the same as abbreviated month names explicitly.
17059 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17060 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17061 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17062 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17063 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17064 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17065 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17066 _NL_WABALTMON_12): New enum constants.
17067 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17068 wab_alt_mon, and ab_alt_mon_defined members.
17069 (time_output): Output ab_alt_mon and wab_alt_mon members.
17070 (time_read): Read them, initialize them as copies of abmon and wabmon
17071 respectively if they are missing, initialize ab_alt_mon_defined.
17072 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17073 * locale/programs/locfile-kw.h: Regenerate.
17074 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17075 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17076 and ru_RU.UTF-8.
17077 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17078 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17079 (__strftime_internal): Handle %Ob and %Oh formats.
17080 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17081 (__strptime_internal): Handle %Ob and %Oh formats.
17082 * time/tst-strptime.c (day_tests): Add more tests to parse different
17083 forms of month names including the new %Ob format specifier.
17084
17085 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17086
17087 [BZ #10871]
17088 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17089 define them as the same as primary full month names explicitly.
17090 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17091 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17092 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17093 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17094 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17095 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17096 _NL_WALTMON_12): New enum constants.
17097 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17098 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17099 macros.
17100 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17101 walt_mon, and alt_mon_defined members.
17102 (time_output): Output alt_mon and walt_mon members.
17103 (time_read): Read them, initialize them as copies of mon and wmon
17104 respectively if they are missing, initialize alt_mon_defined.
17105 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17106 * locale/programs/locfile-kw.h: Regenerate.
17107 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17108 * localedata/tst-langinfo.c (map): Add tests for the new constants
17109 ALTMON_1 .. ALTMON_12.
17110 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17111 and pl_PL.UTF-8.
17112 * time/strftime_l.c (f_altmonth): New macro.
17113 (__strftime_internal): Handle %OB format.
17114 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17115 (__strptime_internal): Handle %OB format.
17116 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17117 of month names including the new %OB format specifier.
17118
17119 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17120
17121 [BZ #22685]
17122 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17123 from ABORT_TRANSACTION.
17124 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17125 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17126 ABORT_TRANSACTION_IMPL): Likewise.
17127 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17128 Linux code, but remove the code that aborts transactions.
17129
17130 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17131
17132 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17133
17134 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17135
17136 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17137 in date: "2004-14-09" should be "2004-09-14".
17138 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17139 "2003-15-09" should be "2003-09-15".
17140
17141 2018-01-18 Arjun Shankar <arjun@redhat.com>
17142
17143 [BZ #22343]
17144 [BZ #22774]
17145 CVE-2018-6485
17146 CVE-2018-6551
17147 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17148 after padding.
17149 (_int_memalign): check for integer overflow before calling
17150 _int_malloc.
17151 * malloc/tst-malloc-too-large.c: New test.
17152 * malloc/Makefile: Add tst-malloc-too-large.
17153
17154 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17155
17156 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17157 in date: "2017-24-07" should be "2017-07-24".
17158 * localedata/locales/mai_IN: Likewise.
17159 * localedata/locales/mai_NP: Likewise.
17160
17161 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17162
17163 * po/ru.po: Update translations.
17164
17165 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17166
17167 [BZ #22719]
17168 * sysdeps/hppa/backtrace.c: New file.
17169
17170 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17171
17172 [BZ #22715]
17173 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17174 align La_x86_64_retval to VEC_SIZE.
17175
17176 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17177
17178 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17179 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17180
17181 2018-01-16 Florian Weimer <fweimer@redhat.com>
17182
17183 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17184 Move tst-thread-exit-clobber ...
17185 [$(CXX)] (tests-unsupported): ... to here.
17186
17187 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17188
17189 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17190 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17191 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17192 (_dl_aarch64_cap_flags): Update.
17193 (_DL_HWCAP_COUNT): Update.
17194
17195 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17196
17197 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17198 (_DL_HWCAP_LAST): Remove.
17199 (_DL_HWCAP_COUNT): Move to ...
17200 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17201 (_DL_HWCAP_COUNT): ... here.
17202
17203 2018-01-16 Florian Weimer <fweimer@redhat.com>
17204
17205 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17206 mode with GNU extensions.
17207
17208 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17209
17210 * elf/elf.h (NT_ARM_SVE): Define.
17211
17212 2018-01-15 Florian Weimer <fweimer@redhat.com>
17213
17214 [BZ #22636]
17215 * nptl/tst-minstack-throw.cc: New file.
17216 * nptl/Makefile (tests): Add tst-minstack-throw.
17217 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17218 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17219
17220 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17221
17222 * scripts/build-many-glibcs.py (Context.checkout): Default
17223 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17224 version to 1.1.0.
17225
17226 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17227
17228 [BZ #22707]
17229 * elf/elf.h (DF_1_STUB): Define.
17230 (DF_1_PIE): Define.
17231
17232 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17233
17234 [BZ #22697]
17235 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17236 Do not add 0.5 to integer or out-of-range arguments.
17237
17238 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17239
17240 * po/bg.po: Update translations.
17241 * po/cs.po: Likewise.
17242 * po/de.po: Likewise.
17243 * po/ko.po: Likewise.
17244 * po/pl.po: Likewise.
17245 * po/sv.po: Likewise.
17246 * po/uk.po: Likewise.
17247 * po/vi.po: Likewise.
17248
17249 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17250
17251 * aarch64/start.S (_start): Use __wrap_main.
17252 (__wrap_main): New local symbol.
17253
17254 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17255
17256 [BZ #22679]
17257 CVE-2018-1000001
17258 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17259 generic_getcwd if the path returned by getcwd syscall is not absolute.
17260 * io/tst-getcwd-abspath.c: New test.
17261 * io/Makefile (tests): Add tst-getcwd-abspath.
17262
17263 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17264
17265 * malloc/malloc.c (malloc_consolidate): Add size check.
17266
17267 2018-01-12 Florian Weimer <fweimer@redhat.com>
17268
17269 * support/write_message.c (write_message): Preserve errno.
17270 * support/check.c (print_failure): Likewise.
17271 * support/support_test_verify_impl.c (support_test_verify_impl):
17272 Likewise.
17273 * support/support_test_compare_failure.c
17274 (support_test_compare_failure): Likewise.
17275
17276 2018-01-12 Florian Weimer <fweimer@redhat.com>
17277
17278 [BZ #22701]
17279 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17280 Prevent installation of libnsl.so.
17281 (libnsl-inhibit-o): Do not build (or install) static libraries.
17282
17283 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17284
17285 [BZ #22657]
17286 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17287 before the day number which may produce a double space.
17288 (date_fmt): Likewise.
17289
17290 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17291
17292 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17293 instead of fegetenv.
17294
17295 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17296
17297 [BZ #22702]
17298 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17299 comment to say exceptions are discarded.
17300 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17301 __fegetenv.
17302 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17303 be enabled.
17304
17305 2018-01-11 Florian Weimer <fweimer@redhat.com>
17306
17307 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17308 and error message.
17309
17310 2018-01-11 Florian Weimer <fweimer@redhat.com>
17311
17312 [BZ #22636]
17313 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17314 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17315
17316 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17317
17318 [BZ #22693]
17319 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17320 negative arguments in test for NaN or infinity argument.
17321
17322 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17323
17324 * po/libc.pot: Regenerate.
17325
17326 2018-01-10 Florian Weimer <fweimer@redhat.com>
17327
17328 [BZ #22636]
17329 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17330 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17331
17332 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17333
17334 * hurd/hurd/fd.h: Include <fcntl.h>
17335 (__hurd_at_flags): New function.
17336 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17337 with call to __hurd_at_flags.
17338 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17339 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17340 __faccessat
17341 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17342 (__access_noerrno): Use __faccessat_common instead of access_common.
17343 (__access): Likewise.
17344 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17345 with a call to __faccessat.
17346 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17347 (__faccessat_common): ... this. Move implementation of __access into it when
17348 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17349 reauthenticate_cwdir_at helper to implement AT mechanism.
17350 (__faccessat_noerrno): New function, just calls __faccessat_common.
17351 (__faccessat): New function, just calls __faccessat_common.
17352 (faccessat): Define weak alias.
17353
17354 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17355
17356 [BZ #22691]
17357 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17358 (CFLAGS-s_fmaxmagl.c): New variable.
17359 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17360
17361 [BZ #22690]
17362 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17363 long int for arguments of possibly overflowing addition or
17364 subtraction.
17365 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17366
17367 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17368
17369 [BZ #22688]
17370 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17371 (CFLAGS-e_remainderl.c): New variable.
17372
17373 [BZ #22687]
17374 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17375 variable.
17376 (CFLAGS-s_cacoshl.c): Likewise.
17377 (CFLAGS-s_casinhl.c): Likewise.
17378 (CFLAGS-s_catanl.c): Likewise.
17379 (CFLAGS-s_catanhl.c): Likewise.
17380 (CFLAGS-s_cexpl.c): Likewise.
17381 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17382 (CFLAGS-s_csinhl.c): Likewise.
17383 (CFLAGS-s_clogl.c): Likewise.
17384 (CFLAGS-s_clog10l.c): Likewise.
17385 (CFLAGS-s_csinl.c): Likewise.
17386 (CFLAGS-s_csqrtl.c): Likewise.
17387
17388 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17389 2017-01-09 Svante Signell <svante.signell@gmail.com>
17390
17391 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17392 (_hurd_exec_paths): New function.
17393 * hurd/hurd.h (_hurd_exec): Deprecate function.
17394 (_hurd_exec_paths): Declare function.
17395 * hurd/Versions: Export _hurd_exec_paths.
17396 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17397 (__execve): Use __getcwd to build absolute path, and use
17398 _hurd_exec_paths instead of _hurd_exec.
17399 * sysdeps/mach/hurd/spawni.c: Likewise.
17400 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17401 _hurd_exec.
17402
17403 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17404
17405 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17406 test instead of failing in case of ENOENT returned by posix_openpt.
17407
17408 2018-01-08 Florian Weimer <fweimer@redhat.com>
17409
17410 resolv: Support binary labels in test framework.
17411 * support/resolv_test.c (struct to_be_freed): Remove.
17412 (struct compressed_name): New.
17413 (allocate_compressed_name, ascii_tolower)
17414 (compare_compressed_name): New functions.
17415 (struct resolv_response_builder): Update type of
17416 compression_offsets for use with tsearch. Rempve to_be_freed.
17417 (response_push_pointer_to_free): Remove function.
17418 (resolv_response_add_name): Rewrite using struct compressed_name
17419 and tsearch instead of hsearch_r.
17420 (response_builder_allocate): Remove initialization of
17421 compression_offsets.
17422 (response_builder_free): Update for removal of to_be_freed. Use
17423 tdestroy instead of hdestroy_r.
17424 * resolv/Makefile (tests): Add tst-resolv-binary.
17425 (tst-resolv-binary): Link with -lresolv -lpthread.
17426
17427 2018-01-08 Florian Weimer <fweimer@redhat.com>
17428
17429 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17430 time. Pass positive flag instead of negative flag to
17431 support_test_compare_failure.
17432 (support_test_compare_failure): Change negative parameter to
17433 positive.
17434 * support/support_test_compare_failure.c (report)
17435 (support_test_compare_failure): Likewise.
17436 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17437 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17438
17439 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17440
17441 [BZ #22637]
17442 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17443 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17444 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17445 stacksize.
17446 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17447
17448 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17449
17450 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17451 Add s_sincosf-sse2 and s_sincosf-fma.
17452 (CFLAGS-s_sincosf-fma.c): New.
17453 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17454 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17455 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17456 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17457 __sincosf is defined.
17458
17459 2018-01-08 Florian Weimer <fweimer@redhat.com>
17460
17461 * nptl/tst-thread-exit-clobber.cc: New file.
17462 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17463 C++11 mode.
17464 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17465 (tests): Add tst-thread-exit-clobber.
17466 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17467
17468 2018-01-08 Florian Weimer <fweimer@redhat.com>
17469
17470 * support/check.h (support_static_assert): Define.
17471 (TEST_COMPARE): Use it.
17472
17473 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17474
17475 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17476 [!__RLIM_T_MATCHES_RLIM64_T]
17477 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17478 __getrlimit64. Add libc_hidden_weak.
17479
17480 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17481
17482 * elf/elf.h (R_RISCV_NONE): New define.
17483 (R_RISCV_32): Likewise.
17484 (R_RISCV_64): Likewise.
17485 (R_RISCV_RELATIVE): Likewise.
17486 (R_RISCV_COPY): Likewise.
17487 (R_RISCV_JUMP_SLOT): Likewise.
17488 (R_RISCV_TLS_DTPMOD32): Likewise.
17489 (R_RISCV_TLS_DTPMOD64): Likewise.
17490 (R_RISCV_TLS_DTPREL32): Likewise.
17491 (R_RISCV_TLS_DTPREL64): Likewise.
17492 (R_RISCV_TLS_TPREL32): Likewise.
17493 (R_RISCV_TLS_TPREL64): Likewise.
17494 * Makerules (make-link-multidir): Make directories before linking into
17495 them.
17496 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17497 define.
17498 (VDSO_HASH_LINUX_4_15): Likewise.
17499 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17500 in subdirectories of lib.
17501 * nptl/Makefile (/librt.so): Always depend on
17502 "$(shared-thread-library)".
17503
17504 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17505
17506 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17507 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17508 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17509 (___tls_get_addr).
17510 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17511 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17512 "-O2 -march=i686".
17513 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17514 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17515 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17516 * sysdeps/gnu/glob-lstat-compat.c: New file.
17517 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17518 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17519
17520 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17521
17522 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17523 Reserve 16 chars to reloc_addr before calling _itoa_word.
17524
17525 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17526
17527 [BZ #22678]
17528 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17529 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17530
17531 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17532 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17533
17534 * resource/tst-getrlimit.c: Add copyright header.
17535
17536 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17537 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17538
17539 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17540 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17541 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17542 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17543 instead.
17544 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17545 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17546 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17547 RLIM64_INFINITY): Fix values to match the kernel ones.
17548 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17549 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17550 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17551 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17552 getrlimit64@@GLIBC_2_27.
17553 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17554 and setrlimit64.
17555 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17556 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17557 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17558 setrlimit, getrlimit64 and setrlimit64.
17559
17560 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17561
17562 [BZ #22648]
17563 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17564 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17565
17566 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17567
17568 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17569 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17570 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17571
17572 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17573
17574 [BZ #15479]
17575 [BZ #22666]
17576 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17577 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17578
17579 [BZ #15479]
17580 [BZ #22665]
17581 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17582 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17583 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17584 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17585
17586 2018-01-04 Florian Weimer <fweimer@redhat.com>
17587
17588 [BZ #22667]
17589 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17590 Align the stack before calling exit.
17591 * stdlib/tst-makecontext-align.c: New file.
17592 * stdlib/Makefile (tests): Add tst-makecontext-align.
17593
17594 2018-01-04 Florian Weimer <fweimer@redhat.com>
17595
17596 Add support for calling dlvsym from libc.so.
17597 * include/dlfcn.h (__libc_dlvsym): Declare.
17598 * elf/Makefile (tests-static-internal): Add
17599 tst-libc_dlvsym-static.
17600 (tests-internal): Add tst-libc_dlvsym.
17601 (modules-names): Add tst-libc_dlvsym-dso.
17602 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17603 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17604 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17605 object tst-libc_dlvsym-dso.so needs to be built before running
17606 these tests.
17607 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17608 * elf/Versions: Export __libc_dlvsym.
17609 * elf/dl-libc.c (struct do_dlvsym_args): New.
17610 (do_dlvsym, __libc_dlvsym): New functions.
17611 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17612 (_dl_open_hook2): New variable.
17613 (__libc_register_dl_open_hook): Set it.
17614 * elf/tst-libc_dlvsym-dso.c: New file.
17615 * elf/tst-libc_dlvsym-static.c: Likewise.
17616 * elf/tst-libc_dlvsym.c: Likewise.
17617 * elf/tst-libc_dlvsym.h: Likewise.
17618
17619 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17620
17621 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17622 include <sys/mount.h>.
17623
17624 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17625
17626 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17627 Add __NO_MATH_ERRNO__ check.
17628
17629 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17630
17631 * sysdeps/mips/mips32/libm-test-ulps: Update.
17632 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17633
17634 2018-01-02 Florian Weimer <fweimer@redhat.com>
17635
17636 * misc/tst-pselect.c: Add copyright header.
17637
17638 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17639
17640 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17641 comment.
17642 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17643 comment.
17644 (settrlimit): Rename into setrlimit.
17645 (__sttrlimit): Rename into __setrlimit.
17646
17647 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17648 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17649 never defined in that case.
17650
17651 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17652
17653 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17654
17655 * sysdeps/arm/libm-test-ulps: Update.
17656
17657 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17658 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17659
17660 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17661
17662 * NEWS: Add cosf and sincosf to list of optimized functions.
17663
17664 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17665
17666 [BZ #22660]
17667 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17668 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17669 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17670 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17671
17672 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17673
17674 [BZ #22433]
17675 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17676
17677 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17678 making a copy of it.
17679
17680 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17681
17682 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17683 trailing whitespace removed.
17684 * scripts/config.guess: Update to version 2018-01-01.
17685 * scripts/config.sub: Update to version 2018-01-01.
17686 * scripts/move-if-change: Update from gnulib.
17687
17688 * NEWS: Update copyright dates.
17689 * catgets/gencat.c (print_version): Likewise.
17690 * csu/version.c (banner): Likewise.
17691 * debug/catchsegv.sh: Likewise.
17692 * debug/pcprofiledump.c (print_version): Likewise.
17693 * debug/xtrace.sh (do_version): Likewise.
17694 * elf/ldconfig.c (print_version): Likewise.
17695 * elf/ldd.bash.in: Likewise.
17696 * elf/pldd.c (print_version): Likewise.
17697 * elf/sotruss.sh: Likewise.
17698 * elf/sprof.c (print_version): Likewise.
17699 * iconv/iconv_prog.c (print_version): Likewise.
17700 * iconv/iconvconfig.c (print_version): Likewise.
17701 * locale/programs/locale.c (print_version): Likewise.
17702 * locale/programs/localedef.c (print_version): Likewise.
17703 * login/programs/pt_chown.c (print_version): Likewise.
17704 * malloc/memusage.sh (do_version): Likewise.
17705 * malloc/memusagestat.c (print_version): Likewise.
17706 * malloc/mtrace.pl: Likewise.
17707 * manual/libc.texinfo: Likewise.
17708 * nptl/version.c (banner): Likewise.
17709 * nscd/nscd.c (print_version): Likewise.
17710 * nss/getent.c (print_version): Likewise.
17711 * nss/makedb.c (print_version): Likewise.
17712 * posix/getconf.c (main): Likewise.
17713 * scripts/test-installation.pl: Likewise.
17714 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17715
17716 * All files with FSF copyright notices: Update copyright dates
17717 using scripts/update-copyrights.
17718 * locale/programs/charmap-kw.h: Regenerated.
17719 * locale/programs/locfile-kw.h: Likewise.
17720
17721 2017-12-31 Zack Weinberg <zackw@panix.com>
17722
17723 * libio/bits/libio-ldbl.h: Correct check for improper
17724 inclusion. Add own multiple include guard.
17725
17726 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17727 Dmitry V. Levin <ldv@altlinux.org>
17728
17729 [BZ #22625]
17730 CVE-2017-16997
17731 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17732 string token expansion. Check for NULL pointer or empty string possibly
17733 returned by expand_dynamic_string_token.
17734 (decompose_rpath): Check for empty path after dynamic string
17735 token expansion.
17736
17737 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17738
17739 [BZ #22433]
17740 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17741
17742 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17743 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17744 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17745 and PTRACE_SYSCALL.
17746 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17747 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17748 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17749 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17750 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17751 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17752
17753 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17754 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17755 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17756 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17757 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17758 bits/ptrace-shared.h.
17759 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17760 <bits/ptrace-shared.h>.
17761 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17762 __ptrace_peeksiginfo_flags, ptrace): Remove.
17763 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17764 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17765 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17766 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17767 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17768
17769 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17770
17771 [BZ #17804]
17772 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17773 end of the loop. Improve comments.
17774
17775 2017-12-29 Zack Weinberg <zackw@panix.com>
17776
17777 [BZ #22615]
17778 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17779 might be set on success.
17780
17781 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17782
17783 [BZ #22611]
17784 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17785 is unchanged on success.
17786
17787 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17788
17789 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17790 updated.
17791 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17792 expand_dynamic_string_token): Likewise.
17793 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17794 is_path argument.
17795
17796 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17797 contains ':'.
17798
17799 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17800 is set and name contains ':', and all code depending on these checks.
17801
17802 2017-12-24 Zack Weinberg <zackw@panix.com>
17803
17804 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17805 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17806 respectively.
17807 * libio/libio.h: Rename the original version of this file to
17808 libio/bits/libio.h. Error out if not included by stdio.h or the
17809 stub libio.h.
17810 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17811 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17812 if not included by bits/libio.h or the stub _G_config.h.
17813 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17814 sysdeps/unix/sysv/linux/bits. Error out if not included by
17815 bits/libio.h or the stub _G_config.h.
17816 * libio/stdio.h: Include bits/libio.h, not libio.h.
17817 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17818 well as libio.h and _G_config.h.
17819
17820 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17821 * libio/strfile.h, stdio-common/vfscanf.c
17822 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17823 Include stdio.h, not _G_config.h nor libio.h.
17824 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17825 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17826
17827 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17828
17829 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17830
17831 [BZ #22347]
17832 * stdlib/getrandom.c (getrandom): Fix comment.
17833 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17834
17835 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17836
17837 [BZ #21161]
17838 * manual/arith.texi (strtoul): Fix a typo.
17839
17840 [BZ #22596]
17841 * manual/arith.texi (finite): Fix the description of the return
17842 value.
17843
17844 2017-12-22 Eric Blake <ebb9@byu.net>
17845
17846 Avoid gcc warnings on cygwin
17847 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17848 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17849 Avoid unused variable.
17850
17851 2017-12-22 Florian Weimer <fweimer@redhat.com>
17852
17853 * io/Makefile (routines): Add copy_file_range.
17854 (tests): Add tst-copy_file_range.
17855 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17856 * io/Versions (GLIBC_2.27): Export copy_file_range.
17857 * io/copy_file_range-compat.c: New file.
17858 * io/copy_file_range.c: Likewise.
17859 * io/tst-copy_file_range-compat.c: Likewise.
17860 * io/tst-copy_file_range.c: Likewise.
17861 * manual/llio.texi (Copying File Data): New section.
17862 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17863 * support/Makefile (libsupport-routines): Add support-xfstat,
17864 xftruncate, xlseek.
17865 * support/support-xfstat.c: New file.
17866 * support/xftruncate.c: Likewise.
17867 * support/xlseek.c: Likewise.
17868 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17869 * sysdeps/unix/sysv/linux/**.abilist: Update.
17870 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17871
17872 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17873
17874 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17875 disable-multi-arch variant to aarch64-linux-gnu.
17876
17877 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17878
17879 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17880 trailing whitespace removed.
17881 * scripts/config.guess: Update to version 2017-12-17.
17882 * scripts/config.sub: Update to version 2017-11-23.
17883 * scripts/install-sh: Update to version 2017-09-23.17.
17884 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17885
17886 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17887
17888 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17889 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17890 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17891 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17892 * sysdeps/tile/crtn.S: Likewise.
17893 * sysdeps/tile/dl-start.S (_start): Likewise.
17894 * sysdeps/tile/dl-trampoline.S: Likewise.
17895 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17896 * sysdeps/tile/start.S (_start): Likewise.
17897 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17898 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17899 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17900 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17901 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17902 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17903 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17904
17905 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17906 comment.
17907 * sysdeps/tile/preconfigure: Remove tilegx folder.
17908 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17909 * sysdeps/tile/Implies: ... here.
17910 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17911 * sysdeps/tile/Makefile: ... here.
17912 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17913 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17914 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17915 * sysdeps/tile/bits/wordsize.h: ... here.
17916 * sysdeps/tile/tilegx/*: Move to ...
17917 * sysdeps/tile/*: ... here.
17918 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17919 * sysdeps/tile/tilegx32/Implies: ... here.
17920 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17921 * sysdeps/tile/tilegx64/Implies: ... here.
17922 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17923 to ...
17924 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17925 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17926 * sysdeps/unix/sysv/linux/tile/*: ... here.
17927 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17928 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17929 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17930 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17931
17932 * README: Remove tilepro-*-linux-gnu from supported architecture.
17933 * scripts/build-many-glibcs.py: Likewise.
17934 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17935 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17936 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17937 elf_machine_matches_host, elf_machine_dynamic,
17938 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17939 howto, elf_machine_rela): Likewise.
17940 * sysdeps/tile/dl-start.S (_start): Likewise.
17941 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17942 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17943 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17944 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17945 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17946 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17947 Likewise.
17948 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17949 * sysdeps/tile/preconfigure: Likewise.
17950 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17951 POINTER_CHK_GUARD): Likewise.
17952 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17953 * sysdeps/tile/start.S (_start): Likewise.
17954 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17955 Likewise.
17956 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17957 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17958 CMOVNEZ): Remove.
17959 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17960 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17961 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17962 Likewise.
17963 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17964 * sysdeps/tile/tilepro/Implies: Remove file.
17965 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17966 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17967 * sysdeps/tile/tilepro/memchr.c: Likewise.
17968 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17969 * sysdeps/tile/tilepro/memset.c: Likewise.
17970 * sysdeps/tile/tilepro/memusage.h: Likewise.
17971 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17972 * sysdeps/tile/tilepro/strchr.c: Likewise.
17973 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17974 * sysdeps/tile/tilepro/strlen.c: Likewise.
17975 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17976 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17977 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17978 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17979 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17981 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17982 Likewise.
17983 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17995 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17996 tilepro mention in comment.
17997
17998 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17999 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18000 * nptl/pthread_join_common.c: New file: common function used on
18001 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18002 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18003 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18004 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18005 (cleanup): Move definition to pthread_join_common.c.
18006 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18007 Remove superflous checks.
18008 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18009 Likewise.
18010
18011 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18012
18013 * sysdeps/aarch64/libm-test-ulps: Update.
18014
18015 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18016
18017 * sysdeps/aarch64/memset.S (MEMSET): Define.
18018
18019 2017-12-20 Florian Weimer <fweimer@redhat.com>
18020
18021 [BZ #22635]
18022 nptl: Provide full implementation of pthread_self in libc.so.
18023 * nptl/Makefile (routines): Add pthread_self.
18024 (libpthread-routines): Replace pthread_self with
18025 compat-pthread_self.
18026 * nptl/forward.c (pthread_self): Remove.
18027 * nptl/nptl-init.c (pthread_functions): Do not initialize
18028 ptr_pthread_self.
18029 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18030 * nptl/compat-pthread_self.c: New file.
18031 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18032 Remove ptr_pthread_self.
18033
18034 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18035
18036 * posix/regcomp.c: Fix spelling in comments.
18037 * posix/regex.h: Likewise.
18038 * posix/regex_internal.c: Likewise.
18039 * posix/regexec.c: Likewise.
18040
18041 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18042
18043 [BZ #22377]
18044 * math/Makefile [C++] (tests): Add test for iseqsig.
18045 * math/math.h [C++] (iseqsig): New implementation, which does
18046 not rely on __MATH_TG/__builtin_types_compatible_p.
18047 * math/test-math-iseqsig.cc: New file.
18048 * sysdeps/powerpc/powerpc64le/Makefile
18049 (CFLAGS-test-math-iseqsig.cc): New variable.
18050
18051 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18052
18053 * elf/dl-load.c (is_trusted_path): Remove.
18054 (fillin_rpath): Remove check_trusted argument and its use,
18055 all callers changed.
18056
18057 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18058
18059 [BZ #22630]
18060 * Makeconfig (link-pie-before-libc): Replace -pie with
18061 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18062 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18063 (tst-dlopen-aout-no-pie): New.
18064 (LDFLAGS-tst-prelink): Removed.
18065 (tst-prelink-no-pie): New.
18066 (LDFLAGS-tst-main1): Removed.
18067 (tst-main1-no-pie): New.
18068 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18069 (tst-gmon-no-pie): New.
18070
18071 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18072
18073 * manual/install.texi: Document that --enable-static-pie
18074 implies PIE.
18075 * INSTALL: Regenerated.
18076
18077 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18078
18079 [BZ #21309]
18080 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18081 unsigned.
18082
18083 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18084
18085 Revert:
18086
18087 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18088
18089 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18090
18091 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18092
18093 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18094 <errno.h>. Include "eexp.tbl".
18095 (half): New constant.
18096 (one): Likewise.
18097 (__ieee754_exp): Rewrite.
18098 (__slowexp): Remove prototype.
18099 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18100 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18101 * sysdeps/i386/fpu/slowexp.c: Likewise.
18102 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18103 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18104 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18105 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18106 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18107 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18108 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18109 comment.
18110 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18111 (CPPFLAGS-slowexp.c): Remove variable.
18112 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18113 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18114 (CFLAGS-slowexp-fma.c): Remove variable.
18115 (CFLAGS-slowexp-fma4.c): Likewise.
18116 (CFLAGS-slowexp-avx.c): Likewise.
18117 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18118 define as macro.
18119 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18120 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18121 * math/Makefile (type-double-routines): Remove slowexp.
18122 * manual/probes.texi (slowexp_p6): Remove.
18123 (slowexp_p32): Likewise.
18124
18125 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18126
18127 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18128 arithmetic.
18129
18130 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18131
18132 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18133
18134 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18135
18136 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18137
18138 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18139 <errno.h>. Include "eexp.tbl".
18140 (half): New constant.
18141 (one): Likewise.
18142 (__ieee754_exp): Rewrite.
18143 (__slowexp): Remove prototype.
18144 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18145 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18146 * sysdeps/i386/fpu/slowexp.c: Likewise.
18147 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18148 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18149 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18150 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18151 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18152 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18153 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18154 comment.
18155 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18156 (CPPFLAGS-slowexp.c): Remove variable.
18157 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18158 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18159 (CFLAGS-slowexp-fma.c): Remove variable.
18160 (CFLAGS-slowexp-fma4.c): Likewise.
18161 (CFLAGS-slowexp-avx.c): Likewise.
18162 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18163 define as macro.
18164 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18165 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18166 * math/Makefile (type-double-routines): Remove slowexp.
18167 * manual/probes.texi (slowexp_p6): Remove.
18168 (slowexp_p32): Likewise.
18169
18170 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18171 James Clarke <jrtc27@jrtc27.com>
18172
18173 [BZ #22603]
18174 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18175 addition.
18176
18177 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18178
18179 [BZ #22605]
18180 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18181 code.
18182
18183 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18184
18185 [BZ #22563]
18186 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18187 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18188 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18189 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18190 to feature_1.
18191
18192 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18193
18194 [BZ #22563]
18195 * bits/types/__cancel_jmp_buf_tag.h: New file.
18196 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18197 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18198 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18199 * nptl/Makefile (headers): Add
18200 bits/types/__cancel_jmp_buf_tag.h.
18201 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18202 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18203 * sysdeps/nptl/pthread.h: Include
18204 <bits/types/__cancel_jmp_buf_tag.h>.
18205 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18206 __cancel_jmp_buf.
18207 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18208
18209 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18210
18211 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18212 --enable-static-pie variants to x86_64, x32 and i686.
18213
18214 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18215
18216 [BZ #22631]
18217 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18218 argument for attrubutes. All callers changed.
18219 (__inline_mathop1): Likewise. All callers changed.
18220 (__inline_mathop): Likewise. All callers changed.
18221 [__USE_MISC] (scalbn): Use __inline_forward instead of
18222 __inline_forward_c.
18223 [__USE_ISOC99] (scalbln): Likewise.
18224 [__USE_ISOC99] (nearbyint): Likewise.
18225 [__USE_ISOC99] (lrint): Likewise.
18226 [__USE_MISC] (scalbnf): Likewise.
18227 [__USE_ISOC99] (scalblnf): Likewise.
18228 [__USE_ISOC99] (nearbyintf): Likewise.
18229 [__USE_ISOC99] (lrintf): Likewise.
18230 [__USE_MISC] (scalbnl): Likewise.
18231 [__USE_ISOC99] (scalblnl): Likewise.
18232 [__USE_ISOC99] (nearbyintl): Likewise.
18233 [__USE_ISOC99] (lrintl): Likewise.
18234 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18235 __inline_mathop and __m81_defun changed.
18236
18237 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18238 CPU or FPU for ARM hard-float configurations.
18239
18240 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18241
18242 * nptl/tst-attr3.c: Include <libc-diag.h>.
18243 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18244
18245 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18246
18247 * string/tester.c (test_strncat): Also disable -Warray-bounds
18248 warnings for two tests.
18249
18250 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18251
18252 [BZ #22614]
18253 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18254 $(cc-pie-default) == yes.
18255 * config.make.in (cc-pie-default): New.
18256 * configure.ac (libc_cv_pie_default): Renamed to ...
18257 (libc_cv_cc_pie_default): This.
18258 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18259 * configure: Regenerated.
18260
18261 2017-12-18 Florian Weimer <fweimer@redhat.com>
18262
18263 [BZ #20204]
18264 ld.so: Harden dl-libc/libdl hooks.
18265 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18266 (rtld_active): New function.
18267 * dlfcn/dladdr.c (__dladdr): Call it.
18268 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18269 * dlfcn/dlclose.c (__dlcose): Likewise.
18270 * dlfcn/dlerror.c (__dlerror): Likewise.
18271 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18272 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18273 * dlfcn/dlopen.c (__dlopen): Likewise.
18274 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18275 * dlfcn/dlsym.c (__dlsym): Likewise.
18276 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18277 * libio/vtables.c (_IO_vtable_check): Likewise.
18278 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18279 (__libc_dlclose): Likewise.
18280 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18281 assignment.
18282
18283 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18284
18285 [BZ #22446]
18286 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18287 buffers for readlink input and output.
18288
18289 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18290
18291 [BZ #22624]
18292 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18293 inhibit_stack_protector.
18294
18295 [BZ #22624]
18296 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18297 inhibit_stack_protector.
18298
18299 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18300
18301 [BZ #22627]
18302 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18303 code and invocation.
18304
18305 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18306
18307 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18308
18309 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18310
18311 [BZ #22505]
18312 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18313
18314 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18315
18316 * sysdeps/s390/fpu/libm-test-ulps: Update.
18317
18318 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18319
18320 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18321
18322 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18323
18324 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18325 constants to s_sincosf.h file.
18326 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18327 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18328 implementation.
18329 * sysdeps/ieee754/flt-32/s_sincosf.h:
18330 New file.
18331
18332 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18333
18334 [BZ #14681]
18335 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18336 before mtrace.
18337
18338 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18339
18340 [BZ #19574]
18341 * INSTALL: Regenerated.
18342 * Makeconfig (real-static-start-installed-name): New.
18343 (pic-default): Updated for --enable-static-pie.
18344 (pie-default): New for --enable-static-pie.
18345 (default-pie-ldflag): Likewise.
18346 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18347 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18348 Replace $(static-start-installed-name) with
18349 $(real-static-start-installed-name).
18350 (+prectorT): Updated for --enable-static-pie.
18351 (+postctorT): Likewise.
18352 (CFLAGS-.o): Add $(pie-default).
18353 (CFLAGS-.op): Likewise.
18354 * NEWS: Mention --enable-static-pie.
18355 * config.h.in (ENABLE_STATIC_PIE): New.
18356 * configure.ac (--enable-static-pie): New configure option.
18357 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18358 (have-static-pie): Likewise.
18359 Enable static PIE if linker supports --no-dynamic-linker.
18360 (ENABLE_STATIC_PIE): New AC_DEFINE.
18361 (enable-static-pie): New LIBC_CONFIG_VAR.
18362 * configure: Regenerated.
18363 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18364 gr$(start-installed-name) for --enable-static-pie.
18365 (extra-objs): Likewise.
18366 (install-lib): Likewise.
18367 (extra-objs): Add static-reloc.o and static-reloc.os
18368 ($(objpfx)$(start-installed-name)): Also depend on
18369 $(objpfx)static-reloc.o.
18370 ($(objpfx)r$(start-installed-name)): New.
18371 ($(objpfx)g$(start-installed-name)): Also depend on
18372 $(objpfx)static-reloc.os.
18373 ($(objpfx)gr$(start-installed-name)): New.
18374 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18375 in libc.a.
18376 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18377 initimage.
18378 * csu/static-reloc.c: New file.
18379 * elf/Makefile (routines): Add dl-reloc-static-pie.
18380 (elide-routines.os): Likewise.
18381 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18382 (tst-tls1-static-non-pie-no-pie): New.
18383 * elf/dl-reloc-static-pie.c: New file.
18384 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18385 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18386 STATIC_PIE_BOOTSTRAP.
18387 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18388 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18389 (tests-static): Likewise.
18390 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18391 (tst-gmon-static-no-pie): New.
18392 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18393 (CRT-tst-gmon-static-pie): Likewise.
18394 (tst-gmon-static-pie-ENV): Likewise.
18395 (tests-special): Likewise.
18396 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18397 (clean-tst-gmon-static-pie-data): Likewise.
18398 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18399 * gmon/tst-gmon-static-pie.c: New file.
18400 * manual/install.texi: Document --enable-static-pie.
18401 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18402 (_dl_get_dl_main_map): Likewise.
18403 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18404 * sysdeps/x86_64/configure.ac: Likewise.
18405 * sysdeps/i386/configure: Regenerated.
18406 * sysdeps/x86_64/configure: Likewise.
18407 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18408 (ASFLAGS-.op): Likewise.
18409
18410 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18411
18412 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18413 * posix/tst-mmap-offset.c (fname): Use /tmp.
18414 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18415
18416 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18417
18418 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18419
18420 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18421
18422 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18423 errno.
18424
18425 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18426
18427 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18428 --with-float=hard for arm-linux-gnueabihf configurations.
18429
18430 [BZ #14121]
18431 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18432 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18433 ($(mo-installed)): Use $(objpfx)%.mo.
18434 (realclean): Remove rule.
18435
18436 * po/Makefile (linguas): Remove rule and dependencies.
18437 (linguas.mo): Likewise.
18438 (.PHONY): Do not depend on linguas and linguas.mo.
18439 (podir): Remove variable.
18440 (pofiles): Likewise.
18441 [$(pofiles)] (%.po): Remove rule.
18442
18443 * sysdeps/sparc/sparc32/Makefile
18444 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18445 start-of-line whitespace in argument of echo.
18446 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18447 with whitespace. Generate __wrap_.udiv alias.
18448 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18449 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18450 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18451 * sysdeps/sparc/sparc32/urem.S: Likewise.
18452
18453 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18454
18455 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18456 for aligned inputs.
18457
18458 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18459
18460 * benchtests/bench-strcmp.c: Print output in JSON format.
18461
18462 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18463
18464 2017-12-14 Florian Weimer <fweimer@redhat.com>
18465
18466 [BZ #22607]
18467 CVE-2017-1000409
18468 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18469 the expanded path string.
18470
18471 2017-12-14 Florian Weimer <fweimer@redhat.com>
18472
18473 [BZ #22606]
18474 CVE-2017-1000408
18475 * elf/dl-load.c (system_dirs): Update comment.
18476 (nsystem_dirs_len): Use array_length.
18477 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18478
18479 2017-12-14 Florian Weimer <fweimer@redhat.com>
18480
18481 Simplify compiling most of support/ outside of glibc.
18482 * support/check_addrinfo.c: Include <string.h>.
18483 * support/check_dns_packet.c: Likewise.
18484 * support/check_hostent.c: Likewise.
18485 * support/support_can_chroot.c: Include <support/xunistd.h>.
18486 * support/support_format_addrinfo.c: Include <stdlib.h>
18487 * support/support_format_dns_packet.c: Include <stdbool.h>.
18488 * support/support_format_hostent.c: Include <stdlib.h>.
18489 * support/support_format_netent.c: Likewise.
18490 * support/support_write_string.c: Include <support/xunistd.h>.
18491 * support/xdlfcn.c: Include <stddef.h>.
18492
18493 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18494
18495 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18496
18497 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18498 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18499
18500 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18501 (sysdeps_routines): Add memset-niagara7.
18502 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18503 Likewise.
18504 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18505 file.
18506 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18507 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18508 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18509 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18510 Add niagara7 option.
18511 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18512 memset.
18513
18514 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18515 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18516 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18517 Likewise.
18518 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18519 New file.
18520 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18521 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18522 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18523 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18524 and __memmove_niagara7.
18525 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18526 Add niagara7 option.
18527 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18528 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18529 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18530 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18531 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18532
18533 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18534
18535 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18536 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18537 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18538 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18539
18540 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18541 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18542 _dl_sparc_cap_flags array.
18543 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18544
18545 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18546
18547 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18548 time whenever possible.
18549
18550 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18551
18552 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18553 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18554
18555 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18556
18557 * soft-fp/fmadf4.c: Move to ....
18558 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18559 * soft-fp/fmasf4.c: Move to ....
18560 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18561 * soft-fp/fmatf4.c: Move to ....
18562 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18563 * sysdeps/ieee754/soft-fp/Makefile: New file.
18564 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18565 * sysdeps/arm/preconfigure: Regenerated.
18566 * sysdeps/arm/nofpu/Implies: New file.
18567 * sysdeps/arm/s_fma.c: Remove file.
18568 * sysdeps/arm/s_fmaf.c: Likewise.
18569 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18570 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18571 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18572 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18573 * sysdeps/microblaze/s_fma.c: Remove file.
18574 * sysdeps/microblaze/s_fmaf.c: Likewise.
18575 * sysdeps/mips/mips32/nofpu/Implies: New file.
18576 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18577 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18578 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18579 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18580 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18581 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18582 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18583 implementation.
18584 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18585 * sysdeps/nios2/s_fma.c: Remove file.
18586 * sysdeps/nios2/s_fmaf.c: Likewise.
18587 * sysdeps/sh/nofpu/Implies: New file.
18588 * sysdeps/sh/s_fma.c: Remove file.
18589 * sysdeps/sh/s_fmaf.c: Likewise.
18590 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18591 * sysdeps/tile/s_fma.c: Remove file.
18592 * sysdeps/tile/s_fmaf.c: Likewise.
18593
18594 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18595
18596 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18597 Add s_cosf-sse2 and s_cosf-fma.
18598 (CFLAGS-s_cosf-fma.c): New.
18599 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18600 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18601 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18602
18603 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18604
18605 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18606
18607 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18608
18609 * libio/Makefile (tests): Add tst-bz22415.
18610 (tst-bz22415-ENV): New rule.
18611 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18612 (tests-special): Add tst-bz22415-mem.out.
18613 ($(objpfx)tst-bz22415-mem.out): New rule.
18614 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18615 in case of a successful seek operation.
18616 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18617 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18618 buffer is required.
18619 * libio/tst-bz22415.c: New test.
18620
18621 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18622
18623 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18624
18625 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18626 __IPC_64 to 0 to avoid IPC_64 being set.
18627
18628 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18629
18630 [BZ #22593]
18631 * math/bits/mathcalls.h (nextafter): Remove const.
18632 (nexttoward): Likewise.
18633
18634 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18635
18636 * configure.ac (--with-fp): Remove configure option.
18637 (with_fp_cond): New variable.
18638 (libc_cv_with_fp): New configure test. Use this variable instead
18639 of with_fp.
18640 * configure: Regenerated.
18641 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18642 * manual/install.texi (Configuring and compiling): Remove
18643 --without-fp.
18644 * INSTALL: Regenerated.
18645 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18646 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18647 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18648 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18649 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18650 use --without-fp to configure glibc.
18651
18652 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18653
18654 * manual/locale.texi (nl_langinfo): Fix a typo.
18655
18656 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18657
18658 [BZ #22588]
18659 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18660
18661 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18662
18663 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18664 (CFLAGS-argp-parse.c): Likewise.
18665 (CFLAGS-argp-fmtstream.c): Likewise.
18666 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18667 (CPPFLAGS-sha512-crypt.c): Likewise.
18668 (CPPFLAGS-md5-crypt.c): Likewise.
18669 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18670 (CFLAGS-stack_chk_fail_local.c): Likewise.
18671 (CFLAGS-backtrace.c): Likewise.
18672 (CFLAGS-sprintf_chk.c): Likewise.
18673 (CFLAGS-snprintf_chk.c): Likewise.
18674 (CFLAGS-vsprintf_chk.c): Likewise.
18675 (CFLAGS-vsnprintf_chk.c): Likewise.
18676 (CFLAGS-asprintf_chk.c): Likewise.
18677 (CFLAGS-vasprintf_chk.c): Likewise.
18678 (CFLAGS-obprintf_chk.c): Likewise.
18679 (CFLAGS-dprintf_chk.c): Likewise.
18680 (CFLAGS-vdprintf_chk.c): Likewise.
18681 (CFLAGS-printf_chk.c): Likewise.
18682 (CFLAGS-fprintf_chk.c): Likewise.
18683 (CFLAGS-vprintf_chk.c): Likewise.
18684 (CFLAGS-vfprintf_chk.c): Likewise.
18685 (CFLAGS-gets_chk.c): Likewise.
18686 (CFLAGS-fgets_chk.c): Likewise.
18687 (CFLAGS-fgets_u_chk.c): Likewise.
18688 (CFLAGS-fread_chk.c): Likewise.
18689 (CFLAGS-fread_u_chk.c): Likewise.
18690 (CFLAGS-swprintf_chk.c): Likewise.
18691 (CFLAGS-vswprintf_chk.c): Likewise.
18692 (CFLAGS-wprintf_chk.c): Likewise.
18693 (CFLAGS-fwprintf_chk.c): Likewise.
18694 (CFLAGS-vwprintf_chk.c): Likewise.
18695 (CFLAGS-vfwprintf_chk.c): Likewise.
18696 (CFLAGS-fgetws_chk.c): Likewise.
18697 (CFLAGS-fgetws_u_chk.c): Likewise.
18698 (CFLAGS-read_chk.c): Likewise.
18699 (CFLAGS-pread_chk.c): Likewise.
18700 (CFLAGS-pread64_chk.c): Likewise.
18701 (CFLAGS-recv_chk.c): Likewise.
18702 (CFLAGS-recvfrom_chk.c): Likewise.
18703 (CFLAGS-tst-longjmp_chk.c): Likewise.
18704 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18705 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18706 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18707 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18708 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18709 (CFLAGS-tst-chk1.c): Likewise.
18710 (CFLAGS-tst-chk2.c): Likewise.
18711 (CFLAGS-tst-chk3.c): Likewise.
18712 (CFLAGS-tst-chk4.cc): Likewise.
18713 (CFLAGS-tst-chk5.cc): Likewise.
18714 (CFLAGS-tst-chk6.cc): Likewise.
18715 (CFLAGS-tst-lfschk1.c): Likewise.
18716 (CFLAGS-tst-lfschk2.c): Likewise.
18717 (CFLAGS-tst-lfschk3.c): Likewise.
18718 (CFLAGS-tst-lfschk4.cc): Likewise.
18719 (CFLAGS-tst-lfschk5.cc): Likewise.
18720 (CFLAGS-tst-lfschk6.cc): Likewise.
18721 (CFLAGS-tst-ssp-1.c): Likewise.
18722 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18723 (CFLAGS-scandir64.c): Likewise.
18724 (CFLAGS-scandir-tail.c): Likewise.
18725 (CFLAGS-scandir64-tail.c): Likewise.
18726 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18727 (CFLAGS-dl-tunables.c): Likewise.
18728 (CFLAGS-dl-runtime.c): Likewise.
18729 (CFLAGS-dl-lookup.c): Likewise.
18730 (CFLAGS-dl-iterate-phdr.c): Likewise.
18731 (CFLAGS-vismain.c): Likewise.
18732 (CFLAGS-tst-linkall-static.c): Likewise.
18733 (CFLAGS-tst-linkall-static.c): Likewise.
18734 (CPPFLAGS-dl-load.c): Likewise.
18735 (CFLAGS-ldconfig.c): Likewise.
18736 (CFLAGS-dl-cache.c): Likewise.
18737 (CFLAGS-cache.c): Likewise.
18738 (CFLAGS-rtld.c): Likewise.
18739 (CFLAGS-multiload.c): Likewise.
18740 (CFLAGS-filtmod1.c): Likewise.
18741 (CFLAGS-tst-align.c): Likewise.
18742 (CFLAGS-tst-align2.c): Likewise.
18743 (CFLAGS-tst-alignmod.c): Likewise.
18744 (CFLAGS-tst-alignmod2.c): Likewise.
18745 (CPPFLAGS-tst-execstack.c): Likewise.
18746 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18747 (CFLAGS-tst-latepthreadmod.c): Likewise.
18748 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18749 (CFLAGS-getgrnam_r.c): Likewise.
18750 (CFLAGS-getgrent_r.c): Likewise.
18751 (CFLAGS-getgrent.c): Likewise.
18752 (CFLAGS-fgetgrent.c): Likewise.
18753 (CFLAGS-fgetgrent_r.c): Likewise.
18754 (CFLAGS-putgrent.c): Likewise.
18755 (CFLAGS-initgroups.c): Likewise.
18756 (CFLAGS-getgrgid.c): Likewise.
18757 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18758 (CFLAGS-getsgent.c): Likewise.
18759 (CFLAGS-fgetsgent.c): Likewise.
18760 (CFLAGS-fgetsgent_r.c): Likewise.
18761 (CFLAGS-putsgent.c): Likewise.
18762 (CFLAGS-getsgnam.c): Likewise.
18763 (CFLAGS-getsgnam_r.c): Likewise.
18764 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18765 (CFLAGS-iconv_charmap.c): Likewise.
18766 (CFLAGS-dummy-repertoire.c): Likewise.
18767 (CFLAGS-charmap.c): Likewise.
18768 (CFLAGS-linereader.c): Likewise.
18769 (CFLAGS-simple-hash.c): Likewise.
18770 (CFLAGS-gconv_conf.c): Likewise.
18771 (CFLAGS-iconvconfig.c): Likewise.
18772 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18773 (CFLAGS-gethstbyad.c): Likewise.
18774 (CFLAGS-gethstbynm_r.c): Likewise.
18775 (CFLAGS-gethstbynm.c): Likewise.
18776 (CFLAGS-gethstbynm2_r.c): Likewise.
18777 (CFLAGS-gethstbynm2.c): Likewise.
18778 (CFLAGS-gethstent_r.c): Likewise.
18779 (CFLAGS-gethstent.c): Likewise.
18780 (CFLAGS-rcmd.c): Likewise.
18781 (CFLAGS-getnetbynm_r.c): Likewise.
18782 (CFLAGS-getnetbynm.c): Likewise.
18783 (CFLAGS-getnetbyad_r.c): Likewise.
18784 (CFLAGS-getnetbyad.c): Likewise.
18785 (CFLAGS-getnetent_r.c): Likewise.
18786 (CFLAGS-getnetent.c): Likewise.
18787 (CFLAGS-getaliasent_r.c): Likewise.
18788 (CFLAGS-getaliasent.c): Likewise.
18789 (CFLAGS-getrpcent_r.c): Likewise.
18790 (CFLAGS-getrpcent.c): Likewise.
18791 (CFLAGS-getservent_r.c): Likewise.
18792 (CFLAGS-getservent.c): Likewise.
18793 (CFLAGS-getprtent_r.c): Likewise.
18794 (CFLAGS-getprtent.c): Likewise.
18795 (CFLAGS-either_ntoh.c): Likewise.
18796 (CFLAGS-either_hton.c): Likewise.
18797 (CFLAGS-getnetgrent.c): Likewise.
18798 (CFLAGS-getnetgrent_r.c): Likewise.
18799 (CFLAGS-tst-checks-posix.c): Likewise.
18800 (CFLAGS-tst-sockaddr.c): Likewise.
18801 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18802 (CFLAGS-tst-translit.c): Likewise.
18803 (CFLAGS-tst-gettext2.c): Likewise.
18804 (CFLAGS-tst-codeset.c): Likewise.
18805 (CFLAGS-tst-gettext3.c): Likewise.
18806 (CFLAGS-tst-gettext4.c): Likewise.
18807 (CFLAGS-tst-gettext5.c): Likewise.
18808 (CFLAGS-tst-gettext6.c): Likewise.
18809 * io/Makefile (CFLAGS-open.c): Likewise.
18810 (CFLAGS-open64.c): Likewise.
18811 (CFLAGS-creat.c): Likewise.
18812 (CFLAGS-creat64.c): Likewise.
18813 (CFLAGS-fcntl.c): Likewise.
18814 (CFLAGS-poll.c): Likewise.
18815 (CFLAGS-ppoll.c): Likewise.
18816 (CFLAGS-lockf.c): Likewise.
18817 (CFLAGS-statfs.c): Likewise.
18818 (CFLAGS-fstatfs.c): Likewise.
18819 (CFLAGS-statvfs.c): Likewise.
18820 (CFLAGS-fstatvfs.c): Likewise.
18821 (CFLAGS-fts.c): Likewise.
18822 (CFLAGS-fts64.c): Likewise.
18823 (CFLAGS-ftw.c): Likewise.
18824 (CFLAGS-ftw64.c): Likewise.
18825 (CFLAGS-lockf.c): Likewise.
18826 (CFLAGS-posix_fallocate.c): Likewise.
18827 (CFLAGS-posix_fallocate64.c): Likewise.
18828 (CFLAGS-fallocate.c): Likewise.
18829 (CFLAGS-fallocate64.c): Likewise.
18830 (CFLAGS-read.c): Likewise.
18831 (CFLAGS-write.c): Likewise.
18832 (CFLAGS-test-stat.c): Likewise.
18833 (CFLAGS-test-lfs.c): Likewise.
18834 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18835 (CFLAGS-fputc.c): Likewise.
18836 (CFLAGS-fputwc.c): Likewise.
18837 (CFLAGS-freopen64.c): Likewise.
18838 (CFLAGS-freopen.c): Likewise.
18839 (CFLAGS-fseek.c): Likewise.
18840 (CFLAGS-fseeko64.c): Likewise.
18841 (CFLAGS-fseeko.c): Likewise.
18842 (CFLAGS-ftello64.c): Likewise.
18843 (CFLAGS-ftello.c): Likewise.
18844 (CFLAGS-fwide.c): Likewise.
18845 (CFLAGS-genops.c): Likewise.
18846 (CFLAGS-getc.c): Likewise.
18847 (CFLAGS-getchar.c): Likewise.
18848 (CFLAGS-getwc.c): Likewise.
18849 (CFLAGS-getwchar.c): Likewise.
18850 (CFLAGS-iofclose.c): Likewise.
18851 (CFLAGS-iofflush.c): Likewise.
18852 (CFLAGS-iofgetpos64.c): Likewise.
18853 (CFLAGS-iofgetpos.c): Likewise.
18854 (CFLAGS-iofgets.c): Likewise.
18855 (CFLAGS-iofgetws.c): Likewise.
18856 (CFLAGS-iofputs.c): Likewise.
18857 (CFLAGS-iofputws.c): Likewise.
18858 (CFLAGS-iofread.c): Likewise.
18859 (CFLAGS-iofsetpos64.c): Likewise.
18860 (CFLAGS-iofsetpos.c): Likewise.
18861 (CFLAGS-ioftell.c): Likewise.
18862 (CFLAGS-iofwrite.c): Likewise.
18863 (CFLAGS-iogetdelim.c): Likewise.
18864 (CFLAGS-iogetline.c): Likewise.
18865 (CFLAGS-iogets.c): Likewise.
18866 (CFLAGS-iogetwline.c): Likewise.
18867 (CFLAGS-ioputs.c): Likewise.
18868 (CFLAGS-ioseekoff.c): Likewise.
18869 (CFLAGS-ioseekpos.c): Likewise.
18870 (CFLAGS-iosetbuffer.c): Likewise.
18871 (CFLAGS-iosetvbuf.c): Likewise.
18872 (CFLAGS-ioungetc.c): Likewise.
18873 (CFLAGS-ioungetwc.c): Likewise.
18874 (CFLAGS-oldfileops.c): Likewise.
18875 (CFLAGS-oldiofclose.c): Likewise.
18876 (CFLAGS-oldiofgetpos64.c): Likewise.
18877 (CFLAGS-oldiofgetpos.c): Likewise.
18878 (CFLAGS-oldiofsetpos64.c): Likewise.
18879 (CFLAGS-oldiofsetpos.c): Likewise.
18880 (CFLAGS-peekc.c): Likewise.
18881 (CFLAGS-putc.c): Likewise.
18882 (CFLAGS-putchar.c): Likewise.
18883 (CFLAGS-putwc.c): Likewise.
18884 (CFLAGS-putwchar.c): Likewise.
18885 (CFLAGS-rewind.c): Likewise.
18886 (CFLAGS-wfileops.c): Likewise.
18887 (CFLAGS-wgenops.c): Likewise.
18888 (CFLAGS-oldiofopen.c): Likewise.
18889 (CFLAGS-iofopen.c): Likewise.
18890 (CFLAGS-iofopen64.c): Likewise.
18891 (CFLAGS-oldtmpfile.c): Likewise.
18892 (CFLAGS-tst_putwc.c): Likewise.
18893 * locale/Makefile (CFLAGS-md5.c): Likewise.
18894 (CFLAGS-charmap.c): Likewise.
18895 (CFLAGS-locfile.c): Likewise.
18896 (CFLAGS-charmap-dir.c): Likewise.
18897 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18898 (CFLAGS-getpt.c): Likewise.
18899 (CFLAGS-pt_chown.c): Likewise.
18900 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18901 (CFLAGS-obstack.c): Likewise.
18902 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18903 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18904 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18905 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18906 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18907 (CFLAGS-test-tgmath.c): Likewise.
18908 (CFLAGS-test-tgmath2.c): Likewise.
18909 (CFLAGS-test-tgmath-ret.c): Likewise.
18910 (CFLAGS-test-powl.c): Likewise.
18911 (CFLAGS-test-snan.c): Likewise.
18912 (CFLAGS-test-signgam-finite.c): Likewise.
18913 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18914 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18915 (CFLAGS-test-signgam-uchar.c): Likewise.
18916 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18917 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18918 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18919 (CFLAGS-test-signgam-uint.c): Likewise.
18920 (CFLAGS-test-signgam-uint-init.c): Likewise.
18921 (CFLAGS-test-signgam-uint-static.c): Likewise.
18922 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18923 (CFLAGS-test-signgam-ullong.c): Likewise.
18924 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18925 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18926 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18927 (CFLAGS-test-math-cxx11.cc): Likewise.
18928 (CFLAGS-test-math-isinff.cc): Likewise.
18929 (CFLAGS-test-math-iszero.cc): Likewise.
18930 (CFLAGS-test-math-issignaling.cc): Likewise.
18931 (CFLAGS-test-math-iscanonical.cc): Likewise.
18932 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18933 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18934 (CFLAGS-test-flt-eval-method.c): Likewise.
18935 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18936 (CFLAGS-test-finite-macros.c): Likewise.
18937 * misc/Makefile (CFLAGS-select.c): Likewise.
18938 (CFLAGS-tsearch.c): Likewise.
18939 (CFLAGS-lsearch.c): Likewise.
18940 (CFLAGS-pselect.c): Likewise.
18941 (CFLAGS-readv.c): Likewise.
18942 (CFLAGS-writev.c): Likewise.
18943 (CFLAGS-preadv.c): Likewise.
18944 (CFLAGS-preadv64.c): Likewise.
18945 (CFLAGS-pwritev.c): Likewise.
18946 (CFLAGS-pwritev64.c): Likewise.
18947 (CFLAGS-preadv2.c): Likewise.
18948 (CFLAGS-preadv64v2.c): Likewise.
18949 (CFLAGS-pwritev2.c): Likewise.
18950 (CFLAGS-pwritev64v2.c): Likewise.
18951 (CFLAGS-usleep.c): Likewise.
18952 (CFLAGS-syslog.c): Likewise.
18953 (CFLAGS-error.c): Likewise.
18954 (CFLAGS-getpass.c): Likewise.
18955 (CFLAGS-mkstemp.c): Likewise.
18956 (CFLAGS-mkstemp64.c): Likewise.
18957 (CFLAGS-getsysstats.c): Likewise.
18958 (CFLAGS-getusershell.c): Likewise.
18959 (CFLAGS-err.c): Likewise.
18960 (CFLAGS-tst-tsearch.c): Likewise.
18961 (CFLAGS-msync.c): Likewise.
18962 (CFLAGS-fdatasync.c): Likewise.
18963 (CFLAGS-fsync.c): Likewise.
18964 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18965 (CFLAGS-unwind.c): Likewise.
18966 (CFLAGS-unwind-forcedunwind.c): Likewise.
18967 (CFLAGS-pthread_cancel.c): Likewise.
18968 (CFLAGS-pthread_setcancelstate.c): Likewise.
18969 (CFLAGS-pthread_setcanceltype.c): Likewise.
18970 (CFLAGS-cancellation.c): Likewise.
18971 (CFLAGS-libc-cancellation.c): Likewise.
18972 (CFLAGS-pthread_exit.c): Likewise.
18973 (CFLAGS-forward.c): Likewise.
18974 (CFLAGS-pthread_testcancel.c): Likewise.
18975 (CFLAGS-pthread_join.c): Likewise.
18976 (CFLAGS-pthread_timedjoin.c): Likewise.
18977 (CFLAGS-pthread_once.c): Likewise.
18978 (CFLAGS-pthread_cond_wait.c): Likewise.
18979 (CFLAGS-sem_wait.c): Likewise.
18980 (CFLAGS-sem_timedwait.c): Likewise.
18981 (CFLAGS-fcntl.c): Likewise.
18982 (CFLAGS-lockf.c): Likewise.
18983 (CFLAGS-pread.c): Likewise.
18984 (CFLAGS-pread64.c): Likewise.
18985 (CFLAGS-pwrite.c): Likewise.
18986 (CFLAGS-pwrite64.c): Likewise.
18987 (CFLAGS-wait.c): Likewise.
18988 (CFLAGS-waitpid.c): Likewise.
18989 (CFLAGS-sigwait.c): Likewise.
18990 (CFLAGS-msgrcv.c): Likewise.
18991 (CFLAGS-msgsnd.c): Likewise.
18992 (CFLAGS-tcdrain.c): Likewise.
18993 (CFLAGS-open.c): Likewise.
18994 (CFLAGS-open64.c): Likewise.
18995 (CFLAGS-pause.c): Likewise.
18996 (CFLAGS-recv.c): Likewise.
18997 (CFLAGS-send.c): Likewise.
18998 (CFLAGS-accept.c): Likewise.
18999 (CFLAGS-sendto.c): Likewise.
19000 (CFLAGS-connect.c): Likewise.
19001 (CFLAGS-recvfrom.c): Likewise.
19002 (CFLAGS-recvmsg.c): Likewise.
19003 (CFLAGS-sendmsg.c): Likewise.
19004 (CFLAGS-close.c): Likewise.
19005 (CFLAGS-read.c): Likewise.
19006 (CFLAGS-write.c): Likewise.
19007 (CFLAGS-nanosleep.c): Likewise.
19008 (CFLAGS-sigsuspend.c): Likewise.
19009 (CFLAGS-msync.c): Likewise.
19010 (CFLAGS-fdatasync.c): Likewise.
19011 (CFLAGS-fsync.c): Likewise.
19012 (CFLAGS-pt-system.c): Likewise.
19013 (CFLAGS-tst-cleanup2.c): Likewise.
19014 (CFLAGS-tst-cleanupx2.c): Likewise.
19015 (CFLAGS-flockfile.c): Likewise.
19016 (CFLAGS-ftrylockfile.c): Likewise.
19017 (CFLAGS-funlockfile.c): Likewise.
19018 (CFLAGS-tst-initializers1.c): Likewise.
19019 (CFLAGS-tst-initializers1-c89.c): Likewise.
19020 (CFLAGS-tst-initializers1-c99.c): Likewise.
19021 (CFLAGS-tst-initializers1-c11.c): Likewise.
19022 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19023 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19024 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19025 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19026 (CFLAGS-nscd_getgr_r.c): Likewise.
19027 (CFLAGS-nscd_gethst_r.c): Likewise.
19028 (CFLAGS-nscd_getai.c): Likewise.
19029 (CFLAGS-nscd_initgroups.c): Likewise.
19030 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19031 (CFLAGS-pause.c): Likewise.
19032 (CFLAGS-pread.c): Likewise.
19033 (CFLAGS-pread64.c): Likewise.
19034 (CFLAGS-pwrite.c): Likewise.
19035 (CFLAGS-pwrite64.c): Likewise.
19036 (CFLAGS-sleep.c): Likewise.
19037 (CFLAGS-wait.c): Likewise.
19038 (CFLAGS-waitid.c): Likewise.
19039 (CFLAGS-waitpid.c): Likewise.
19040 (CFLAGS-getopt.c): Likewise.
19041 (CFLAGS-wordexp.c): Likewise.
19042 (CFLAGS-sysconf.c): Likewise.
19043 (CFLAGS-pathconf.c): Likewise.
19044 (CFLAGS-fpathconf.c): Likewise.
19045 (CFLAGS-spawn.c): Likewise.
19046 (CFLAGS-spawnp.c): Likewise.
19047 (CFLAGS-spawni.c): Likewise.
19048 (CFLAGS-glob.c): Likewise.
19049 (CFLAGS-glob64.c): Likewise.
19050 (CFLAGS-getconf.c): Likewise.
19051 (CFLAGS-nanosleep.c): Likewise.
19052 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19053 (CFLAGS-getpwent.c): Likewise.
19054 (CFLAGS-getpw.c): Likewise.
19055 (CFLAGS-fgetpwent_r.c): Likewise.
19056 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19057 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19058 (CFLAGS-mq_timedreceive.c): Likewise.
19059 (CFLAGS-mq_timedsend.c): Likewise.
19060 (CFLAGS-clock_nanosleep.c): Likewise.
19061 (CFLAGS-librt-cancellation.c): Likewise.
19062 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19063 (CFLAGS-getspent.c): Likewise.
19064 (CFLAGS-fgetspent.c): Likewise.
19065 (CFLAGS-fgetspent_r.c): Likewise.
19066 (CFLAGS-putspent.c): Likewise.
19067 (CFLAGS-getspnam.c): Likewise.
19068 (CFLAGS-getspnam_r.c): Likewise.
19069 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19070 (CFLAGS-sigsuspend.c): Likewise.
19071 (CFLAGS-sigtimedwait.c): Likewise.
19072 (CFLAGS-sigwait.c): Likewise.
19073 (CFLAGS-sigwaitinfo.c): Likewise.
19074 (CFLAGS-sigreturn.c): Likewise.
19075 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19076 (CFLAGS-vfwprintf.c): Likewise.
19077 (CFLAGS-tmpfile.c): Likewise.
19078 (CFLAGS-tmpfile64.c): Likewise.
19079 (CFLAGS-tempname.c): Likewise.
19080 (CFLAGS-psignal.c): Likewise.
19081 (CFLAGS-vprintf.c): Likewise.
19082 (CFLAGS-cuserid.c): Likewise.
19083 (CFLAGS-errlist.c): Likewise.
19084 (CFLAGS-siglist.c): Likewise.
19085 (CFLAGS-scanf15.c): Likewise.
19086 (CFLAGS-scanf17.c): Likewise.
19087 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19088 (CFLAGS-msort.c): Likewise.
19089 (CFLAGS-qsort.c): Likewise.
19090 (CFLAGS-system.c): Likewise.
19091 (CFLAGS-fmtmsg.c): Likewise.
19092 (CFLAGS-strfmon.c): Likewise.
19093 (CFLAGS-strfmon_l.c): Likewise.
19094 (CFLAGS-strfromd.c): Likewise.
19095 (CFLAGS-strfromf.c): Likewise.
19096 (CFLAGS-strfroml.c): Likewise.
19097 (CFLAGS-tst-bsearch.c): Likewise.
19098 (CFLAGS-tst-qsort.c): Likewise.
19099 (CFLAGS-tst-makecontext2.c): Likewise.
19100 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19101 (CFLAGS-xnlm_prot.c): Likewise.
19102 (CFLAGS-xrstat.c): Likewise.
19103 (CFLAGS-xyppasswd.c): Likewise.
19104 (CFLAGS-xklm_prot.c): Likewise.
19105 (CFLAGS-xrex.c): Likewise.
19106 (CFLAGS-xsm_inter.c): Likewise.
19107 (CFLAGS-xmount.c): Likewise.
19108 (CFLAGS-xrusers.c): Likewise.
19109 (CFLAGS-xspray.c): Likewise.
19110 (CFLAGS-xnfs_prot.c): Likewise.
19111 (CFLAGS-xrquota.c): Likewise.
19112 (CFLAGS-xkey_prot.c): Likewise.
19113 (CFLAGS-auth_unix.c): Likewise.
19114 (CFLAGS-key_call.c): Likewise.
19115 (CFLAGS-pmap_rmt.c): Likewise.
19116 (CFLAGS-clnt_perr.c): Likewise.
19117 (CFLAGS-openchild.c): Likewise.
19118 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19119 (CFLAGS-msgsnd.c): Likewise.
19120 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19121 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19122 (CFLAGS-tzset.c): Likewise.
19123 (CFLAGS-getdate.c): Likewise.
19124 (CFLAGS-test_time.c): Likewise.
19125 (CPPFLAGS-tst-tzname.c): Likewise.
19126 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19127 (CFLAGS-zic.c): Likewise.
19128 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19129 (CFLAGS-wcswidth.c): Likewise.
19130 (CFLAGS-wcstol.c): Likewise.
19131 (CFLAGS-wcstoul.c): Likewise.
19132 (CFLAGS-wcstoll.c): Likewise.
19133 (CFLAGS-wcstoull.c): Likewise.
19134 (CFLAGS-wcstod.c): Likewise.
19135 (CFLAGS-wcstold.c): Likewise.
19136 (CFLAGS-wcstof128.c): Likewise.
19137 (CFLAGS-wcstof.c): Likewise.
19138 (CFLAGS-wcstol_l.c): Likewise.
19139 (CFLAGS-wcstoul_l.c): Likewise.
19140 (CFLAGS-wcstoll_l.c): Likewise.
19141 (CFLAGS-wcstoull_l.c): Likewise.
19142 (CFLAGS-wcstod_l.c): Likewise.
19143 (CFLAGS-wcstold_l.c): Likewise.
19144 (CFLAGS-wcstof128_l.c): Likewise.
19145 (CFLAGS-wcstof_l.c): Likewise.
19146 (CPPFLAGS-tst-wchar-h.c): Likewise.
19147 (CPPFLAGS-wcstold_l.c): Likewise.
19148
19149 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19150
19151 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19152
19153 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19154 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19155
19156 * manual/tunables.texi (Hardware Capability Tunables): Document
19157 glibc.tune.cached_memopt.
19158 * sysdeps/powerpc/cpu-features.c: New file.
19159 * sysdeps/powerpc/cpu-features.h: New file.
19160 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19161 _dl_powerpc_cpu_features.
19162 * sysdeps/powerpc/dl-tunables.list: New file.
19163 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19164 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19165 (INIT_ARCH): Initialize use_aligned_memopt.
19166 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19167 IS_IN(rtld))]: Restrict dl_platform_init availability and
19168 initialize CPU features used by tunables.
19169 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19170 Add memcpy-power8-cached.
19171 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19172 __memcpy_power8_cached.
19173 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19174 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19175 New file.
19176
19177 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19178
19179 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19180 (CFLAGS-noinl-tester.c): Likewise.
19181 (CFLAGS-tst-strlen.c): Likewise.
19182 (CFLAGS-stratcliff.c): Likewise.
19183 (CFLAGS-test-ffs.c): Likewise.
19184 (CFLAGS-tst-inlcall.c): Likewise.
19185 (CFLAGS-tst-xbzero-opt.c): Likewise.
19186 (CFLAGS-memcpy.c): Likewise.
19187 (CFLAGS-wordcopy.c): Likewise.
19188
19189 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19190
19191 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19192 Store r15 on stack and add cfi rule.
19193 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19194 Likewise.
19195
19196 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19197
19198 [BZ #22577]
19199 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19200 call.
19201
19202 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19203
19204 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19205 Add s_sinf-sse2 and s_sinf-fma.
19206 (CFLAGS-s_sinf-fma.c): New.
19207 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19208 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19209 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19210
19211 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19212
19213 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19214
19215 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19216
19217 [BZ #22568]
19218 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19219 part of result to imaginary part of argument if it is zero and the
19220 real part of the argument is not finite.
19221 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19222 of result to real part of argument if it is zero and the imaginary
19223 part of the argument is not finite.
19224
19225 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19226
19227 [BZ #22524]
19228 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19229 and to the list of locales to be built for testing.
19230 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19231 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19232 and build the collation rules upon that.
19233
19234 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19235
19236 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19237 * manual/math.texi (Mathematics): Document support for _Float32.
19238 * math/Makefile (test-types): Add float32.
19239 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19240 * stdlib/Versions (GLIBC_2.27): Likewise.
19241 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19242 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19243 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19244 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19245 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19246 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19247 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19248 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19249 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19250 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19251 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19252 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19253 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19254 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19255 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19256 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19257 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19258 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19259 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19260 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19261 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19262 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19263 Likewise.
19264 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19265 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19266 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19267 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19268 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19270 Likewise.
19271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19272 Likewise.
19273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19274 Likewise.
19275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19276 Likewise.
19277
19278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19279 Likewise.
19280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19281 Likewise.
19282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19283 Likewise.
19284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19285 Likewise.
19286 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19287 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19288 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19289 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19290 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19291 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19292 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19293 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19294 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19295 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19296 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19297 Likewise.
19298 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19299 Likewise.
19300 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19301 Likewise.
19302 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19303 Likewise.
19304 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19305 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19306 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19307 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19308 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19309 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19310 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19311 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19312
19313 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19314
19315 * stdlib/strtof.c: Include <bits/floatn.h>
19316 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19317 and later undefine as macro. Define as weak alias if
19318 [!USE_WIDE_CHAR].
19319 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19320 and later undefine as macro. Define as weak alias if
19321 [USE_WIDE_CHAR].
19322 * stdlib/strtof_l.c: Include <bits/floatn.h>
19323 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19324 and later undefine as macro. Define as weak alias if
19325 [!USE_WIDE_CHAR].
19326 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19327 and later undefine as macro. Define as weak alias if
19328 [USE_WIDE_CHAR].
19329
19330 * stdlib/strfromf.c: Include <bits/floatn.h>.
19331 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19332 and later undefine as macro and define as weak alias.
19333
19334 * math/test-float32.h: New file.
19335
19336 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19337 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19338 (libm_alias_float_other_r): Create f32 alias.
19339 (libm_alias_float_r): Use semicolon before call to
19340 libm_alias_float_other_r.
19341
19342 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19343 second argument to libm_alias_float_other.
19344 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19345 second argument to libm_alias_float_other.
19346 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19347 argument to libm_alias_float_other.
19348
19349 [BZ #22561]
19350 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19351 real part of result for argument 0 + i * NaN.
19352 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19353 results for tests of 0 + i * NaN.
19354
19355 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19356
19357 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19358
19359 2017-12-06 David S. Miller <davem@davemloft.net>
19360
19361 * sysdeps/sparc/fpu/libm-test-ulps: Update
19362 exp_{downward,towardzero,upward} ulps.
19363
19364 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19365
19366 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19367 variables static.
19368
19369 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19370 (Y0_2D): Likewise.
19371 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19372 (Y0_2D): Likewise.
19373 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19374 (Y0_2D): Likewise.
19375 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19376 (Y0_2D): Likewise.
19377
19378 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19379
19380 [BZ #22515]
19381 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19382 and to the list of locales to be built for testing.
19383 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19384 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19385 and build the collation rules upon that.
19386
19387 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19388
19389 * NEWS: Add sinf to list of optimized functions.
19390
19391 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19392
19393 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19394 (__HAVE_FLOAT32X): Likewise.
19395 * manual/math.texi (Mathematics): Document support for _Float64
19396 and _Float32x.
19397 * math/Makefile (test-types): Add float64 and float32x.
19398 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19399 functions.
19400 * stdlib/Versions (GLIBC_2.27): Likewise.
19401 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19403 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19404 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19405 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19406 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19407 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19408 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19409 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19410 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19411 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19412 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19413 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19414 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19415 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19416 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19417 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19418 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19419 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19420 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19421 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19422 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19423 Likewise.
19424 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19425 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19426 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19427 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19428 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19430 Likewise.
19431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19432 Likewise.
19433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19434 Likewise.
19435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19436 Likewise.
19437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19438 Likewise.
19439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19440 Likewise.
19441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19442 Likewise.
19443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19444 Likewise.
19445 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19446 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19447 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19448 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19449 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19450 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19452 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19453 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19454 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19455 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19456 Likewise.
19457 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19458 Likewise.
19459 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19460 Likewise.
19461 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19462 Likewise.
19463 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19464 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19465 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19466 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19467 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19469 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19470 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19471
19472 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19473
19474 * bits/floatn-common.h: Include <bits/long-double.h>.
19475 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19476 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19477 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19478 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19479 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19480 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19481 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19482 (__builtin_huge_valf64): Use __builtin_huge_vall.
19483 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19484 (__builtin_inff64): Use __builtin_infl.
19485 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19486 (__builtin_nanf64): Use __builtin_nanl.
19487 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19488 (__builtin_nansf64): Use __builtin_nansl.
19489
19490 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19491 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19492 Carlos O'Donnell <carlos@redhat.com>
19493
19494 * elf/dl-tunables.list: Add elision parameters.
19495 * manual/tunables.texi: Add entries about elision tunable.
19496 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19497 Add callback functions to dynamically enable/disable elision.
19498 Add multiple callbacks functions to set elision parameters.
19499 Deleted __libc_enable_secure check.
19500 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19501 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19502 * configure: Regenerated.
19503 * configure.ac: Option enable_lock_elision was deleted.
19504 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19505 * config.make.in: Remove references to enable_lock_elision.
19506 * manual/install.texi: Elision configure option was removed.
19507 * INSTALL: Regenerated to remove enable_lock_elision.
19508 * nptl/Makefile:
19509 Disable elision so it can verify error case for destroying a mutex.
19510 * sysdeps/powerpc/nptl/elide.h:
19511 Cleanup ENABLE_LOCK_ELISION check.
19512 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19513 * sysdeps/s390/configure: Regenerated.
19514 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19515 * nptl/tst-mutex8.c:
19516 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19517 * sysdeps/powerpc/powerpc32/sysdep.h:
19518 Deleted all ENABLE_LOCK_ELISION checks.
19519 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19520 * sysdeps/powerpc/sysdep.h: Likewise.
19521 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19522 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19523 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19524 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19525 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19526 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19527 enable-lock-elision.
19528
19529 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19530
19531 * stdlib/strtod.c: Include <bits/floatn.h>.
19532 (BUILD_DOUBLE): New macro.
19533 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19534 (strtof64): Define and later undefine as macro. Define as weak
19535 alias if [!USE_WIDE_CHAR].
19536 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19537 (wcstof64): Define and later undefine as macro. Define as weak
19538 alias if [USE_WIDE_CHAR].
19539 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19540 (strtof32x): Define and later undefine as macro. Define as weak
19541 alias if [!USE_WIDE_CHAR].
19542 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19543 (wcstof32x): Define and later undefine as macro. Define as weak
19544 alias if [USE_WIDE_CHAR].
19545 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19546 (BUILD_DOUBLE): New macro.
19547 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19548 (strtof64_l): Define and later undefine as macro. Define as weak
19549 alias if [!USE_WIDE_CHAR].
19550 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19551 (wcstof64_l): Define and later undefine as macro. Define as weak
19552 alias if [USE_WIDE_CHAR].
19553 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19554 (strtof32x_l): Define and later undefine as macro. Define as weak
19555 alias if [!USE_WIDE_CHAR].
19556 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19557 (wcstof32x_l): Define and later undefine as macro. Define as weak
19558 alias if [USE_WIDE_CHAR].
19559
19560 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19561
19562 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19563 (reduced): Use ones as double instead of integer.
19564
19565 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19566
19567 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19568
19569 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19570
19571 * stdlib/strfromd.c: Include <bits/floatn.h>.
19572 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19573 and later undefine as macro and define as weak alias.
19574 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19575 Likewise.
19576
19577 * math/test-float32x.h: New file.
19578 * math/test-float64.h: Likewise.
19579
19580 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19581 (libm_alias_double_other_r_f64): New macro.
19582 (libm_alias_double_other_r_f32x): Likewise.
19583 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19584 libm_alias_double_other_r_f32x.
19585 (libm_alias_double_r): Use semicolon before call to
19586 libm_alias_double_other_r.
19587 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19588 <bits/floatn.h>.
19589 (libm_alias_double_other_r_f64): New macro.
19590 (libm_alias_double_other_r_f32x): Likewise.
19591 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19592 libm_alias_double_other_r_f32x.
19593
19594 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19595
19596 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19597 int.
19598 (SINF_FUNC): Likewise. Replace floor with simple casts.
19599
19600 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19601
19602 [BZ #22517]
19603 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19604 and to the list of locales to be built for testing.
19605 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19606 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19607 and build the collation rules upon that.
19608
19609 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19610
19611 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19612 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19613 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19614 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19615 instead of __insn__xxx.
19616 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19617 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19618 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19619 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19620 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19621 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19622
19623 2017-12-05 Florian Weimer <fweimer@redhat.com>
19624
19625 Linux: Implement interfaces for memory protection keys
19626 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19627 xsignal, xsysconf.
19628 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19629 * support/xunistd.h (xsysconf): Declare.
19630 * support/xraise.c: New file.
19631 * support/xsigaction.c: Likewise.
19632 * support/xsignal.c: Likewise.
19633 * support/xsysconf.c: Likewise.
19634 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19635 pkey_set, pkey_get, pkey_mprotect.
19636 [misc] (tests): Add tst-pkey.
19637 (tst-pkey): Link with -lpthread.
19638 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19639 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19640 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19641 (PKEY_DISABLE_WRITE): Define.
19642 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19643 Declare.
19644 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19645 (SEGV_PKUERR): Add.
19646 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19647 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19648 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19649 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19650 Add.
19651 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19652 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19653 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19654 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19655 * sysdeps/unix/sysv/linux/**.abilist: Update.
19656
19657 2017-12-05 Florian Weimer <fweimer@redhat.com>
19658
19659 * support/tst-test_compare.c (subprocess): Use long long instead
19660 of long argument for consistent type width across 32-bit and
19661 64-bit architectures.
19662 (do_test): Adjust expected output.
19663
19664 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19665
19666 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19667 (cosf): Define using libm_alias_float.
19668 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19669 (fabsf): Define using libm_alias_float.
19670 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19671 (fmaf): Define using libm_alias_float.
19672 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19673 (rintf): Define using libm_alias_float.
19674 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19675 (sinf): Define using libm_alias_float.
19676 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19677 <libm-alias-float.h>.
19678 (modff): Define using libm_alias_float.
19679 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19680 <libm-alias-float.h>.
19681 (logbf): Define using libm_alias_float.
19682 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19683 <libm-alias-float.h>.
19684 (ceilf): Define using libm_alias_float.
19685 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19686 <libm-alias-float.h>.
19687 (copysignf): Define using libm_alias_float.
19688 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19689 <libm-alias-float.h>.
19690 (floorf): Define using libm_alias_float.
19691 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19692 <libm-alias-float.h>.
19693 (llrintf): Define using libm_alias_float.
19694 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19695 <libm-alias-float.h>.
19696 (llroundf): Define using libm_alias_float.
19697 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19698 <libm-alias-float.h>.
19699 (lrintf): Define using libm_alias_float.
19700 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19701 <libm-alias-float.h>.
19702 (lroundf): Define using libm_alias_float.
19703 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19704 <libm-alias-float.h>.
19705 (nearbyintf): Define using libm_alias_float.
19706 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19707 <libm-alias-float.h>.
19708 (rintf): Define using libm_alias_float.
19709 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19710 <libm-alias-float.h>.
19711 (roundf): Define using libm_alias_float.
19712 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19713 <libm-alias-float.h>.
19714 (truncf): Define using libm_alias_float.
19715 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19716 Include <libm-alias-float.h>.
19717 (ceilf): Define using libm_alias_float.
19718 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19719 Include <libm-alias-float.h>.
19720 (copysignf): Define using libm_alias_float.
19721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19722 Include <libm-alias-float.h>.
19723 (floorf): Define using libm_alias_float.
19724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19725 Include <libm-alias-float.h>.
19726 (llrintf): Define using libm_alias_float.
19727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19728 Include <libm-alias-float.h>.
19729 (llroundf): Define using libm_alias_float.
19730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19731 Include <libm-alias-float.h>.
19732 (logbf): Define using libm_alias_float.
19733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19734 Include <libm-alias-float.h>.
19735 (lrintf): Define using libm_alias_float.
19736 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19737 Include <libm-alias-float.h>.
19738 (lroundf): Define using libm_alias_float.
19739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19740 Include <libm-alias-float.h>.
19741 (modff): Define using libm_alias_float.
19742 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19743 Include <libm-alias-float.h>.
19744 (roundf): Define using libm_alias_float.
19745 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19746 Include <libm-alias-float.h>.
19747 (truncf): Define using libm_alias_float.
19748 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19749 <libm-alias-float.h>.
19750 (llrintf): Define using libm_alias_float.
19751 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19752 <libm-alias-float.h>.
19753 (llroundf): Define using libm_alias_float.
19754 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19755 <libm-alias-float.h>.
19756 (ceilf): Define using libm_alias_float.
19757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19758 <libm-alias-float.h>.
19759 (floorf): Define using libm_alias_float.
19760 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19761 <libm-alias-float.h>.
19762 (llroundf): Define using libm_alias_float.
19763 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19764 <libm-alias-float.h>.
19765 (lroundf): Define using libm_alias_float.
19766 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19767 <libm-alias-float.h>.
19768 (roundf): Define using libm_alias_float.
19769 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19770 <libm-alias-float.h>.
19771 (truncf): Define using libm_alias_float.
19772 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19773 <libm-alias-float.h>.
19774 (copysignf): Define using libm_alias_float.
19775 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19776 <libm-alias-float.h>.
19777 (llrintf): Define using libm_alias_float.
19778 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19779 <libm-alias-float.h>.
19780 (llroundf): Define using libm_alias_float.
19781 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19782 <libm-alias-float.h>.
19783 (lrintf): Define using libm_alias_float.
19784 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19785 <libm-alias-float.h>.
19786 (lroundf): Define using libm_alias_float.
19787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19788 <libm-alias-float.h>.
19789 (ceilf): Define using libm_alias_float.
19790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19791 <libm-alias-float.h>.
19792 (copysignf): Define using libm_alias_float.
19793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19794 <libm-alias-float.h>.
19795 (cosf): Define using libm_alias_float.
19796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19797 <libm-alias-float.h>.
19798 (floorf): Define using libm_alias_float.
19799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19800 <libm-alias-float.h>.
19801 (llrintf): Define using libm_alias_float.
19802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19803 <libm-alias-float.h>.
19804 (llroundf): Define using libm_alias_float.
19805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19806 <libm-alias-float.h>.
19807 (logbf): Define using libm_alias_float.
19808 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19809 <libm-alias-float.h>.
19810 (modff): Define using libm_alias_float.
19811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19812 <libm-alias-float.h>.
19813 (roundf): Define using libm_alias_float.
19814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19815 <libm-alias-float.h>.
19816 (sinf): Define using libm_alias_float.
19817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19818 <libm-alias-float.h>.
19819 (truncf): Define using libm_alias_float.
19820 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19821 <libm-alias-float.h>.
19822 (ceilf): Define using libm_alias_float.
19823 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19824 <libm-alias-float.h>.
19825 (copysignf): Define using libm_alias_float.
19826 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19827 <libm-alias-float.h>.
19828 (floorf): Define using libm_alias_float.
19829 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19830 <libm-alias-float.h>.
19831 (llrintf): Define using libm_alias_float.
19832 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19833 <libm-alias-float.h>.
19834 (llroundf): Define using libm_alias_float.
19835 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19836 <libm-alias-float.h>.
19837 (nearbyintf): Define using libm_alias_float.
19838 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19839 <libm-alias-float.h>.
19840 (rintf): Define using libm_alias_float.
19841 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19842 <libm-alias-float.h>.
19843 (roundf): Define using libm_alias_float.
19844 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19845 <libm-alias-float.h>.
19846 (truncf): Define using libm_alias_float.
19847 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19848 <libm-alias-float.h>.
19849 (ceilf): Define using libm_alias_float.
19850 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19851 <libm-alias-float.h>.
19852 (floorf): Define using libm_alias_float.
19853 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19854 <libm-alias-float.h>.
19855 (llroundf): Define using libm_alias_float.
19856 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19857 <libm-alias-float.h>.
19858 (roundf): Define using libm_alias_float.
19859 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19860 <libm-alias-float.h>.
19861 (truncf): Define using libm_alias_float.
19862 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19863 <libm-alias-float.h>.
19864 (copysignf): Define using libm_alias_float.
19865 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19866 <libm-alias-float.h>.
19867 (llrintf): Define using libm_alias_float.
19868 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19869 <libm-alias-float.h>.
19870 (llroundf): Define using libm_alias_float.
19871 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19872 <libm-alias-float.h>.
19873 (cosf): Define using libm_alias_float.
19874 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19875 <libm-alias-float.h>.
19876 (llrintf): Define using libm_alias_float.
19877 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19878 <libm-alias-float.h>.
19879 (llroundf): Define using libm_alias_float.
19880 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19881 <libm-alias-float.h>.
19882 (sinf): Define using libm_alias_float.
19883
19884 2017-12-04 Florian Weimer <fweimer@redhat.com>
19885
19886 * support/check.h (TEST_COMPARE): Define.
19887 (support_test_compare_failure): Declare.
19888 * support/Makefile (libsupport-routines): Add
19889 support_test_compare_failure.
19890 (tests): Add tst-test_compare.
19891 * support /support_test_compare_failure.c: New file.
19892 * support/tst-test_compare.c: Likewise.
19893
19894 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19895
19896 [BZ #22527]
19897 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19898 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19899 available, this rewrite of the collation rules does reproduce
19900 the test file in the same order.
19901
19902 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19903
19904 [BZ #10580]
19905 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19906 digraphs in the month and day names. Using single code points for
19907 digraphs is deprecated. While there are dedicated Unicode
19908 codepoints, for the digraphs, these are included for backwards
19909 compatibility and modern texts use a sequence of Basic Latin
19910 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19911 This makes the month and day names agree exactly with CLDR now,
19912 CLDR does not use the single code points for the digraphs either.
19913
19914 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19915
19916 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19917
19918 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19919
19920 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19921 of floor.
19922
19923 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19924
19925 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19926 Define only for libc.so.
19927
19928 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19929
19930 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19931 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19932 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19933 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19934 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19935
19936 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19937
19938 [BZ #5997]
19939 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19940
19941 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19942
19943 [BZ libc/19170]
19944 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19945 PREINIT_FUNCTION_WEAK is nonzero.
19946 (gmon_initializer): New function. Put procedure label for it in
19947 .init_array section.
19948 (_init): Don't call PREINIT_FUNCTION.
19949 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19950 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19951 value when map argument is null.
19952
19953 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19954 depi instruction from PIC pc-relative sequence.
19955 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19956 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19957 (elf_machine_load_address): Likewise.
19958 (elf_machine_runtime_setup): Likewise.
19959
19960 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19961
19962 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19963 <libm-alias-double.h>.
19964 (logb): Define using libm_alias_double.
19965 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19966 <libm-alias-double.h>.
19967 (copysign): Define using libm_alias_double.
19968 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19969 <libm-alias-double.h>.
19970 (llrint): Define using libm_alias_double.
19971 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19972 <libm-alias-double.h>.
19973 (llround): Define using libm_alias_double.
19974 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19975 <libm-alias-double.h>.
19976 (lrint): Define using libm_alias_double.
19977 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19978 <libm-alias-double.h>.
19979 (lround): Define using libm_alias_double.
19980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19981 Include <libm-alias-double.h>.
19982 (copysign): Define using libm_alias_double.
19983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19984 Include <libm-alias-double.h>.
19985 (llrint): Define using libm_alias_double.
19986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19987 Include <libm-alias-double.h>.
19988 (llround): Define using libm_alias_double.
19989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19990 <libm-alias-double.h>.
19991 (logb): Define using libm_alias_double.
19992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19993 Include <libm-alias-double.h>.
19994 (lrint): Define using libm_alias_double.
19995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19996 Include <libm-alias-double.h>.
19997 (lround): Define using libm_alias_double.
19998 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19999 <libm-alias-double.h>.
20000 (llrint): Define using libm_alias_double.
20001 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20002 <libm-alias-double.h>.
20003 (llround): Define using libm_alias_double.
20004 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20005 <libm-alias-double.h>.
20006 (llround): Define using libm_alias_double.
20007 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20008 <libm-alias-double.h>.
20009 (lround): Define using libm_alias_double.
20010 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20011 <libm-alias-double.h>.
20012 (copysign): Define using libm_alias_double.
20013 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20014 <libm-alias-double.h>.
20015 (llrint): Define using libm_alias_double.
20016 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20017 <libm-alias-double.h>.
20018 (llround): Define using libm_alias_double.
20019 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20020 <libm-alias-double.h>.
20021 (lrint): Define using libm_alias_double.
20022 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20023 <libm-alias-double.h>.
20024 (lround): Define using libm_alias_double.
20025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20026 <libm-alias-double.h>.
20027 (copysign): Define using libm_alias_double.
20028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20029 <libm-alias-double.h>.
20030 (llrint): Define using libm_alias_double.
20031 (lrint): Likewise.
20032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20033 <libm-alias-double.h>.
20034 (llround): Define using libm_alias_double.
20035 (lround): Likewise.
20036 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20037 <libm-alias-double.h>.
20038 (logb): Define using libm_alias_double.
20039 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20040 <libm-alias-double.h>.
20041 (copysign): Define using libm_alias_double.
20042 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20043 <libm-alias-double.h>.
20044 (llrint): Define using libm_alias_double.
20045 (lrint): Likewise.
20046 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20047 <libm-alias-double.h>.
20048 (llround): Define using libm_alias_double.
20049 (lround): Likewise.
20050 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20051 <libm-alias-double.h>.
20052 (llround): Define using libm_alias_double.
20053 (lround): Likewise.
20054 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20055 <libm-alias-double.h>.
20056 (copysign): Define using libm_alias_double.
20057 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20058 <libm-alias-double.h>.
20059 (llrint): Define using libm_alias_double.
20060 (lrint): Likewise.
20061 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20062 <libm-alias-double.h>.
20063 (llround): Define using libm_alias_double.
20064 (lround): Likewise.
20065 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20066 <libm-alias-double.h>.
20067 (llrint): Define using libm_alias_double.
20068 (lrint): Likewise.
20069 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20070 <libm-alias-double.h>.
20071 (llround): Define using libm_alias_double.
20072 (lround): Likewise.
20073
20074 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20075
20076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20077 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20078 compat symbol based on llround.
20079
20080 * sysdeps/powerpc/power7/fpu/s_logb.c
20081 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20082 symbol based on __logb, not on logb.
20083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20084 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20086 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20087
20088 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20089 (rint): Define using libm_alias_double.
20090 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20091 <libm-alias-double.h>.
20092 (modf): Define using libm_alias_double.
20093 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20094 <libm-alias-double.h>.
20095 (ceil): Define using libm_alias_double.
20096 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20097 <libm-alias-double.h>.
20098 (floor): Define using libm_alias_double.
20099 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20100 <libm-alias-double.h>.
20101 (nearbyint): Define using libm_alias_double.
20102 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20103 <libm-alias-double.h>.
20104 (rint): Define using libm_alias_double.
20105 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20106 <libm-alias-double.h>.
20107 (round): Define using libm_alias_double.
20108 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20109 <libm-alias-double.h>.
20110 (trunc): Define using libm_alias_double.
20111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20112 <libm-alias-double.h>.
20113 (ceil): Define using libm_alias_double.
20114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20115 Include <libm-alias-double.h>.
20116 (floor): Define using libm_alias_double.
20117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20118 <libm-alias-double.h>.
20119 (modf): Define using libm_alias_double.
20120 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20121 Include <libm-alias-double.h>.
20122 (round): Define using libm_alias_double.
20123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20124 Include <libm-alias-double.h>.
20125 (trunc): Define using libm_alias_double.
20126 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20127 <libm-alias-double.h>.
20128 (ceil): Define using libm_alias_double.
20129 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20130 <libm-alias-double.h>.
20131 (floor): Define using libm_alias_double.
20132 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20133 <libm-alias-double.h>.
20134 (round): Define using libm_alias_double.
20135 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20136 <libm-alias-double.h>.
20137 (trunc): Define using libm_alias_double.
20138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20139 <libm-alias-double.h>.
20140 (ceil): Define using libm_alias_double.
20141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20142 <libm-alias-double.h>.
20143 (floor): Define using libm_alias_double.
20144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20145 <libm-alias-double.h>.
20146 (modf): Define using libm_alias_double.
20147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20148 <libm-alias-double.h>.
20149 (round): Define using libm_alias_double.
20150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20151 <libm-alias-double.h>.
20152 (trunc): Define using libm_alias_double.
20153 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20154 <libm-alias-double.h>.
20155 (ceil): Define using libm_alias_double.
20156 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20157 <libm-alias-double.h>.
20158 (floor): Define using libm_alias_double.
20159 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20160 <libm-alias-double.h>.
20161 (nearbyint): Define using libm_alias_double.
20162 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20163 <libm-alias-double.h>.
20164 (rint): Define using libm_alias_double.
20165 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20166 <libm-alias-double.h>.
20167 (round): Define using libm_alias_double.
20168 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20169 <libm-alias-double.h>.
20170 (trunc): Define using libm_alias_double.
20171 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20172 <libm-alias-double.h>.
20173 (ceil): Define using libm_alias_double.
20174 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20175 <libm-alias-double.h>.
20176 (floor): Define using libm_alias_double.
20177 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20178 <libm-alias-double.h>.
20179 (round): Define using libm_alias_double.
20180 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20181 <libm-alias-double.h>.
20182 (trunc): Define using libm_alias_double.
20183
20184 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20185 (fabs): Define using libm_alias_double.
20186 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20187 (fma): Define using libm_alias_double.
20188 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20189 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20190 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20191 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20192
20193 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20194
20195 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20196
20197 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20198 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20199 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20200
20201 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20202 due redirect macro.
20203
20204 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20205
20206 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20207
20208 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20209
20210 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20211 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20212 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20213 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20214
20215 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20216 (libm-sysdep_routines): Add s_nearbyintf-generic and
20217 s_nearbyint-generic.
20218 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20219 New file.
20220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20221 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20222 Likewise.
20223 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20224 Likewise.
20225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20226 file.
20227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20228 Likewise.
20229
20230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20231 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20232 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20233 file.
20234 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20235 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20236 Likewise.
20237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20240
20241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20242 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20244 file.
20245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20247 Likewise.
20248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20250 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20251
20252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20253 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20255 file.
20256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20258 Likewise.
20259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20262
20263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20264 (sysdep_calls): New rule.
20265 (sysdep_routines): Use sysdep_calls as base.
20266 (libm-sysdep_routines): Add generic rule for symbols shared with
20267 libc. Add s_copysign-generic and s_copysign-generic objects.
20268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20269 New file.
20270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20272 Likewise.
20273 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20276
20277 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20278
20279 [BZ #22519]
20280 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20281 the list of locales to be built for testing.
20282 * localedata/is_IS.UTF-8.in: New file.
20283 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20284 on iso14651_t1.
20285
20286 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20287
20288 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20289 <libm-alias-float.h>.
20290 (fabsf): Define using libm_alias_float.
20291
20292 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20293
20294 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20295
20296 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20297
20298 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20299 <libm-alias-float.h>.
20300 (fabsf): Define using libm_alias_float.
20301 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20302 <libm-alias-float.h>.
20303 (lrintf): Define using libm_alias_float.
20304 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20305 <libm-alias-float.h>.
20306 (rintf): Define using libm_alias_float.
20307
20308 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20309 <libm-alias-double.h>.
20310 (fabs): Define using libm_alias_double.
20311 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20312 <libm-alias-double.h>.
20313 (lrint): Define using libm_alias_double.
20314 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20315 <libm-alias-double.h>.
20316 (rint): Define using libm_alias_double.
20317
20318 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20319 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20320 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20321 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20322 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20323 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20324 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20325 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20326 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20327 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20328 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20329 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20330 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20331 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20332 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20333 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20334 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20335 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20336 s_atan_template.c.
20337 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20338 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20339 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20340 s_ceil_template.c.
20341 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20342 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20343 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20344 s_cos_template.c.
20345 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20346 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20347 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20348 s_expm1_template.c.
20349 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20350 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20351 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20352 s_fabs_template.c.
20353 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20354 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20355 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20356 s_floor_template.c.
20357 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20358 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20359 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20360 s_frexp_template.c.
20361 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20362 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20363 s_lrint_template.c.
20364 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20365 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20366 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20367 s_modf_template.c.
20368 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20369 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20370 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20371 s_nearbyint_template.c.
20372 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20373 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20374 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20375 s_remquo_template.c.
20376 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20377 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20378 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20379 s_rint_template.c.
20380 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20381 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20382 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20383 s_sin_template.c.
20384 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20385 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20386 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20387 s_sincos_template.c.
20388 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20389 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20390 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20391 s_tan_template.c.
20392 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20393 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20394 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20395 s_tanh_template.c.
20396 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20397 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20398 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20399 s_trunc_template.c.
20400 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20401 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20402 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20403 s_atan.c instead of including s_atan.c.
20404 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20405 s_atanf.c instead of including s_atanf.c.
20406 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20407 s_atanl.c instead of including s_atanl.c.
20408 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20409 instead of s_atan.c.
20410 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20411 instead of s_atanf.c.
20412 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20413 instead of s_atanl.c.
20414
20415 * scripts/update-copyrights: Do not handle intl/plural.c
20416 specially.
20417
20418 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20419
20420 [BZ #22432]
20421 * configure.ac (BISON): Require to be present.
20422 * configure: Regenerated.
20423 * intl/Makefile (generated): Add plural.c.
20424 [$(BISON) != no]: Make code unconditional.
20425 (plural.c): Change rule to $(objpfx)plural.c.
20426 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20427 * intl/plural.c: Remove.
20428 * manual/install.texi (Tools for Compilation): Document bison as
20429 required.
20430 * INSTALL: Regenerated.
20431
20432 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20433
20434 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20435 <libm-alias-double.h>.
20436 (llrint): Define using libm_alias_double.
20437 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20438 <libm-alias-float.h>.
20439 (llrintf): Define using libm_alias_float.
20440 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20441 <libm-alias-ldouble.h>.
20442 (llrintl): Define using libm_alias_ldouble.
20443
20444 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20445 declare_mgen_alias instead of weak_alias.
20446 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20447 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20448 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20449
20450 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20451
20452 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20453 Add add_n-generic.
20454 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20455 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20456 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20457
20458 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20459 Add submul_1-generic.
20460 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20461 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20462 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20463
20464 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20465 Add addmul_1-generic.
20466 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20467 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20468 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20469
20470 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20471 Add sub_n-generic.
20472 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20473 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20474 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20475
20476 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20477 Add mul_1-generic.
20478 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20479 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20480 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20481
20482 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20483
20484 According to CLDR, collation rules for Serbian and Bosnian
20485 should be the same as for Croatian.
20486
20487 [BZ #22534]
20488 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20489 and to the list of locales to be built for testing.
20490 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20491 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20492 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20493 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20494
20495 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20496
20497 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20498 to make test case pass.
20499 * localedata/hr_HR.UTF-8.in: Add more test strings.
20500
20501 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20502
20503 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20504
20505 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20506
20507 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20508 the list of locales to built for testing.
20509 * localedata/hr_HR.UTF-8.in: New file.
20510
20511 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20512
20513 [BZ #10580]
20514 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20515 iso14651_t1.
20516 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20517 CLDR (except use ligatures for the digraphs, CLDR does not use
20518 the ligatures), add first_workday, some fixes in the date and time
20519 formats.
20520 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20521 for Đ and đ.
20522 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20523 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20524 Add int_p_cs_precedes and int_n_cs_precedes.
20525 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20526 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20527 LC_MONETARY now).
20528 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20529 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20530 name_miss.
20531 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20532 and lang_lib. Change postal_fmt.
20533
20534 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20535
20536 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20537 <setjmp.h>.
20538 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20539 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20540 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20541 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20542 * sysdeps/generic/setjmpP.h: New file.
20543 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20544 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20545 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20546 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20547 Add jmp_buf-ssp.sym.
20548 (tests): Add tst-saved_mask-1.
20549
20550 2017-11-30 Arjun Shankar <arjun@redhat.com>
20551
20552 [BZ #22375]
20553 CVE-2017-17426
20554 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20555 instead of request2size.
20556
20557 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20558
20559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20560 (__lllrint): Remove alias.
20561 (lllrint): Likewise.
20562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20563 (__lllrintf): Likewise.
20564 (lllrintf): Likewise.
20565
20566 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20567 <libm-alias-float.h>.
20568 (copysignf): Define using libm_alias_float.
20569 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20570 <libm-alias-float.h>.
20571 (fabsf): Define using libm_alias_float.
20572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20573 Include <libm-alias-float.h>.
20574 (copysignf): Define using libm_alias_float.
20575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20576 <libm-alias-float.h>.
20577 (fabsf): Define using libm_alias_float.
20578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20579 <libm-alias-float.h>.
20580 (fdimf): Define using libm_alias_float.
20581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20582 <libm-alias-float.h>.
20583 (fmaf): Define using libm_alias_float.
20584 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20585 <libm-alias-float.h>.
20586 (llrintf): Define using libm_alias_float.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20588 Include <libm-alias-float.h>.
20589 (nearbyintf): Define using libm_alias_float.
20590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20591 <libm-alias-float.h>.
20592 (rintf): Define using libm_alias_float.
20593 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20594 <libm-alias-float.h>.
20595 (llrintf): Define using libm_alias_float.
20596 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20597 <libm-alias-float.h>.
20598 (lrintf): Define using libm_alias_float.
20599 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20600 <libm-alias-float.h>.
20601 (nearbyintf): Define using libm_alias_float.
20602 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20603 <libm-alias-float.h>.
20604 (rintf): Define using libm_alias_float.
20605 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20606 <libm-alias-float.h>.
20607 (ceilf): Define using libm_alias_float.
20608 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20609 <libm-alias-float.h>.
20610 (floorf): Define using libm_alias_float.
20611 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20612 <libm-alias-float.h>.
20613 (fmaf): Define using libm_alias_float.
20614 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20615 <libm-alias-float.h>.
20616 (lrintf): Define using libm_alias_float.
20617 (llrintf): Likewise.
20618 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20619 <libm-alias-float.h>.
20620 (nearbyintf): Define using libm_alias_float.
20621 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20622 <libm-alias-float.h>.
20623 (rintf): Define using libm_alias_float.
20624 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20625 <libm-alias-float.h>.
20626 (truncf): Define using libm_alias_float.
20627 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20628 <libm-alias-float.h>.
20629 (copysignf): Define using libm_alias_float.
20630 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20631 <libm-alias-float.h>.
20632 (fabsf): Define using libm_alias_float.
20633 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20634 <libm-alias-float.h>.
20635 (lrintf): Define using libm_alias_float.
20636 (llrintf): Likewise.
20637 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20638 <libm-alias-float.h>.
20639 (nearbyintf): Define using libm_alias_float.
20640 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20641 <libm-alias-float.h>.
20642 (rintf): Define using libm_alias_float.
20643
20644 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20645
20646 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20647 <libm-alias-double.h>.
20648 (copysign): Define using libm_alias_double.
20649 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20650 <libm-alias-double.h>.
20651 (fabs): Define using libm_alias_double.
20652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20653 Include <libm-alias-double.h>.
20654 (copysign): Define using libm_alias_double.
20655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20656 <libm-alias-double.h>.
20657 (fabs): Define using libm_alias_double.
20658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20659 <libm-alias-double.h>.
20660 (fdim): Define using libm_alias_double.
20661 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20662 <libm-alias-double.h>.
20663 (fma): Define using libm_alias_double.
20664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20665 <libm-alias-double.h>.
20666 (llrint): Define using libm_alias_double.
20667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20668 Include <libm-alias-double.h>.
20669 (nearbyint): Define using libm_alias_double.
20670 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20671 <libm-alias-double.h>.
20672 (rint): Define using libm_alias_double.
20673 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20674 <libm-alias-double.h>.
20675 (fabs): Define using libm_alias_double.
20676 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20677 <libm-alias-double.h>.
20678 (llrint): Define using libm_alias_double.
20679 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20680 <libm-alias-double.h>.
20681 (nearbyint): Define using libm_alias_double.
20682 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20683 <libm-alias-double.h>.
20684 (rint): Define using libm_alias_double.
20685 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20686 <libm-alias-double.h>.
20687 (ceil): Define using libm_alias_double.
20688 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20689 <libm-alias-double.h>.
20690 (floor): Define using libm_alias_double.
20691 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20692 <libm-alias-double.h>.
20693 (fma): Define using libm_alias_double.
20694 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20695 <libm-alias-double.h>.
20696 (lrint): Define using libm_alias_double.
20697 (llrint): Likewise.
20698 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20699 <libm-alias-double.h>.
20700 (nearbyint): Define using libm_alias_double.
20701 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20702 <libm-alias-double.h>.
20703 (rint): Define using libm_alias_double.
20704 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20705 <libm-alias-double.h>.
20706 (trunc): Define using libm_alias_double.
20707 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20708 <libm-alias-double.h>.
20709 (copysign): Define using libm_alias_double.
20710 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20711 <libm-alias-double.h>.
20712 (fabs): Define using libm_alias_double.
20713 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20714 <libm-alias-double.h>.
20715 (lrint): Define using libm_alias_double.
20716 (llrint): Likewise.
20717 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20718 <libm-alias-double.h>.
20719 (nearbyint): Define using libm_alias_double.
20720 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20721 <libm-alias-double.h>.
20722 (rint): Define using libm_alias_double.
20723
20724 [BZ #22229]
20725 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20726 <math_ldbl_opt.h>.
20727 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20728
20729 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20730 SPARC --disable-multi-arch glibc variants.
20731
20732 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20733 <libm-alias-float.h>.
20734 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20735 if [SHARED].
20736 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20737 <libm-alias-float.h>.
20738 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20739 if [SHARED].
20740 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20741 <libm-alias-float.h>.
20742 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20743 if [SHARED].
20744 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20745 <libm-alias-float.h>.
20746 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20747 if [SHARED].
20748 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20749 <libm-alias-float.h>.
20750 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20751 if [SHARED].
20752 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20753 <libm-alias-float.h>.
20754 (ceilf): Define using libm_alias_float.
20755 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20756 <libm-alias-float.h>.
20757 (floorf): Define using libm_alias_float.
20758 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20759 <libm-alias-float.h>.
20760 (fmaf): Define using libm_alias_float.
20761 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20762 <libm-alias-float.h>.
20763 (nearbyintf): Define using libm_alias_float.
20764 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20765 <libm-alias-float.h>.
20766 (rintf): Define using libm_alias_float.
20767 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20768 <libm-alias-float.h>.
20769 (truncf): Define using libm_alias_float.
20770 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20771 (copysignf): Define using libm_alias_float.
20772 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20773 (cosf): Define using libm_alias_float.
20774 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20775 (fabsf): Define using libm_alias_float.
20776 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20777 (fmaxf): Define using libm_alias_float.
20778 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20779 (fminf): Define using libm_alias_float.
20780 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20781 (llrintf): Define using libm_alias_float.
20782 [!__ILP32__] (lrintf): Likewise.
20783 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20784 (sincosf): Define using libm_alias_float.
20785 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20786 (sinf): Define using libm_alias_float.
20787 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20788 (lrintf): Define using libm_alias_float.
20789
20790 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20791 <libm-alias-double.h>.
20792 (atan): Define using libm_alias_double.
20793 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20794 <libm-alias-double.h>.
20795 (ceil): Define using libm_alias_double.
20796 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20797 <libm-alias-double.h>.
20798 (floor): Define using libm_alias_double.
20799 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20800 <libm-alias-double.h>.
20801 (fma): Define using libm_alias_double.
20802 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20803 <libm-alias-double.h>.
20804 (nearbyint): Define using libm_alias_double.
20805 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20806 <libm-alias-double.h>.
20807 (rint): Define using libm_alias_double.
20808 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20809 <libm-alias-double.h>.
20810 (sin): Define using libm_alias_double.
20811 (cos): Likewise.
20812 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20813 <libm-alias-double.h>.
20814 (tan): Define using libm_alias_double.
20815 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20816 <libm-alias-double.h>.
20817 (trunc): Define using libm_alias_double.
20818 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20819 (copysign): Define using libm_alias_double.
20820 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20821 (fabs): Define using libm_alias_double.
20822 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20823 (fmax): Define using libm_alias_double.
20824 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20825 (fmin): Define using libm_alias_double.
20826 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20827 (llrint): Define using libm_alias_double.
20828 [!__ILP32__] (lrint): Likewise.
20829 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20830 (lrint): Define using libm_alias_double.
20831
20832 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20833
20834 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20835 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20836 objects.
20837 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20838 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20839 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20840 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20841 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20842 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20843
20844 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20845 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20846 objects.
20847 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20848 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20849 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20850 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20851 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20852 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20853
20854 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20855 (libm-sysdep_routines): Add s_nearbyint-generic and
20856 s_nearbyintf-generic objects.
20857 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20858 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20859 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20860 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20861 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20862 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20863
20864 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20865 Add s_finitef-generic and s_finite-generic objects.
20866 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20867 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20868 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20869 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20870 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20871 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20872
20873 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20874 Add s_isinff-generic and s_isinf-generic objects.
20875 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20876 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20877 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20878 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20879 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20880 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20881
20882 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20883 Add s_isnanf-generic and s_isnan-generic objects.
20884 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20885 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20886 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20887 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20888 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20889 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20890
20891 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20892 macro.
20893 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20894 rule.
20895 (sysdep_routines): Use sysdep_calls as base.
20896 (libm-sysdep_routines): Add generic rule for symbols shared with
20897 libc. Add s_signbit-generic and s_signbitf-generic objects.
20898 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20899 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20900 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20901 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20902 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20903 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20904
20905 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20906
20907 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20908 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20909 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20910 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20911 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20912 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20913 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20914 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20915 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20916 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20917 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20918 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20919 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20920 libm_alias_float_r.
20921 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20922 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20923 (logf): Likewise.
20924 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20925 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20926 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20927 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20928 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20929 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20930 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20931 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20932 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20933 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20934 libm_alias_float.
20935 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20936 (cosf): Likewise.
20937 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20938 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20939 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20940 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20941 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20942 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20943 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20944 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20945 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20946 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20947 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20948 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20949 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20950 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20951 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20952 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20953 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20954 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20955 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20956 libm_alias_float.
20957 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20958 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20959 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20960 * sysdeps/ia64/fpu/w_lgammaf_main.c
20961 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20962 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20963
20964 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20965 Alexandre Oliva <aoliva@redhat.com>
20966
20967 [BZ #17750]
20968 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20969 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20970 accents sorting.
20971 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20972 sorting.
20973 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20974 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20975 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20976 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20977 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20978 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20979 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20980 instead of “ifdef DIACRIT_BACKWARD”.
20981
20982 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20983
20984 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20985 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20986 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20987 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20988 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20989 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20990 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20991 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20992 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20993 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20994 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20995 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20996 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20997 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20998 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20999 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21000 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21001 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21003 ($(have-as-vis3) == yes): Remove conditional.
21004 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21005 Likewise.
21006 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21007 file.
21008 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21009 file.
21010 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21011 file.
21012 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21013 file.
21014 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21015 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21016 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21017 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21018 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21019 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21020 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21021 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21022
21023 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21024
21025 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21026 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21027 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21028 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21029 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21030 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21031 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21032 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21033 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21034 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21035 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21036 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21037 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21038 libm_alias_double_r.
21039 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21040 (log): Likewise.
21041 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21042 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21043 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21044 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21045 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21046 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21047 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21048 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21049 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21050 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21051 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21052 libm_alias_double.
21053 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21054 (cos): Likewise.
21055 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21056 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21057 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21058 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21059 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21060 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21061 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21062 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21063 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21064 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21065 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21066 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21067 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21068 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21069 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21070 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21071 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21072 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21073 libm_alias_double.
21074 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21075 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21076 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21077 * sysdeps/ia64/fpu/w_lgamma_main.c
21078 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21079 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21080
21081 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21082
21083 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21084 address of $global$ into %dp register earlier. Use pc-relative
21085 instruction sequence for PIC case.
21086
21087 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21088
21089 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21090 (asinhf): Define using libm_alias_float.
21091 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21092 (atanf): Define using libm_alias_float.
21093 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21094 (cbrtf): Define using libm_alias_float.
21095 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21096 (ceilf): Define using libm_alias_float.
21097 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21098 (copysignf): Define using libm_alias_float.
21099 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21100 (expm1f): Define using libm_alias_float.
21101 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21102 (fabsf): Define using libm_alias_float.
21103 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21104 (floorf): Define using libm_alias_float.
21105 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21106 (fmaxf): Define using libm_alias_float.
21107 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21108 (fminf): Define using libm_alias_float.
21109 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21110 (frexpf): Define using libm_alias_float.
21111 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21112 (llrintf): Define using libm_alias_float.
21113 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21114 (logbf): Define using libm_alias_float.
21115 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21116 (lrintf): Define using libm_alias_float.
21117 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21118 (nearbyintf): Define using libm_alias_float.
21119 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21120 (remquof): Define using libm_alias_float.
21121 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21122 (rintf): Define using libm_alias_float.
21123 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21124 (truncf): Define using libm_alias_float.
21125 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21126 <libm-alias-float.h>.
21127 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21128 if [SHARED].
21129 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21130 <libm-alias-float.h>.
21131 (expf): Define using libm_alias_float, or libm_alias_float_other
21132 if [SHARED].
21133 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21134 <libm-alias-float.h>.
21135 (log2f): Define using libm_alias_float, or libm_alias_float_other
21136 if [SHARED].
21137 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21138 <libm-alias-float.h>.
21139 (logf): Define using libm_alias_float, or libm_alias_float_other
21140 if [SHARED].
21141 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21142 <libm-alias-float.h>.
21143 (powf): Define using libm_alias_float, or libm_alias_float_other
21144 if [SHARED].
21145 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21146 <libm-alias-float.h>.
21147 (cosf): Define using libm_alias_float.
21148 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21149 <libm-alias-float.h>.
21150 (sincosf): Define using libm_alias_float.
21151 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21152 <libm-alias-float.h>.
21153 (sinf): Define using libm_alias_float.
21154 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21155 (fmaxf): Define using libm_alias_float.
21156 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21157 (fminf): Define using libm_alias_float.
21158 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21159 <libm-alias-float.h>.
21160 (fmaf): Define using libm_alias_float.
21161
21162 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21163 (asinh): Define using libm_alias_double.
21164 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21165 (atan): Define using libm_alias_double.
21166 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21167 (cbrt): Define using libm_alias_double.
21168 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21169 (ceil): Define using libm_alias_double.
21170 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21171 (copysign): Define using libm_alias_double.
21172 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21173 (expm1): Define using libm_alias_double.
21174 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21175 (fabs): Define using libm_alias_double.
21176 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21177 (fdim): Define using libm_alias_double.
21178 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21179 (floor): Define using libm_alias_double.
21180 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21181 (fmax): Define using libm_alias_double.
21182 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21183 (fmin): Define using libm_alias_double.
21184 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21185 (frexp): Define using libm_alias_double.
21186 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21187 (llrint): Define using libm_alias_double.
21188 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21189 (logb): Define using libm_alias_double.
21190 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21191 (lrint): Define using libm_alias_double.
21192 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21193 (nearbyint): Define using libm_alias_double.
21194 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21195 (remquo): Define using libm_alias_double.
21196 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21197 (rint): Define using libm_alias_double.
21198 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21199 (trunc): Define using libm_alias_double.
21200 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21201 (fmax): Define using libm_alias_double.
21202 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21203 (fmin): Define using libm_alias_double.
21204 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21205 (fma): Define using libm_alias_double.
21206
21207 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21208
21209 [BZ #22370]
21210 * elf/dl-hwcaps.c (ROUND): Removed.
21211 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21212 and ELF_NOTE_NEXT_OFFSET.
21213 * elf/dl-load.c (ROUND): Removed.
21214 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21215 * elf/readelflib.c (ROUND): Removed.
21216 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21217 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21218 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21219 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21220
21221 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21222
21223 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21224 [!__fmaf] (fmaf): Define using libm_alias_float.
21225
21226 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21227 [!__fma] (fma): Define using libm_alias_double.
21228 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21229
21230 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21231
21232 [BZ #22336]
21233 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21234 and implement the collation rules for cs from CLDR on top of that.
21235 * Makefile: Add cs_CZ.UTF-8 to test-input.
21236 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21237
21238 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21239
21240 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21241
21242 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21243 Icarus Sparry <icarus.w.sparry@intel.com>
21244
21245 * benchtests/Makefile:Add BENCHSET to allow subsets of
21246 benchmarks to be run.
21247 * benchtests/README: Add documentation for: Running subsets of
21248 benchmarks.
21249
21250 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21251
21252 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21253 range of tests names.
21254
21255 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21256 result from property and remove "max", min" and "mean" from
21257 required properties based on benchtests/bench-skeleton.c.
21258
21259 2017-11-28 Florian Weimer <fweimer@redhat.com>
21260
21261 [BZ #20826]
21262 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21263 due to Internet requirement.
21264 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21265 tst-getaddrinfo5.
21266 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21267
21268 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21269
21270 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21271 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21272 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21273 (sysdep_routines): Add memset-ultra1.
21274 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21275 file.
21276 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21277 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21278 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21279 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21280 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21281 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21282 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21283 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21284
21285 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21286 file.
21287 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21288 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21289 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21290 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21291 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21292 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21293 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21294 macro.
21295 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21296 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21297 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21298 (sysdep_routines): Add memcpy-ultra1.
21299 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21300 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21301
21302 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21303
21304 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21305 (cfloat_versions): Take function argument without trailing 'f'.
21306 Call libm_alias_float_other.
21307 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21308 * sysdeps/alpha/fpu/cargf.c: Likewise.
21309 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21310 * sysdeps/alpha/fpu/conjf.c: Likewise.
21311 * sysdeps/alpha/fpu/crealf.c: Likewise.
21312 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21313 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21314 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21315 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21316 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21317 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21318 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21319 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21320 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21321 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21322 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21323 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21324 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21325 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21326 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21327 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21328 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21329 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21330 (clog10f): Use libm_alias_float_other.
21331 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21332 (ceilf): Define using libm_alias_float.
21333 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21334 (copysignf): Define using libm_alias_float.
21335 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21336 (fabsf): Define using libm_alias_float.
21337 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21338 (floorf): Define using libm_alias_float.
21339 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21340 (fmaxf): Define using libm_alias_float.
21341 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21342 (fminf): Define using libm_alias_float.
21343 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21344 (lrintf): Define using libm_alias_float.
21345 (llrintf): Likewise.
21346 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21347 (lroundf): Define using libm_alias_float.
21348 (llroundf): Likewise.
21349 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21350 (rintf): Define using libm_alias_float.
21351 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21352 (truncf): Define using libm_alias_float.
21353
21354 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21355 (ceilf): Define using libm_alias_float.
21356 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21357 (floorf): Define using libm_alias_float.
21358 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21359 (fmaf): Define using libm_alias_float.
21360 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21361 (fmaxf): Define using libm_alias_float.
21362 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21363 (fminf): Define using libm_alias_float.
21364 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21365 (llrintf): Define using libm_alias_float.
21366 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21367 (llroundf): Define using libm_alias_float.
21368 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21369 (lrintf): Define using libm_alias_float.
21370 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21371 (lroundf): Define using libm_alias_float.
21372 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21373 <libm-alias-float.h>.
21374 (nearbyintf): Define using libm_alias_float.
21375 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21376 (rintf): Define using libm_alias_float.
21377 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21378 (roundf): Define using libm_alias_float.
21379 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21380 (truncf): Define using libm_alias_float.
21381
21382 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21383 (ceil): Define using libm_alias_double.
21384 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21385 (copysign): Define using libm_alias_double.
21386 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21387 (fabs): Define using libm_alias_double.
21388 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21389 (floor): Define using libm_alias_double.
21390 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21391 (fmax): Define using libm_alias_double.
21392 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21393 (fmin): Define using libm_alias_double.
21394 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21395 (lrint): Define using libm_alias_double.
21396 (llrint): Likewise.
21397 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21398 (lround): Define using libm_alias_double.
21399 (llround): Likewise.
21400 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21401 (rint): Define using libm_alias_double.
21402 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21403 (trunc): Define using libm_alias_double.
21404
21405 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21406 (libm_alias_double_r): Add semicolon after weak_alias call.
21407
21408 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21409
21410 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21411 (ceil): Define using libm_alias_double.
21412 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21413 (floor): Define using libm_alias_double.
21414 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21415 (fma): Define using libm_alias_double.
21416 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21417 (fmax): Define using libm_alias_double.
21418 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21419 (fmin): Define using libm_alias_double.
21420 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21421 (llrint): Define using libm_alias_double.
21422 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21423 (llround): Define using libm_alias_double.
21424 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21425 (lrint): Define using libm_alias_double.
21426 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21427 (lround): Define using libm_alias_double.
21428 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21429 (nearbyint): Define using libm_alias_double.
21430 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21431 (rint): Define using libm_alias_double.
21432 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21433 (round): Define using libm_alias_double.
21434 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21435 (trunc): Define using libm_alias_double.
21436
21437 2017-11-27 Florian Weimer <fweimer@redhat.com>
21438
21439 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21440 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21441 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21442 (tests): Add tst-mlock2.
21443 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21444 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21445 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21446 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21447 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21448 for mlock. Document mlock2.
21449
21450 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21451
21452 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21453 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21454 Likewise.
21455 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21456 Likewise.
21457 * sysdeps/x86/Makeconfig: New file.
21458 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21459 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21460 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21461 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21462 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21463 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21464 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21465 Likewise.
21466 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21467 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21468 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21469 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21470 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21471 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21472 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21473 * manual/math.texi (Mathematics): Document support for _Float64x.
21474 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21475 * stdlib/Versions (GLIBC_2.27): Likewise.
21476 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21477 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21478 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21480 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21481 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21482 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21483 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21484 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21485 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21486 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21487 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21489 Likewise.
21490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21491 Likewise.
21492 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21493 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21494 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21495 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21496 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21497 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21498 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21499 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21500 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21501 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21502 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21503 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21504 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21505 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21506
21507 2017-11-27 Andreas Schwab <schwab@suse.de>
21508
21509 * elf/Makefile (dl-routines): Add dl-sort-maps.
21510 * elf/dl-sort-maps.c: New file.
21511 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21512 (_dl_sort_maps): Declare.
21513 * elf/dl-fini.c (_dl_sort_fini): Remove.
21514 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21515 * elf/dl-close.c (_dl_close_worker): Likewise.
21516 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21517 open-coding it.
21518 * elf/dl-open.c (dl_open_worker): Likewise.
21519
21520 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21521
21522 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21523 using libm_alias_float128.
21524 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21525 Likewise.
21526 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21527 Likewise.
21528 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21529 (setpayloadsigf128): Likewise.
21530 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21531 Likewise.
21532 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21533 Likewise.
21534
21535 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21536 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21537 -mfloat128 to CFLAGS.
21538 ($(foreach
21539 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21540 Likewise.
21541 (CFLAGS-libm-test-support-float64x.c): New variable.
21542 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21543 $(f128-loader-link) to gnulib-tests.
21544
21545 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21546 (libm_alias_float128_other_r): If
21547 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21548 alias.
21549 (libm_alias_float128_r): Add semicolon after weak_alias call.
21550 * sysdeps/generic/libm-alias-ldouble.h
21551 (libm_alias_ldouble_other_r_f128): New macro.
21552 (libm_alias_ldouble_other_r_f64x): Likewise.
21553 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21554 and libm_alias_ldouble_other_r_f64x.
21555 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21556 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21557 (libm_alias_ldouble_other_r_f128): New macro.
21558 (libm_alias_ldouble_other_r_f64x): Likewise.
21559 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21560 and libm_alias_ldouble_other_r_f64x.
21561
21562 * stdlib/strfroml.c: Always include <stdlib.h>.
21563 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21564 undefine as macro and define as weak alias.
21565 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21566 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21567 <stdlib.h>.
21568 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21569 Define and later undefine as macro and define as weak alias.
21570
21571 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21572 Define and later undefine as macro. Define as weak alias if
21573 [!USE_WIDE_CHAR].
21574 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21575 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21576 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21577 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21578 Define and later undefine as macro. Define as weak alias if
21579 [!USE_WIDE_CHAR].
21580 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21581 Define and later undefine as macro. Define as weak alias if
21582 [USE_WIDE_CHAR].
21583 * sysdeps/ieee754/float128/strtof128_l.c
21584 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21585 Define and later undefine as macro. Define as weak alias if
21586 [!USE_WIDE_CHAR].
21587 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21588 Define and later undefine as macro. Define as weak alias if
21589 [USE_WIDE_CHAR].
21590 * sysdeps/ieee754/ldbl-128/strtold_l.c
21591 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21592 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21593 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21594 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21595 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21596 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21597 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21598 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21599 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21600 * sysdeps/ieee754/ldbl-96/strtold_l.c
21601 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21602 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21603 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21604 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21605
21606 * math/test-float64x.h: New file.
21607 * math/Makefile (type-float64x-yes): New variable.
21608 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21609
21610 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21611 function-like macro.
21612 (min_of_type_): Likewise.
21613 (min_of_type_l): Likewise.
21614 (min_of_type_f128): Likewise.
21615 (min_of_type): Pass () as last argument of __MATH_TG.
21616
21617 * stdlib/tst-strtod-round-skeleton.c
21618 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21619 headers.
21620
21621 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21622 for combinations of long double with _Float64 and _Float64x.
21623
21624 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21625 (__DECL_SIMD_cosf32): Likewise.
21626 (__DECL_SIMD_cosf64): Likewise.
21627 (__DECL_SIMD_cosf32x): Likewise.
21628 (__DECL_SIMD_cosf64x): Likewise.
21629 (__DECL_SIMD_cosf128x): Likewise.
21630 (__DECL_SIMD_sinf16): Likewise.
21631 (__DECL_SIMD_sinf32): Likewise.
21632 (__DECL_SIMD_sinf64): Likewise.
21633 (__DECL_SIMD_sinf32x): Likewise.
21634 (__DECL_SIMD_sinf64x): Likewise.
21635 (__DECL_SIMD_sinf128x): Likewise.
21636 (__DECL_SIMD_sincosf16): Likewise.
21637 (__DECL_SIMD_sincosf32): Likewise.
21638 (__DECL_SIMD_sincosf64): Likewise.
21639 (__DECL_SIMD_sincosf32x): Likewise.
21640 (__DECL_SIMD_sincosf64x): Likewise.
21641 (__DECL_SIMD_sincosf128x): Likewise.
21642 (__DECL_SIMD_logf16): Likewise.
21643 (__DECL_SIMD_logf32): Likewise.
21644 (__DECL_SIMD_logf64): Likewise.
21645 (__DECL_SIMD_logf32x): Likewise.
21646 (__DECL_SIMD_logf64x): Likewise.
21647 (__DECL_SIMD_logf128x): Likewise.
21648 (__DECL_SIMD_expf16): Likewise.
21649 (__DECL_SIMD_expf32): Likewise.
21650 (__DECL_SIMD_expf64): Likewise.
21651 (__DECL_SIMD_expf32x): Likewise.
21652 (__DECL_SIMD_expf64x): Likewise.
21653 (__DECL_SIMD_expf128x): Likewise.
21654 (__DECL_SIMD_powf16): Likewise.
21655 (__DECL_SIMD_powf32): Likewise.
21656 (__DECL_SIMD_powf64): Likewise.
21657 (__DECL_SIMD_powf32x): Likewise.
21658 (__DECL_SIMD_powf64x): Likewise.
21659 (__DECL_SIMD_powf128x): Likewise.
21660
21661 * stdlib/Versions (libc): Move entries for wcstof128 and
21662 wcstof128_l to ....
21663 * wcsmbs/Versions (libc): ... here.
21664 Include <float128-abi.h>.
21665
21666 2017-11-24 Florian Weimer <fweimer@redhat.com>
21667
21668 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21669 bits/mman-shared.h.
21670 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21671 <bits/mman-shared.h>.
21672 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21673 to ...
21674 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21675 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21676 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21677 <bits/mman-shared.h>.
21678
21679 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21680
21681 [BZ #22457]
21682 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21683 posix_memalign/free.
21684 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21685
21686 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21687
21688 [BZ #22469]
21689 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21690 and implement the collation rules for pl from CLDR on top of that.
21691 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21692 of locales to be built for testing.
21693 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21694
21695 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21696
21697 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21698 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21699 libm_alias_ldouble_other.
21700 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21701 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21702 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21703 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21704 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21705 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21706 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21707 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21708 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21709 libm_alias_ldouble_r.
21710 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21711 libm_alias_ldouble_other.
21712 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21713 (log10l): Likewise.
21714 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21715 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21716 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21717 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21718 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21719 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21720 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21721 (atan2l): Likewise.
21722 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21723 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21724 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21725 libm_alias_ldouble.
21726 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21727 (cosl): Likewise.
21728 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21729 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21730 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21731 (expl): Likewise.
21732 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21733 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21734 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21735 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21736 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21737 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21738 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21739 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21740 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21741 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21742 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21743 libm_alias_ldouble.
21744 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21745 libm_alias_ldouble_other.
21746 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21747 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21748 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21749 libm_alias_ldouble.
21750 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21751 libm_alias_ldouble_other.
21752 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21753 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21754 * sysdeps/ia64/fpu/w_lgammal_main.c
21755 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21756 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21757
21758 2017-11-23 Florian Weimer <fweimer@redhat.com>
21759
21760 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21761 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21762 alike. Remove freeres marker.
21763 * malloc/arena.c (arena_thread_freeres): Call
21764 tcache_thread_shutdown.
21765
21766 2017-11-23 Florian Weimer <fweimer@redhat.com>
21767
21768 [BZ #22459]
21769 Export nscd hash function as __nss_hash.
21770 * include/nss.h (__nss_hash): Declare.
21771 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21772 symbol.
21773 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21774 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21775 of __nscd_hash.
21776 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21777 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21778 * nss/Makefiles (routines): Add nss_hash.
21779 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21780 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21781 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21782 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21783
21784 2017-11-23 Florian Weimer <fweimer@redhat.com>
21785
21786 [BZ #22478]
21787 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21788 Return error code, not -1.
21789 * signal/tst-sigwait-eintr.c: New file.
21790 * signal/Makefile (tests): Add tst-sigwait-eintr.
21791
21792 2017-11-23 Florian Weimer <fweimer@redhat.com>
21793
21794 Linux: Add memfd_create system call wrapper
21795 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21796 tst-memfd_create.
21797 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21798 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21799 [__USE_GNU] (memfd_create): Declare.
21800 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21801 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21802 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21803 * sysdeps/unix/sysv/linux/**.abilist: Update.
21804 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21805
21806 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21807
21808 * localedata/gen-locale.sh: Fix typo in variable name.
21809
21810 * resolv/res_debug.c (p_secstodate): Condition definition on
21811 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21812 directly as __p_secstodate, and as a compat symbol. Do not use
21813 libresolv_hidden_def.
21814 * resolv/resolv.h (p_secstodate): Remove macro and function
21815 declaration.
21816 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21817 using p_secstodate.
21818 * include/resolv.h (__p_secstodate): Do not use
21819 libresolv_hidden_proto.
21820 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21821 (tests-internal): ... here.
21822 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21823 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21824 and declare and use __p_secstodate and use compat_symbol_reference
21825 in that case.
21826 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21827 implementation returning 77.
21828
21829 [BZ #22463]
21830 * resolv/res_debug.c: Include <libc-diag.h>.
21831 (p_secstodate): Assert time_t at least as wide as u_long. On
21832 overflow, use integer seconds since the epoch as output, or use
21833 "<overflow>" as output and set errno to EOVERFLOW if integer
21834 seconds since the epoch would be 14 or more characters.
21835 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21836 for sprintf call.
21837 * resolv/tst-p_secstodate.c: New file.
21838 * resolv/Makefile (tests): Add tst-p_secstodate.
21839 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21840
21841 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21842 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21843 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21844
21845 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21846
21847 * posix/regcomp.c (init_word_char): Add comments.
21848
21849 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21850
21851 [BZ #22447]
21852 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21853 strlen to compute length of ut_user and set trailing NUL byte of
21854 result explicitly.
21855
21856 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21857
21858 [BZ #15537]
21859 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21860 using “copy "iso14651_t1"” and then implementing the
21861 collation rules for lv from CLDR on top of that.
21862 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21863 of locales to be built for testing.
21864 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21865 sorting.
21866
21867 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21868
21869 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21870 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21871 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21872 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21873 [__USE_MISC] (MADV_HWPOISON): New macro.
21874 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21875
21876 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21877
21878 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21879 -Wmissing-braces on GCC 4.9.
21880
21881 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21882
21883 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21884 * sysdeps/s390/s390-32/start.S (_start): Likewise
21885 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21886 (thread_start): Likewise.
21887 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21888 (thread_start): Likewise.
21889 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21890 (__makecontext_ret): Likewise.
21891 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21892 (__makecontext_ret): Likewise.
21893
21894 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21895
21896 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21897 __wcschrnul): Remove attribute_hidden.
21898
21899 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21900
21901 regex: don't assume uint64_t or uint32_t
21902 This avoids -Werror=overflow errors for 32-bit systems in
21903 the 64-bit case. Problem reported by Joseph Myers in:
21904 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21905 Also, when this code is used in Gnulib it ports to platforms
21906 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21907 them, and on some 32-bit compilers there is no uint64_t.
21908 Problem reported by Gianluigi Tiesi in:
21909 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21910 * posix/regcomp.c (init_word_char): Don't assume that the types
21911 uint64_t and uint32_t exist. Adapted from Gnulib patch
21912 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21913 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21914
21915 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21916
21917 * sysdeps/aarch64/memset-reg.h: New file.
21918 * sysdeps/aarch64/memset.S: Use it.
21919 (__memset): Rename to MEMSET macro.
21920 [ZVA_MACRO]: Use zva_macro.
21921 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21922 Add memset_generic and memset_falkor.
21923 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21924 (__libc_ifunc_impl_list): Add memset ifuncs.
21925 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21926 local variable zva_size.
21927 * sysdeps/aarch64/multiarch/memset.c: New file.
21928 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21929 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21930 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21931 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21932 (DCZID_DZP_MASK): New macro.
21933 (DCZID_BS_MASK): Likewise.
21934 (init_cpu_features): Read and set zva_size.
21935 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21936 (struct cpu_features): New member zva_size.
21937
21938 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21939 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21940 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21941
21942 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21943 backwards. Fix timing computation.
21944 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21945 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21946 on memset by N at a time. Fix timing computation.
21947
21948 2017-11-20 Florian Weimer <fweimer@redhat.com>
21949
21950 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21951 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21952
21953 2017-11-19 Florian Weimer <fweimer@redhat.com>
21954
21955 manual: Document mprotect
21956 * manual/memory.texi (Memory Protection): New section.
21957 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21958 documentation of PROT_* flags and reference the Memory Protection
21959 section instead.
21960
21961 2017-11-19 Florian Weimer <fweimer@redhat.com>
21962
21963 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21964 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21965 (Scatter-Gather): ... to here. Remove misleading comment.
21966
21967 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21968
21969 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21970 style.
21971
21972 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21973 when /proc/<pid>/setgroups does not exist.
21974
21975 2017-11-18 Florian Weimer <fweimer@redhat.com>
21976
21977 * sysdeps/unix/sysv/linux/tst-ttyname.c
21978 (become_root_in_mount_ns): Remove.
21979 (do_in_chroot_1): Call support_enter_mount_namespace.
21980 (do_in_chroot_2): Likewise.
21981 (do_test): Call support_become_root early.
21982
21983 2017-11-18 Florian Weimer <fweimer@redhat.com>
21984
21985 * support/namespace.h (support_enter_mount_namespace): Declare.
21986 * support/support_enter_mount_namespace.c: New file.
21987 * support/Makefile (libsupport-routines): Add
21988 support_enter_mount_namespace.
21989
21990 2017-11-18 Florian Weimer <fweimer@redhat.com>
21991
21992 * support/temp_file.c (support_create_temp_directory): Use
21993 test_dir and do not rely on the presence of the XXXXXX suffix.
21994 * support/temp_file.h (support_create_temp_directory): Update
21995 comment.
21996 * support/tst-xreadlink.c (do_test): Adjust.
21997 * support/support_chroot.c (support_chroot_create): Likewise.
21998
21999 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22000
22001 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22002 macro.
22003 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22004 htm-no-suspend.
22005
22006 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22007
22008 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22009 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22010 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22011 (ceill): Define using libm_alias_ldouble.
22012 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22013 <libm-alias-ldouble.h>.
22014 (copysignl): Define using libm_alias_ldouble.
22015 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22016 (fabsl): Define using libm_alias_ldouble.
22017 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22018 (floorl): Define using libm_alias_ldouble.
22019 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22020 (fmaxl): Define using libm_alias_ldouble.
22021 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22022 (fminl): Define using libm_alias_ldouble.
22023 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22024 (llrintl): Define using libm_alias_ldouble.
22025 (lrintl): Likewise.
22026 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22027 <libm-alias-ldouble.h>.
22028 (nearbyintl): Define using libm_alias_ldouble.
22029 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22030 (truncl): Define using libm_alias_ldouble.
22031 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22032 <libm-alias-ldouble.h>.
22033 (lrintl): Define using libm_alias_ldouble.
22034
22035 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22036 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22037 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22038 (asinhl): Define using libm_alias_ldouble.
22039 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22040 (atanl): Define using libm_alias_ldouble.
22041 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22042 (cbrtl): Define using libm_alias_ldouble.
22043 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22044 (ceill): Define using libm_alias_ldouble.
22045 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22046 (copysignl): Define using libm_alias_ldouble.
22047 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22048 (fabsl): Define using libm_alias_ldouble.
22049 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22050 (floorl): Define using libm_alias_ldouble.
22051 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22052 (fmaxl): Define using libm_alias_ldouble.
22053 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22054 (fminl): Define using libm_alias_ldouble.
22055 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22056 (frexpl): Define using libm_alias_ldouble.
22057 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22058 (llrintl): Define using libm_alias_ldouble.
22059 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22060 (logbl): Define using libm_alias_ldouble.
22061 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22062 (lrintl): Define using libm_alias_ldouble.
22063 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22064 (nearbyintl): Define using libm_alias_ldouble.
22065 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22066 (nextafterl): Define using libm_alias_ldouble.
22067 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22068 (remquol): Define using libm_alias_ldouble.
22069 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22070 (rintl): Define using libm_alias_ldouble.
22071 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22072 (truncl): Define using libm_alias_ldouble.
22073 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22074 (fmaxl): Define using libm_alias_ldouble.
22075 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22076 (fminl): Define using libm_alias_ldouble.
22077
22078 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22079 to C syntax instead of availability and properties of types.
22080 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22081 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22082 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22083 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22084 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22085 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22086
22087 2017-11-17 Florian Weimer <fweimer@redhat.com>
22088
22089 support_become_root: Enable file creation in namespaces.
22090 * support/support_become_root.c (setup_mapping): New function.
22091 (support_become_root): Call it.
22092
22093 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22094
22095 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22096 macro.
22097
22098 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22099
22100 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22101 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22102
22103 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22104
22105 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22106
22107 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22108 version to 4.14.
22109
22110 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22111
22112 * INSTALL: Fix botched up regeneration.
22113
22114 * NEWS: Update sourceare link to https.
22115 * configure.ac: Likewise.
22116 * crypt/md5test-giant.c: Likewise.
22117 * dlfcn/bug-atexit1.c: Likewise.
22118 * dlfcn/bug-atexit2.c: Likewise.
22119 * localedata/README: Likewise.
22120 * malloc/tst-mallocfork.c: Likewise.
22121 * manual/install.texi: Likewise.
22122 * nptl/tst-pthread-getattr.c: Likewise.
22123 * stdio-common/tst-fgets.c: Likewise.
22124 * stdio-common/tst-fwrite.c: Likewise.
22125 * sunrpc/Makefile: Likewise.
22126 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22127 * wcsmbs/tst-mbrtowc2.c: Likewise.
22128 * configure: Regenerate.
22129 * INSTALL: Regenerate.
22130
22131 2017-11-15 Martin Sebor <msebor@redhat.com>
22132
22133 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22134 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22135 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22136
22137 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22138
22139 [BZ #22145]
22140 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22141 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22142
22143 [BZ #22145]
22144 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22145 Defer is_pty check until end of the function.
22146 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22147
22148 [BZ #22145]
22149 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22150 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22151 (ttyname): Likewise.
22152 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22153 (__ttyname_r): Likewise.
22154
22155 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22156 int to bool.
22157
22158 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22159
22160 * manual/terminal.texi (Is It a Terminal):
22161 Mention ENODEV for ttyname and ttyname_r.
22162
22163 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22164
22165 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22166 constant and macro.
22167
22168 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22169 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22170 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22171 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22172 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22173 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22174
22175 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22176
22177 * signal/sigrelse.c (sigrelse): Optimize implementation.
22178
22179 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22180 (__sigpause): Rely on __sigsuspend to implement single thread
22181 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22182
22183 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22184
22185 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22186 kernel version to 4.14.
22187
22188 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22189
22190 [BZ #22442]
22191 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22192 Check if ifname is too long.
22193
22194 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22195
22196 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22197
22198 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22199
22200 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22201 was accidentally lost.
22202
22203 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22204
22205 * localedata/locales/az_IR: Add standard copyright header.
22206
22207 2017-11-15 Florian Weimer <fweimer@redhat.com>
22208
22209 [BZ #22439]
22210 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22211 not just the top one. Output a new "subheaps" statistic.
22212
22213 2017-11-15 Florian Weimer <fweimer@redhat.com>
22214
22215 [BZ #22408]
22216 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22217 under the per-arena lock.
22218 * malloc/Makefile (tests): Add tst-malloc_info.
22219 (tst-malloc_info): Link with libpthread.
22220 * malloc/tst-malloc_info.c: New file.
22221
22222 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22223
22224 [BZ #21660]
22225 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22226 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22227 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22228 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22229 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22230 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22231 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22232 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22233 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22234 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22235 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22236 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22237 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22238 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22239 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22240 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22241 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22242 (__floating_type): Likewise.
22243 (__real_integer_type): Likewise.
22244 (__complex_integer_type): Likewise.
22245 (__expr_is_real): Likewise.
22246 (__tgmath_real_type_sub): Likewise.
22247 (__tgmath_real_type): Likewise.
22248 (__tgmath_complex_type_sub): Likewise.
22249 (__tgmath_complex_type): Likewise.
22250 (__TGMATH_F128): Likewise.
22251 (__TGMATH_CF128): Likewise.
22252 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22253 new macros.
22254 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22255 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22256 Likewise.
22257 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22258 Likewise.
22259 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22260 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22261 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22262 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22263 Likewise.
22264 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22265 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22266 Likewise.
22267 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22268 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22269 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22270 Likewise.
22271 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22272 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22273 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22274 (cimag): Likewise.
22275 (creal): Likewise.
22276
22277 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22278
22279 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22280 for stpncpy calls for GCC 8.
22281 (test_strncat): Disable -Wstringop-truncation warning for strncat
22282 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22283 strncat call for GCC 7.
22284 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22285 calls for GCC 8.
22286 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22287 trailing NUL.
22288
22289 * string/bug-strncat1.c: Include <libc-diag.h>.
22290 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22291
22292 2017-11-13 Claude Paroz <claude@2xlibre.net>
22293
22294 [BZ #22387]
22295 * localedata/locales/aa_DJ: Improved readibility by replacing
22296 <Uxxxx> sequences in the ASCII printable range by their ASCII
22297 character equivalents.
22298 * localedata/locales/aa_ER: Likewise.
22299 * localedata/locales/aa_ER@saaho: Likewise.
22300 * localedata/locales/aa_ET: Likewise.
22301 * localedata/locales/af_ZA: Likewise.
22302 * localedata/locales/agr_PE: Likewise.
22303 * localedata/locales/ak_GH: Likewise.
22304 * localedata/locales/am_ET: Likewise.
22305 * localedata/locales/anp_IN: Likewise.
22306 * localedata/locales/ar_AE: Likewise.
22307 * localedata/locales/ar_BH: Likewise.
22308 * localedata/locales/ar_DZ: Likewise.
22309 * localedata/locales/ar_EG: Likewise.
22310 * localedata/locales/ar_IN: Likewise.
22311 * localedata/locales/ar_IQ: Likewise.
22312 * localedata/locales/ar_JO: Likewise.
22313 * localedata/locales/ar_KW: Likewise.
22314 * localedata/locales/ar_LB: Likewise.
22315 * localedata/locales/ar_LY: Likewise.
22316 * localedata/locales/ar_MA: Likewise.
22317 * localedata/locales/ar_OM: Likewise.
22318 * localedata/locales/ar_QA: Likewise.
22319 * localedata/locales/ar_SA: Likewise.
22320 * localedata/locales/ar_SD: Likewise.
22321 * localedata/locales/ar_SS: Likewise.
22322 * localedata/locales/ar_SY: Likewise.
22323 * localedata/locales/ar_TN: Likewise.
22324 * localedata/locales/ar_YE: Likewise.
22325 * localedata/locales/as_IN: Likewise.
22326 * localedata/locales/ast_ES: Likewise.
22327 * localedata/locales/ayc_PE: Likewise.
22328 * localedata/locales/az_AZ: Likewise.
22329 * localedata/locales/az_IR: Likewise.
22330 * localedata/locales/be_BY: Likewise.
22331 * localedata/locales/be_BY@latin: Likewise.
22332 * localedata/locales/bem_ZM: Likewise.
22333 * localedata/locales/ber_DZ: Likewise.
22334 * localedata/locales/ber_MA: Likewise.
22335 * localedata/locales/bg_BG: Likewise.
22336 * localedata/locales/bhb_IN: Likewise.
22337 * localedata/locales/bho_IN: Likewise.
22338 * localedata/locales/bi_VU: Likewise.
22339 * localedata/locales/bn_BD: Likewise.
22340 * localedata/locales/bn_IN: Likewise.
22341 * localedata/locales/bo_CN: Likewise.
22342 * localedata/locales/bo_IN: Likewise.
22343 * localedata/locales/br_FR: Likewise.
22344 * localedata/locales/brx_IN: Likewise.
22345 * localedata/locales/bs_BA: Likewise.
22346 * localedata/locales/byn_ER: Likewise.
22347 * localedata/locales/ca_AD: Likewise.
22348 * localedata/locales/ca_ES: Likewise.
22349 * localedata/locales/ca_FR: Likewise.
22350 * localedata/locales/ca_IT: Likewise.
22351 * localedata/locales/ce_RU: Likewise.
22352 * localedata/locales/chr_US: Likewise.
22353 * localedata/locales/cmn_TW: Likewise.
22354 * localedata/locales/crh_UA: Likewise.
22355 * localedata/locales/cs_CZ: Likewise.
22356 * localedata/locales/csb_PL: Likewise.
22357 * localedata/locales/cv_RU: Likewise.
22358 * localedata/locales/cy_GB: Likewise.
22359 * localedata/locales/da_DK: Likewise.
22360 * localedata/locales/de_AT: Likewise.
22361 * localedata/locales/de_BE: Likewise.
22362 * localedata/locales/de_CH: Likewise.
22363 * localedata/locales/de_DE: Likewise.
22364 * localedata/locales/de_IT: Likewise.
22365 * localedata/locales/de_LI: Likewise.
22366 * localedata/locales/de_LU: Likewise.
22367 * localedata/locales/doi_IN: Likewise.
22368 * localedata/locales/dv_MV: Likewise.
22369 * localedata/locales/dz_BT: Likewise.
22370 * localedata/locales/el_CY: Likewise.
22371 * localedata/locales/el_GR: Likewise.
22372 * localedata/locales/en_AG: Likewise.
22373 * localedata/locales/en_AU: Likewise.
22374 * localedata/locales/en_BW: Likewise.
22375 * localedata/locales/en_CA: Likewise.
22376 * localedata/locales/en_DK: Likewise.
22377 * localedata/locales/en_GB: Likewise.
22378 * localedata/locales/en_HK: Likewise.
22379 * localedata/locales/en_IE: Likewise.
22380 * localedata/locales/en_IL: Likewise.
22381 * localedata/locales/en_IN: Likewise.
22382 * localedata/locales/en_NG: Likewise.
22383 * localedata/locales/en_NZ: Likewise.
22384 * localedata/locales/en_PH: Likewise.
22385 * localedata/locales/en_SG: Likewise.
22386 * localedata/locales/en_US: Likewise.
22387 * localedata/locales/en_ZA: Likewise.
22388 * localedata/locales/en_ZM: Likewise.
22389 * localedata/locales/en_ZW: Likewise.
22390 * localedata/locales/eo: Likewise.
22391 * localedata/locales/es_AR: Likewise.
22392 * localedata/locales/es_BO: Likewise.
22393 * localedata/locales/es_CL: Likewise.
22394 * localedata/locales/es_CO: Likewise.
22395 * localedata/locales/es_CR: Likewise.
22396 * localedata/locales/es_CU: Likewise.
22397 * localedata/locales/es_DO: Likewise.
22398 * localedata/locales/es_EC: Likewise.
22399 * localedata/locales/es_ES: Likewise.
22400 * localedata/locales/es_GT: Likewise.
22401 * localedata/locales/es_HN: Likewise.
22402 * localedata/locales/es_MX: Likewise.
22403 * localedata/locales/es_NI: Likewise.
22404 * localedata/locales/es_PA: Likewise.
22405 * localedata/locales/es_PE: Likewise.
22406 * localedata/locales/es_PR: Likewise.
22407 * localedata/locales/es_PY: Likewise.
22408 * localedata/locales/es_SV: Likewise.
22409 * localedata/locales/es_US: Likewise.
22410 * localedata/locales/es_UY: Likewise.
22411 * localedata/locales/es_VE: Likewise.
22412 * localedata/locales/et_EE: Likewise.
22413 * localedata/locales/eu_ES: Likewise.
22414 * localedata/locales/eu_ES@euro: Likewise.
22415 * localedata/locales/fa_IR: Likewise.
22416 * localedata/locales/ff_SN: Likewise.
22417 * localedata/locales/fi_FI: Likewise.
22418 * localedata/locales/fil_PH: Likewise.
22419 * localedata/locales/fo_FO: Likewise.
22420 * localedata/locales/fr_BE: Likewise.
22421 * localedata/locales/fr_CA: Likewise.
22422 * localedata/locales/fr_CH: Likewise.
22423 * localedata/locales/fr_FR: Likewise.
22424 * localedata/locales/fr_LU: Likewise.
22425 * localedata/locales/fur_IT: Likewise.
22426 * localedata/locales/fy_DE: Likewise.
22427 * localedata/locales/fy_NL: Likewise.
22428 * localedata/locales/ga_IE: Likewise.
22429 * localedata/locales/gd_GB: Likewise.
22430 * localedata/locales/gez_ER: Likewise.
22431 * localedata/locales/gez_ET: Likewise.
22432 * localedata/locales/gl_ES: Likewise.
22433 * localedata/locales/gu_IN: Likewise.
22434 * localedata/locales/gv_GB: Likewise.
22435 * localedata/locales/ha_NG: Likewise.
22436 * localedata/locales/hak_TW: Likewise.
22437 * localedata/locales/he_IL: Likewise.
22438 * localedata/locales/hi_IN: Likewise.
22439 * localedata/locales/hif_FJ: Likewise.
22440 * localedata/locales/hne_IN: Likewise.
22441 * localedata/locales/hr_HR: Likewise.
22442 * localedata/locales/hsb_DE: Likewise.
22443 * localedata/locales/ht_HT: Likewise.
22444 * localedata/locales/hu_HU: Likewise.
22445 * localedata/locales/hy_AM: Likewise.
22446 * localedata/locales/i18n: Likewise.
22447 * localedata/locales/ia_FR: Likewise.
22448 * localedata/locales/id_ID: Likewise.
22449 * localedata/locales/ig_NG: Likewise.
22450 * localedata/locales/ik_CA: Likewise.
22451 * localedata/locales/is_IS: Likewise.
22452 * localedata/locales/it_CH: Likewise.
22453 * localedata/locales/it_IT: Likewise.
22454 * localedata/locales/iu_CA: Likewise.
22455 * localedata/locales/ja_JP: Likewise.
22456 * localedata/locales/ka_GE: Likewise.
22457 * localedata/locales/kk_KZ: Likewise.
22458 * localedata/locales/kl_GL: Likewise.
22459 * localedata/locales/kn_IN: Likewise.
22460 * localedata/locales/ko_KR: Likewise.
22461 * localedata/locales/kok_IN: Likewise.
22462 * localedata/locales/ks_IN: Likewise.
22463 * localedata/locales/ks_IN@devanagari: Likewise.
22464 * localedata/locales/ku_TR: Likewise.
22465 * localedata/locales/kw_GB: Likewise.
22466 * localedata/locales/ky_KG: Likewise.
22467 * localedata/locales/lb_LU: Likewise.
22468 * localedata/locales/lg_UG: Likewise.
22469 * localedata/locales/li_BE: Likewise.
22470 * localedata/locales/li_NL: Likewise.
22471 * localedata/locales/lij_IT: Likewise.
22472 * localedata/locales/ln_CD: Likewise.
22473 * localedata/locales/lo_LA: Likewise.
22474 * localedata/locales/lt_LT: Likewise.
22475 * localedata/locales/lv_LV: Likewise.
22476 * localedata/locales/lzh_TW: Likewise.
22477 * localedata/locales/mag_IN: Likewise.
22478 * localedata/locales/mai_IN: Likewise.
22479 * localedata/locales/mg_MG: Likewise.
22480 * localedata/locales/mhr_RU: Likewise.
22481 * localedata/locales/mi_NZ: Likewise.
22482 * localedata/locales/mk_MK: Likewise.
22483 * localedata/locales/ml_IN: Likewise.
22484 * localedata/locales/mn_MN: Likewise.
22485 * localedata/locales/mni_IN: Likewise.
22486 * localedata/locales/mr_IN: Likewise.
22487 * localedata/locales/ms_MY: Likewise.
22488 * localedata/locales/mt_MT: Likewise.
22489 * localedata/locales/my_MM: Likewise.
22490 * localedata/locales/nan_TW: Likewise.
22491 * localedata/locales/nan_TW@latin: Likewise.
22492 * localedata/locales/nb_NO: Likewise.
22493 * localedata/locales/nds_DE: Likewise.
22494 * localedata/locales/nds_NL: Likewise.
22495 * localedata/locales/ne_NP: Likewise.
22496 * localedata/locales/nhn_MX: Likewise.
22497 * localedata/locales/niu_NU: Likewise.
22498 * localedata/locales/niu_NZ: Likewise.
22499 * localedata/locales/nl_AW: Likewise.
22500 * localedata/locales/nl_BE: Likewise.
22501 * localedata/locales/nl_NL: Likewise.
22502 * localedata/locales/nn_NO: Likewise.
22503 * localedata/locales/nr_ZA: Likewise.
22504 * localedata/locales/nso_ZA: Likewise.
22505 * localedata/locales/oc_FR: Likewise.
22506 * localedata/locales/om_ET: Likewise.
22507 * localedata/locales/om_KE: Likewise.
22508 * localedata/locales/or_IN: Likewise.
22509 * localedata/locales/os_RU: Likewise.
22510 * localedata/locales/pa_IN: Likewise.
22511 * localedata/locales/pa_PK: Likewise.
22512 * localedata/locales/pap_AW: Likewise.
22513 * localedata/locales/pap_CW: Likewise.
22514 * localedata/locales/pl_PL: Likewise.
22515 * localedata/locales/ps_AF: Likewise.
22516 * localedata/locales/pt_BR: Likewise.
22517 * localedata/locales/pt_PT: Likewise.
22518 * localedata/locales/quz_PE: Likewise.
22519 * localedata/locales/raj_IN: Likewise.
22520 * localedata/locales/ro_RO: Likewise.
22521 * localedata/locales/ru_RU: Likewise.
22522 * localedata/locales/ru_UA: Likewise.
22523 * localedata/locales/rw_RW: Likewise.
22524 * localedata/locales/sa_IN: Likewise.
22525 * localedata/locales/sat_IN: Likewise.
22526 * localedata/locales/sc_IT: Likewise.
22527 * localedata/locales/sd_IN: Likewise.
22528 * localedata/locales/sd_IN@devanagari: Likewise.
22529 * localedata/locales/se_NO: Likewise.
22530 * localedata/locales/sgs_LT: Likewise.
22531 * localedata/locales/shs_CA: Likewise.
22532 * localedata/locales/si_LK: Likewise.
22533 * localedata/locales/sid_ET: Likewise.
22534 * localedata/locales/sk_SK: Likewise.
22535 * localedata/locales/sl_SI: Likewise.
22536 * localedata/locales/sm_WS: Likewise.
22537 * localedata/locales/so_DJ: Likewise.
22538 * localedata/locales/so_ET: Likewise.
22539 * localedata/locales/so_KE: Likewise.
22540 * localedata/locales/so_SO: Likewise.
22541 * localedata/locales/sq_AL: Likewise.
22542 * localedata/locales/sq_MK: Likewise.
22543 * localedata/locales/sr_ME: Likewise.
22544 * localedata/locales/sr_RS: Likewise.
22545 * localedata/locales/sr_RS@latin: Likewise.
22546 * localedata/locales/ss_ZA: Likewise.
22547 * localedata/locales/st_ZA: Likewise.
22548 * localedata/locales/sv_FI: Likewise.
22549 * localedata/locales/sv_SE: Likewise.
22550 * localedata/locales/sw_KE: Likewise.
22551 * localedata/locales/sw_TZ: Likewise.
22552 * localedata/locales/szl_PL: Likewise.
22553 * localedata/locales/ta_IN: Likewise.
22554 * localedata/locales/ta_LK: Likewise.
22555 * localedata/locales/tcy_IN: Likewise.
22556 * localedata/locales/te_IN: Likewise.
22557 * localedata/locales/tg_TJ: Likewise.
22558 * localedata/locales/th_TH: Likewise.
22559 * localedata/locales/the_NP: Likewise.
22560 * localedata/locales/ti_ER: Likewise.
22561 * localedata/locales/ti_ET: Likewise.
22562 * localedata/locales/tig_ER: Likewise.
22563 * localedata/locales/tk_TM: Likewise.
22564 * localedata/locales/tl_PH: Likewise.
22565 * localedata/locales/tn_ZA: Likewise.
22566 * localedata/locales/to_TO: Likewise.
22567 * localedata/locales/tpi_PG: Likewise.
22568 * localedata/locales/tr_CY: Likewise.
22569 * localedata/locales/tr_TR: Likewise.
22570 * localedata/locales/ts_ZA: Likewise.
22571 * localedata/locales/tt_RU: Likewise.
22572 * localedata/locales/tt_RU@iqtelif: Likewise.
22573 * localedata/locales/ug_CN: Likewise.
22574 * localedata/locales/uk_UA: Likewise.
22575 * localedata/locales/unm_US: Likewise.
22576 * localedata/locales/ur_IN: Likewise.
22577 * localedata/locales/ur_PK: Likewise.
22578 * localedata/locales/uz_UZ: Likewise.
22579 * localedata/locales/uz_UZ@cyrillic: Likewise.
22580 * localedata/locales/ve_ZA: Likewise.
22581 * localedata/locales/vi_VN: Likewise.
22582 * localedata/locales/wa_BE: Likewise.
22583 * localedata/locales/wae_CH: Likewise.
22584 * localedata/locales/wal_ET: Likewise.
22585 * localedata/locales/wo_SN: Likewise.
22586 * localedata/locales/xh_ZA: Likewise.
22587 * localedata/locales/yi_US: Likewise.
22588 * localedata/locales/yo_NG: Likewise.
22589 * localedata/locales/yue_HK: Likewise.
22590 * localedata/locales/yuw_PG: Likewise.
22591 * localedata/locales/zh_CN: Likewise.
22592 * localedata/locales/zh_HK: Likewise.
22593 * localedata/locales/zh_SG: Likewise.
22594 * localedata/locales/zh_TW: Likewise.
22595 * localedata/locales/zu_ZA: Likewise.
22596
22597 2017-11-13 Florian Weimer <fweimer@redhat.com>
22598
22599 * support/next_to_fault.h, support/next_to_fault.c: New files.
22600 * support/Makefile (libsupport-routines): Add next_to_fault.
22601 * resolv/tst-inet_pton.c (struct next_to_fault)
22602 (next_to_fault_allocate, next_to_fault_free): Remove.
22603 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22604
22605 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22606
22607 * elf/dl-support.c: Include <dl-procruntime.c>.
22608 * include/link.h: Include <link_map.h>.
22609 * sysdeps/generic/dl-procruntime.c: New file.
22610 * sysdeps/generic/link_map.h: Likewise.
22611 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22612 the writable ld.so namespace.
22613
22614 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22615
22616 timezone: pacify GCC -Wstringop-truncation
22617 Problem reported by Martin Sebor in:
22618 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22619 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22620
22621 2017-11-12 Florian Weimer <fweimer@redhat.com>
22622
22623 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22624 tst-xreadlink.
22625 (tests): Add tst-xreadlink.
22626 * support/support.h (xstrndup): Declare.
22627 * support/xunistd.h (xunlink, xreadlink): Declare.
22628 * support/temp_file.h (support_create_temp_directory): Declare.
22629 * support/temp_file.c (support_create_temp_directory): New function.
22630 * support/support_chroot.c (support_chroot_create): Use it.
22631 * support/xreadlink.c: New file.
22632 * support/xstrndup.c: Likewise.
22633 * support/xunlink.c: Likewise.
22634 * support/tst-xreadlink.c: Likewise.
22635
22636 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22637
22638 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22639
22640 2017-11-11 Florian Weimer <fweimer@redhat.com>
22641
22642 [BZ #22409]
22643 [BZ #22412]
22644 * resolv/res_comp.c (printable_string, binary_hnok)
22645 (binary_leading_dash): New functions.
22646 (res_hnok): Reimplement using these functions and ns_name_pton.
22647 (res_ownok): Likewise.
22648 (res_mailok): Reimplement using printable_string, ns_name_pton and
22649 binary_hnok.
22650 (res_dnok): Reimplement using printable_string and ns_name_pton.
22651 * resolv/tst-res_hnok.c (tests): Add additional tests.
22652 (LETTERDIGITS, PRINTABLE): Define.
22653 (do_test): Adjust one_char results.
22654
22655 2017-11-11 Florian Weimer <fweimer@redhat.com>
22656
22657 [BZ #22413]
22658 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22659 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22660
22661 2017-11-11 Florian Weimer <fweimer@redhat.com>
22662
22663 * resolv/tst-ns_name_pton.c: New file.
22664 * resolv/Makefile (tests): Add tst-ns_name_pton.
22665 (tst-ns_name_pton): Link against libresolv.
22666
22667 2017-11-11 Florian Weimer <fweimer@redhat.com>
22668
22669 * resolv/tst-res_hnok.c: New file.
22670 * resolv/Makefile (tests): Add tst-res_hnok.
22671 (tst-res_hnok): Link against libresolv.
22672
22673 2017-11-11 Florian Weimer <fweimer@redhat.com>
22674
22675 * resolv/tst-resolv-network.c: Use test framework instead explicit
22676 main function.
22677
22678 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22679
22680 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22681 <jmp_buf-macros.h>.
22682 [!_ISOMAC] (STR_HELPER): New.
22683 [!_ISOMAC] (STR): Likewise.
22684 [!_ISOMAC] (TEST_SIZE): Likewise.
22685 [!_ISOMAC] (TEST_ALIGN): Likewise.
22686 [!_ISOMAC] (TEST_OFFSET): Likewise.
22687 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22688 field offsets of jmp_buf as well as sigjmp_buf.
22689 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22690 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22691 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22692 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22693 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22694 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22695 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22696 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22697 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22698 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22699 Likewise.
22700 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22701 Likewise.
22702 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22704 Likewise.
22705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22706 Likewise.
22707 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22708 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22709 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22710 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22711 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22712 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22713 Likewise.
22714 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22715 Likewise.
22716 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22717 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22718 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22719
22720 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22721
22722 * include/float.h
22723 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22724 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22725 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22726 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22727 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22728 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22729 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22730 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22731 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22732 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22733 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22734 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22735 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22736 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22737 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22738 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22739 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22740 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22741 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22742 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22743 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22744 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22745 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22746 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22747 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22748 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22749 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22750 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22751 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22752 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22753 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22754 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22755 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22756 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22757 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22758 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22759 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22760 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22761 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22762 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22763 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22764 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22765 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22766 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22767 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22768 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22769 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22770 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22771 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22772 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22774 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22776 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22778 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22779 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22780 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22781 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22782 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22783 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22784 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22785 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22786 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22787 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22788 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22789 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22790 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22791 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22792 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22793 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22794 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22795 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22796 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22797 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22798 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22799 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22800 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22801 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22802 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22803 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22804 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22805 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22806 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22807 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22808 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22809 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22810 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22811
22812 * stdlib/tst-strtod.h (F16): New macro.
22813 (F32): Likewise.
22814 (F64): Likewise.
22815 (F32X): Likewise.
22816 (F64X): Likewise.
22817 (F128X): Likewise.
22818 (IF_FLOAT16): Likewise.
22819 (IF_FLOAT32): Likewise.
22820 (IF_FLOAT64): Likewise.
22821 (IF_FLOAT32X): Likewise.
22822 (IF_FLOAT64X): Likewise.
22823 (IF_FLOAT128X): Likewise.
22824 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22825 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22826 (STRTOD_TEST_FOREACH): Likewise.
22827 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22828 (CHOOSE_f64): Likewise.
22829 (CHOOSE_f32x): Likewise.
22830 (CHOOSE_f64x): Likewise.
22831
22832 2017-11-07 Andreas Schwab <schwab@suse.de>
22833
22834 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22835
22836 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22837
22838 [BZ #22403]
22839 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22840 to be escaped.
22841 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22842 to be escaped.
22843
22844 2017-11-07 Claude Paroz <claude@2xlibre.net>
22845
22846 [BZ #22403]
22847 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22848 to be escaped.
22849 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22850 to be escaped.
22851 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22852 to be escaped.
22853
22854 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22855
22856 [BZ #22298]
22857 * nptl/allocatestack.c (allocate_stack): Check if
22858 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22859 __PTHREAD_MUTEX_HAVE_PREV is defined.
22860 * nptl/descr.h (pthread): Likewise.
22861 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22862 Likewise.
22863 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22864 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22865 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22866 * sysdeps/nptl/bits/thread-shared-types.h
22867 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22868 defines.
22869 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22870 of __WORDSIZE for internal layout.
22871 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22872 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22873 instead of __WORDSIZE whether to use an union for __spins and __list
22874 fields.
22875 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22876 case.
22877 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22878 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22879 defines.
22880 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22881 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22882 Likewise.
22883 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22884 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22885 Likewise.
22886 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22887 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22888 Likewise.
22889 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22890 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22891 Likewise.
22892 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22893 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22894 Likewise.
22895 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22896 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22897 Likewise.
22898 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22899 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22900 Likewise.
22901 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22902 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22903 Likewise.
22904 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22905 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22906 Likewise.
22907 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22908 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22909 Likewise.
22910 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22911 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22912 Likewise.
22913 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22914 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22915 Likewise.
22916 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22917 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22918 Likewise.
22919 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22920 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22921 Likewise.
22922
22923 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22924 New macros.
22925 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22926 checks for expected input type size.
22927 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22928 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22929 Likewise.
22930 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22931 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22932 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22933 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22934 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22935 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22936 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22937 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22938 superflous runtime assert check.
22939 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22940 Likewise.
22941 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22942 Likewise.
22943 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22944 Likewise.
22945 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22946 Likewise.
22947 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22948 Likewise.
22949 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22950 Likewise.
22951 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22952 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22953 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22954 Likewise.
22955 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22956 Likewise.
22957 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22958 Likewise.
22959 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22960 Likewise.
22961 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22962 Likewise.
22963 * nptl/pthread_attr_setinheritsched.c
22964 (__pthread_attr_setinheritsched): Likewise.
22965 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22966 Likewise.
22967 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22968 Likewise.
22969 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22970 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22971 __old_pthread_attr_setstack): Likewise.
22972 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22973 Likewise.
22974 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22975 Likewise.
22976 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22977 Likewise.
22978 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22979 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22980 Likewise.
22981 * nptl/tst-typesizes.c: Remove file.
22982
22983 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22984 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22985 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22986 checks for internal pthread_mutex_t offsets.
22987 * sysdeps/aarch64/nptl/pthread-offsets.h
22988 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22989 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22990 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22991 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22992 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22993 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22994 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22995 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22996 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22997 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22998 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22999 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23000 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23001 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23002 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23003 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23004 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23005 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23006
23007 2017-11-07 Florian Weimer <fweimer@redhat.com>
23008
23009 * bits/mman-linux.h: Move ...
23010 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23011 comment.
23012 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23013 outdated comment.
23014
23015 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23016
23017 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23018 Redefine STRNLEN as __strnlen_power8.
23019
23020 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23021
23022 * signal/sighold.c (sighold): Optimize implementation.
23023
23024 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23025 __NR_rt_sigqueueinfo.
23026
23027 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23028 __sigtimedwait.
23029 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23030 assume __NR_rt_sigtimedwait.
23031 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23032 and add LIBC_CANCEL_HANDLED for cancellation marking.
23033 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23034
23035 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23036 (sysdeps_routines): Add memchr_noneon.
23037 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23038 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23039 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23040 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23041 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23042 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23043 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23044
23045 * sysdeps/arm/arm-ifunc.h: New file.
23046 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23047 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23048 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23049 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23050 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23051 (__memcpy_neon): Avoid create hidden alias.
23052 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23053 (__memcpy_vfp): Likewise.
23054 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23055 (sysdep_routines): Add memcpy_arm.
23056 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23057
23058 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23059
23060 [BZ #22362]
23061 * Makerules (make-link-multidir): New.
23062 * config.make.in (multidir): New.
23063 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23064 * configure: Regenerated.
23065 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23066 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23067 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23068 New target.
23069
23070 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23071
23072 [BZ #22402]
23073 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23074 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23075
23076 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23077
23078 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23079 to be escaped.
23080
23081 2017-11-04 Florian Weimer <fweimer@redhat.com>
23082
23083 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23084
23085 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23086
23087 * math/math.h [__HAVE_DISTINCT_FLOAT16
23088 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23089 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23090 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23091 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23092 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23093 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23094 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23095 (__MATH_TG_F32): New macro.
23096 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23097 (__MATH_TG_F64X): Likewise.
23098 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23099 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23100
23101 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23102
23103 * po/de.po: Update translations.
23104 * po/ru.po: Likewise.
23105
23106 2017-11-03 Florian Weimer <fweimer@redhat.com>
23107
23108 * manual/filesys.texi (Hard Links): Document linkat.
23109
23110 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23111
23112 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23113 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23114 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23115 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23116 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23117 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23118 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23119 the same as _Float128.
23120 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23121 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23122 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23123
23124 * stdlib/stdlib.h
23125 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23126 Declare.
23127 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23128 Likewise.
23129 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23130 Likewise.
23131 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23132 (strtof32x): Likewise.
23133 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23134 (strtof64x): Likewise.
23135 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23136 (strtof128x): Likewise.
23137 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23138 (strfromf16): Likewise.
23139 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23140 (strfromf32): Likewise.
23141 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23142 (strfromf64): Likewise.
23143 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23144 (strfromf32x): Likewise.
23145 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23146 (strfromf64x): Likewise.
23147 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23148 (strfromf128x): Likewise.
23149 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23150 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23151 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23152 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23153 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23154 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23155
23156 2017-11-03 Richard Henderson <rth@twiddle.net>
23157
23158 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23159
23160 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23161
23162 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23163
23164 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23165
23166 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23167 DT_TLSDESC_GOT initialization.
23168 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23169 (_dl_tlsdesc_resolve_hold): Likewise.
23170 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23171 (_dl_tlsdesc_resolve_hold): Likewise.
23172 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23173 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23174
23175 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23176
23177 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23178
23179 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23180
23181 [BZ #18572]
23182 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23183 non-lazily for R_ARM_TLS_DESC.
23184
23185 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23186
23187 [BZ #17078]
23188 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23189 R_ARM_TLS_DESC case.
23190 (elf_machine_lazy_rel): Remove the prelink check.
23191
23192 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23193
23194 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23195 DT_TLSDESC_GOT initialization.
23196 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23197 (_dl_tlsdesc_resolve_rela): Likewise.
23198 (_dl_tlsdesc_resolve_hold): Likewise.
23199 (_dl_tlsdesc_undefweak): Remove ldar.
23200 (_dl_tlsdesc_dynamic): Likewise.
23201 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23202 (_dl_tlsdesc_resolve_rela): Likewise.
23203 (_dl_tlsdesc_resolve_hold): Likewise.
23204 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23205 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23206 (_dl_tlsdesc_resolve_rela): Likewise.
23207 (_dl_tlsdesc_resolve_hold): Likewise.
23208
23209 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23210
23211 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23212 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23213
23214 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23215
23216 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23217 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23218
23219 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23220
23221 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23222 Declare.
23223 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23224 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23225 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23226 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23227 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23228 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23229 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23230 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23231 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23232 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23233 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23234
23235 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23236
23237 [BZ #22382]
23238 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23239 * localedata/locales/tpi_PG: Add standard header.
23240
23241 2017-11-02 Florian Weimer <fweimer@redhat.com>
23242
23243 test-errno-linux: quotactl can fail with EPERM in containers.
23244 * sysdeps/unix/sysv/linux/test-errno-linux.c
23245 (LIST, LIST_FORWARD): New macros.
23246 (check_error_in_list): New function.
23247 (test_wrp_rv): Accept list of permitted error codes.
23248 (test_wrp_rv2): Remove.
23249 (test_wrp): Call test_wrp_rv with list of error codes.
23250 (test_wrp2): Accept list of error codes.
23251 (do_test): Adjust. Allow EPERM for quotactl.
23252
23253 2017-11-02 Florian Weimer <fweimer@redhat.com>
23254
23255 * stdio-common/bug16.c (do_test): Use array_length.
23256 * stdio-common/errlist.c (_sys_nerr): Likewise.
23257 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23258 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23259 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23260 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23261 (do_test): Use array_length.
23262 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23263 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23264 * stdio-common/tst-printf-round.c (do_test): Likewise.
23265 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23266 (CHECK): Use array_length.
23267 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23268 * stdio-common/tstscanf.c (main): Likewise.
23269 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23270
23271 2017-11-02 Florian Weimer <fweimer@redhat.com>
23272
23273 Add array_length and array_end macros.
23274 * include/array_length.h: New file.
23275
23276 2017-11-02 Florian Weimer <fweimer@redhat.com>
23277
23278 [BZ #22332]
23279 * posix/tst-glob-tilde.c (do_noescape): New variable.
23280 (one_test): Process it.
23281 (do_test): Set do_noescape. Add unescaping test case.
23282
23283 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23284
23285 * math/complex.h
23286 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23287 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23288 with appropriate macros defined and undefined.
23289 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23290 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23291 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23292 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23293 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23294 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23295 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23296 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23297 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23298 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23299
23300 * math/complex.h
23301 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23302 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23303 that for long double. Do not condition define and undefine of
23304 _Mdouble_complex_ on [__CFLOAT128].
23305
23306 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23307
23308 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23309 of <sysdeps/generic/sysdep.h>.
23310 (ALIGNARG): Removed.
23311 (ASM_SIZE_DIRECTIVE): Likewise.
23312 (ENTRY): Likewise.
23313 (END): Likewise.
23314 (ENTRY_CHK): Likewise.
23315 (END_CHK): Likewise.
23316 (syscall_error): Likewise.
23317 (mcount): Likewise.
23318 (PSEUDO_END): Likewise.
23319 (L): Likewise.
23320 (atom_text_section): Likewise.
23321 * sysdeps/x86/sysdep.h: New file.
23322 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23323 of <sysdeps/generic/sysdep.h>.
23324 (ALIGNARG): Removed.
23325 (ASM_SIZE_DIRECTIVE): Likewise.
23326 (ENTRY): Likewise.
23327 (END): Likewise.
23328 (ENTRY_CHK): Likewise.
23329 (END_CHK): Likewise.
23330 (syscall_error): Likewise.
23331 (mcount): Likewise.
23332 (PSEUDO_END): Likewise.
23333 (L): Likewise.
23334 (atom_text_section): Likewise.
23335
23336 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23337
23338 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23339 category of LC_CTYPE set to "i18n:2012".
23340 * localedata/locales/i18n_ctype: Regenerate.
23341
23342 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23343
23344 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23345 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23346 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23347 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23348
23349 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23350 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23351 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23352 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23353
23354 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23355
23356 * math/complex.h
23357 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23358 New macro.
23359 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23360 Likewise.
23361 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23362 Likewise.
23363 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23364 (CMPLXF32X): Likewise.
23365 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23366 (CMPLXF64X): Likewise.
23367 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23368 (CMPLXF128X): Likewise.
23369
23370 * math/math.h
23371 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23372 (__MATH_EVAL_FMT2): Define to add 0.0f.
23373
23374 2017-10-31 Alan Modra <amodra@gmail.com>
23375
23376 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23377 include sysdep.h.
23378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23392 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23393 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23394 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23395 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23396 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23397 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23398 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23399 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23400 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23401 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23402 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23403 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23404 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23405 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23406 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23407 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23408 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23409 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23410 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23411 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23412 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23413 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23414 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23415 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23416 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23417 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23418 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23419 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23420 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23421 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23422 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23423 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23424 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23425 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23426 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23427 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23428 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23429 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23430 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23431 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23432 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23433 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23434 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23435 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23436 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23437 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23438 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23439 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23440 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23441 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23442 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23443 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23444 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23445 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23446 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23447
23448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23449 include sysdep.h and math_ldbl_opt.h.
23450
23451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23452 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23477
23478 2017-10-31 Alan Modra <amodra@gmail.com>
23479
23480 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23481 string/strncase_l.c, not string/strncase.c.
23482 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23483 (libc_hidden_def): Redefine.
23484
23485 2017-10-31 Alan Modra <amodra@gmail.com>
23486
23487 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23488 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23489 (__strcasecmp): Don't define.
23490
23491 2017-10-31 Alan Modra <amodra@gmail.com>
23492
23493 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23494 IS_IN (libc).
23495 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23496 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23497 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23498
23499 2017-10-31 Alan Modra <amodra@gmail.com>
23500
23501 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23502 USE_AS_STPNCPY.
23503
23504 2017-10-31 Alan Modra <amodra@gmail.com>
23505
23506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23507 Redefine only when SHARED.
23508
23509 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23510
23511 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23512 Include <bits/math-finite.h> with appropriate macros defined and
23513 undefined.
23514 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23515 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23516 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23517 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23518 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23519
23520 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23521 [!_Mlong_double_] (_Mlong_double_): Likewise.
23522 [!_Mfloat16_] (_Mfloat16_): Likewise.
23523 [!_Mfloat32_] (_Mfloat32_): Likewise.
23524 [!_Mfloat64_] (_Mfloat64_): Likewise.
23525 [!_Mfloat128_] (_Mfloat128_): Likewise.
23526 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23527 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23528 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23529 (_Mdouble_): Define without indirection through those macros.
23530 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23531 [!_Mfloat128_] (_Mfloat128_): Likewise.
23532 [_Mlong_double_] (_Mlong_double_): Likewise.
23533 (_Mdouble_): Define without indirection through those macros.
23534 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23535 not add -D_Mlong_double_=double.
23536 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23537 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23538
23539 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23540
23541 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23542
23543 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23544
23545 * sysdeps/x86/libc-start.c: Reformat.
23546
23547 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23548
23549 [BZ #22353]
23550 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23551 (1): Renamed to ...
23552 (L(Src0)): This.
23553 (L(Src1)): New.
23554 (L(Src2)): Likewise.
23555 (L(1)): Renamed to ...
23556 (L(Src3)): This.
23557
23558 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23559
23560 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23561 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23562 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23563 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23564 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23565 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23566 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23567 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23568 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23569 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23570 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23571 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23572 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23573 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23574 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23575 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23576 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23577 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23578 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23579 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23580 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23581 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23582 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23583 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23584 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23585 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23586 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23587 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23588 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23589 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23590 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23591 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23592 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23593 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23594 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23595 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23596 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23597 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23598 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23599 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23600 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23601 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23602 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23603 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23604 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23605 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23606 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23607 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23608 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23609 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23610 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23611 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23612 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23613 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23614 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23615 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23616 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23617 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23618 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23619 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23620 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23621 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23622 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23623 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23624 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23625 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23626
23627 2017-10-30 Florian Weimer <fweimer@redhat.com>
23628
23629 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23630 always defined.
23631 * io/tst-mkdirat.c (do_test): Likewise.
23632 * io/tst-mkfifoat.c (do_test): Likewise.
23633 * io/tst-mknodat.c (do_test): Likewise.
23634 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23635 * locale/programs/locale.c (select_dirs): Likewise.
23636 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23637 * posix/bug-glob2.c (my_readdir): Likewise.
23638 * posix/tst-dir.c (main): Likewise.
23639 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23640 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23641
23642 2017-10-30 Florian Weimer <fweimer@redhat.com>
23643
23644 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23645 just __USE_GNU.
23646
23647 2017-10-30 Florian Weimer <fweimer@redhat.com>
23648
23649 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23650 Convert to support/test-driver.c.
23651 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23652 New macro parameters.
23653 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23654 * posix/tst-gnuglob.c: New file.
23655 * posix/tst-gnuglob64.c: Likewise.
23656 * posix/Makefile (tests): Add tst-gnuglob64.
23657
23658 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23659
23660 [BZ #19485]
23661 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23662 and use a better translation for March in “mon”.
23663 * localedata/locales/csb_PL: Use more ASCII to improve the
23664 readability of the source.
23665
23666 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23667
23668 [BZ #13953]
23669 * localedata/locales/km_KH: Use ASCII as much
23670 as possible for better readability of the source and
23671 remove useless comments.
23672 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23673 was commented out and apparently wrong anyway because it was
23674 using Lao characters. If Buddhist era should be used
23675 for km_KH, a native speaker should write the correct formaat
23676 for Khmer.
23677 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23678 (According to CLDR, the first weekday for Cambodia is Sunday).
23679 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23680 (These were using Lao characters which must be wrong. If we get
23681 the correct data from a native speaker, we could add it back, until
23682 then it is better not to have name_mr and name_mrs at all than
23683 having it wrong).
23684
23685 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23686
23687 * locale/loadlocale.c: Correct size of
23688 _nl_value_type_LC_<category> arrays.
23689
23690 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23691
23692 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23693 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23694 with appropriate macros defined and undefined.
23695 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23696 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23697 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23698 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23699 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23700
23701 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23702
23703 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23704 "-O2 -march=i586".
23705
23706 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23707
23708 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23709 with lowercase letters to make it agree with CLDR.
23710
23711 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23712
23713 [BZ #15260]
23714 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23715 first letters of yesstr and nostr in yesexpr and noexpr,
23716 not for the full words.
23717 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23718 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23719 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23720 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23721 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23722 first letters of yesstr and nostr in yesexpr and noexpr,
23723 until now only English was matched in yesexpr and noexpr.
23724 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23725 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23726 fil but not for tl. As tl and fil are very similar, using fil
23727 is probably better than using English.
23728
23729 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23730
23731 [BZ #21706]
23732 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23733 in yesstr and nostr.
23734
23735 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23736
23737 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23738 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23739 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23740 Likewise.
23741 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23742 Likewise.
23743 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23744 Likewise.
23745 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23746 Likewise.
23747 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23748 (SNANF128X): Likewise.
23749
23750 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23751 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23752 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23753 (HUGE_VAL_F32): Likewise.
23754 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23755 (HUGE_VAL_F64): Likewise.
23756 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23757 (HUGE_VAL_F32X): Likewise.
23758 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23759 (HUGE_VAL_F64X): Likewise.
23760 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23761 (HUGE_VAL_F128X): Likewise.
23762
23763 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23764
23765 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23766 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23767 for the br_FR locale.
23768
23769 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23770
23771 [BZ #21706]
23772 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23773
23774 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23775
23776 * locale/programs/record-status.h: Define globals, and function
23777 prototypes. Move function bodies...
23778 * locale/programs/record-status.c: ... to here. New file.
23779 * iconv/Makefile (iconv_prog-modules): Add record-status.
23780 * locale/Makefile (lib-modules): Likewise.
23781 * iconv/iconv_prog.c: Remove verbose.
23782 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23783 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23784 record a warning about ASCII compatibility.
23785 * locale/programs/ld-monetary.c (monetary_finish): If
23786 warn_int_curr_symbol is true then record a warning about the symbol
23787 not being in our ISO 4217 list.
23788 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23789 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23790 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23791 (OPT_NO_WARN): Define.
23792 (OPT_WARN): Define.
23793 (options): Add entry for --no-warnings, and --warnings.
23794 (set_warnings): New function to enable/disable warnings.
23795 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23796 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23797 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23798 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23799 Pass flags to generate_locale.
23800 (generate_locale): Accept new flag argument and pass it to localedef
23801 invocation.
23802 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23803 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23804
23805 * localedata/Makefile (test-input-data): Use full file name.
23806 * localedata/da_DK.in: Rename to...
23807 * localedata/da_DK.ISO-8859-1.in: ...this.
23808 * localedata/de_DE.in: Rename to...
23809 * localedata/de_DE.ISO-8859-1.in: ...this.
23810 * localedata/en_US.in: Rename to...
23811 * localedata/en_US.ISO-8859-1.in: ...this.
23812 * localedata/fr_FR.in: Rename to...
23813 * localedata/fr_FR.UTF-8.in: ... this.
23814 * localedata/hr_HR.in: Rename to...
23815 * localedata/hr_HR.ISO-8859-2.in: ...this.
23816 * localedata/hu_HU.in: Rename to...
23817 * localedata/hu_HU.UTF-8.in: ...this.
23818 * localedata/si_LK.in: Rename to...
23819 * localedata/si_LK.UTF-8.in: ...this.
23820 * localedata/sv_SE.in: Rename to...
23821 * localedata/sv_SE.ISO-8859-1.in: ...this.
23822 * localedata/tr_TR.in: Rename to...
23823 * localedata/tr_TR.UTF-8.in: ...this.
23824 * localedata/uk_UA.in: Rename to...
23825 * localedata/uk_UA.UTF-8.in: ...this.
23826 * localedata/sort-test.sh: Test file is locale name with the
23827 suffix.
23828
23829 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23830 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23831 file.
23832 * localedata/locales/i18n_ctype: Regenerate.
23833 * localedata/locales/tr_TR: Likewise.
23834 * localedata/locales/translit_circle: Likewise.
23835 * localedata/locales/translit_cjk_compat: Likewise.
23836 * localedata/locales/translit_combining: Likewise.
23837 * localedata/locales/translit_compat: Likewise.
23838 * localedata/locales/translit_font: Likewise.
23839 * localedata/locales/translit_fraction: Likewise.
23840
23841 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23842
23843 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23844 lxvd2x/stxvd2x with lvx/stvx.
23845 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23846
23847 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23848
23849 * include/alloc_buffer.h: Replace "if if " with "if " in
23850 comments.
23851 * sysdeps/mips/memcpy.S: Likkewise.
23852 * sysdeps/mips/memset.S: Likewise.
23853 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23854 Likewise.
23855 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23856 Likewise.
23857 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23858 Likewise.
23859
23860 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23861
23862 [BZ #15261]
23863 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23864 yesexpr and noexpr.
23865 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23866 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23867 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23868 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23869 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23870 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23871 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23872
23873 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23874
23875 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23876 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23877 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23878 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23879 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23880 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23881 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23882 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23883 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23884 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23885 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23886 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23887
23888 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23889
23890 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23891 as possible for better readability of the source.
23892 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23893 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23894 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23895 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23896 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23897 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23898 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23899 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23900 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23901 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23902 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23903 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23904 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23905 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23906 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23907 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23908 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23909 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23910 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23911 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23912 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23913 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23914 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23915 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23916 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23917 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23918 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23919 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23920 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23921 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23922 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23923 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23924 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23925 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23926 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23927 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23928 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23929 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23930 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23931 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23932 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23933 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23934 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23935 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23936 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23937 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23938 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23939 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23940 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23941 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23942 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23943 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23944 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23945 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23946 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23947 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23948 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23949 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23950 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23951 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23952 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23953 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23954 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23955 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23956 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23957 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23958 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23959 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23960 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23961 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23962 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23963 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23964 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23965 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23966 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23967 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23968 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23969 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23970 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23971 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23972 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23973 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23974 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23975 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23976 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23977 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23978 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23979 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23980 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23981 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23982 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23983 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23984 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23985 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23986 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23987 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23988 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23989 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23990 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23991 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23992 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23993 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23994 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23995 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23996 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23997 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23998 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23999 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24000 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24001 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24002 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24003 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24004 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24005 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24006 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24007 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24008 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24009 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24010 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24011 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24012 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24013 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24014 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24015 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24016 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24017 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24018 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24019 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24020 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24021 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24022 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24023 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24024 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24025 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24026 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24027 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24028 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24029 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24030 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24031 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24032 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24033 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24034 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24035 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24036 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24037 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24038 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24039 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24040 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24041 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24042 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24043 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24044 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24045 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24046 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24047 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24048 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24049 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24050 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24051 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24052 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24053 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24054 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24055 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24056 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24057 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24058 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24059 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24060 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24061 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24062 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24063 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24064 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24065 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24066
24067 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24068
24069 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24070 (Use first letters of yesstr and nostr correctly instead of using
24071 full words).
24072
24073 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24074
24075 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24076 (Use first letters of yesstr and nostr correctly).
24077
24078 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24079
24080 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24081 also check for the first characters of yesstr and nostr.
24082 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24083 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24084
24085 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24086
24087 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24088 also check for Chinese characters.
24089
24090 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24091
24092 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24093 match also for the contents of yesstr and nostr. As the first letter
24094 of yesstr and nostr is equal, checking only for the first letter
24095 is not enough.
24096
24097 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24098
24099 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24100 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24101
24102 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24103
24104 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24105 of main contributor.
24106
24107 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24108
24109 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24110 instead of using English.
24111
24112 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24113
24114 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24115 by including the first letters of nostr and yesexpr in the regexp.
24116 Also make it more readable by using ASCII where possible.
24117
24118 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24119
24120 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24121 the first letter of nostr in the regexp. It agrees with CLDR now.
24122 Also make it more readable by using ASCII where possible.
24123
24124 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24125
24126 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24127 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24128 these strings contain a U+17D6 (which somewhat looks like a colon)
24129 instead of a real colon to separate the full words for “yes”
24130 and “no” from the single letter responses.
24131
24132 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24133
24134 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24135 it agree with CLDR (include the first letter of yesstr).
24136 Also make it more readable by using ASCII where possible.
24137
24138 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24139
24140 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24141 and improve yesexpr and noexpr. The yesstr and nostr apparently
24142 came from CLDR. And CLDR has a bug there: these strings contain
24143 a U+0903 (which looks like a colon) instead of a real colon
24144 to separate the full words for “yes” and “no” from the single
24145 letter responses.
24146
24147 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24148
24149 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24150 letters of the full yesstr and nostr in yesexpr and noexpr.
24151
24152 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24153
24154 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24155 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24156 * localedata/locales/an_ES: Make source more readable by using ASCII
24157 where possible.
24158
24159 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24160
24161 [BZ #20952]
24162 * localedata/locales/yuw_PG: New file.
24163 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24164 * locale/iso-639.def: Add Yau (Uruwa).
24165
24166 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24167
24168 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24169
24170 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24171
24172 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24173 (__libc_realloc): Likewise.
24174 (_mid_memalign): Likewise.
24175 (__libc_calloc): Likewise.
24176
24177 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24178
24179 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24180 by adding the generic +1 and -0 as in all other locales.
24181 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24182 day names and make it more readable by using ASCII where possible.
24183
24184 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24185
24186 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24187 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24188
24189 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24190
24191 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24192 WNOHANG in waitpid call.
24193
24194 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24195
24196 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24197 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24198
24199 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24200 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24201 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24202 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24203 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24204 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24205 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24206 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24207 variables.
24208
24209 2017-10-23 Michael Collison <michael.collison@arm.com>
24210
24211 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24212 with __builtin_sqrt.
24213 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24214 with __builtin_sqrtf.
24215 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24216 with __builtin_ceil.
24217 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24218 with __builtin_ceilf.
24219 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24220 with __builtin_floor.
24221 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24222 with __builtin_floorf.
24223 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24224 with __builtin_fma.
24225 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24226 with __builtin_fmaf.
24227 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24228 with __builtin_fmax.
24229 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24230 with __builtin_fmaxf.
24231 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24232 with __builtin_fmin.
24233 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24234 with __builtin_fminf.
24235 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24236 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24237 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24238 with builtin_rint and conversion to int.
24239 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24240 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24241 with builtin_llround.
24242 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24243 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24244 with builtin_rint and conversion to long int.
24245 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24246 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24247 with builtin_lround.
24248 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24249 with builtin_lroundf.
24250 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24251 statements with __builtin_nearbyint.
24252 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24253 statements with __builtin_nearbyintf.
24254 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24255 with __builtin_rint.
24256 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24257 with __builtin_rintf.
24258 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24259 with __builtin_round.
24260 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24261 with __builtin_roundf.
24262 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24263 with __builtin_trunc.
24264 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24265 with __builtin_truncf.
24266 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24267 and s_l[l]round[f].c too.
24268
24269 2017-10-23 Alan Modra <amodra@gmail.com>
24270
24271 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24272 Adjust stack after restoring regs. Add missing LR cfi_restore.
24273
24274 2017-10-23 Alan Modra <amodra@gmail.com>
24275
24276 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24277 Move LR save and frame setup/teardown and LR restore to
24278 immediately around memset call. Provide cfi.
24279
24280 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24281
24282 * sysdeps/i386/fpu/e_powf.S: Removed.
24283 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24284 * sysdeps/i386/fpu/w_powf.c: Likewise.
24285 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24286 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24287 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24288 Add e_powf-sse2.
24289 (CFLAGS-e_powf-sse2.c): New.
24290 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24291 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24292
24293 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24294
24295 * sysdeps/i386/fpu/e_log2f.S: Removed.
24296 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24297 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24298 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24299 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24300 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24301 Add e_log2f-sse2.
24302 (CFLAGS-e_log2f-sse2.c): New.
24303 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24304 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24305
24306 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24307
24308 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24309 Add e_powf-fma.
24310 (CFLAGS-e_powf-fma.c): New.
24311 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24312 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24313
24314 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24315
24316 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24317 Add e_log2f-fma.
24318 (CFLAGS-e_log2f-fma.c): New.
24319 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24320 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24321
24322 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24323
24324 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24325 Add e_logf-fma.
24326 (CFLAGS-e_logf-fma.c): New.
24327 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24328 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24329
24330 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24331
24332 * sysdeps/i386/fpu/e_logf.S: Removed.
24333 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24334 * sysdeps/i386/fpu/w_logf.c: Likewise.
24335 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24336 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24337 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24338 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24339 Add e_logf-sse2.
24340 (CFLAGS-e_logf-sse2.c): New.
24341 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24342 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24343
24344 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24345
24346 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24347 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24348 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24349 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24350 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24351 Add e_exp2f-sse2.
24352 (CFLAGS-e_exp2f-sse2.c): New.
24353 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24354 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24355
24356 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24357
24358 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24359 Add e_exp2f-fma.
24360 (CFLAGS-e_exp2f-fma.c): New.
24361 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24362 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24363
24364 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24365
24366 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24367 * sysdeps/i386/fpu/e_expf.S: Likewise.
24368 * sysdeps/i386/fpu/math_errf.c: Likewise.
24369 * sysdeps/i386/fpu/w_expf.c: Likewise.
24370 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24371 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24372 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24373 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24374 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24375 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24376 Remove e_expf-ia32.
24377 (CFLAGS-e_expf-sse2.c): New.
24378 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24379 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24380
24381 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24382
24383 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24384 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24385 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24386 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24387 e_expf.c.
24388 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24389 New.
24390 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24391 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24392 Renamed to ...
24393 (__redirect_expf): This.
24394 (SYMBOL_NAME): Changed to expf.
24395 (__ieee754_expf): Renamed to ...
24396 (__expf): This.
24397 (__GI___expf): This.
24398 (__ieee754_expf): Add strong_alias.
24399 (__expf_finite): Likewise.
24400 (__expf): New.
24401 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24402
24403 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24404
24405 [BZ #22332]
24406 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24407 unescaping.
24408
24409 2017-10-21 Florian Weimer <fweimer@redhat.com>
24410
24411 * posix/Makefile (tests): Add tst-glob-tilde.
24412 (tests-special): Add tst-glob-tilde-mem.out
24413 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24414 (tst-glob-tilde-mem.out): Add mtrace check.
24415 * posix/tst-glob-tilde.c: New file.
24416
24417 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24418
24419 * bits/floatn-common.h: New file.
24420 * math/Makefile (headers): Add bits/floatn-common.h.
24421 * bits/floatn.h: Include <bits/floatn-common.h>.
24422 * sysdeps/ia64/bits/floatn.h: Likewise.
24423 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24424 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24425 * sysdeps/powerpc/bits/floatn.h: Likewise.
24426 * sysdeps/x86/bits/floatn.h: Likewise.
24427
24428 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24429
24430 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24431 indicates whether compiler emits an warning for alias for
24432 functions with incompatible types.
24433
24434 [BZ #22273]
24435 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24436 the auxiliary process is terminated by a signal before calling _exit
24437 or execve.
24438
24439 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24440
24441 [BZ #21265]
24442 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24443 New.
24444 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24445 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24446 and bit_arch_XSAVEC_Usable if needed.
24447 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24448 and bit_arch_Use_dl_runtime_resolve_opt.
24449 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24450 Removed.
24451 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24452 (bit_arch_Prefer_No_AVX512): Updated.
24453 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24454 (bit_arch_XSAVEC_Usable): New.
24455 (STATE_SAVE_OFFSET): Likewise.
24456 (STATE_SAVE_MASK): Likewise.
24457 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24458 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24459 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24460 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24461 (index_arch_XSAVEC_Usable): New.
24462 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24463 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24464 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24465 is enabled.
24466 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24467 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24468 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24469 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24470 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24471 _dl_runtime_resolve_xsavec.
24472 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24473 Removed.
24474 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24475 instead of VEC_SIZE.
24476 (REGISTER_SAVE_BND0): Removed.
24477 (REGISTER_SAVE_BND1): Likewise.
24478 (REGISTER_SAVE_BND3): Likewise.
24479 (REGISTER_SAVE_RAX): Always defined to 0.
24480 (VMOV): Removed.
24481 (_dl_runtime_resolve_avx): Likewise.
24482 (_dl_runtime_resolve_avx_slow): Likewise.
24483 (_dl_runtime_resolve_avx_opt): Likewise.
24484 (_dl_runtime_resolve_avx512): Likewise.
24485 (_dl_runtime_resolve_avx512_opt): Likewise.
24486 (_dl_runtime_resolve_sse): Likewise.
24487 (_dl_runtime_resolve_sse_vex): Likewise.
24488 (USE_FXSAVE): New.
24489 (_dl_runtime_resolve_fxsave): Likewise.
24490 (USE_XSAVE): Likewise.
24491 (_dl_runtime_resolve_xsave): Likewise.
24492 (USE_XSAVEC): Likewise.
24493 (_dl_runtime_resolve_xsavec): Likewise.
24494 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24495 Removed.
24496 (_dl_runtime_resolve_avx512_opt): Likewise.
24497 (_dl_runtime_resolve_avx): Likewise.
24498 (_dl_runtime_resolve_avx_opt): Likewise.
24499 (_dl_runtime_resolve_sse): Likewise.
24500 (_dl_runtime_resolve_sse_vex): Likewise.
24501 (_dl_runtime_resolve_fxsave): New.
24502 (_dl_runtime_resolve_xsave): Likewise.
24503 (_dl_runtime_resolve_xsavec): Likewise.
24504
24505 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24506
24507 [BZ #22320]
24508 CVE-2017-15670
24509 * posix/glob.c (__glob): Fix one-byte overflow.
24510
24511 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24512
24513 * malloc/malloc.c (sysdep-cancel.h): Add include.
24514
24515 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24516
24517 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24518
24519 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24520
24521 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24522 (tests): Remove $(objpfx)ga_test depdendency.
24523 * resolv/ga_test.c: Remove file.
24524
24525 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24526
24527 [BZ #18812]
24528 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24529 * localedata/locales/kab_DZ: New file.
24530
24531 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24532
24533 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24534 _dl_relocate_static_pie instead of _dl_start to compute load
24535 address in static PIE.
24536
24537 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24538
24539 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24540
24541 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24542
24543 [BZ #13605]
24544 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24545 * localedata/locales/shn_MM: New file.
24546
24547 2017-10-20 Florian Weimer <fweimer@redhat.com>
24548
24549 [BZ #22321]
24550 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24551 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24552 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24553 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24554 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24555 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24556
24557 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24558
24559 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24560
24561 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24562
24563 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24564
24565 [BZ #22322]
24566 * sysdeps/mips/bits/long-double.h: Move to ....
24567 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24568
24569 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24570
24571 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24572
24573 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24574 H.J. Lu <hongjiu.lu@intel.com>
24575
24576 [BZ #22299]
24577 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24578 GLRO(dl_platform) to NULL.
24579 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24580 (modules-names): Add tst-platformmod-1 and
24581 x86_64/tst-platformmod-2.
24582 (CFLAGS-tst-platform-1.c): New.
24583 (CFLAGS-tst-platformmod-1.c): Likewise.
24584 (CFLAGS-tst-platformmod-2.c): Likewise.
24585 (LDFLAGS-tst-platformmod-2.so): Likewise.
24586 ($(objpfx)tst-platform-1): Likewise.
24587 ($(objpfx)tst-platform-1.out): Likewise.
24588 (tst-platform-1-ENV): Likewise.
24589 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24590 * sysdeps/x86_64/tst-platform-1.c: New file.
24591 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24592 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24593
24594 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24595
24596 [BZ #13994]
24597 * locale/iso-639.def: Add Karbi.
24598 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24599 * localedata/locales/mjw_IN: New file.
24600
24601 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24602
24603 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24604 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24605 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24606 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24607 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24608 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24609 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24610 <bits/floatn.h>.
24611 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24612 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24613 * manual/math.texi (Mathematics): Document additional architecture
24614 support for _Float128.
24615 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24616 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24617 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24618 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24619 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24620 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24621 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24622 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24623 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24624 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24625 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24626 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24627 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24628 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24629 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24630
24631 2017-10-18 Renlin Li <renlin.li@arm.com>
24632
24633 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24634 _DYNAMIC symbol to calculate load address.
24635
24636 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24637
24638 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24639 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24640 summary bits.
24641 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24642 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24643
24644 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24645
24646 [BZ #16777]
24647 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24648 and improve readability by using more ASCII.
24649 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24650 and improve readability by using more ASCII.
24651
24652 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24653
24654 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24655 not all targets support atomics on bool.
24656
24657 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24658
24659 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24660 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24661 __f128.
24662 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24663 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24664 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24665 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24666 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24667 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24668
24669 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24670
24671 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24672 defines.
24673
24674 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24675
24676 [BZ #22159]
24677 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24678 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24679 (do_check_remalloced_chunk): Fix build bug.
24680 (do_check_malloc_state): Add assert that checks arena->top.
24681 (malloc_consolidate): Remove initialization.
24682 (int_mallinfo): Remove call to malloc_consolidate.
24683 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24684
24685 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24686
24687 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24688 (have_fastchunks): Remove.
24689 (clear_fastchunks): Remove.
24690 (set_fastchunks): Remove.
24691 (malloc_state): Add have_fastchunks.
24692 (malloc_init_state): Use have_fastchunks.
24693 (do_check_malloc_state): Remove incorrect invariant checks.
24694 (_int_malloc): Use have_fastchunks.
24695 (_int_free): Likewise.
24696 (malloc_consolidate): Likewise.
24697
24698 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24699
24700 * malloc/malloc.c (tcache_put): Inline.
24701 (tcache_get): Inline.
24702
24703 2017-10-17 Jordi Mallach <jordi@gnu.org>
24704
24705 Aurelien Jarno <aurelien@aurel32.net>
24706 [BZ #2522]
24707 * localedata/locales/ca_ES@valencia: New file.
24708 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24709
24710 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24711
24712 [BZ #22296]
24713 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24714 < 6.x
24715
24716 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24717
24718 * scripts/build-many-glibcs.py (Context.add_all_configs):
24719 Add arm-linux-gnueabihf multiarch extra_glibcs.
24720
24721 * sysdeps/generic/ifunc-init.h: New file.
24722 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24723
24724 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24725
24726 [BZ #22019]
24727 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24728 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24729 * stdlib/tst-strfmon_l.c: adapt test case.
24730
24731 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24732
24733 * sysdeps/generic/float128-abi.h: New file.
24734 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24735 non-__prefixed symbols to ....
24736 * math/Versions: ... here. Include <float128-abi.h>.
24737 * stdlib/Versions ... and here. Include <float128-abi.h>
24738
24739 2017-10-16 Florian Weimer <fweimer@redhat.com>
24740
24741 * version.h (VERSION): Switch to ".9000" as the development
24742 version suffix.
24743
24744 2017-10-16 Florian Weimer <fweimer@redhat.com>
24745
24746 [BZ #22050]
24747 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24748 compat_symbol_reference to access non-default version.
24749
24750 2017-10-16 Florian Weimer <fweimer@redhat.com>
24751
24752 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24753
24754 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24755
24756 * include/shlib-compat.h (compat_symbol_reference): Update
24757 comment.
24758
24759 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24760
24761 * math/Makefile (test-types): Add
24762 $(type-float128-$(float128-alias-fcts)).
24763 * math/test-float128.h (TYPE_STR): Define conditional on
24764 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24765 (ULP_IDX): Likewise.
24766 (ULP_I_IDX): Likewise.
24767
24768 * stdlib/strtold.c: Include <bits/floatn.h>
24769 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24770 and later undefine as macro. Define as weak alias if
24771 [!USE_WIDE_CHAR].
24772 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24773 and later undefine as macro. Define as weak alias if
24774 [USE_WIDE_CHAR].
24775 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24776 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24777 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24778 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24779 Define and later undefine as macro. Define as weak alias if
24780 [USE_WIDE_CHAR].
24781 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24782 <bits/floatn.h>.
24783 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24784 Define and later undefine as macro. Define as weak alias if
24785 [!USE_WIDE_CHAR].
24786 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24787 Define and later undefine as macro. Define as weak alias if
24788 [USE_WIDE_CHAR].
24789
24790 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24791
24792 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24793 record_verbose messages.
24794
24795 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24796
24797 [BZ #22052]
24798 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24799 to silence -O3 -Wall warning with GCC 7.
24800
24801 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24802
24803 * Makeconfig (+link-static-before-libc): Use the first of
24804 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24805 * gmon/Makefile (tests): Add tst-gmon-static.
24806 (tests-static): Likewise.
24807 (CFLAGS-tst-gmon-static.c): New.
24808 (CRT-tst-gmon-static): Likewise.
24809 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24810 (tst-gmon-static-ENV): Likewise.
24811 (tests-special): Likewise.
24812 ($(objpfx)tst-gmon-static.out): Likewise.
24813 (clean-tst-gmon-static-data): Likewise.
24814 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24815 * gmon/tst-gmon-static-gprof.sh: New file.
24816 * gmon/tst-gmon-static.c: Likewise.
24817
24818 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24819
24820 [BZ #22295]
24821 * locale/programs/linereader.c (get_string): Don't warn on
24822 non-symbolic character.
24823
24824 [BZ #22294]
24825 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24826 int_curr_symbol.
24827
24828 [BZ #22292]
24829 * locale/programs/record-status.h: New file
24830 * locale/programs/locale.c: Add comment.
24831 * locale/programs/charmap-dir.c: Don't include error.h.
24832 (charmap_opendir): Use record_error.
24833 * locale/programs/charmap.c: Don't include error.h.
24834 (charmap_read): Use record_error, and record_warning.
24835 (parse_charmap): Likewise.
24836 * locale/programs/ld-address.c: Don't include error.h.
24837 (address_finish): Use record_error, and record_warning.
24838 * locale/programs/ld-collate.c: Don't include error.h.
24839 (collate_finish): Use record_error, and record_error_at_line.
24840 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24841 (ctype_class_new): Likewise.
24842 (ctype_map_new): Likewise.
24843 (set_one_default): Likewise.
24844 (set_class_defaults): Likewise.
24845 (translit_flatten): Likewise.
24846 (allocate_arrays): Use record_error, and record_verbose.
24847 * locale/programs/ld-identification.c: Don't include error.h.
24848 (indentation_finish): Use record_error and record_warning.
24849 * locale/programs/ld-measurement.c: Don't include error.h.
24850 (measurement_finish): Use record_error.
24851 * locale/programs/ld-messages.c
24852 (message_finish): Likewise.
24853 * locale/programs/ld-monetary.c
24854 (monetary_finish): Likewise.
24855 * locale/programs/ld-name.c (name_finish): Use record_error
24856 and record_warning.
24857 * locale/programs/ld-numeric.c
24858 (numeric_finish): Use record_error.
24859 * locale/programs/ld-paper.c: Don't include error.h.
24860 (paper_finish): Use record_error.
24861 * locale/programs/ld-telephone.c: Don't include error.h.
24862 (telephone_finish): Use record_error.
24863 * locale/programs/ld-time.c (time_finish): Likewise.
24864 * locale/programs/linereader.h (lr_error): Make inline func.
24865 * locale/programs/localedef.c: Define recorded_warning_count,
24866 and recorded_error_count.
24867 (main): Use record_error. Use recorded_error_count and
24868 recorded_warning_count to issue correct error returns.
24869 (add_to_readlist): Use record_error.
24870 (find_locale): Likewise.
24871 (load_locale): Likewise.
24872 * locale/programs/localedef.h: Remove be_quiet
24873 and WITH_CUR_LOCALE.
24874 * locale/programs/locarchive.c (compare_from_file): Use
24875 record_error.
24876 * locale/programs/locfile.c (write_locale_data): Use
24877 record_error.
24878 * locale/programs/repertoire.c: Dont include error.h.
24879 (repertoire_complain): Use record_error.
24880 * localedata/tst-fmon.sh: Expect failures from localedef.
24881 * localedata/tst-locale.sh: Likewise.
24882 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24883
24884 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24885 (REPORTS): Likewise.
24886 (check): Likewise.
24887 (i18n): Rename to...
24888 (i18n_ctype): ...this.
24889 (i18n-report): Rename to...
24890 (i18n_ctype-report): ...this.
24891 * localedata/locales/i18n_ctype: Regenerate.
24892 * localedata/locales/i18n: copy i18n_ctype.
24893
24894 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24895
24896 * stdlib/strfroml.c: Include <bits/floatn.h>.
24897 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24898 Define before include of <stdlib.h> and undefine afterwards, then
24899 define as weak alias.
24900
24901 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24902 Undefine and restore default definition. Use
24903 libm_alias_ldouble_other.
24904
24905 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24906
24907 [BZ #22153]
24908 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24909 in coredumps.
24910
24911 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24912
24913 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24914 Assign sym_map to be map for local symbols, as TLS relocations
24915 use sym_map to determine whether the symbol is defined and to
24916 extract the TLS information.
24917 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24918 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24919
24920 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24921
24922 [BZ #22189]
24923 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24924 (math_force_eval): Add powerpc version.
24925
24926 [BZ #22142]
24927 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24928 -DBL_MAX.
24929 (do_test): Likewise.
24930 * stdio-common/tst-printf.sh: Likewise.
24931 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24932 ifdef clause in order to set the carry bit right. Replace r0 by
24933 0 without changing the behavior.
24934
24935 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24936
24937 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24938 <libm-alias-ldouble.h>.
24939 (fabsl): Define using libm_alias_ldouble.
24940 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24941 <libm-alias-ldouble.h>.
24942 (fabsl): Define using libm_alias_ldouble.
24943
24944 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24945 Remove conditional code.
24946
24947 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24948 Rename to __clog10_internal_l.
24949 (__clog10_internal_l): Define aliases using
24950 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24951 with __clog10.
24952
24953 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24954
24955 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24956 * benchtests/sincosf-inputs: New file.
24957 * benchtests/cosf-inputs: New file.
24958 * benchtests/sinf-inputs: New file.
24959
24960 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24961
24962 * posix/tst-spawn.c (do_test): Wait for both children.
24963
24964 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24965
24966 [BZ #22284]
24967 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24968 tests-pie): Add tst-gmon-pie.
24969 (CFLAGS-tst-gmon-pie.c): New.
24970 (CRT-tst-gmon-pie): Likewise.
24971 (tst-gmon-pie-ENV): Likewise.
24972 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24973 ($(objpfx)tst-gmon-pie.out): Likewise.
24974 (clean-tst-gmon-pie-data): Likewise.
24975 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24976 * gmon/gmon.c [PIC]: Include <link.h>.
24977 [PIC] (callback): New function.
24978 (write_hist): Add an argument for load address. Subtract load
24979 address from PCs.
24980 (write_call_graph): Likewise.
24981 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24982 it to write_hist and write_call_graph.
24983 * gmon/tst-gmon-pie.c: New file.
24984
24985 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24986
24987 * math/Makefile (test-types-basic): New variable.
24988 (test-types): Likewise.
24989 (libm-test-support): Use $(test-types) instead of $(types).
24990 (libm-tests-base-normal): Likewise.
24991 (libm-tests-base-finite): Likewise.
24992 (libm-tests-base-inline): Likewise.
24993 (generated): Likewise.
24994 ($(objpfx)libm-test-support-$(t).c): Likewise.
24995 (libm-tests-for-type iterator): Likewise.
24996 (libm-test-support iterator): Likewise.
24997 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24998 (ulp_idx): Use ULP_IDX.
24999 * math/test-ldouble.h: Include <float.h>.
25000 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25001 (ULP_IDX): New macro.
25002 (ULP_I_IDX): Likewise.
25003 * math/test-double.h (ULP_IDX): Likewise.
25004 (ULP_I_IDX): Likewise.
25005 * math/test-float.h (ULP_IDX): Likewise.
25006 (ULP_I_IDX): Likewise.
25007 * math/test-float128.h (ULP_IDX): Likewise.
25008 (ULP_I_IDX): Likewise.
25009
25010 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25011
25012 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25013 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25014 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25015 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25016 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25017 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25018 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25019 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25020 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25021 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25022 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25023 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25024 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25025 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25026 (SINGLE_THREAD_BY_GLOBAL): Define.
25027 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25028 Likewise.
25029 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25030 Likewise.
25031 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25032 Likewise.
25033 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25034 Likewise.
25035 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25036 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25037 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25038 Likewise.
25039
25040 2017-10-11 Andreas Schwab <schwab@suse.de>
25041
25042 * nis/Makefile (aux): Remove.
25043 * nscd/Makefile (aux): Add nscd_hash.
25044 (nscd-modules): Likewise.
25045 ($(objpfx)nscd): Don't depend on libnsl.
25046 * nscd/nscd_hash.c: New file.
25047 * nscd/nscd_hash.h: Likewise.
25048 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25049 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25050 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25051 instead of <nis/rpcsvc/nis.h>.
25052 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25053
25054 2017-10-11 Florian Weimer <fweimer@redhat.com>
25055
25056 [BZ #22078]
25057 Avoid large NSS buffers with many addresses, aliases.
25058 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25059 using dynarrays and struct alloc_buffer.
25060 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25061 (tst-nss-files-hosts-multi): Link with -ldl.
25062 * nss/tst-nss-files-hosts-multi.c: New file.
25063
25064 2017-10-11 Florian Weimer <fweimer@redhat.com>
25065
25066 [BZ #18023]
25067 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25068 scratch_buffer. Eliminate gotos.
25069
25070 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25071
25072 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25073 libm_alias_ldouble_other.
25074 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25075 undefine and redefine.
25076 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25077 (exp10l): Do not define here.
25078 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25079 (weak_alias): Undefine and redefine.
25080 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25081 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25082 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25083 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25084
25085 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25086 [!__fma] (fma): Define using libm_alias_double.
25087 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25088 [!__fmaf] (fmaf): Define using libm_alias_float.
25089 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25090 (fmal): Define using libm_alias_ldouble.
25091
25092 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25093
25094 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25095 New macro.
25096 (libm_alias_double_other): Likewise.
25097 (libm_alias_double_r): Use libm_alias_double_other_r.
25098 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25099 New macro.
25100 (libm_alias_float_other): Likewise.
25101 (libm_alias_float_r): Use libm_alias_float_other_r.
25102 * sysdeps/generic/libm-alias-float128.h
25103 (libm_alias_float128_other_r): New macro.
25104 (libm_alias_float128_other): Likewise.
25105 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25106 * sysdeps/generic/libm-alias-ldouble.h
25107 (libm_alias_ldouble_other_r): New macro.
25108 (libm_alias_ldouble_other): Likewise.
25109 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25110 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25111 (libm_alias_double_other_r): New macro.
25112 (libm_alias_double_other): Likewise.
25113 (libm_alias_double_r): Use libm_alias_double_other_r.
25114 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25115 (libm_alias_ldouble_other_r): New macro.
25116 (libm_alias_ldouble_other): Likewise.
25117 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25118 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25119 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25120 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25121 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25122 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25123 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25124 * math/w_exp2f.c: Use libm_alias_float_other.
25125 * math/w_expf.c: Likewise.
25126 * math/w_log2f.c: Likewise.
25127 * math/w_logf.c: Likewise.
25128 * math/w_powf.c: Likewise.
25129 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25130 [!__exp2f]: Use libm_alias_float_other.
25131 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25132 [!__expf]: Use libm_alias_float_other.
25133 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25134 [!__log2f]: Use libm_alias_float_other.
25135 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25136 [!__logf]: Use libm_alias_float_other.
25137 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25138 [!__powf]: Use libm_alias_float_other.
25139
25140 2017-10-10 Florian Weimer <fweimer@redhat.com>
25141
25142 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25143 function.
25144 (_nss_files_gethostbyname3_r): Call it.
25145
25146 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25147
25148 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25149 error. Remove default definition of declare_mgen_alias.
25150 [!declare_mgen_alias_r]: Likewise.
25151 * sysdeps/generic/math-type-macros-double.h
25152 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25153 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25154 (declare_mgen_alias_r): Likewise.
25155 * sysdeps/generic/math-type-macros-float128.h
25156 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25157 * sysdeps/generic/math-type-macros-ldouble.h
25158 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25159 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25160 macro.
25161 (declare_mgen_alias_r_s): Likewise.
25162 (declare_mgen_alias_r): Likewise.
25163 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25164 (lgamma_r): Define using libm_alias_double_r.
25165 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25166 (lgammaf_r): Define using libm_alias_float_r.
25167 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25168 (lgammal_r): Define using libm_alias_ldouble_r.
25169 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25170 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25171
25172 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25173
25174 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25175 extern declaration.
25176
25177 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25178
25179 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25180
25181 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25182
25183 [BZ #21326]
25184 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25185 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25186 * math/Makefile (test-math-cxx11): New test.
25187 * math/test-math-cxx11.cc: New file.
25188
25189 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25190
25191 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25192
25193 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25194 call to allocate the slave pty file descriptor.
25195
25196 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25197
25198 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25199 [!__fma] (fma): Define using libm_alias_double.
25200 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25201 [!__fma] (fma): Define using libm_alias_double.
25202
25203 * sysdeps/ieee754/float128/float128_private.h: Include
25204 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25205 (libm_alias_ldouble_r): Undefine and redefine.
25206 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25207 <libm-alias-ldouble.h>.
25208 (asinhl): Define using libm_alias_ldouble.
25209 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25210 <libm-alias-ldouble.h>.
25211 (atanl): Define using libm_alias_ldouble.
25212 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25213 <libm-alias-ldouble.h>.
25214 (cbrtl): Define using libm_alias_ldouble.
25215 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25216 <libm-alias-ldouble.h>.
25217 (ceill): Define using libm_alias_ldouble.
25218 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25219 <libm-alias-ldouble.h>.
25220 (copysignl): Define using libm_alias_ldouble.
25221 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25222 <libm-alias-ldouble.h>.
25223 (cosl): Define using libm_alias_ldouble.
25224 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25225 <libm-alias-ldouble.h>.
25226 (erfl): Define using libm_alias_ldouble.
25227 (erfcl): Likewise.
25228 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25229 <libm-alias-ldouble.h>.
25230 (expm1l): Define using libm_alias_ldouble.
25231 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25232 <libm-alias-ldouble.h>.
25233 (fabsl): Define using libm_alias_ldouble.
25234 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25235 <libm-alias-ldouble.h>.
25236 (floorl): Define using libm_alias_ldouble.
25237 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25238 <libm-alias-ldouble.h>.
25239 (fmal): Define using libm_alias_ldouble.
25240 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25241 <libm-alias-ldouble.h>.
25242 (frexpl): Define using libm_alias_ldouble.
25243 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25244 libm_alias_ldouble.
25245 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25246 <libm-alias-ldouble.h>.
25247 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25248 libm_alias_ldouble.
25249 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25250 <libm-alias-ldouble.h>.
25251 (getpayloadl): Define using libm_alias_ldouble.
25252 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25253 <libm-alias-ldouble.h>.
25254 (llrintl): Define using libm_alias_ldouble.
25255 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25256 <libm-alias-ldouble.h>.
25257 (llroundl): Define using libm_alias_ldouble.
25258 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25259 <libm-alias-ldouble.h>.
25260 (logbl): Define using libm_alias_ldouble.
25261 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25262 <libm-alias-ldouble.h>.
25263 (lrintl): Define using libm_alias_ldouble.
25264 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25265 <libm-alias-ldouble.h>.
25266 (lroundl): Define using libm_alias_ldouble.
25267 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25268 <libm-alias-ldouble.h>.
25269 (modfl): Define using libm_alias_ldouble.
25270 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25271 <libm-alias-ldouble.h>.
25272 (nearbyintl): Define using libm_alias_ldouble.
25273 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25274 <libm-alias-ldouble.h>.
25275 (nextafterl): Define using libm_alias_ldouble.
25276 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25277 <libm-alias-ldouble.h>.
25278 (nextupl): Define using libm_alias_ldouble.
25279 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25280 <libm-alias-ldouble.h>.
25281 (remquol): Define using libm_alias_ldouble.
25282 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25283 <libm-alias-ldouble.h>.
25284 (rintl): Define using libm_alias_ldouble.
25285 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25286 <libm-alias-ldouble.h>.
25287 (roundevenl): Define using libm_alias_ldouble.
25288 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25289 <libm-alias-ldouble.h>.
25290 (roundl): Define using libm_alias_ldouble.
25291 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25292 using libm_alias_ldouble.
25293 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25294 <libm-alias-ldouble.h>.
25295 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25296 Define using libm_alias_ldouble.
25297 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25298 <libm-alias-ldouble.h>.
25299 (sincosl): Define using libm_alias_ldouble.
25300 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25301 <libm-alias-ldouble.h>.
25302 (sinl): Define using libm_alias_ldouble.
25303 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25304 <libm-alias-ldouble.h>.
25305 (tanhl): Define using libm_alias_ldouble.
25306 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25307 <libm-alias-ldouble.h>.
25308 (tanl): Define using libm_alias_ldouble.
25309 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25310 <libm-alias-ldouble.h>.
25311 (totalorderl): Define using libm_alias_ldouble.
25312 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25313 <libm-alias-ldouble.h>.
25314 (totalordermagl): Define using libm_alias_ldouble.
25315 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25316 <libm-alias-ldouble.h>.
25317 (truncl): Define using libm_alias_ldouble.
25318 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25319 libm_alias_ldouble.
25320 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25321 libm_alias_ldouble.
25322 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25323 <libm-alias-ldouble.h>.
25324 (weak_alias): Do not undefine and redefine.
25325 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25326 (copysignl): Define with long_double_symbol only if [IS_IN
25327 (libc)].
25328 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25329 <libm-alias-ldouble.h>.
25330 (weak_alias): Do not undefine and redefine.
25331 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25332 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25333 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25334 <libm-alias-ldouble.h>.
25335 (weak_alias): Do not undefine and redefine.
25336 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25337 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25338 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25339 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25340 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25341 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25342 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25343 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25344 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25345 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25346 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25347 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25348 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25349 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25350 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25351 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25352 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25353 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25354 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25355 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25356 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25357 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25358 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25359 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25360 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25361 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25362
25363 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25364
25365 [BZ #22111]
25366 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25367 (tcache_thread_freeres): Set tcache_shutting_down before
25368 freeing the tcache.
25369 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25370 * malloc/tst-malloc-tcache-leak.c: New file.
25371
25372 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25373
25374 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25375 back to powerpc32 file.
25376 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25377 (memrchr): Add __memrchr_power8 to ifunc list.
25378 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25379 extra bytes for unaligned inputs.
25380
25381 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25382
25383 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25384 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25385 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25386 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25387 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25388
25389 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25390
25391 * sysdeps/arm/libm-test-ulps: Update.
25392
25393 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25394 <libm-alias-ldouble.h>.
25395 (asinhl): Define using libm_alias_ldouble.
25396 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25397 <libm-alias-ldouble.h>.
25398 (cbrtl): Define using libm_alias_ldouble.
25399 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25400 <libm-alias-ldouble.h>.
25401 (copysignl): Define using libm_alias_ldouble.
25402 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25403 <libm-alias-ldouble.h>.
25404 (cosl): Define using libm_alias_ldouble.
25405 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25406 <libm-alias-ldouble.h>.
25407 (erfl): Define using libm_alias_ldouble.
25408 (erfcl): Likewise.
25409 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25410 <libm-alias-ldouble.h>.
25411 (fmal): Define using libm_alias_ldouble.
25412 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25413 <libm-alias-ldouble.h>.
25414 (frexpl): Define using libm_alias_ldouble.
25415 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25416 libm_alias_ldouble.
25417 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25418 <libm-alias-ldouble.h>.
25419 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25420 libm_alias_ldouble.
25421 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25422 <libm-alias-ldouble.h>.
25423 (getpayloadl): Define using libm_alias_ldouble.
25424 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25425 <libm-alias-ldouble.h>.
25426 (llrintl): Define using libm_alias_ldouble.
25427 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25428 <libm-alias-ldouble.h>.
25429 (llroundl): Define using libm_alias_ldouble.
25430 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25431 <libm-alias-ldouble.h>.
25432 (lrintl): Define using libm_alias_ldouble.
25433 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25434 <libm-alias-ldouble.h>.
25435 (lroundl): Define using libm_alias_ldouble.
25436 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25437 <libm-alias-ldouble.h>.
25438 (modfl): Define using libm_alias_ldouble.
25439 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25440 <libm-alias-ldouble.h>.
25441 (nextupl): Define using libm_alias_ldouble.
25442 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25443 <libm-alias-ldouble.h>.
25444 (remquol): Define using libm_alias_ldouble.
25445 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25446 <libm-alias-ldouble.h>.
25447 (roundevenl): Define using libm_alias_ldouble.
25448 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25449 <libm-alias-ldouble.h>.
25450 (roundl): Define using libm_alias_ldouble.
25451 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25452 using libm_alias_ldouble.
25453 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25454 <libm-alias-ldouble.h>.
25455 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25456 <libm-alias-ldouble.h>.
25457 (setpayloadsigl): Define using libm_alias_ldouble.
25458 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25459 <libm-alias-ldouble.h>.
25460 (sincosl): Define using libm_alias_ldouble.
25461 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25462 <libm-alias-ldouble.h>.
25463 (sinl): Define using libm_alias_ldouble.
25464 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25465 <libm-alias-ldouble.h>.
25466 (tanhl): Define using libm_alias_ldouble.
25467 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25468 <libm-alias-ldouble.h>.
25469 (tanl): Define using libm_alias_ldouble.
25470 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25471 <libm-alias-ldouble.h>.
25472 (totalorderl): Define using libm_alias_ldouble.
25473 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25474 <libm-alias-ldouble.h>.
25475 (totalordermagl): Define using libm_alias_ldouble.
25476 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25477 libm_alias_ldouble.
25478 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25479 libm_alias_ldouble.
25480
25481 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25482
25483 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25484 memmove_falkor.
25485 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25486 (__libc_ifunc_impl_list): Likewise.
25487 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25488 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25489
25490 * benchtests/bench-memmove-walk.c: New file.
25491 * benchtests/Makefile (string-benchset): Add it.
25492
25493 * benchtests/bench-memset-walk.c: New file.
25494 * benchtests/Makefile (string-benchset): Add it.
25495
25496 * benchtests/bench-memcpy-walk.c: New file.
25497 * benchtests/Makefile (string-benchset): Add it.
25498
25499 2017-10-05 Florian Weimer <fweimer@redhat.com>
25500
25501 nscd: Eliminate compilation time dependency in the build output.
25502 * nscd/nscd_stat.c (STATDATA_VERSION)
25503 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25504 (STATDATA_VERSION_FULL): New macro definitions.
25505 (compilation): Remove.
25506 (struct statdata): Adjust version member.
25507 (send_stats): Set version from STATDATA_VERSION_FULL.
25508 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25509
25510 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25511
25512 * configure.ac (--enable-add-ons): Remove option.
25513 (machine): Do not mention add-ons in comment.
25514 (LIBC_PRECONFIGURE): Likewise.
25515 (add_ons): Remove variable and sanity checks and logic to locate
25516 add-ons.
25517 (add_ons_automatic): Remove variable.
25518 (configured_add_ons): Likewise.
25519 (add_ons_sfx): Likewise.
25520 (add_ons_pfx): Likewise.
25521 (add_on_subdirs): Likewise.
25522 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25523 consideration of add-ons in Implies handling.
25524 (sysdeps_add_ons): Likewise.
25525 * configure: Regenerated.
25526 * libidn/configure.ac: Remove.
25527 * libidn/configure: Likewise.
25528 * sysdeps/unix/inet/configure.ac: New file.
25529 * sysdeps/unix/inet/configure: New generated file.
25530 * sysdeps/unix/inet/Subdirs: Add libidn.
25531 * Makeconfig (sysdeps-srcdirs): Remove variable.
25532 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25533 ($(common-objpfx)config.status): Do not depend on add-on files.
25534 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25535 comment.
25536 (all-subdirs): Do not include $(add-on-subdirs).
25537 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25538 * config.make.in (add-ons): Remove variable.
25539 (add-on-subdirs): Likewise.
25540 (sysdeps-add-ons): Likewise.
25541 * manual/Makefile (add-chapters): Remove.
25542 ($(objpfx)texis): Do not depend on $(add-chapters).
25543 (nonexamples): Do not handle $(add-chapters).
25544 (examples): Do not handle $(add-ons).
25545 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25546 libc-texinfo.sh.
25547 * manual/install.texi (Installation): Do not mention add-ons.
25548 (--enable-add-ons): Do not document configure option.
25549 * INSTALL: Regenerated.
25550 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25551 * manual/maint.texi (Hierarchy Conventions): Do not mention
25552 add-ons.
25553 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25554 --enable-add-ons.
25555 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25556 add-ons.
25557 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25558 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25559
25560 2017-10-05 Andreas Schwab <schwab@suse.de>
25561
25562 [BZ #15142]
25563 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25564 (_IO_flush_all_lockp): Always lock list_all_lock.
25565 (_IO_flush_all_linebuffered): Likewise.
25566 (_IO_unbuffer_all): Likewise.
25567
25568 2017-10-05 Florian Weimer <fweimer@redhat.com>
25569
25570 [BZ #15436]
25571 Do not flush stdio streams on abort.
25572 * stdlib/abort.c (fflush): Remove macro definition.
25573 (abort): Remove stages related to stdio flushing.
25574
25575 2017-10-05 Florian Weimer <fweimer@redhat.com>
25576
25577 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25578
25579 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25580
25581 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25582
25583 2017-10-05 Florian Weimer <fweimer@redhat.com>
25584
25585 * support/support_format_hostent.c (support_format_hostent): Add
25586 more error information for NETDB_INTERNAL.
25587
25588 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25589
25590 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25591 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25592 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25593 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25594 AC_DEFINE if multi-arch is enabled.
25595 * sysdeps/i386/configure: Regenerated.
25596
25597 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25598
25599 * Makeconfig (+link-static-before-libc): Use
25600 $(DEFAULT-LDFLAGS-$(@F)).
25601 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25602 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25603 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25604
25605 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25606
25607 * elf/Makefile (tests): Add tst-main1.
25608 (modules-names): Add tst-main1mod.
25609 ($(objpfx)tst-main1): New.
25610 (CRT-tst-main1): Likewise.
25611 (LDFLAGS-tst-main1): Likewise.
25612 (LDLIBS-tst-main1): Likewise.
25613 (tst-main1mod.so-no-z-defs): Likewise.
25614 * elf/tst-main1.c: New file.
25615 * elf/tst-main1mod.c: Likewise.
25616
25617 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25618
25619 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25620
25621 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25622
25623 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25624 (fma): Define using libm_alias_double.
25625 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25626 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25627 <math_ldbl_opt.h>.
25628 (fmal): Do not define as compat symbol here.
25629 * sysdeps/alpha/fpu/s_fma.c: New file.
25630
25631 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25632
25633 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25634
25635 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25636
25637 [BZ #22229]
25638 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25639 <math_ldbl_opt.h>
25640 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25641 and libc.
25642 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25643 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25644 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25645 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25646 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25647 Include <math_ldbl_opt.h>
25648 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25649 and libc.
25650 (compat_symbol): Undefine and redefine.
25651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25652 <math_ldbl_opt.h>
25653 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25654 (compat_symbol): Undefine and redefine.
25655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25656 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25657 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25658 GLIBC_2_1 for libm.
25659 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25660 GLIBC_2.0 copysignl symbol.
25661 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25662 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25663
25664 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25665
25666 2017-10-04 Florian Weimer <fweimer@redhat.com>
25667
25668 * scripts/check-local-headers.sh: Ignore nspr4 header file
25669 directory in addition to nspr.
25670
25671 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25672
25673 [BZ #17956]
25674 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25675 * configure: Regenerate.
25676 * crypt/Makefile (nss-cpp-flags): New variable.
25677 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25678 (CPPFLAGS-md5-crypt.c): Use it.
25679 * scripts/check-local-headers.sh: Ignore nspr header file
25680 directory.
25681
25682 2017-10-04 Andreas Schwab <schwab@suse.de>
25683
25684 * nis/Makefile (services): Remove compat.
25685 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25686 ($(objpfx)libnss_compat.so): Remove rule.
25687 * nis/Versions (libnss_compat): Remove.
25688 * nss/Makefile (services): Add compat.
25689 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25690 * nss/Versions (libnss_compat): Define.
25691 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25692 Don't include <rpc/types.h>. Replace bool_t by bool.
25693 * nss/nss_compat/compat-initgroups.c: Likewise.
25694 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25695 instead of <rpcsrv/ypclnt.h>.
25696 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25697 yp_get_default_domain.
25698 * nss/nss_compat/compat-pwd.c: Likewise.
25699 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25700 yp_get_default_domain.
25701 * nss/nss_compat/nisdomain.c: New file.
25702 * nss/nss_compat/nisdomain.h: Likewise.
25703
25704 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25705
25706 [BZ #22244]
25707 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25708 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25709
25710 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25711
25712 [BZ #22243]
25713 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25714 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25715
25716 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25717
25718 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25719 "movl main@GOTOFF(%ebx), %eax".
25720
25721 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25722
25723 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25724 allow undefined _DYNAMIC in PIE libc.a.
25725 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25726 Likewse.
25727
25728 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25729
25730 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25731 check _DYNAMIC.
25732
25733 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25734
25735 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25736 check _DYNAMIC.
25737
25738 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25739
25740 * math/test-math-iscanonical.cc (error): Replace bool with int.
25741
25742 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25743
25744 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25745 (modf): Define using libm_alias_double, only if [!__modf].
25746 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25747 <libm-alias-double.h>.
25748 (modf): Define using libm_alias_double, only if [!__modf].
25749 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25750 compat symbol here.
25751 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25752 (weak_alias): Do not undefine and redefine.
25753 (strong_alias): Likewise.
25754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25755 (weak_alias): Likewise.
25756 (strong_alias): Likewise.
25757
25758 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25759 (logb): Define using libm_alias_double, only if [!__logb].
25760 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25761 <libm-alias-double.h>.
25762 (logb): Define using libm_alias_double, only if [!__logb].
25763 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25765 (weak_alias): Do not undefine and redefine.
25766 (strong_alias): Likewise.
25767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25768 (weak_alias): Likewise.
25769 (strong_alias): Likewise.
25770
25771 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25772
25773 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25774 Check SHARED instead PIC.
25775
25776 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25777
25778 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25779 [!__fmaf] (fmaf): Define using libm_alias_float.
25780
25781 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25782 (frexp): Define using libm_alias_double.
25783 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25784 <libm-alias-double.h>.
25785 (frexp): Define using libm_alias_double.
25786 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25787 compat symbol here.
25788
25789 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25790
25791 [BZ #22235]
25792 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25793 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25794 (CFLAGS-test-math-iscanonical.cc): New variable.
25795 * math/test-math-iscanonical.cc: New file.
25796 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25797 Provide a C++ implementation based on function overloading,
25798 rather than using __MATH_TG, which uses C-only builtins.
25799 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25800 Likewise.
25801 * sysdeps/powerpc/powerpc64le/Makefile
25802 (CFLAGS-test-math-iscanonical.cc): New variable.
25803
25804 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25805
25806 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25807 (ceil): Define using libm_alias_double.
25808 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25809 (floor): Define using libm_alias_double.
25810 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25811 <libm-alias-double.h>.
25812 (llround): Define using libm_alias_double.
25813 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25814 <libm-alias-double.h>.
25815 (lround): Define using libm_alias_double.
25816 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25817 <libm-alias-double.h>.
25818 (nearbyint): Define using libm_alias_double.
25819 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25820 <libm-alias-double.h>.
25821 (remquo): Define using libm_alias_double.
25822 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25823 (rint): Define using libm_alias_double.
25824 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25825 (round): Define using libm_alias_double.
25826 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25827 (trunc): Define using libm_alias_double.
25828 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25829 <libm-alias-double.h>.
25830 (ceil): Define using libm_alias_double.
25831 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25832 <libm-alias-double.h>.
25833 (floor): Define using libm_alias_double.
25834 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25835 <libm-alias-double.h>.
25836 (llround): Define using libm_alias_double.
25837 [_LP64] (lround): Likewise.
25838 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25839 <libm-alias-double.h>.
25840 [!_LP64] (lround): Define using libm_alias_double.
25841 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25842 <libm-alias-double.h>.
25843 (nearbyint): Define using libm_alias_double.
25844 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25845 <libm-alias-double.h>.
25846 (remquo): Define using libm_alias_double.
25847 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25848 <libm-alias-double.h>.
25849 (rint): Define using libm_alias_double.
25850 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25851 <libm-alias-double.h>.
25852 (round): Define using libm_alias_double.
25853 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25854 <libm-alias-double.h>.
25855 (trunc): Define using libm_alias_double.
25856 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25857 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25858 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25859 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25860 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25861 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25862 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25863 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25864 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25865
25866 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25867
25868 * math/w_remainder.c: New file.
25869 * math/w_remainderf.c: New file.
25870 * math/w_remainderl.c: New file.
25871
25872 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25873
25874 * elf/rtld.c (BOOTSTRAP_MAP): New.
25875 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25876 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25877 Likewise.
25878 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25879 Likewise.
25880 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25881 Likewise.
25882
25883 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25884
25885 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25886 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25887 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25888 rtld_hidden_data_ver): Define to empty.
25889 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25890 __assert_perror_fail): Likewise.
25891 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25892 (__rewinddir): Likewise.
25893 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25894 (__profile_frequency): Likewise.
25895 * include/setjmp.h (__sigsetjmp): Likewise.
25896 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25897 __libc_sigaction): Likewise.
25898 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25899 not set hidden attribute.
25900 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25901 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25902 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25903 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25904 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25905 __fxstatat64): Likewise.
25906 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25907 (__uname): Likewise.
25908 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25909 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25910 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25911 (NO_RTLD_HIDDEN): Set.
25912 * sysdeps/mach/hurd/configure: Refresh.
25913 * config.h.in: Refresh.
25914
25915 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25916
25917 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25918 (atan): Define using libm_alias_double.
25919 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25920 (tan): Define using libm_alias_double.
25921 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25922 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25923
25924 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25925 define as weak alias of __atan. Do not define any aliases if
25926 [__atan].
25927 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25928 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25929 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25930 as weak alias of __tan. Do not define any aliases if [__tan].
25931 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25932 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25933 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25934 __atan.
25935 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25936 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25937 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25938 and define as weak alias of __atan.
25939 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25940 __atan.
25941 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25942 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25943 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25944 define as weak alias of __tan.
25945
25946 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25947
25948 * math/w_lgamma.c: New file.
25949 * math/w_lgammaf.c: New file.
25950 * math/w_lgammal.c: New file.
25951
25952 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25953
25954 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25955 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25956 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25957 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25958 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25959 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25960 * sysdeps/i386/fpu/w_log2f.c: New file.
25961 * sysdeps/i386/fpu/w_logf.c: New file.
25962 * sysdeps/i386/fpu/w_powf.c: New file.
25963 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25964 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25965 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25966
25967 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25968 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25971 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25972 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25973 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25974 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25975 the new expf code.
25976 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25977 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25978 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25979 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25980 * sysdeps/i386/fpu/w_exp2f.c: New file.
25981 * sysdeps/i386/fpu/w_expf.c: New file.
25982 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25983 * sysdeps/x86_64/fpu/w_expf.c: New file.
25984
25985 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25986
25987 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25988 (log2f): Likewise.
25989 (powf): Likewise.
25990 * math/w_log2f.c: New file.
25991 * math/w_logf.c: New file.
25992 * math/w_powf.c: New file.
25993 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25994 * math/w_logf_compat.c (__logf_compat): Likewise.
25995 * math/w_powf_compat.c (__powf_compat): Likewise.
25996 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25997 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25998 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25999 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26000 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26001 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26002 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26003 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26004 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26005 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26006 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26007 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26008 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26009 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26010 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26012 Likewise.
26013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26014 Likewise.
26015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26016 Likewise.
26017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26018 Likewise.
26019 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26020 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26021 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26022 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26023 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26024 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26025 Likewise.
26026 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26027 Likewise.
26028 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26030 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26031
26032 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26033
26034 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26035 (sysdep_routines): Add memrchr_power8.
26036 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26037 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26038 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26039 New file.
26040 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26041 (memrchr): Add __memrchr_power8 to ifunc list.
26042 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26043
26044 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26045
26046 [BZ #18822]
26047 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26048 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26049 libc_hidden_def.
26050 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26051 (__posix_fallocate64_l64): Likewise.
26052
26053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26054
26055 [BZ #18822]
26056 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26057 (__sched_setaffinity_new): Add libc_hidden_proto and
26058 libc_hidden_def.
26059
26060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 [BZ #18822]
26063 * include/glob.h (__glob64): Add libc_hidden_proto.
26064 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26065 libc_hidden_def.
26066
26067 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26068
26069 [BZ #18822]
26070 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26071 attribute_hidden.
26072
26073 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26074
26075 [BZ #18822]
26076 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26077
26078 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26079
26080 [BZ #18822]
26081 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26082 libc_hidden_def.
26083
26084 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26085
26086 [BZ #18822]
26087 * csu/version.c (__libc_print_version): Add attribute_hidden.
26088
26089 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26090
26091 [BZ #18822]
26092 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26093
26094 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26095
26096 [BZ #18822]
26097 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26098
26099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26100
26101 [BZ #18822]
26102 * nscd/nscd_helper.c (__nis_hash): New prototype.
26103
26104 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26105
26106 [BZ #18822]
26107 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26108 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26109 libc_hidden_def.
26110 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26111 * termios/tcgetattr.c (__tcgetattr): Likewise.
26112
26113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26114
26115 [BZ #18822]
26116 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26117 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26118 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26119 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26120 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26121
26122 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26123
26124 [BZ #18822]
26125 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26126
26127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26128
26129 [BZ #18822]
26130 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26131 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26132
26133 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26134
26135 [BZ #18822]
26136 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26137
26138 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26139
26140 [BZ #18822]
26141 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26142 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26143
26144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26145
26146 [BZ #18822]
26147 * include/ifreq.h: New file.
26148 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26149 (__ifreq): Likewise.
26150 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26151 (__ifreq): Likewise.
26152
26153 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26154
26155 [BZ #18822]
26156 * include/idna.h: New file.
26157 * inet/getnameinfo.c: Include <idna.h> instead of
26158 <libidn/idna.h>.
26159 (__idna_to_unicode_lzlz): Removed.
26160 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26161 <libidn/idna.h>.
26162 (__idna_to_ascii_lz): Removed.
26163 (__idna_to_unicode_lzlz): Likewise.
26164
26165 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26166
26167 [BZ #18822]
26168 * include/plural-exp.h: New file.
26169 * intl/plural-exp.c: Include <plural-exp.h> instead of
26170 "plural-exp.h".
26171
26172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26173
26174 [BZ #18822]
26175 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26176 "getsourcefilter.h".
26177 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26178 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26179 "getsourcefilter.h".
26180 (__get_sol): Removed.
26181
26182 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26183
26184 [BZ #18822]
26185 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26186 to ...
26187 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26188
26189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 [BZ #18822]
26192 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26193 attribute_hidden.
26194
26195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26196
26197 [BZ #18822]
26198 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26199
26200 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26201
26202 [BZ #18822]
26203 * include/search.h (__tdestroy): Add libc_hidden_proto.
26204 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26205
26206 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26207
26208 [BZ #18822]
26209 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26210
26211 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26212
26213 [BZ #18822]
26214 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26215 attribute_hidden.
26216
26217 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26218
26219 [BZ #18822]
26220 * include/signal.h (__kill): Add libc_hidden_proto.
26221 (__sigblock): Likewise.
26222 (__sigprocmask): Likewise.
26223 (__sigaltstack): Likewise.
26224 * signal/kill.c (__kill): Add libc_hidden_def.
26225 * signal/sigblock.c (__sigblock): Likewise.
26226 * signal/sigprocmask.c (__sigprocmask): Likewise.
26227 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26228 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26229 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26230 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26231 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26232 Likewise.
26233 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26234 Likewise.
26235 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26236 (__sigprocmask): Likewise.
26237 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26238 Likewise.
26239 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26240 (__sigprocmask): Likewise.
26241 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26242 Likewise.
26243
26244 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26245
26246 [BZ #18822]
26247 * include/string.h (__strsep): Add libc_hidden_proto.
26248 * string/strsep.c (__strsep): Add libc_hidden_def.
26249
26250 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26251
26252 [BZ #18822]
26253 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26254 attribute_hidden.
26255 (__spawni): Likewise.
26256
26257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26258
26259 [BZ #18822]
26260 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26261 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26262 libc_hidden_def.
26263
26264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26265
26266 [BZ #18822]
26267 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26268
26269 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26270
26271 [BZ #18822]
26272 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26273 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26274 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26275 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26276 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26277 Likewise.
26278 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26279 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26280
26281 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26282
26283 [BZ #18822]
26284 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26285 (__dcigettext): Likewise.
26286
26287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26288
26289 [BZ #18822]
26290 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26291 libc_hidden_proto.
26292 (__get_nprocs): Likewise.
26293 (__get_phys_pages): Likewise.
26294 (__get_avphys_pages): Likewise.
26295 (__get_child_max): Add attribute_hidden.
26296 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26297 (__get_nprocs): Likewise.
26298 (__get_phys_pages): Likewise.
26299 (__get_avphys_pages): Likewise.
26300 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26301 libc_hidden_def.
26302 (__get_nprocs): Likewise.
26303 (__get_phys_pages): Likewise.
26304 (__get_avphys_pages): Likewise.
26305 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26306 libc_hidden_def.
26307 (__get_nprocs_conf): Likewise.
26308 (__get_phys_pages): Likewise.
26309 (__get_avphys_pages): Likewise.
26310
26311 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26312
26313 [BZ #18822]
26314 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26315 attribute_hidden.
26316 (__netlink_close): Likewise.
26317 (__netlink_free_handle): Likewise.
26318 (__netlink_request): Likewise.
26319
26320 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26321
26322 [BZ #18822]
26323 * include/rpc/rpc.h (__rpc_thread_variables): Add
26324 attribute_hidden.
26325 (__rpc_thread_svc_cleanup): Likewise.
26326 (__rpc_thread_clnt_cleanup): Likewise.
26327 (__rpc_thread_key_cleanup): Likewise.
26328
26329 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26330
26331 [BZ #18822]
26332 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26333 (__writev): Likewise.
26334 * misc/readv.c (__readv): Add libc_hidden_def.
26335 * misc/writev.c (__writev): Likewise.
26336 * sysdeps/posix/readv.c (__readv): Likewise.
26337 * sysdeps/posix/writev.c (__writev): Likewise.
26338 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26339 (__readv): Likewise.
26340 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26341 (__writev): Likewise.
26342
26343 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26344
26345 [BZ #18822]
26346 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26347 (__regcomp): Add libc_hidden_proto.
26348 (__regexec): Likewise.
26349 (__regfree): Likewise.
26350 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26351 (__regfree): Likewise.
26352 * posix/regexec.c (__regexec): Likewise.
26353
26354 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26355
26356 [BZ #18822]
26357 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26358 (__getutent): Likewise.
26359 (__getutid): Likewise.
26360 (__getutline): Likewise.
26361 (__pututline): Likewise.
26362 (__getutent_r): Likewise.
26363 (__getutid_r): Likewise.
26364 (__getutline_r): Likewise.
26365 (__utmpname): Add attribute_hidden.
26366 (__setutent): Likewise.
26367 (__endutent): Likewise.
26368 * login/getutent.c (__getutent): Add libc_hidden_def.
26369 * login/getutent_r.c (__getutent_r): Likewise.
26370 (__pututline): Likewise.
26371 * login/getutid.c (__getutid): Likewise.
26372 * login/getutid_r.c (__getutid_r): Likewise.
26373 * login/getutline.c (__getutline): Likewise.
26374 * login/getutline_r.c (__getutline_r): Likewise.
26375 * login/updwtmp.c (__updwtmp): Likewise.
26376
26377 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26378
26379 [BZ #18822]
26380 * include/dirent.h (__opendir): Always add attribute_hidden.
26381 (__fdopendir): Likewise.
26382 (__closedir): Likewise.
26383 (__readdir): Likewise.
26384 (__readdir64): Add libc_hidden_proto.
26385 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26386 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26387 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26388 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26389 New alias.
26390
26391 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26392
26393 [BZ #18822]
26394 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26395 * include/netdb.h (__gethostbyaddr_r): Likewise.
26396 (__gethostbyname_r): Likewise.
26397 (__gethostbyname2_r): Likewise.
26398 (__getnetbyaddr_r): Likewise.
26399 (__getnetbyname_r): Likewise.
26400 (__getservbyname_r): Likewise.
26401 (__getservbyport_r): Likewise.
26402 (__getprotobyname_r): Likewise.
26403 (__getprotobynumber_r): Likewise.
26404 (__getnetgrent_r): Likewise.
26405 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26406 (__getrpcbynumber_r): Likewise.
26407 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26408
26409 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26410
26411 [BZ #18822]
26412 * include/stdio.h (__fcloseall): Add attribute_hidden.
26413 (__getline): Likewise.
26414 (__path_search): Likewise.
26415 (__gen_tempname): Likewise.
26416 (__libc_message): Likewise.
26417 (__flockfile): Likewise.
26418 (__funlockfile): Likewise.
26419 (__fxprintf): Likewise.
26420 (__fxprintf_nocancel): Likewise.
26421
26422 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26423
26424 [BZ #18822]
26425 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26426 (__sgetsgent_r): Likewise.
26427
26428 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26429
26430 [BZ #18822]
26431 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26432 (__statfs64): Likewise.
26433 (__fstatfs64): Likewise.
26434 * include/sys/statvfs.h (__statvfs64): Likewise.
26435 (__fstatvfs64): Likewise.
26436 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26437 (__statfs_filesize_max): Likewise.
26438 (__statfs_symlinks): Likewise.
26439 (__statfs_chown_restricted): Likewise.
26440
26441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26442
26443 [BZ #18822]
26444 * include/time.h (__tzstring): Add attribute_hidden.
26445 (__tzfile_read): Likewise.
26446 (__tzfile_compute): Likewise.
26447 (__tzfile_default): Likewise.
26448 (__tzset_parse_tz): Likewise.
26449 (__offtime): Likewise.
26450 (__asctime_r): Likewise.
26451 (__tzset): Likewise.
26452 (__tz_convert): Likewise.
26453 (__getdate_r): Likewise.
26454 (__getclktck): Likewise.
26455
26456 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26457
26458 [BZ #18822]
26459 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26460 (__nscd_unmap): Likewise.
26461 (__nscd_cache_search): Likewise.
26462 (__nscd_get_nl_timestamp): Likewise.
26463 (__nscd_getpwnam_r): Likewise.
26464 (__nscd_getpwuid_r): Likewise.
26465 (__nscd_getgrnam_r): Likewise.
26466 (__nscd_getgrgid_r): Likewise.
26467 (__nscd_gethostbyname_r): Likewise.
26468 (__nscd_gethostbyname2_r): Likewise.
26469 (__nscd_gethostbyaddr_r): Likewise.
26470 (__nscd_getai): Likewise.
26471 (__nscd_getgrouplist): Likewise.
26472 (__nscd_getservbyname_r): Likewise.
26473 (__nscd_getservbyport_r): Likewise.
26474 (__nscd_innetgr): Likewise.
26475 (__nscd_setnetgrent): Likewise.
26476
26477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26478
26479 [BZ #18822]
26480 * include/gmp.h: Declare internal functions only if _ISOMAC is
26481 undefined.
26482 (__mpn_extract_double): Add attribute_hidden.
26483 (__mpn_extract_long_double): Likewise.
26484 (__mpn_extract_float128): Likewise.
26485 (__mpn_construct_float): Likewise.
26486 (__mpn_construct_double): Likewise.
26487 (__mpn_construct_long_double): Likewise.
26488 (__mpn_construct_float128): Likewise.
26489 (mpn_add_1): Likewise.
26490 (mpn_addmul_1): Likewise.
26491 (mpn_add_n): Likewise.
26492 (mpn_cmp): Likewise.
26493 (mpn_divrem): Likewise.
26494 (mpn_lshift): Likewise.
26495 (mpn_mul): Likewise.
26496 (mpn_mul_1): Likewise.
26497 (mpn_rshift): Likewise.
26498 (mpn_sub_1): Likewise.
26499 (mpn_submul_1): Likewise.
26500 (mpn_sub_n): Likewise.
26501
26502 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26503
26504 [BZ #18822]
26505 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26506 (__wcscat): Likewise.
26507 (__btowc): Likewise.
26508 (__wcrtomb): Likewise.
26509 (__mbsrtowcs): Likewise.
26510 (__wcsrtombs): Likewise.
26511 (__mbsnrtowcs): Likewise.
26512 (__wcsnrtombs): Likewise.
26513 (__wcsncpy): Likewise.
26514 (__wcpncpy): Likewise.
26515 (__wmemcpy): Likewise.
26516 (__wmempcpy): Likewise.
26517 (__wmemmove): Likewise.
26518 (__wcschrnul): Likewise.
26519 (__vfwscanf): Likewise.
26520 (__vswprintf): Likewise.
26521 (__fwprintf): Likewise.
26522 (__vfwprintf): Likewise.
26523
26524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26525
26526 [BZ #18822]
26527 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26528 (__getgrgid_r): Likewise.
26529 (__getgrnam_r): Likewise.
26530 * include/pwd.h (__getpwuid_r): Likewise.
26531 (__getpwnam_r): Likewise.
26532 (__fgetpwent_r): Likewise.
26533 * include/shadow.h (__getspnam_r): Likewise.
26534 (__sgetspent_r): Likewise.
26535 (__fgetspent_r): Likewise.
26536
26537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26538
26539 [BZ #18822]
26540 * include/unistd.h (__access): Add attribute_hidden.
26541 (__lseek64): Likewise.
26542 (__libc_pread64): Likewise.
26543 (__pipe2): Likewise.
26544 (__sleep): Likewise.
26545 (__chdir): Likewise.
26546 (__fchdir): Likewise.
26547 (__getcwd): Likewise.
26548 (__rmdir): Likewise.
26549 (__execvpe): Likewise.
26550 (__execve): Likewise.
26551 (__setsid): Likewise.
26552 (__getuid): Likewise.
26553 (__geteuid): Likewise.
26554 (__getgid): Likewise.
26555 (__getegid): Likewise.
26556 (__getgroups): Likewise.
26557 (__group_member): Likewise.
26558 (__ttyname_r): Likewise.
26559 (__isatty): Likewise.
26560 (__readlink): Likewise.
26561 (__unlink): Likewise.
26562 (__gethostname): Likewise.
26563 (__profil): Likewise.
26564 (__getdtablesize): Likewise.
26565 (__brk): Likewise.
26566 (__ftruncate): Likewise.
26567 (__ftruncate64): Likewise.
26568
26569 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26570
26571 [BZ #18822]
26572 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26573 * argp/argp-fs-xinl.c: Likewise.
26574 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26575 * argp/argp-parse.c: Include <argp.h>.
26576 * argp/argp-xinl.c: Likewise.
26577 * include/argp-fmtstream.h: New file.
26578 * include/argp.h (__argp_error): Add attribute_hidden.
26579 (__argp_failure): Likewise.
26580 (__argp_input): Likewise.
26581 (__argp_state_help): Likewise.
26582
26583 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26584
26585 [BZ #18822]
26586 * include/wchar.h (____wcstof_l_internal): New prototype.
26587 (____wcstod_l_internal): Likewise.
26588 (____wcstold_l_internal): Likewise.
26589 (____wcstol_l_internal): Likewise.
26590 (____wcstoul_l_internal): Likewise.
26591 (____wcstoll_l_internal): Likewise.
26592 (____wcstoull_l_internal): Likewise.
26593 (____wcstof128_l_internal): Likewise.
26594 * sysdeps/ieee754/float128/wcstof128.c
26595 (____wcstof128_l_internal): Removed.
26596 * sysdeps/ieee754/float128/wcstof128_l.c
26597 (____wcstof128_l_internal): Likewise.
26598 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26599 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26600 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26601 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26602 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26603 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26604 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26605 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26606 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26607 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26608
26609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26610
26611 [BZ #18822]
26612 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26613 instead of <sys/statvfs.h>.
26614 (__internal_statvfs): Removed.
26615 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26616 instead of <sys/statvfs.h>.
26617 (__internal_statvfs64): Removed.
26618 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26619 "internal_statvfs.h" instead of <sys/statvfs.h>.
26620 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26621 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26622 instead of <sys/statvfs.h>.
26623 (__internal_statvfs): Removed.
26624 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26625 instead of <sys/statvfs.h>.
26626 (__internal_statvfs64): Removed.
26627
26628 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26629
26630 [BZ #18822]
26631 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26632 (__gconv_close): Likewise.
26633 (__gconv): Likewise.
26634 (__gconv_find_transform): Likewise.
26635 (__gconv_lookup_cache): Likewise.
26636 (__gconv_compare_alias_cache): Likewise.
26637 (__gconv_load_cache): Likewise.
26638 (__gconv_get_path): Likewise.
26639 (__gconv_close_transform): Likewise.
26640 (__gconv_release_cache): Likewise.
26641 (__gconv_find_shlib): Likewise.
26642 (__gconv_release_shlib): Likewise.
26643 (__gconv_get_builtin_trans): Likewise.
26644 (__gconv_compare_alias): Likewise.
26645 * include/dlfcn.h (_dlerror_run): Likewise.
26646 * include/stdio.h (__fortify_fail_abort): Likewise.
26647 * include/time.h (__tz_compute): Likewise.
26648 (__strptime_internal): Likewise.
26649 * intl/gettextP.h (_nl_find_domain): Likewise.
26650 (_nl_load_domain): Likewise.
26651 (_nl_find_msg): Likewise.
26652 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26653 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26654 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26655 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26656 (__gai_find_request): Likewise.
26657 (__gai_remove_request): Likewise.
26658 (__gai_notify): Likewise.
26659 (__gai_notify_only): Likewise.
26660 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26661 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26662 (_dl_non_dynamic_init): Likewise.
26663 (_dl_aux_init): Likewise.
26664 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26665 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26666 Likewise.
26667 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26668 (__wcsmbs_clone_conv): Likewise.
26669 (__wcsmbs_named_conv): Likewise.
26670
26671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26672
26673 [BZ #18822]
26674 * include/stdlib.h (__random): Add attribute_hidden.
26675 (__random_r): Likewise.
26676 (__srandom_r): Likewise.
26677 (__initstate_r): Likewise.
26678 (__setstate_r): Likewise.
26679 (__erand48_r): Likewise.
26680 (__nrand48_r): Likewise.
26681 (__jrand48_r): Likewise.
26682 (__srand48_r): Likewise.
26683 (__seed48_r): Likewise.
26684 (__lcong48_r): Likewise.
26685 (__drand48_iterate): Likewise.
26686 (__setenv): Likewise.
26687 (__unsetenv): Likewise.
26688 (__clearenv): Likewise.
26689 (__ptsname_r): Likewise.
26690 (__posix_openpt): Likewise.
26691 (__add_to_environ): Likewise.
26692 (__realpath): Add libc_hidden_proto.
26693 (__ecvt_r): Likewise.
26694 (__fcvt_r): Likewise.
26695 (__qecvt_r): Likewise.
26696 (__qfcvt_r): Likewise.
26697 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26698 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26699
26700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26701
26702 [BZ #18822]
26703 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26704 * include/time.h (__mktime_internal): Likewise.
26705 * libio/iolibio.h (__fopen_internal): Likewise.
26706
26707 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26708
26709 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26710 pointer in frame.
26711 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26712 Correct offset used to restore PIC register.
26713
26714 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26715
26716 [BZ libc/22165]
26717 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26718 code to load address of __getcontext_ret when generating PIC code.
26719
26720 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 * elf/Makefile (tests-static-internal): Add
26723 tst-tls1-static-non-pie.
26724 (LDFLAGS-tst-tls1-static-non-pie): New.
26725 * elf/tst-tls1-static-non-pie.c: New file.
26726
26727 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26728
26729 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26730 (asinh): Define using libm_alias_double.
26731 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26732 (cbrt): Define using libm_alias_double.
26733 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26734 <libm-alias-double.h>.
26735 (copysign): Define using libm_alias_double.
26736 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26737 (erf): Define using libm_alias_double.
26738 (erfc): Likewise.
26739 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26740 (expm1): Define using libm_alias_double.
26741 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26742 (fabs): Define using libm_alias_double.
26743 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26744 libm_alias_double.
26745 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26746 <libm-alias-double.h>.
26747 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26748 libm_alias_double.
26749 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26750 <libm-alias-double.h>.
26751 (getpayload): Define using libm_alias_double.
26752 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26753 <libm-alias-double.h>.
26754 (llrint): Define using libm_alias_double.
26755 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26756 (lrint): Define using libm_alias_double.
26757 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26758 <libm-alias-double.h>.
26759 (nextup): Define using libm_alias_double.
26760 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26761 <libm-alias-double.h>.
26762 (roundeven): Define using libm_alias_double.
26763 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26764 libm_alias_double.
26765 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26766 <libm-alias-double.h>.
26767 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26768 using libm_alias_double.
26769 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26770 (cos): Define using libm_alias_double.
26771 (sin): Likewise.
26772 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26773 <libm-alias-double.h>.
26774 (sincos): Define using libm_alias_double.
26775 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26776 (tanh): Define using libm_alias_double.
26777 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26778 <libm-alias-double.h>.
26779 (totalorder): Define using libm_alias_double.
26780 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26781 <libm-alias-double.h>.
26782 (totalordermag): Define using libm_alias_double.
26783 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26784 libm_alias_double.
26785 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26786 libm_alias_double.
26787 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26788 <libm-alias-double.h>.
26789 (getpayload): Define using libm_alias_double.
26790 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26791 <libm-alias-double.h>.
26792 (roundeven): Define using libm_alias_double.
26793 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26794 <libm-alias-double.h>.
26795 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26796 <libm-alias-double.h>.
26797 (totalorder): Define using libm_alias_double.
26798 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26799 <libm-alias-double.h>.
26800 (totalordermag): Define using libm_alias_double.
26801 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26802 libc compat symbol here.
26803 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26804 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26805 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26806 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26807 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26808 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26809 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26810 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26811 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26812 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26813
26814 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26815
26816 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26817 _dl_relocate_static_pie instead of _dl_start to compute load
26818 address in static PIE. Return 0 if _DYNAMIC is undefined for
26819 static executable.
26820
26821 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26822
26823 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26824 _DYNAMIC is undefined for static executable.
26825
26826 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26827
26828 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26829
26830 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26831
26832 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26833
26834 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26835
26836 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26837 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26838 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26839 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26840 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26841 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26842 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26843 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26844 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26845 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26846 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26847 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26848 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26849 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26850 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26851 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26852 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26853
26854 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26855
26856 * math/bits/cmathcalls.h (cimag): Remove inline.
26857 (creal): Remove inline.
26858 (conj): Remove inline.
26859
26860 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26861
26862 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26863 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26864 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26865 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26866 (issignalingf_inline): Likewise.
26867 (POWF_LOG2_TABLE_BITS): Likewise.
26868 (POWF_LOG2_POLY_ORDER): Likewise.
26869 (POWF_SCALE_BITS): Likewise.
26870 (POWF_SCALE): Likewise.
26871 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26872 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26873 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26874
26875 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26876
26877 * math/Makefile (type-float-routines): Add e_log2f_data.
26878 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26879 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26880 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26881 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26882 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26883 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26884 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26885
26886 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26887
26888 * math/Makefile (type-float-routines): Add e_logf_data.
26889 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26890 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26891 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26892 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26893 * sysdeps/i386/fpu/e_logf_data.c: New file.
26894 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26895 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26896
26897 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26898
26899 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26900 undefined _DYNAMIC in PIE libc.a.
26901 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26902 Likewse.
26903
26904 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26905
26906 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26907 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26908 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26909 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26910 (__signbit): Remove.
26911 (__signbitl): Remove.
26912 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26913 (__signbit): Remove.
26914 (__signbitl): Remove.
26915 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26916 (__signbit): Remove.
26917 (__signbitl): Remove.
26918 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26919 (__signbit): Remove.
26920 (__signbitl): Remove.
26921 * sysdeps/tile/bits/mathinline.h: Delete file.
26922 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26923 (__signbit): Remove.
26924 (__signbitl): Remove.
26925
26926 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26927
26928 * math/math.h: Improve handling of C99 isgreater macros.
26929 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26930 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26931 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26932 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26933 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26934
26935 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26936
26937 * sysdeps/aarch64/libm-test-ulps: Update.
26938
26939 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26940
26941 [BZ #22225]
26942 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26943 math_opt_barrier on argument when doing arithmetic on it.
26944 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26945 Likewise. Use math_force_eval not math_opt_barrier after
26946 arithmetic.
26947 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26948 math_opt_barrier on argument when doing arithmetic on it.
26949 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26950 Likewise.
26951
26952 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26953
26954 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26955 libc_hidden_def.
26956 (__freeifaddrs): Likewise.
26957
26958 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26959
26960 * include/dirent.h (__dirfd): New declaration.
26961 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26962 alias.
26963 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26964 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26965 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26966 * include/unistd.h (__revoke): New declaration.
26967 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26968 alias.
26969 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26970 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26971 revoke.
26972 * include/dirent.h (__seekdir): New declaration.
26973 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26974 redefine as weak alias.
26975 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26976 of seekdir.
26977 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26978 and use libc_hidden_def on them.
26979 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26980 them.
26981 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26982 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26983 instead of getifaddrs and freeifaddrs.
26984
26985 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26986
26987 [BZ #18822]
26988 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26989 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26990 (__dso_handle): Remove declaration.
26991 * dlfcn/tstatexit.c (__dso_handle): Removed.
26992 (main): Don't check __dso_handle.
26993 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26994 (main): Don't check __dso_handle.
26995 * include/dso_handle.h: New file.
26996 * malloc/mtrace.c: Include <dso_handle.h>.
26997 (mtrace): Pass __dso_handle directly.
26998 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26999 (__dso_handle): Remove declaration.
27000 (__pthread_atfork): Pass __dso_handle directly.
27001 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27002 (__dso_handle): Removed.
27003 * posix/wordexp-test.c: Include <dso_handle.h>.
27004 (__dso_handle): Remove declaration.
27005 (__app_register_atfork): Pass __dso_handle directly.
27006 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27007 (__dso_handle): Remove declaration.
27008 (at_quick_exit): Pass __dso_handle directly.
27009 * stdlib/atexit.c: Include <dso_handle.h>.
27010 (__dso_handle): Remove declaration.
27011 (atexit): Pass __dso_handle directly.
27012 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27013 (__dso_handle): Removed.
27014
27015 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27016
27017 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27018 using VDSO.
27019
27020 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27021
27022 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27023 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27024 values to correct default value for given type.
27025
27026 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27027
27028 [BZ #22101]
27029 * elf/Makefile (tests): Add tst-debug1.
27030 ($(objpfx)tst-debug1): New.
27031 ($(objpfx)tst-debug1.out): Likewise.
27032 ($(objpfx)tst-debug1mod1.so): Likewise.
27033 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27034 with p_filesz == 0.
27035 * elf/tst-debug1.c: New file.
27036
27037 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27038
27039 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27040 Define using __ifunc.
27041
27042 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27043
27044 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27045 exp2f() values.
27046
27047 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27048
27049 [BZ #22156]
27050 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27051
27052 2017-09-26 Florian Weimer <fweimer@redhat.com>
27053
27054 * resolv/Makefile (tests-internal): Fix typo in comment.
27055
27056 2017-09-26 Florian Weimer <fweimer@redhat.com>
27057
27058 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27059
27060 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27061
27062 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27063 Use an union instead of a max_align_t array for __space,
27064 so that __space is the same size on all platforms.
27065 * malloc/scratch_buffer_grow_preserve.c
27066 (__libc_scratch_buffer_grow_preserve): Likewise.
27067
27068 [BZ #22183]
27069 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27070 version to 2.
27071 * posix/Makefile (routines): Add glob-lstat-compat and
27072 glob64-lstat-compat.
27073 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27074 * posix/glob-lstat-compat.c: New file.
27075 * posix/glob64-lstat-compat.c: Likewise.
27076 * posix/tst-glob_lstat_compat.c: Likewise.
27077 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27078 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27079 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27080 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27081 Likewise.
27082 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27083 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27084 * posix/glob.c (glob_lstat): New function.
27085 (glob): Rename to __glob and add versioned symbol to 2.27.
27086 (glob_in_dir): Use glob_lstat.
27087 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27088 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27089 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27090 2.27.
27091 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27092 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27093 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27094 gl_lstat on glob call.
27095 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27096 and glob64 symbols.
27097 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27098 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27099 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27100 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27101 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27102 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27103 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27104 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27105 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27106 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27107 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27108 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27110 Likewise.
27111 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27113 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27114 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27115 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27116 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27117 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27118 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27119 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27120 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27121 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27122 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27123
27124 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27125
27126 * configure.ac (AS): Require binutils 2.25 or later.
27127 * configure: Regenerated.
27128
27129 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27130
27131 [BZ #22207]
27132 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27133 VM size.
27134
27135 2017-09-25 DJ Delorie <dj@redhat.com>
27136
27137 [BZ #22161]
27138 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27139 resetting timeout.
27140
27141 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27142
27143 * sysdeps/ieee754/dbl-64/sincos32.h
27144 [SINCCOS32_H]: Remove define.
27145 [SINCOS32_H]: Define.
27146
27147 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27148
27149 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27150 (exp2f): Likewise.
27151 * math/w_exp2f.c: New file.
27152 * math/w_expf.c: New file.
27153 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27154 * math/w_expf_compat.c (__expf_compat): Likewise.
27155 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27156 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27157 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27158 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27159 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27160 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27161 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27162 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27163 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27164 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27165 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27166 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27167 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27168 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27169 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27170 Likewise.
27171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27172 Likewise.
27173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27174 Likewise.
27175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27176 Likewise.
27177 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27178 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27179 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27180 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27181 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27182 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27183 Likewise.
27184 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27185 Likewise.
27186 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27187 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27188 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27189
27190 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27191
27192 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27193 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27194 (roundtoint, converttoint): Likewise.
27195 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27196 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27197 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27198 * sysdeps/ieee754/flt-32/math_config.h: New file.
27199 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27200 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27201 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27202 * sysdeps/i386/fpu/math_errf.c: New file.
27203 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27204 * sysdeps/ia64/fpu/math_errf.c: New file.
27205 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27206 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27207
27208 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27209
27210 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27211 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27212 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27213 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27214 to make sure that these symbols are defined.
27215 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27216 of <limits.h>
27217 (__need_NULL): Do not define.
27218 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27219 alignment.
27220 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27221 CMGROUP_MAX, cmsgcred): Do not define.
27222 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27223 NULL.
27224 * bits/socket.h: Likewise.
27225 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27226 __gettimeofday instead of gettimeofday.
27227 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27228 instead of settimeofday.
27229
27230 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27231
27232 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27233 (asinhf): Define using libm_alias_float.
27234 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27235 (atanf): Define using libm_alias_float.
27236 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27237 (cbrtf): Define using libm_alias_float.
27238 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27239 (ceilf): Define using libm_alias_float.
27240 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27241 <libm-alias-float.h>.
27242 (copysignf): Define using libm_alias_float.
27243 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27244 (cosf): Define using libm_alias_float.
27245 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27246 (erff): Define using libm_alias_float.
27247 (erfcf): Likewise.
27248 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27249 (expm1f): Define using libm_alias_float.
27250 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27251 (fabsf): Define using libm_alias_float.
27252 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27253 (floorf): Define using libm_alias_float.
27254 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27255 (frexpf): Define using libm_alias_float.
27256 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27257 libm_alias_float.
27258 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27259 <libm-alias-float.h>.
27260 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27261 libm_alias_float.
27262 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27263 <libm-alias-float.h>.
27264 (getpayloadf): Define using libm_alias_float.
27265 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27266 <libm-alias-float.h>.
27267 (llrintf): Define using libm_alias_float.
27268 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27269 <libm-alias-float.h>.
27270 (llroundf): Define using libm_alias_float.
27271 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27272 (logbf): Define using libm_alias_float.
27273 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27274 (lrintf): Define using libm_alias_float.
27275 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27276 (lroundf): Define using libm_alias_float.
27277 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27278 (modff): Define using libm_alias_float.
27279 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27280 <libm-alias-float.h>.
27281 (nearbyintf): Define using libm_alias_float.
27282 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27283 <libm-alias-float.h>.
27284 (nextafterf): Define using libm_alias_float.
27285 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27286 <libm-alias-float.h>.
27287 (nextupf): Define using libm_alias_float.
27288 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27289 <libm-alias-float.h>.
27290 (remquof): Define using libm_alias_float.
27291 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27292 (rintf): Define using libm_alias_float.
27293 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27294 <libm-alias-float.h>.
27295 (roundevenf): Define using libm_alias_float.
27296 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27297 (roundf): Define using libm_alias_float.
27298 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27299 using libm_alias_float.
27300 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27301 <libm-alias-float.h>.
27302 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27303 Define using libm_alias_float.
27304 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27305 <libm-alias-float.h>.
27306 (sincosf): Define using libm_alias_float.
27307 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27308 (sinf): Define using libm_alias_float.
27309 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27310 (tanf): Define using libm_alias_float.
27311 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27312 (tanhf): Define using libm_alias_float.
27313 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27314 <libm-alias-float.h>.
27315 (totalorderf): Define using libm_alias_float.
27316 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27317 <libm-alias-float.h>.
27318 (totalordermagf): Define using libm_alias_float.
27319 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27320 (truncf): Define using libm_alias_float.
27321 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27322 libm_alias_float.
27323 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27324 libm_alias_float.
27325
27326 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27327
27328 [BZ #22146]
27329 math/math.h: Let fpclassify use the builtin in C++ mode, even
27330 when optimazing for size.
27331
27332 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27333
27334 * csu/Makefile (generated): Do not add version-info.h.
27335 (before-compile): Likewise.
27336 (all-Banner-files): Remove variable.
27337 ($(objpfx)version-info.h): Remove rule.
27338 * csu/version.c (banner): Do not include "version-info.h".
27339 * libidn/Banner: Remove.
27340 * manual/contrib.texi (Simon Josefsson): New entry.
27341
27342 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27343
27344 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27345 Remove conditionals on LDBL_MANT_DIG.
27346 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27347 (__ieee754_lgammal_r): Likewise.
27348
27349 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27350
27351 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27352 _Float128 and L().
27353 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27354 _Float128 and L(). Replace _Float128 with long double and L(x)
27355 with xL, throughout the file.
27356 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27357 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27358 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27359 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27360
27361 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27362
27363 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27364 sysdeps/ieee754/ldbl-128ibm.
27365 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27366 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27367 of including it. Keep _Float128 and L() intact. These will be
27368 reviewed by a separate patch.
27369 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27370 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27371 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27372 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27373
27374 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27375
27376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27377 (__finitef128): Define to __redirect___finitef128.
27378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27379 (__isinff128): Define to __redirect___isinff128.
27380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27381 (__isnanf128): Define to __redirect___isnanf128.
27382
27383 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27384
27385 * sysdeps/powerpc/powerpc64le/Makefile
27386 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27387 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27388
27389 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27390 Carlos O'Donell <carlos@redhat.com>
27391
27392 [BZ #22180]
27393 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27394 * stdlib/test-dlclose-exit-race.c: New file.
27395 * stdlib/test-dlclose-exit-race-helper.c: New file.
27396 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27397
27398 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27399
27400 * crypt/Banner: Remove file.
27401 * nptl/Banner: Likewise.
27402 * resolv/Banner: Likewise.
27403 * soft-fp/Banner: Likewise.
27404 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27405 ($(objpfx)version.d): Remove dependency on banner.h.
27406 ($(objpfx)version.os): Likewise.
27407 * nptl/version.c (banner): Do not include banner.h.
27408 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27409 Jelinek and BIND code.
27410
27411 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27412 Carlos O'Donell <carlos@redhat.com>
27413
27414 * support/xdlfcn.h: New file.
27415 * support/xdlfcn.c: New file.
27416 * support/Makefile (libsupport-routines): Add xdlfcn.
27417 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27418
27419 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27420
27421 [BZ #20142]
27422 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27423 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27424 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27425 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27426 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27427 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27428 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27429 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27430
27431 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27432 Ricky Zhou <rickyz@google.com>
27433 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27434
27435 [BZ #14333]
27436 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27437 Remove atomics.
27438 (__new_exitfn): Fail registration when we finished at_exit processing.
27439 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27440 * stdlib/on_exit.c (__on_exit): Likewise.
27441 * stdlib/exit.c (__exit_funcs_done): New variable.
27442 (__run_exit_handlers): Use __exit_funcs_lock.
27443 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27444 declarations.
27445 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27446 (test-cxa_atexit-race, test-on_exit-race): New tests.
27447 * stdlib/test-atexit-race-common.c: New file.
27448 * stdlib/test-atexit-race.c: New file.
27449 * stdlib/test-at_quick_exit-race.c: New file.
27450 * stdlib/test-cxa_atexit-race.c: New file.
27451 * stdlib/test-on_exit-race.c: New file.
27452
27453 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27454
27455 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27456 * benchtests/exp2f-inputs: Copy of expf-inputs.
27457 * benchtests/log2f-inputs: Copy of logf-inputs.
27458
27459 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27460
27461 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27462 Explicitly take address of first element of array arguments in
27463 call to INLINE_SYSCALL.
27464
27465 2017-09-19 Andreas Schwab <schwab@suse.de>
27466
27467 [BZ #22134]
27468 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27469 execveat first.
27470 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27471 unimplemented.
27472 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27473 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27474 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27475 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27476 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27477 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27478 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27479 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27480 * posix/Makefile (tests): Add tst-fexecve.
27481 * posix/tst-fexecve.c: New file.
27482
27483 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27484
27485 * benchtests/Makefile: Add logf benchmark.
27486 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27487
27488 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27489
27490 * benchtests/Makefile: Add expf benchmark.
27491 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27492
27493 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27494
27495 * csu/Makefile: Add -funwind-tables to libc-start.c.
27496 * debug/Makefile: Add -funwind-tables to backtrace.c.
27497 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27498 * sysdeps/arm/Makefile: Likewise.
27499 * sysdeps/i386/Makefile: Likewise.
27500 * sysdeps/m68k/Makefile: Likewise.
27501 * sysdeps/mips/Makefile: Likewise.
27502 * sysdeps/nios2/Makefile: Likewise.
27503 * sysdeps/sh/Makefile: Likewise.
27504 * sysdeps/sparc/Makefile: Likewise.
27505
27506 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27507
27508 * benchtests/Makefile (bench-math): Add trunc and truncf.
27509 (CFLAGS-bench-trunc.c): New variable.
27510 (CFLAGS-bench-truncf.c): Likewise.
27511 * benchtests/trunc-inputs: New file.
27512 * benchtests/truncf-inputs: Likewise.
27513
27514 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27515
27516 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27517
27518 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27519
27520 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27521 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27522 redefine.
27523 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27524 (exp10l): Define as weak alias.
27525 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27526 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27527 and redefine.
27528 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27529 (remainderl): Define as weak alias.
27530
27531 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27532 (fmal): Define using libm_alias_ldouble.
27533 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27534 (acoshl): Define using libm_alias_ldouble.
27535 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27536 (acosl): Define using libm_alias_ldouble.
27537 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27538 (asinl): Define using libm_alias_ldouble.
27539 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27540 (atan2l): Define using libm_alias_ldouble.
27541 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27542 (atanhl): Define using libm_alias_ldouble.
27543 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27544 (coshl): Define using libm_alias_ldouble.
27545 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27546 (exp10l): Define using libm_alias_ldouble.
27547 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27548 (exp2l): Define using libm_alias_ldouble.
27549 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27550 (expl): Define using libm_alias_ldouble.
27551 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27552 (fmodl): Define using libm_alias_ldouble.
27553 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27554 (hypotl): Define using libm_alias_ldouble.
27555 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27556 (j0l): Define using libm_alias_ldouble.
27557 (y0l): Likewise.
27558 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27559 (j1l): Define using libm_alias_ldouble.
27560 (y1l): Likewise.
27561 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27562 (jnl): Define using libm_alias_ldouble.
27563 (ynl): Likewise.
27564 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27565 (log10l): Define using libm_alias_ldouble.
27566 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27567 (log2l): Define using libm_alias_ldouble.
27568 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27569 (logl): Define using libm_alias_ldouble.
27570 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27571 (powl): Define using libm_alias_ldouble.
27572 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27573 (remainderl): Define using libm_alias_ldouble.
27574 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27575 (sinhl): Define using libm_alias_ldouble.
27576 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27577 (sqrtl): Define using libm_alias_ldouble.
27578 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27579 (tgammal): Define using libm_alias_ldouble.
27580 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27581 (exp10l): Do not use long_double_symbol here.
27582 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27583 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27584 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27585 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27586 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27587 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27588 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27589 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27590 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27591 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27592 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27593 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27594 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27595 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27596 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27597 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27598 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27599 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27600 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27601 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27602 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27603 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27604
27605 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27606
27607 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27608 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27609
27610 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27611
27612 * io/read.c (read): Add libc_hidden_weak.
27613 * sysdeps/mach/hurd/read.c (read): Likewise.
27614 * io/write.c (write): Likewise.
27615 * sysdeps/mach/hurd/write.c (write): Likewise.
27616 * io/pread64.c (__pread64): Likewise.
27617 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27618 * posix/pread64.c (__pread64): Add libc_hidden_def.
27619
27620 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27621
27622 * benchtests/scripts/compare_strings.py: New option -g.
27623 (draw_graph): Print a message that a graph is being generated.
27624 (process_results): Generate graph only if -g is passed.
27625 (main): Process option -g.
27626
27627 * benchtests/scripts/compare_strings.py (process_results):
27628 Better spacing for output.
27629
27630 * benchtests/scripts/compare_strings.py: Use argparse.
27631 * benchtests/README: Document existence of compare_strings.py.
27632
27633 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27634
27635 * math/s_fma.c: Include <libm-alias-double.h>.
27636 (fma): Define using libm_alias_double.
27637 * math/s_nextafter.c: Include <libm-alias-double.h>.
27638 (nextafter): Define using libm_alias_double.
27639 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27640 (acos): Define using libm_alias_double.
27641 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27642 (aocsh): Define using libm_alias_double.
27643 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27644 (asin): Define using libm_alias_double.
27645 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27646 (atan2): Define using libm_alias_double.
27647 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27648 (atanh): Define using libm_alias_double.
27649 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27650 (cosh): Define using libm_alias_double.
27651 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27652 (exp10): Define using libm_alias_double.
27653 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27654 (exp2): Define using libm_alias_double.
27655 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27656 (exp): Define using libm_alias_double.
27657 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27658 (fmod): Define using libm_alias_double.
27659 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27660 (hypot): Define using libm_alias_double.
27661 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27662 (j0): Define using libm_alias_double.
27663 (y0): Likewise.
27664 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27665 (j1): Define using libm_alias_double.
27666 (y1): Likewise.
27667 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27668 (jn): Define using libm_alias_double.
27669 (yn): Likewise.
27670 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27671 (log10): Define using libm_alias_double.
27672 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27673 (log2): Define using libm_alias_double.
27674 * math/w_log_compat.c: Include <libm-alias-double.h>.
27675 (log): Define using libm_alias_double.
27676 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27677 (pow): Define using libm_alias_double.
27678 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27679 (remainder): Define using libm_alias_double.
27680 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27681 (sinh): Define using libm_alias_double.
27682 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27683 (sqrt): Define using libm_alias_double.
27684 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27685 (tgamma): Define using libm_alias_double.
27686 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27687 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27688 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27689 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27690 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27691 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27692 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27693 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27694 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27695 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27696 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27697 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27698 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27699 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27700 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27701 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27702 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27703 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27704 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27705 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27706 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27707 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27708 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27709 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27710 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27711
27712 * math/e_acoshl.c: Remove.
27713 * math/e_acosl.c: Likewise.
27714 * math/e_asinl.c: Likewise.
27715 * math/e_atan2l.c: Likewise.
27716 * math/e_atanhl.c: Likewise.
27717 * math/e_coshl.c: Likewise.
27718 * math/e_expl.c: Likewise.
27719 * math/e_fmodl.c: Likewise.
27720 * math/e_gammal_r.c: Likewise.
27721 * math/e_hypotl.c: Likewise.
27722 * math/e_j0l.c: Likewise.
27723 * math/e_j1l.c: Likewise.
27724 * math/e_jnl.c: Likewise.
27725 * math/e_lgammal_r.c: Likewise.
27726 * math/e_log10l.c: Likewise.
27727 * math/e_log2l.c: Likewise.
27728 * math/e_logl.c: Likewise.
27729 * math/e_powl.c: Likewise.
27730 * math/e_rem_pio2l.c: Likewise.
27731 * math/e_sinhl.c: Likewise.
27732 * math/e_sqrtf128.c: Likewise.
27733 * math/e_sqrtl.c: Likewise.
27734 * math/k_cosl.c: Likewise.
27735 * math/k_sinl.c: Likewise.
27736 * math/k_tanl.c: Likewise.
27737 * math/s_asinhl.c: Likewise.
27738 * math/s_atanl.c: Likewise.
27739 * math/s_cbrtl.c: Likewise.
27740 * math/s_erfl.c: Likewise.
27741 * math/s_expm1l.c: Likewise.
27742 * math/s_log1pl.c: Likewise.
27743 * math/s_tanhl.c: Likewise.
27744
27745 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27746
27747 [BZ #21745]
27748 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27749 [$(subdir) = math] (sysdep_calls): New variable. Has the
27750 previous contents of sysdep_routines, but re-sorted..
27751 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27752 sysdep_calls.
27753 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27754 defined in sysdep_calls and replace by the respective m_* names.
27755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27756 (compat_symbol): Undefine to avoid duplicated compat symbols in
27757 libc.
27758
27759 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27760
27761 * math/s_fmaf.c: Include <libm-alias-float.h>.
27762 (fmaf): Define using libm_alias_float.
27763 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27764 (acosf): Define using libm_alias_float.
27765 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27766 (acoshf): Define using libm_alias_float.
27767 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27768 (asinf): Define using libm_alias_float.
27769 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27770 (atan2f): Define using libm_alias_float.
27771 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27772 (atanhf): Define using libm_alias_float.
27773 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27774 (coshf): Define using libm_alias_float.
27775 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27776 (exp10f): Define using libm_alias_float.
27777 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27778 (fmodf): Define using libm_alias_float.
27779 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27780 (hypotf): Define using libm_alias_float.
27781 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27782 (j0f): Define using libm_alias_float.
27783 (y0f): Likewise.
27784 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27785 (j1f): Define using libm_alias_float.
27786 (y1f): Likewise.
27787 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27788 (jnf): Define using libm_alias_float.
27789 (ynf): Likewise.
27790 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27791 (log10f): Define using libm_alias_float.
27792 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27793 (log2f): Define using libm_alias_float.
27794 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27795 (logf): Define using libm_alias_float.
27796 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27797 (powf): Define using libm_alias_float.
27798 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27799 (remainderf): Define using libm_alias_float.
27800 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27801 (sinhf): Define using libm_alias_float.
27802 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27803 (sqrtf): Define using libm_alias_float.
27804 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27805 (tgammaf): Define using libm_alias_float.
27806
27807 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27808
27809 * include/math.h (roundeven): Change hidden_proto call to
27810 __roundeven.
27811 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27812 alias.
27813 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27814 (y0): Rename to __y0 and define as weak alias.
27815 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27816 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27817 alias.
27818 (y0f): Rename to __y0f and define as weak alias.
27819 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27820 alias.
27821 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27822 (y1): Rename to __y1 and define as weak alias.
27823 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27824 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27825 alias.
27826 (y1f): Rename to __y1f and define as weak alias.
27827 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27828 alias.
27829 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27830 (yn): Rename to __yn and define as weak alias.
27831 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27832 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27833 alias.
27834 (ynf): Rename to __ynf and define as weak alias.
27835 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27836 (fromfp): Define as weak alias.
27837 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27838 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27839 (fromfpx): Define as weak alias.
27840 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27841 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27842 __getpayload and define as weak alias.
27843 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27844 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27845 __roundeven and define as weak alias.
27846 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27847 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27848 __setpayload.
27849 (setpayload): Define as weak alias.
27850 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27851 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27852 __setpayloadsig.
27853 (setpayloadsig): Define as weak alias.
27854 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27855 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27856 __totalorder and define as weak alias.
27857 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27858 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27859 to __totalordermag and define as weak alias.
27860 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27861 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27862 (ufromfp): Define as weak alias.
27863 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27864 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27865 __ufromfpx.
27866 (ufromfpx): Define as weak alias.
27867 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27868 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27869 Rename to __getpayload and define as weak alias.
27870 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27871 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27872 Rename to __roundeven and define as weak alias.
27873 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27874 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27875 Rename to __totalorder and define as weak alias.
27876 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27877 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27878 (totalordermag): Rename to __totalordermag and define as weak
27879 alias.
27880 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27881 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27882 macro.
27883 (__roundevenl): Likewise.
27884 (__totalorderl): Likewise.
27885 (__totalordermagl): Likewise
27886 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27887 __fromfpf128.
27888 (fromfpf128): Define as weak alias.
27889 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27890 __fromfpxf128.
27891 (fromfpxf128): Define as weak alias.
27892 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27893 __setpayloadf128.
27894 (setpayloadf128): Define as weak alias.
27895 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27896 __setpayloadsigf128.
27897 (setpayloadsigf128): Define as weak alias.
27898 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27899 __ufromfpf128.
27900 (ufromfpf128): Define as weak alias.
27901 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27902 __ufromfpxf128.
27903 (ufromfpxf128): Define as weak alias.
27904 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27905 (fromfpf): Define as weak alias.
27906 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27907 __fromfpxf.
27908 (fromfpxf): Define as weak alias.
27909 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27910 __getpayloadf and define as weak alias.
27911 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27912 __roundevenf and define as weak alias.
27913 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27914 __setpayloadf.
27915 (setpayloadf): Define as weak alias.
27916 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27917 __setpayloadsigf.
27918 (setpayloadsigf): Define as weak alias.
27919 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27920 __totalorderf and define as weak alias.
27921 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27922 Rename to __totalordermagf and define as weak alias.
27923 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27924 __ufromfpf.
27925 (ufromfpf): Define as weak alias.
27926 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27927 __ufromfpxf.
27928 (ufromfpxf): Define as weak alias.
27929 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27930 __fromfpl.
27931 (fromfpl): Define as weak alias.
27932 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27933 __fromfpxl.
27934 (fromfpxl): Define as weak alias.
27935 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27936 to __getpayloadl and define as weak alias.
27937 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27938 __roundevenl and define as weak alias.
27939 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27940 __setpayloadl.
27941 (setpayloadl): Define as weak alias.
27942 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27943 __setpayloadsigl.
27944 (setpayloadsigl): Define as weak alias.
27945 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27946 to __totalorderl and define as weak alias.
27947 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27948 Rename to __totalordermagl and define as weak alias.
27949 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27950 __ufromfpl.
27951 (ufromfpl): Define as weak alias.
27952 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27953 __ufromfpxl.
27954 (ufromfpxl): Define as weak alias.
27955 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27956 __fromfpl.
27957 (fromfpl): Define as weak alias.
27958 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27959 __fromfpxl.
27960 (fromfpxl): Define as weak alias.
27961 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27962 Rename to __getpayloadl and define as weak alias.
27963 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27964 to __roundevenl and define as weak alias. Call __roundeven
27965 instead of roundeven.
27966 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27967 __setpayloadl.
27968 (setpayloadl): Define as weak alias.
27969 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27970 __setpayloadsigl.
27971 (setpayloadsigl): Define as weak alias.
27972 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27973 Rename to __totalorderl and define as weak alias.
27974 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27975 Rename to __totalordermagl and define as weak alias.
27976 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27977 __ufromfpl.
27978 (ufromfpl): Define as weak alias.
27979 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27980 __ufromfpxl.
27981 (ufromfpxl): Define as weak alias.
27982 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27983 __fromfpl.
27984 (fromfpl): Define as weak alias.
27985 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27986 __fromfpxl.
27987 (fromfpxl): Define as weak alias.
27988 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27989 __getpayloadl and define as weak alias.
27990 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27991 __roundevenl and define as weak alias.
27992 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27993 __setpayloadl.
27994 (setpayloadl): Define as weak alias.
27995 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27996 __setpayloadsigl.
27997 (setpayloadsigl): Define as weak alias.
27998 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27999 __totalorderl and define as weak alias.
28000 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28001 Rename to __totalordermagl and define as weak alias.
28002 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28003 __ufromfpl.
28004 (ufromfpl): Define as weak alias.
28005 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28006 __ufromfpxl.
28007 (ufromfpxl): Define as weak alias.
28008
28009 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28010
28011 * benchtests/bench-string.h (realloc_bufs): New function.
28012 (test_init): Call it.
28013 * benchtests/bench-memset-large.c (do_test): Likewise.
28014 * benchtests/bench-memset.c (do_test): Likewise.
28015
28016 * benchtests/bench-memset-large.c: Print output in JSON
28017 format.
28018 * benchtests/bench-memset.c: Likewise.
28019
28020 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28021
28022 [BZ #21084]
28023 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28024 * iconvdata/Makefile: Add IBM858.
28025 * iconvdata/gconv-modules: Likewise.
28026 * iconvdata/tst-tables.sh: Likewise.
28027 * iconvdata/ibm858.c: New file.
28028 * localedata/charmaps/IBM858: Likewise.
28029
28030 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28031
28032 [BZ #22023]
28033 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28034 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28035
28036 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28037
28038 [BZ #22112]
28039 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28040 and add tel_int_fmt.
28041
28042 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28043
28044 * sysdeps/generic/libm-alias-float128.h: New file.
28045 * sysdeps/generic/math-type-macros-float128.h: Include
28046 <libm-alias-float128.h>.
28047 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28048
28049 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28050
28051 * sysdeps/generic/libm-alias-ldouble.h: New file.
28052 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28053 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28054 * sysdeps/generic/math-type-macros-ldouble.h: Include
28055 <libm-alias-ldouble.h>.
28056 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28057 libm_alias_ldouble.
28058
28059 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28060
28061 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28062 * math/w_exp_compat.c: ... here.
28063 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28064 * math/w_expf_compat.c: ... here.
28065 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28066 * math/w_expl_compat.c: ... here.
28067 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28068 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28069 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28070 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28071
28072 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28073
28074 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28075 redefine.
28076 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28077 macro.
28078 (ldexpl): Only define as compat symbol for libc, not libm.
28079 (scalbnl): Define as compat symbol for libc here.
28080 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28081 define for [IS_IN (libc)].
28082 (__ldexpl_2): Remove alias.
28083 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28084 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28085 name in long_double_symbol call.
28086 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28087 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28088 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28089 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28090 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28091 Remove macro.
28092 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28093 Define as compat symbol.
28094
28095 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28096
28097 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28098 * sysdeps/unix/sysv/linux/alpha/Makefile
28099 [$(subdir) = csu] (sysdep_routines): Remove rule.
28100
28101 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28102
28103 * sysdeps/generic/libm-alias-double.h: New file.
28104 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28105 * sysdeps/generic/math-type-macros-double.h: Include
28106 <libm-alias-double.h>.
28107 [declare_mgen_alias] (declare_mgen_alias): Define to use
28108 libm_alias_double.
28109 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28110 (M_LIBM_NEED_COMPAT): Remove macro.
28111 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28112 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28113 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28114 code.
28115 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28116 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28117 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28118 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28119 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28120 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28121 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28122 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28123 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28124 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28125 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28126 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28127 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28128 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28129 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28130 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28131 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28132 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28133 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28134 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28135 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28136 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28137 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28138 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28139 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28140 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28141 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28142 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28143 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28144 macro.
28145 (declare_mgen_alias): New macro.
28146 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28147 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28149 (M_LIBM_NEED_COMPAT): Remove macro.
28150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28151 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28152 <first-versions.h>.
28153 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28154 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28155
28156 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28157
28158 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28159 (declare_mgen_alias_2): Remove.
28160 * sysdeps/generic/math-type-macros-double.h
28161 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28162 Likewise.
28163 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28164 alias.
28165 (ldexp): Define with declare_mgen_alias.
28166 (scalbn): Likewise.
28167
28168 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28169
28170 * grp/initgroups.c: Include config.h.
28171 (DEFAULT_CONFIG): New macro.
28172 (internal_getgrouplist): Use DEFAULT_CONFIG.
28173 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28174 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28175 (DEFAULT_DEFCONFIG): New macro.
28176 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28177 * nss/grp-lookup.c: Include config.h
28178 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28179 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28180 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28181 * manual/nss.texi: Update default values section.
28182
28183 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28184
28185 [BZ #21967]
28186 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28187 New.
28188 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28189 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28190 Handle MathVec_Prefer_No_AVX512.
28191 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28192 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28193 is set.
28194
28195 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28196
28197 * posix/sched_primax.c (__sched_get_priority_max): Add
28198 libc_hidden_def.
28199 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28200 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28201 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28202 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28203 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28204 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28205 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28206 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28207 Add aliases.
28208
28209 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28210
28211 * sysdeps/generic/libm-alias-float.h: New file.
28212 * sysdeps/generic/math-type-macros-float.h: Include
28213 <libm-alias-float.h>.
28214 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28215
28216 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28217
28218 [BZ #22093]
28219 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28220 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28221 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28222 (HWCAP_IMPORTANT): Likewise.
28223 (HWCAP_X86_64): New enum.
28224 (HWCAP_X86_AVX512_1): Updated.
28225 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28226 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28227 (modules-names): Add x86_64/tst-x86_64mod-1.
28228 (LDFLAGS-tst-x86_64mod-1.so): New.
28229 ($(objpfx)tst-x86_64-1): Likewise.
28230 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28231 (tst-x86_64-1-clean): Likewise.
28232 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28233 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28234
28235 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28236
28237 * po/sv.po: Update translations.
28238 * po/fr.po: Likewise.
28239
28240 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28241
28242 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28243 seconds.
28244 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28245 seconds.
28246 * elf/rtld-Rules: Fix $(error) use.
28247
28248 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28249
28250 [BZ #14925]
28251 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28252 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28253 * localedata/locales/bn_BD: “Bengali” was still used in some
28254 comments. Change it to “Bangla”.
28255
28256 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28257
28258 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28259
28260 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28261
28262 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28263 thunderx2t99p1 to list of cpu names.
28264 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28265 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28266
28267 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28268
28269 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28270 Use strcmp instead of tunable_is_name.
28271
28272 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28273
28274 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28275 (F_GET_RW_HINT): New macro.
28276 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28277 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28278 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28279 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28280 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28281 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28282 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28283 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28284 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28285
28286 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28287 (F_ADD_SEALS): New macro.
28288 [__USE_GNU] (F_GET_SEALS): Likewise.
28289 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28290 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28291 [__USE_GNU] (F_SEAL_GROW): Likewise.
28292 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28293
28294 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28295
28296 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28297 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28298 * posix/glob_internal.h (__glob_pattern_type):
28299 * posix/glob.c (glob):
28300 * posix/glob_pattern_p.c (__glob_pattern_p):
28301 Use them.
28302
28303 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28304 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28305 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28306 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28307 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28309 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28310 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28311 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28312 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28313 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28314 * sysdeps/wordsize-64/glob.c: Likewise.
28315 * sysdeps/wordsize-64/glob64.c: Likewise.
28316 * sysdeps/wordsize-64/globfree.c: Likewise.
28317 * sysdeps/wordsize-64/globfree64.c: Likewise.
28318 * sysdeps/unix/sysv/linux/glob.c: New file.
28319 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28320 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28321 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28322 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28323 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28324 adds !GLOB_NO_OLD_VERSION as an extra condition.
28325 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28326 using relative path instead of absolute one.
28327 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28328 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28329 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28330 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28331 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28332 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28333
28334 [BZ #1062]
28335 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28336 (glob): Use the same scratch buffer for both getlogin_r and
28337 getpwnam_r. Don’t require preallocation of the login name. This
28338 simplifies storage allocation, and corrects the handling of
28339 long login names.
28340
28341 [BZ #1062]
28342 * posix/glob.c (glob): Port recent patches to platforms
28343 lacking getpwnam_r.
28344 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28345 returns an error number rather than setting errno.
28346
28347 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28348 instead of GCC extension.
28349 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28350 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28351 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28352
28353 [BZ #866]
28354 [BZ #1062]
28355 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28356 * posix/bug-glob1.c: Remove file.
28357 * posix/tst-glob_symlinks.c: New file.
28358 * posix/glob.c (__lstat64): New macro.
28359 (is_dir): New function.
28360 (glob, glob_in_dir): Match symlinks even if they are dangling.
28361 (link_stat, link_exists_p): Remove. All uses removed.
28362
28363 [BZ #1062]
28364 [BZ #19971]
28365 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28366 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28367 All uses removed.
28368
28369 [BZ #1062]
28370 CVE-2017-15671
28371 * posix/Makefile (routines): Add globfree, globfree64, and
28372 glob_pattern_p.
28373 * posix/flexmember.h: New file.
28374 * posix/glob_internal.h: Likewise.
28375 * posix/glob_pattern_p.c: Likewise.
28376 * posix/globfree.c: Likewise.
28377 * posix/globfree64.c: Likewise.
28378 * sysdeps/gnu/globfree64.c: Likewise.
28379 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28380 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28381 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28382 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28383 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28384 * sysdeps/wordsize-64/globfree.c: Likewise.
28385 * sysdeps/wordsize-64/globfree64.c: Likewise.
28386 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28387 [NDEBUG): Remove comments.
28388 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28389 (dirent_type): New type. Use uint_fast8_t not
28390 uint8_t, as C99 does not require uint8_t.
28391 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28392 (struct readdir_result): Use dirent_type. Do not define skip_entry
28393 unless it is needed; this saves a byte on platforms lacking d_ino.
28394 (readdir_result_type, readdir_result_skip_entry):
28395 New functions, replacing ...
28396 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28397 these functions, which were removed. This makes the callers
28398 easier to read. All callers changed.
28399 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28400 (size_add_wrapv, glob_use_alloca): New static functions.
28401 (glob, glob_in_dir): Check for size_t overflow in several places,
28402 and fix some size_t checks that were not quite right.
28403 Remove old code using SHELL since Bash no longer
28404 uses this.
28405 (glob, prefix_array): Separate MS code better.
28406 (glob_in_dir): Remove old Amiga and VMS code.
28407 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28408 separate files.
28409 (glob_in_dir): Do not rely on undefined behavior in accessing
28410 struct members beyond their bounds. Use a flexible array member
28411 instead
28412 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28413 0/1. Caller changed.
28414 (glob): Fix memory leaks.
28415 * posix/glob64 (globfree64): Move to separate file.
28416 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28417 (globfree64): Remove hidden alias.
28418 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28419 oldglob.
28420 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28421 separate file.
28422 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28423 define.
28424 Move compat code to separate file.
28425 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28426 separate file.
28427
28428 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28429
28430 * resolv/tst-resolv-qtypes.c (domain): Changed to
28431 "const char domain[] =".
28432
28433 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28434
28435 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28436 version to 3.1.6.
28437
28438 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28439 (TCP_MD5SIG_EXT): Likewise.
28440 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28441 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28442 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28443
28444 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28445
28446 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28447
28448 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28449
28450 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28451
28452 [BZ #22100]
28453 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28454
28455 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28456
28457 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28458 before assuming that the file is empty. Avoid testing buffer content
28459 when nread == 0.
28460
28461 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28462
28463 [BZ #18858]
28464 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28465 Remove define.
28466 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28467 Likewise.
28468 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28469 Likewise.
28470 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28471 Likewise.
28472 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28473 Likewise.
28474 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28475 Likewise.
28476 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28477 Likewise.
28478
28479 2017-09-06 Florian Weimer <fweimer@redhat.com>
28480
28481 * malloc/dynarray_emplace_enlarge.c
28482 (__libc_dynarray_emplace_enlarge): Add missing else.
28483
28484 2017-09-06 Florian Weimer <fweimer@redhat.com>
28485
28486 [BZ #22096]
28487 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28488 case of failure to obtain the global conf object.
28489
28490 2017-09-06 Florian Weimer <fweimer@redhat.com>
28491
28492 [BZ #22095]
28493 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28494 dynarray allocation failure.
28495
28496 2017-09-06 Florian Weimer <fweimer@redhat.com>
28497
28498 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28499 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28500 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28501 New functions.
28502 (response): Call them. Add 'p', '6' flag processing.
28503 (test_reverse): New function.
28504 (test_get2_any): Call it.
28505 (test_no_inet6): Add 'p' test.
28506 (test_inet6): Likewise.
28507
28508 2017-09-06 Florian Weimer <fweimer@redhat.com>
28509
28510 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28511 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28512 the QNAME.
28513 (test_gai): Adjust query names. Add additional tests.
28514 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28515 test_get2. Adjust query names. Add additional tests.
28516 (test_no_inet6): New function, extracted from threadfunc.
28517 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28518 Add additional tests.
28519
28520 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28521
28522 [BZ #22070]
28523 * localedata/unicode-gen/utf8_gen.py: Set the width for
28524 characters with Prepended_Concatenation_Mark property to 1
28525 * localedata/charmaps/UTF-8: Updated using the improved script.
28526
28527 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28528
28529 [BZ #21750]
28530 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28531 use the range notation for all ranges of neighbouring characters
28532 with the same width.
28533
28534 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28535
28536 * sysdeps/generic/math-type-macros-double.h: Include
28537 <math-svid-compat.h>.
28538 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28539 * sysdeps/generic/math-type-macros-float.h: Include
28540 <math-svid-compat.h>.
28541 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28542 * sysdeps/generic/math-type-macros-ldouble.h: Include
28543 <math-svid-compat.h>.
28544 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28545 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28546 condition.
28547 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28548 * math/w_acosf_compat.c: Likewise.
28549 * math/w_acosh_compat.c: Likewise.
28550 * math/w_acoshf_compat.c: Likewise.
28551 * math/w_acoshl_compat.c: Likewise.
28552 * math/w_acosl_compat.c: Likewise.
28553 * math/w_asin_compat.c: Likewise.
28554 * math/w_asinf_compat.c: Likewise.
28555 * math/w_asinl_compat.c: Likewise.
28556 * math/w_atan2_compat.c: Likewise.
28557 * math/w_atan2f_compat.c: Likewise.
28558 * math/w_atan2l_compat.c: Likewise.
28559 * math/w_atanh_compat.c: Likewise.
28560 * math/w_atanhf_compat.c: Likewise.
28561 * math/w_atanhl_compat.c: Likewise.
28562 * math/w_cosh_compat.c: Likewise.
28563 * math/w_coshf_compat.c: Likewise.
28564 * math/w_coshl_compat.c: Likewise.
28565 * math/w_exp10_compat.c: Likewise.
28566 * math/w_exp10f_compat.c: Likewise.
28567 * math/w_exp10l_compat.c: Likewise.
28568 * math/w_exp2_compat.c: Likewise.
28569 * math/w_exp2f_compat.c: Likewise.
28570 * math/w_exp2l_compat.c: Likewise.
28571 * math/w_fmod_compat.c: Likewise.
28572 * math/w_fmodf_compat.c: Likewise.
28573 * math/w_fmodl_compat.c: Likewise.
28574 * math/w_hypot_compat.c: Likewise.
28575 * math/w_hypotf_compat.c: Likewise.
28576 * math/w_hypotl_compat.c: Likewise.
28577 * math/w_j0_compat.c: Likewise.
28578 * math/w_j0f_compat.c: Likewise.
28579 * math/w_j0l_compat.c: Likewise.
28580 * math/w_j1_compat.c: Likewise.
28581 * math/w_j1f_compat.c: Likewise.
28582 * math/w_j1l_compat.c: Likewise.
28583 * math/w_jn_compat.c: Likewise.
28584 * math/w_jnf_compat.c: Likewise.
28585 * math/w_jnl_compat.c: Likewise.
28586 * math/w_lgamma_r_compat.c: Likewise.
28587 * math/w_lgammaf_r_compat.c: Likewise.
28588 * math/w_lgammal_r_compat.c: Likewise.
28589 * math/w_log10_compat.c: Likewise.
28590 * math/w_log10f_compat.c: Likewise.
28591 * math/w_log10l_compat.c: Likewise.
28592 * math/w_log2_compat.c: Likewise.
28593 * math/w_log2f_compat.c: Likewise.
28594 * math/w_log2l_compat.c: Likewise.
28595 * math/w_log_compat.c: Likewise.
28596 * math/w_logf_compat.c: Likewise.
28597 * math/w_logl_compat.c: Likewise.
28598 * math/w_pow_compat.c: Likewise.
28599 * math/w_powf_compat.c: Likewise.
28600 * math/w_powl_compat.c: Likewise.
28601 * math/w_remainder_compat.c: Likewise.
28602 * math/w_remainderf_compat.c: Likewise.
28603 * math/w_remainderl_compat.c: Likewise.
28604 * math/w_sinh_compat.c: Likewise.
28605 * math/w_sinhf_compat.c: Likewise.
28606 * math/w_sinhl_compat.c: Likewise.
28607 * math/w_sqrt_compat.c: Likewise.
28608 * math/w_sqrtf_compat.c: Likewise.
28609 * math/w_sqrtl_compat.c: Likewise.
28610 * math/w_tgamma_compat.c: Likewise.
28611 * math/w_tgammaf_compat.c: Likewise.
28612 * math/w_tgammal_compat.c: Likewise.
28613 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28614 [LIBM_SVID_COMPAT].
28615 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28616 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28617 [LIBM_SVID_COMPAT].
28618 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28619 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28620 [LIBM_SVID_COMPAT].
28621 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28622 * sysdeps/i386/fpu/w_sqrt.c: New file.
28623 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28624 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28625 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28626 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28627 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28628 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28629 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28630 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28631 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28632 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28633 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28634 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28635 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28636 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28637 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28638 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28639 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28640 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28641 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28642 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28643 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28644 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28645 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28646 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28647 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28648 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28649 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28650 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28651 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28652 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28653 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28654 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28655 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28656 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28657 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28658 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28659 * sysdeps/ia64/fpu/w_log.c: Likewise.
28660 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28661 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28662 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28663 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28664 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28665 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28666 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28667 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28668 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28669 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28670 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28671 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28672 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28673 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28674 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28675 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28676 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28677 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28678 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28679 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28680 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28681 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28682 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28683 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28684 [LIBM_SVID_COMPAT].
28685 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28686 * sysdeps/ieee754/k_standard.c: Likewise.
28687 * sysdeps/ieee754/k_standardf.c: Likewise.
28688 * sysdeps/ieee754/k_standardl.c: Likewise.
28689 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28690 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28691 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28692 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28693 long_double_symbol call on [LIBM_SVID_COMPAT].
28694 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28695 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28696 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28697 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28698 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28699 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28700 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28701 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28702 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28703 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28704 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28705 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28706 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28707 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28708 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28709 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28710 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28711 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28712 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28713 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28714 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28715 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28716
28717 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28718
28719 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28720 * malloc/tst-mallocstate.c: Convert from test-skeleton
28721 to test-driver. Ifdef code using TEST_COMPAT macro.
28722 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28723 * math/test-matherr.c: Likewise.
28724
28725 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28726
28727 [BZ #22086]
28728 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28729 comparing word with byte-swapped constant.
28730
28731 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28732
28733 [BZ #20498]
28734 * locale/iso-639.def: add Miskito.
28735 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28736 * localedata/locales/miq_NI: New file.
28737
28738 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28739
28740 [BZ #18822]
28741 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28742 (__mkdir): Likewise.
28743 * io/chmod.c (__chmod): Add libc_hidden_def.
28744 * io/mkdir.c (__mkdir): Likewise.
28745 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28746 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28747 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28748 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28749
28750 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28751
28752 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28753 version to 4.13.
28754
28755 [BZ #22082]
28756 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28757 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28758
28759 2017-09-04 Florian Weimer <fweimer@redhat.com>
28760
28761 * math/math.h: Issue warning if log is defined.
28762
28763 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28764
28765 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28766 kernel version to 4.13.
28767
28768 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28769
28770 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28771 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28772 parameter.
28773 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28774 just <bits/types.h>.
28775 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28776 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28777 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28778 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28779 * misc/preadv2.c: Include <errno.h>.
28780 * misc/preadv64v2.c: Include <errno.h>.
28781 * misc/pwritev2.c: Include <errno.h>.
28782 * misc/pwritev64v2.c: Include <errno.h>.
28783 * sysdeps/posix/preadv2.c: Include <errno.h>.
28784 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28785 Fix <unistd.h> inclusion.
28786 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28787 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28788 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28789 __strtoul_internal): New functions.
28790 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28791 * sysdeps/posix/system.c: Include <sigsetops.h>.
28792 * sysdeps/mach/hurd/i386/Makefile
28793 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28794 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28795 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28796 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28797 __feraiseexcept_renamed to feraiseexcept instead of
28798 __GI_feraiseexcept.
28799 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28800 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28801 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28802 RWF_NOWAIT): Define to 0 if undefined already.
28803 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28804 boils down to 0.
28805 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28806 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28807
28808 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28809
28810 * manual/math.texi (pow10): Do not document.
28811 (pow10f): Likewise.
28812 (pow10l): Likewise.
28813 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28814 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28815 * math/libm-test-exp10.inc (pow10_test): Remove.
28816 (do_test): Do not call pow10.
28817 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28818 [NO_LONG_DOUBLE] (pow10l): Likewise.
28819 * math/w_exp10f_compat.c (pow10f): Likewise.
28820 * math/w_exp10l_compat.c (pow10l): Likewise.
28821 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28822 (pow10): Make into compat symbol.
28823 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28824 (pow10f): Make into compat symbol.
28825 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28826 (pow10l): Make into compat symbol.
28827 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28828 pow10.
28829 (CFLAGS-nldbl-pow10.c): Remove variable..
28830 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28831 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28832 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28833 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28834 Undefine and redefine.
28835 (pow10l): Make into compat symbol.
28836 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28837 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28838 * sysdeps/arm/libm-test-ulps: Likewise.
28839 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28840 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28841 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28842 * sysdeps/microblaze/libm-test-ulps: Likewise.
28843 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28844 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28845 * sysdeps/nios2/libm-test-ulps: Likewise.
28846 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28847 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28848 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28849 * sysdeps/sh/libm-test-ulps: Likewise.
28850 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28851 * sysdeps/tile/libm-test-ulps: Likewise.
28852 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28853
28854 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28855
28856 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28857
28858 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28859
28860 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28861 "../ChangeLog.old/ChangeLog.8".
28862 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28863 "../ChangeLog.old/ChangeLog.14".
28864
28865 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28866
28867 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28868 Threads Library.
28869
28870 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28871
28872 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28873
28874 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28875
28876 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28877 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28878
28879 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28880
28881 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28882 32 atexit handlers.
28883
28884 2017-09-01 Zack Weinberg <zackw@panix.com>
28885
28886 * math/math.h (HUGE_VAL): Improve commentary.
28887
28888 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28889 Andreas Schwab <schwab@suse.de>
28890
28891 [BZ #21530]
28892 * include/stdio.h (__gen_tempfd): New function.
28893 * stdio-common/Makefile (routines): Add gentempfd.
28894 * stdio-common/gentempfd.c: New file.
28895 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28896 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28897 unnamed file first.
28898
28899 2017-09-01 Florian Weimer <fweimer@redhat.com>
28900
28901 [BZ #21915]
28902 [BZ #21922]
28903 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28904 result to determine success or failure, not the errno value.
28905 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28906 (tst-nss-files-hosts-erange): Link with -ldl.
28907 * nss/tst-nss-files-hosts-erange.c: New file.
28908 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28909 (do_test): Add NO_DATA tests.
28910 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28911 (do_test): Call it.
28912
28913 2017-09-01 Florian Weimer <fweimer@redhat.com>
28914
28915 [BZ #21922]
28916 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28917 coming from gethostbyname2_r.
28918
28919 2017-09-01 Florian Weimer <fweimer@redhat.com>
28920
28921 * support/namespace.h (struct support_chroot_configuration): Add
28922 hosts, host_conf.
28923 (struct support_chroot): Add path_hosts, path_host_conf.
28924 * support/support_chroot.c (write_file): New function.
28925 (support_chroot_create): Call it to process /etc/resolv.conf,
28926 /etc/hosts, /etc/host.conf.
28927 (support_chroot_free): Update.
28928
28929 2017-09-01 Florian Weimer <fweimer@redhat.com>
28930
28931 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28932 status indicates it is set.
28933
28934 2017-09-01 Florian Weimer <fweimer@redhat.com>
28935
28936 [BZ #20532]
28937 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28938 function lookup failures more reliable.
28939
28940 2017-09-01 Florian Weimer <fweimer@redhat.com>
28941
28942 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28943 (getcanonname): Likewise.
28944 (gaih_inet): Likewise.
28945
28946 2017-09-01 Florian Weimer <fweimer@redhat.com>
28947
28948 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28949 (getcanonname): Likewise.
28950 (gaih_inet): Likewise.
28951
28952 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28953 Richard Henderson <rth@twiddle.net>
28954
28955 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28956 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28957 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28958 (IREG_SIZE, OREG_SIZE): New macros.
28959 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28960 (IREG_SIZE, OREG_SIZE): New macros.
28961 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28962 (IREG_SIZE): New macro.
28963 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28964 (IREG_SIZE): New macro.
28965 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28966 New includes.
28967 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28968 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28969 (__CONCATX): Handle exceptions correctly on large values that may
28970 set FE_INVALID.
28971 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28972 Initialize if not already set.
28973 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28974
28975 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28976
28977 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28978 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28979 Likewise.
28980 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28981 Likewise.
28982 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28983 Likewise.
28984 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28985 Likewise.
28986 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28987 Likewise.
28988 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28989 Likewise.
28990 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28991 Likewise.
28992 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28993 (NO_CANCELLATION): Likewise.
28994 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28995 Likewise.
28996 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28997 Likewise.
28998 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28999 Likewise.
29000 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29001 (NO_CANCELLATION): Likewise.
29002 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29003 (NO_CANCELLATION): Likewise.
29004 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29005 Likewise
29006 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29007 Likewise.
29008 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29009 Likewise.
29010 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29011 Likewise.
29012 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29013 hidden prototype.
29014 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29015 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29016
29017 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29018
29019 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29020 in resolver call.
29021
29022 2017-08-31 Florian Weimer <fweimer@redhat.com>
29023
29024 * include/libc-symbols.h (internal_function): Remove.
29025
29026 2017-08-31 Florian Weimer <fweimer@redhat.com>
29027
29028 * stdlib/fmtmsg.c (internal_addseverity): Remove
29029 internal_function.
29030
29031 2017-08-31 Florian Weimer <fweimer@redhat.com>
29032
29033 * stdio-common/printf_fp.c (group_number): Remove
29034 internal_function.
29035 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29036
29037 2017-08-31 Florian Weimer <fweimer@redhat.com>
29038
29039 * posix/fnmatch.c (internal_function): Remove definition.
29040 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29041 * posix/regcomp.c (peek_token, init_word_char)
29042 (duplicate_node_closure, fetch_token, peek_token)
29043 (peek_token_bracket, build_range_exp, build_collating_symbol):
29044 Likewise.
29045 * posix/regex_internal.c (re_string_construct_common)
29046 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29047 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29048 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29049 (re_string_translate_buffer, re_string_reconstruct)
29050 (re_string_peek_byte_case, re_string_fetch_byte_case)
29051 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29052 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29053 (re_node_set_add_intersect, re_node_set_init_union)
29054 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29055 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29056 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29057 (re_acquire_state_context): Likewise.
29058 * posix/regex_internal.h (internal_function): Remove definition.
29059 (re_string_realloc_buffers, build_wcs_buffer)
29060 (build_wcs_upper_buffer, build_upper_buffer)
29061 (re_string_translate_buffer, re_string_context_at)
29062 (re_string_char_size_at, re_string_wchar_at)
29063 (re_string_elem_size_at): Likewise.
29064 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29065 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29066 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29067 (re_search_internal, re_search_2_stub, re_search_stub)
29068 (re_copy_regs, prune_impossible_nodes, check_matching)
29069 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29070 (free_fail_stack_return, sift_states_iter_mb)
29071 (sift_states_backward, build_sifted_states)
29072 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29073 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29074 (check_subexp_limits, sift_states_bkref, merge_state_array)
29075 (find_recover_state, transit_state, merge_state_with_log)
29076 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29077 (transit_state_mb, transit_state_bkref, get_subexp)
29078 (get_subexp_sub, find_subexp_node, check_arrival)
29079 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29080 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29081 (check_node_accept_bytes, find_collation_sequence_value)
29082 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29083 (acquire_init_state_context, check_halt_node_context)
29084 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29085 (sub_epsilon_src_nodes): Likewise.
29086 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29087 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29088 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29089 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29090 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29091 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29092 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29093 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29094 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29095 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29096 (PREADV): Likewise.
29097 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29098 (PREADV): Likewise.
29099 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29100 (PWRITEV): Likewise.
29101 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29102 (PWRITEV): Likewise.
29103 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29104 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29105
29106 2017-08-31 Florian Weimer <fweimer@redhat.com>
29107
29108 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29109 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29110 Remove internal_function.
29111 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29112 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29113 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29114 (__deallocate_stack, __libc_pthread_init)
29115 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29116 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29117 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29118 Likewise.
29119 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29120 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29121 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29122 Likewise.
29123 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29124 (__pthread_mutex_unlock_usercnt): Likewise.
29125
29126 2017-08-31 Florian Weimer <fweimer@redhat.com>
29127
29128 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29129 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29130 (fts_safe_changedir): Remove internal_function.
29131 * io/ftw.c (internal_function): Remove definition.
29132 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29133
29134 2017-08-31 Florian Weimer <fweimer@redhat.com>
29135
29136 * inet/deadline.c (__deadline_current_time)
29137 (__deadline_from_timeval, __deadline_to_ms): Remove
29138 internal_function.
29139 * inet/getnameinfo.c (nrl_domainname): Likewise.
29140 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29141 * inet/inet6_option.c (add_pad): Likewise.
29142 * inet/net-internal.h (__deadline_current_time)
29143 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29144 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29145 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29146 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29147
29148 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29149
29150 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29151 include <bits/nan.h>.
29152 * math/Makefile (headers): Remove bits/nan.h.
29153 * bits/nan.h: Remove.
29154 * sysdeps/ieee754/bits/nan.h: Likewise.
29155 * sysdeps/mips/bits/nan.h: Likewise.
29156
29157 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29158 not include <bits/inf.h>.
29159 * math/Makefile (headers): Remove bits/inf.h.
29160 * bits/inf.h: Remove.
29161 * sysdeps/ieee754/bits/inf.h: Likewise.
29162
29163 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29164 bits/huge_vall.h or bits/huge_val_flt128.h.
29165 (HUGE_VAL): Define directly here.
29166 [__USE_ISOC99] (HUGE_VALF): Likewise.
29167 [__USE_ISOC99] (HUGE_VALL): Likewise.
29168 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29169 (HUGE_VAL_F128): Likewise.
29170 * math/Makefile (headers): Remove bits/huge_val.h,
29171 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29172 * bits/huge_val.h: Remove.
29173 * bits/huge_val_flt128.h: Likewise.
29174 * bits/huge_valf.h: Likewise.
29175 * bits/huge_vall.h: Likewise.
29176 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29177 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29178 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29179 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29180 * sysdeps/sh/bits/huge_val.h: Likewise.
29181 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29182 * sysdeps/x86/bits/huge_vall.h: Likewise.
29183
29184 2017-08-31 Florian Weimer <fweimer@redhat.com>
29185
29186 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29187 internal_function.
29188 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29189 Likewise.
29190 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29191 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29192 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29193 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29194 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29195 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29196 * elf/dl-libc.c (dlerror_run): Likewise.
29197 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29198 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29199 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29200 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29201 Likewise.
29202 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29203 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29204 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29205 * elf/dl-profile.c (_dl_start_profile): Likewise.
29206 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29207 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29208 Likewise.
29209 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29210 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29211 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29212 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29213 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29214 (_dl_allocate_tls_storage): Likewise.
29215 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29216 (_dl_check_all_versions): Likewise.
29217 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29218 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29219 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29220 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29221 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29222 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29223 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29224 internal_function from __dl_start.
29225 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29226 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29227 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29228 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29229 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29230 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29231 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29232 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29233 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29234 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29235 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29236 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29237 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29238 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29239 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29240 Likewise.
29241 (struct rtld_global_ro): Remove internal_function from the
29242 _dl_lookup_symbol_x member.
29243 (_dl_symbol_value): Remove. No longer defined anywhere.
29244 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29245 internal_function.
29246 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29247 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29248 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29249 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29250 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29251 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29252 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29253 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29254 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29255 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29256 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29257 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29258
29259 2017-08-31 Florian Weimer <fweimer@redhat.com>
29260
29261 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29262 Remove internal_function.
29263 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29264 Likewise.
29265 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29266 Likewise.
29267
29268 2017-08-31 Florian Weimer <fweimer@redhat.com>
29269
29270 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29271 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29272 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29273
29274 2017-08-31 Florian Weimer <fweimer@redhat.com>
29275
29276 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29277 (__gai_enqueue_request): Remove internal_function.
29278 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29279 (__gai_remove_request, __gai_notify, __gai_notify_only)
29280 (__gai_sigqueue): Likewise.
29281 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29282 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29283 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29284 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29285 Likewise.
29286
29287 2017-08-31 Florian Weimer <fweimer@redhat.com>
29288
29289 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29290 * include/dirent.h (__opendirat, __getdents, __getdents64)
29291 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29292 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29293 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29294 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29295 Likewise.
29296 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29297
29298 2017-08-31 Florian Weimer <fweimer@redhat.com>
29299
29300 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29301 internal_function.
29302 (GETCWD_RETURN_TYPE): Likewise.
29303
29304 2017-08-31 Florian Weimer <fweimer@redhat.com>
29305
29306 * include/time.h (__tz_compute, __strptime_internal): Remove
29307 internal_function.
29308 * time/strptime_l.c (__strptime_internal): Likewise.
29309 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29310
29311 2017-08-31 Florian Weimer <fweimer@redhat.com>
29312
29313 * iconv/gconv.c (__gconv): Remove internal_function.
29314 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29315 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29316 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29317 (__gconv_release_cache): Likewise.
29318 * iconv/gconv_close.c (__gconv_close): Likewise.
29319 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29320 (read_conf_file, __gconv_get_path): Likewise.
29321 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29322 (__gconv_release_step, gen_steps, increment_counter)
29323 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29324 (__gconv_close_transform, free_modules_db): Likewise.
29325 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29326 Likewise.
29327 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29328 (__gconv_find_transform, __gconv_lookup_cache)
29329 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29330 (__gconv_close_transform, __gconv_release_cache)
29331 (__gconv_loaded_object, __gconv_release_shlib)
29332 (__gconv_compare_alias): Likewise.
29333 * iconv/gconv_open.c (__gconv_open): Likewise.
29334 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29335 * iconv/iconvconfig.c (add_module): Likewise.
29336 * intl/dcigettext.c (plural_lookup, guess_category_value)
29337 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29338 * intl/eval-plural.h (plural_eval): Likewise.
29339 * intl/finddomain.c (_nl_find_domain): Likewise.
29340 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29341 (_nl_load_domain, _nl_find_msg): Likewise.
29342 (internal_function): Remove definition.
29343 * intl/loadinfo.h (internal_function): Likewise.
29344 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29345 internal_function.
29346 * intl/localealias.c (internal_function): Remove definition.
29347 (read_alias_file): Remove internal_function.
29348 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29349 * intl/plural-exp.h (internal_function): Remove definition.
29350 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29351 internal_function.
29352 * intl/plural.c: Regenerate.
29353 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29354 * locale/coll-lookup.c (__collidx_table_lookup)
29355 (__collseq_table_lookup): Likewise.
29356 * locale/coll-lookup.h (__collidx_table_lookup)
29357 (__collseq_table_lookup): Likewise.
29358 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29359 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29360 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29361 (_nl_unload_locale): Likewise.
29362 * locale/localeinfo.h (struct __locale_data): Remove
29363 internal_function from cleanup member.
29364 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29365 (_nl_remove_locale, _nl_load_locale_from_archive)
29366 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29367 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29368 (_nl_cleanup_time): Remove internal_function.
29369 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29370 (_nl_parse_alt_digit): Likewise.
29371 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29372 (_nl_select_era_entry): Likewise.
29373 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29374 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29375 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29376 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29377 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29378
29379 2017-08-31 Florian Weimer <fweimer@redhat.com>
29380
29381 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29382 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29383 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29384 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29385 Likewise.
29386 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29387 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29388 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29389 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29390 Likewise.
29391 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29392
29393 2017-08-31 Florian Weimer <fweimer@redhat.com>
29394
29395 * misc/getttyent.c (skip, value): Remove internal_function.
29396 * misc/syslog.c (openlog_internal): Likewise.
29397 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29398
29399 2017-08-31 Florian Weimer <fweimer@redhat.com>
29400
29401 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29402 (__nss_rewrite_field): Remove internal_function.
29403 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29404 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29405 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29406 * nss/nsswitch.c (nss_parse_file, nss_getline)
29407 (nss_parse_service_list, nss_new_service): Likewise.
29408 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29409 * nss/valid_field.c (__nss_valid_field): Likewise.
29410 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29411
29412 2017-08-31 Florian Weimer <fweimer@redhat.com>
29413
29414 * malloc/arena.c (__malloc_fork_lock_parent)
29415 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29416 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29417 internal_function from defintions.
29418 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29419 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29420 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29421 internal_function from declarations.
29422 * malloc/malloc.c (internal_function): Do not define.
29423 (mem2mem_check): Remove internal_function from declaration.
29424 (munmap_chunk, mremap_chunk): Remove internal_function.
29425 * malloc/mtrace.c (tr_where): Likewise.
29426
29427 2017-08-31 Florian Weimer <fweimer@redhat.com>
29428
29429 * include/rpc/pmap_clnt.h (__get_socket): Remove
29430 internal_function.
29431 * sunrpc/auth_des.c (synchronize): Likewise.
29432 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29433 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29434 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29435 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29436 (key_call): Likewise.
29437 * sunrpc/pm_getport.c (__get_socket): Likewise.
29438 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29439 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29440 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29441 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29442 (invalidate): Likewise.
29443 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29444 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29445 (set_input_fragment, get_input_bytes): Likewise.
29446
29447 2017-08-31 Florian Weimer <fweimer@redhat.com>
29448
29449 * malloc/malloc.c (_int_free): Remove locked variable and related
29450 asserts.
29451
29452 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29453
29454 [BZ #22051]
29455 * Makerules (build-module-helper-objlist): Filter out
29456 $(elf-objpfx)sofini.os.
29457 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29458 needed.
29459
29460 2017-08-31 Florian Weimer <fweimer@redhat.com>
29461
29462 * libio/fcloseall.c: Assume weak_alias is defined.
29463 * libio/feof.c: Likewise.
29464 * libio/fileno.c: Likewise.
29465 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29466 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29467 definitions.
29468 (_IO_file_open): Call __open directly.
29469 (_IO_new_file_sync): Assume ESPIPE is defined.
29470 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29471 (_IO_new_file_write): Call __write directly.
29472 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29473 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29474 * libio/genops.c: Assume _LIBC is defined.
29475 (save_for_backup): Remove internal_function.
29476 * libio/getc.c: Assume weak_alias is defined.
29477 * libio/getwc.c: Likewise.
29478 * libio/iofclose.c: Assume _LIBC is defined.
29479 * libio/iofdopen.c: Likewise.
29480 (_IO_fcntl): Remove macro definition.
29481 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29482 Call __fcntl directly.
29483 * libio/iofflush.c: Assume weak_alias is defined.
29484 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29485 defined.
29486 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29487 * libio/iofgets.c: Likewise.
29488 * libio/iofopen.c: Assume _LIBC is defined.
29489 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29490 * libio/iofputs.c: Assume weak_alias is defined.
29491 * libio/iofread.c: Likewise.
29492 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29493 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29494 * libio/ioftell.c: Assume weak_alias is defined.
29495 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29496 * libio/iofwide.c: Assume _LIBC is defined.
29497 (_IO_fwide): Drop SHARED conditional because it is implied by
29498 SHLIB_COMPAT.
29499 * libio/iofwrite.c: Assume weak_alias is defined.
29500 * libio/iogetdelim.c: Likewise.
29501 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29502 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29503 (_IO_getwline): Call __wmemcpy directly.
29504 * libio/iopopen.c: Assume _LIBC is defined.
29505 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29506 (_IO_close): Remove macro definitions.
29507 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29508 _exit directly.
29509 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29510 directly.
29511 * libio/ioputs.c: Assume weak_alias is defined.
29512 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29513 * libio/iosetbuffer.c: Assume weak_alias is defined.
29514 * libio/iosetvbuf.c: Likewise.
29515 * libio/ioungetc.c: Likewise.
29516 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29517 libc_hidden_def, libc_hidden_weak, NULL are defined.
29518 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29519 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29520 defined.
29521 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29522 definitions.
29523 (_IO_old_file_init_internal): Drop SHARED conditional because it
29524 is implied by SHLIB_COMPAT.
29525 (_IO_old_file_fopen): Call __open directly.
29526 (_IO_old_file_sync): Assume ESPIPE is defined.
29527 (_IO_old_file_write): Call __write directly.
29528 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29529 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29530 Call __fcntl directly.
29531 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29532 (_IO_old_fgetpos): Assume EIO is defined.
29533 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29534 (_IO_old_fgetpos64): Assume EIO is defined.
29535 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29536 (_IO_old_fsetpos): Assume EIO is defined.
29537 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29538 (_IO_old_fsetpos64): Assume EIO is defined.
29539 * libio/oldiopopen.c: Assume _LIBC is defined.
29540 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29541 (_IO_close): Remove macro definitions.
29542 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29543 directly.
29544 (_IO_old_proc_close): Call __close, __waitpid directly.
29545 * libio/put.c: Assume weak_alias is defined.
29546 * libio/stdfiles.c: Assume _LIBC is defined.
29547 * libio/stdio.c: Likewise.
29548 * libio/wfileops.c: Likewise.
29549 (_IO_wfile_sync): Assume ESPIPE is defined.
29550 * libio/wgenops.c: Assume _LIBC is defined.
29551 (save_for_wbackup): Remove internal_function.
29552
29553 2017-08-31 Florian Weimer <fweimer@redhat.com>
29554
29555 * malloc/malloc.c (top_check): Change return type to void. Remove
29556 internal_function.
29557 * malloc/hooks.c (top_check): Likewise.
29558 (malloc_check, realloc_check, memalign_check): Adjust.
29559
29560 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29561
29562 [BZ #21457]
29563 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29564 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29565 sigcontext and namespace requirements.
29566 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29567 * sysdeps/m68k/sys/ucontext.h: Likewise.
29568 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29569 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29570 <bits/sigcontext.h>.
29571 (__ctx): Define earlier.
29572 (mcontext_t): Define structure contents rather than using struct
29573 sigcontext.
29574 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29575 __glibc_reserved1 instead of __reserved.
29576 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29577 <bits/sigcontext.h>.
29578 (__ctx): Define earlier.
29579 (mcontext_t): Define structure contents rather than using struct
29580 sigcontext.
29581 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29582 mcontext_t instead of struct sigcontext.
29583 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29584 <bits/sigcontext.h>.
29585 (__ctx): Define earlier.
29586 (mcontext_t): Define structure contents rather than using struct
29587 sigcontext.
29588 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29589 <bits/sigcontext.h>.
29590 (__ctx): Define earlier.
29591 (mcontext_t): Define structure contents rather than using struct
29592 sigcontext.
29593 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29594 mcontext_t instead of struct sigcontext.
29595 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29596 mcontext_t instead of struct sigcontext.
29597 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29598 <bits/sigcontext.h>.
29599 (__ctx): New macro.
29600 (struct __ia64_fpreg_mcontext): New type.
29601 (mcontext_t): Define structure contents rather than using struct
29602 sigcontext.
29603 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29604 (uc_sigmask): Define using __ctx.
29605 (uc_stack): Likewise.
29606 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29607 <bits/sigcontext.h>.
29608 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29609 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29610 <bits/sigcontext.h>.
29611 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29612 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29613 <bits/sigcontext.h>.
29614 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29615 <bits/sigcontext.h>.
29616 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29617 <bits/sigcontext.h>.
29618 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29619 <bits/sigcontext.h>.
29620 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29621 <bits/sigcontext.h>.
29622 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29623 <bits/sigcontext.h>.
29624 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29625 <bits/sigcontext.h>.
29626 (__ctx): Define earlier.
29627 (mcontext_t): Define structure contents rather than using struct
29628 sigcontext.
29629 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29630 <bits/sigcontext.h>. Include <bits/types.h>.
29631 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29632 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29633 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29634 (test-xfail-UNIX98/signal.h/conform): Likewise.
29635 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29636 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29637 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29638 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29639 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29640 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29641 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29642 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29643 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29644
29645 2017-08-30 Florian Weimer <fweimer@redhat.com>
29646
29647 * malloc/dynarray_emplace_enlarge.c
29648 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29649 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29650 * malloc/tst-dynarray.c (test_long_overflow): New function.
29651 (do_test): Call it.
29652
29653 2017-08-30 Florian Weimer <fweimer@redhat.com>
29654
29655 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29656 (set_arena_corrupt): Remove definitions.
29657 (mtrim): Do not check for corrupt arena.
29658 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29659 Likewise.
29660
29661 2017-08-30 Florian Weimer <fweimer@redhat.com>
29662
29663 [BZ #21754]
29664 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29665 check_action.
29666 (ptmalloc_init): Do not set or use check_action.
29667 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29668 call to malloc_printerr. Remove return statement.
29669 (free_check): Likewise. Remove arena unlock.
29670 (top_check): Update comment. Adjust call to malloc_printerr.
29671 Remove heap repair code.
29672 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29673 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29674 (sysmalloc): Adjust call to malloc_printerr.
29675 (munmap_chunk, __libc_realloc): Likewise. Remove return
29676 statement.
29677 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29678 Remove errout label and corresponding gotos.
29679 (_int_free): Likewise. Remove arena unlock.
29680 (do_set_mallopt_check): Do not set check_action.
29681 (malloc_printerr): Adjust parameter list. Do not mark arena as
29682 corrupt.
29683 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29684 comment.
29685 * manual/probes.texi (Memory Allocation Probes): Remove
29686 memory_mallopt_check_action.
29687
29688 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29689
29690 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29691 Use pointer to uint64_t instead of long int for sp.
29692
29693 2017-08-30 Florian Weimer <fweimer@redhat.com>
29694
29695 [BZ #21754]
29696 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29697 without printing a backtrace. Do not leak any information in the
29698 error message.
29699 * manual/memory.texi (Heap Consistency Checking): Update.
29700 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29701
29702 2017-08-30 Florian Weimer <fweimer@redhat.com>
29703
29704 Do not scale NPTL tests with available number of CPUs.
29705 * nptl/tst-cond16.c (count): Set to constant value of 8.
29706 * nptl/tst-cond18.c (count): Likewise.
29707
29708 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29709
29710 [BZ #22035]
29711 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29712 Define to take a second argument that is a macro that
29713 concatentates a suffix, not the suffix itself.
29714 (__CONCAT_d): New macro.
29715 (__CONCAT_f): Likewise.
29716 (__CONCAT_l): Likewise.
29717
29718 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29719
29720 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29721 by child.
29722
29723 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29724 Aurelien Jarno <aurelien@aurel32.net>
29725 Maciej W. Rozycki <macro@imgtec.com>
29726
29727 [BZ #21956]
29728 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29729 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29730 `mips16-syscall6' and `mips16-syscall7'.
29731 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29732 (CFLAGS-mips16-syscall7.c): Remove.
29733 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29734 Remove `__mips16_syscall5', `__mips16_syscall6' and
29735 `__mips16_syscall7'.
29736 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29737 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29738 `__mips_syscall_return'.
29739 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29740 (__mips16_syscall1): Likewise.
29741 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29742 (__mips16_syscall2): Likewise.
29743 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29744 (__mips16_syscall3): Likewise.
29745 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29746 (__mips16_syscall4): Likewise.
29747 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29748 Remove.
29749 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29750 Remove.
29751 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29752 Remove.
29753 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29754 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29755 `__mips16_syscall5'. Remove prototype.
29756 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29757 `__mips16_syscall6'. Remove prototype.
29758 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29759 `__mips16_syscall7'. Remove prototype.
29760 (__nomips16, __mips16_syscall_return): Move to...
29761 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29762 (__nomips16, __mips_syscall_return): ... here.
29763 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29764 `__mips16_syscall_return' to `__mips_syscall_return'.
29765 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29766 `internal_syscall##nr'.
29767 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29768 `internal_syscall##nr'.
29769 (FORCE_FRAME_POINTER): Remove.
29770 (__mips_syscall5): New prototype.
29771 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29772 (__mips_syscall6): New prototype.
29773 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29774 (__mips_syscall7): New prototype.
29775 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29776 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29777 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29778 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29779 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29780 (sysdep_routines): Add libc-do-syscall.
29781 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29782 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29783
29784 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29785
29786 [BZ #21672]
29787 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29788 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29789 (advise_stack_range): New function.
29790 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29791 stack non required to advise_stack_range at allocatestack.c
29792
29793 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29794
29795 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29796
29797 2017-08-29 Florian Weimer <fweimer@redhat.com>
29798
29799 [BZ #22026]
29800 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29801 __end_fct. Mangle __end_fct after setting it to NULL.
29802 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29803 (modules-names, modules-names-tests): Add
29804 tst-gconv-init-failure-mod.
29805 (gconv-modules): New target.
29806 (tst-gconv-init-failure-mod.so): Link against libsupport.
29807 (tst-gconv-init-failure): Depend on gconv-modules,
29808 tst-gconv-init-failure-mod.so.
29809 * iconv/tst-gconv-init-failure-mod.c: New file.
29810 * iconv/tst-gconv-init-failure.c: Likewise.
29811 * iconv/test-gconv-modules: Likewise.
29812
29813 2017-08-29 Florian Weimer <fweimer@redhat.com>
29814
29815 [BZ #22025]
29816 * iconv/gconv_db.c (free_derivation): Remove redundant
29817 parentheses.
29818 (gen_steps): Unconditionally mangle __btowc_fct after
29819 initialization.
29820 (increment_counter): Likewise. Do not call init_fct for internal
29821 modules.
29822
29823 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29824
29825 [BZ #22028]
29826 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29827 (_MSUF_): Remove macro.
29828 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29829 Likewise.
29830 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29831 (__REDIRFROM_X): New macro.
29832 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29833 Likewise.
29834 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29835 (__REDIRTO_X): Likewise.
29836 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29837 arguments.
29838 (__MATH_REDIRCALL_2): Likewise.
29839 (__MATH_REDIRCALL_INTERNAL): Likewise.
29840 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29841 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29842 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29843 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29844 * math/test-finite-macros.c: New file.
29845 * math/Makefile (tests): Add test-finite-macros.
29846 (CFLAGS-test-finite-macros.c): New variable.
29847
29848 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29849 Jeff Law <law@redhat.com>
29850
29851 [BZ #22025]
29852 Mangle NULL pointers in iconv/gconv.
29853 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29854 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29855 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29856 is non-NULL before demangling the end_fct. Check for NULL
29857 end_fct after demangling.
29858 (__gconv_release_step): Demangle the end_fct before checking
29859 it for NULL. Remove assert on __shlibc_handle != NULL.
29860 (gen_steps): Don't check btowc_fct for NULL before mangling.
29861 Demangle init_fct before checking for NULL.
29862 (increment_counter): Likewise.
29863 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29864 end_fct for NULL before mangling.
29865 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29866 for NULL.
29867
29868 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29869
29870 [BZ #21971]
29871 * locale/iso-639.def: add Morisyen.
29872
29873 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29874
29875 [BZ #21930]
29876 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29877 (iszero): New C++ implementation that does not use
29878 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29879 signaling nans are enabled, since __builtin_types_compatible_p
29880 is a C-only feature.
29881 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29882 defined, include ieee754_float128.h for access to the union and
29883 member ieee854_float128.ieee.
29884 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29885 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29886 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29887 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29888 options of test-math-zero on powerpc64le.
29889
29890 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29891
29892 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29893 Change double to float.
29894
29895 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29896
29897 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29898 unconditional.
29899 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29900 conditional code; define contents only for [LIBM_SVID_COMPAT].
29901
29902 2017-08-28 Florian Weimer <fweimer@redhat.com>
29903
29904 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29905 (abi-lp64_be-options): Remove.
29906 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29907 (abi-hard-options): Likewise.
29908 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29909 (abi-o32_hard-options, abi-o32_soft_2008-options)
29910 (abi-o32_hard_2008-options, abi-n32_soft-options)
29911 (abi-n32_hard-options, abi-n32_soft_2008-options)
29912 (abi-n32_hard_2008-options, abi-n64_soft-options)
29913 (abi-n64_hard-options, abi-n64_soft_2008-options)
29914 (abi-n64_hard_2008-options): Likewise.
29915 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29916 (abi-64-v1-options, abi-64-v2-options): Likewise.
29917 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29918 (abi-64-options): Likewise.
29919 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29920 (abi-64-options): Likewise.
29921 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29922 (abi-64-options): Likewise.
29923 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29924 (abi-64-options, abi-x32-options): Likewise.
29925
29926 2017-08-28 Florian Weimer <fweimer@redhat.com>
29927
29928 Store supported list of SYS_* system calls in the source tree.
29929 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29930 (bits/syscall.h): Generate from list file.
29931 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29932 [$(subdir) = misc] (tests): Add tst-syscall-list.
29933 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29934 [$(subdir) = misc] (tst-syscall-list-macros.list)
29935 [$(subdir) = misc] (tst-syscall-list-nr.list)
29936 (tst-syscall-list-sys.list): Helper targets for new
29937 tst-syscall-list test.
29938 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29939 tst-syscall-list.sh.
29940 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29941 target. Do not include bits/syscall.d.
29942 [$(subdir) = misc] (generated): Do not update.
29943 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29944 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29945 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29946 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29947
29948 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29949
29950 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29951 (tst-cxa_atexit, tst-on_exit): Likewise.
29952 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29953 tst-cxa_atexit, and tst-on_exit.
29954 * stdlib/tst-atexit-common.c: New file.
29955 * stdlib/tst-atexit.c: New file.
29956 * stdlib/tst-at_quick_exit.c: New file.
29957 * stdlib/tst-cxa_atexit.c: New file.
29958 * stdlib/tst-on_exit.c: New file.
29959
29960 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29961
29962 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29963 * mach/stack_chk_fail_local.c: New file.
29964 * hurd/stack_chk_fail_local.c: New file.
29965 * mach/Machrules ($(interface-library)-routines): Add
29966 stack_chk_fail_local.
29967 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29968 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29969 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29970 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29971 * hurd/Makefile (CFLAGS-hurdstartup.o,
29972 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29973
29974 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29975
29976 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29977 (index_cpu_*, index_arch_*): Removed.
29978
29979 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29980
29981 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29982 Use uint64_t instead of unsigned long.
29983
29984 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29985
29986 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29987 [__HAVE_DISTINCT_FLOAT128].
29988
29989 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29990 of <bits/math-finite.h>.
29991 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29992 inclusion of <bits/math-finite.h>.
29993 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29994 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29995 __NO_LONG_DOUBLE_MATH].
29996 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29997 (__MATH_REDIRCALL_2): Likewise.
29998 (__MATH_REDIRCALL_INTERNAL): Likewise.
29999 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30000 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30001 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30002
30003 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30004 Remove file.
30005 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30006 Likewise.
30007 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30008 Likewise.
30009 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30010 Likewise.
30011 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30012 Likewise.
30013 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30014 Likewise.
30015 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30016 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30017 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30018 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30020 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30021 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30022 w_sqrtf_compat-ppc32.
30023
30024 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30025
30026 * math/math.h [defined __cplusplus] (issignaling): In the long
30027 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30028 is not defined. Call __issignaling, otherwise.
30029
30030 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30031
30032 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30033 syscall definitions and replace __builtin_expect with __glibc_likely.
30034 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30035 syscall.
30036 (SYSCALL_CANCELLABLE): Removedefinition
30037 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30038 definition.
30039 (PSEUDO_END): Likewise.
30040 [IS_IN (libpthread)] (CENABLE): Likewise.
30041 [IS_IN (libpthread)] (CDISABLE): Likewise.
30042 [IS_IN (libc)] (CENABLE): Likewise.
30043 [IS_IN (libc)] (CENABLE): Likewise.
30044 [IS_IN (librt)] (CDISABLE): Likewise.
30045 [IS_IN (librt)] (CDISABLE): Likewise.
30046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30047 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30048 definition.
30049 (PSEUDO_END): Likewise.
30050 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30051 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30052 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30053 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30054 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30055 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30056 (CENABLE): Likewise.
30057 (CDISABLE): Likewise.
30058 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30059 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30060 defintion.
30061 (PSEUDO_END): Likewise.
30062 [IS_IN (libpthread)] (CENABLE): Likewise.
30063 [IS_IN (libpthread)] (CDISABLE): Likewise.
30064 [IS_IN (libc)] (CENABLE): Likewise.
30065 [IS_IN (libc)] (CENABLE): Likewise.
30066 [IS_IN (librt)] (CDISABLE): Likewise.
30067 [IS_IN (librt)] (CDISABLE): Likewise.
30068 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30069 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30070 definition.
30071 (PSEUDO_END): Likewise.
30072 [IS_IN (libpthread)] (CENABLE): Likewise.
30073 [IS_IN (libpthread)] (CDISABLE): Likewise.
30074 [IS_IN (libc)] (CENABLE): Likewise.
30075 [IS_IN (libc)] (CENABLE): Likewise.
30076 [IS_IN (librt)] (CDISABLE): Likewise.
30077 [IS_IN (librt)] (CDISABLE): Likewise.
30078 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30079 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30080 definition.
30081 (PSEUDO_END): Likewise.
30082 [IS_IN (libpthread)] (CENABLE): Likewise.
30083 [IS_IN (libpthread)] (CDISABLE): Likewise.
30084 [IS_IN (libc)] (CENABLE): Likewise.
30085 [IS_IN (libc)] (CENABLE): Likewise.
30086 [IS_IN (librt)] (CDISABLE): Likewise.
30087 [IS_IN (librt)] (CDISABLE): Likewise.
30088 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30089 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30090 definition.
30091 (PSEUDO_END): Likewise.
30092 [IS_IN (libpthread)] (CENABLE): Likewise.
30093 [IS_IN (libpthread)] (CDISABLE): Likewise.
30094 [IS_IN (libc)] (CENABLE): Likewise.
30095 [IS_IN (libc)] (CENABLE): Likewise.
30096 [IS_IN (librt)] (CDISABLE): Likewise.
30097 [IS_IN (librt)] (CDISABLE): Likewise.
30098 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30099 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30100 definition.
30101 (PSEUDO_END): Likewise.
30102 [IS_IN (libpthread)] (CENABLE): Likewise.
30103 [IS_IN (libpthread)] (CDISABLE): Likewise.
30104 [IS_IN (libc)] (CENABLE): Likewise.
30105 [IS_IN (libc)] (CENABLE): Likewise.
30106 [IS_IN (librt)] (CDISABLE): Likewise.
30107 [IS_IN (librt)] (CDISABLE): Likewise.
30108 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30109 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30110 definition.
30111 (PSEUDO_END): Likewise.
30112 [IS_IN (libpthread)] (CENABLE): Likewise.
30113 [IS_IN (libpthread)] (CDISABLE): Likewise.
30114 [IS_IN (libc)] (CENABLE): Likewise.
30115 [IS_IN (libc)] (CENABLE): Likewise.
30116 [IS_IN (librt)] (CDISABLE): Likewise.
30117 [IS_IN (librt)] (CDISABLE): Likewise.
30118 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30119 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30120 Remove definition.
30121 (PSEUDO_END): Likewise.
30122 [IS_IN (libpthread)] (CENABLE): Likewise.
30123 [IS_IN (libpthread)] (CDISABLE): Likewise.
30124 [IS_IN (libc)] (CENABLE): Likewise.
30125 [IS_IN (libc)] (CENABLE): Likewise.
30126 [IS_IN (librt)] (CDISABLE): Likewise.
30127 [IS_IN (librt)] (CDISABLE): Likewise.
30128 (SINGLE_THREAD_P): Likewise.
30129 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30130 definition.
30131 (PSEUDO_END): Likewise.
30132 [IS_IN (libpthread)] (CENABLE): Likewise.
30133 [IS_IN (libpthread)] (CDISABLE): Likewise.
30134 [IS_IN (libc)] (CENABLE): Likewise.
30135 [IS_IN (libc)] (CENABLE): Likewise.
30136 [IS_IN (librt)] (CDISABLE): Likewise.
30137 [IS_IN (librt)] (CDISABLE): Likewise.
30138 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30139 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30140 definition.
30141 (PSEUDO_END): Likewise.
30142 [IS_IN (libpthread)] (CENABLE): Likewise.
30143 [IS_IN (libpthread)] (CDISABLE): Likewise.
30144 [IS_IN (libc)] (CENABLE): Likewise.
30145 [IS_IN (libc)] (CENABLE): Likewise.
30146 [IS_IN (librt)] (CDISABLE): Likewise.
30147 [IS_IN (librt)] (CDISABLE): Likewise.
30148 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30149 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30150 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30151 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30152 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30153 definition.
30154 (PSEUDO_END): Likewise.
30155 [IS_IN (libpthread)] (CENABLE): Likewise.
30156 [IS_IN (libpthread)] (CDISABLE): Likewise.
30157 [IS_IN (libc)] (CENABLE): Likewise.
30158 [IS_IN (libc)] (CENABLE): Likewise.
30159 [IS_IN (librt)] (CDISABLE): Likewise.
30160 [IS_IN (librt)] (CDISABLE): Likewise.
30161 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30162 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30163 definition.
30164 (PSEUDO_END): Likewise.
30165 [IS_IN (libpthread)] (CENABLE): Likewise.
30166 [IS_IN (libpthread)] (CDISABLE): Likewise.
30167 [IS_IN (libc)] (CENABLE): Likewise.
30168 [IS_IN (libc)] (CENABLE): Likewise.
30169 [IS_IN (librt)] (CDISABLE): Likewise.
30170 [IS_IN (librt)] (CDISABLE): Likewise.
30171 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30172 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30173 definition.
30174 (PSEUDO_END): Likewise.
30175 [IS_IN (libpthread)] (CENABLE): Likewise.
30176 [IS_IN (libpthread)] (CDISABLE): Likewise.
30177 [IS_IN (libc)] (CENABLE): Likewise.
30178 [IS_IN (libc)] (CENABLE): Likewise.
30179 [IS_IN (librt)] (CDISABLE): Likewise.
30180 [IS_IN (librt)] (CDISABLE): Likewise.
30181 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30182 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30183 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30184 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30185 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30186 definition.
30187 (PSEUDO_END): Likewise.
30188 [IS_IN (libpthread)] (CENABLE): Likewise.
30189 [IS_IN (libpthread)] (CDISABLE): Likewise.
30190 [IS_IN (libc)] (CENABLE): Likewise.
30191 [IS_IN (libc)] (CENABLE): Likewise.
30192 [IS_IN (librt)] (CDISABLE): Likewise.
30193 [IS_IN (librt)] (CDISABLE): Likewise.
30194 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30195 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30196 definition.
30197 (PSEUDO_END): Likewise.
30198 [IS_IN (libpthread)] (CENABLE): Likewise.
30199 [IS_IN (libpthread)] (CDISABLE): Likewise.
30200 [IS_IN (libc)] (CENABLE): Likewise.
30201 [IS_IN (libc)] (CENABLE): Likewise.
30202 [IS_IN (librt)] (CDISABLE): Likewise.
30203 [IS_IN (librt)] (CDISABLE): Likewise.
30204 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30205
30206 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30207
30208 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30209
30210 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30211
30212 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30213
30214 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30215
30216 [BZ #21982]
30217 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30218 middle and outer with size_t instead of int. Repleace %d and
30219 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30220 "MAX (outer, nchars - 64)" to support unsigned outer and
30221 nchars. Also exit loop when outer == 0.
30222
30223 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30224
30225 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30226 * include/signal.h (__sigsuspend_nocancel): Likewise.
30227 * include/time.h (__nanosleep_nocancel): Likewise.
30228 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30229 * login/utmp_file.c: Include non cancellable syscall header.
30230 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30231 prototype.
30232
30233 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30234
30235 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30236 .byte sequences with AVX512F instructions.
30237 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30238 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30239 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30240 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30241 Likewise.
30242 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30243 Likewise.
30244
30245 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30246 Steve Ellcey <sellcey@cavium.com>
30247
30248 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30249 Use PTR_REG macro in cmp instruction.
30250
30251 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30252
30253 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30254 Change the return type of the ifunc resolver to match the return
30255 type of the target function.
30256
30257 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30258
30259 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30260 (preadv64): Likewise.
30261 (pwrite64(: Likewise.
30262 (pwritev64): Likewise.
30263
30264 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30265 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30266 (LOAD_ARGS_0): Likewise.
30267 (LOAD_ARGS_1): Likewise.
30268 (LOAD_ARGS_2): Likewise.
30269 (LOAD_ARGS_3): Likewise.
30270 (LOAD_ARGS_4): Likewise.
30271 (LOAD_ARGS_5): Likewise.
30272 (LOAD_ARGS_6): Likewise.
30273 (LOAD_REGS_0): Likewise.
30274 (LOAD_REGS_1): Likewise.
30275 (LOAD_REGS_2): Likewise.
30276 (LOAD_REGS_3): Likewise.
30277 (LOAD_REGS_4): Likewise.
30278 (LOAD_REGS_5): Likewise.
30279 (LOAD_REGS_6): Likewise.
30280 (ASM_ARGS_0): Likewise.
30281 (ASM_ARGS_1): Likewise.
30282 (ASM_ARGS_2): Likewise.
30283 (ASM_ARGS_3): Likewise.
30284 (ASM_ARGS_4): Likewise.
30285 (ASM_ARGS_5): Likewise.
30286 (ASM_ARGS_6): Likewise.
30287 (LOAD_ARGS_TYPES_1): Likewise.
30288 (LOAD_ARGS_TYPES_2): Likewise.
30289 (LOAD_ARGS_TYPES_3): Likewise.
30290 (LOAD_ARGS_TYPES_4): Likewise.
30291 (LOAD_ARGS_TYPES_5): Likewise.
30292 (LOAD_ARGS_TYPES_6): Likewise.
30293 (LOAD_REGS_TYPES_1): Likewise.
30294 (LOAD_REGS_TYPES_2): Likewise.
30295 (LOAD_REGS_TYPES_3): Likewise.
30296 (LOAD_REGS_TYPES_4): Likewise.
30297 (LOAD_REGS_TYPES_5): Likewise.
30298 (LOAD_REGS_TYPES_6): Likewise.
30299 (TYPEFY): New define.
30300 (ARGIFY): Likewise.
30301 (internal_syscall0): Likewise.
30302 (internal_syscall1): Likewise.
30303 (internal_syscall2): Likewise.
30304 (internal_syscall3): Likewise.
30305 (internal_syscall4): Likewise.
30306 (internal_syscall5): Likewise.
30307 (internal_syscall6): Likewise.
30308 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30309 (INTERNAL_SYSCALL_NCS): Remove define.
30310 (internal_syscall1): Add define.
30311
30312 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30313
30314 * math/w_remainder_compat.c: Remove duplicate inclusion of
30315 math-svid-compat.h.
30316 * math/w_remainderf_compat.c: Likewise.
30317 * math/w_remainderl_compat.c: Likewise.
30318
30319 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30320
30321 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30322
30323 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30324
30325 [BZ #21684]
30326 * math/tgmath.h (__floating_type): Simplify definitions.
30327 (__real_integer_type): New macro.
30328 (__complex_integer_type): Likewise.
30329 (__expr_is_real): Likewise.
30330 (__tgmath_real_type_sub): Update comment to describe handling of
30331 complex types.
30332 (__tgmath_complex_type_sub): New macro.
30333 (__tgmath_complex_type): Likewise.
30334 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30335 (__TGMATH_CF128): Use __expr_is_real.
30336 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30337 __expr_is_real.
30338 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30339 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30340 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30341 integer types.
30342
30343 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30344
30345 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30346 macro.
30347 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30348 alias.
30349 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30350 Likewise.
30351
30352 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30353 nanosleep_not_cancel with __nanosleep_nocancel.
30354 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30355 (__nanosleep_nocancel): New macro.
30356 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30357 function.
30358 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30359 macro.
30360 (__nanosleep_nocancel): New prototype.
30361
30362 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30363 pause_not_cancel with __pause_nocancel.
30364 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30365 (__pause_nocancel): New macro.
30366 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30367 macro.
30368 (__pause_nocancel): New prototype.
30369 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30370
30371 2017-08-22 Martin Sebor <msebor@redhat.com>
30372
30373 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30374 to return a pointer to the same type as the target function.
30375
30376 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30377
30378 [BZ #18822]
30379 [BZ #21986]
30380 * include/printf.h (__printf_fphex): Add attribute_hidden.
30381 (__guess_grouping): New prototype.
30382 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30383 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30384 libc_hidden_proto and libc_hidden_def.
30385 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30386 (__vstrfmon_l): Remove the third argument passed to
30387 __guess_grouping.
30388
30389 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30390
30391 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30392 definition for issignaling that does not rely on __MATH_TG,
30393 since __MATH_TG uses __builtin_types_compatible_p, which is only
30394 available in C mode.
30395 (CFLAGS-test-math-issignaling.cc): New variable.
30396 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30397 * math/test-math-issignaling.cc: New test for C++ implementation
30398 of type-generic issignaling.
30399 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30400 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30401 options of test-math-issignaling on powerpc64le.
30402
30403 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30404
30405 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30406 building libc.a.
30407 (hidden_proto): Likewise.
30408 (hidden_tls_proto): Likewise.
30409 (__hidden_proto): Likewise.
30410
30411 2017-08-22 Florian Weimer <fweimer@redhat.com>
30412
30413 math: Statically link tests of internal functionality.
30414 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30415 atest-exp2.
30416 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30417 (gmp-objs): Remove assignment.
30418 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30419
30420 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30421
30422 [BZ #21987]
30423 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30424 and copy to ...
30425 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30426 ... here.
30427 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30428 ... and here.
30429
30430 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30431 variable definitions above inclusion of ../Rules.
30432
30433 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30434
30435 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30436 case calling __builtin_unreachable.
30437
30438 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30439
30440 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30441 __waitpid_nocancel.
30442 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30443 (__waitpid_nocancel): New macro.
30444 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30445 macro.
30446 (__waitpid_nocancel): Replace macro with a function.
30447 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30448 function.
30449
30450 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30451 __fcntl_nocancel.
30452 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30453 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30454
30455 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30456 __writev_nocancel_nostatus.
30457 (write_call_graph): Likewise.
30458 (write_bb_counts): Likewise.
30459 * resolv/herror.c (herror): Likewise.
30460 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30461 macro.
30462 (__writev_nocancel_nostatus): New macro.
30463 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30464 Remove macro.
30465 (__writev_nocancel_nostatus): New function.
30466
30467 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30468
30469 Revert:
30470 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30471
30472 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30473 building libc.a.
30474 (hidden_proto): Likewise.
30475 (hidden_tls_proto): Likewise.
30476 (__hidden_proto): Likewise.
30477
30478 [BZ #21973]
30479 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30480 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30481 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30482 Likewise.
30483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30484 Likewise.
30485 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30486 Likewise.
30487 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30488 Likewise.
30489 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30490 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30491 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30492 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30493 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30494 GLIBC_2.0 sqrtl symbol.
30495
30496 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30497 [__USE_MISC] (_LIB_VERSION): Likewise.
30498 [__USE_MISC] (struct exception): Likewise.
30499 [__USE_MISC] (matherr): Likewise.
30500 [__USE_MISC] (DOMAIN): Likewise.
30501 [__USE_MISC] (SING): Likewise.
30502 [__USE_MISC] (OVERFLOW): Likewise.
30503 [__USE_MISC] (UNDERFLOW): Likewise.
30504 [__USE_MISC] (TLOSS): Likewise.
30505 [__USE_MISC] (PLOSS): Likewise.
30506 [__USE_MISC] (HUGE): Likewise.
30507 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30508 * math/math-svid-compat.h: New file.
30509 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30510 and matherrl.
30511 * include/math.h [!_ISOMAC] (__matherr): Remove.
30512 * manual/arith.texi (FP Exceptions): Do not document matherr.
30513 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30514 (tests-internal): New variable.
30515 (install-lib): Do not add libieee.a.
30516 (non-lib.a): Likewise.
30517 (extra-objs): Do not add libieee.a and ieee-math.o.
30518 (CPPFLAGS-s_lib_version.c): Remove variable.
30519 ($(objpfx)libieee.a): Remove rule.
30520 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30521 * math/ieee-math.c: Remove.
30522 * math/libm-test-support.c (matherr): Remove.
30523 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30524 and license notices. Include <math-svid-compat.h> and
30525 <shlib-compat.h>.
30526 (matherr): Undefine as macro. Use compat_symbol_reference.
30527 (_LIB_VERSION): Likewise.
30528 * math/test-matherr-2.c: New file.
30529 * math/test-matherr-3.c: Likewise.
30530 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30531 declaration.
30532 (__kernel_standard_f): Likewise.
30533 (__kernel_standard_l): Likewise.
30534 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30535 <math_private.h>. Include <math-svid-compat.h>.
30536 (_LIB_VERSION): Undefine as macro.
30537 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30538 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30539 [LIBM_SVID_COMPAT], use compat_symbol.
30540 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30541 <math_private.h>. Include <math-svid-compat.h>.
30542 (matherr): Undefine as macro.
30543 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30544 compat_symbol.
30545 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30546 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30547 compat_symbol_reference.
30548 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30549 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30550 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30551 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30552 (MATHERR_D): Remove declaration.
30553 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30554 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30555 [LIBM_BUILD] (pmatherrf): Likewise.
30556 [LIBM_BUILD] (pmatherr): Likewise.
30557 [LIBM_BUILD] (pmatherrl): Likewise.
30558 (DOMAIN): Likewise.
30559 (SING): Likewise.
30560 (OVERFLOW): Likewise.
30561 (UNDERFLOW): Likewise.
30562 (TLOSS): Likewise.
30563 (PLOSS): Likewise.
30564 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30565 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30566 compat_symbol.
30567 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30568 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30569 compat_symbol.
30570 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30571 * math/w_acos_compat.c: Likewise.
30572 * math/w_acosf_compat.c: Likewise.
30573 * math/w_acosh_compat.c: Likewise.
30574 * math/w_acoshf_compat.c: Likewise.
30575 * math/w_acoshl_compat.c: Likewise.
30576 * math/w_acosl_compat.c: Likewise.
30577 * math/w_asin_compat.c: Likewise.
30578 * math/w_asinf_compat.c: Likewise.
30579 * math/w_asinl_compat.c: Likewise.
30580 * math/w_atan2_compat.c: Likewise.
30581 * math/w_atan2f_compat.c: Likewise.
30582 * math/w_atan2l_compat.c: Likewise.
30583 * math/w_atanh_compat.c: Likewise.
30584 * math/w_atanhf_compat.c: Likewise.
30585 * math/w_atanhl_compat.c: Likewise.
30586 * math/w_cosh_compat.c: Likewise.
30587 * math/w_coshf_compat.c: Likewise.
30588 * math/w_coshl_compat.c: Likewise.
30589 * math/w_exp10_compat.c: Likewise.
30590 * math/w_exp10f_compat.c: Likewise.
30591 * math/w_exp10l_compat.c: Likewise.
30592 * math/w_exp2_compat.c: Likewise.
30593 * math/w_exp2f_compat.c: Likewise.
30594 * math/w_exp2l_compat.c: Likewise.
30595 * math/w_fmod_compat.c: Likewise.
30596 * math/w_fmodf_compat.c: Likewise.
30597 * math/w_fmodl_compat.c: Likewise.
30598 * math/w_hypot_compat.c: Likewise.
30599 * math/w_hypotf_compat.c: Likewise.
30600 * math/w_hypotl_compat.c: Likewise.
30601 * math/w_j0_compat.c: Likewise.
30602 * math/w_j0f_compat.c: Likewise.
30603 * math/w_j0l_compat.c: Likewise.
30604 * math/w_j1_compat.c: Likewise.
30605 * math/w_j1f_compat.c: Likewise.
30606 * math/w_j1l_compat.c: Likewise.
30607 * math/w_jn_compat.c: Likewise.
30608 * math/w_jnf_compat.c: Likewise.
30609 * math/w_jnl_compat.c: Likewise.
30610 * math/w_lgamma_main.c: Likewise.
30611 * math/w_lgamma_r_compat.c: Likewise.
30612 * math/w_lgammaf_main.c: Likewise.
30613 * math/w_lgammaf_r_compat.c: Likewise.
30614 * math/w_lgammal_main.c: Likewise.
30615 * math/w_lgammal_r_compat.c: Likewise.
30616 * math/w_log10_compat.c: Likewise.
30617 * math/w_log10f_compat.c: Likewise.
30618 * math/w_log10l_compat.c: Likewise.
30619 * math/w_log2_compat.c: Likewise.
30620 * math/w_log2f_compat.c: Likewise.
30621 * math/w_log2l_compat.c: Likewise.
30622 * math/w_log_compat.c: Likewise.
30623 * math/w_logf_compat.c: Likewise.
30624 * math/w_logl_compat.c: Likewise.
30625 * math/w_pow_compat.c: Likewise.
30626 * math/w_powf_compat.c: Likewise.
30627 * math/w_powl_compat.c: Likewise.
30628 * math/w_remainder_compat.c: Likewise.
30629 * math/w_remainderf_compat.c: Likewise.
30630 * math/w_remainderl_compat.c: Likewise.
30631 * math/w_scalb_compat.c: Likewise.
30632 * math/w_scalbf_compat.c: Likewise.
30633 * math/w_scalbl_compat.c: Likewise.
30634 * math/w_sinh_compat.c: Likewise.
30635 * math/w_sinhf_compat.c: Likewise.
30636 * math/w_sinhl_compat.c: Likewise.
30637 * math/w_sqrt_compat.c: Likewise.
30638 * math/w_sqrtf_compat.c: Likewise.
30639 * math/w_sqrtl_compat.c: Likewise.
30640 * math/w_tgamma_compat.c: Likewise.
30641 * math/w_tgammaf_compat.c: Likewise.
30642 * math/w_tgammal_compat.c: Likewise.
30643 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30644 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30645 * sysdeps/ieee754/k_standard.c: Likewise.
30646 * sysdeps/ieee754/k_standardf.c: Likewise.
30647 * sysdeps/ieee754/k_standardl.c: Likewise.
30648 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30649 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30650 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30651 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30652 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30653 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30654 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30655 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30656 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30657 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30658 Likewise.
30659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30660 Likewise.
30661 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30662 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30663 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30664 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30665
30666 2017-08-21 Florian Weimer <fweimer@redhat.com>
30667
30668 [BZ #21864]
30669 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30670 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30671 Move before inclusion of ../Rules.
30672
30673 2017-08-21 Florian Weimer <fweimer@redhat.com>
30674
30675 [BZ #21972]
30676 * assert/assert.h (assert): Use static_cast (bool) for C++.
30677 Use the ternary operator in the warning branch for GNU C.
30678 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30679 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30680 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30681 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30682 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30683
30684 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30685
30686 [BZ #18822]
30687 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30688 (__syscall_clock_gettime): Add attribute_hidden.
30689 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30690 (__start_context): Likewise.
30691
30692 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30693
30694 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30695 building libc.a.
30696 (hidden_proto): Likewise.
30697 (hidden_tls_proto): Likewise.
30698 (__hidden_proto): Likewise.
30699
30700 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30701
30702 * include/libc-symbols.h (attribute_hidden): Enable hidden
30703 visibility in libc.a compiled with PIE.
30704
30705 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30706
30707 [BZ #18822]
30708 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30709 Add attribute_hidden.
30710
30711 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30712
30713 [BZ #21864]
30714 * Makerules (all-nonlib): Add $(others-extras).
30715 * catgets/Makefile (others-extras): New.
30716 * elf/Makefile (others-extras): Likewise.
30717 * nss/Makefile (others-extras): Likewise.
30718
30719 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30720
30721 [BZ #18822]
30722 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30723 * elf/dl-open.c: Include <libc-internal.h>.
30724 (__libc_multiple_libcs): Removed.
30725 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30726 <hp-timing.h>.
30727 * include/libc-internal.h (__libc_multiple_libcs): New.
30728 * misc/sbrk.c: Include <libc-internal.h>.
30729 (__libc_multiple_libcs): Removed.
30730
30731 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30732
30733 [BZ #18822]
30734 * grp/initgroups.c (__nss_group_database): Removed.
30735 (__nss_initgroups_database): Likewise.
30736 * nscd/gai.c (__nss_hosts_database): Likewise.
30737 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30738 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30739 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30740 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30741 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30742 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30743 attribute_hidden.
30744 * nss/nsswitch.c (__nss_database_custom): Define only if
30745 USE_NSCD is defined.
30746 (__nss_configure_lookup): Use __nss_database_custom only if
30747 USE_NSCD is defined.
30748 * nss/nsswitch.h (__nss_database_custom): Declare only if
30749 USE_NSCD is defined. Add attribute_hidden.
30750 (__nss_setent): Add attribute_hidden.
30751 (__nss_endent): Likewise.
30752 (__nss_getent_r): Likewise.
30753 (__nss_getent): Likewise.
30754 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30755
30756 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30757
30758 [BZ #18822]
30759 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30760 libc_hidden_proto and libc_hidden_def.
30761
30762 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30763
30764 [BZ #18822]
30765 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30766 Add libc_hidden_proto.
30767 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30768 Add libc_hidden_def.
30769
30770 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30771
30772 [BZ #21974]
30773 * gmon/Makefile (routines): Remove bb_init_func and
30774 bb_exit_func.
30775 (elide-routines.os): Removed.
30776 * gmon/bb_exit_func.c: Likewise.
30777 * gmon/bb_init_func.c: Likewise.
30778 * include/sys/gmon.h (__bb): Likewise.
30779 (__bb_init_func): Likewise.
30780 (__bb_exit_func): Likewise.
30781 * sysdeps/alpha/bb_init_func.S: Likewise.
30782
30783 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30784
30785 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30786 * include/setjmp.h (____longjmp_chk): Here. Add
30787 attribute_hidden.
30788
30789 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30790
30791 [BZ #18822]
30792 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30793 attribute_hidden.
30794 (__strspn_sse2): Likewise.
30795
30796 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30797
30798 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30799 (close_not_cancel_no_status): Likewise.
30800 (__close_nocancel): New macro.
30801 (__close_nocancel_nostatus): Likewise.
30802 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30803 macro.
30804 (close_not_cancel): Likewise.
30805 (close_not_cancel_no_status): Likewise.
30806 (__close_nocancel): New prototype.
30807 (__close_nocancel_nostatus): New function.
30808 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30809 * catgets/open_catalog.c (__open_catalog): Replace
30810 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30811 * gmon/gmon.c (write_gmon): Likewise.
30812 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30813 * intl/loadmsgcat.c (close): Likewise.
30814 * io/ftw.c (open_dir_stream): Likewise.
30815 (ftw_startup): Likewise.
30816 * libio/fileops.c (_IO_file_open): Likewise.
30817 (_IO_file_close_mmap): Likewise.
30818 (_IO_file_close): Likewise.
30819 * libio/iopopen.c (_IO_dup2): Likewise.
30820 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30821 * locale/loadlocale.c (_nl_load_locale): Likewise.
30822 * login/utmp_file.c (pututline_file): Likewise.
30823 (endutent_file): Likewise.
30824 * misc/daemon.c (daemon): Likewise.
30825 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30826 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30827 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30828 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30829 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30830 * nscd/nscd_helper.c (open_socket): Likewise.
30831 (__nscd_open_socket): Likewise.
30832 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30833 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30834 (__nscd_innetgr): Likewise.
30835 * nss/nss_db/db-open.c (internal_setent): Likewise.
30836 * resolv/res-close.c (__res_iclose): Likewise.
30837 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30838 * sysdeps/posix/closedir.c (__closedir): Likewise.
30839 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30840 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30841 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30842 (opendir_tail): Likewise.
30843 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30844 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30845 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30846 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30847 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30848 (gethostid): Likewise.
30849 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30850 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30851 Likewise.
30852 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30853 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30854 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30855 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30856 Likewise.
30857 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30858 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30859 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30860 Likewise.
30861 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30862 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30863 Likewise.
30864 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30865 Likewise.
30866 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30867 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30868 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30869 __close_nocancel.
30870
30871 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30872 (openat_not_cancel_3): Likewise.
30873 (openat64_not_cancel_3): Likewise).
30874 (openat_not_cancel_3): Likewise).
30875 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30876 macro.
30877 (openat_not_cancel_3): Likewise.
30878 (openat64_not_cancel): Likewise.
30879 (openat64_not_cancel_3): Likewise.
30880 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30881 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30882 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30883 __open{64}_nocancel.
30884 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30885 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30886 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30887
30888 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30889
30890 [BZ #18822]
30891 * include/argz.h (__argz_create_sep): New function prototype.
30892 (__argz_append): Likewise.
30893 (__argz_add): Likewise.
30894 (__argz_add_sep): Likewise.
30895 (__argz_delete): Likewise.
30896 (__argz_insert): Likewise.
30897 (__argz_replace): Likewise.
30898 * string/argz.h (__argz_create_sep): Removed.
30899 (__argz_append): Likewise.
30900 (__argz_add): Likewise.
30901 (__argz_add_sep): Likewise.
30902 (__argz_delete): Likewise.
30903 (__argz_insert): Likewise.
30904 (__argz_replace): Likewise.
30905
30906 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30907
30908 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30909 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30910 (GNU_PROPERTY_STACK_SIZE): Likewie.
30911 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30912 (GNU_PROPERTY_LOPROC): Likewise.
30913 (GNU_PROPERTY_HIPROC): Likewise.
30914 (GNU_PROPERTY_LOUSER): Likewise.
30915 (GNU_PROPERTY_HIUSER): Likewise.
30916 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30917 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30918 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30919 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30920 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30921 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30922 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30923 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30924 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30925 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30926 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30927 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30928 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30929 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30930 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30931 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30932 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30933 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30934 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30935 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30936 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30937 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30938 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30939
30940 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30941
30942 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30943 in C++ mode.
30944
30945 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30946
30947 [BZ #21930]
30948 * math/math.h (isinf): Check if in C or C++ mode before using
30949 __builtin_types_compatible_p, since this is a C mode feature.
30950
30951 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30952
30953 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30954 (__write_nocancel): New macro.
30955 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30956 Rewrite as a function prototype.
30957 (write_not_cancel): Remove macro.
30958 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30959 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30960 (write_gmon): Likewise.
30961 * libio/fileops.c (_IO_new_file_write): Likewise.
30962 * login/utmp_file.c (pututline_file): Likewise.
30963 (updwtmp_file): Likewise.
30964 * stdio-common/psiginfo.c (psiginfo): Likewise.
30965 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30966 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30967 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30968 Likewise.
30969 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30970 Likewise.
30971
30972 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30973 (__read_nocancel): New macro.
30974 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30975 __read_nocancel.
30976 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30977 macro.
30978 (__read_nocancel): New prototype.
30979 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30980 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30981 with __read_nocancel.
30982 * intl/loadmsgcat.c (read): Likewise.
30983 * libio/fileops.c (_IO_file_read): Likewise.
30984 * locale/loadlocale.c (_nl_load_locale): Likewise.
30985 * login/utmp_file.c (getutent_r_file): Likewise.
30986 (internal_getut_r): Likewise.
30987 (getutline_r_file): Likewise.
30988 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30989 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30990 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30991 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30992 Likewise.
30993 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30994 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30995 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30996 Likewise.
30997 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30998 Likewise.
30999 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31000 Likewise.
31001 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31002 Likewise.
31003 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31004
31005 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31006
31007 [BZ #21966]
31008 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31009 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31010 usable.
31011
31012 2017-08-17 DJ Delorie <dj@redhat.com>
31013
31014 * bug17079.c: Update to new test harness.
31015 * test-digits-dots.c: Likewise.
31016 * test-netdb.c: Likewise.
31017 * tst-field.c: Likewise.
31018 * tst-nss-getpwent.c: Likewise.
31019 * tst-nss-static.c: Likewise.
31020 * tst-nss-test1.c: Likewise.
31021 * tst-nss-test2.c: Likewise.
31022 * tst-nss-test3.c: Likewise.
31023 * tst-nss-test4.c: Likewise.
31024 * tst-nss-test5.c: Likewise.
31025
31026 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31027
31028 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31029 (open_not_cancel_2): Likewise.
31030 (open_nocancel): New macro.
31031 (open64_nocancel): Likewise.
31032 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31033 (open_not_cancel_2): Likewise.
31034 (__open_nocancel): New prototype.
31035 (__open64_nocancel): Likewise.
31036 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31037 __open_nocancel.
31038 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31039 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31040 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31041 with __open_nocancel.
31042 * csu/check_fds.c (check_one_fd): Likewise.
31043 * gmon/gmon.c (write_gmon): Likewise.
31044 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31045 * intl/loadmsgcat.c (open): Likewise.
31046 * libio/fileops.c (_IO_file_open): Likewise.
31047 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31048 * locale/loadlocale.c (_nl_load_locale): Likewise.
31049 * login/utmp_file.c (setutent_file): Likewise.
31050 * misc/daemon.c (daemon): Likewise.
31051 * nss/nss_db/db-open.c (internal_setent): Likewise.
31052 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31053 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31054 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31055 (__opendir): Likewise.
31056 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31057 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31058 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31059 (gethostid): Likewise.
31060 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31061 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31062 Likewise.
31063 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31064 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31065 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31066 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31067 Likewise.
31068 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31069 Likewise.
31070 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31071 Likewise.
31072 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31073 Likewise.
31074 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31075 Likewise.
31076 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31077 Likewise.
31078 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31079 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31080
31081 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31082
31083 * benchtests/bench-skeleton.c (main): Add support for
31084 latency benchmarking.
31085 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31086
31087 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31088
31089 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31090 the startup object.
31091
31092 2017-08-17 Florian Weimer <fweimer@redhat.com>
31093
31094 * include/sys/socket.h (__opensock): Remove internal_function.
31095 * socket/opensock.c (__opensock): Likewise.
31096 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31097
31098 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31099
31100 [BZ #21944]
31101 * signal/bits/types/__sigval_t.h: New file.
31102 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31103 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31104 and define sigval_t using __sigval_t.
31105 * include/bits/types/__sigval_t.h: New file.
31106 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31107 instead of <bits/types/__sigval_t.h>.
31108 (struct sigevent): Use __sigval_t instead of sigval_t.
31109 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31110 instead of <bits/types/__sigval_t.h>.
31111 (siginfo_t): Use __sigval_t instead of sigval_t.
31112 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31113 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31114 (struct sigevent): Use __sigval_t instead of sigval_t.
31115 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31116 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31117 (siginfo_t): Use __sigval_t instead of sigval_t.
31118 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31119
31120 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31121
31122 * NEWS: Remove "[Add new features here]" for 2.27.
31123
31124 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31125
31126 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31127 libc.so.
31128
31129 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31130
31131 * NEWS: Mention x86-64 FMA optimization.
31132
31133 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31134
31135 [BZ #21912]
31136 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31137 Add e_expf-fma.
31138 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31139 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31140 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31141
31142 2017-08-16 Andreas Schwab <schwab@suse.de>
31143
31144 [BZ #16750]
31145 CVE-2009-5064
31146 * elf/ldd.bash.in: Never run file directly.
31147
31148 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31149
31150 [BZ #21955]
31151 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31152 (L(SP_INF_0)): Likewise.
31153
31154 2017-08-15 Florian Weimer <fweimer@redhat.com>
31155
31156 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31157 run-built-tests.
31158
31159 2017-08-15 Florian Weimer <fweimer@redhat.com>
31160
31161 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31162 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31163 BROKEN_THREAD_SIGNALS code.
31164 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31165 request_list): Remove caller_pid member used for
31166 BROKEN_THREAD_SIGNALS.
31167 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31168 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31169 Remove BROKEN_THREAD_SIGNALS support.
31170 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31171 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31172
31173 2017-08-15 Florian Weimer <fweimer@redhat.com>
31174
31175 * gmon/Makefile (tests): Add tst-gmon.
31176 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31177 Set.
31178 (tests-special): Add tst-gmon-prof.out.
31179 (tst-gmon.out): Depend on clean-tst-gmon-data.
31180 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31181 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31182 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31183 startup object.
31184 * aclocal.m4 (GPROF): Set and substitute.
31185 * config.amke.in (GPROF): Set.
31186 * configure: Regenerate.
31187
31188 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31189
31190 * elf/elf.h A (NT_PPC_TAR): New macro.
31191 (NT_PPC_PPR): Likewise.
31192 (NT_PPC_DSCR): Likewise.
31193 (NT_PPC_EBB): Likewise.
31194 (NT_PPC_PMU): Likewise.
31195 (NT_PPC_TM_CGPR): Likewise.
31196 (NT_PPC_TM_CFPR): Likewise.
31197 (NT_PPC_TM_CVMX): Likewise.
31198 (NT_PPC_TM_CVSX): Likewise.
31199 (NT_PPC_TM_SPR): Likewise.
31200 (NT_PPC_TM_CTAR): Likewise.
31201 (NT_PPC_TM_CPPR): Likewise.
31202 (NT_PPC_TM_CDSCR): Likewise.
31203
31204 2017-08-15 Florian Weimer <fweimer@redhat.com>
31205
31206 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31207 regparm (2) instead of internal_function.
31208 (_MCOUNT_DECL): Adjust.
31209
31210 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31211
31212 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31213 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31214
31215 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31216
31217 * conform/data/sys/wait.h-data (si_value): Do not expect for
31218 XPG42.
31219
31220 2017-08-14 Florian Weimer <fweimer@redhat.com>
31221
31222 [BZ #21962]
31223 NSS: Create stubs for accidentally exported lookup functions.
31224 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31225 Remove declaration.
31226 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31227 (ether_hostton): Call __nss_ethers_lookup2 instead.
31228 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31229 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31230 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31231 (setup): Call __nss_netgroup_lookup2 instead.
31232 * nss/Makefile (routines): Add compat-lookup.
31233 * nss/Versions (GLIBC_2.27): Add symbol version.
31234 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31235 (DB_COMPAT_FCT): Remove.
31236 * nss/compat-lookup.c: New file.
31237 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31238 from databases.def.
31239 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31240 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31241 (netname2user): Call __nss_publickey_lookup2 instead.
31242 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31243 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31244 instead.
31245
31246 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31247 Sergei Trofimovich <slyfox@inbox.ru>
31248
31249 [BZ #21908]
31250 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31251 Rename to MMAP2_PAGE_UNIT.
31252 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31253 __OFF_T_MATCHES_OFF64_T is not defined.
31254 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31255 uint64_t.
31256 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31257 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31258
31259 2017-08-14 Florian Weimer <fweimer@redhat.com>
31260
31261 i386: Do not set internal_function.
31262 * config.h.in (USE_REGPARMS, internal_function): Remove.
31263 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31264 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31265
31266 2017-08-14 Florian Weimer <fweimer@redhat.com>
31267
31268 * elf/dl-init.c (_dl_init): Remove internal_function.
31269 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31270 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31271
31272 2017-08-14 Florian Weimer <fweimer@redhat.com>
31273
31274 * elf/rtld.c (_dl_start): Remove internal_function.
31275 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31276 _dl_start.
31277
31278 2017-08-14 Florian Weimer <fweimer@redhat.com>
31279
31280 * elf/dl-fini.c (_dl_fini): Remove internal_function
31281 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31282
31283 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31284
31285 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31286 (bit_cpu_SHSTK): Likewise.
31287 (index_cpu_IBT): Likewise.
31288 (index_cpu_SHSTK): Likewise.
31289 (reg_IBT): Likewise.
31290 (reg_SHSTK): Likewise.
31291 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31292 Handle index_cpu_IBT and index_cpu_SHSTK.
31293
31294 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31295
31296 [BZ #19982]
31297 * po/fr.po: Fix spelling mistake.
31298
31299 2017-08-13 Florian Weimer <fweimer@redhat.com>
31300
31301 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31302 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31303 (_dl_catch_error, _dl_receive_error): Likewise.
31304 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31305 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31306 (_dl_deallocate_tls): Likewise.
31307 * include/dlfcn.h (_dl_addr): Likewise.
31308 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31309 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31310 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31311 Likewise.
31312
31313 2017-08-13 Florian Weimer <fweimer@redhat.com>
31314
31315 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31316 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31317 internal_function.
31318 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31319
31320 2017-08-13 Florian Weimer <fweimer@redhat.com>
31321
31322 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31323 internal_function.
31324 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31325 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31326 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31327 internal_function from _dl_make_stack_executable_hook member.
31328 (_dl_make_stack_executable): Remove internal_function.
31329 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31330 Likewise.
31331 * sysdeps/unix/sysv/linux/dl-execstack.c
31332 (_dl_make_stack_executable): Likewise.
31333
31334 2017-08-13 Florian Weimer <fweimer@redhat.com>
31335
31336 * sysdeps/unix/sysv/linux/netlinkaccess.h
31337 (__netlink_assert_response): Remove internal_function.
31338 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31339 (__netlink_assert_response): Likewise.
31340
31341 2017-08-13 Florian Weimer <fweimer@redhat.com>
31342
31343 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31344 internal_function.
31345 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31346
31347 2017-08-13 Florian Weimer <fweimer@redhat.com>
31348
31349 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31350 internal_function.
31351 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31352 * inet/netgroup.h (__internal_setnetgrent)
31353 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31354 * inet/getnetgrent_r.c (__internal_setnetgrent)
31355 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31356 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31357 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31358 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31359 * nss/nsswitch.h (db_lookup_function): Likewise.
31360
31361 2017-08-13 Florian Weimer <fweimer@redhat.com>
31362
31363 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31364 Remove internal_function.
31365 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31366 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31367 message argument on the stack.
31368 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31369 Likeweise.
31370
31371 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31372
31373 Adapt test case data to the changes in the thousands
31374 separators.
31375
31376 [BZ #20756]
31377 * localedata/tst-langinfo.sh: Adapt test case data.
31378 * stdlib/tst-strfmon_l.c: Likewise.
31379 * stdlib/tst-strtod4.c: Likewise.
31380 * stdlib/tst-strtod5i.c: Likewise.
31381
31382 2017-08-11 Florian Weimer <fweimer@redhat.com>
31383
31384 [BZ #21242]
31385 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31386 Suppress pedantic warning resulting from statement expression.
31387 (__ASSERT_FUNCTION): Add missing __extension__.
31388
31389 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31390
31391 * benchtests/bench-memmove-large.c: Print output in JSON
31392 format.
31393 * benchtests/bench-memmove.c: Likewise.
31394
31395 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31396 * benchtests/bench-memchr.c (do_one_test): Likewise.
31397 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31398 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31399 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31400 * benchtests/bench-memmove.c (do_one_test): Likewise.
31401 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31402 * benchtests/bench-memset.c (do_one_test): Likewise.
31403 * benchtests/bench-string.h (test_init): Remove memsets.
31404
31405 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31406
31407 * manual/lang.texi
31408 (Computing the Width of an Integer Data Type): Rename section to
31409 "Width of an Integer Type". Remove inaccurate statement regarding
31410 lack of C language facilities for determining width of integer
31411 types, and reorder content to improve flow and context of
31412 discussion.
31413
31414 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31415
31416 * lang.texi (va_copy): Change standard from ISO to C99.
31417 (__va_copy): Add standard and header annotation.
31418 Update description for clarity of origins and current use.
31419
31420 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31421
31422 [BZ #21941]
31423 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31424 xssqrtqp requires operands to be in Vector Registers
31425 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31426 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31427 (__ieee754_sqrtf128): Likewise.
31428
31429 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31430
31431 * sysdeps/aarch64/memcmp.S (memcmp):
31432 Rewrite of optimized memcmp.
31433
31434 2017-08-10 Florian Weimer <fweimer@redhat.com>
31435
31436 Introduce ld.so exceptions.
31437 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31438 (_dl_exception_create, _dl_exception_create_format)
31439 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31440 (_dl_catch_exception): Declare.
31441 (_dl_catch_error): Update comment.
31442 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31443 errstring, malloced members with exception member.
31444 (_dl_out_of_memory): Remove.
31445 (fatal_error): New function, extracted from _dl_signal_error.
31446 (_dl_signal_exception, _dl_signal_cexception): New functions.
31447 (_dl_signal_error): Call _dl_exception_create to allocate an
31448 exception object.
31449 (_dl_catch_exception): New function, based on _dl_catch_error.
31450 (_dl_catch_error): Implement using _dl_catch_exception.
31451 * elf/dl-exception.c: New file.
31452 * elf/Makefile (dl-routines): Add dl-exception.
31453 (elide-routines.os): Likewise.
31454 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31455 _dl_exception_create_format, _dl_exception_free.
31456 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31457 _dl_signal_exception.
31458 * elf/dl-lookup.c (make_string): Remove.
31459 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31460 _dl_signal_cexception, _dl_exception_free.
31461 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31462 _dl_signal_exception.
31463 * elf/dl-sym.c (do_sym): Likewise.
31464 * elf/dl-version.c (make_string): Remove.
31465 (match_symbol): Use _dl_exception_create_format,
31466 _dl_signal_cexception, _dl_exception_free.
31467 (_dl_check_map_versions): Likewise.
31468 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31469 _dl_catch_exception.
31470 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31471 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31472 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31473 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31474 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31475 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31476 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31477 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31478 Likewise.
31479 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31481 (ld.so): Likewise.
31482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31483 (ld.so): Likewise.
31484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31485 Likewise.
31486 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31487 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31488 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31489 Likewise.
31490 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31491 Likewise.
31492 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31493
31494 2017-08-10 Florian Weimer <fweimer@redhat.com>
31495
31496 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31497 attribute_hidden, internal_function.
31498 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31499 internal_function.
31500
31501 2017-08-10 Florian Weimer <fweimer@redhat.com>
31502
31503 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31504 function which calls __builtin_unreachable.
31505
31506 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31507
31508 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31509 Indian monetary formatting
31510 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31511 test cases.
31512
31513 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31514
31515 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31516 Fix typo in comment.
31517
31518 [BZ #21928]
31519 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31520 PTRACE_SEIZE_DEVEL): Remove.
31521 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31522 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31523 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31524 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31525 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31526
31527 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31528
31529 * posix/bits/types.h (__qaddr_t): Remove.
31530
31531 [BZ #21457]
31532 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31533 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31534 __glibc_reserved1.
31535 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31536 (ucontext_t): Use __ctx with uc_flags.
31537 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31538 (__ctxt): Likewise.
31539 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31540 __glibc_reserved1.
31541 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31542 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31543 __glibc_reserved1.
31544 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31545 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31546 __glibc_reserved1.
31547 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31548 macro.
31549 (ucontext_t): Use __ctx with uc_flags.
31550 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31551 (ucontext_t): Use __ctx with uc_flags.
31552 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31553 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31554 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31555 (ucontext_t): Use __ctx with uc_flags.
31556 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31557 undefine further down.
31558 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31559 __glibc_reserved1.
31560 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31561 undefine further down.
31562 (ucontext_t): Use __ctx with uc_flags.
31563 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31564 undefine further down.
31565 (ucontext_t): Use __ctx with uc_flags.
31566 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31567 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31568 Rename uc_pad to __glibc_reserved1.
31569 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31570 undefine further down.
31571 (ucontext_t): Use __ctx with uc_flags.
31572 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31573 further down.
31574 (ucontext_t): Use __ctx with uc_flags.
31575 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31576 __ctx with uc_flags.
31577 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31578 (ucontext_t): Use __ctx with uc_flags.
31579 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31580 __ctx with uc_flags.
31581
31582 2017-08-09 Florian Weimer <fweimer@redhat.com>
31583
31584 [BZ #21932]
31585 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31586 before early return.
31587
31588 2017-08-09 Andreas Schwab <schwab@suse.de>
31589
31590 [BZ #21041]
31591 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31592 renamed alias.
31593
31594 [BZ #21041]
31595 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31596 tst-compat-forwarder.
31597 (modules-names): Add tst-compat-forwarder-mod.
31598 ($(objpfx)tst-compat-forwarder): Depend on
31599 $(objpfx)tst-compat-forwarder-mod.so.
31600 * nptl/tst-compat-forwarder.c: New file.
31601 * nptl/tst-compat-forwarder-mod.c: New file.
31602
31603 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31604
31605 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31606 comments.
31607
31608 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31609 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31610 memcpy_falkor.
31611 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31612 Bump.
31613 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31614 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31615 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31616 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31617 Add falkor.
31618 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31619 New macro.
31620
31621 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31622
31623 [BZ #759]
31624 * manual/setjmp.texi (getcontex): Document uc_stack value
31625 compatibility differences.
31626
31627 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31628
31629 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31630 (old_malloc_hook): Likewise.
31631 (old_memalign_hook): Likewise.
31632 (old_realloc_hook): Likewise.
31633 (struct hdr): Likewise.
31634 (flood): Likewise.
31635 (freehook): Likewise.
31636 (mallochook): Likewise.
31637 (memalignhook): Likewise.
31638 (reallochook): Likewise.
31639 (mprobe): Likewise.
31640 * malloc/mtrace.c (mallwatch): Likewise.
31641 (tr_old_free_hook): Likewise.
31642 (tr_old_malloc_hook): Likewise.
31643 (tr_old_realloc_hook): Likewise.
31644 (tr_old_memalign_hook): Likewise.
31645 (tr_where): Likewise.
31646 (lock_and_info): Likewise.
31647 (tr_freehook): Likewise.
31648 (tr_mallochook): Likewise.
31649 (tr_reallochook): Likewise.
31650 (tr_memalignhook): Likewise.
31651 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31652 * misc/mmap.c (__mmap): Likewise.
31653 * misc/mmap64.c (__mmap64): Likewise.
31654 * misc/mprotect.c (__mprotect): Likewise.
31655 * misc/msync.c (msync): Likewise.
31656 * misc/munmap.c (__munmap): Likewise.
31657 * posix/posix_madvise.c (posix_madvise): Likewise.
31658 * socket/send.c (__send): Likewise.
31659 * socket/sendto.c (__sendto): Likewise.
31660 * socket/setsockopt.c (__setsockopt): Likewise.
31661 * string/memcmp.c (__ptr_t): Remove macro.
31662 (MEMCMP): Use void * instead of ptr_t.
31663 * string/memrchr.c (__ptr_t): Remove macro.
31664 (__memrchr): Use void * instead of ptr_t.
31665 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31666 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31667 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31668 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31669 * sysdeps/mach/msync.c (msync): Likewise.
31670 * sysdeps/mach/munmap.c (__munmap): Likewise.
31671 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31672 Likewise.
31673 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31674 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31675 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31676 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31677 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31678 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31679 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31680 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31681 Likewise.
31682 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31683 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31684 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31685 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31686 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31687 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31688 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31689 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31690 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31691 Likewise.
31692 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31693 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31694 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31695 (MEMCMP): Use void * instead of ptr_t.
31696 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31697 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31698
31699 2017-08-08 Florian Weimer <fweimer@redhat.com>
31700
31701 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31702 return statement.
31703
31704 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31705
31706 [BZ #21913]
31707 * csu/libc-tls.c: Include <startup.h> first.
31708 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31709 * elf/dl-tunables.c: Include <startup.h> first.
31710 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31711 * sysdeps/generic/startup.h: New file.
31712 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31713 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31714 (I386_USE_SYSENTER): New. Defined to 0.
31715
31716 2017-08-08 Andreas Schwab <schwab@suse.de>
31717
31718 [BZ #21041]
31719 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31720 * nptl/pt-system.c (system): Likewise.
31721
31722 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31723
31724 [BZ #21780]
31725 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31726 EOPNOTSUPP.
31727 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31728 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31729 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31730 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31731 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31732 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31733 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31734
31735 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31736
31737 [BZ #21899]
31738 * bits/sigaction.h (struct sigaction): Define sa_handler and
31739 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31740 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31741 [__USE_XOPEN_EXTENDED].
31742 (SA_RESTART): Likewise.
31743 (SA_NODEFER): Likewise.
31744 (SA_RESETHAND): Likewise.
31745 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31746 (struct sigaction): Define sa_handler and sa_sigaction using union
31747 also for [__USE_XOPEN_EXTENDED].
31748 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31749 [__USE_XOPEN_EXTENDED].
31750 (SA_RESTART): Likewise.
31751 (SA_NODEFER): Likewise.
31752 (SA_RESETHAND): Likewise.
31753 * sysdeps/unix/sysv/linux/bits/sigaction.h
31754 (struct sigaction): Define sa_handler and sa_sigaction using union
31755 also for [__USE_XOPEN_EXTENDED].
31756 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31757 [__USE_XOPEN_EXTENDED].
31758 (SA_RESTART): Likewise.
31759 (SA_NODEFER): Likewise.
31760 (SA_RESETHAND): Likewise.
31761 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31762 (struct sigaction): Define sa_handler and sa_sigaction using union
31763 also for [__USE_XOPEN_EXTENDED].
31764 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31765 [__USE_XOPEN_EXTENDED].
31766 (SA_RESTART): Likewise.
31767 (SA_NODEFER): Likewise.
31768 (SA_RESETHAND): Likewise.
31769 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31770 (struct sigaction): Define sa_handler and sa_sigaction using union
31771 also for [__USE_XOPEN_EXTENDED].
31772 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31773 [__USE_XOPEN_EXTENDED].
31774 (SA_RESTART): Likewise.
31775 (SA_NODEFER): Likewise.
31776 (SA_RESETHAND): Likewise.
31777 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31778 (struct sigaction): Define sa_handler and sa_sigaction using union
31779 also for [__USE_XOPEN_EXTENDED].
31780 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31781 [__USE_XOPEN_EXTENDED].
31782 (SA_RESTART): Likewise.
31783 (SA_NODEFER): Likewise.
31784 (SA_RESETHAND): Likewise.
31785 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31786 (struct sigaction): Define sa_handler and sa_sigaction using union
31787 also for [__USE_XOPEN_EXTENDED].
31788 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31789 [__USE_XOPEN_EXTENDED].
31790 (SA_RESTART): Likewise.
31791 (SA_NODEFER): Likewise.
31792 (SA_RESETHAND): Likewise.
31793 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31794 (struct sigaction): Define sa_handler and sa_sigaction using union
31795 also for [__USE_XOPEN_EXTENDED].
31796 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31797 [__USE_XOPEN_EXTENDED].
31798 (SA_RESTART): Likewise.
31799 (SA_NODEFER): Likewise. Define directly rather than as alias.
31800 (SA_RESETHAND): Likewise.
31801 (SA_INTERRUPT): Define only for [__USE_MISC].
31802 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31803 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31804 [__USE_MISC].
31805 (SA_STACK): Define only for [__USE_MISC].
31806 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31807 (struct sigaction): Define sa_handler and sa_sigaction using union
31808 also for [__USE_XOPEN_EXTENDED].
31809 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31810 [__USE_XOPEN_EXTENDED].
31811 (SA_RESTART): Likewise.
31812 (SA_NODEFER): Likewise.
31813 (SA_RESETHAND): Likewise.
31814 (SA_NOPTRACE): Define only for [__USE_MISC].
31815
31816 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31817 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31818 (struct catalog_info): Likewise.
31819 * inet/htontest.c (lo): Likewise.
31820 (foo): Likewise.
31821 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31822 * inet/inet_net.c (inet_network): Likewise.
31823 * inet/inet_netof.c (inet_netof): Likewise.
31824 * inet/rcmd.c (__ivaliduser): Likewise.
31825 (iruserok): Likewise.
31826 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31827 * locale/programs/locale-spec.c (locale_special): Likewise.
31828 * nis/nis_findserv.c (struct findserv_req): Likewise.
31829 (__nis_findfastest_with_timeout): Likewise.
31830 * nss/test-netdb.c (test_network): Likewise.
31831 * resolv/inet_neta.c (inet_neta): Likewise.
31832 * resolv/ns_date.c (ns_datetosecs): Likewise.
31833 (SECS_PER_DAY): Likewise.
31834 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31835 Likewise.
31836 * resolv/res_comp.c (__putlong): Likewise.
31837 (__putshort): Likewise.
31838 (_getlong): Likewise.
31839 (_getshort): Likewise.
31840 * resolv/res_debug.c (p_time): Likewise.
31841 (precsize_ntoa): Likewise.
31842 (precsize_aton): Likewise.
31843 (latlon2ul): Likewise.
31844 (loc_aton): Likewise.
31845 (loc_ntoa): Likewise.
31846 * resolv/res_hconf.c (struct netaddr): Likewise.
31847 (_res_hconf_reorder_addrs): Likewise.
31848 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31849 (clnttcp_control): Likewise.
31850 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31851 (clntudp_control): Likewise.
31852 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31853 (clntunix_control): Likewise.
31854 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31855 * sunrpc/rpc/auth.h (union des_block): Likewise.
31856 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31857 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31858 (xdrrec_create): Likewise.
31859 (xdrrec_endofrecord): Likewise.
31860 (flush_out): Likewise.
31861 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31862 (xdrstdio_putlong): Likewise.
31863 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31864 Likewise.
31865
31866 * misc/sys/cdefs.h (__long_double_t): Remove.
31867 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31868 instead of __long_double_t,
31869 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31870
31871 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31872
31873 * benchtests/scripts/compare_strings.py: Avoid display error when
31874 running on a text terminal.
31875
31876 * benchtests/scripts/compare_strings.py (main): Add an
31877 optional -base option.
31878 (process_results): New argument base_func.
31879
31880 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31881 hardcoding memcpy.
31882 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31883 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31884
31885 2017-08-07 Andreas Schwab <schwab@suse.de>
31886
31887 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31888 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31889 * intl/Makefile ($(objpfx)tst-gettext.out)
31890 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31891 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31892 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31893 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31894 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31895 * posix/Makefile ($(objpfx)globtest.out)
31896 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31897 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31898 ($(objpfx)tst-printf.out): Likewise.
31899 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31900 ($(objpfx)tst-setcontext3.out): Likewise.
31901
31902 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31903
31904 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31905 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31906 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31907 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31908 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31909 and mptan-fma.
31910 (CFLAGS-doasin-fma.c): New.
31911 (CFLAGS-dosincos-fma.c): Likewise.
31912 (CFLAGS-e_asin-fma.c): Likewise.
31913 (CFLAGS-e_atan2-fma.c): Likewise.
31914 (CFLAGS-e_exp-fma.c): Likewise.
31915 (CFLAGS-e_log-fma.c): Likewise.
31916 (CFLAGS-e_pow-fma.c): Likewise.
31917 (CFLAGS-halfulp-fma.c): Likewise.
31918 (CFLAGS-mpa-fma.c): Likewise.
31919 (CFLAGS-mpatan-fma.c): Likewise.
31920 (CFLAGS-mpatan2-fma.c): Likewise.
31921 (CFLAGS-mpexp-fma.c): Likewise.
31922 (CFLAGS-mplog-fma.c): Likewise.
31923 (CFLAGS-mpsqrt-fma.c): Likewise.
31924 (CFLAGS-mptan-fma.c): Likewise.
31925 (CFLAGS-s_atan-fma.c): Likewise.
31926 (CFLAGS-sincos32-fma.c): Likewise.
31927 (CFLAGS-slowexp-fma.c): Likewise.
31928 (CFLAGS-slowpow-fma.c): Likewise.
31929 (CFLAGS-s_sin-fma.c): Likewise.
31930 (CFLAGS-s_tan-fma.c): Likewise.
31931 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31932 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31933 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31934 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31935 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31936 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31937 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31938 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31939 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31940 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31941 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31942 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31943 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31944 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31945 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31946 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31947 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31948 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31949 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31950 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31951 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31952 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31953 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31954 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31955 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31956 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31957 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31958 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31959 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31960 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31961 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31962
31963 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31964
31965 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31966 (min_of_type_f): New macro.
31967 (min_of_type_): Likewise.
31968 (min_of_type_l): Likewise.
31969 (min_of_type_f128): Likewise.
31970 (min_of_type): Define using __MATH_TG and taking an expression
31971 argument.
31972 (math_check_force_underflow): Pass expression instead of type to
31973 min_of_type.
31974 (math_check_force_underflow_nonneg): Likewise.
31975
31976 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31977
31978 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31979 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31980 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31981
31982 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31985 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31986 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31987 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31988 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31989 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31990 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31991 memmove_chk-nonshared and memset_chk-nonshared
31992 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31993 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31994 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31995 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31996 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31997 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31998 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31999 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32000 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32001 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32002 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32003 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32004 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32005 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32006 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32007 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32008 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32009 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32010 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32011 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32012 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32013 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32014 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32015 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32016 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32017 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32018 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32019 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32020 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32021 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32022 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32023 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32024 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32025 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32026 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32027 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32028 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32029 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32030 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32031 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32032 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32033 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32034 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32035 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32036 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32037 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32038 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32039 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32040 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32041 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32042 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32043 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32044 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32045 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32046 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32047 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32048 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32049 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32050 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32051 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32052 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32053 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32054 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32055 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32056 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32057 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32058 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32059 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32060 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32061 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32062 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32063 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32064 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32065 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32066 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32067 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32068 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32069 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32070 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32071 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32072 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32073 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32074 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32075 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32076 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32077 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32078 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32079 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32080 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32081 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32082 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32083 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32084 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32085 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32086 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32087 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32088 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32089 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32090 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32091 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32092 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32093 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32094 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32095 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32096 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32097 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32098 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32099 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32100
32101 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32102
32103 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32104 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32105 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32106 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32107 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32108 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32109 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32110 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32111 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32112 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32113 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32114 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32115 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32116 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32117 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32118 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32119 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32120 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32121 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32122 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32123 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32124 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32125 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32126 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32127 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32128 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32129 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32130 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32131 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32132 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32133 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32134 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32135 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32136 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32137 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32138 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32139 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32140 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32141 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32142 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32143 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32144 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32145 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32146 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32147 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32148 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32149 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32150 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32151 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32152 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32153 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32154 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32155 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32156 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32157 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32158 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32159 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32160 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32161 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32162 ...
32163 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32164 Don't include <sysdep.h> nor <init-arch.h>.
32165 (_ZGVbN2v_cos): Removed.
32166 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32167 ...
32168 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32169 Don't include <sysdep.h> nor <init-arch.h>.
32170 (_ZGVdN4v_cos): Removed.
32171 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32172 ...
32173 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32174 Don't include <sysdep.h> nor <init-arch.h>.
32175 (_ZGVeN8v_cos): Removed.
32176 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32177 ...
32178 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32179 Don't include <sysdep.h> nor <init-arch.h>.
32180 (_ZGVbN2v_exp): Removed.
32181 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32182 ...
32183 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32184 Don't include <sysdep.h> nor <init-arch.h>.
32185 (_ZGVdN4v_exp): Removed.
32186 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32187 ...
32188 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32189 Don't include <sysdep.h> nor <init-arch.h>.
32190 (_ZGVeN8v_exp): Removed.
32191 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32192 ...
32193 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32194 Don't include <sysdep.h> nor <init-arch.h>.
32195 (_ZGVbN2v_log): Removed.
32196 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32197 ...
32198 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32199 Don't include <sysdep.h> nor <init-arch.h>.
32200 (_ZGVdN4v_log): Removed.
32201 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32202 ...
32203 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32204 Don't include <sysdep.h> nor <init-arch.h>.
32205 (_ZGVeN8v_log): Removed.
32206 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32207 ...
32208 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32209 Don't include <sysdep.h> nor <init-arch.h>.
32210 (_ZGVbN2vv_pow): Removed.
32211 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32212 ...
32213 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32214 Don't include <sysdep.h> nor <init-arch.h>.
32215 (_ZGVdN4vv_pow): Removed.
32216 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32217 ...
32218 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32219 Don't include <sysdep.h> nor <init-arch.h>.
32220 (_ZGVeN8vv_pow): Removed.
32221 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32222 ...
32223 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32224 Don't include <sysdep.h> nor <init-arch.h>.
32225 (_ZGVbN2v_sin): Removed.
32226 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32227 ...
32228 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32229 Don't include <sysdep.h> nor <init-arch.h>.
32230 (_ZGVbN4v_sin): Removed.
32231 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32232 ...
32233 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32234 Don't include <sysdep.h> nor <init-arch.h>.
32235 (_ZGVbN8v_sin): Removed.
32236 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32237 ...
32238 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32239 Don't include <sysdep.h> nor <init-arch.h>.
32240 (_ZGVbN2vvv_sincos): Removed.
32241 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32242 ...
32243 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32244 Don't include <sysdep.h> nor <init-arch.h>.
32245 (_ZGVdN4vvv_sincos): Removed.
32246 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32247 ...
32248 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32249 Don't include <sysdep.h> nor <init-arch.h>.
32250 (_ZGVeN8vvv_sincos): Removed.
32251 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32252 ...
32253 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32254 Don't include <sysdep.h> nor <init-arch.h>.
32255 (_ZGVeN16v_cosf): Removed.
32256 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32257 ...
32258 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32259 Don't include <sysdep.h> nor <init-arch.h>.
32260 (_ZGVbN4v_cosf): Removed.
32261 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32262 ...
32263 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32264 Don't include <sysdep.h> nor <init-arch.h>.
32265 (_ZGVdN8v_cosf): Removed.
32266 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32267 ...
32268 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32269 Don't include <sysdep.h> nor <init-arch.h>.
32270 (_ZGVeN16v_expf): Removed.
32271 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32272 ...
32273 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32274 Don't include <sysdep.h> nor <init-arch.h>.
32275 (_ZGVbN4v_expf): Removed.
32276 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32277 ...
32278 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32279 Don't include <sysdep.h> nor <init-arch.h>.
32280 (_ZGVdN8v_expf): Removed.
32281 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32282 ...
32283 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32284 Don't include <sysdep.h> nor <init-arch.h>.
32285 (_ZGVeN16v_logf): Removed.
32286 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32287 ...
32288 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32289 Don't include <sysdep.h> nor <init-arch.h>.
32290 (_ZGVbN4v_logf): Removed.
32291 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32292 ...
32293 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32294 Don't include <sysdep.h> nor <init-arch.h>.
32295 (_ZGVdN8v_logf): Removed.
32296 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32297 ...
32298 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32299 Don't include <sysdep.h> nor <init-arch.h>.
32300 (_ZGVeN16vv_powf): Removed.
32301 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32302 ...
32303 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32304 Don't include <sysdep.h> nor <init-arch.h>.
32305 (_ZGVbN4vv_powf): Removed.
32306 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32307 ...
32308 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32309 Don't include <sysdep.h> nor <init-arch.h>.
32310 (_ZGVdN8vv_powf): Removed.
32311 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32312 ...
32313 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32314 Don't include <sysdep.h> nor <init-arch.h>.
32315 (_ZGVeN16vvv_sincosf): Removed.
32316 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32317 ...
32318 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32319 Don't include <sysdep.h> nor <init-arch.h>.
32320 (_ZGVbN4vvv_sincosf): Removed.
32321 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32322 ...
32323 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32324 Don't include <sysdep.h> nor <init-arch.h>.
32325 (_ZGVdN8vvv_sincosf): Removed.
32326 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32327 ...
32328 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32329 Don't include <sysdep.h> nor <init-arch.h>.
32330 (_ZGVeN16v_sinf): Removed.
32331 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32332 ...
32333 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32334 Don't include <sysdep.h> nor <init-arch.h>.
32335 (_ZGVbN4v_sinf): Removed.
32336 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32337 ...
32338 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32339 Don't include <sysdep.h> nor <init-arch.h>.
32340 (_ZGVdN8v_sinf): Removed.
32341
32342 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32343
32344 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32345 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32346 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32347 s_rint-sse4_1 and s_rintf-sse4_1.
32348 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32349 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32350 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32351 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32352 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32353 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32354 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32355 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32356 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32357 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32358 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32359 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32360 (__ceil): Removed.
32361 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32362 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32363 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32364 (__ceilf): Removed.
32365 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32366 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32367 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32368 (__floor): Removed.
32369 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32370 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32371 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32372 (__floorf): Removed.
32373 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32374 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32375 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32376 (__nearbyint): Removed.
32377 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32378 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32379 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32380 (__nearbyintf): Removed.
32381 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32382 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32383 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32384 (__rint): Removed.
32385 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32386 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32387 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32388 (__rintf): Removed.
32389
32390 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32391
32392 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32393 SHARED. Avoid dynamic relocation against main in static PIE.
32394
32395 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32396
32397 [BZ #21815]
32398 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32399 (LDFLAGS-tst-prelink): Likewise.
32400
32401 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32402
32403 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32404 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32405 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32406 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32407 (INTERNAL_SYSCALL_NCS): Likewise.
32408 (LOADARGS_1): Likewise.
32409 (LOADARGS_5): Likewise.
32410 (RESTOREARGS_1): Likewise.
32411 (RESTOREARGS_5): Likewise.
32412
32413 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32414
32415 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32416 (MEMPCPY_SYMBOL): Likewise.
32417 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32418 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32419 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32420 in libc.a.
32421 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32422 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32423 Likewise.
32424 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32425 (__hidden_ver1): Don't use in libc.a.
32426 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32427 (__mempcpy): Don't create a weak alias in libc.a.
32428 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32429 libc.a.
32430 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32431 (__hidden_ver1): Don't use in libc.a.
32432
32433 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32434
32435 * config.make.in (have-insert): New.
32436 * configure.ac (libc_cv_insert): New. Set to yes if linker
32437 supports INSERT in linker script.
32438 (AC_SUBST(libc_cv_insert): New.
32439 * configure: Regenerated.
32440 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32441 if $(have-insert) == yes.
32442
32443 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32444
32445 * elf/Makefile (tests): Add vismain only if
32446 $(have-protected-data) == yes.
32447 (tests-pie): Likewise.
32448
32449 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32450
32451 [BZ #21871]
32452 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32453 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32454
32455 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32456
32457 [BZ #21790]
32458 * sysdeps/i386/i586/memset.S
32459 (__memset_zero_constant_len_parameter): Removed.
32460 * sysdeps/i386/i686/memset.S
32461 (__memset_zero_constant_len_parameter): Likewise.
32462 * sysdeps/i386/i686/multiarch/memset_chk.S
32463 (__memset_zero_constant_len_parameter): Likewise.
32464 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32465 Likewise.
32466
32467 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32468
32469 * stdlib/getentropy.c (getentropy): Change return type to int.
32470
32471 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32472
32473 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32474
32475 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32476
32477 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32478 u_intN_t.
32479 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32480 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32481 Likewise.
32482 (ieee_float_shape_type): Likewise.
32483 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32484 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32485 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32486 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32487 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32488 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32489 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32490 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32491 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32492 Likewise.
32493 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32494 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32495 (__ieee754_yn): Likewise.
32496 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32497 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32498 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32499 Likewise.
32500 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32501 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32502 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32503 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32504 (__erfc): Likewise.
32505 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32506 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32507 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32508 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32509 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32510 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32511 Likewise.
32512 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32513 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32514 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32515 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32516 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32517 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32518 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32519 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32520 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32521 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32522 (__issignaling): Likewise.
32523 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32524 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32525 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32526 Likewise.
32527 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32528 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32529 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32530 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32531 Likewise.
32532 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32533 Likewise.
32534 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32535 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32536 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32537 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32538 (__erfcf): Likewise.
32539 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32540 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32541 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32542 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32543 Likewise.
32544 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32545 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32546 Likewise.
32547 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32548 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32549 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32550 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32551 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32552 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32553 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32554 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32555 Likewise.
32556 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32557 Likewise.
32558 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32559 Likewise.
32560 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32561 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32562 Likewise.
32563 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32564 Likewise.
32565 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32566 (__ieee754_ynl): Likewise.
32567 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32568 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32569 Likewise.
32570 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32571 Likewise.
32572 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32573 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32574 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32575 Likewise.
32576 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32577 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32578 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32579 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32580 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32581 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32582 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32583 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32584 Likewise.
32585 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32586 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32587 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32588 Likewise.
32589 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32590 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32591 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32592 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32593 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32594 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32595 Likewise.
32596 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32597 Likewise.
32598 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32599 Likewise.
32600 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32601 Likewise.
32602 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32603 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32604 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32605 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32606 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32607 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32608 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32609 Likewise.
32610 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32611 Likewise.
32612 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32613 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32614 Likewise.
32615 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32616 (__ieee754_remainderl): Likewise.
32617 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32618 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32619 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32620 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32621 Likewise.
32622 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32623 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32624 Likewise.
32625 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32626 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32627 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32628 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32629 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32630 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32631 Likewise.
32632 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32633 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32634 (__ieee754_y0l): Likewise.
32635 (pzero): Likewise.
32636 (qzero): Likewise.
32637 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32638 (__ieee754_y1l): Likewise.
32639 (pone): Likewise.
32640 (qone): Likewise.
32641 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32642 (__ieee754_ynl): Likewise.
32643 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32644 (__ieee754_lgammal_r): Likewise.
32645 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32646 Likewise.
32647 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32648 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32649 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32650 (__erfcl): Likewise.
32651 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32652 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32653 Likewise.
32654 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32655 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32656 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32657 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32658 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32659 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32660 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32661 Likewise.
32662 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32663 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32664 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32665 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32666 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32667 Likewise.
32668 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32669 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32670 Likewise.
32671 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32672 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32673 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32674 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32675 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32676
32677 2017-08-03 Florian Weimer <fweimer@redhat.com>
32678
32679 [BZ #21885]
32680 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32681 on memory allocation failure.
32682
32683 2017-08-03 Alan Modra <amodra@gmail.com>
32684
32685 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32686 tst-tlsopt-powerpc.c with function name change and no test harness.
32687 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32688 Call tls_get_addr_opt_test.
32689 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32690 (modules-names): Add mod-tlsopt-powerpc.
32691 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32692 (tst-tlsopt-powerpc): Depend on .so.
32693 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32694 define. Expand use in TLS_GD and TLS_LD.
32695
32696 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32697
32698 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32699 function.
32700 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32701
32702 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32703
32704 [BZ #21686]
32705 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32706 comparing size with that of double.
32707 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32708 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32709 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32710 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32711 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32712 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32713 unsigned __int128 types.
32714
32715 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32716
32717 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32718 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32719 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32720 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32721 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32722
32723 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32724
32725 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32726
32727 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32728
32729 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32730 of SHARED.
32731 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32732 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32733 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32734 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32735 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32736 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32737 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32738
32739 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32740
32741 [BZ #21685]
32742 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32743 bit-field expressions passed to sizeof or typeof.
32744 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32745 (__TGMATH_F128): Likewise.
32746 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32747 (__TGMATH_CF128): Likewise.
32748 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32749 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32750 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32751 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32752 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32753 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32754 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32755 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32756 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32757 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32758 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32759 (__TGMATH_UNARY_IMAG): Likewise.
32760 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32761 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32762 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32763 type.
32764 (define_vars_for_type): Handle bit_field type specially.
32765 (Tests.__init__): Declare structure with bit-field element.
32766
32767 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32768
32769 [BZ #21791]
32770 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32771 (MEMCPY_CHK): Define only if SHARED is defined.
32772 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32773 Likewise.
32774 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32775 Likewise.
32776
32777 See ChangeLog.18 for earlier changes.