]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
wcsmbs: optimize wcsncpy
[thirdparty/glibc.git] / ChangeLog
1 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
4 wmemcpy.
5
6 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
7 wmemcpy.
8
9 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
10
11 * include/wchar.h (__wcscpy): New prototype.
12 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
13 (__wcscpy): Route internal symbol to generic implementation.
14 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
15 Add internal __wcscpy alias.
16 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
17 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
18 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
19 * wcsmbs/wcscpy.c (wcscpy): Add
20 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
21 use generic implementation.
22 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
23
24 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
25 wmemset.
26
27 * sysdeps/m68k/wcpcpy.c: Remove file.
28 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
29
30 2019-02-26 Joseph Myers <joseph@codesourcery.com>
31
32 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
33 than after operators.
34 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
35 * sysdeps/mach/hurd/getcwd.c
36 (__hurd_canonicalize_directory_name_internal): Likewise.
37 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
38 (pthread_mutex_consistent): Likewise.
39 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
40 Likewise.
41 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
42 (__pthread_mutex_transfer_np): Likewise.
43 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
44 (__pthread_mutex_unlock): Likewise.
45 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
46 (mtx_owned_p): Likewise.
47 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
48 (pthread_mutexattr_getrobust): Likewise.
49 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
50 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
51 Likewise.
52 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
53 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
54 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
55 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
56 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
57 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
58 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
59 Likewise.
60 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
61 Likewise.
62 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
63 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
64 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
65 (____longjmp_chk): Likewise.
66 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
67 Likewise.
68 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
69 (INTERNAL_SYSCALL): Likewise.
70 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
71 (INTERNAL_SYSCALL): Likewise.
72 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
73 (__get_clockfreq_via_cpuinfo): Likewise.
74
75 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
76 comments.
77 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
78 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
79 (WORD_COPY_BWD): Likewise.
80 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
81 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82 Likewise.
83 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
84 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
85 comment.
86 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
87
88 2019-02-25 Joseph Myers <joseph@codesourcery.com>
89
90 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
91 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
92 rather than after operators.
93 * elf/cache.c (print_cache): Likewise.
94 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
95 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
96 * hurd/hurdinit.c (_hurd_setproc): Likewise.
97 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
98 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
99 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
100 (reauth_proc): Likewise.
101 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
102 (__file_name_split_at): Likewise.
103 (__directory_name_split_at): Likewise.
104 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
105 * hurd/port2fd.c (_hurd_port2fd): Likewise.
106 * iconv/gconv_dl.c (do_print): Likewise.
107 * inet/netinet/in.h (struct sockaddr_in): Likewise.
108 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
109 * locale/setlocale.c (new_composite_name): Likewise.
110 * malloc/memusagestat.c (main): Likewise.
111 * misc/fstab.c (fstab_convert): Likewise.
112 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
113 Likewise.
114 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
115 (getgrent_next_file): Likewise.
116 (internal_getgrnam_r): Likewise.
117 (internal_getgrgid_r): Likewise.
118 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
119 Likewise.
120 (internal_getgrent_r): Likewise.
121 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
122 (getpwent_next_nss): Likewise.
123 (getpwent_next_file): Likewise.
124 (internal_getpwnam_r): Likewise.
125 (internal_getpwuid_r): Likewise.
126 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
127 Likewise.
128 (getspent_next_nss): Likewise.
129 (internal_getspnam_r): Likewise.
130 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
131 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
132 * string/strchr.c (STRCHR): Likewise.
133 * string/strchrnul.c (STRCHRNUL): Likewise.
134 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
135 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
136 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
137 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
138 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
139 Likewise.
140 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
141 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
142 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
143 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
144 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
145 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
146 (open_file): Likewise.
147 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
148 (pthread_mutexattr_setprotocol): Likewise.
149 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
150 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
151 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
152 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
153 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
154 Likewise.
155 (elf_machine_rela): Likewise.
156 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
157 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
158 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
159 * sysdeps/posix/rename.c (rename): Likewise.
160 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
161 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
162 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
163 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
164 * sysdeps/unix/grantpt.c (grantpt): Likewise.
165 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
166 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
167 Likewise.
168 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
169 Likewise.
170 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
171 * time/tzfile.c (__tzfile_compute): Likewise.
172
173 2019-02-22 Joseph Myers <joseph@codesourcery.com>
174
175 * benchtests/bench-memmem.c (simple_memmem): Break lines before
176 rather than after operators.
177 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
178 * crypt/md5.c (md5_finish_ctx): Likewise.
179 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
180 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
181 * elf/cache.c (load_aux_cache): Likewise.
182 * elf/dl-load.c (open_verify): Likewise.
183 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
184 * elf/readelflib.c (process_elf_file): Likewise.
185 * elf/rtld.c (dl_main): Likewise.
186 * elf/sprof.c (generate_call_graph): Likewise.
187 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
188 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
189 * hurd/dtable.c (reauth_dtable): Likewise.
190 * hurd/getdport.c (__getdport): Likewise.
191 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
192 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
193 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
194 Likewise.
195 * hurd/hurdioctl.c (fioctl): Likewise.
196 * hurd/hurdselect.c (_hurd_select): Likewise.
197 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
198 (STOPSIGS): Likewise.
199 * hurd/hurdstartup.c (_hurd_startup): Likewise.
200 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
201 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
202 * hurd/msgportdemux.c (msgport_server): Likewise.
203 * hurd/setauth.c (_hurd_setauth): Likewise.
204 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
205 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
206 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
207 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
208 * login/tst-utmp.c (do_check): Likewise.
209 (simulate_login): Likewise.
210 * mach/lowlevellock.h (lll_lock): Likewise.
211 (lll_trylock): Likewise.
212 * math/test-fenv.c (ALL_EXC): Likewise.
213 * math/test-fenvinline.c (ALL_EXC): Likewise.
214 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
215 * nis/nis_call.c (__do_niscall3): Likewise.
216 * nis/nis_callback.c (cb_prog_1): Likewise.
217 * nis/nis_defaults.c (searchaccess): Likewise.
218 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
219 * nis/nis_ismember.c (internal_ismember): Likewise.
220 * nis/nis_local_names.c (nis_local_principal): Likewise.
221 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
222 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
223 Likewise.
224 * nis/ypclnt.c (yp_match): Likewise.
225 (yp_first): Likewise.
226 (yp_next): Likewise.
227 (yp_master): Likewise.
228 (yp_order): Likewise.
229 * nscd/hstcache.c (cache_addhst): Likewise.
230 * nscd/initgrcache.c (addinitgroupsX): Likewise.
231 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
232 (internal_getpwuid_r): Likewise.
233 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
234 * posix/glob.h (__GLOB_FLAGS): Likewise.
235 * posix/regcomp.c (peek_token): Likewise.
236 (peek_token_bracket): Likewise.
237 (parse_expression): Likewise.
238 * posix/regexec.c (sift_states_iter_mb): Likewise.
239 (check_node_accept_bytes): Likewise.
240 * posix/tst-spawn3.c (do_test): Likewise.
241 * posix/wordexp-test.c (testit): Likewise.
242 * posix/wordexp.c (parse_tilde): Likewise.
243 (exec_comm): Likewise.
244 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
245 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
246 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
247 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
248 * stdio-common/tst-fileno.c (do_test): Likewise.
249 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
250 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
251 * stdlib/strtod_l.c (round_and_return): Likewise.
252 (____STRTOF_INTERNAL): Likewise.
253 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
254 * string/strcspn.c (STRCSPN): Likewise.
255 * string/test-memmem.c (simple_memmem): Likewise.
256 * termios/tcsetattr.c (tcsetattr): Likewise.
257 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
258 * time/asctime.c (asctime_internal): Likewise.
259 * time/strptime_l.c (__strptime_internal): Likewise.
260 * time/sys/time.h (timercmp): Likewise.
261 * time/tzfile.c (__tzfile_compute): Likewise.
262
263 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
264
265 [BZ #21915]
266 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
267
268 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
269
270 * argp/argp-help.c (__argp_error_internal): New function,
271 renamed from __argp_error, but that takes a 'mode_flags'
272 parameter to control the format of long double parameters.
273 (__argp_error): Converted into a call __argp_error_internal.
274 (__argp_failure_internal): New function, renamed from
275 __argp_failure, but that takes a 'mode_flags' parameter.
276 (__argp_failure): Converted into a call __argp_failure_internal.
277 * misc/err.c (__vwarnx_internal): New function, renamed from
278 vwarnx, but that takes a 'mode_flags' parameter.
279 (vwarnx): Converted into a call to __vwarnx_internal.
280 (__vwarn_internal): New function, renamed from vwarn, but that
281 takes a 'mode_flags' parameter.
282 (vwarn): Converted into a call to __vwarn_internal.
283 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
284 call to __vfxprintf with 'mode_flags'.
285 (__error_internal): New function, renamed from error, but that
286 takes a 'mode_flags' parameter.
287 (error): Converted into a call to __error_internal.
288 (__error_at_line_internal): New function, renamed from
289 error_at_line, but that takes a 'mode_flags' parameter.
290 (error_at_line): Converted into a call to
291 __error_at_line_internal.
292 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
293 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
294 Likewise.
295
296 2019-02-20 Martin Liska <mliska@suse.cz>
297
298 * math/Makefile: Install math-vector-fortran.h.
299 * bits/math-vector-fortran.h: New file.
300 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
301
302 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
303
304 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
305 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
306
307 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
308
309 * nptl/pthread_mutex_trylock.c: Fix comment.
310
311 2019-02-19 Carlos O'Donell <carlos@redhat.com>
312
313 * nptl/pthread_tryjoin.c: Fix comment.
314
315 2019-02-18 Joseph Myers <joseph@codesourcery.com>
316
317 [BZ #24231]
318 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
319 after R_SPARC_H34 case.
320
321 2019-02-18 Florian Weimer <fweimer@redhat.com>
322
323 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
324 (getanswer): Do not call Dprintf.
325 (res_gethostbyname2_context): Likewise.
326 (res_gethostbyaddr_context): Likewise.
327
328 2019-02-18 Florian Weimer <fweimer@redhat.com>
329
330 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
331 declaration.
332 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
333 Remove definitions.
334 * libio/stdfiles.c: Update comment.
335 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
336 set _IO_stdin, _IO_stdout, _IO_stderr.
337 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
338 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
339 inline function.
340 (_IO_deallocate_file): New inline function.
341 * libio/iolibio.h (_IO_vprintf): Remove definition.
342 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
343 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
344 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
345 _IO_legacy_file.
346 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
347 __builtin_expect. Use _IO_legacy_file.
348
349 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
350
351 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
352 Initialize ctid with a known value and remove update of ctid
353 after clone.
354 (wait_tid): Adjust arguments and call futex_wait with ctid_val
355 as assumed current value of ctid_ptr.
356
357 2019-02-15 Florian Weimer <fweimer@redhat.com>
358
359 Check that non-sysdeps headers have wrapper headers.
360 * scripts/check-wrapper-headers.py: New file.
361 * Makefile (tests-special): Add check-wrapper-headers.out.
362 (check-wrapper-headers.out): New target.
363 * Rules (tests-special): Add check-wrapper-headers.out.
364 (check-wrapper-headers.out): New target.
365
366 2019-02-15 Florian Weimer <fweimer@redhat.com>
367
368 Add missing header wrappers under include/.
369 * include/ar.h: New file.
370 * include/bits/mqueue2.h: Likewise.
371 * include/bits/stdio.h: Likewise.
372 * include/bits/stdio2.h: Likewise.
373 * include/fstab.h: Likewise.
374 * include/fts.h: Likewise.
375 * include/lastlog.h: Likewise.
376 * include/netinet/icmp6.h: Likewise.
377 * include/netinet/igmp.h: Likewise.
378 * include/netinet/ip6.h: Likewise.
379 * include/re_comp.h: Likewise.
380 * include/regexp.h: Likewise.
381 * include/rpcsvc/bootparam.h: Likewise.
382 * include/rpcsvc/yp_prot.h: Likewise.
383 * include/sys/random.h: Likewise.
384 * include/sys/stropts.h: Likewise.
385 * include/sys/ttychars.h: Likewise.
386 * include/sys/vfs.h: Likewise.
387 * include/wait.h: Likewise.
388
389 2019-02-15 Florian Weimer <fweimer@redhat.com>
390
391 * nptl_db/proc_service.h: Move to ...
392 * sysdeps/nptl/proc_service.h: ... here.
393 * nptl_db/thread_db.h: Move to ...
394 * sysdeps/nptl/thread_db.h: ... here.
395 * nptl/descr.h: Include <thread_db.h>.
396
397 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
398
399 * io/Makefile (tests): Add tst-lockf.
400 * io/lockf.c (lockf): Use __fcntl and only define for
401 !__OFF_T_MATCHES_OFF64_T.
402 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
403 __OFF_T_MATCHES_OFF64_T case.
404 * io/tst-lockf.c: New file.
405 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
406 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
407 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
408 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
409 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
411 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
412 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
413 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
414
415 2019-02-15 Florian Weimer <fweimer@redhat.com>
416
417 [BZ #24211]
418 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
419 pd->result after the thread descriptor has been freed.
420
421 2019-02-15 Joseph Myers <joseph@codesourcery.com>
422
423 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
424 from function return type.
425
426 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
427
428 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
429
430 * scripts/test_printers_common.py: Set TERM to a known harmless
431 value.
432
433 2019-02-14 Joseph Myers <joseph@codesourcery.com>
434
435 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
436 (xdr_u_int): Likewise.
437 (xdr_enum): Likewise.
438 (xdr_bytes): Reword fall-through comment.
439 (xdr_string): Likewise.
440
441 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
442
443 [BZ #2421]
444 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
445 (tests): Add tst-join8 tst-join9.
446 * nptl/lll_timedwait_tid.c: Remove file.
447 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
448 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
449 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
450 * nptl/pthread_join_common.c (timedwait_tid): New function.
451 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
452 is set.
453 * nptl/tst-join5.c (thread_join): New function.
454 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
455 check.
456 * nptl/tst-join8.c: New file.
457 * nptl/tst-join9.c: Likewise.
458 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
459 lll_futex_timed_wait_cancel): Add generic macros.
460 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
461 Remove definitions.
462 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
463 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
464 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
465 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
466 Remove function.
467 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
468 Likewise.
469 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
470 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
471 (lll_futex_timed_wait_cancel): New macro.
472
473 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
474
475 * benchtests/Makefile: Add malloc-simple benchmark.
476 * benchtests/bench-malloc-simple.c: New benchmark.
477
478 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
479
480 * benchtests/bench-memmove.c (do_one_test): Remove unused
481 ORIG_SRC.
482 (do_test): Adjust.
483 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
484 ORIG_SRC.
485 (do_test): Adjust.
486
487 2019-01-13 Jim Wilson <jimw@sifive.com>
488
489 [BZ #24040]
490 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
491 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
492 (func): New.
493 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
494 call func directly.
495 * nptl/Makefile (tests): Add tst-unwind-thread.
496 (CFLAGS-tst-unwind-thread.c): Define.
497 * nptl/tst-unwind-thread.c: New file.
498 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
499 as undefined.
500
501 2019-02-13 Joseph Myers <joseph@codesourcery.com>
502
503 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
504 comment wording.
505 * nis/nis_call.c (__do_niscall3): Likewise.
506
507 * catgets/gencat.c (normalize_line): Use braces around empty
508 'else' body.
509 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
510 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
511 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
512 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
513 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
514 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
515 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
516 definition.
517
518 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
519 execlp returns.
520
521 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
522
523 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
524 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
525 * benchtests/bench-strchr.c (stupid_strchr): Remove.
526 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
527 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
528 * benchtests/bench-strlen.c (builtin_strlen): Remove.
529 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
530 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
531 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
532 * benchtests/bench-strspn.c (stupid_strspn): Remove.
533 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
534 * benchtests/bench-bcopy.c: Delete file.
535 * benchtests/bench-bzero.c: Likewise.
536 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
537 (simple_memccpy): Remove.
538 (generic_memccpy): Add function.
539 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
540 * benchtests/bench-memmove.c (simple_bcopy): Remove.
541 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
542 (generic_mempcpy): Add new function.
543 * benchtests/bench-memset.c (simple_bzero): Remove.
544 (builtin_bzero): Remove.
545 (builtin_memset): Remove.
546 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
547 (generic_rawmemchr): Add new function.
548
549 2019-02-12 Florian Weimer <fweimer@redhat.com>
550
551 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
552
553 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
554
555 [BZ #24122]
556 * elf/Makefile (tests): Add tst-audit13.
557 (modules-names): Add tst-audit13mod1.
558 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
559 rule.
560 * elf/tst-audit13.c: New file.
561 * elf/tst-audit13mod1.c: Likewise.
562
563 2019-02-12 Florian Weimer <fweimer@redhat.com>
564
565 [BZ #24122]
566 * elf/rtld.c (unload_audit_module): New function.
567 (report_audit_module_load_error): Likewise.
568 (load_audit_module): Likewise. Extracted from dl_main. Call
569 _dl_close if the laversion symbol cannot be found. Use early
570 returns for error handling. Add malloc error check. Check for a
571 zero return value from la_version. Remove spurious comment about
572 static TLS initialization. Remove useless casts.
573 (notify_audit_modules_of_loaded_object): New function. Extracted
574 from dl_main.
575 (load_audit_module): Likewise.
576 (dl_main): Call load_audit_modules.
577
578 2019-02-12 Joseph Myers <joseph@codesourcery.com>
579
580 * elf/dl-exception.c (_dl_exception_create_format): Add
581 fall-through comments.
582 * elf/ldconfig.c (parse_conf_include): Likewise.
583 * elf/rtld.c (print_statistics): Likewise.
584 * locale/programs/charmap.c (parse_charmap): Likewise.
585 * misc/mntent_r.c (__getmntent_r): Likewise.
586 * posix/wordexp.c (parse_arith): Likewise.
587 (parse_backtick): Likewise.
588 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
589 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
590 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
591
592 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
593
594 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
595 Use float instead of double.
596
597 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
598
599 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
600
601 2019-02-08 Joseph Myers <joseph@codesourcery.com>
602
603 * sysdeps/powerpc/bits/mathinline.h: Remove.
604
605 2019-02-08 Florian Weimer <fweimer@redhat.com>
606
607 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
608 * math/bits/math-finite.h: Move to ...
609 * bits/math-finite.h: ... here.
610
611 2019-02-08 Florian Weimer <fweimer@redhat.com>
612
613 * sysdeps/generic/bits/unistd_ext.h: Move to ...
614 * bits/unistd_ext.h: here.
615
616 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
617
618 [BZ #21915]
619 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
620 * nss/tst-nss-files-hosts-long.c: New file.
621 * nss/tst-nss-files-hosts-long.root: New directory.
622 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
623 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
624
625 2019-02-08 Florian Weimer <fweimer@redhat.com>
626
627 * include/bits/unistd_ext.h: Remove file.
628 * posix/bits/unistd_ext.h: Move to ...
629 * sysdeps/generic/bits/unistd_ext.h: ... here.
630
631 2019-02-08 Florian Weimer <fweimer@redhat.com>
632
633 * include/bits/unistd_ext.h: New file.
634
635 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
636
637 * time/tst-strftime2.c: Use array_length macros instead of magic
638 numbers.
639
640 2019-02-08 Florian Weimer <fweimer@redhat.com>
641
642 [BZ #24161]
643 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
644 argument.
645 * nptl/register-atfork.c (__run_fork_handlers): Only perform
646 locking if the new do_locking argument is true.
647 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
648 __run_fork_handlers.
649
650 2019-02-08 Florian Weimer <fweimer@redhat.com>
651
652 [BZ #6399]
653 Linux: Add gettid system call wrapper.
654 * posix/Makefile (headers): Add bits/unistd_ext.h.
655 * posix/bits/unistd_ext.h: New file.
656 * posix/unistd.h: Include it.
657 * manual/process.texi (Process Identification): Document gettid.
658 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
659 tst-gettid, tst-gettid-kill.
660 (tst-gettid): Link with $(shared-thread-library).
661 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
662 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
663 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
664 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
665 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
666 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
667 Add gettid.
668 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
669 Likewise.
670 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
671 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
672 Likewise.
673 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
674 Likewise.
675 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
676 Likewise.
677 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
678 Likewise.
679 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
680 Likewise.
681 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
682 Likewise.
683 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
684 Likewise.
685 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
686 (GLIBC_2.30): Likewise.
687 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
688 (GLIBC_2.30): Likewise.
689 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
690 (GLIBC_2.30): Likewise.
691 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
692 (GLIBC_2.30): Likewise.
693 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
694 Likewise.
695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
696 (GLIBC_2.30): Likewise.
697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
698 (GLIBC_2.30): Likewise.
699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
700 (GLIBC_2.30): Likewise.
701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
702 (GLIBC_2.30): Likewise.
703 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
704 Likewise.
705 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
706 Likewise.
707 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
708 Likewise.
709 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
710 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
711 Likewise.
712 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
713 Likewise.
714 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
715 Likewise.
716 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
717 Likewise.
718 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
719
720 2019-02-07 Florian Weimer <fweimer@redhat.com>
721
722 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
723 compatibility symbols.
724
725 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
726
727 [BZ #24180]
728 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
729 Add compiler barriers and comments.
730
731 2019-02-07 Florian Weimer <fweimer@redhat.com>
732
733 * include/array_length.h (array_length): Do not use a statement
734 expression and _Static_assert, so that array_length can be used at
735 file scope and as a constant expression.
736
737 2019-02-07 Florian Weimer <fweimer@redhat.com>
738
739 * support/xdlfcn.h (xdlmopen): Declare.
740 * support/xdlmopen.c: New file.
741 * support/Makefile (libsupport-routines): Add xdlmopen.
742
743 2019-02-06 Joseph Myers <joseph@codesourcery.com>
744
745 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
746 before return type, without separate inline.
747 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
748 * elf/dl-tunables.h (tunable_is_name): Likewise.
749 * malloc/malloc.c (do_set_trim_threshold): Likewise.
750 (do_set_top_pad): Likewise.
751 (do_set_mmap_threshold): Likewise.
752 (do_set_mmaps_max): Likewise.
753 (do_set_mallopt_check): Likewise.
754 (do_set_perturb_byte): Likewise.
755 (do_set_arena_test): Likewise.
756 (do_set_arena_max): Likewise.
757 (do_set_tcache_max): Likewise.
758 (do_set_tcache_count): Likewise.
759 (do_set_tcache_unsorted_limit): Likewise.
760 * nis/nis_subr.c (count_dots): Likewise.
761 * nptl/allocatestack.c (advise_stack_range): Likewise.
762 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
763 (do_sin): Likewise.
764 (reduce_sincos): Likewise.
765 (do_sincos): Likewise.
766 * sysdeps/unix/sysv/linux/x86/elision-conf.c
767 (do_set_elision_enable): Likewise.
768 (TUNABLE_CALLBACK_FNDECL): Likewise.
769
770 2019-02-06 Florian Weimer <fweimer@redhat.com>
771
772 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
773 (xdlsym): Use dlerror to detect a NULL symbol.
774
775 2019-02-06 Florian Weimer <fweimer@redhat.com>
776
777 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
778 <stap-probe.h>.
779 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
780
781 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
782
783 * libio/tst-bz24153.c (wide): Use wide char format specifier.
784
785 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
786
787 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
788 __wmemcmp and weak alias to wmemcmp.
789
790 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
791
792 [BZ #23403]
793 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
794 TLS_TCB_AT_TP tls variant.
795 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
796 Add alignment checks.
797 * support/Makefile (libsupport-routines): Add xposix_memalign and
798 xpthread_setstack.
799 * support/support.h: Add xposix_memalign.
800 * support/xthread.h: Add xpthread_attr_setstack.
801 * support/xposix_memalign.c: New File.
802 * support/xpthread_attr_setstack.c: Likewise.
803
804 2019-02-05 Florian Weimer <fweimer@redhat.com>
805
806 [BZ #24164]
807 arm: Use "nr" constraint for Systemtap probes, to avoid the
808 compiler using memory operands for constants, due to the "o"
809 alternative in the default "nor" constraint.
810 * include/stap-probe.h [USE_STAP_PROBE]: Include
811 <stap-probe-machine.h>
812 * sysdeps/generic/stap-probe-machine.h: New file.
813 * sysdeps/arm/stap-probe-machine.h: Likewise.
814
815 2019-02-04 Joseph Myers <joseph@codesourcery.com>
816
817 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
818 with 0, not tcache->entries[tc_idx].
819
820 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
821 once.
822
823 2019-02-04 Andreas Schwab <schwab@suse.de>
824
825 [BZ #16976]
826 [BZ #17396]
827 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
828 looking up collating elements match against (wide) character
829 sequence instead of name. Correct alignment adjustment.
830 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
831 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
832 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
833 (LOCALES): Add cs_CZ.ISO-8859-2.
834 * posix/tst-fnmatch4.c: New file.
835 * posix/tst-fnmatch5.c: New file.
836 * include/wchar.h (__wmemcmp): Declare.
837 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
838 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
839 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
840 * sysdeps/s390/wmemcmp.c: Likewise.
841
842 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
843
844 [BZ #24155]
845 CVE-2019-7309
846 * NEWS: Updated for CVE-2019-7309.
847 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
848 upper 32 bits of RDX register for x32. Use unsigned Jcc
849 instructions, instead of signed.
850 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
851 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
852
853 2019-02-04 Florian Weimer <fweimer@redhat.com>
854
855 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
856 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
857 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
858 Likewise.
859 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
860 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
861 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
862 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
863 Likewise.
864 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
865 Likewise.
866 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
867 Likewise.
868 (posix_spawn_file_actions_addopen): Likewise.
869 (posix_spawn_file_actions_addclose): Likewise.
870 (posix_spawn_file_actions_adddup2): Likewise.
871 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
872 qualifiers.
873 (posix_spawn_file_actions_addfchdir_np): Likewise.
874
875 2019-02-04 David Newall <glibc@davidnewall.com>
876
877 elf: Implement --preload option for the dynamic linker.
878 * elf/rtld.c (preloadarg): New variable.
879 (handle_preload_list): Pass through “where” argument to
880 do_preload.
881 (dl_main): Handle "--preload" and add second call to
882 handle_preload_list.
883 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
884 (tst-rtld-preload-OBJS): Set variable.
885 (tst-rtld-preload.out): New target.
886 * elf/tst-rtld-preload.sh: New file.
887
888 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
889
890 * Makefile (testrun.sh): Exit in case of incorrect argument.
891
892 2019-02-04 Florian Weimer <fweimer@redhat.com>
893
894 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
895 alignment gaps.
896
897 2019-02-03 Florian Weimer <fweimer@redhat.com>
898
899 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
900 implicit overflow checks.
901
902 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
903
904 * stdlib/isomac.c: Include <unistd.h>.
905
906 2019-02-03 Florian Weimer <fweimer@redhat.com>
907
908 * include/time.h (__tzfile_default): Use int, not long int, for
909 the GMT offsets.
910 * time/tzfile.c (struct ttinfo): Change type of the offset member
911 to int.
912 (__tzfile_read): Remove useless cast.
913 (__tzfile_default): Adjust prototype.
914 * time/tzset.c (tz_rule): Change type of the offset member to int.
915 (parse_offset): Change the type of the sign variable to int.
916
917 2019-02-03 Florian Weimer <fweimer@redhat.com>
918
919 [BZ #24153]
920 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
921 * libio/getchar.c (getchar): Likewise.
922 * libio/getchar_u.c (getchar_unlocked): Likewise.
923 * libio/getwchar.c (getwchar): Likewise.
924 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
925 * libio/iogets.c (_IO_gets): Likewise.
926 * libio/vscanf.c (_IO_vscanf): Likewise.
927 * libio/vwscanf.c (__vwscanf): Likewise.
928 * libio/tst-bz24153.c: New file.
929 * libio/Makefile (tests): Add it.
930
931 2019-02-02 Florian Weimer <fweimer@redhat.com>
932
933 [BZ #14829]
934 * manual/resource.texi (Basic Scheduling Functions): Add
935 portability note. Change process to task throughout the section.
936 Remove incorrect comment about sched_yield as it affects
937 tasks/threads, not entire processes.
938 * sysdeps/unix/sysv/linux/bits/posix_opt.h
939 (_POSIX_PRIORITY_SCHEDULING): Update comment.
940
941 2019-02-01 Joseph Myers <joseph@codesourcery.com>
942
943 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
944 * configure: Regenerated.
945 * manual/install.texi (Tools for Compilation): Update minimum GCC
946 version.
947 * INSTALL: Regenerated.
948
949 2019-02-01 Florian Weimer <fweimer@redhat.com>
950
951 * support/support_test_compare_string.c
952 (support_test_compare_string): Use "string" in error message.
953 * support/tst-test_compare_string.c (do_test): Adjust.
954
955 2019-02-01 Florian Weimer <fweimer@redhat.com>
956
957 * support/support_format_address_family.c
958 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
959
960 2019-02-01 Florian Weimer <fweimer@redhat.com>
961
962 * manual/socket.texi (Internet Address Formats): Clarify the byte
963 order of struct sockaddr_in, struct sockaddr_in6. Document
964 sin6_flowinfo and sin6_scope_id.
965
966 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
967
968 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
969 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
970 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
971 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
972 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
973 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
974
975 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
976
977 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
978 [!MEMCHR](MEMCHR): Set to __memchr.
979 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
980 Add memchr_generic and memchr_nosimd.
981 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
982 (__libc_ifunc_impl_list): Add memchr ifuncs.
983 * sysdeps/aarch64/multiarch/memchr.c: New file.
984 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
985 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
986
987 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
988
989 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
990 Add memset_emag.
991 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
992 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
993 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
994 Add IS_EMAG check for ifunc dispatch.
995 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
996 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
997
998 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
999
1000 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1001 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1002 Add emag.
1003 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1004 New macro.
1005
1006 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1007
1008 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1009
1010 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1011
1012 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1013 syscall-template file.
1014
1015 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1016 Torvald Riegel <triegel@redhat.com>
1017 Rik Prohaska <prohaska7@gmail.com>
1018
1019 [BZ# 23844]
1020 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1021 tst-rwlock-trywrlock-stall.
1022 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1023 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1024 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1025 Set __wrphase_fute to 1 only if we started the write phase.
1026 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1027 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1028 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1029 * support/xpthread_rwlock_destroy.c: New file.
1030 * support/xthread.h: Declare xpthread_rwlock_destroy.
1031
1032 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1033
1034 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1035 version to 4.0.2.
1036
1037 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1038
1039 [BZ #24051]
1040 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1041 * libio/fileops.c (_IO_new_file_underflow): Likewise
1042 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1043 * libio/putchar.c (putchar): Likewise.
1044 * libio/putchar_u.c (putchar_unlocked): Likewise.
1045 * libio/putwchar.c (putchar): Likewise.
1046 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1047 * libio/tst-bz24051.c: New test.
1048 * libio/Makefile (tests): Add tst-bz24051
1049
1050 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1051
1052 regex: fix read overrun [BZ #24114]
1053 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1054 https://debbugs.gnu.org/34140
1055 * posix/regexec.c (proceed_next_node):
1056 Do not read past end of input buffer.
1057
1058 2019-01-31 Florian Weimer <fweimer@redhat.com>
1059
1060 [BZ #24059]
1061 * nss/nss_files/files-alias.c (get_next_alias): Handle
1062 continuation line without newline at the end.
1063 * nss/tst-nss-files-alias-truncated.c: New file.
1064 * nss/Makefile [$(build-shared)] (tests): Add
1065 tst-nss-files-alias-truncated.
1066 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1067 * support/namespace.h (struct support_chroot_configuration): Add
1068 aliases member.
1069 (struct support_chroot): Add path_aliases member.
1070 * support/support_chroot.c (support_chroot_create): Handle
1071 aliases.
1072 (support_chroot_free): Free path_aliases.
1073
1074 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1075
1076 * version.h (RELEASE): Set to "development".
1077 (VERSION): Set to "2.29.9000".
1078 * NEWS: Add section for 2.30.
1079
1080 * version.h (RELEASE): Set to "stable".
1081 (VERSION): Set to "2.29".
1082 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1083
1084 * NEWS: Add the list of bugs fixed in 2.29.
1085 * manual/contrib.texi: Update contributors list with some more
1086 names.
1087 * manual/install.texi: Update latest versions of packages
1088 tested.
1089 * INSTALL: Regenerated.
1090
1091 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1092
1093 * po/be.po: Update translations.
1094 * po/bg.po: Likewise.
1095 * po/ca.po: Likewise.
1096 * po/cs.po: Likewise.
1097 * po/da.po: Likewise.
1098 * po/de.po: Likewise.
1099 * po/el.po: Likewise.
1100 * po/eo.po: Likewise.
1101 * po/es.po: Likewise.
1102 * po/fi.po: Likewise.
1103 * po/fr.po: Likewise.
1104 * po/gl.po: Likewise.
1105 * po/hr.po: Likewise.
1106 * po/hu.po: Likewise.
1107 * po/ia.po: Likewise.
1108 * po/id.po: Likewise.
1109 * po/it.po: Likewise.
1110 * po/ja.po: Likewise.
1111 * po/ko.po: Likewise.
1112 * po/lt.po: Likewise.
1113 * po/nb.po: Likewise.
1114 * po/nl.po: Likewise.
1115 * po/pl.po: Likewise.
1116 * po/pt_BR.po: Likewise.
1117 * po/ru.po: Likewise.
1118 * po/rw.po: Likewise.
1119 * po/sk.po: Likewise.
1120 * po/sl.po: Likewise.
1121 * po/sv.po: Likewise.
1122 * po/tr.po: Likewise.
1123 * po/uk.po: Likewise.
1124 * po/vi.po: Likewise.
1125 * po/zh_CN.po: Likewise.
1126 * po/zh_TW.po: Likewise.
1127
1128 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1129
1130 [BZ #24130]
1131 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1132 of $f3 register on $y_is_neg path.
1133
1134 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1135
1136 [BZ #24110]
1137 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1138 sigaltstack.ss_flags.
1139
1140 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1141
1142 [BZ #23758]
1143 * manual/time.texi (strftime): Document "%Ey".
1144 * time/strftime_l.c (__strftime_internal): Set the default width
1145 padding with zero of "%Ey" to 2.
1146
1147 [BZ #24096]
1148 * manual/time.texi (strftime): Document "%EC" and "%EY".
1149 * time/Makefile (tests): Add tst-strftime2.
1150 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1151 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1152 override padding for "%Ey".
1153 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1154 "%Ey" in the subformat as if decorated with that flag.
1155 * time/tst-strftime2.c: New file.
1156
1157 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1158
1159 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1160 are not defined.
1161
1162 [BZ #24122]
1163 * elf/Makefile (tests): Add tst-audit13.
1164 (modules-names): Add tst-audit13mod1.
1165 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1166 rule.
1167 * elf/rtld.c (dl_main): Handle invalid audit module version.
1168 * elf/tst-audit13.c: New file.
1169 * elf/tst-audit13mod1.c: Likewise.
1170
1171 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1172
1173 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1174 returned by __hurd_at_flags.
1175 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1176 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1177 directly instead of __hurd_file_name_lookup.
1178
1179 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1180
1181 * scripts/build-many-glibcs.py (Context.checkout): Default
1182 binutils version to 2.32 branch.
1183
1184 2019-01-21 Florian Weimer <fweimer@redhat.com>
1185
1186 [BZ #20018]
1187 CVE-2016-10739
1188 resolv: Reject trailing characters in host names
1189 * include/arpa/inet.h (__inet_aton_exact): Declare.
1190 (inet_aton): Remove hidden prototype. No longer used internally.
1191 * nscd/gai.c (__inet_aton): Do not define.
1192 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1193 * nss/digits_dots.c (__inet_aton): Likewise.
1194 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1195 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1196 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1197 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1198 (tst-resolv-trailing): Likewise.
1199 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1200 libc.
1201 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1202 Make static. Add endp parameter.
1203 (__inet_aton_exact): New function.
1204 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1205 (__inet_addr): Call inet_aton_end.
1206 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1207 not just IPv6. Call __inet_aton_exact.
1208 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1209 (tests): Make const. Add additional test cases with trailing
1210 characters.
1211 (do_test): Use array_length.
1212 * resolv/tst-inet_aton_exact.c: New file.
1213 * resolv/tst-resolv-trailing.c: Likewise.
1214 * resolv/tst-resolv-nondecimal.c: Likewise.
1215 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1216
1217 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 [BZ# 24097]
1220 CVE-2019-6488
1221 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1222 Clear the upper 32 bits of RSI register.
1223 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1224 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1225 and tst-size_t-wcsnlen.
1226 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1227 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1228
1229 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 [BZ# 24097]
1232 CVE-2019-6488
1233 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1234 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1235 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1236 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1237 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1238
1239 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 [BZ# 24097]
1242 CVE-2019-6488
1243 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1244 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1245 * sysdeps/x86_64/strcmp.S: Likewise.
1246 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1247 tst-size_t-strncmp and tst-size_t-wcsncmp.
1248 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1249 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1250 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1251
1252 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1253
1254 [BZ# 24097]
1255 CVE-2019-6488
1256 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1257 RDX_LP for length. Clear the upper 32 bits of RDX register.
1258 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1259 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1260 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1261 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1262
1263 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1264
1265 [BZ# 24097]
1266 CVE-2019-6488
1267 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1268 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1269 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1270 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1271
1272 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1273
1274 [BZ# 24097]
1275 CVE-2019-6488
1276 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1277 length. Clear the upper 32 bits of RDX register.
1278 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1279 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1280 Likewise.
1281 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1282 Likewise.
1283 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1284 tst-size_t-wmemchr.
1285 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1286
1287 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 [BZ# 24097]
1290 CVE-2019-6488
1291 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1292 length. Clear the upper 32 bits of RDX register.
1293 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1294 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1295 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1296 tst-size_t-wmemcmp.
1297 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1298 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1299
1300 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1301
1302 [BZ# 24097]
1303 CVE-2019-6488
1304 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1305 upper 32 bits of RDX register.
1306 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1307 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1308 tst-size_t-wmemchr.
1309 * sysdeps/x86_64/x32/test-size_t.h: New file.
1310 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1311 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1312
1313 2019-01-18 Florian Weimer <fweimer@redhat.com>
1314
1315 [BZ #24112]
1316 resolv: Do not send queries for non-host-names in nss_dns.
1317 * resolv/nss_dns/dns-host.c (check_name): New function.
1318 (_nss_dns_gethostbyname2_r): Use it.
1319 (_nss_dns_gethostbyname_r): Likewise.
1320 (_nss_dns_gethostbyname4_r): Likewise.
1321
1322 2019-01-21 Florian Weimer <fweimer@redhat.com>
1323
1324 * resolv/inet_addr.c: Reformat to GNU style.
1325 (__inet_addr, __inet_aton): Update comment.
1326
1327 2019-01-18 Florian Weimer <fweimer@redhat.com>
1328
1329 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1330 ("malloc: Use current (C11-style) atomics for fastbin access").
1331 This commit introduces a substantial performance regression on
1332 POWER and Aarch64.
1333 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1334 (REMOVE_FB): Define.
1335 (_int_malloc): Use it and reindent.
1336 (_int_free): Use CAS loop with
1337 catomic_compare_and_exchange_val_rel.
1338 (malloc_consolidate): Use atomic_exchange_acq.
1339
1340
1341 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1344 -Wl,-z,now.
1345 (LDFLAGS-tst-minsigstksz-2): Likewise.
1346 (LDFLAGS-tst-minsigstksz-3): Likewise.
1347 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1348 (LDFLAGS-tst-minsigstksz-4): Likewise.
1349
1350 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1351
1352 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1353 than "alternate".
1354
1355 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1356
1357 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1358
1359 2019-01-16 Zack Weinberg <zackw@panix.com>
1360
1361 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1362 (xget_sigstack_location): New test support functions.
1363 * support/xsigstack.c: New file, implementing them.
1364 * support/tst-xsigstack.c: New test for them.
1365 * support/Makefile: Update.
1366
1367 * signal/tst-minsigstksz-1.c
1368 * signal/tst-minsigstksz-2.c
1369 * signal/tst-minsigstksz-3.c
1370 * signal/tst-minsigstksz-3a.c
1371 * signal/tst-minsigstksz-4.c: New tests.
1372 * signal/Makefile: Run them.
1373
1374 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1375
1376 * po/libc.pot: Regenerate.
1377
1378 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1379
1380 * math/libm-test-fma.inc (fma_test_data): Set
1381 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1382
1383 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1384
1385 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1386 (do_test): Changed __vector __int128_t to __vector unsigned int.
1387
1388 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1389
1390 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1391 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1392 stpcpy-avx2 and stpncpy-avx2.
1393 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1394 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1395 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1396 and __stpncpy_avx2.
1397 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1398 ifunc-strcpy.h}: rename header for a more generic name.
1399 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1400 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1401 AVX unaligned load is fast and vzeroupper is preferred.
1402 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1403 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1404 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1405 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1406 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1407 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1408
1409 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1410
1411 * argp/argp-help.c: Fix typo in comment.
1412 * misc/sys/cdefs.h: Likewise.
1413 * posix/regexec.c (sift_states_iter_mb): Likewise.
1414 * socket/sockatmark.c: Likewise.
1415 * socket/sys/socket.h: Likewise.
1416 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1417 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1418 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1419 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1420 * sysdeps/unix/sockatmark.c: Likewise.
1421 * time/strptime_l.c: Likewise.
1422
1423 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1424
1425 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1426 missing space after the cast of "_NL_CURRENT".
1427
1428 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1429
1430 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1431 ifdef to fix read of VSCR.
1432 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1433 tst-ucontext-ppc64-vscr.c to test list.
1434 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1435
1436 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1437
1438 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1439 fall-through.
1440
1441 2019-01-09 Jim Wilson <jimw@sifive.com>
1442
1443 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1444
1445 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1446
1447 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1448 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1449 __memcpy_falkor for ares.
1450 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1451 Add new define.
1452 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1453 Add ares cpu.
1454
1455 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1456
1457 [BZ #24066]
1458 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1459 4_FP_W_TYPEs are used for IEEE quad precision.
1460 * soft-fp/extendhftf2.c: Likewise.
1461 * soft-fp/extendsftf2.c: Likewise.
1462 * soft-fp/extendxftf2.c: Likewise.
1463 * soft-fp/trunctfdf2.c: Likewise.
1464 * soft-fp/trunctfhf2.c: Likewise.
1465 * soft-fp/trunctfsf2.c: Likewise.
1466 * soft-fp/trunctfxf2.c: Likewise.
1467 * sysdeps/alpha/ots_cvttx.c: Likewise.
1468 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1469 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1470 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1471 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1472 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1473 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1474 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1475 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1476 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1477 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1478 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1479 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1480 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1481 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1482 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1483 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1484 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1485
1486 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1487
1488 [BZ #24024]
1489 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1490 code with -fmath-errno.
1491 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1492 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1493 * string/test-strerror-errno.c: New file.
1494
1495 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1496
1497 [BZ #24046]
1498 * localedata/locales/en_US (date_fmt): Add, set to
1499 "%a %d %b %Y %r %Z".
1500
1501 2019-01-07 Florian Weimer <fweimer@redhat.com>
1502
1503 [BZ #24063]
1504 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1505 instead of @var{errno}.
1506 (Parsing of Integers): Likewise.
1507 (Parsing of Floats): Likewise.
1508 * manual/filesys.texi (Working with Directory Trees): Likewise.
1509 (Temporary Files): Likewise.
1510 * manual/job.texi (Terminal Access Functions): Likewise.
1511 * manual/llio.texi (Synchronizing I/O): Likewise.
1512 * manual/math.texi (SVID Random): Likewise.
1513 * manual/message.texi (The catgets Functions): Likewise.
1514 (Translation with gettext): Likewise.
1515 (Locating gettext catalog): Likewise.
1516 (Charset conversion in gettext): Likewise.
1517 * manual/nss.texi (NSS Module Function Internals): Likewise.
1518 * manual/search.texi (Hash Search Function): Likewise.
1519 * manual/setjmp.texi (System V contexts): Likewise.
1520 * manual/time.texi (Sleeping): Likewise.
1521 * manual/users.texi (Lookup User): Likewise.
1522 (Lookup Group): Likewise.
1523
1524 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1525
1526 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1527 fix typo.
1528
1529 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1530
1531 [BZ #19444]
1532 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1533 __builtin_unreachable for default case in switch.
1534 (__ieee754_yn): Likewise.
1535 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1536 (__ieee754_ynl): Likewise.
1537 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1538 (__ieee754_ynl): Likewise.
1539 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1540 (__ieee754_ynl): Likewise.
1541
1542 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1543
1544 * manual/maint.texi: Use @{ and @}.
1545
1546 2019-01-04 Florian Weimer <fweimer@redhat.com>
1547
1548 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1549 function.
1550 (do_in_chroot_1): Call it.
1551 (run_chroot_tests):
1552 Improve error reporting in case it is not possible to create a
1553 collision for the PTY name required by the test.
1554
1555 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1556
1557 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1558 lll_wait_tid with timeout.
1559 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1560 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1561 futex_reltimed_wait_cancelable for cancelabla mode.
1562 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1563 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1564 macros.
1565 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1566 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1567 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1568 SYSCALL_CANCEL_NCS): New macro.
1569 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1570 (lll_timedwait_tid): Remove macro.
1571 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1572 Likewise.
1573 (lll_timedwait_tid): Likewise.
1574 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1575 Likewise.
1576 (lll_timedwait_tid): Likewise.
1577 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1578 Likewise.
1579 (lll_timedwait_tid): Likewise.
1580 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1581 Use INTERNAL_SYSCALL_CANCEL.
1582 * sysdeps/unix/sysv/linux/futex-internal.h
1583 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1584 instead of __pthread_{enable,disable}_asynccancel.
1585 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1586 (lll_futex_wait_cancel): New macro.
1587
1588 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1589 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1590
1591 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1592 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1593
1594 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1595 in backtrace analysis.
1596 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1597 side-effects.
1598 (tf_send): Likewise.
1599
1600 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1601 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1602 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1603 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1604 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1605 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1606 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1607 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1608 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1609 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1610 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1611 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1612 Likewise.
1613 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1614 tst-cancel-wrappers.sh.
1615 (generated): Remove tst-cancel-wrappers.out.
1616 (tst-cancel-wrappers.out): Remove rule.
1617 * nptl/tst-cancel-wrappers.sh: Remove file.
1618
1619 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1620
1621 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1622 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1623 Update.
1624
1625 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1626
1627 [BZ #23640]
1628 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1629 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1630 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1631 close-on-exec reset for adddup2 file action.
1632 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1633
1634 2019-01-03 Zack Weinberg <zackw@panix.com>
1635
1636 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1637 parameter. Only use deprecated scanf when __USE_GNU is defined
1638 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1639 than 201103L, whichever is relevant for the language being compiled.
1640
1641 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1642 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1643 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1644 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1645 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1646
1647 * libio/iovsscanf.c
1648 * libio/fwscanf.c
1649 * libio/iovswscanf.c
1650 * libio/swscanf.c
1651 * libio/vscanf.c
1652 * libio/vwscanf.c
1653 * libio/wscanf.c
1654 * stdio-common/fscanf.c
1655 * stdio-common/scanf.c
1656 * stdio-common/vfscanf.c
1657 * stdio-common/vfwscanf.c
1658 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1659 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1660 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1661 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1662 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1663 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1664 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1665 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1666 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1667 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1668 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1669 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1670 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1671 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1672 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1673
1674 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1675 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1676 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1677 not sscanf.
1678 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1679 with a preprocessor macro.
1680
1681 * stdio-common/bug21.c, stdio-common/scanf14.c:
1682 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1683 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1684 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1685 to xscanf, xfscanf, xsscanf.
1686
1687 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1688 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1689 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1690 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1691 xfscanf, xsscanf.
1692 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1693 override feature selection macros or provide definitions of u_char etc.
1694 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1695 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1696 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1697 with -std=gnu89.
1698
1699 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1700
1701 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1702 bits/termios-misc.h.
1703 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1704 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1705 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1706 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1707 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1708 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1709
1710 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1711 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1712 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1713 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1714 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1715 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1716 termios-misc.h.
1717 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1718 (sysdep_headers): Add termios-misc.h.
1719
1720 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1721 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1722 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1723
1724 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1725 termios-tcflow.h.
1726 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1727 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1728 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1729 TCSAFLUSH): Move to termios-tcflow.h.
1730 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1731 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1732 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1733 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1734
1735 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1736 termios-c_lflag.h.
1737 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1738 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1739 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1740 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1741 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1742 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1743 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1744 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1745 Likewise.
1746 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1747 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1748 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1749 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1750
1751 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1752 termios-c_cflag.h.
1753 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1754 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1755 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1756 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1757 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1758 termios-c_cflag.h.
1759 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1760 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1761 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1762 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1763
1764 [BZ #23783]
1765 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1766 termios-baud.h.
1767 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1768 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1769 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1770 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1771 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1772 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1773 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1774 __MAX_BAUD): Move to termios-baud.h.
1775 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1776 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1777 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1778 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1779 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1780
1781 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1782 termios-c_oflag.h.
1783 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1784 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1785 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1786 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1787 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1788 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1789 termios-c_oflag.h.
1790 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1791 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1792 FFR1): Likewise.
1793 [USE_MISC] (XTABS): Likewise.
1794 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1795 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1796 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1797 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1798
1799 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1800 termios-c_iflag.h.
1801 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1802 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1803 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1804 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1805 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1806 IUTF8): Move to termios-c_iflag.h.
1807 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1808 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1809 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1810 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1811
1812 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1813 termios-cc.h.
1814 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1815 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1816 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1817 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1818 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1819 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1820 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1821 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1822 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1823 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1824 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1825 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1826
1827 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1828 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1829 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1830 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1831 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1832 termios-struct.h.
1833 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1834 termios-struct.h.
1835 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1836 Likewise.
1837 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1838 Likewise.
1839 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1840 Likewise.
1841 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1842 Likewise.
1843 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1844 _HAVE_C_OSPEED): Define.
1845 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1846 _HAVE_C_OSPEED): Likewise.
1847 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1848 _HAVE_C_OSPEED): Likewise.
1849 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1850 (cfsetospeed): Check for define value instead of existence.
1851 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1852 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1853 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1854 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1855 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1856
1857 [BZ #17783]
1858 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1859 Define.
1860 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1861 (TIOCSER_TEMT): Likewise.
1862 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1863 (TEOCSER_TEMT): Likewise.
1864
1865 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1866
1867 [BZ #24011]
1868 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1869
1870 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1871
1872 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1873
1874 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1875
1876 * sysdeps/htl/pt-barrierattr-setpshared.c
1877 (pthread_barrierattr_setpshared): Add stub warning.
1878 * sysdeps/htl/pt-condattr-setpshared.c
1879 (pthread_condattr_setpshared): Likewise.
1880 * sysdeps/htl/pt-mutexattr-setpshared.c
1881 (pthread_mutexattr_setpshared): Likewise.
1882 * sysdeps/htl/pt-rwlockattr-setpshared.c
1883 (pthread_rwlockattr_setpshared): Likewise.
1884 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1885 (pthread_mutexattr_setpshared): Likewise.
1886
1887 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1888
1889 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1890 constants to match with Linux 4.20.
1891
1892 * sysdeps/mips/mips32/libm-test-ulps: Update.
1893 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1894
1895 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1896
1897 [BZ #24034]
1898 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1899 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1900 than __typeof (...) for the a_ptr variable.
1901
1902 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1903
1904 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1905 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1906 * libio/Makefile (tests): Add tst-sprintf-ub and
1907 tst-sprintf-chk-ub.
1908 (CFLAGS-tst-sprintf-ub.c): New variable.
1909 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1910 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1911 destination buffer and check for overflows in fortified mode.
1912 * libio/libioP.h (PRINTF_CHK): New macro.
1913 * libio/tst-sprintf-chk-ub.c: New file.
1914 * libio/tst-sprintf-ub.c: Likewise.
1915
1916 2019-01-02 Florian Weimer <fweimer@redhat.com>
1917
1918 [BZ #24018]
1919 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1920 failure.
1921
1922 2019-01-02 Florian Weimer <fweimer@redhat.com>
1923
1924 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1925
1926 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1927
1928 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1929 macro.
1930
1931 * sysdeps/unix/sysv/linux/netpacket/packet.h
1932 (PACKET_IGNORE_OUTGOING): New macro.
1933
1934 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1935 macro.
1936
1937 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1938 version to 4.20.
1939 (riscv_flush_icache): New syscall.
1940
1941 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1942 trailing whitespace removed.
1943 * scripts/config.guess: Update to version 2019-01-01.
1944 * scripts/config.sub: Update to version 2019-01-01.
1945 * scripts/move-if-change: Update from gnulib.
1946
1947 * NEWS: Update copyright dates.
1948 * catgets/gencat.c (print_version): Likewise.
1949 * csu/version.c (banner): Likewise.
1950 * debug/catchsegv.sh: Likewise.
1951 * debug/pcprofiledump.c (print_version): Likewise.
1952 * debug/xtrace.sh (do_version): Likewise.
1953 * elf/ldconfig.c (print_version): Likewise.
1954 * elf/ldd.bash.in: Likewise.
1955 * elf/pldd.c (print_version): Likewise.
1956 * elf/sotruss.sh: Likewise.
1957 * elf/sprof.c (print_version): Likewise.
1958 * iconv/iconv_prog.c (print_version): Likewise.
1959 * iconv/iconvconfig.c (print_version): Likewise.
1960 * locale/programs/locale.c (print_version): Likewise.
1961 * locale/programs/localedef.c (print_version): Likewise.
1962 * login/programs/pt_chown.c (print_version): Likewise.
1963 * malloc/memusage.sh (do_version): Likewise.
1964 * malloc/memusagestat.c (print_version): Likewise.
1965 * malloc/mtrace.pl: Likewise.
1966 * manual/libc.texinfo: Likewise.
1967 * nptl/version.c (banner): Likewise.
1968 * nscd/nscd.c (print_version): Likewise.
1969 * nss/getent.c (print_version): Likewise.
1970 * nss/makedb.c (print_version): Likewise.
1971 * posix/getconf.c (main): Likewise.
1972 * scripts/test-installation.pl: Likewise.
1973 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1974
1975 * All files with FSF copyright notices: Update copyright dates
1976 using scripts/update-copyrights.
1977 * locale/programs/charmap-kw.h: Regenerated.
1978 * locale/programs/locfile-kw.h: Likewise.
1979
1980 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1981
1982 * timezone/zdump.c: Update from tzcode 2018i.
1983 * timezone/zic.c: Likewise.
1984
1985 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1986
1987 regex: improve Gnulib port to AIX
1988 From the glibc point of view, this removes duplicate macro
1989 definitions and is obviously safe.
1990 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1991 * posix/regex_internal.h:
1992 (__attribute__, __attribute_warn_unused_result__):
1993 Remove; already defined elsewhere.
1994
1995 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1996
1997 [BZ #24027]
1998 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1999 copying operation. (ncopies had the wrong type, resulting in an
2000 integer wraparound and too few elements being copied.)
2001
2002 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2003
2004 [BZ #24022]
2005 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2006 <asm/syscalls.h> exists with __has_include__ before including it.
2007
2008 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2009
2010 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2011 version to 4.20.
2012
2013 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2014
2015 * hurd/lookup-retry: Include <unistd.h>.
2016 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2017 Release it on return. Handle "pid" magical lookup retry.
2018
2019 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2020
2021 [BZ #10496]
2022 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2023 (t_fmt_ampm): Likewise.
2024 * localedata/locales/aa_ER (t_fmt): Likewise.
2025 (t_fmt_ampm): Likewise.
2026 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2027 (t_fmt_ampm): Likewise.
2028 * localedata/locales/aa_ET (t_fmt): Likewise.
2029 (t_fmt_ampm): Likewise.
2030 * localedata/locales/am_ET (t_fmt): Likewise.
2031 (t_fmt_ampm): Likewise.
2032 * localedata/locales/byn_ER (t_fmt): Likewise.
2033 (t_fmt_ampm): Likewise.
2034 * localedata/locales/om_ET (t_fmt): Likewise.
2035 (t_fmt_ampm): Likewise.
2036 * localedata/locales/sid_ET (t_fmt): Likewise.
2037 (t_fmt_ampm): Likewise.
2038 * localedata/locales/so_DJ (t_fmt): Likewise.
2039 (t_fmt_ampm): Likewise.
2040 * localedata/locales/so_ET (t_fmt): Likewise.
2041 (t_fmt_ampm): Likewise.
2042 * localedata/locales/so_SO (t_fmt): Likewise.
2043 (t_fmt_ampm): Likewise.
2044 * localedata/locales/ti_ER (t_fmt): Likewise.
2045 (t_fmt_ampm): Likewise.
2046 * localedata/locales/ti_ET (t_fmt): Likewise.
2047 (t_fmt_ampm): Likewise.
2048 * localedata/locales/tig_ER (t_fmt): Likewise.
2049 (t_fmt_ampm): Likewise.
2050 * localedata/locales/wal_ET (t_fmt): Likewise.
2051 (t_fmt_ampm): Likewise.
2052
2053 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2054 * localedata/locales/ar_IN (t_fmt): Likewise.
2055 * localedata/locales/bhb_IN (t_fmt): Likewise.
2056 * localedata/locales/bho_IN (t_fmt): Likewise.
2057 * localedata/locales/bi_VU (t_fmt): Likewise.
2058 * localedata/locales/bn_BD (t_fmt): Likewise.
2059 * localedata/locales/bn_IN (t_fmt): Likewise.
2060 * localedata/locales/brx_IN (t_fmt): Likewise.
2061 * localedata/locales/doi_IN (t_fmt): Likewise.
2062 * localedata/locales/en_HK (t_fmt): Likewise.
2063 (t_fmt_ampm): Likewise.
2064 * localedata/locales/en_IN (t_fmt): Likewise.
2065 * localedata/locales/en_PH (t_fmt): Likewise.
2066 * localedata/locales/gu_IN (t_fmt): Likewise.
2067 * localedata/locales/hi_IN (t_fmt): Likewise.
2068 * localedata/locales/hif_FJ (t_fmt): Likewise.
2069 * localedata/locales/hne_IN (t_fmt): Likewise.
2070 * localedata/locales/kn_IN (t_fmt): Likewise.
2071 * localedata/locales/kok_IN (t_fmt): Likewise.
2072 * localedata/locales/ks_IN (t_fmt): Likewise.
2073 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2074 * localedata/locales/mag_IN (t_fmt): Likewise.
2075 * localedata/locales/mai_IN (t_fmt): Likewise.
2076 * localedata/locales/mjw_IN (t_fmt): Likewise.
2077 * localedata/locales/ml_IN (t_fmt): Likewise.
2078 * localedata/locales/mni_IN (t_fmt): Likewise.
2079 * localedata/locales/mr_IN (t_fmt): Likewise.
2080 * localedata/locales/ms_MY (t_fmt): Likewise.
2081 * localedata/locales/pa_IN (t_fmt): Likewise.
2082 * localedata/locales/raj_IN (t_fmt): Likewise.
2083 * localedata/locales/sa_IN (t_fmt): Likewise.
2084 * localedata/locales/sat_IN (t_fmt): Likewise.
2085 * localedata/locales/sd_IN (t_fmt): Likewise.
2086 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2087 * localedata/locales/tcy_IN (t_fmt): Likewise.
2088 * localedata/locales/the_NP (t_fmt): Likewise.
2089 * localedata/locales/to_TO (t_fmt): Likewise.
2090 * localedata/locales/ur_IN (t_fmt): Likewise.
2091
2092 * localedata/locales/hif_FJ (d_t_fmt): Set to
2093 "%A %d %b %Y %I:%M:%S %p".
2094 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2095
2096 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2097 * localedata/locales/ar_BH (t_fmt): Likewise.
2098 * localedata/locales/ar_DZ (t_fmt): Likewise.
2099 * localedata/locales/ar_EG (t_fmt): Likewise.
2100 * localedata/locales/ar_IQ (t_fmt): Likewise.
2101 * localedata/locales/ar_JO (t_fmt): Likewise.
2102 * localedata/locales/ar_KW (t_fmt): Likewise.
2103 * localedata/locales/ar_LB (t_fmt): Likewise.
2104 * localedata/locales/ar_LY (t_fmt): Likewise.
2105 * localedata/locales/ar_OM (t_fmt): Likewise.
2106 * localedata/locales/ar_QA (t_fmt): Likewise.
2107 * localedata/locales/ar_SD (t_fmt): Likewise.
2108 * localedata/locales/ar_SS (t_fmt): Likewise.
2109 * localedata/locales/ar_SY (t_fmt): Likewise.
2110 * localedata/locales/ar_TN (t_fmt): Likewise.
2111 * localedata/locales/ar_YE (t_fmt): Likewise.
2112
2113 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2114 (t_fmt_ampm): Likewise.
2115 * localedata/locales/gez_ET (t_fmt): Likewise.
2116 (t_fmt_ampm): Likewise.
2117
2118 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2119 (t_fmt_ampm): Likewise.
2120 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2121
2122 * localedata/locales/zh_HK (t_fmt):
2123 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2124
2125 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2126 because this locale does not use the 12-hour clock.
2127 (t_fmt): Set to "%Z %H:%M:%S".
2128 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2129
2130 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2131 because this locale does not use the 12-hour clock.
2132 (t_fmt): Set to "%H:%M:%S %Z".
2133 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2134
2135 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2136 because this locale does not use the 12-hour clock.
2137 (t_fmt): Set to "%T".
2138 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2139 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2140
2141 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2142 because this locale does not use the 12-hour clock.
2143 (t_fmt): Set to "%H:%M:%S %Z".
2144 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2145
2146 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2147 because this locale does not use the 12-hour clock.
2148 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2149 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2150
2151 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2152
2153 [BZ #10496]
2154 [BZ #23724]
2155 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2156 (t_fmt_ampm): Likewise.
2157 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2158 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2159 (d_fmt): Set to "%-d.%-m.%y".
2160
2161 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2162
2163 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2164 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2165 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2166 Likewise.
2167 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2168 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2169 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2170 function.
2171 * support/blob_repeat.c (check_mul_overflow_size_t,
2172 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2173
2174 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2175
2176 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2177
2178 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2179
2180 regex: simplify Gnulib port
2181 This simplifies the code, by removing stuff intended for porting
2182 to Gnulib but no longer needed there.
2183 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2184 uses of libc_hidden_def, weak_alias.
2185 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2186 _Restrict_ except for public-facing headers.
2187 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2188 Remove; already defined elsewhere.
2189 * posix/regex.c, posix/regex_internal.h:
2190 Use __GNUC_PREREQ instead of rolling our own.
2191 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2192
2193 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2194
2195 * benchtests/bench-strlen.c (generic_strlen): New function.
2196 (memchr_strlen): New function.
2197
2198 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2201 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2202 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2203
2204 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2205
2206 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2207
2208 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2209
2210 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2211 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2212 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2213 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2214 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2215 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2216 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2217
2218 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2219
2220 [BZ #24023]
2221 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2222 PLT reference in libc.so.
2223 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2224 _Q_lltoq and _Q_qtod PLT references in libc.so.
2225
2226 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2227
2228 * benchtests/bench-memchr.c: Cleanup defines.
2229 * benchtests/bench-memcmp.c: Likewise.
2230 * benchtests/bench-memset.c: Likewise.
2231 * benchtests/bench-memset-large.c: Likewise.
2232 * benchtests/bench-memset-walk.c: Likewise.
2233 * benchtests/bench-stpcpy.c: Likewise.
2234 * benchtests/bench-stpncpy.c: Likewise.
2235 * benchtests/bench-strcat.c: Likewise.
2236 * benchtests/bench-strchr.c: Likewise.
2237 * benchtests/bench-strcmp.c: Likewise.
2238 * benchtests/bench-strcpy.c: Likewise.
2239 * benchtests/bench-strcspn.c: Likewise.
2240 * benchtests/bench-string.h: Likewise.
2241 * benchtests/bench-strlen.c: Likewise.
2242 * benchtests/bench-strncat.c: Likewise.
2243 * benchtests/bench-strncmp.c: Likewise.
2244 * benchtests/bench-strncpy.c: Likewise.
2245 * benchtests/bench-strnlen.c: Likewise.
2246 * benchtests/bench-strpbrk.c: Likewise.
2247 * benchtests/bench-strrchr.c: Likewise.
2248 * benchtests/bench-strspn.c: Likewise.
2249
2250 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2251
2252 * stdlib/longlong.h: Update from GCC.
2253
2254 [BZ #23993]
2255 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2256 * configure: Regenerated.
2257 * manual/install.texi (Tools for Compilation): Update minimum GCC
2258 version.
2259 * INSTALL: Regenerated.
2260
2261 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2262
2263 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2264
2265 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2266
2267 * malloc/malloc.c (mremap_chunk): Additional checks.
2268
2269 2018-12-21 Mao Han <han_mao@c-sky.com>
2270
2271 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2272 * scripts/build-many-glibcs.py: Add C-SKY targets.
2273 * sysdeps/csky/Implies: New file.
2274 * sysdeps/csky/Makefile: Likewise.
2275 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2276 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2277 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2278 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2279 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2280 * sysdeps/csky/abiv2/memmove.S: Likewise.
2281 * sysdeps/csky/abiv2/memset.S: Likewise.
2282 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2283 * sysdeps/csky/abiv2/start.S: Likewise.
2284 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2285 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2286 * sysdeps/csky/abiv2/strlen.S: Likewise.
2287 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2288 * sysdeps/csky/abort-instr.h: Likewise.
2289 * sysdeps/csky/atomic-machine.h: Likewise.
2290 * sysdeps/csky/bits/endian.h: Likewise.
2291 * sysdeps/csky/bits/fenv.h: Likewise.
2292 * sysdeps/csky/bits/link.h: Likewise.
2293 * sysdeps/csky/bits/setjmp.h: Likewise.
2294 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2295 * sysdeps/csky/bsd-setjmp.S: Likewise.
2296 * sysdeps/csky/configure: Likewise.
2297 * sysdeps/csky/configure.ac: Likewise.
2298 * sysdeps/csky/dl-machine.h: Likewise.
2299 * sysdeps/csky/dl-procinfo.c: Likewise.
2300 * sysdeps/csky/dl-procinfo.h: Likewise.
2301 * sysdeps/csky/dl-sysdep.h: Likewise.
2302 * sysdeps/csky/dl-tls.h: Likewise.
2303 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2304 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2305 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2306 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2307 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2308 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2309 * sysdeps/csky/fpu/fegetround.c: Likewise.
2310 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2311 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2312 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2313 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2314 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2315 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2316 * sysdeps/csky/fpu/fesetround.c: Likewise.
2317 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2318 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2319 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2320 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2321 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2322 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2323 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2324 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2325 * sysdeps/csky/fpu_control.h: Likewise.
2326 * sysdeps/csky/gccframe.h: Likewise.
2327 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2328 * sysdeps/csky/ldsodefs.h: Likewise.
2329 * sysdeps/csky/libc-tls.c: Likewise.
2330 * sysdeps/csky/linkmap.h: Likewise.
2331 * sysdeps/csky/machine-gmon.h: Likewise.
2332 * sysdeps/csky/memusage.h: Likewise.
2333 * sysdeps/csky/nofpu/Implies: Likewise.
2334 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2335 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2336 * sysdeps/csky/nptl/Makefile: Likewise.
2337 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2338 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2339 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2340 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2341 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2342 * sysdeps/csky/nptl/tls.h: Likewise.
2343 * sysdeps/csky/preconfigure: Likewise.
2344 * sysdeps/csky/sfp-machine.h: Likewise.
2345 * sysdeps/csky/sotruss-lib.c: Likewise.
2346 * sysdeps/csky/stackinfo.h: Likewise.
2347 * sysdeps/csky/sysdep.h: Likewise.
2348 * sysdeps/csky/tininess.h: Likewise.
2349 * sysdeps/csky/tst-audit.h: Likewise.
2350 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2351 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2352 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2353 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2354 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2355 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2356 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2357 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2358 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2359 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2360 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2361 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2362 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2363 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2364 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2365 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2366 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2367 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2368 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2369 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2370 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2371 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2372 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2373 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2374 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2375 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2376 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2377 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2378 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2379 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2380 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2381 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2382 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2383 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2384 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2385 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2386 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2387 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2388 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2389 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2390 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2391 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2392 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2393 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2394
2395 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2396
2397 * include/time.h (__difftime64): Add.
2398 * time/difftime.c (subtract): convert to 64-bit time.
2399 * time/difftime.c (__difftime64): Add.
2400 * time/difftime.c (__difftime): Wrap around __difftime64.
2401
2402 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2403
2404 * manual/examples/add.c: Remove redundant "if not".
2405 * manual/examples/argp-ex1.c: Likewise.
2406 * manual/examples/argp-ex2.c: Likewise.
2407 * manual/examples/argp-ex3.c: Likewise.
2408 * manual/examples/argp-ex4.c: Likewise.
2409 * manual/examples/atexit.c: Likewise.
2410 * manual/examples/db.c: Likewise.
2411 * manual/examples/dir.c: Likewise.
2412 * manual/examples/dir2.c: Likewise.
2413 * manual/examples/execinfo.c: Likewise.
2414 * manual/examples/filecli.c: Likewise.
2415 * manual/examples/filesrv.c: Likewise.
2416 * manual/examples/fmtmsgexpl.c: Likewise.
2417 * manual/examples/genpass.c: Likewise.
2418 * manual/examples/inetcli.c: Likewise.
2419 * manual/examples/inetsrv.c: Likewise.
2420 * manual/examples/isockad.c: Likewise.
2421 * manual/examples/longopt.c: Likewise.
2422 * manual/examples/memopen.c: Likewise.
2423 * manual/examples/memstrm.c: Likewise.
2424 * manual/examples/mkdirent.c: Likewise.
2425 * manual/examples/mkfsock.c: Likewise.
2426 * manual/examples/mkisock.c: Likewise.
2427 * manual/examples/mygetpass.c: Likewise.
2428 * manual/examples/pipe.c: Likewise.
2429 * manual/examples/popen.c: Likewise.
2430 * manual/examples/rprintf.c: Likewise.
2431 * manual/examples/search.c: Likewise.
2432 * manual/examples/select.c: Likewise.
2433 * manual/examples/setjmp.c: Likewise.
2434 * manual/examples/sigh1.c: Likewise.
2435 * manual/examples/sigusr.c: Likewise.
2436 * manual/examples/stpcpy.c: Likewise.
2437 * manual/examples/strdupa.c: Likewise.
2438 * manual/examples/strftim.c: Likewise.
2439 * manual/examples/subopt.c: Likewise.
2440 * manual/examples/swapcontext.c: Likewise.
2441 * manual/examples/termios.c: Likewise.
2442 * manual/examples/testopt.c: Likewise.
2443 * manual/examples/testpass.c: Likewise.
2444 * manual/examples/timeval_subtract.c: Likewise.
2445
2446 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2447
2448 * sysdeps/x86/fpu/math_private.h: New file.
2449 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2450
2451 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2452 definition.
2453 (cosh): Likewise.
2454 (tanh): Likewise.
2455
2456 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2457
2458 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2459 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2460 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2461 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2462 fields.
2463 (_dl_show_auxv): Give a special treatment to
2464 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2465 and AT_L3_CACHEGEOMETRY.
2466 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2467 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2468 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2469 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2470
2471 2018-12-19 Andreas Schwab <schwab@suse.de>
2472
2473 * nscd/connections.c (check_use): Don't abort on invalid len.
2474
2475 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2476
2477 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2478 values in the 64bit value cases.
2479
2480 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2481
2482 * include/time.h
2483 (__ctime64_r): Add.
2484 * time/ctime_r.c
2485 (__ctime64_r): Add.
2486 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2487
2488 * include/time.h
2489 (__ctime64): Add.
2490 * time/gmtime.c
2491 (__ctime64): Add.
2492 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2493
2494 * include/time.h
2495 (__gmtime64_r): Add.
2496 * time/gmtime.c
2497 (__gmtime64_r): Add.
2498 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2499
2500 * include/time.h
2501 (__gmtime64): Add.
2502 * time/gmtime.c
2503 (__gmtime64): Add.
2504 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2505
2506 * include/time.h
2507 (__localtime64_r): Add.
2508 * time/localtime.c
2509 (__localtime64_r): Add.
2510 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2511
2512 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2513
2514 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2515 kernel_sigction definition.
2516
2517 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2518
2519 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2520
2521 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2522 __syscall_rt_sigaction.
2523 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2524 (kernel_sigaction): Use Linux generic defintion.
2525 (STUB): Define.
2526 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2527 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2528 (__syscall_rt_sigaction): Remove implementation.
2529 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2530 hidden.
2531 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2532 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2533 INTERNAL_SYSCALL): Remove definitions.
2534 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2535 action and signal set size.
2536 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2537 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2538
2539 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2540 James Clarke <jrtc27@jrtc27.com>
2541
2542 [BZ #23967]
2543 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2544 Define if SA_RESTORER is defined.
2545 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2546 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2547 already defined.
2548 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2549 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2550 definitions.
2551 (HAS_SA_RESTORER): Define.
2552 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2553 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2554 (HAS_SA_RESTORER): Define.
2555 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2556 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2557 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2558 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2559 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2560
2561 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2562
2563 * sysdeps/unix/sysv/linux/kernel-features.h
2564 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2565 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2566 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2567 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2568 (__ASSUME_ST_INO_64_BIT): Likewise.
2569 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2570 <kernel-features.h>.
2571 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2572 Remove conditional code.
2573 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2574 <kernel-features.h>.
2575 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2576 Remove conditional code.
2577 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2578 <kernel-features.h>.
2579 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2580 Remove conditional code.
2581 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2582 <kernel-features.h>.
2583 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2584 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2585
2586 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2587
2588 * sysdeps/s390/multiarch/ifunc-resolve.h
2589 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2590 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2591 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2592 Delete macro definition.
2593 (s390_libc_ifunc_init): Rename to
2594 s390_libc_ifunc_expr_stfle_init.
2595 * sysdeps/s390/bzero: Use
2596 s390_libc_ifunc_expr_stfle_init instead of
2597 s390_libc_ifunc_init.
2598 * sysdeps/s390/memcmp.c: Likewise.
2599 * sysdeps/s390/memcpy.c: Likewise.
2600 * sysdeps/s390/mempcpy.c: Likewise.
2601 * sysdeps/s390/memset.c: Likewise.
2602
2603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2604
2605 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2606 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2607
2608 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2609
2610 * sysdeps/s390/multiarch/Makefile
2611 (sysdep_routines): Remove wmemcmp variants.
2612 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2613 * sysdeps/s390/multiarch/ifunc-impl-list.c
2614 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2615 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2616 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2617 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2618 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2619 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2620 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2621 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2622
2623 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2624
2625 * sysdeps/s390/multiarch/Makefile
2626 (sysdep_routines): Remove wmemset variants.
2627 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2628 * sysdeps/s390/multiarch/ifunc-impl-list.c
2629 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2630 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2631 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2632 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2633 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2634 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2635 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2636 * sysdeps/s390/ifunc-wmemset.h: New file.
2637
2638 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2639
2640 * sysdeps/s390/multiarch/Makefile
2641 (sysdep_routines): Remove wmemchr variants.
2642 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2643 * sysdeps/s390/multiarch/ifunc-impl-list.c
2644 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2645 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2646 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2647 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2648 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2649 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2650 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2651 * sysdeps/s390/ifunc-wmemchr.h: New file.
2652
2653 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2654
2655 * sysdeps/s390/multiarch/Makefile
2656 (sysdep_routines): Remove wcscspn variants.
2657 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2658 * sysdeps/s390/multiarch/ifunc-impl-list.c
2659 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2660 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2661 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2662 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2663 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2664 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2665 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2666 * sysdeps/s390/ifunc-wcscspn.h: New file.
2667
2668 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2669
2670 * sysdeps/s390/multiarch/Makefile
2671 (sysdep_routines): Remove wcspbrk variants.
2672 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2673 * sysdeps/s390/multiarch/ifunc-impl-list.c
2674 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2675 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2676 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2677 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2678 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2679 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2680 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2681 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2682
2683 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2684
2685 * sysdeps/s390/multiarch/Makefile
2686 (sysdep_routines): Remove wcsspn variants.
2687 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2688 * sysdeps/s390/multiarch/ifunc-impl-list.c
2689 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2690 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2691 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2692 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2693 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2694 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2695 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2696 * sysdeps/s390/ifunc-wcsspn.h: New file.
2697
2698 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2699
2700 * sysdeps/s390/multiarch/Makefile
2701 (sysdep_routines): Remove wcsrchr variants.
2702 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2703 * sysdeps/s390/multiarch/ifunc-impl-list.c
2704 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2705 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2706 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2707 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2708 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2709 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2710 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2711 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2712
2713 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2714
2715 * sysdeps/s390/multiarch/Makefile
2716 (sysdep_routines): Remove wcschrnul variants.
2717 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2718 * sysdeps/s390/multiarch/ifunc-impl-list.c
2719 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2720 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2721 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2722 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2723 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2724 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2725 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2726 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2727
2728 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2729
2730 * sysdeps/s390/multiarch/Makefile
2731 (sysdep_routines): Remove wcschr variants.
2732 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2733 * sysdeps/s390/multiarch/ifunc-impl-list.c
2734 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2735 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2736 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2737 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2738 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2739 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2740 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2741 * sysdeps/s390/ifunc-wcschr.h: New file.
2742
2743 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2744
2745 * sysdeps/s390/multiarch/Makefile
2746 (sysdep_routines): Remove wcsncmp variants.
2747 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2748 * sysdeps/s390/multiarch/ifunc-impl-list.c
2749 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2750 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2751 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2752 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2753 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2754 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2755 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2756 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2757
2758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2759
2760 * sysdeps/s390/multiarch/Makefile
2761 (sysdep_routines): Remove wcscmp variants.
2762 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2763 * sysdeps/s390/multiarch/ifunc-impl-list.c
2764 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2765 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2766 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2768 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2769 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2770 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2771 * sysdeps/s390/ifunc-wcscmp.h: New file.
2772
2773 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2774
2775 * sysdeps/s390/multiarch/Makefile
2776 (sysdep_routines): Remove wcsncat variants.
2777 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2778 * sysdeps/s390/multiarch/ifunc-impl-list.c
2779 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2780 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2781 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2782 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2783 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2784 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2785 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2786 * sysdeps/s390/ifunc-wcsncat.h: New file.
2787
2788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2789
2790 * sysdeps/s390/multiarch/Makefile
2791 (sysdep_routines): Remove wcscat variants.
2792 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2793 * sysdeps/s390/multiarch/ifunc-impl-list.c
2794 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2795 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2796 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2797 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2798 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2799 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2800 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2801 * sysdeps/s390/ifunc-wcscat.h: New file.
2802
2803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2804
2805 * sysdeps/s390/multiarch/Makefile
2806 (sysdep_routines): Remove wcpncpy variants.
2807 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2808 * sysdeps/s390/multiarch/ifunc-impl-list.c
2809 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2810 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2811 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2812 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2813 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2814 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2815 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2816 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2817
2818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2819
2820 * sysdeps/s390/multiarch/Makefile
2821 (sysdep_routines): Remove wcsncpy variants.
2822 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2823 * sysdeps/s390/multiarch/ifunc-impl-list.c
2824 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2825 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2826 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2827 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2828 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2829 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2830 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2831 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2832
2833 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2834
2835 * sysdeps/s390/multiarch/Makefile
2836 (sysdep_routines): Remove wcpcpy variants.
2837 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2838 * sysdeps/s390/multiarch/ifunc-impl-list.c
2839 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2840 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2841 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2842 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2843 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2844 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2845 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2846 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2847
2848 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2849
2850 * sysdeps/s390/multiarch/Makefile
2851 (sysdep_routines): Remove wcscpy variants.
2852 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2853 * sysdeps/s390/multiarch/ifunc-impl-list.c
2854 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2855 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2856 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2857 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2858 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2859 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2860 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2861 * sysdeps/s390/ifunc-wcscpy.h: New file.
2862
2863 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2864
2865 * sysdeps/s390/multiarch/Makefile
2866 (sysdep_routines): Remove wcsnlen variants.
2867 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2868 * sysdeps/s390/multiarch/ifunc-impl-list.c
2869 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2870 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2871 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2872 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2873 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2874 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2875 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2876 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2877
2878 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2879
2880 * sysdeps/s390/multiarch/Makefile
2881 (sysdep_routines): Remove wcslen variants.
2882 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2883 * sysdeps/s390/multiarch/ifunc-impl-list.c
2884 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2885 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2886 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2887 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2888 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2889 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2890 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2891 * sysdeps/s390/ifunc-wcslen.h: New file.
2892
2893 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2894
2895 * sysdeps/s390/multiarch/Makefile
2896 (sysdep_routines): Remove memrchr variants.
2897 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2898 * sysdeps/s390/multiarch/ifunc-impl-list.c
2899 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2900 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2901 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2902 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2903 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2904 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2905 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2906 * sysdeps/s390/ifunc-memrchr.h: New file.
2907
2908 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2909
2910 * sysdeps/s390/multiarch/Makefile
2911 (sysdep_routines): Remove memccpy variants.
2912 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2913 * sysdeps/s390/multiarch/ifunc-impl-list.c
2914 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2915 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2916 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2917 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2918 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2919 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2920 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2921 * sysdeps/s390/ifunc-memccpy.h: New file.
2922
2923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2924
2925 * sysdeps/s390/multiarch/Makefile
2926 (sysdep_routines): Remove rawmemchr variants.
2927 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2928 * sysdeps/s390/multiarch/ifunc-impl-list.c
2929 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2930 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2931 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2932 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2933 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2934 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2935 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2936 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2937
2938 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2939
2940 * sysdeps/s390/multiarch/Makefile
2941 (sysdep_routines): Remove memchr variants.
2942 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2943 * sysdeps/s390/multiarch/ifunc-impl-list.c
2944 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2945 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2946 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2947 * sysdeps/s390/multiarch/memchr.c: Move to ...
2948 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2949 * sysdeps/s390/ifunc-memchr.h: New file.
2950 * sysdeps/s390/s390-64/memchr.S: Move to ...
2951 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2952 for 31/64bit and ifunc handling.
2953 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2954 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2955 * sysdeps/s390/s390-32/memchr.S: Likewise.
2956
2957 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2958
2959 * sysdeps/s390/multiarch/Makefile
2960 (sysdep_routines): Remove strcspn variants.
2961 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2964 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2965 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2966 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2967 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2968 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2969 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2970 * sysdeps/s390/ifunc-strcspn.h: New file.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/multiarch/Makefile
2975 (sysdep_routines): Remove strpbrk variants.
2976 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2977 * sysdeps/s390/multiarch/ifunc-impl-list.c
2978 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2979 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2980 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2981 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2982 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2983 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2984 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2985 * sysdeps/s390/ifunc-strpbrk.h: New file.
2986
2987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * sysdeps/s390/multiarch/Makefile
2990 (sysdep_routines): Remove strspn variants.
2991 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2992 * sysdeps/s390/multiarch/ifunc-impl-list.c
2993 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2994 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2995 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2996 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2997 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2998 * sysdeps/s390/multiarch/strspn.c: Move to ...
2999 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3000 * sysdeps/s390/ifunc-strspn.h: New file.
3001
3002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3003
3004 * sysdeps/s390/multiarch/Makefile
3005 (sysdep_routines): Remove strrchr variants.
3006 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3007 * sysdeps/s390/multiarch/ifunc-impl-list.c
3008 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3009 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3010 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3011 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3012 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3013 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3014 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3015 * sysdeps/s390/ifunc-strrchr.h: New file.
3016
3017 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3018
3019 * sysdeps/s390/multiarch/Makefile
3020 (sysdep_routines): Remove strchrnul variants.
3021 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3022 * sysdeps/s390/multiarch/ifunc-impl-list.c
3023 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3024 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3025 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3026 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3027 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3028 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3029 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3030 * sysdeps/s390/ifunc-strchrnul.h: New file.
3031
3032 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3033
3034 * sysdeps/s390/multiarch/Makefile
3035 (sysdep_routines): Remove strchr variants.
3036 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3037 * sysdeps/s390/multiarch/ifunc-impl-list.c
3038 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3039 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3040 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3041 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3042 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3043 * sysdeps/s390/multiarch/strchr.c: Move to ...
3044 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3045 * sysdeps/s390/ifunc-strchr.h: New file.
3046
3047 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3048
3049 * sysdeps/s390/multiarch/Makefile
3050 (sysdep_routines): Remove strncmp variants.
3051 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3052 * sysdeps/s390/multiarch/ifunc-impl-list.c
3053 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3054 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3055 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3056 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3057 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3058 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3059 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3060 * sysdeps/s390/ifunc-strncmp.h: New file.
3061
3062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3063
3064 * sysdeps/s390/multiarch/Makefile
3065 (sysdep_routines): Remove strcmp variants.
3066 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3067 * sysdeps/s390/multiarch/ifunc-impl-list.c
3068 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3069 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3070 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3071 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3072 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3073 * sysdeps/s390/ifunc-strcmp.h: New file.
3074 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3075 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3076 for 31/64bit and ifunc handling.
3077 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3078 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3079 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3080
3081 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3082
3083 * sysdeps/s390/multiarch/Makefile
3084 (sysdep_routines): Remove strncat variants.
3085 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3086 * sysdeps/s390/multiarch/ifunc-impl-list.c
3087 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3088 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3089 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3090 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3091 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3092 * sysdeps/s390/multiarch/strncat.c: Move to ...
3093 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3094 * sysdeps/s390/ifunc-strncat.h: New file.
3095
3096 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3097
3098 * sysdeps/s390/multiarch/Makefile
3099 (sysdep_routines): Remove strcat variants.
3100 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3101 * sysdeps/s390/multiarch/ifunc-impl-list.c
3102 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3103 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3104 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3105 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3106 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3107 * sysdeps/s390/multiarch/strcat.c: Move to ...
3108 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3109 * sysdeps/s390/ifunc-strcat.h: New file.
3110
3111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3112
3113 * sysdeps/s390/multiarch/Makefile
3114 (sysdep_routines): Remove stpncpy variants.
3115 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3116 * sysdeps/s390/multiarch/ifunc-impl-list.c
3117 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3118 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3119 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3120 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3121 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3122 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3123 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3124 * sysdeps/s390/ifunc-stpncpy.h: New file.
3125
3126 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3127
3128 * sysdeps/s390/multiarch/Makefile
3129 (sysdep_routines): Remove strncpy variants.
3130 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3131 * sysdeps/s390/multiarch/ifunc-impl-list.c
3132 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3133 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3134 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3135 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3136 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3137 * sysdeps/s390/ifunc-strncpy.h: New file.
3138 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3139 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3140 and adjust ifunc handling.
3141 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3142 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3143 and adjust ifunc handling.
3144 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3145 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3146
3147 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3148
3149 * sysdeps/s390/multiarch/Makefile
3150 (sysdep_routines): Remove stpcpy variants.
3151 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3152 * sysdeps/s390/multiarch/ifunc-impl-list.c
3153 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3154 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3155 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3156 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3157 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3158 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3159 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3160 * sysdeps/s390/ifunc-stpcpy.h: New file.
3161
3162 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3163
3164 * sysdeps/s390/multiarch/Makefile
3165 (sysdep_routines): Remove strcpy variants.
3166 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3167 * sysdeps/s390/multiarch/ifunc-impl-list.c
3168 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3169 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3170 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3171 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3172 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3173 * sysdeps/s390/ifunc-strcpy.h: New file.
3174 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3175 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3176 for 31/64bit and ifunc handling.
3177 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3178 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3179 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3180
3181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3182
3183 * sysdeps/s390/multiarch/Makefile
3184 (sysdep_routines): Remove strnlen variants.
3185 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3186 * sysdeps/s390/multiarch/ifunc-impl-list.c
3187 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3188 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3189 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3190 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3191 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3192 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3193 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3194 * sysdeps/s390/ifunc-strnlen.h: New file.
3195
3196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3197
3198 * sysdeps/s390/multiarch/Makefile
3199 (sysdep_routines): Remove strlen variants.
3200 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3201 * sysdeps/s390/multiarch/ifunc-impl-list.c
3202 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3203 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3204 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3205 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3206 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3207 * sysdeps/s390/multiarch/strlen.c: Move to ...
3208 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3209 * sysdeps/s390/ifunc-strlen.h: New file.
3210
3211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3212
3213 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3214 * sysdeps/s390/multiarch/ifunc-impl-list.c
3215 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3216 * sysdeps/s390/ifunc-memmem.h: New file.
3217 * sysdeps/s390/memmem.c: Likewise.
3218 * sysdeps/s390/memmem-c.c: Likewise.
3219 * sysdeps/s390/memmem-vx.c: Likewise.
3220
3221 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3222
3223 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3224 * sysdeps/s390/multiarch/ifunc-impl-list.c
3225 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3226 * sysdeps/s390/ifunc-strstr.h: New file.
3227 * sysdeps/s390/strstr.c: Likewise.
3228 * sysdeps/s390/strstr-c.c: Likewise.
3229 * sysdeps/s390/strstr-vx.c: Likewise.
3230
3231 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3232
3233 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3234 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3235 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3236 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3237 New defines.
3238 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3239 * sysdeps/s390/memmove-c.c: New file.
3240 * sysdeps/s390/memmove.c: Likewise.
3241 * sysdeps/s390/multiarch/ifunc-impl-list.c
3242 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3243
3244 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3245
3246 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3247 * sysdeps/s390/configure.ac: Add check for z13 support.
3248 * sysdeps/s390/configure: Regenerated.
3249
3250 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3251
3252 * sysdeps/s390/memcopy.h: New file.
3253
3254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3255
3256 * sysdeps/s390/s390-32/bcopy.S: Remove.
3257 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3258
3259 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3260
3261 * sysdeps/s390/ifunc-memcpy.h: New File.
3262 * sysdeps/s390/memcpy.S: Move to ...
3263 * sysdeps/s390/memcpy-z900.S ... here.
3264 Move implementations from memcpy-s390x.s to here.
3265 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3266 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3267 Remove memcpy/mempcpy variants.
3268 * sysdeps/s390/Makefile (sysdep_routines):
3269 Add memcpy/mempcpy variants.
3270 * sysdeps/s390/multiarch/ifunc-impl-list.c
3271 (__libc_ifunc_impl_list): Adjust ifunc variants for
3272 memcpy and mempcpy.
3273 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3274 to ...
3275 * sysdeps/s390/memcpy.c: ... here.
3276 Adjust ifunc variants for memcpy.
3277 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3278 * sysdeps/s390/mempcpy.c: ... here.
3279 Adjust ifunc variants for mempcpy.
3280 * sysdeps/s390/mempcpy.S: Delete file.
3281
3282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3283
3284 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3285 * sysdeps/s390/memcpy.S: ... here.
3286 Adjust to be usable for 31/64bit.
3287 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3288 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3289 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3290 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3291 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3292 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3293 Adjust to be usable for 31/64bit.
3294 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3295 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3296 * sysdeps/s390/multiarch/memcpy.c: ... here.
3297 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3298
3299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3300
3301 * sysdeps/s390/ifunc-memcmp.h: New File.
3302 * sysdeps/s390/memcmp.S: Move to ...
3303 * sysdeps/s390/memcmp-z900.S ... here.
3304 Move implementations from memcmp-s390x.s to here.
3305 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3306 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3307 Remove memcmp variants.
3308 * sysdeps/s390/Makefile (sysdep_routines):
3309 Add memcmp variants.
3310 * sysdeps/s390/multiarch/ifunc-impl-list.c
3311 (__libc_ifunc_impl_list): Adjust ifunc variants for
3312 memcmp.
3313 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3314 to ...
3315 * sysdeps/s390/memcmp.c: ... here.
3316 Adjust ifunc variants for memcmp.
3317
3318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3319
3320 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3321 * sysdeps/s390/memcmp.S: ... here.
3322 Adjust to be usable for 31/64bit.
3323 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3324 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3325 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3326 Remove memcmp.
3327 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3328 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3329 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3330 Adjust to be usable for 31/64bit.
3331 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3332 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3333 * sysdeps/s390/multiarch/memcmp.c: ... here.
3334 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/s390-32/bzero.S: Delete file.
3339 * sysdeps/s390/s390-64/bzero.S: Likewise.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3341 * sysdeps/s390/bzero.c: New file.
3342 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3343 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3344 * sysdeps/s390/multiarch/ifunc-impl-list.c
3345 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3346
3347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3348
3349 * sysdeps/s390/ifunc-memset.h: New File.
3350 * sysdeps/s390/memset.S: Move to ...
3351 * sysdeps/s390/memset-z900.S ... here.
3352 Move implementations from memset-s390x.s to here.
3353 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3354 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3355 Remove memset variants.
3356 * sysdeps/s390/Makefile (sysdep_routines):
3357 Add memset variants.
3358 * sysdeps/s390/multiarch/ifunc-impl-list.c
3359 (__libc_ifunc_impl_list): Adjust ifunc variants for
3360 memset.
3361 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3362 to ...
3363 * sysdeps/s390/memset.c: ... here.
3364 Adjust ifunc variants for memset.
3365
3366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3367
3368 * sysdeps/s390/s390-64/memset.S: Move to ...
3369 * sysdeps/s390/memset.S: ... here.
3370 Adjust to be usable for 31/64bit.
3371 * sysdeps/s390/s390-32/memset.S: Delete File.
3372 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3373 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3374 Remove memset.
3375 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3376 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3377 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3378 Adjust to be usable for 31/64bit.
3379 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3380 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3381 * sysdeps/s390/multiarch/memset.c: ... here.
3382 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3383
3384 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3385
3386 * sysdeps/s390/multiarch/ifunc-resolve.h
3387 (s390_libc_ifunc_init, s390_libc_ifunc,
3388 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3389
3390 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3391
3392 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3393 * sysdeps/s390/configure.ac: Add check for z10 support.
3394 * sysdeps/s390/configure: Regenerated.
3395
3396 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3397
3398 * sysdeps/i386/atomic-machine.h: Merged with ...
3399 * sysdeps/x86_64/atomic-machine.h: To ...
3400 * sysdeps/x86/atomic-machine.h: This. New file.
3401
3402 2018-12-18 Florian Weimer <fweimer@redhat.com>
3403
3404 Rewrite locale/gen-translit.pl in Python.
3405 * locale/Makefile (generated): Add C-translit.h.
3406 (before-compile): Add $(objpfx)C-translit.h.
3407 (C-translit.h): Move to $(objpfx). Create target directory.
3408 Build using Python script.
3409 * locale/gen-translit.py: New file.
3410 * locale/gen-translit.pl: Remove file.
3411 * locale/C-translit.h.in: Change comment character to '#' for
3412 easier parsing without a C preprocessor.
3413 * locale/C-translit.h: Remove generated file.
3414 * manual/install.texi (Tools for Compilation): Do not mention
3415 C-translit.h.
3416 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3417 Remove locale/C-translit.h.
3418 * scripts/update-copyrights: Likewise.
3419 * INSTALL: Regenerate.
3420
3421 2018-12-18 Florian Weimer <fweimer@redhat.com>
3422
3423 [BZ #23995]
3424 * localedata/locales/bi_VU: Remove executable bit from file.
3425
3426 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3427
3428 * include/time.h
3429 (__localtime64): Add.
3430 * manual/maint.texi: Document Y2038 symbol handling.
3431 * time/localtime.c
3432 (__localtime64): Add.
3433 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3434
3435 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3436
3437 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3438 Do not clobber r12.
3439
3440 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3441 to allow extra macros from first or second sources.
3442 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3443 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3444 (tests-special): Add $(objpfx)tst-mman-consts.out.
3445 ($(objpfx)tst-mman-consts.out): New makefile target.
3446
3447 2018-12-17 Mao Han <han_mao@c-sky.com>
3448
3449 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3450 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3451 without stat64 system call support.
3452 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3453 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3454 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3455 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3456 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3457 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3458 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3459 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3460 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3461 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3462 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3463
3464 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3465
3466 regex: fix storage-exhaustion error
3467 [BZ #18040]
3468 * posix/regexec.c (get_subexp):
3469 Do not continue if storage is exhausted.
3470
3471 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3472
3473 regex: fix heap-use-after-free error
3474 [BZ #18040]
3475 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3476 https://debbugs.gnu.org/32592
3477 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3478 call extend_buffers which reallocates the re_string_t internal buffer.
3479 Local variable 'buf' was not updated in such case, resulting in
3480 use-after-free.
3481 * posix/regexec.c (get_subexp): Update 'buf' after call to
3482 get_subexp_sub.
3483
3484 2018-12-15 Florian Weimer <fweimer@redhat.com>
3485
3486 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3487 (minimum_stride_size): Use it.
3488 (support_blob_repeat_allocate): Likewise.
3489
3490 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3491
3492 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3493 definition.
3494 (acosh): Likewise.
3495 (atanh): Likewise.
3496
3497 2018-12-14 Florian Weimer <fweimer@redhat.com>
3498
3499 * manual/process.texi (Process Creation Concepts): Remove
3500 documentation of process (ID) lifetime. List more process
3501 creation functions. Reference Process Identification section.
3502 (Process Identification): Add information about process ID
3503 lifetime. Describe Linux thread/task IDs.
3504 * manual/signal.texi (Signaling Another Process): Mention that the
3505 signal is always sent to the process.
3506
3507 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3508
3509 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3510 and tst-ldbl-efgcvt.
3511 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3512 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3513 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3514 (fcvt_tests, output_error, output_r_error, do_test): Use the
3515 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3516 select the type of floating-point variables and arguments; to
3517 produce extra tests for double and conversion specifiers for
3518 printf; and to set the names of called functions.
3519 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3520 in tst-efgcvt-template.c.
3521 * misc/tst-ldbl-efgcvt.c: Likewise.
3522
3523 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3524
3525 * nss/Makefile (tst-nss-test3.out): New rule.
3526
3527 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3528
3529 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3530 clobber sp.
3531
3532 2018-12-13 fanjinke <fanjinke@hygon.cn>
3533
3534 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3535 "HygonGenuine".
3536
3537 2018-12-13 Andreas Schwab <schwab@suse.de>
3538
3539 [BZ #23861]
3540 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3541 (__pthread_rwlock_rdlock_full): Update expected value for
3542 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3543 * nptl/tst-rwlock-pwn.c: New file.
3544 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3545
3546 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3547
3548 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3549 definition.
3550
3551 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3552
3553 * benchtests/scripts/compare_bench.py (do_compare): write to
3554 stderr in casestat is not present.
3555 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3556 stderr in case timings field is not present. Also string showing
3557 the output filename goes into the stderr.
3558
3559 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3560
3561 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3562 and ZeroDivisorError exceptions.
3563 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3564 argument to loop through user provided statistics.
3565 * benchtests/scripts/compare_bench.py (main): Include the --stats
3566 argument.
3567
3568 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3569
3570 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3571 instead of return.
3572
3573 2018-12-12 Florian Weimer <fweimer@redhat.com>
3574
3575 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3576 clause to copyright header.
3577
3578 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3579
3580 [BZ #23614]
3581 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3582 registers saved in the stack frame.
3583 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3584 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3585
3586 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3587
3588 * include/bits/monetary-ldbl.h: New file.
3589 * include/bits/printf-ldbl.h: Likewise.
3590 * include/bits/stdio-ldbl.h: Likewise.
3591 * include/bits/stdlib-ldbl.h: Likewise.
3592 * include/bits/syslog-ldbl.h: Likewise.
3593 * include/bits/wchar-ldbl.h: Likewise.
3594
3595 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3596
3597 * libio/libio.h: Remove redirection for _IO_vfprintf.
3598
3599 2018-12-11 Andreas Schwab <schwab@suse.de>
3600
3601 * Makerules: Remove all references to abilist-pattern.
3602 (update-all-abi): Simplify find expression.
3603
3604 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3605
3606 [BZ #23961]
3607 * math/auto-libm-test-in: Add new test case.
3608 * math/auto-libm-test-out-pow: Regenerated.
3609 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3610
3611 2018-12-10 DJ Delorie <dj@redhat.com>
3612
3613 [BZ #23948]
3614 * support/test-container.c: Move postclean step to before we
3615 change namespaces.
3616
3617 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3618
3619 * scripts/gen-as-const.py (main): Handle --python option.
3620 * scripts/gen-py-const.awk: Remove.
3621 * Makerules (py-const-script): Use gen-as-const.py.
3622 ($(py-const)): Likewise.
3623 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3624 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3625 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3626 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3627 ~PTHREAD_MUTEX_NO_ELISION_NP.
3628 * manual/README.pretty-printers: Update reference to
3629 gen-py-const.awk.
3630
3631 * scripts/glibcextract.py: New file.
3632 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3633 or tempfile. Import glibcexctract.
3634 (compute_c_consts): Remove. Moved to glibcextract.py.
3635 (gen_test): Update reference to compute_c_consts.
3636 (main): Likewise.
3637 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3638 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3639 * sysdeps/unix/sysv/linux/Makefile
3640 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3641 Redirect stderr as well as stdout.
3642
3643 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3644
3645 [BZ #19767]
3646 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3647 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3648 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3649 ALWAYS_USE_VSYSCALL.
3650 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3651 ALWAYS_USE_VSYSCALL.
3652 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3653 ALWAYS_USE_VSYSCALL.
3654
3655 2018-12-10 Florian Weimer <fweimer@redhat.com>
3656
3657 [BZ #23972]
3658 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3659 offset instead of count for clarity. Fix typo in comment.
3660 (__old_getdents64): Keep track of previous offset. Use it to call
3661 handle_overflow.
3662 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3663 that d_off is never zero.
3664
3665 2018-12-10 Andreas Schwab <schwab@suse.de>
3666
3667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3668 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3670 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3671 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3672
3673 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3674
3675 * timezone/private.h: Update from tzcode 2018g.
3676 * timezone/tzfile.h: Likewise.
3677 * timezone/tzselect.ksh: Likewise.
3678 * timezone/zdump.c: Likewise.
3679 * timezone/zic.c: Likewise.
3680
3681 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3682
3683 [BZ #23490]
3684 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3685 (do_test): Adjust buffer size and fix format.
3686
3687 2018-12-07 DJ Delorie <dj@redhat.com>
3688
3689 [BZ #23907]
3690 * malloc/tst-tcfree3.c: New.
3691 * malloc/Makefile: Add it.
3692
3693 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3694
3695 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3696
3697 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3698
3699 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3700 used as a mask for the mode argument of __vfscanf_internal and
3701 __vfwscanf_internal.
3702 * stdio-common/vfscanf-internal.c
3703 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3704 (__strtof128_internal): Define to __wcstof128_internal.
3705 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3706 __strtof128_internal or __wcstof128_internal when the format of
3707 long double is the same as _Float128.
3708
3709 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3710
3711 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3712 * posix/confstr.c (confstr): Rename to __confstr.
3713 (__confstr): Add hidden def.
3714 (confstr): Add weak alias for __confstr.
3715 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3716 confstr.
3717
3718 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3719
3720 * NEWS: Mention getcpu.
3721 * include/sched.h (__getcpu): New libc_hidden_proto.
3722 * manual/resource.texi: Document getcpu.
3723 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3724 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3725 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3726 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3727 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3728 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3729 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3730 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3731 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3732 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3733 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3734 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3735 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3736 Likewise.
3737 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3738 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3739 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3741 Likewise.
3742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3743 Likewise.
3744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3745 Likewise.
3746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3747 Likewise.
3748 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3749 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3750 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3751 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3752 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3753 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3754 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3755 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3756 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3757 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3758 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3759 Also check getcpu.
3760
3761 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3762
3763 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3764 functions.
3765 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3766
3767 2018-12-07 Florian Weimer <fweimer@redhat.com>
3768
3769 [BZ #17405]
3770 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3771 * posix/Versions (GLIBC_2.29): Export
3772 posix_spawn_file_actions_addfchdir_np.
3773 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3774 * posix/spawn_faction_destroy.c
3775 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3776 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3777 and the field action.fchdir_action.
3778 * posix/tst-spawn-chdir.c (add_chdir): New function.
3779 (do_test): Add do_fchdir loop. Call add_chdir.
3780 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3781 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3782 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3783 posix_spawn_file_actions_addfchdir_np.
3784 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3785 Likewise.
3786 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3787 Likewise.
3788 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3789 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3790 Likewise.
3791 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3792 Likewise.
3793 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3794 Likewise.
3795 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3796 Likewise.
3797 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3798 Likewise.
3799 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3800 Likewise.
3801 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3802 (GLIBC_2.29): Likewise.
3803 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3804 (GLIBC_2.29): Likewise.
3805 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3806 (GLIBC_2.29): Likewise.
3807 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3808 (GLIBC_2.29): Likewise.
3809 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3810 Likewise.
3811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3812 (GLIBC_2.29): Likewise.
3813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3814 (GLIBC_2.29): Likewise.
3815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3816 (GLIBC_2.29): Likewise.
3817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3818 (GLIBC_2.29): Likewise.
3819 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3820 Likewise.
3821 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3822 Likewise.
3823 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3824 Likewise.
3825 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3826 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3827 Likewise.
3828 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3829 Likewise.
3830 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3831 Likewise.
3832 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3833 Likewise.
3834
3835 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3836
3837 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3838 trailing whitespace removed.
3839 * scripts/config.guess: Update to version 2018-11-28.
3840 * scripts/config.sub: Update to version 2018-11-28.
3841 * scripts/install-sh: Update to version 2018-03-11.20.
3842 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3843 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3844
3845 2018-12-07 Florian Weimer <fweimer@redhat.com>
3846
3847 [BZ #23927]
3848 CVE-2018-19591
3849 * inet/tst-if_index-long.c: New file.
3850 * inet/Makefile (tests): Add tst-if_index-long.
3851
3852 2018-12-07 Florian Weimer <fweimer@redhat.com>
3853
3854 * support/check.h (support_record_failure_is_failed): Declare.
3855 * support/descriptors.h: New file.
3856 * support/support_descriptors.c: Likewise.
3857 * support/tst-support_descriptors.c: Likewise.
3858 * support/support_record_failure.c
3859 (support_record_failure_is_failed): New function.
3860 * support/Makefile (libsupport-routines): Add support_descriptors.
3861 (tests): Add tst-support_descriptors.
3862
3863 2018-12-05 Zack Weinberg <zackw@panix.com>
3864 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3865
3866 * stdio-common/vfprintf-internal.c
3867 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3868 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3869 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3870 and __no_long_double.
3871 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3872 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3873 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3874 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3875 and __nldbl_*syslog* functions.
3876 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3877 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3878 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3879 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3880 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3881 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3882 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3883 (__nldbl_vwprintf, __nldbl_wprintf):
3884 Directly call the appropriate __v*printf_internal routine, passing
3885 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3886 variable names.
3887 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3888 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3889 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3890 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3891 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3892 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3893 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3894 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3895 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3896 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3897 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3898 (__nldbl_syslog, __nldbl_vsyslog):
3899 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3900 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3901 appropriate.
3902 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3903 appropriate.
3904
3905 2018-12-05 Zack Weinberg <zackw@panix.com>
3906 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3907
3908 [BZ #11319]
3909 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3910 Moved here from debug/vsprintf_chk.c.
3911 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3912 and completion logic for the strfile to match exactly what
3913 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3914 _IO_str_init_static_internal instead of maxlen-1.
3915 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3916 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3917 __vsprintf_internal.
3918
3919 * debug/vsprintf_chk.c (__vsprintf_chk)
3920 * debug/sprintf_chk.c (__sprintf_chk):
3921 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3922 'flags' argument is positive, and slen as maxlen. No need to lock
3923 the FILE and/or construct a temporary FILE. Minimize and normalize
3924 header inclusions and variable names. Do not libc_hidden_def anything.
3925
3926 * debug/asprintf_chk.c (__asprintf_chk)
3927 * debug/dprintf_chk.c (__dprintf_chk)
3928 * debug/fprintf_chk.c (__fprintf_chk)
3929 * debug/fwprintf_chk.c (__fwprintf_chk)
3930 * debug/printf_chk.c (__printf_chk)
3931 * debug/snprintf_chk.c (__snprintf_chk)
3932 * debug/swprintf_chk.c (__swprintf_chk)
3933 * debug/vasprintf_chk.c (__vasprintf_chk)
3934 * debug/vdprintf_chk.c (__vdprintf_chk)
3935 * debug/vfprintf_chk.c (__vfprintf_chk)
3936 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3937 * debug/vprintf_chk.c (__vprintf_chk)
3938 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3939 * debug/vswprintf_chk.c (__vswprintf_chk)
3940 * debug/vwprintf_chk.c (__vwprintf_chk)
3941 * debug/wprintf_chk.c (__wprintf_chk):
3942 Directly call the corresponding vxxprintf_internal function, passing
3943 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3944 the FILE and/or construct a temporary FILE. Minimize and normalize
3945 header inclusions and variable names. Do not libc_hidden_def anything.
3946
3947 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3948 __obstack_vprintf_internal.
3949 (__obstack_vprintf_chk): Convert into a wrapper that calls
3950 __obstack_vprintf_internal (these two functions already had the
3951 same code) and move to new file...
3952 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3953 file.
3954 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3955 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3956 * debug/Makefile (routines): Add vobprintf_chk.
3957
3958 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3959 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3960 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3961 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3962 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3963 (__nldbl___obstack_vfprintf_chk):
3964 Directly call the corresponding vxxprintf_internal function,
3965 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3966 duplicate comparison of slen with 0 or maxlen from the corresponding
3967 non-__nldbl function.
3968
3969 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3970 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3971 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3972 Remove libc_hidden_proto.
3973
3974 * stdio-common/vfprintf-internal.c
3975 (__vfprintf_internal, __vfwprintf_internal):
3976 Do not check _IO_FLAGS2_FORTIFY.
3977 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3978 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3979 a comment explaining why it has the maxlen argument.
3980 (_IO_acquire_lock_clear_flags2_fct): Remove.
3981 (_IO_acquire_lock_clear_flags2): Remove.
3982 (_IO_release_lock): Remove conditional statement which will
3983 now never execute.
3984 (_IO_acquire_lock): Remove variable which is now unused.
3985 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3986 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3987
3988 * stdio-common/Makefile (tests): Add tst-bz11319 and
3989 tst-bz11319-fortify2.
3990 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3991 * stdio-common/tst-bz11319-fortify2.c: New file.
3992 * stdio-common/tst-bz11319.c: Likewise.
3993
3994 2018-12-05 Zack Weinberg <zackw@panix.com>
3995 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3996
3997 * misc/syslog.c: Include libioP.h, not iolibio.h.
3998 (__vsyslog_internal): New function with the former body of
3999 __vsyslog_chk; takes mode_flags argument same as
4000 __v*printf_internal. Call __vfprintf_internal directly.
4001
4002 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4003 Remove libc_hidden_def.
4004 (__syslog, __syslog_chk): Use __vsyslog_internal.
4005 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4006
4007 * include/sys/syslog.h: Add multiple inclusion guard.
4008 Add prototype for __vsyslog_internal.
4009 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4010
4011 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4012 Use __vsyslog_internal.
4013
4014 2018-12-05 Zack Weinberg <zackw@panix.com>
4015 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4016
4017 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4018 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4019 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4020 New functions.
4021 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4022 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4023
4024 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4025 Include wctype.h here if COMPILE_WPRINTF is defined.
4026 Define __vfprintf_internal or __vfwprintf_internal, depending
4027 on COMPILE_WPRINTF.
4028 Temporarily, on entry to this function, update mode_flags
4029 according to the environmental settings corresponding to
4030 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4031 Throughout, check mode_flags instead of __ldbl_is_dbl and
4032 _IO_FLAGS2_FORTIFY on the destination FILE.
4033 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4034 Include vfprintf-internal.c. Don't include wctype.h.
4035 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4036 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4037 and vfprintf.
4038 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4039 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4040 and vfwprintf.
4041 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4042
4043 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4044 and add mode_flags argument; use __vfprintf_internal.
4045 (__vdprintf): New function. Alias vdprintf to this.
4046 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4047 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4048 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4049 (__obstack_printf): Use __obstack_printf_internal.
4050 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4051 public aliases __vsnprintf and vsnprintf.
4052 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4053 called internally.
4054 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4055 public aliases _IO_vsprintf and vsprintf.
4056 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4057 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4058 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4059 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4060 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4061
4062 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4063 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4064 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4065 * stdio-common/printf.c: Use __vfprintf_internal.
4066
4067 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4068 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4069 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4070
4071 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4072 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4073 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4074 __vfwprintf_internal.
4075
4076 * libio/libio.h: Remove libc_hidden_proto and declaration for
4077 _IO_vfprintf.
4078 Remove declaration of _IO_vfwprintf.
4079 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4080 _IO_vsprintf.
4081 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4082 _IO_obstack_printf.
4083 * include/stdio.h: Add prototype for __vasprintf.
4084 (__vsnprintf): Remove declaration, because there are no more
4085 internal calls.
4086 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4087 declaration, because there are no more internal calls.
4088
4089 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4090 __vsnprintf_internal, instead of _IO_vsnprintf.
4091 * argp/argp-help.c (__argp_error, __argp_failure): Use
4092 __vasprintf_internal, instead of _IO_vasprintf.
4093 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4094 redefine, because there are no more internal calls.
4095
4096 2018-12-05 Zack Weinberg <zackw@panix.com>
4097 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4098
4099 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4100 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4101 Include libio/strfile.h instead of libioP.h.
4102 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4103 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4104 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4105 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4106 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4107 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4108 necessary. Do not set __no_long_double. Normalize variable names.
4109 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4110 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4111 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4112 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4113 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4114 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4115 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4116 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4117 Do not set __no_long_double. Normalize variable names.
4118
4119 2018-12-05 Zack Weinberg <zackw@panix.com>
4120 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4121
4122 * stdio-common/isoc99_scanf.c
4123 * stdio-common/isoc99_fscanf.c
4124 * stdio-common/isoc99_sscanf.c
4125 * stdio-common/isoc99_vscanf.c
4126 * stdio-common/isoc99_vfscanf.c
4127 * stdio-common/isoc99_vsscanf.c
4128 * wcsmbs/isoc99_wscanf.c
4129 * wcsmbs/isoc99_fwscanf.c
4130 * wcsmbs/isoc99_swscanf.c
4131 * wcsmbs/isoc99_vwscanf.c
4132 * wcsmbs/isoc99_vfwscanf.c
4133 * wcsmbs/isoc99_vswscanf.c:
4134 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4135 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4136 No need to lock and unlock the FILE passed to that function.
4137
4138 * stdio-common/vfscanf-internal.c
4139 (__vfscanf_internal, __vfwscanf_internal):
4140 Don't look at _IO_FLAGS2_SCANF_STD.
4141 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4142 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4143 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4144
4145 2018-12-05 Zack Weinberg <zackw@panix.com>
4146 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4147
4148 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4149 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4150 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4151 * libio/strfile.h: Add multiple inclusion guard.
4152 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4153
4154 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4155 consistency with the other version of this file.
4156 (ldbl_compat_symbol): New macro.
4157 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4158 New macro.
4159
4160 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4161 Define __vfscanf_internal or __vfwscanf_internal, depending on
4162 COMPILE_WSCANF; don't define any other public symbols.
4163 Remove errval and code to set errp.
4164 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4165 as the mode_flags argument.
4166 (encode_error, conv_error, input_error): Don't set errval.
4167 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4168 Include vfscanf-internal.c.
4169 * stdio-common/vfscanf.c: New file defining the public entry
4170 point vfscanf, which calls __vfscanf_internal.
4171 * stdio-common/vfwscanf.c: New file defining the public entry
4172 point vfwscanf, which calls __vfwscanf_internal.
4173
4174 * stdio-common/iovfscanf.c: New file.
4175 * stdio-common/iovfwscanf.c: Likewise.
4176
4177 * stdio-common/Makefile (routines): Add vfscanf-internal,
4178 vfwscanf-internal, iovfscanf, iovfwscanf.
4179 * stdio-common/Versions: Mention GLIBC_2.29, so that
4180 it can be used in SHLIB_COMPAT expressions.
4181 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4182 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4183 Call __vfscanf_internal, instead of _IO_vfscanf.
4184 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4185 _IO_vfscanf.
4186 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4187 _IO_vfwscanf.
4188
4189 * libio/iovsscanf.c: Clean up includes, when possible. Use
4190 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4191 __vfscanf_internal or __vfwscanf_internal directly.
4192 * libio/iovswscanf.c: Likewise.
4193 * libio/swscanf.c: Likewise.
4194 * libio/vscanf.c: Likewise.
4195 * libio/vwscanf.c: Likewise.
4196 * libio/wscanf.c: Likewise.
4197 * stdio-common/isoc99_fscanf.c: Likewise.
4198 * stdio-common/isoc99_scanf.c: Likewise.
4199 * stdio-common/isoc99_sscanf.c: Likewise.
4200 * stdio-common/isoc99_vfscanf.c: Likewise.
4201 * stdio-common/isoc99_vscanf.c: Likewise.
4202 * stdio-common/isoc99_vsscanf.c: Likewise.
4203 * stdio-common/scanf.c: Likewise.
4204 * stdio-common/sscanf.c: Likewise.
4205 * wcsmbs/isoc99_fwscanf.c: Likewise.
4206 * wcsmbs/isoc99_swscanf.c: Likewise.
4207 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4208 * wcsmbs/isoc99_vswscanf.c: Likewise.
4209 * wcsmbs/isoc99_vwscanf.c: Likewise.
4210 * wcsmbs/isoc99_wscanf.c: Likewise.
4211
4212 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4213
4214 * include/time.h
4215 (__tz_compute): Replace time_t with __time64_t.
4216 (__tz_convert): Replace time_t* with __time64_t.
4217 (__offtime): Replace time_t* with __time64_t.
4218 * time/gmtime.c
4219 (__gmtime_r): Adjust call to __tz_convert.
4220 (gmtime): Likewise.
4221 * time/localtime.c
4222 (__localtime_r): Likewise.
4223 (localtime): Likewise.
4224 * time/offtime.c: Replace time_t with __time64_t.
4225 * time/tzset.c: Likewise.
4226
4227 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4228
4229 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4230 dynamic linker unless [$(run-built-tests) = yes].
4231
4232 2018-12-03 DJ Delorie <dj@delorie.com>
4233
4234 * support/test-container.c (check_for_unshare_hints): New.
4235 (main): Call it if unshare fails. Add support for "su" scriptlet
4236 command.
4237
4238 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4239
4240 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4241 'START' to indicate that start text should be output.
4242 (gen_test): Likewise.
4243 (main): Generate 'START' for first symbol or '--' line, or at end
4244 of input if not previously generated.
4245
4246 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4247
4248 [BZ #19767]
4249 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4250 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4251 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4252 ALWAYS_USE_VSYSCALL.
4253
4254 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4255
4256 [BZ #23913]
4257 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4258 new_argv by one.
4259
4260 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4261
4262 [BZ #23923]
4263 * locale/programs/localedef.c: Declare boolean hard_links default true.
4264 (options): Add --no-hard-links option.
4265 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4266 * locale/programs/localedef.h: Declare prototype for hard_links.
4267 * locale/programs/locfile.c (write_locale_data): Don't use hard
4268 links if hard_links is false.
4269
4270 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4271
4272 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4273 cpu_features_basic.
4274 (__cache_sysconf): Likewise.
4275 (init_cacheinfo): Likewise.
4276 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4277 populate COMMON_CPUID_INDEX_80000007 and
4278 COMMON_CPUID_INDEX_80000008.
4279 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4280 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4281 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4282 (init_cpu_features): Use _Static_assert on
4283 index_arch_Fast_Unaligned_Load.
4284 __get_cpuid_registers and __get_arch_feature. Updated for
4285 cpu_features_basic. Set stepping in cpu_features.
4286 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4287 (FEATURE_INDEX_2): New.
4288 (FEATURE_INDEX_MAX): Changed to enum.
4289 (COMMON_CPUID_INDEX_D_ECX_1): New.
4290 (COMMON_CPUID_INDEX_80000007): Likewise.
4291 (COMMON_CPUID_INDEX_80000008): Likewise.
4292 (cpuid_registers): Likewise.
4293 (cpu_features_basic): Likewise.
4294 (CPU_FEATURE_USABLE): Likewise.
4295 (bit_arch_XXX_Usable): Likewise.
4296 (cpu_features): Use cpuid_registers and cpu_features_basic.
4297 (bit_arch_XXX): Reweritten.
4298 (bit_cpu_XXX): Likewise.
4299 (index_cpu_XXX): Likewise.
4300 (reg_XXX): Likewise.
4301 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4302 <support/check.h>.
4303 (CHECK_CPU_FEATURE): New.
4304 (CHECK_CPU_FEATURE_USABLE): Likewise.
4305 (cpu_kinds): Likewise.
4306 (do_test): Print vendor, family, model and stepping. Check
4307 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4308 (TEST_FUNCTION): Removed.
4309 Include <support/test-driver.c> instead of
4310 "../../test-skeleton.c".
4311 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4312 Check POPCNT instead of POPCOUNT.
4313 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4314
4315 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4316
4317 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4318 there is no element in `consts'.
4319
4320 2018-12-01 Florian Weimer <fweimer@redhat.com>
4321
4322 * support/support_capture_subprocess.c
4323 (support_capture_subprocess): Check that pipe descriptors have
4324 expected values. Close original pipe descriptors in subprocess.
4325
4326 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4327
4328 [BZ #23032]
4329 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4330 attr with __pthread_default_barrierattr.
4331 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4332 attr with __pthread_default_condattr.
4333 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4334 attr with __pthread_default_mutexattr.
4335 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4336 attr with __pthread_default_rwlockattr.
4337
4338 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4339
4340 * manual/tunables.texi (POSIX Thread Tunables): New node.
4341 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4342 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4343 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4344 __pthread_tunables_init.
4345 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4346 (max_adaptive_count): Define.
4347 * nptl/pthread_mutex_conf.c: New file.
4348 * nptl/pthread_mutex_conf.h: New file.
4349 * sysdeps/generic/adaptive_spin_count.h: New file.
4350 * sysdeps/nptl/dl-tunables.list: New file.
4351 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4352 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4353 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4354 Likewise.
4355
4356 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4357
4358 [BZ #20544]
4359 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4360 * stdlib/on_exit.c (__on_exit): Likewise.
4361 * stdlib/Makefile (tests): Add tst-bz20544.
4362 * stdlib/tst-bz20544.c: New test.
4363
4364 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4365
4366 [BZ #19767]
4367 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4368 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4369 New.
4370
4371 2018-11-30 Florian Weimer <fweimer@redhat.com>
4372
4373 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4374 Extend error logging.
4375 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4376 symbol.
4377
4378 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4379
4380 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4381 __sigismember instead of sigismember.
4382 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4383 cancel_handler): New definitions.
4384 (do_system): Use posix_spawn instead of fork and execl and remove
4385 reentracy code.
4386 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4387 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4388 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4389 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4390 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4391 * sysdeps/unix/sysv/linux/system.c: Likewise.
4392
4393 [BZ #22834]
4394 [BZ #17490]
4395 * NEWS: Add new semantic for atfork with popen and system.
4396 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4397 fork and execl.
4398
4399 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4400
4401 [BZ #23690]
4402 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4403 modification order when accessing reloc_result->addr.
4404 * include/link.h (reloc_result): Add field init.
4405 * nptl/Makefile (tests): Add tst-audit-threads.
4406 (modules-names): Add tst-audit-threads-mod1 and
4407 tst-audit-threads-mod2.
4408 Add rules to build tst-audit-threads.
4409 * nptl/tst-audit-threads-mod1.c: New file.
4410 * nptl/tst-audit-threads-mod2.c: Likewise.
4411 * nptl/tst-audit-threads.c: Likewise.
4412 * nptl/tst-audit-threads.h: Likewise.
4413
4414 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4415
4416 * scripts/gen-as-const.py: New file.
4417 * scripts/gen-as-const.awk: Remove.
4418 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4419 gen-as-const.py.
4420 ($(objpfx)test-as-const-%.c): Likewise.
4421
4422 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4423
4424 * elf/dl-exception.c: Include <_itoa.h>.
4425
4426 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4427
4428 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4429 returned by __f_setlk.
4430
4431 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4432 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4433
4434 * elf/Makefile (tests-internal): Add tst-create_format1.
4435 * elf/dl-exception.c (_dl_exception_create_format): Support
4436 %x, %lx and %zx.
4437 * elf/tst-create_format1.c: New file.
4438
4439 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4440
4441 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4442 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4443 gnulib.)
4444 * argp/argp-help.c (__argp_failure): Likewise.
4445
4446 2018-11-29 Mao Han <han_mao@c-sky.com>
4447
4448 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4449 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4450 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4451 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4452 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4453 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4454 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4455 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4456 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4457 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4458 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4459 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4460 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4461 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4462 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4463 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4464 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4465 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4466 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4467 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4468 (R_CKCORE_TLS_TPOFF32): New defines.
4469
4470 2018-11-29 Florian Weimer <fweimer@redhat.com>
4471
4472 * posix/Makefile (before-compile): Remove testcases.h and
4473 ptestcases.h.
4474 (generated): Add testcases.h and ptestcases.h.
4475 (testcases.h, ptestcases.h): Move to $(objpfx).
4476 (runtests.o): Add dependency on testcases.h.
4477 (runptests.o): Add dependency on ptestcases.h.
4478 * posix/testcases.h, posix/ptestcases.h: Remove files.
4479 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4480 not touch posix/testcases.h and posix/ptestcases.h.
4481
4482 2018-11-28 Florian Weimer <fweimer@redhat.com>
4483
4484 support: Add signal support to support_capture_subprocess_check.
4485 * support/capture_subprocess.h (support_capture_subprocess_check):
4486 Adjust comment and rename parameter.
4487 * support/support_capture_subprocess_check.c
4488 (print_actual_status): New function.
4489 (support_capture_subprocess_check): Support negative
4490 status_or_signal. Call print_actual_status.
4491 * support/tst-support_capture_subprocess.c (do_test): Call
4492 support_capture_subprocess_check.
4493 * libio/tst-vtables-common.c (termination_status)
4494 (init_termination_status): Remove.
4495 (check_for_termination): Adjust support_capture_subprocess_check
4496 call.
4497 (do_test): Remove call to init_termination_status.
4498
4499 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4500
4501 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4502 source directory instead of a copy.
4503 (CommandList.create_copy_dir): Remove.
4504
4505 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4506
4507 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4508
4509 2018-11-28 Florian Weimer <fweimer@redhat.com>
4510
4511 * support/support.h (support_quote_string): Do not use str
4512 parameter name.
4513
4514 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4515
4516 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4517 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4518
4519 2018-11-27 Florian Weimer <fweimer@redhat.com>
4520
4521 * support/support.h (support_quote_string): Declare.
4522 * support/support_quote_string.c: New file.
4523 * support/tst-support_quote_string.c: Likewise.
4524 * support/Makefile (libsupport-routines): Add
4525 support_quote_string.
4526 (tests): Add tst-support_quote_string.
4527
4528 2018-11-27 Florian Weimer <fweimer@redhat.com>
4529
4530 [BZ #23927]
4531 CVE-2018-19591
4532 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4533 descriptor leak in case of ENODEV error.
4534
4535 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4536
4537 [BZ #19767]
4538 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4539 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4540 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4541
4542 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4543
4544 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4545 Error for unknown lines.
4546
4547 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4548
4549 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4550 Touch additional files.
4551
4552 2018-11-26 Florian Weimer <fweimer@redhat.com>
4553
4554 [BZ #23907]
4555 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4556 double-frees.
4557
4558 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4559
4560 [BZ #19767]
4561 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4562 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4563 SHARED. Include sysdep.h.
4564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4565 ALWAYS_USE_VSYSCALL.
4566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4567 ALWAYS_USE_VSYSCALL.
4568
4569 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4570
4571 [BZ #19767]
4572 * nptl/Makefile (tests-static): Add tst-cond11-static.
4573 (tests): Likewise.
4574 * nptl/tst-cond11-static.c: New File.
4575 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4576 tst-affinity-static.
4577 (tests): Likewise.
4578 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4579 instead of SHARED.
4580 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4581 (USE_VSYSCALL): Likewise.
4582 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4583 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4584 instead of SHARED.
4585 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4586 SHARED.
4587 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4588 New.
4589
4590 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4591
4592 [BZ #23915]
4593 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4594 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4595 Undefine.
4596
4597 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4598
4599 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4600 (tst-cet-legacy-1a-ARGS): New.
4601 ($(objpfx)tst-cet-legacy-1a): New target.
4602 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4603
4604 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4605
4606 * conform/conformtest.py (CompileSubTest.__init__): Set
4607 self.run_early to False.
4608 (ExecuteSubTest.__init__): Likewise.
4609 (HeaderTests.run): Try running all non-optional, non-XFAILed
4610 compilation tests in a single execution of the compiler.
4611
4612 * conform/conformtest.py (CompileSubTest): New class.
4613 (ExecuteSubTest): Likewise.
4614 (ElementTest.run): Rename to gen_subtests. Append tests to
4615 self.subtests instead of running them.
4616 (ConstantTest.run): Likewise.
4617 (SymbolTest.run): Likewise.
4618 (TypeTest.run): Likewise.
4619 (TagTest.run): Likewise.
4620 (FunctionTest.run): Likewise.
4621 (VariableTest.run): Likewise.
4622 (MacroFunctionTest.run): Likewise.
4623 (MacroStrTest.run): Likewise.
4624 (HeaderTests.handle_test_line): Generate subtests for tests.
4625 (HeaderTests.run): Run subtests for tests.
4626
4627 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4628
4629 * math/Versions (GLIBC_2.29): Add pow.
4630 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4631 symbol.
4632 * math/w_pow.c: New file.
4633 * sysdeps/i386/fpu/w_pow.c: New file.
4634 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4635 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4636 and add necessary aliases.
4637 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4638 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4639 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4640 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4641 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4642 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4643 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4644 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4645 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4646 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4647 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4648 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4649 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4650 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4651 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4656 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4657 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4658 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4659 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4660 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4661 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4662 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4663 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4664 __pow.
4665 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4666 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4667 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4668
4669 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4670
4671 * math/Versions (GLIBC_2.29): Add log2.
4672 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4673 symbol.
4674 * math/w_log2.c: New file.
4675 * sysdeps/i386/fpu/w_log2.c: New file.
4676 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4677 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4678 and add necessary aliases.
4679 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4680 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4681 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4682 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4683 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4684 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4685 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4686 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4687 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4688 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4689 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4690 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4691 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4692 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4693 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4698 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4699 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4700 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4701 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4702 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4703 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4704 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4705
4706 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4707
4708 * math/Versions (GLIBC_2.29): Add log.
4709 * math/w_log_compat.c (__log_compat): Change to versioned compat
4710 symbol.
4711 * math/w_log.c: New file.
4712 * sysdeps/i386/fpu/w_log.c: New file.
4713 * sysdeps/ia64/fpu/e_log.S: Update.
4714 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4715 and add necessary aliases.
4716 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4717 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4718 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4719 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4720 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4721 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4722 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4723 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4724 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4725 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4726 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4727 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4728 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4729 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4730 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4735 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4736 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4737 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4738 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4739 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4740 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4741 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4742 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4743 __log.
4744 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4745 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4746 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4747 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4748
4749 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4750
4751 * math/Versions (GLIBC_2.29): Add exp and exp2.
4752 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4753 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4754 * math/w_exp_compat.c (__exp_compat): Likewise.
4755 * math/w_exp.c: New file.
4756 * math/w_exp2.c: New file.
4757 * sysdeps/i386/fpu/w_exp.c: New file.
4758 * sysdeps/i386/fpu/w_exp2.c: New file.
4759 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4760 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4761 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4762 and add necessary aliases.
4763 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4764 and add necessary aliases.
4765 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4766 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4767 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4768 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4769 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4770 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4771 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4772 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4773 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4774 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4775 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4776 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4777 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4778 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4779 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4780 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4781 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4786 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4787 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4788 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4789 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4790 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4791 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4792 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4793 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4794 (__ieee754_exp): Rename to __exp.
4795 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4796 (__ieee754_exp): Rename to __exp.
4797 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4798 (__ieee754_exp): Rename to __exp.
4799 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4800 __exp.
4801 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4802
4803 2018-11-20 DJ Delorie <dj@redhat.com>
4804
4805 * malloc/malloc.c (tcache_entry): Add key field.
4806 (tcache_put): Set it.
4807 (tcache_get): Likewise.
4808 (_int_free): Check for double free in tcache.
4809 * malloc/tst-tcfree1.c: New.
4810 * malloc/tst-tcfree2.c: New.
4811 * malloc/Makefile: Run the new tests.
4812 * manual/probes.texi: Document memory_tcache_double_free probe.
4813
4814 * dlfcn/dlerror.c (check_free): Prevent double frees.
4815
4816 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4817
4818 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4819
4820 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4821
4822 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4823 in tests. Use names for format arguments.
4824 (ConstantTest.run): Likewise.
4825 (SymbolTest.run): Likewise.
4826 (TypeTest.run): Likewise.
4827 (TagTest.run): Likewise.
4828 (FunctionTest.run): Likewise.
4829 (VariableTest.run): Likewise.
4830 (MacroFunctionTest.run): Likewise.
4831 (MacroStrTest.run): Likewise.
4832 (HeaderTests.__init__): Set self.num_tests.
4833 (HeaderTests.handle_test_line): Set test.num. Increment
4834 self.num_tests.
4835
4836 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4837
4838 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4839 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4840 SEEK_SET.
4841
4842 2018-11-19 Mao Han <han_mao@c-sky.com>
4843
4844 * scripts/config.guess: Update to version 2018-08-29.
4845 * scripts/config.sub: Update to version 2018-08-29.
4846
4847 2018-11-19 Florian Weimer <fweimer@redhat.com>
4848
4849 support: Print timestamps in timeout handler.
4850 * support/support_test_main.c (print_timestamp): New function.
4851 (signal_handler): Use it to print the termination time and the
4852 time of the last write to standard output.
4853
4854 2018-11-16 Zack Weinberg <zackw@panix.com>
4855 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4856
4857 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4858 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4859 argument.
4860 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4861 and add flags argument. Check flags instead of __ldbl_is_dbl when
4862 deciding whether to set is_long_double.
4863 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4864 passing zero for flags argument.
4865 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4866
4867 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4868 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4869 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4870 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4871 variable names. Remove libc_hidden_def/libc_hidden_proto from
4872 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4873 longer called from within the library.
4874 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4875 for __nldbl___vstrfmon_l, declare it explicitly.
4876
4877 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4878
4879 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4880
4881 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4882 macros
4883 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4884 F_SETLK64, F_SETLKW64, respectively.
4885 * sysdeps/mach/hurd/f_setlk.c: New file.
4886 * sysdeps/mach/hurd/f_setlk.h: New file.
4887 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4888 f_setlk.
4889 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4890 (__libc_fcntl): Move non-flock operations to...
4891 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4892 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4893
4894 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4895
4896 mktime: DEBUG_MKTIME cleanup
4897 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4898 And it’s no longer needed now that glibc and Gnulib both have
4899 their own testing mechanisms for mktime.
4900 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4901
4902 mktime: fix non-EOVERFLOW errno handling
4903 [BZ#23789]
4904 mktime was not properly reporting failures when the underlying
4905 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4906 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4907 The problem could happen on non-glibc platforms, with Gnulib.
4908 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4909 (tm_diff): ... this simpler function, which does not change errno.
4910 All callers changed to deal with errno themselves.
4911 (ranged_convert, __mktime_internal): Return failure immediately if
4912 the underlying function reports any failure other than EOVERFLOW.
4913 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4914 gap code fails.
4915
4916 mktime: fix bug with Y2038 DST transition
4917 [BZ#23789]
4918 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4919 mishandle a DST transition that jumps over the Y2038 boundary.
4920 No such DST transitions are known so this is only a theoretical
4921 bug, but we might as well do things right.
4922
4923 mktime: make more room for overflow
4924 [BZ#23789]
4925 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4926 This is so that we can add tm_diff results to a previous guess,
4927 which will be useful in a later patch.
4928
4929 mktime: simplify offset guess
4930 [BZ#23789]
4931 * time/mktime.c (__mktime_internal): Omit excess precision.
4932
4933 mktime: new test for mktime failure
4934 [BZ#23789]
4935 Based on a test suggested by Albert Aribaud in:
4936 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4937 * time/Makefile (tests): Add bug-mktime4.
4938 * time/bug-mktime4.c: New file.
4939
4940 mktime: fix EOVERFLOW bug
4941 [BZ#23789]
4942 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4943 Include libc-config.h, not config.h, for __set_errno.
4944 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4945
4946 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4947
4948 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4949 __attribute_copy__ to copy attributes from name. Drop static qualifier
4950 to avoid warnings about leaf attribute not having effect on static
4951 functions.
4952
4953 2018-11-13 Florian Weimer <fweimer@redhat.com>
4954
4955 * malloc/malloc.c (fastbin_push_entry): New function.
4956 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4957 (REMOVE_FB): Remove macro.
4958 (_int_malloc): Use fastbin_pop_entry and reindent.
4959 (_int_free): Use fastbin_push_entry.
4960 (malloc_consolidate): Use atomic_exchange_acquire.
4961
4962 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4963
4964 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4965 alias attribute, not with strong_alias.
4966
4967 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4968 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4969 with additional parameter thread.
4970 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4971 in terms of __hidden_ver2.
4972 (hidden_tls_def): New macro.
4973 (libc_hidden_tls_def): Likewise.
4974 (rtld_hidden_tls_def): Likewise.
4975 (libm_hidden_tls_def): Likewise.
4976 (libmvec_hidden_tls_def): Likewise.
4977 (libresolv_hidden_tls_def): Likewise.
4978 (librt_hidden_tls_def): Likewise.
4979 (libdl_hidden_tls_def): Likewise.
4980 (libnss_files_hidden_tls_def): Likewise.
4981 (libnsl_hidden_tls_def): Likewise.
4982 (libnss_nisplus_hidden_tls_def): Likewise.
4983 (libutil_hidden_tls_def): Likewise.
4984 (libutil_hidden_tls_def): Likweise.
4985 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4986 libc_hidden_tls_def.
4987 (__sim_disabled_exceptions_thread): Likewise.
4988 (__sim_round_mode_thread): Likewise.
4989
4990 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4991 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4992 copy attributes from name.
4993
4994 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4995
4996 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4997 Use __attribute_copy__ to copy attributes from name.
4998
4999 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5000 with __hidden_ver1 call.
5001 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5002 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5003 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5004 (__cosf): Do not declare here.
5005 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5006 (__sincosf): Do not declare here.
5007 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5008 (__sinf): Do not declare here.
5009
5010 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5011 (__BIG_ENDIAN): Likewise.
5012 (__BYTE_ORDER): Likewise.
5013 (strong_alias): Likewise.
5014 (_strong_alias): Likewise.
5015
5016 2018-11-12 Florian Weimer <fweimer@redhat.com>
5017
5018 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5019 function. Move after the definition of in_smallbin_range. Do not
5020 use __builtin_expect for paths that lead to a noreturn function.
5021 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5022 because it is unclear whether this is in fact an unlikely
5023 condition.
5024 (_int_malloc, _int_free): Adjust.
5025 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5026 variables.
5027 * malloc/arena.c (heap_trim): Likewise.
5028
5029 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5030
5031 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5032 it, free it if needed.
5033 (reauthenticate): Test and use ccwdir.
5034 (child_init_port): In non-resetids case, test and use ccwdir.
5035 (child_chdir): New nested function to set ccwdir.
5036 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5037 * hurd/hurd/port.h (_hurd_port_move): New function.
5038 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5039 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5040 * hurd/Versions (_hurd_port_move): Export function.
5041 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5042 symbol.
5043 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5044 of dtablesize for allocating dtable_cloexec.
5045
5046 2018-11-09 Martin Sebor <msebor@redhat.com>
5047
5048 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5049 it's already defined.
5050 (_strong_alias): Use __attribute_copy__.
5051 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5052 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5053 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5054 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5055 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5056 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5057 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5058 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5059 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5060 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5061 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5062 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5063 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5064 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5065 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5066 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5067 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5068 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5069 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5070
5071 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5072
5073 * misc/tst-efgcvt.c: Include support/check.h and
5074 support/test-driver.c. Do not include test-skeleton.c.
5075 (error_count): Remove.
5076 (output_error): Replace increments to error_count with calls to
5077 support_record_failure.
5078 (output_r_error): Likewise.
5079 (special): Likewise.
5080 (do_test): Unconditionally return zero.
5081 (TEST_FUNCTION): Remove.
5082
5083 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5084
5085 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5086 not $(@D)/scratch.
5087 ($(linknamespace-header-tests)): Likewise.
5088
5089 * conform/conformtest.py: New file.
5090 * conform/conformtest.pl: Remove.
5091 * conform/GlibcConform.pm: Likewise.
5092 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5093 (KEYWORDS_C99): Likewise.
5094 (KEYWORDS): Likewise.
5095 * conform/Makefile ($(conformtest-header-tests)): Use
5096 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5097 option. Use --header instead of --headers.
5098 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5099 function entries.
5100 * conform/data/spawn.h-data: Likewise.
5101 * conform/data/fcntl.h-data (openat): Add space after function
5102 name.
5103 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5104 (wcscasecmp_l): Likewise.
5105 * conform/data/termios.h-data (c_cc): Add space after element
5106 name.
5107
5108 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5109
5110 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5111 instead of manually comparing and reporting mismatching strings.
5112 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5113 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5114
5115 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5116
5117 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5118 __ASSUME_SOCKETCALL.
5119 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5120 (__ASSUME_SOCKETCALL): Remove.
5121 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5122 (__ASSUME_SOCKETCALL): Likewise.
5123 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5124 (__ASSUME_SOCKETCALL): Likewise.
5125 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5126 (__ASSUME_SOCKETCALL): Likewise.
5127 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5128 (__ASSUME_SOCKETCALL): Likewise.
5129 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5130 (__ASSUME_SOCKETCALL): Likewise.
5131 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5132 (__ASSUME_SOCKETCALL): Likewise.
5133
5134 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5135
5136 [BZ #23509]
5137 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5138 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5139 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5140 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5141 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5142 lc_unknown.
5143
5144 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5145
5146 [BZ #17630]
5147 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5148
5149 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5150
5151 [BZ #23867]
5152 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5153 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5154 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5155 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5156
5157 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5158
5159 * support/support_test_compare_string.c
5160 (support_test_compare_string): Fix printf format.
5161
5162 2018-11-07 Florian Weimer <fweimer@redhat.com>
5163
5164 Implement TEST_COMPARE_STRING.
5165 * support/check.h (TEST_COMPARE_STRING): Define.
5166 (support_test_compare_string): Declare.
5167 * support/Makefile (libsupport-routines): Add
5168 support_test_compare_string.
5169 (tests): Add tst-test_compare_string.
5170 * support/support_test_compare_string.c: New file.
5171 * support/tst-test_compare_string.c: Likewise.
5172
5173 2018-11-07 Andreas Schwab <schwab@suse.de>
5174
5175 [BZ #23864]
5176 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5177 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5178 Undef.
5179
5180 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5181
5182 [BZ #23862]
5183 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5184 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5185 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5186 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5187 Likewise.
5188
5189 2018-11-06 Florian Weimer <fweimer@redhat.com>
5190
5191 [BZ #17405]
5192 * posix/Makefile (routines): Add spawn_faction_addchdir.
5193 (tests): Add tst-spawn-chdir.
5194 * posix/Versions (GLIBC_2.29): Add
5195 posix_spawn_file_actions_addchdir_np.
5196 * posix/spawn_faction_addchdir.c: New file.
5197 * posix/spawn_faction_destroy.c
5198 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5199 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5200 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5201 chdir_action.
5202 * posix/tst-spawn-chdir.c: New file.
5203 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5204 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5205 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5206 posix_spawn_file_actions_addchdir_np.
5207 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5208 Likewise.
5209 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5210 Likewise.
5211 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5212 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5213 Likewise.
5214 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5215 Likewise.
5216 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5217 Likewise.
5218 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5219 Likewise.
5220 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5221 Likewise.
5222 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5223 Likewise.
5224 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5225 (GLIBC_2.29): Likewise.
5226 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5227 (GLIBC_2.29): Likewise.
5228 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5229 (GLIBC_2.29): Likewise.
5230 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5231 (GLIBC_2.29): Likewise.
5232 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5233 Likewise.
5234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5235 (GLIBC_2.29): Likewise.
5236 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5237 (GLIBC_2.29): Likewise.
5238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5239 (GLIBC_2.29): Likewise.
5240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5241 (GLIBC_2.29): Likewise.
5242 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5243 Likewise.
5244 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5245 Likewise.
5246 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5247 Likewise.
5248 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5249 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5250 Likewise.
5251 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5252 Likewise.
5253 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5254 Likewise.
5255 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5256 Likewise.
5257
5258 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5259
5260 * misc/Makefile (tests): Add tst-ldbl-error.
5261 * misc/tst-ldbl-error.c: New file.
5262
5263 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5264
5265 * misc/Makefile (tests): Add tst-ldbl-warn.
5266 * misc/tst-ldbl-warn.c: New file.
5267
5268 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5269
5270 * argp/Makefile (tests): Add tst-ldbl-argp.
5271 * argp/tst-ldbl-argp.c: New file.
5272
5273 2018-11-05 Arjun Shankar <arjun@redhat.com>
5274
5275 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5276 __gconv_path_elem and call __gconv_get_path unconditionally.
5277
5278 2018-11-05 Andreas Schwab <schwab@suse.de>
5279
5280 [BZ #22927]
5281 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5282 creating the first helper thread failed.
5283
5284 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5285
5286 * sysdeps/mach/hurd/msync.c: New file.
5287
5288 2018-11-02 Florian Weimer <fweimer@redhat.com>
5289
5290 * support/shell-container.c (copy_func): Call
5291 support_copy_file_range instead of copy_file_range to support
5292 cross-device copies.
5293
5294 2018-11-02 Florian Weimer <fweimer@redhat.com>
5295
5296 * support/test-container.c: Include <libc-pointer-arith.h> for
5297 ALIGN_UP.
5298
5299 2018-11-01 Zong Li <zong@andestech.com>
5300
5301 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5302 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5303 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5304 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5305
5306 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5307 variable to avoid overlap arguments.
5308
5309 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5310
5311 * posix/bug-regex22.c (main): Use puts with distinct error
5312 messages for unexpected success of re_compile_pattern, not printf
5313 with NULL argument to %s.
5314
5315 * stdio-common/bug22.c: Include <libc-diag.h>.
5316 (do_test): Disable -Wformat-overflow= warnings around fprintf
5317 calls outputting more than INT_MAX characters.
5318 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5319 around printf call with NULL %s argument.
5320
5321 [BZ #23848]
5322 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5323 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5324 Undefine.
5325 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5326 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5327 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5328 (__ASSUME_SENDTO_SYSCALL): Likewise.
5329 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5330 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5331 [!__arch64__].
5332 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5333 (__ASSUME_CONNECT_SYSCALL): Likewise.
5334 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5335 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5336 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5337 Define.
5338 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5339 Likewise.
5340 [__LINUX_KERNEL_VERSION >= 0x040400]
5341 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5342 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5343 Remove.
5344 (listen): Likewise.
5345 (setsockopt): Likewise.
5346
5347 2018-11-01 Fredrik Noring <noring@nocrew.org>
5348
5349 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5350 with the ISA override.
5351
5352 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5353
5354 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5355 #endif.
5356
5357 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5358
5359 * manual/errno.texi (EIEIO): Document how translators should
5360 translate the error message.
5361 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5362 printing trailing whitespaces refused by git.
5363 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5364 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5365 * hurd/Makefile (user-interfaces): Add pci.
5366
5367 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5368
5369 * conform/linknamespace.py: New file.
5370 * conform/linknamespace.pl: Remove file.
5371 * conform/Makefile ($(linknamespace-header-tests)): Use
5372 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5373 option.
5374
5375 2018-10-30 Florian Weimer <fweimer@redhat.com>
5376
5377 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5378 memory leaks.
5379
5380 2018-10-30 Florian Weimer <fweimer@redhat.com>
5381
5382 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5383
5384 2018-10-30 Florian Weimer <fweimer@redhat.com>
5385
5386 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5387 support_blob_repeat.
5388
5389 2018-10-30 Florian Weimer <fweimer@redhat.com>
5390
5391 Avoid spurious test failures in stdlib/test-bz22786.
5392 * support/Makefile (libsupport-routines): Add blob_repeat.
5393 (tests): Add tst-support_blob_repeat.
5394 * support/blob_repeat.h: New file.
5395 * support/blob_repeat.c: Likewise.
5396 * support/tst-support_blob_repeat.c: Likewise.
5397 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5398 support_blob_repeat_allocate.
5399
5400 2018-10-30 Andreas Schwab <schwab@suse.de>
5401
5402 [BZ #23125]
5403 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5404 Don't use tail call.
5405 * elf/tst-unwind-main.c: New file.
5406 * elf/Makefile (tests): Add tst-unwind-main.
5407 (CFLAGS-tst-unwind-main.c): Define.
5408
5409 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5410
5411 [BZ #23791]
5412 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5413 n_cs_precedes to 0.
5414 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5415
5416 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5417
5418 * conform/glibcconform.py: Do not import shutil.
5419 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5420 of mkdtemp.
5421
5422 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5423 critic_missing for versions before 3.4.
5424 * configure: Regenerated.
5425 * manual/install.texi (Tools for Compilation): Document
5426 requirement for Python to build glibc.
5427 * INSTALL: Regenerated.
5428 * Rules [PYTHON]: Make code unconditional.
5429 * benchtests/Makefile [PYTHON]: Likewise.
5430 * conform/Makefile [PYTHON]: Likewise.
5431 * manual/Makefile [PYTHON]: Likewise.
5432 * math/Makefile [PYTHON]: Likewise.
5433
5434 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5435
5436 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5437 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5438 answer to interrupt_operation, return EIEIO instead of EINTR.
5439 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5440 _hurd_intr_rpc_msg_about_to global point to start of controlled
5441 assembly snippet. Make it check canceled flag.
5442 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5443 the _hurd_intr_rpc_msg_about_to point.
5444 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5445 issue, remove cancel flag check.
5446
5447 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5448
5449 * scripts/build-many-glibcs.py: Remove compatibility for missing
5450 os.cpu_count and re.fullmatch.
5451
5452 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5453
5454 [BZ #23822]
5455 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5456 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5457 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5458
5459 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5460
5461 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5462 macro.
5463
5464 2018-10-25 Florian Weimer <fweimer@redhat.com>
5465
5466 [BZ #23562]
5467 [BZ #23821]
5468 XFAIL siginfo_t si_band conform test on sparc64.
5469 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5470 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5471 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5472 (conformtest-xfail-conds): Add sparc64-linux.
5473 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5474 sparc64.
5475 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5476
5477 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5478
5479 * elf/elf.h (NT_MIPS_DSP): New macro.
5480 (NT_MIPS_FP_MODE): Likewise.
5481
5482 2018-10-25 Zong Li <zong@andestech.com>
5483
5484 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5485 name by adding the file extension (.so).
5486
5487 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5488
5489 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5490 (test-xfail-ISO11/threads.h/linknamespace,
5491 test-xfail-ISO11/threads.h/conform): Add.
5492
5493 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5494
5495 * math/gen-libm-test.py: Import os.
5496 (ALL_FLOATS_MANUAL): New constant.
5497 (ALL_FLOATS_SUFFIX): Likewise.
5498 (Ulps.all_functions): New function.
5499 (real_all_ulps): Likewise.
5500 (generate_err_table_sub): Likewise.
5501 (generate_err_table): Likewise.
5502 (main): Handle -s and -m options.
5503 * manual/libm-err-tab.pl: Remove.
5504 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5505 instead of libm-err-tab.pl.
5506 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5507 != no].
5508 * manual/install.texi (Tools for Compilation): Document
5509 requirement for Python to build manual.
5510 * INSTALL: Regenerated.
5511
5512 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5513
5514 * bits/time64.h: New file.
5515 * include/time.h: Replace internal_time_t with __time64_t.
5516 * posix/bits/types (__time64_t): Add.
5517 * stdlib/Makefile: Add bits/time64.h to includes.
5518 * time/tzfile.c: Replace internal_time_t with __time64_t.
5519
5520 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5521
5522 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5523 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5524 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5525 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5526 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5527 prototype.
5528 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5529 * posix/spawn_faction_addclose.c
5530 (__posix_spawn_file_actions_addclose): Add hidden definition.
5531 * posix/spawn_faction_adddup2.c
5532 (__posix_spawn_file_actions_adddup2): Likewise.
5533 * posix/spawn_faction_destroy.c
5534 (__posix_spawn_file_actions_destroy): Likewise.
5535 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5536 Likewise.
5537 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5538 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5539 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5540 Likewise.
5541 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5542 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5543 Likewise.
5544
5545 2018-10-24 Andreas Schwab <schwab@suse.de>
5546
5547 [BZ #18093]
5548 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5549 format cache.
5550 * elf/cache.c (print_cache): Likewise.
5551
5552 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5553
5554 * bits/timesize.h: New file.
5555 * stdlib/Makefile (headers): Add bits/timesize.h.
5556 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5557 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5558 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5559 (__SEM_PAD_AFTER_TIME): Likewise.
5560 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5561 (__SHM_PAD_AFTER_TIME): Likewise.
5562 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5563 (__MSQ_PAD_BEFORE_TIME): Likewise.
5564 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5565 (__SEM_PAD_BEFORE_TIME): Likewise.
5566 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5567 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5568 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5569 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5570 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5571 (__MSQ_PAD_BEFORE_TIME): Likewise.
5572 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5573 (__SEM_PAD_BEFORE_TIME): Likewise.
5574 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5575 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5576 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5577 (__MSQ_PAD_BEFORE_TIME): Likewise.
5578 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5579 (__SEM_PAD_BEFORE_TIME): Likewise.
5580 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5581 (__SHM_PAD_BEFORE_TIME): Likewise.
5582 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5583 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5584 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5585
5586 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5587
5588 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5589 USE_RDTSCP is defined.
5590 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5591 USE_RDTSCP is defined.
5592
5593 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5594
5595 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5596 defined.
5597
5598 [BZ #23709]
5599 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5600 independently of other flags.
5601
5602 2018-10-23 Florian Weimer <fweimer@redhat.com>
5603
5604 * time/tst-mktime2.c (N_STRINGS): Remove.
5605 (set_timezone): New function.
5606 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5607 (mktime_test1): Report localtime failure and check errno value.
5608 Use TEST_COMPARE.
5609 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5610 (do_test): Remove alarm call. Use set_timezone and array_length.
5611
5612 2018-10-23 Andreas Schwab <schwab@suse.de>
5613
5614 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5615 (__start_context): Use END instead of PSEUDO_END.
5616
5617 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5618
5619 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5620 version to 4.19.
5621
5622 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5623 version to 4.19.
5624
5625 [BZ #23793]
5626 * wcsmbs/c32rtomb.c: New file.
5627 * wcsmbs/mbrtoc32.c: Likewise.
5628 * wcsmbs/tst-c32-state.c: Likewise.
5629 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5630 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5631 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5632 (tests): Add tst-c32-state.
5633 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5634 $(gen-locales).
5635
5636 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5637
5638 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5639 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5640
5641 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5642
5643 [BZ #23794]
5644 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5645 pair and return 0 in that case, and use saved character to
5646 interpret following character.
5647 * wcsmbs/tst-c16-surrogate.c: New file.
5648 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5649 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5650 Depend on $(gen-locales)
5651
5652 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5653
5654 [BZ #23562]
5655 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5656 (struct siginfo_t): Use correct type for si_band.
5657
5658 2018-10-19 Florian Weimer <fweimer@redhat.com>
5659
5660 [BZ #23689]
5661 * resource/bits/types/struct_rusage.h (struct rusage): Update
5662 comment on struct. Remove extraneous field comment.
5663
5664 2018-10-18 David S. Miller <davem@davemloft.net>
5665
5666 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5667 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5668 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5669 sysdep_routines in subdir elf.
5670 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5671 version for __vdso_clock_gettime.
5672 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5673 Define.
5674 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5675 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5676
5677 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5678
5679 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5680
5681 * sysdeps/i386/init-arch.h: Removed.
5682 * sysdeps/i386/i586/init-arch.h: Likewise.
5683 * sysdeps/i386/i686/init-arch.h: Likewise.
5684 * sysdeps/i386/i686/hp-timing.h: Likewise.
5685 * sysdeps/x86_64/hp-timing.h: Likewise.
5686 * sysdeps/i386/isa.h: New file.
5687 * sysdeps/i386/i586/isa.h: Likewise.
5688 * sysdeps/i386/i686/isa.h: Likewise.
5689 * sysdeps/x86_64/isa.h: Likewise.
5690 * sysdeps/x86/hp-timing.h: New file.
5691 * sysdeps/x86/init-arch.h: Include <isa.h>.
5692
5693 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5694
5695 * math/libm-test-pow.inc (pow_test_data): Do not allow
5696 divide-by-zero exception for pow(+/- 0, -Inf).
5697
5698 2018-10-17 Zack Weinberg <zackw@panix.com>
5699
5700 * manual/job.texi (Job Control is Optional): Remove node, as
5701 job control has not been optional in quite some time.
5702 (Job Control): Mention briefly that systems older than
5703 POSIX.1-2001 might not support job control.
5704 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5705 defined on systems conforming to POSIX.1-2001.
5706
5707 2018-10-17 Arjun Shankar <arjun@redhat.com>
5708
5709 [BZ #22062]
5710 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5711 indentation.
5712 * (__gconv_read_conf): Mark function static.
5713 * (once): New static variable.
5714 * (__gconv_load_conf): New function.
5715 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5716 * iconv/gconv_db.c (once): Remove static variable.
5717 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5718 __gconv_read_conf.
5719 * (__gconv_find_transform): Likewise.
5720 * iconv/tst-iconv-mt.c: New test.
5721 * iconv/Makefile: Add tst-iconv_mt.
5722
5723 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5724
5725 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5726 bits/shm-pad.h.
5727 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5728 (shmatt_t): Define as __syscall_ulong_t.
5729 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5730 and [__SHM_PAD_AFTER_TIME].
5731 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5732 Define shm_segsz and associated padding based on
5733 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5734 Use __syscall_ulong_t instead of unsigned long int.
5735 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5736 unsigned long int.
5737 [__USE_MISC] (struct shm_info): Likewise.
5738 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5739 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5740 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5741 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5742 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5743 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5744 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5745 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5746 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5747 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5748 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5749
5750 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5751 bits/shmlba.h.
5752 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5753 (SHMLBA): Remove macro.
5754 (__getpagesize): Remove function declaration.
5755 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5756 <bits/shmlba.h>.
5757 (SHMLBA): Remove macro.
5758 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5759 <bits/shmlba.h>.
5760 (SHMLBA): Remove macro.
5761 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5762 <bits/shmlba.h>.
5763 (SHMLBA): Remove macro.
5764 (__getpagesize): Remove function declaration.
5765 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5766 <bits/shmlba.h>.
5767 (SHMLBA): Remove macro.
5768 (__getshmlba): Remove function declaration.
5769 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5770 (SHMLBA): Remove macro.
5771 (__getpagesize): Remove function declaration.
5772 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5773 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5774 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5775 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5776 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5777 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5778 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5779 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5780 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5781 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5782
5783 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5784
5785 [BZ #23275]
5786 * nptl/tst-mutex10.c: New File.
5787 * nptl/Makefile (tests): Add tst-mutex10.
5788 (tst-mutex10-ENV): New variable.
5789 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5790 Ensure that elision path is used if elision is available.
5791 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5792 Likewise.
5793 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5794 Likewise.
5795 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5796 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5797 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5798 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5799 Likewise.
5800 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5801 (__pthread_mutex_cond_lock_adjust): Likewise.
5802 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5803 Likewise.
5804 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5805 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5806 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5807 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5808 Add comments.
5809 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5810 Use atomic_load_relaxed and atomic_store_relaxed.
5811 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5812 Use atomic_store_relaxed.
5813
5814 2018-10-17 Andreas Schwab <schwab@suse.de>
5815
5816 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5817 * crypt/badsalttest.c (TIMEOUT): Likewise.
5818 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5819 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5820 * io/test-lfs.c (TIMEOUT): Likewise.
5821 * libio/tst-atime.c (TIMEOUT): Likewise.
5822 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5823 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5824 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5825 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5826 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5827 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5828 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5829 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5830 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5831 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5832 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5833 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5834 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5835 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5836 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5837 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5838 * nptl/tst-once2.c (TIMEOUT): Likewise.
5839 * nptl/tst-once3.c (TIMEOUT): Likewise.
5840 * nptl/tst-once4.c (TIMEOUT): Likewise.
5841 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5842 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5843 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5844 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5845 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5846 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5847 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5848 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5849 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5850 * posix/tst-chmod.c (TIMEOUT): Likewise.
5851 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5852 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5853 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5854 * posix/tst-regex2.c (TIMEOUT): Likewise.
5855 * posix/tst-waitid.c (TIMEOUT): Likewise.
5856 * rt/tst-aio.c (TIMEOUT): Likewise.
5857 * rt/tst-aio10.c (TIMEOUT): Likewise.
5858 * rt/tst-aio4.c (TIMEOUT): Likewise.
5859 * rt/tst-aio5.c (TIMEOUT): Likewise.
5860 * rt/tst-aio6.c (TIMEOUT): Likewise.
5861 * rt/tst-aio64.c (TIMEOUT): Likewise.
5862 * rt/tst-aio7.c (TIMEOUT): Likewise.
5863 * rt/tst-aio9.c (TIMEOUT): Likewise.
5864 * rt/tst-clock.c (TIMEOUT): Likewise.
5865 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5866 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5867 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5868 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5869 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5870 * rt/tst-timer4.c (TIMEOUT): Likewise.
5871 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5872 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5873 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5874 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5875 * time/tst-ftime.c (TIMEOUT): Likewise.
5876 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5877
5878 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5879
5880 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5881 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5882 for thunderX2.
5883
5884 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5885
5886 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5887 bits/sem-pad.h.
5888 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5889 instead of <bits/wordsize.h>.
5890 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5891 and [__SEM_PAD_AFTER_TIME].
5892 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5893 __syscall_ulong_t instead of unsigned long int.
5894 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5895 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5896 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5897 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5898 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5899 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5900 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5901 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5902 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5903 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5904 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5905
5906 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5907
5908 regex: simplify by using intprops.h
5909 [BZ#23744]
5910 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5911 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5912 intprops.h defines them.
5913
5914 regex: __builtin_expect → __glibc_unlikely
5915 [BZ#23744]
5916 This refactoring was prompted by a problem when the regex code is
5917 used as part of Gnulib and when the builder’s compiler does not grok
5918 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5919 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5920 Although this refactoring does not fix the problem directly,
5921 we might as well have Gawk use the now-preferred glibc style for when
5922 __builtin_expect is unavailable.
5923 * posix/regex_internal.h (BE): Remove.
5924 All uses replaced by __glibc_unlikely or __glibc_likely.
5925
5926 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5927
5928 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5929 bits/msq-pad.h.
5930 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5931 instead of <bits/wordsize.h>.
5932 (msgqnum_t): Define as __syscall_ulong_t.
5933 (msglen_t): Likewise.
5934 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5935 and [__MSQ_PAD_AFTER_TIME].
5936 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5937 __syscall_ulong_t instead of unsigned long int.
5938 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5939 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5940 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5941 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5942 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5943 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5944 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5945 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5946 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5947 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5948 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5949
5950 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5951
5952 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5953 (struct shmid_ds): Condition padding after time fields on
5954 [__WORDSIZE == 32].
5955 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5956 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5957 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5958
5959 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5960 (struct semid_ds): Condition padding after time fields on
5961 [__WORDSIZE == 32].
5962 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5963 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5964 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5965 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5966
5967 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5968 (struct msqid_ds): Condition padding after time fields on
5969 [__WORDSIZE == 32].
5970 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5971 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5972 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5973 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5974
5975 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5976
5977 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5978
5979 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5980
5981 * libio/tst-readline.c (TIMEOUT): Define.
5982
5983 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5984
5985 mktime fix for Gnulib + coreutils
5986 [BZ#23745]
5987 This fix affects only Gnulib. Problem discovered when
5988 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5989 * time/mktime.c:
5990 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5991 Do not define since it is not used. Defining an unused static
5992 function prompts a warning from GCC when Coreutils is configured
5993 with --enable-gcc-warnings.
5994
5995 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5996
5997 * benchtests/scripts/compare_bench.py (main): set float type on
5998 threshold argument.
5999
6000 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6001
6002 [BZ #23740]
6003 * localedata/locales/kl_GL (mon): Update, the relative case.
6004 (alt_mon): Add, fill with month names in the nominative case.
6005 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6006 (d_fmt): Set to "%b %d %Y".
6007
6008 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6009
6010 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6011 <bits/mman-linux.h>.
6012 (PROT_READ): Don't define here.
6013 (PROT_WRITE): Likewise.
6014 (PROT_EXEC): Likewise.
6015 (PROT_NONE): Likewise.
6016 (PROT_GROWSDOWN): Likewise.
6017 (PROT_GROWSUP): Likewise.
6018 (MAP_SHARED): Likewise.
6019 (MAP_PRIVATE): Likewise.
6020 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6021 [__USE_MISC] (MAP_FILE): Likewise.
6022 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6023 [__USE_MISC] (MAP_ANON): Likewise.
6024 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6025 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6026 (MCL_CURRENT): Likewise.
6027 (MCL_FUTURE): Likewise.
6028 (MCL_ONFAULT): Likewise.
6029 [__USE_MISC] (MADV_NORMAL): Likewise.
6030 [__USE_MISC] (MADV_RANDOM): Likewise.
6031 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6032 [__USE_MISC] (MADV_WILLNEED): Likewise.
6033 [__USE_MISC] (MADV_DONTNEED): Likewise.
6034 [__USE_MISC] (MADV_FREE): Likewise.
6035 [__USE_MISC] (MADV_REMOVE): Likewise.
6036 [__USE_MISC] (MADV_DONTFORK): Likewise.
6037 [__USE_MISC] (MADV_DOFORK): Likewise.
6038 [__USE_MISC] (MADV_HWPOISON): Likewise.
6039 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6040 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6041 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6042 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6043 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6044 (__MAP_ANONYMOUS): New macro.
6045 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6046 <bits/mman-linux.h> inclusion.
6047 (MAP_FIXED): Likewise.
6048 (MS_SYNC): Likewise.
6049 (MS_ASYNC): Likewise.
6050 (MS_INVALIDATE): Likewise.
6051 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6052 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6053 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6054 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6055 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6056 [__USE_MISC] (MADV_DODUMP): Likewise.
6057 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6058 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6059
6060 [BZ #23735]
6061 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6062 Define.
6063 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6064 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6065 Add test-nldbl-redirect.
6066 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6067 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6068 $(objpfx)libnldbl_nonshared.a.
6069
6070 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6071
6072 * support/support.h (support_objdir_elf_ldso): New variable.
6073 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6074 * support/Makefile (CFLAGS-support_paths.c): Add definition
6075 for OBJDIR_ELF_LDSO_PATH.
6076 * support/test-container.c (main): Search for the ld.so
6077 which is also used by the testsuite.
6078
6079 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6080
6081 [BZ #20209]
6082 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6083 should be "sap" rather than "sab".
6084 (day): Fix spelling of Sunday, should be "sapaat" rather than
6085 "sabaat".
6086
6087 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6088
6089 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6090
6091 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6092
6093 [BZ #19444]
6094 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6095 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6096 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6097
6098 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6099
6100 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6101
6102 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6103
6104 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6105 Add -mrtm.
6106 (CFLAGS-elision-unlock.c): Likewise.
6107 (CFLAGS-elision-timed.c): Likewise.
6108 (CFLAGS-elision-trylock.c): Likewise.
6109 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6110
6111 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6112
6113 [BZ #21037]
6114 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6115 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6116 new fd_to_filename interface.
6117 * libio/freopen64.c (freopen64): Likewise.
6118 * libio/tst-memstream.h: New file.
6119 * libio/tst-memstream4.c: Likewise.
6120 * libio/tst-wmemstream4.c: Likewise.
6121 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6122 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6123 and remove internal dynamic allocation.
6124
6125 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6126
6127 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6128 (MREMAP_MAYMOVE): Do not define here.
6129 [__USE_GNU] (MREMAP_FIXED): Likewise.
6130 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6131 (MREMAP_MAYMOVE): Define here instead.
6132 [__USE_GNU] (MREMAP_FIXED): Likewise.
6133 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6134 (MREMAP_MAYMOVE): Remove.
6135 [__USE_GNU] (MREMAP_FIXED): Likewise.
6136
6137 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6138
6139 * math/fromfp.h: Do not include <math_private.h>.
6140 * math/s_cacosh_template.c: Likewise.
6141 * math/s_casin_template.c: Likewise.
6142 * math/s_casinh_template.c: Likewise.
6143 * math/s_ccos_template.c: Likewise.
6144 * math/s_cproj_template.c: Likewise.
6145 * math/s_fdim_template.c: Likewise.
6146 * math/s_fmaxmag_template.c: Likewise.
6147 * math/s_fminmag_template.c: Likewise.
6148 * math/s_iseqsig_template.c: Likewise.
6149 * math/s_ldexp_template.c: Likewise.
6150 * math/s_nextdown_template.c: Likewise.
6151 * math/w_log1p_template.c: Likewise.
6152 * math/w_scalbln_template.c: Likewise.
6153 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6154 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6155 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6156 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6157 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6158 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6159 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6160 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6161 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6162 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6163 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6164 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6165 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6166 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6167 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6168 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6169 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6170 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6171 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6172 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6173 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6174 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6175 * sysdeps/ieee754/k_standardf.c: Likewise.
6176 * sysdeps/ieee754/k_standardl.c: Likewise.
6177 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6178 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6179 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6180 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6181 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6182 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6183 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6184 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6185 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6186 * sysdeps/ieee754/s_signgam.c: Likewise.
6187 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6188 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6189 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6190 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6191 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6192 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6193 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6194 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6195 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6196 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6197 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6198 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6199 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6200 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6201 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6202 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6203 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6204 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6205 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6206 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6207 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6208 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6209 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6210 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6211 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6212 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6213 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6214 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6215 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6216 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6217 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6218 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6219 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6220 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6221 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6222 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6223 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6224 <math_private.h>.
6225 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6226
6227 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6228
6229 [BZ #23716]
6230 * sysdeps/i386/dl-cet.c: Removed.
6231 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6232 prototype.
6233 (_dl_runtime_profile_shstk): Likewise.
6234 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6235 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6236
6237 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6238
6239 [BZ #23579]
6240 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6241 do_test_with_invalid_iov): New tests.
6242 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6243 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6244 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6245 errno is ENOSYS.
6246 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6247 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6248 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6249
6250 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6251
6252 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6253 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6254 (MATH_REDIRECT_BINARY_ARGS): New macro.
6255 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6256 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6257 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6258 header inclusion.
6259 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6260 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6261 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6262 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6263 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6264 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6265 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6267 Likewise.
6268 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6269 Likewise.
6270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6272 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6273 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6275 Likewise.
6276 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6277 Likewise.
6278 * sysdeps/generic/math_private_calls.h
6279 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6280 Do not declare and define as an inline function.
6281 * math/divtc3.c (__divtc3): Use copysign functions instead of
6282 __copysign variants.
6283 * math/multc3.c (__multc3): Likewise.
6284 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6285 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6286 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6287 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6288 Likewise.
6289 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6290 (__ieee754_yn): Likewise.
6291 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6292 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6293 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6294 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6295 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6296 (__sin): Likewise.
6297 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6298 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6299 Likewise.
6300 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6301 Likewise.
6302 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6303 Likewise.
6304 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6305 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6306 Likewise.
6307 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6308 (__ieee754_ynf): Likewise.
6309 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6310 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6311 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6312 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6313 Likewise.
6314 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6315 (__ieee754_ynl): Likewise.
6316 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6317 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6318 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6319 Likewise.
6320 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6321 (__ieee754_ynl): Likewise.
6322 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6323 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6324 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6325 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6326 Likewise.
6327 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6328 (__ieee754_ynl)
6329 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6330 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6331 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6332 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6333 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6334
6335 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6336 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6337 using MATH_REDIRECT.
6338 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6339 header inclusion.
6340 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6341 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6342 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6343 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6344 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6345 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6346 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6351 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6352 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6353 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6354 (round): Redirect to __round.
6355 (__roundl): Call round instead of __round.
6356 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6357 Remove macro.
6358 [_ARCH_PWR5X] (__roundf): Likewise.
6359 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6360 functions instead of __round variants.
6361 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6362 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6363 Likewise.
6364 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6365 Likewise.
6366 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6367 Likewise.
6368 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6369 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6370 __lroundl.
6371 (__ieee754_expl): Call roundl instead of __roundl.
6372
6373 2018-09-27 Andreas Schwab <schwab@suse.de>
6374
6375 [BZ #23717]
6376 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6377 (do_test): Make st1 static.
6378
6379 2018-09-26 Andreas Schwab <schwab@suse.de>
6380
6381 [BZ #23707]
6382 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6383 * elf/Makefile (tests): Add tst-unwind-ctor.
6384 (modules-names): Add tst-unwind-ctor-lib.
6385 ($(objpfx)tst-unwind-ctor): Depend on
6386 $(objpfx)tst-unwind-ctor-lib.so.
6387
6388 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6389
6390 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6391 file. Most contents moved from ....
6392 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6393 and include <bits/mman-map-flags-generic.h>.
6394 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6395 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6396 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6397 <bits/mman-map-flags-generic.h>.
6398 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6399 macros defined in <bits/mman-map-flags-generic.h>.
6400 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6401 <bits/mman-map-flags-generic.h>.
6402 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6403 defined in <bits/mman-map-flags-generic.h>.
6404
6405 2018-09-26 Andreas Schwab <schwab@suse.de>
6406
6407 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6408 output.
6409
6410 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6411 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6412 Fangrui Song <maskray@google.com>
6413
6414 [BZ #20480]
6415 * config.make.in (have-textrel_ifunc): New define.
6416 * configure.ac: Add check if linker supports textrel relocation with
6417 ifunc.
6418 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6419 tst-ifunc-textrel.
6420 (CFLAGS-tst-ifunc-textrel.c): New rule.
6421 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6422 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6423 * elf/tst-ifunc-textrel.c: New file.
6424
6425 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6426
6427 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6428 <bits/procfs-prregset.h>.
6429 (prgregset_t): Define using __prgregset_t.
6430 (prfpregset_t): Define using __prfpregset_t.
6431 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6432 (sysdep_headers): Add bits/procfs-prregset.h.
6433 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6434 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6435 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6436 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6437
6438 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6439 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6440 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6441 pr_uid and pr_gid.
6442 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6443 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6444 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6445 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6446 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6447 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6448 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6449 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6450 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6451 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6452 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6453 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6454 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6455 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6456 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6457 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6458 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6459 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6460 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6461 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6462 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6463 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6464 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6465 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6466
6467 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6468 AArch64 version. Include <bits/procfs.h>.
6469 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6470 (sysdep_headers): Add bits/procfs.h.
6471 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6472 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6473 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6474 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6475 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6476 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6477 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6478 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6479 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6480 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6481 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6482 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6483 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6484 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6485 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6486 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6487 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6488
6489 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6490
6491 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6492 Use libsupport.
6493
6494 2018-09-25 Arjun Shankar <arjun@redhat.com>
6495
6496 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6497 (__gconv_max_path_elem_len): Likewise.
6498 (__gconv_nmodules): Likewise.
6499 (__gconv_get_path): Likewise.
6500 (path_elem): Move to ...
6501 * iconv/gconv_conf.c: ... here.
6502 (__gconv_get_path): Mark function static.
6503 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6504 * iconv/gconv_open.c: ... here.
6505
6506 2018-09-24 Andreas Schwab <schwab@suse.de>
6507
6508 * scripts/haveversions.awk: New file.
6509 * Makerules ($(common-objpfx)Versions.def)
6510 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6511 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6512 Move rules ...
6513 * Makeconfig ($(common-objpfx)Versions.def)
6514 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6515 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6516 ... here.
6517 ($(common-objpfx)Versions.mk): New rule. Include it.
6518 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6519 Emit error if build-obsolete-nsl = yes.
6520 * manual/install.texi (Configuring and compiling): Describe
6521 --enable-obsolete-nsl as unavaiable after version 2.28.
6522 * INSTALL: Regenerate.
6523
6524 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6525
6526 * NEWS: Add note about new TLE support on powerpc64le.
6527 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6528 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6529 __ununsed1.
6530 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6531 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6532 * sysdeps/powerpc/powerpc32/sysdep.h,
6533 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6534 ABORT_TRANSACTION): Remove macros.
6535 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6536 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6537 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6539 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6540 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6541 usage.
6542 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6543
6544 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6545
6546 [BZ #10425]
6547 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6548 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6549 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6550 which is the same as in it_IT.
6551 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6552 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6553
6554 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6555
6556 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6557 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6558 using MATH_REDIRECT.
6559 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6560 header inclusion.
6561 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6562 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6563 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6564 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6565 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6566 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6571 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6572 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6573 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6574 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6575 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6576 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6577 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6578 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6579 (ceil): Redirect to __ceil.
6580 (floor): Redirect to __floor.
6581 (trunc): Redirect to __trunc.
6582 (__truncl): Call trunc instead of __trunc.
6583 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6584 Remove macro.
6585 [_ARCH_PWR5X] (__truncf): Likewise.
6586 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6587 trunc functions instead of __trunc variants.
6588 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6589 Likewise.
6590 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6591 Likewise.
6592 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6593 Likewise.
6594 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6595 Likewise.
6596
6597 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6598 [__i586__ || __pentium__].
6599 [__i486__]: Handle explicitly.
6600 (HAS_CPUID): Define to 1 if above macros are undefined.
6601 (HAS_I586): Likewise.
6602 (HAS_I686): Likewise.
6603
6604 2018-09-20 Florian Weimer <fweimer@redhat.com>
6605
6606 * misc/tst-gethostid.c: New file.
6607 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6608 (tst-gethostid): Link with -ldl.
6609
6610 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6611
6612 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6613 value from gethostbyname_r.
6614
6615 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6616
6617 * stdlib/tst-setcontext9.c (f1): Rename to...
6618 (f1a): ... this.
6619 (f1b): New function implementing lower half of f1 in alternate stack.
6620
6621 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6622
6623 Fix mktime localtime offset confusion
6624 [BZ #23603]
6625 * include/time.h (__mktime_internal): The localtime offset is now
6626 of type long int instead of time_t. This is the longstanding type
6627 in glibc, and it is more than enough to represent difference
6628 between localtime and gmtime even if it is 32 bits and time_t is
6629 64. Changing it now will let us avoid an unnecessary change when
6630 time_t is widened to 64 bits on 32-bit platforms.
6631 * time/mktime-internal.h (mktime_offset_t): Now long int.
6632
6633 Merge mktime, timegm from upstream Gnulib
6634 [BZ #23603][BZ #16346]
6635 This fixes some obscure problems with integer overflow.
6636 Although it looks scary, it is almost all a byte-for-byte copy
6637 from Gnulib, and the Gnulib code has been tested reasonably well.
6638 * include/intprops.h: New file, copied from Gnulib.
6639 * include/verify.h, time/mktime-internal.h:
6640 New tiny files, simplified from Gnulib.
6641 * time/mktime.c: Copy from Gnulib. This has the following changes:
6642 Do not include config.h if DEBUG_MKTIME is nonzero.
6643 Include stdbool.h, intprops.h, verify.h.
6644 Include string.h only if needed.
6645 Include stdlib.h on MS-Windows.
6646 Include mktime-internal.h.
6647 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6648 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6649 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6650 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6651 simplify later conditionals; default the others to zero. Use
6652 these conditionals to express only the code needed on the current
6653 platform. In uses of these conditionals, explicitly spell out how
6654 _LIBC affects things, so it’s easier to review from a glibc
6655 viewpoint.
6656 (WRAPV): Remove; no longer needed now that we have
6657 systematic overflow checking.
6658 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6659 compartmentalize tzset issues. Move system-dependent tzsettish
6660 code here from mktime.
6661 (verify): Remove; now done by verify.h. All uses changed.
6662 (long_int): Use a more-conservative definition, to avoid
6663 integer overflow.
6664 (SHR): Remove, replacing with ...
6665 (shr): New function, which means we needn’t worry about side
6666 effects in args, and conversion analysis is simpler.
6667 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6668 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6669 (time_t_avg, time_t_add_ok): Remove.
6670 (mktime_min, mktime_max): New constants.
6671 (leapyear, isdst_differ): Use bool for booleans.
6672 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6673 Use long_int, not time_t, for mktime differences.
6674 (long_int_avg): New function, replacing time_t_avg.
6675 INT_ADD_WRAPV replaces time_t_add_ok.
6676 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6677 All uses changed.
6678 (convert_time): New function.
6679 (ranged_convert): Use it.
6680 (__mktime_internal): Last arg now points to mktime_offset_t, not
6681 time_t. All uses changed. This is a no-op on glibc, where
6682 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6683 offset guess. Directly check for integer overflow instead of
6684 using a heuristic that works only 99.9...% of the time.
6685 Access *OFFSET only once, to avoid an unlikely race if the
6686 compiler delays a load and if this cascades into a signed integer
6687 overflow.
6688 (mktime): Move tzsettish code to my_tzset, and move
6689 localtime_offset to within mktime so that it doesn’t
6690 need a separate ifdef.
6691 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6692 instead of localtime.
6693 * time/timegm.c: Copy from Gnulib. This has the following changes:
6694 Include mktime-internal.h.
6695 [!_LIBC]: Include config.h and time.h. Do not include
6696 timegm.h or time_r.h. Make __mktime_internal a macro,
6697 and include mktime-internal.h to get its declaration.
6698 (timegm): Temporary is now mktime_offset_t, not time_t.
6699 This affects only Gnulib.
6700
6701 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6702
6703 [BZ #23637]
6704 * string/test-strstr.c (pr23637): New function.
6705 (test_main): Add tests with longer needles.
6706 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6707 * string/strstr.c (AVAILABLE): Likewise.
6708
6709 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6710
6711 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6712
6713 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6714
6715 * NEWS: Mention pow improvements.
6716 * math/Makefile (type-double-routines): Add e_pow_log_data.
6717 * sysdeps/generic/math_private.h (__exp1): Remove.
6718 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6719 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6720 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6721 contraction.
6722 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6723 (exp_inline): Remove.
6724 (__ieee754_exp): Only single double input is handled.
6725 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6726 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6727 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6728 (__pow_log_data): Define.
6729 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6730 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6731 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6732 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6733 contraction.
6734 (CFLAGS-e_pow-fma4.c): Likewise.
6735
6736 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6737
6738 Simplify tzfile fstat failure code
6739 [BZ #21716]
6740 * time/tzfile.c (__tzfile_read): Simplify slightly.
6741
6742 Fix tzfile low-memory assertion failure
6743 [BZ #21716]
6744 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6745 when registering time zone abbreviations.
6746
6747 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6748
6749 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6750 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6751 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6752 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6753 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6754 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6755 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6756 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6757 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6758
6759 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6760 __ceil.
6761 (__ceill): Call ceil instead of __ceil.
6762 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6763 __floor.
6764 (__floorl): Call floor instead of __floor.
6765
6766 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6767
6768 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6769 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6770 using MATH_REDIRECT.
6771 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6772 header inclusion.
6773 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6774 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6775 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6776 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6777 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6778 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6779 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6780 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6781 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6785 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6786 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6787 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6788 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6789 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6790 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6791 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6792 Remove macro.
6793 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6794 functions instead of __ceil variants.
6795 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6796 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6797 Likewise.
6798 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6799 Likewise.
6800 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6801 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6802 Likewise.
6803 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6804 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6805
6806 [BZ #21286]
6807 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6808 constant.
6809 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6810 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6811 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6812 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6813 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6814 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6815 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6816 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6817 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6818 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6819 (ILL_BADIADDR): Remove constant.
6820 (TRAP_BRANCH): Likewise.
6821 (TRAP_HWBKPT): Likewise.
6822
6823 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6824
6825 [BZ #23656]
6826 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6827 Remove [_MIPS_SIM = _ABIN32] conditional case.
6828 (struct elf_prpsinfo): Likewise.
6829
6830 [BZ #23649]
6831 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6832 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6833 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6834 Likewise.
6835 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6836 elf_prpsinfo): Likewise.
6837 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6838 elf_prpsinfo): Likewise.
6839 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6840 Likewise.
6841
6842 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6843 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6844 using MATH_REDIRECT.
6845 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6846 header inclusion.
6847 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6848 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6849 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6850 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6851 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6852 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6853 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6854 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6857 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6858 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6859 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6860 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6861 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6862 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6863 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6864 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6865 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6868 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6869 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6870 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6871 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6872 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6873 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6874 __rint variants.
6875 * math/e_scalbf.c (invalid_fn): Likewise.
6876 * math/e_scalbl.c (invalid_fn): Likewise.
6877 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6878 Likewise.
6879 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6880 Likewise.
6881 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6882 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6883 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6884 Likewise.
6885 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6886 Likewise.
6887 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6888 Likewise.
6889 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6890 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6891
6892 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6893 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6894 New macro.
6895 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6896 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6897 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6898 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6899 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6900 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6901 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6902 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6903 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6904 && !NO_MATH_REDIRECT] (floor): Likewise.
6905 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6906 header inclusion.
6907 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6908 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6909 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6910 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6911 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6912 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6913 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6914 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6919 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6920 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6921 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6922 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6923 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6924 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6925 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6926 Remove macro.
6927 [_ARCH_PWR5X] (__floorf): Likewise.
6928 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6929 inline function.
6930 [__SSE4_1__] (__floorf): Likewise.
6931 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6932 instead of __floor variants.
6933 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6934 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6935 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6936 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6937 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6938 * math/w_tgamma_compat.c (__tgamma): Likewise.
6939 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6940 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6941 * math/w_tgammal_compat.c (__tgammal): Likewise.
6942 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6943 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6944 Likewise.
6945 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6946 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6947 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6948 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6949 Likewise.
6950 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6951 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6952 Likewise.
6953 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6954 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6955 Likewise.
6956 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6957 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6958 Likewise.
6959 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6960 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6961 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6962 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6963 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6964 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6965
6966 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6967
6968 * elf/Makefile (modules-names-tests): New variable.
6969
6970 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6971
6972 * NEWS: Mention log2 improvements.
6973 * math/Makefile (type-double-routines): Add e_log2_data.
6974 * sysdeps/i386/fpu/e_log2_data.c: New file.
6975 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6976 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6977 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6978 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6979 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6980 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6981
6982 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6983
6984 * NEWS: Mention log improvement.
6985 * math/Makefile (type-double-routines): Add e_log_data.
6986 * sysdeps/i386/fpu/e_log_data.c: New file.
6987 * sysdeps/ia64/fpu/e_log_data.c: New file.
6988 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6989 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6990 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6991 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6992 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6993 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6994
6995 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6996 Xuepeng Guo <xuepeng.guo@intel.com>
6997
6998 [BZ #23606]
6999 * sysdeps/i386/start.S: Include <sysdep.h>
7000 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7001 enabled. Add cfi_undefined (eip).
7002
7003 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7004
7005 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7006 (MOVQ): Likewise.
7007 (EXTRACT_WORDS64): Likewise.
7008 (INSERT_WORDS64): Likewise.
7009 (GET_FLOAT_WORD): Likewise.
7010 (SET_FLOAT_WORD): Likewise.
7011
7012 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7013 argument.
7014 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7015 build, but not for second build if --full-gcc. Use
7016 --enable-languages=all for second build if --full-gcc.
7017 (get_parser): Add --full-gcc option.
7018 (main): Update call to Context.
7019
7020 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7021
7022 [BZ #10797]
7023 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7024 Single Quotation Mark).
7025 (thousands_sep): Likewise.
7026 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7027 * localedata/locales/it_IT (thousands_sep): Use ".".
7028 (grouping): Use "3;3".
7029
7030 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7031
7032 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7033 x86_64 and i686 configs using --enable-obsolete-rpc
7034 --enable-obsolete-nsl.
7035
7036 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7037
7038 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7039
7040 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7041
7042 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7043 Increment size of new_argv by one.
7044
7045 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7046
7047 [BZ #17426]
7048 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7049 * localedata/locales/ar_IN (d_fmt): Likewise.
7050 * localedata/locales/bhb_IN (d_fmt): Likewise.
7051 * localedata/locales/bho_IN (d_fmt): Likewise.
7052 * localedata/locales/bn_BD (d_fmt): Likewise.
7053 * localedata/locales/bn_IN (d_fmt): Likewise.
7054 * localedata/locales/doi_IN (d_fmt): Likewise.
7055 * localedata/locales/gu_IN (d_fmt): Likewise.
7056 * localedata/locales/hi_IN (d_fmt): Likewise.
7057 * localedata/locales/hne_IN (d_fmt): Likewise.
7058 * localedata/locales/kn_IN (d_fmt): Likewise.
7059 * localedata/locales/mag_IN (d_fmt): Likewise.
7060 * localedata/locales/mai_IN (d_fmt): Likewise.
7061 * localedata/locales/mjw_IN (d_fmt): Likewise.
7062 * localedata/locales/ml_IN (d_fmt): Likewise.
7063 * localedata/locales/mni_IN (d_fmt): Likewise.
7064 * localedata/locales/mr_IN (d_fmt): Likewise.
7065 * localedata/locales/pa_IN (d_fmt): Likewise.
7066 * localedata/locales/raj_IN (d_fmt): Likewise.
7067 * localedata/locales/sat_IN (d_fmt): Likewise.
7068 * localedata/locales/sd_IN (d_fmt): Likewise.
7069 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7070 * localedata/locales/ta_IN (d_fmt): Likewise.
7071 * localedata/locales/ta_LK (d_fmt): Likewise.
7072 * localedata/locales/tcy_IN (d_fmt): Likewise.
7073 * localedata/locales/ur_IN (d_fmt): Likewise.
7074
7075 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7076 * localedata/locales/ks_IN (d_fmt): Likewise.
7077 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7078
7079 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7080 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7081 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7082 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7083
7084 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7085
7086 * NEWS: Mention exp and exp2 improvements.
7087 * math/Makefile (libm-support): Remove t_exp.
7088 (type-double-routines): Add math_err and e_exp_data.
7089 * sysdeps/aarch64/libm-test-ulps: Update.
7090 * sysdeps/arm/libm-test-ulps: Update.
7091 * sysdeps/i386/fpu/e_exp_data.c: New file.
7092 * sysdeps/i386/fpu/math_err.c: New file.
7093 * sysdeps/i386/fpu/t_exp.c: Remove.
7094 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7095 * sysdeps/ia64/fpu/math_err.c: New file.
7096 * sysdeps/ia64/fpu/t_exp.c: Remove.
7097 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7098 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7099 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7100 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7101 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7102 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7103 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7104 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7105 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7106 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7107 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7108 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7109 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7110 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7111 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7112 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7113
7114 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7115
7116 * sysdeps/alpha/fpu/math_private.h: Remove.
7117
7118 * sysdeps/generic/math_private.h
7119 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7120 Move this inline function ....
7121 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7122 * include/math.h [!_ISOMAC]: To here....
7123
7124 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7125
7126 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7127 code ....
7128 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7129 * include/fenv.h [!_ISOMAC]: ... to here.
7130 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7131 (feraiseexcept): Likewise.
7132 * math/fromfp.h: Do not include <fenv_private.h>.
7133 * math/s_cexp_template.c: Likewise.
7134 * math/s_csin_template.c: Likewise.
7135 * math/s_csinh_template.c: Likewise.
7136 * math/s_ctan_template.c: Likewise.
7137 * math/s_ctanh_template.c: Likewise.
7138 * math/s_iseqsig_template.c: Likewise.
7139 * math/w_acos_compat.c: Likewise.
7140 * math/w_acosf_compat.c: Likewise.
7141 * math/w_acosl_compat.c: Likewise.
7142 * math/w_asin_compat.c: Likewise.
7143 * math/w_asinf_compat.c: Likewise.
7144 * math/w_asinl_compat.c: Likewise.
7145 * math/w_j0_compat.c: Likewise.
7146 * math/w_j0f_compat.c: Likewise.
7147 * math/w_j0l_compat.c: Likewise.
7148 * math/w_j1_compat.c: Likewise.
7149 * math/w_j1f_compat.c: Likewise.
7150 * math/w_j1l_compat.c: Likewise.
7151 * math/w_jn_compat.c: Likewise.
7152 * math/w_jnf_compat.c: Likewise.
7153 * math/w_log10_compat.c: Likewise.
7154 * math/w_log10f_compat.c: Likewise.
7155 * math/w_log10l_compat.c: Likewise.
7156 * math/w_log2_compat.c: Likewise.
7157 * math/w_log2f_compat.c: Likewise.
7158 * math/w_log2l_compat.c: Likewise.
7159 * math/w_log_compat.c: Likewise.
7160 * math/w_logf_compat.c: Likewise.
7161 * math/w_logl_compat.c: Likewise.
7162 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7163 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7164 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7165 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7166 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7167 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7168 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7169 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7170 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7171 * sysdeps/ieee754/k_standardl.c: Likewise.
7172 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7173 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7174 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7175 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7176 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7177 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7178 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7179 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7180 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7181 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7182 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7183 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7184 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7185 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7186 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7187 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7188 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7189 * math/w_ilogb_template.c: Include <fenv.h> instead of
7190 <fenv_private.h>.
7191 * math/w_llogb_template.c: Likewise.
7192 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7193 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7194
7195 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7196
7197 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7198 * math/fromfp.h: Include <fenv_private.h>.
7199 * math/math-narrow.h: Likewise.
7200 * math/s_cexp_template.c: Likewise.
7201 * math/s_csin_template.c: Likewise.
7202 * math/s_csinh_template.c: Likewise.
7203 * math/s_ctan_template.c: Likewise.
7204 * math/s_ctanh_template.c: Likewise.
7205 * math/s_iseqsig_template.c: Likewise.
7206 * math/w_acos_compat.c: Likewise.
7207 * math/w_acosf_compat.c: Likewise.
7208 * math/w_acosl_compat.c: Likewise.
7209 * math/w_asin_compat.c: Likewise.
7210 * math/w_asinf_compat.c: Likewise.
7211 * math/w_asinl_compat.c: Likewise.
7212 * math/w_ilogb_template.c: Likewise.
7213 * math/w_j0_compat.c: Likewise.
7214 * math/w_j0f_compat.c: Likewise.
7215 * math/w_j0l_compat.c: Likewise.
7216 * math/w_j1_compat.c: Likewise.
7217 * math/w_j1f_compat.c: Likewise.
7218 * math/w_j1l_compat.c: Likewise.
7219 * math/w_jn_compat.c: Likewise.
7220 * math/w_jnf_compat.c: Likewise.
7221 * math/w_llogb_template.c: Likewise.
7222 * math/w_log10_compat.c: Likewise.
7223 * math/w_log10f_compat.c: Likewise.
7224 * math/w_log10l_compat.c: Likewise.
7225 * math/w_log2_compat.c: Likewise.
7226 * math/w_log2f_compat.c: Likewise.
7227 * math/w_log2l_compat.c: Likewise.
7228 * math/w_log_compat.c: Likewise.
7229 * math/w_logf_compat.c: Likewise.
7230 * math/w_logl_compat.c: Likewise.
7231 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7232 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7233 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7234 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7235 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7236 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7237 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7238 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7239 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7240 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7241 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7242 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7243 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7244 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7245 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7246 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7247 * sysdeps/ieee754/dbl-64/s_fmaf.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/s_nearbyint.c: Likewise.
7253 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7254 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7255 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7256 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7257 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7258 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7259 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7260 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7261 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7262 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7263 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7264 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7265 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7266 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7267 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7268 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7269 * sysdeps/ieee754/k_standardl.c: Likewise.
7270 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7271 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7272 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7273 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7274 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7275 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7276 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7277 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7278 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7279 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7280 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7281 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7282 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7283 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7284 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7285 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7286 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7287 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7288 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7289 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7290 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7291 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7292 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7293 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7294 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7295 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7296 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7297 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7298 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7299 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7300 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7301 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7302 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7303 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7304 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7305 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7306 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7307 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7308 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7309 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7310 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7311 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7312 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7313 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7314 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7315 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7316 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7317 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7318 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7319 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7320 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7321 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7322 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7323 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7324 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7325 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7326 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7327 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7328 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7329 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7330 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7331 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7332 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7333 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7334 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7335 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7336 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7337 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7338 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7339 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7340 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7341
7342 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7343
7344 [BZ #20271]
7345 * include/stdio.h (__libc_fatal): Mention newline in comment.
7346 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7347 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7348 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7349 * nss/nsswitch.c (__nss_next2): Likewise.
7350 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7351 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7352 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7353 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7354 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7355 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7356 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7357 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7358 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7359 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7360 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7361 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7362 (__netlink_assert_response): Likewise.
7363
7364 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7365
7366 * conform/glibcconform.py: New file.
7367 * conform/list-header-symbols.py: Likewise.
7368 * conform/list-header-symbols.pl: Remove.
7369 * conform/Makefile (tests-special): Only add linknamespace tests
7370 if [PYTHON].
7371 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7372
7373 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 [BZ #23597]
7376 * support/Makefile (libsupport-routines): Add
7377 support_copy_file_range and xcopy_file_range.
7378 * support/support.h: Include <sys/types.h>.
7379 (support_copy_file_range): New prototype.
7380 * support/support_copy_file_range.c: New file. Copied and
7381 modified from io/copy_file_range-compat.c.
7382 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7383 instead of copy_file_range.
7384 * support/xcopy_file_range.c: New file.
7385 * support/xunistd.h (xcopy_file_range): New prototype.
7386
7387 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7388
7389 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7390 xpthread_create and xpthread_join.
7391
7392 2018-08-30 Florian Weimer <fweimer@redhat.com>
7393
7394 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7395
7396 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7397
7398 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7399 if malloc fails.
7400
7401 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7402
7403 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7404 and minus_oflow as non-finite.
7405
7406 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7407
7408 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7409 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7410 moved to fenv_private.h except for ...
7411 (TOINT_INTRINSICS): Kept in math_private.h.
7412 (roundtoint): Likewise.
7413 (converttoint): Likewise.
7414 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7415 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7416 * sysdeps/arm/math_private.h: Remove.
7417 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7418 ....
7419 * sysdeps/generic/math_private.h: ... this file. Include
7420 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7421 Include <fenv_private.h>. Remove functions and macros moved to
7422 fenv_private.h.
7423 * sysdeps/i386/fpu/math_private.h: Remove.
7424 * sysdeps/mips/math_private.h: Move to ....
7425 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7426 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7427 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7428 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7429 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7430 * sysdeps/powerpc/fpu/math_private.h: Do not include
7431 <fenv_private.h>.
7432 * sysdeps/riscv/rvf/math_private.h: Move to ....
7433 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7434 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7435 <fenv_private.h>.
7436 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7437 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7438 * sysdeps/sparc/fpu/math_private.h: Remove.
7439 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7440 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7441 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7442 <fenv_private.h>.
7443 * sysdeps/x86_64/fpu/math_private.h: Do not include
7444 <sysdeps/i386/fpu/fenv_private.h>.
7445
7446 2018-08-28 Florian Weimer <fweimer@redhat.com>
7447
7448 [BZ #23578]
7449 * posix/tst-regcomp-truncated.c: New file.
7450 * posix/Makefile (tests): Add it.
7451 (tst-regcomp-truncated.out): Depend on generated locales.
7452
7453 2018-08-28 Florian Weimer <fweimer@redhat.com>
7454
7455 * support/test-container.c (main): Treat unshare failure with
7456 EPERM as an unsupported test.
7457
7458 2018-08-28 Florian Weimer <fweimer@redhat.com>
7459
7460 [BZ #23520]
7461 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7462 * nscd/netgroupcache.c
7463 (addgetnetgrentX): Add tofreep parameter. Do not free
7464 heap-allocated buffer.
7465 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7466 (addgetnetgrentX_ignore): New function.
7467 (addgetnetgrent): Call it.
7468 (readdgetnetgrent): Likewise.
7469
7470 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7471
7472 * string/memmem.c: Use memcmp for first match.
7473
7474 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7475
7476 [BZ #17426]
7477 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7478
7479 2018-08-27 DJ Delorie <dj@redhat.com>
7480
7481 * support/Makefile (others): Don't list programs explicitly as a
7482 dependency of "others".
7483
7484 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7485
7486 * sysdeps/generic/math-tests-trap-force.h: New file.
7487 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7488 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7489 * sysdeps/powerpc/math-tests.h: Remove file.
7490 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7491
7492 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7493 Torvald Riegel <triegel@redhat.com>
7494
7495 [BZ #23538]
7496 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7497 Update r to include the set wake-request flag if waiters are
7498 remaining after spinning.
7499
7500 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7501
7502 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7503
7504 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7505
7506 [BZ #23578]
7507 regex: fix uninitialized memory access
7508 I introduced this bug into gnulib in commit
7509 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7510 eventually it was merged into glibc. The bug was found by
7511 project-repo <bugs@feusi.co> and reported here:
7512 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7513 Diagnosis and draft fix reported by Assaf Gordon here:
7514 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7515 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7516 * posix/regex_internal.c (build_wcs_upper_buffer):
7517 Fix bug when mbrtowc returns 0.
7518
7519 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7520
7521 * po/be.po: Update translation.
7522
7523 2018-08-24 DJ Delorie <dj@delorie.com>
7524
7525 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7526 $(libunwind).
7527
7528 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7529
7530 [BZ #23400]
7531 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7532 create temporary files in source tree.
7533
7534 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7535
7536 * sysdeps/generic/math-tests-trap.h: New file.
7537 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7538 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7539 * sysdeps/aarch64/math-tests.h: Remove file.
7540 * sysdeps/arm/math-tests.h: Likewise.
7541 * sysdeps/riscv/math-tests.h: Likewise.
7542 * sysdeps/aarch64/math-tests-trap.h: New file.
7543 * sysdeps/arm/math-tests-trap.h: Likewise.
7544 * sysdeps/riscv/math-tests-trap.h: Likewise.
7545
7546 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7547
7548 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7549 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7550 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7551 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7552 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7553 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7554 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7555 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7556 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7557 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7558 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7559 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7560 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7561 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7562 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7563 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7564 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7565 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7566
7567 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7568
7569 * sysdeps/generic/math-tests-exceptions.h: New file.
7570 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7571 (EXCEPTION_TESTS_float): Do not define here.
7572 (EXCEPTION_TESTS_double): Likewise.
7573 (EXCEPTION_TESTS_long_double): Likewise.
7574 (EXCEPTION_TESTS_float128): Likewise.
7575 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7576 Likewise.
7577 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7578 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7579 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7580 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7581 * sysdeps/mips/math-tests.h: Likewise.
7582 * sysdeps/nios2/math-tests.h: Likewise.
7583 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7584 (EXCEPTION_TESTS_float): Do not define here.
7585 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7586 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7587 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7588
7589 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7590
7591 * NEWS: Move optimized sinf entry to 2.29.
7592
7593 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7594
7595 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7596
7597 2018-08-22 DJ Delorie <dj@redhat.com>
7598
7599 * Makefile (testroot.pristine): New rules to initialize the
7600 test-in-container "testroot".
7601 * Makerules (all-testsuite): Add tests-container.
7602 * Rules (tests-expected): Add tests-container.
7603 (binaries-all-tests): Likewise.
7604 (tests-container): New, run these tests in the testroot container.
7605 * support/Makefile (others): Add *-container, support_paths.c,
7606 xmkdirp, and links-dso-program.
7607 * support/links-dso-program-c.c: New.
7608 * support/links-dso-program.cc: New.
7609 * support/test-container.c: New.
7610 * support/shell-container.c: New.
7611 * support/echo-container.c: New.
7612 * support/true-container.c: New.
7613 * support/xmkdirp.c: New.
7614 * support/xsymlink.c: New.
7615 * support/support_paths.c: New.
7616 * support/support.h: Add support paths prototypes.
7617 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7618
7619 * nss/tst-nss-test3.c: Convert to test-in-container.
7620 * nss/tst-nss-test3.root/: New.
7621
7622 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7623
7624 regex: port Gnulib code to z/OS POSIX environment
7625 Problem reported by Arnold Robbins in:
7626 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7627 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7628 Undef.
7629
7630 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7631
7632 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7633 (ROUNDING_TESTS_double): Remove.
7634 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7635 (ROUNDING_TESTS_double): Remove.
7636 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7637 (ROUNDING_TESTS_double): Remove.
7638 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7639 (ROUNDING_TESTS_float): Remove.
7640 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7641 (ROUNDING_TESTS_float): Remove.
7642 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7643 (ROUNDING_TESTS_float): Remove.
7644 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7645 !TEST_MATHVEC here.
7646 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7647 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7648
7649 * sysdeps/generic/math-tests-rounding.h: New file.
7650 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7651 (ROUNDING_TESTS_float): Do not define here.
7652 (ROUNDING_TESTS_double): Likewise.
7653 (ROUNDING_TESTS_long_double): Likewise.
7654 (ROUNDING_TESTS_float128): Likewise.
7655 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7656 (ROUNDING_TESTS_double): Undefine before defining.
7657 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7658 (ROUNDING_TESTS_double): Undefine before defining.
7659 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7660 (ROUNDING_TESTS_double): Undefine before defining.
7661 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7662 (ROUNDING_TESTS_float): Undefine before defining.
7663 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7664 (ROUNDING_TESTS_float): Undefine before defining.
7665 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7666 (ROUNDING_TESTS_float): Undefine before defining.
7667 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7668 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7669 not define here.
7670 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7671 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7672 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7673 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7674 (ROUNDING_TESTS_float): Do not define here.
7675 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7676 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7677 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7678 (ROUNDING_TESTS_float): Likewise.
7679 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7680 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7681 * sysdeps/mips/math-tests.h [__mips_soft_float]
7682 (ROUNDING_TESTS_float): Likewise.
7683 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7684 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7685 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7686 (ROUNDING_TESTS_double): Likewise.
7687 (ROUNDING_TESTS_long_double): Likewise.
7688
7689 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7690
7691 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7692 (PF_XDP): New macro.
7693 (AF_XDP): New macro.
7694 (SOL_XDP): New macro.
7695
7696 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7697
7698 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7699 (TCP_INQ): Likewise.
7700 (TCP_CM_INQ): Likewise.
7701 (TCP_REPAIR_ON): Likewise.
7702 (TCP_REPAIR_OFF): Likewise.
7703 (TCP_REPAIR_OFF_NO_WP): Likewise.
7704 (struct tcp_zerocopy_receive): New type.
7705
7706 2018-08-21 Florian Weimer <fweimer@redhat.com>
7707
7708 * support/support.h (support_descriptor_supports_holes): Declare.
7709 * support/Makefile (libsupport-routines): Add
7710 support_descriptor_supports_holes.
7711 * support/support_descriptor_supports_holes.c: New file.
7712 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7713 and stop testing if holes are not supported.
7714 * io/test-lfs.c (do_prepare): Likewise.
7715 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7716 Likewise.
7717 * timezone/tst-tzset.c (create_tz_file): Likewise.
7718 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7719 variable.
7720 (do_prepare): Set it.
7721 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7722
7723 2018-08-21 Florian Weimer <fweimer@redhat.com>
7724
7725 [BZ #17248]
7726 * Makeconfig (+cflags): Do not sort (and deduplicate).
7727
7728 2018-08-21 Florian Weimer <fweimer@redhat.com>
7729
7730 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7731 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7732
7733 2018-08-20 Florian Weimer <fweimer@redhat.com>
7734
7735 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7736 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7737
7738 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7739
7740 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7741 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7742 and ssi_arch members.
7743
7744 * elf/elf.c (NT_VMCOREDD): New macro.
7745 (AT_MINSIGSTKSZ): Likewise.
7746
7747 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7748
7749 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7750 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7751 s_cosf-ppc64 and s_cosf-power8.
7752 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7753 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7754 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7755 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7762 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7763 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7764
7765 2018-08-17 Florian Weimer <fweimer@redhat.com>
7766
7767 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7768
7769 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7770
7771 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7772
7773 2018-08-16 Florian Weimer <fweimer@redhat.com>
7774
7775 * configure.ac: Add --with-nonshared-cflags option.
7776 * config.make.in (extra-nonshared-cflags): Set variable.
7777 * Makeconfig (CFLAGS-.oS): Use it.
7778 * manual/install.texi (Configuring and compiling): Document
7779 --with-nonshared-cflags.
7780 * configure: Regenerate.
7781 * INSTALL: Likewise.
7782
7783 2018-08-16 Florian Weimer <fweimer@redhat.com>
7784
7785 * Makeconfig (ASFLAGS): Always append required assembler flags.
7786
7787 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7788
7789 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7790 (malloc_consolidate): Likewise.
7791
7792 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7793
7794 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7795
7796 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7797
7798 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7799 every strlen call.
7800
7801 * benchtests/bench-strlen.c: Print performance numbers in json.
7802
7803 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7804
7805 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7806 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7807 only for little endian.
7808 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7809 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7810 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7811 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7812 Add check for little endian.
7813 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7814 (__strcmp_power9): Add check for little endian.
7815 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7816 Add check for little endian.
7817 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7818 (__strncmp_power9): Add check for little endian.
7819 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7820 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7821 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7822 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7823 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7824
7825 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7826
7827 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7828 [!STRLEN](STRLEN): Set to __strlen.
7829 * sysdeps/aarch64/multiarch/strlen.c: New file.
7830 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7831 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7832 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7833 (__libc_ifunc_impl_list): Add strlen.
7834 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7835 strlen_generic and strlen_asimd.
7836
7837 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7838
7839 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7840 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7841 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7842
7843 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7844
7845 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7846
7847 2018-08-14 Florian Weimer <fweimer@redhat.com>
7848
7849 [BZ #23519]
7850 * include/stdio.h (__vfxprintf): Declare.
7851 * stdio-common/fxprintf.c (__vfxprintf): New function.
7852 (__fxprintf): Call it.
7853 * misc/err.c (convert_and_print): Remove function.
7854 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7855 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7856 * misc/Makefile (tests): Add tst-warn-wide.
7857 * misc/tst-warn-wide.c: New file.
7858
7859 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7860 Szabolcs Nagy <szabolcs.nagy@arm.com>
7861
7862 * NEWS: Mention sinf, cosf, sincosf.
7863 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7864 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7865 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7866 constants rather than including generic sincosf.h.
7867 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7868 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7869 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7870 (reduced_cos): Remove.
7871 (sinf_poly): New function.
7872 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7873
7874 2018-08-14 Florian Weimer <fweimer@redhat.com>
7875
7876 [BZ #23521]
7877 [BZ #23522]
7878 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7879 processing, bail out if no room, and close the stream before
7880 returning ERANGE.
7881 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7882 (tst-nss-files-alias-leak): Link with libdl.
7883 (tst-nss-files-alias-leak.out): Depend on nss_files.
7884
7885 * nss/tst-nss-files-alias-leak.c: New file.
7886
7887 2018-08-14 Florian Weimer <fweimer@redhat.com>
7888
7889 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7890 server_user, stat_user.
7891
7892 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7893
7894 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7895 version to 4.18.
7896 (io_pgetevents): New syscall.
7897 (rseq): Likewise.
7898
7899 * manual/install.texi (Configuring and compiling): Do not list
7900 tools used for testing pretty printers here.
7901 (Tools for Compilation): List Python, PExpect and GDB here.
7902 Update descriptions of uses of Perl and Python.
7903 * INSTALL: Regenerate.
7904
7905 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7906 version to 4.18.
7907
7908 2018-08-13 Florian Weimer <fweimer@redhat.com>
7909
7910 * misc/error.c (error): Add missing va_end call.
7911 (error_at_line): Likewise.
7912
7913 2018-08-13 Florian Weimer <fweimer@redhat.com>
7914
7915 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7916
7917 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7918
7919 * benchtests/scripts/benchout.schema.json (properties): Add
7920 new properties.
7921
7922 * benchtests/bench-skeleton.c (main): Add duration and
7923 iterations attributes.
7924
7925 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7926
7927 regex: Gnulib unibyte RRI uses bytes not chars
7928 Adjust the non-glibc code to agree with what Gawk needs for
7929 rational range interpretation (RRI) for regular expression ranges.
7930 In unibyte locales, Gawk wants ranges to use the underlying byte
7931 rather than the character code point. This change does not affect
7932 glibc proper.
7933 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7934 In unibyte locales, use the byte value rather than
7935 running it through btowc.
7936
7937 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7938
7939 * sysdeps/generic/math-tests-snan.h: New file.
7940 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7941 (SNAN_TESTS_float): Do not define here.
7942 (SNAN_TESTS_double): Likewise.
7943 (SNAN_TESTS_long_double): Likewise.
7944 (SNAN_TESTS_float128): Likewise.
7945 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7946 * sysdeps/i386/fpu/math-tests.h: Remove file.
7947 * sysdeps/ia64/math-tests-snan.h: New file.
7948 * sysdeps/ia64/math-tests.h: Remove file.
7949 * sysdeps/x86/math-tests.h: Likewise.
7950 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7951
7952 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7953 Szabolcs Nagy <szabolcs.nagy@arm.com>
7954
7955 * math/Makefile: Add s_sincosf_data.c.
7956 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7957 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7958 (sincosf_poly): Likewise.
7959 (reduce_small): Likewise.
7960 (reduce_large): Likewise.
7961 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7962 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7963 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7964 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7965
7966 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7967 Szabolcs Nagy <szabolcs.nagy@arm.com>
7968
7969 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7970 (converttoint): Use lround.
7971 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7972 document the semantics when TOINT_INTRINSICS is set.
7973 (converttoint): Likewise.
7974 (TOINT_RINT): Remove.
7975 (TOINT_SHIFT): Remove.
7976 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7977 path.
7978
7979 2018-08-10 Florian Weimer <fweimer@redhat.com>
7980
7981 [BZ #23497]
7982 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7983 function.
7984 (__old_getdents64): Use getdents64. Convert entries without
7985 moving them.
7986 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7987 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7988 tst-readdir64-compat.
7989
7990 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7991
7992 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7993 Fix unwind.
7994
7995 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7996
7997 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7998 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7999 code to s390x-mcount.h and #include it.
8000 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8001 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8002 (__fentry__): Add.
8003
8004 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8005
8006 * stdlib/Versions: Remove __fentry__.
8007 * sysdeps/i386/Versions: Add __fentry__.
8008 * sysdeps/x86_64/Versions: Add __fentry__.
8009
8010 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8011
8012 * sysdeps/s390/Makefile: Register the new tests.
8013 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8014 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8015 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8016 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8017 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8018 * sysdeps/s390/tst-dl-runtime.c: New file.
8019
8020 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8021
8022 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8023 Do not clobber R0.
8024
8025 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8026
8027 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8028 Do not clobber R0.
8029
8030 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8031
8032 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8033 Do not clobber R0.
8034
8035 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8036
8037 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8038 Do not clobber R0.
8039
8040 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8041
8042 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8043 Use symbolic offsets for stack variables.
8044
8045 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8046
8047 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8048 Use symbolic offsets for stack variables.
8049
8050 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8051
8052 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8053 Use symbolic offsets for stack variables.
8054
8055 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8056
8057 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8058 Use symbolic offsets for stack variables.
8059
8060 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8061
8062 * math/gen-libm-test.py: New file.
8063 * math/gen-libm-test.pl: Remove.
8064 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8065 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8066 gen-libm-test.pl.
8067 ($(libm-test-c-noauto-obj)): Likewise.
8068 ($(libm-test-c-auto-obj)): Likewise.
8069 ($(libm-test-c-narrow-obj)): Likewise.
8070 (regen-ulps): Likewise.
8071 * math/README.libm-test: Update references to gen-libm-test.pl.
8072 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8073 referencing gen-libm-test.pl.
8074 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8075 * math/libm-test-support.c: Likewise.
8076 * math/libm-test-support.h: Likewise.
8077 * sysdeps/generic/libm-test-ulps: Likewise.
8078
8079 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8080
8081 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8082 Fix value.
8083
8084 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8085
8086 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8087 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8088
8089 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8090
8091 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8092 symbols.
8093 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8094 __pthread_setspecific): Add hidden proto.
8095 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8096 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8097
8098 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8099
8100 * benchtests/bench-string.h (buf1_size, buf2_size): New
8101 variables.
8102 (init_sizes): New function.
8103 (test_init): Use it.
8104 (alloc_buf, exit_error): New functions.
8105 (alloc_bufs): Use ALLOC_BUF.
8106 (realloc_bufs): Remove.
8107 * benchtests/bench-memcmp.c (do_test): Adjust.
8108 * benchtests/bench-memset-large.c (do_test): Likewise.
8109 * benchtests/bench-memset-walk.c (do_test): Likewise.
8110 * benchtests/bench-memset.c (do_test): Likewise.
8111 * benchtests/bench-strncmp.c (do_test): Likewise.
8112
8113 2018-08-06 Andreas Schwab <schwab@suse.de>
8114
8115 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8116 of CONST_THREAD_AREA.
8117
8118 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8119
8120 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8121 (STATE_SAVE_MASK): Likewise.
8122 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8123 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8124 (STATE_SAVE_MASK): Likewise.
8125 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8126 instead of <cpu-features.h>.
8127
8128 2018-08-03 DJ Delorie <dj@redhat.com>
8129
8130 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8131 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8132
8133 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8134
8135 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8136
8137 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8138 after TEST_* calls.
8139 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8140 * math/libm-test-logb.inc (logb_test_data): Likewise.
8141
8142 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8143
8144 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8145 * string/strstr.c (AVAILABLE): Likewise.
8146
8147 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8148
8149 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8150 <init-arch.h>.
8151 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8152 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8153 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8154
8155 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8156
8157 * po/be.po: Update translation.
8158
8159 * po/be.po: Update translation.
8160
8161 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8162
8163 * sysdeps/x86/cpu-features-offsets.sym
8164 (rtld_global_ro_offsetof): Removed.
8165 (CPU_FEATURES_SIZE): Likewise.
8166 (CPUID_OFFSET): Likewise.
8167 (CPUID_SIZE): Likewise.
8168 (CPUID_EAX_OFFSET): Likewise.
8169 (CPUID_EBX_OFFSET): Likewise.
8170 (CPUID_ECX_OFFSET): Likewise.
8171 (CPUID_EDX_OFFSET): Likewise.
8172 (FAMILY_OFFSET): Likewise.
8173 (MODEL_OFFSET): Likewise.
8174 (FEATURE_OFFSET): Likewise.
8175 (FEATURE_SIZ): Likewise.
8176 (COMMON_CPUID_INDEX_1): Likewise.
8177 (COMMON_CPUID_INDEX_7): Likewise.
8178 (FEATURE_INDEX_1): Likewise.
8179 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8180
8181 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8182
8183 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8184 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8185 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8186 (install-locales): Depend on install-locale-archive.
8187 (install-locale-archive): Define.
8188 (install-locale-files): Define.
8189 (build-one-locale): Define macro.
8190 * manual/install.texi (Running make install): Document.
8191 * manual/INSTALL: Regenerate.
8192
8193 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8194
8195 * benchtests/scripts/compare_strings.py: Import traceback.
8196 (parse_file): Pretty-print error.
8197
8198 * NEWS: Mention the change.
8199 * elf/dl-tunables.list: Rename tune namespace to cpu.
8200 * sysdeps/powerpc/dl-tunables.list: Likewise.
8201 * sysdeps/x86/dl-tunables.list: Likewise.
8202 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8203 cpu.name.
8204 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8205 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8206 * manual/README.tunables: Likewise.
8207 * manual/tunables.texi: Likewise.
8208 * sysdeps/powerpc/cpu-features.c: Likewise.
8209 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8210 (init_cpu_features): Likewise.
8211 * sysdeps/x86/cpu-features.c: Likewise.
8212 * sysdeps/x86/cpu-features.h: Likewise.
8213 * sysdeps/x86/cpu-tunables.c: Likewise.
8214 * sysdeps/x86_64/Makefile: Likewise.
8215 * sysdeps/x86/dl-cet.c: Likewise.
8216
8217 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8218
8219 [BZ #23479]
8220 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8221 [__mips_hard_float].
8222 (FE_UNDERFLOW): Likewise.
8223 (FE_OVERFLOW): Likewise.
8224 (FE_DIVBYZERO): Likewise.
8225 (FE_INVALID): Likewise.
8226 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8227 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8228 (FE_UPWARD): Likewise.
8229 (FE_DOWNWARD): Likewise.
8230 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8231 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8232 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8233 [__mips_hard_float].
8234 (FP_ROUNDMODE): Likewise.
8235 (FP_RND_NEAREST): Likewise.
8236 (FP_RND_ZERO): Likewise.
8237 (FP_RND_PINF): Likewise.
8238 (FP_RND_MINF): Likewise.
8239 (FP_EX_INVALID): Likewise.
8240 (FP_EX_OVERFLOW): Likewise.
8241 (FP_EX_UNDERFLOW): Likewise.
8242 (FP_EX_DIVZERO): Likewise.
8243 (FP_EX_INEXACT): Likewise.
8244 (FP_INIT_ROUNDMODE): Likewise.
8245 * sysdeps/mips/nofpu/fesetenv.c: New file.
8246 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8247
8248 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8249
8250 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8251 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8252 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8253 conditional on [FE_UPWARD].
8254
8255 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8256
8257 regex: fix memory leak in Gnulib
8258 Problem and fix reported by Assaf Gordon in:
8259 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8260 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8261 range_ends members too, as they are defined in 'struct
8262 re_charset_t' even if not _LIBC. This affects only Gnulib.
8263
8264 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8265
8266 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8267 ...
8268 (get_common_indices): This.
8269 (init_cpu_features): Updated.
8270
8271 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8272
8273 * sysdeps/generic/math-tests-snan-payload.h: New file.
8274 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8275 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8276 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8277 * sysdeps/generic/math-tests.h: Include
8278 <math-tests-snan-payload.h>.
8279 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8280 * sysdeps/hppa/math-tests.h: Remove file.
8281 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8282 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8283 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8284 Likewise.
8285
8286 * sysdeps/generic/math-tests-snan-cast.h: New file.
8287 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8288 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8289 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8290 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8291
8292 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8293
8294 * version.h (RELEASE): Set to "development".
8295 (VERSION): Set to "2.28.9000".
8296 * NEWS (2.29): New section.
8297
8298 * version.h (RELEASE): Set to "stable".
8299 (VERSION): Set to "2.28".
8300 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8301 * NEWS: Add the list of bugs fixed in 2.28.
8302
8303 * po/ca.po: Update to latest version.
8304 * po/cs.po: Likewise
8305 * po/da.po: Likewise
8306 * po/el.po: Likewise
8307 * po/eo.po: Likewise
8308 * po/es.po: Likewise
8309 * po/fi.po: Likewise
8310 * po/fr.po: Likewise
8311 * po/gl.po: Likewise
8312 * po/hu.po: Likewise
8313 * po/ia.po: Likewise
8314 * po/id.po: Likewise
8315 * po/it.po: Likewise
8316 * po/ja.po: Likewise
8317 * po/ko.po: Likewise
8318 * po/lt.po: Likewise
8319 * po/nb.po: Likewise
8320 * po/nl.po: Likewise
8321 * po/pt_BR.po: Likewise
8322 * po/ru.po: Likewise
8323 * po/rw.po: Likewise
8324 * po/sk.po: Likewise
8325 * po/sl.po: Likewise
8326 * po/tr.po: Likewise
8327 * po/zh_CN.po: Likewise
8328 * po/zh_TW.po: Likewise
8329
8330 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8331
8332 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8333 initialization...
8334 (init): ... before initializing libpthread.
8335
8336 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8337 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8338 (__mach_setup_tls): ... new function.
8339 (mach_setup_tls): New alias.
8340 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8341 __mach_setup_thread.
8342 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8343 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8344 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8345 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8346
8347 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8348
8349 * manual/install.texi: Update versions.
8350 * INSTALL: Regenerate.
8351
8352 * manual/contrib.texi (Contributors): Update contributions.
8353
8354 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8355
8356 * po/be.po: Update translations.
8357
8358 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8359
8360 * sysdeps/sh/libm-test-ulps: Update.
8361
8362 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8363
8364 * po/bg.po: Update translations.
8365 * po/de.po: Likewise.
8366 * po/hr.po: Likewise.
8367 * po/pt_BR.po: Likewise.
8368 * po/sv.po: Likewise.
8369 * po/vi.po: Likewise.
8370
8371 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8372
8373 [BZ #23467]
8374 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8375 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8376 (CFLAGS-tst-cet-property-1.o): New.
8377 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8378 ($(objpfx)tst-cet-property-2): Likewise.
8379 ($(objpfx)tst-cet-property-2.out): Likewise.
8380 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8381 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8382 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8383 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8384 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8385
8386 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8387
8388 [BZ #23458]
8389 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8390
8391 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8392
8393 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8394 __sbrk): Do not set attribute_hidden.
8395 * sysdeps/mach/hurd/not-errno.h: New file.
8396 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8397 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8398
8399 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8400
8401 * po/uk.po: Update translations.
8402 * po/cs.po: Likewise.
8403 * po/pl.po: Likewise.
8404
8405 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8406
8407 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8408 parse beyond the note end.
8409
8410 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8411
8412 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8413 kernel does not support OFD locks.
8414 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8415
8416 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8417
8418 * sysdeps/mach/hurd/Versions (libc): Make __access and
8419 __access_noerrno external so they can override the ld symbols.
8420 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8421 __writev, __open64, __access_noerrno extern so they can be overrided.
8422 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8423 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8424
8425 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8426
8427 * po/libc.pot: Regenerate.
8428
8429 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8430
8431 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8432
8433 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8434
8435 [BZ #23459]
8436 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8437 function.
8438 (init_cpu_features): Call get_extended_indices for both Intel
8439 and AMD CPUs.
8440 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8441 Remove "for AMD" comment.
8442
8443 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8444
8445 [BZ # 23456]
8446 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8447 COMMON_CPUID_INDEX_80000001.
8448
8449 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8450
8451 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8452 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8453
8454 2018-07-26 Florian Weimer <fweimer@redhat.com>
8455
8456 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8457 aliases for symbols not in the implementation namespace.
8458
8459 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8460
8461 [BZ #23393]
8462 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8463 lowercase in LATIN script.
8464 * localedata/Makefile (test-input): Add en_US.UTF-8.
8465 * localedata/en_US.UTF-8.in: New file.
8466 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8467 and restore old tests.
8468 * posix/tst-regexloc.c (do_test): Add back range expression test.
8469
8470 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8471
8472 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8473
8474 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8475
8476 * nptl/threads.h: Move to ...
8477 * sysdeps/nptl/threads.h: ... here.
8478 * sysdeps/hurd/stdc-predef.h: New file.
8479
8480 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8481
8482 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8483 tst-cet-setcontext-1 if CET is enabled.
8484 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8485 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8486
8487 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8488
8489 * include/threads.h: Move to ...
8490 * sysdeps/nptl/threads.h: ... here.
8491 * sysdeps/htl/threads.h: New file.
8492 * conform/Makefile (linknamespace-libs-ISO11): Use
8493 static-thread-library instead of linking libpthread.
8494 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8495
8496 2018-07-25 Florian Weimer <fweimer@redhat.com>
8497
8498 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8499 nanoseconds into seconds.
8500 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8501 (do_test): Likewise.
8502 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8503 (do_test): Likewise. Avoid nanosecond overflow and spurious
8504 timeouts due to system load.
8505 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8506 (child_wait): Increment it.
8507 (do_test): Wait as long as necessary until all expected threads
8508 have arrived.
8509
8510 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8511 H.J. Lu <hongjiu.lu@intel.com>
8512
8513 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8514 __ssp.
8515 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8516 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8517 (__push___start_context): New.
8518 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8519 <asm/prctl.h>.
8520 (__getcontext): Record the current shadow stack base. Save the
8521 caller's shadow stack pointer and base.
8522 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8523 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8524 (__push___start_context): New prototype.
8525 (__makecontext): Call __push___start_context to allocate a new
8526 shadow stack, push __start_context onto the new stack as well
8527 as the new shadow stack.
8528 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8529 <asm/prctl.h>.
8530 (__setcontext): Restore the target shadow stack.
8531 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8532 <asm/prctl.h>.
8533 (__swapcontext): Record the current shadow stack base. Save
8534 the caller's shadow stack pointer and base. Restore the target
8535 shadow stack.
8536 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8537 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8538 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8539
8540 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8541
8542 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8543 tst-setcontext8 and tst-setcontext9.
8544 * stdlib/tst-setcontext6.c: New file.
8545 * stdlib/tst-setcontext7.c: Likewise.
8546 * stdlib/tst-setcontext8.c: Likewise.
8547 * stdlib/tst-setcontext9.c: Likewise.
8548
8549 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8550
8551 * stdlib/Makefile ((tests): Add tst-setcontext5.
8552 * stdlib/tst-setcontext5.c: New file.
8553
8554 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8555
8556 * stdlib/Makefile (tests): Add tst-setcontext4.
8557 * stdlib/tst-setcontext4.c: New file.
8558
8559 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8560
8561 * stdlib/Makefile (tests): Add tst-swapcontext1.
8562 * stdlib/tst-swapcontext1.c: New test.
8563
8564 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8565
8566 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8567 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8568 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8569 and tst-cet-legacy-4c.
8570 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8571 and tst-cet-legacy-mod-4.
8572 (CFLAGS-tst-cet-legacy-2.c): New.
8573 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8574 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8575 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8576 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8577 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8578 ($(objpfx)tst-cet-legacy-1): Likewise.
8579 ($(objpfx)tst-cet-legacy-2): Likewise.
8580 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8581 ($(objpfx)tst-cet-legacy-2a): Likewise.
8582 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8583 ($(objpfx)tst-cet-legacy-4): Likewise.
8584 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8585 ($(objpfx)tst-cet-legacy-4a): Likewise.
8586 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8587 (tst-cet-legacy-4a-ENV): Likewise.
8588 ($(objpfx)tst-cet-legacy-4b): Likewise.
8589 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8590 (tst-cet-legacy-4b-ENV): Likewise.
8591 ($(objpfx)tst-cet-legacy-4c): Likewise.
8592 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8593 (tst-cet-legacy-4c-ENV): Likewise.
8594 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8595 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8596 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8597 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8598 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8599 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8600 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8601 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8602 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8603 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8604 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8605
8606 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8607
8608 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8609 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8610 with ssp_base.
8611 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8612 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8613 with ssp_base.
8614
8615 2018-07-25 Andreas Schwab <schwab@suse.de>
8616
8617 [BZ #23442]
8618 * locale/weightwc.h (findidx): Handle the case where usrc is a
8619 prefix of cp but one character too short.
8620
8621 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8622
8623 * NEWS: Add ISO C threads addition.
8624
8625 2018-07-24 Florian Weimer <fweimer@redhat.com>
8626
8627 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8628 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8629 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8630 4.13.
8631
8632 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8633
8634 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8635 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8636 <sys/prctl.h> and <asm/prctl.h>.
8637 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8638 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8639 and <asm/prctl.h>.
8640 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8641 ARCH_CET_LEGACY_BITMAP.
8642 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8643 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8644 * sysdeps/x86/libc-start.c: Include <startup.h>.
8645
8646 2018-07-24 Florian Weimer <fweimer@redhat.com>
8647
8648 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8649 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8650
8651 2018-07-24 Rical Jasan <rj@2c3t.io>
8652 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8653 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8654
8655 [BZ #14092]
8656 * manual/debug.texi: Update adjacent chapter name.
8657 * manual/probes.texi: Likewise.
8658 * manual/threads.texi (ISO C Threads): New section.
8659 (POSIX Threads): Convert to a section.
8660
8661 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8662 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8663
8664 [BZ# 14092]
8665 * nptl/Makefile (tests): Add new test files.
8666 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8667 * nptl/tst-cnd-basic.c: Likewise.
8668 * nptl/tst-cnd-broadcast.c: Likewise.
8669 * nptl/tst-cnd-timedwait.c: Likewise.
8670 * nptl/tst-mtx-basic.c: Likewise.
8671 * nptl/tst-mtx-recursive.c: Likewise.
8672 * nptl/tst-mtx-timedlock.c: Likewise.
8673 * nptl/tst-mtx-trylock.c: Likewise.
8674 * nptl/tst-thrd-basic.c: Likewise.
8675 * nptl/tst-thrd-detach.c: Likewise.
8676 * nptl/tst-thrd-sleep.c: Likewise.
8677 * nptl/tst-tss-basic.c: Likewise.
8678
8679 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8680
8681 [BZ #14092]
8682 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8683 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8684 symbols.
8685 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8686 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8687 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8688 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8689 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8690 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8691 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8692 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8693 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8694 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8695 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8696 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8698 Likewise.
8699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8700 Likewise.
8701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8702 Likewise.
8703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8704 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8705 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8706 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8707 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8708 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8709 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8710 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8711 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8712 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8713 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8714 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8715 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8716 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8717 Likewise.
8718 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8719 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8720 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8721 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8722 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8723 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8724 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8725 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8726 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8727 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8728 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8729 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8730 ikewise.
8731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8733 Likewise.
8734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8735 Likewise.
8736 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8737 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8738 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8739 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8740 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8741 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8742 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8743 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8744
8745 [BZ #14092]
8746 * conform/data/threads.h-data (thread_local): New macro.
8747 (TSS_DTOR_ITERATIONS): Likewise.
8748 (tss_t): New type.
8749 (tss_dtor_t): Likewise.
8750 (tss_create): New function.
8751 (tss_get): Likewise.
8752 (tss_set): Likewise.
8753 (tss_delete): Likewise.
8754 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8755 tss_get, and tss_set objects.
8756 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8757 * nptl/tss_create.c: New file.
8758 * nptl/tss_delete.c: Likewise.
8759 * nptl/tss_get.c: Likewise.
8760 * nptl/tss_set.c: Likewise.
8761 * sysdeps/nptl/threads.h (thread_local): New define.
8762 (TSS_DTOR_ITERATIONS): Likewise.
8763 (tss_t): New typedef.
8764 (tss_dtor_t): Likewise.
8765 (tss_create): New prototype.
8766 (tss_get): Likewise.
8767 (tss_set): Likewise.
8768 (tss_delete): Likewise.
8769
8770 [BZ #14092]
8771 * conform/data/threads.h-data (cnd_t): New type.
8772 (cnd_init): New function.
8773 (cnd_signal): Likewise.
8774 (cnd_broadcast): Likewise.
8775 (cnd_wait): Likewise.
8776 (cnd_timedwait): Likewise.
8777 (cnd_destroy): Likewise.
8778 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8779 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8780 object.
8781 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8782 * nptl/cnd_broadcast.c: New file.
8783 * nptl/cnd_destroy.c: Likewise.
8784 * nptl/cnd_init.c: Likewise.
8785 * nptl/cnd_signal.c: Likewise.
8786 * nptl/cnd_timedwait.c: Likewise.
8787 * nptl/cnd_wait.c: Likewise.
8788 * sysdeps/nptl/threads.h (cnd_t): New type.
8789 (cnd_init): New prototype.
8790 (cnd_signa): Likewise.
8791 (cnd_broadcast): Likewise.
8792 (cnd_wait): Likewise.
8793 (cnd_timedwait): Likewise.
8794 (cnd_destroy): Likewise.
8795
8796 [BZ #14092]
8797 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8798 (once_flag): New type.
8799 (call_once): New function.
8800 * nptl/Makefile (libpthread-routines): Add call_once object.
8801 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8802 * nptl/call_once.c: New file.
8803 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8804 (once_flag): New type.
8805 (call_once): New prototype.
8806
8807 [BZ #14092]
8808 * conform/data/threads.h-data (mtx_plain): New constant.
8809 (mtx_recursive): Likewise.
8810 (mtx_timed): Likewise.
8811 (mtx_t): New type.
8812 (mtx_init): New function.
8813 (mtx_lock): Likewise.
8814 (mtx_timedlock): Likewise.
8815 (mtx_trylock): Likewise.
8816 (mtx_unlock): Likewise.
8817 (mtx_destroy): Likewise.
8818 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8819 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8820 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8821 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8822 * nptl/mtx_destroy.c: New file.
8823 * nptl/mtx_init.c: Likewise.
8824 * nptl/mtx_lock.c: Likewise.
8825 * nptl/mtx_timedlock.c: Likewise.
8826 * nptl/mtx_trylock.c: Likewise.
8827 * nptl/mtx_unlock.c: Likewise.
8828 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8829 (mtx_recursive): Likewise.
8830 (mtx_timed): Likewise.
8831 (mtx_t): New type.
8832 (mtx_init): New prototype.
8833 (mtx_lock): Likewise.
8834 (mtx_timedlock): Likewise.
8835 (mtx_trylock): Likewise.
8836 (mtx_unlock): Likewise.
8837 (mtx_destroy): Likewise.
8838
8839 [BZ #14092]
8840 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8841 (linknamespace-libs-ISO11): Add libpthread.a.
8842 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8843 functions.
8844 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8845 * nptl/Makefile (headers): Add threads.h.
8846 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8847 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8848 thrd_yield.
8849 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8850 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8851 thrd_join, thrd_sleep, and thrd_yield symbols.
8852 * nptl/descr.h (struct pthread): Add c11 field.
8853 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8854 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8855 routine with expected function prototype.
8856 (__pthread_create_2_1): Add C11 threads check based on attribute
8857 value.
8858 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8859 * nptl/thrd_create.c: New file.
8860 * nptl/thrd_current.c: Likewise.
8861 * nptl/thrd_detach.c: Likewise.
8862 * nptl/thrd_equal.c: Likewise.
8863 * nptl/thrd_exit.c: Likewise.
8864 * nptl/thrd_join.c: Likewise.
8865 * nptl/thrd_priv.h: Likewise.
8866 * nptl/thrd_sleep.c: Likewise.
8867 * nptl/thrd_yield.c: Likewise.
8868 * include/threads.h: Likewise.
8869
8870 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8871
8872 * bits/indirect-return.h: New file.
8873 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8874 * sysdeps/x86/bits/indirect-return.h: Likewise.
8875 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8876 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8877 (swapcontext): Add __INDIRECT_RETURN.
8878 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8879 (prepare_test_buffer): Use it.
8880
8881 2018-07-24 Andreas Schwab <schwab@suse.de>
8882
8883 [BZ #23448]
8884 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8885 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8886
8887 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8888
8889 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8890 Redefine if shadow stack is enabled.
8891 (SYSCALL_ERROR_LABEL): Likewise.
8892 (__vfork): Pop shadow stack and jump back to to caller directly
8893 when shadow stack is in use.
8894 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8895 Redefine if shadow stack is enabled.
8896 (SYSCALL_ERROR_LABEL): Likewise.
8897 (__vfork): Pop shadow stack and jump back to to caller directly
8898 when shadow stack is in use.
8899
8900 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8901
8902 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8903 enabled.
8904 (foo): Likewise.
8905 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8906 (foo): Likewise.
8907
8908 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8909
8910 * scripts/build-many-glibcs.py (Context.checkout): Default
8911 binutils version to 2.31 branch.
8912
8913 2018-07-20 Zong Li <zong@andestech.com>
8914
8915 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8916 URL of gcc's tarball.
8917
8918 2018-07-20 Florian Weimer <fweimer@redhat.com>
8919
8920 [BZ #23396]
8921 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8922 not compare an extra byte after the end of the weights.
8923
8924 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8925
8926 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8927 to 1.
8928 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8929 hidden prototypes.
8930 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8931 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8932 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8933 list of libraries whose stack executability is expected.
8934 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8935 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8936 variable.
8937 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8938 libc.so libpthread.so.
8939
8940 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8941
8942 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8943 SOCK_NONBLOCK.
8944 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8945 and SOCK_NONBLOCK.
8946 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8947 implement __pipe2.
8948 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8949
8950 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8951
8952 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8953 library to improve command line parsing.
8954 (__main__): make schema file as optional parameter (--schema),
8955 defaulting to benchtests/scripts/benchout.schema.json.
8956 (main): move out of the parsing stuff to __main_  and leave it
8957 only as caller of main comparison functions.
8958
8959 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8960
8961 * NEWS: Add a note for Intel CET status.
8962 * manual/install.texi: Likewise.
8963 * INSTALL: Regenerated.
8964
8965 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8966
8967 [BZ #23140]
8968 * localedata/locales/oc_FR (mon): Rename to...
8969 (alt_mon): This, then update October (typo fix).
8970 (mon): New content (genitive case, month names preceded by
8971 "de" or "d’").
8972
8973 [BZ #23422]
8974 * localedata/locales/oc_FR (abday): Update all items.
8975 (day): Update Wednesday and Saturday (typo fixes).
8976 (abmon): Update all items, except May.
8977 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8978 (LC_IDENTIFICATION): Bump the revision number and date.
8979 Keep the "category" entries in alphabetic order.
8980 (LC_ADDRESS): Remove no longer needed comment.
8981 (LC_COLLATE): Use “copy "ca_ES"”.
8982 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8983 "name_mrs".
8984
8985 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8986
8987 * grp/tst_fgetgrent.c: Include <unistd.h>.
8988 (main): Use mkstemp instead of tmpnam.
8989 * io/test-utime.c (main): Likewise.
8990 * posix/annexc.c (macrofile): Change to modifiable array.
8991 (main): Remove macrofile here.
8992 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8993 macrofile here.
8994 (check_header): Do not remove macrofile here.
8995 * posix/bug-getopt1.c: Include <stdlib.h>.
8996 (do_test): Use mkstemp instead of tmpnam.
8997 * posix/bug-getopt2.c: Include <stdlib.h>.
8998 (do_test): Use mkstemp instead of tmpnam.
8999 * posix/bug-getopt3.c: Include <stdlib.h>.
9000 (do_test): Use mkstemp instead of tmpnam.
9001 * posix/bug-getopt4.c: Include <stdlib.h>.
9002 (do_test): Use mkstemp instead of tmpnam.
9003 * posix/bug-getopt5.c: Include <stdlib.h>.
9004 (do_test): Use mkstemp instead of tmpnam.
9005 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9006 (main): Use mkstemp instead of tmpnam.
9007 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9008 (main): Use mkstemp instead of tmpnam.
9009 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9010 (main): use mkstemp instead of tmpnam.
9011 * stdlib/isomac.c (macrofile): Change to modifiable array.
9012 (main): Remove macrofile here.
9013 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9014 macrofile here.
9015 (check_header): Do not remove macrofile here.
9016
9017 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9018
9019 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9020 glibc.tune.x86_shstk.
9021
9022 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9023
9024 * NEWS: Mention --enable-cet.
9025 * manual/install.texi: Document --enable-cet.
9026 * INSTALL: Regenerated.
9027
9028 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9029
9030 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9031 Add _CET_NOTRACK before indirect jump to jump table.
9032
9033 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9034
9035 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9036 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9037 to jump table.
9038
9039 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9040
9041 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9042 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9043 to jump table.
9044
9045 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9048 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9049 to jump table.
9050
9051 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9052
9053 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9054 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9055 to jump table.
9056
9057 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9058
9059 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9060 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9061 to jump table.
9062 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9063
9064 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9065
9066 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9067 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9068 to jump table.
9069
9070 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9071
9072 * sysdeps/i386/i686/multiarch/memset-sse2.S
9073 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9074 to jump table.
9075
9076 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9077
9078 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9079 indirect jump to jump table.
9080
9081 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9082
9083 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9084 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9085 to jump table.
9086 (MEMCPY): Likewise.
9087
9088 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9089
9090 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9091 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9092 to jump table.
9093 (MEMCPY): Likewise.
9094
9095 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9096
9097 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9098 _CET_NOTRACK before indirect jump to jump table.
9099
9100 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9101
9102 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9103 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9104 to jump table.
9105
9106 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9107
9108 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9109 indirect jump to jump table.
9110
9111 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9112
9113 [BZ #22241]
9114 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9115 (LOCALES): Likewise.
9116 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9117 * localedata/locales/sah_RU: New file.
9118 * localedata/sah_RU.UTF-8.in: New file.
9119
9120 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9121
9122 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9123 "sysdep.h".
9124 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9125 _CET_ENDBR to indirect jump targets and adjust jump destination
9126 for _CET_ENDBR.
9127 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9128 "sysdep.h".
9129 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9130 _CET_ENDBR to indirect jump targets and adjust jump destination
9131 for _CET_ENDBR.
9132 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9133 "sysdep.h".
9134 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9135 _CET_ENDBR to indirect jump targets and adjust jump destination
9136 for _CET_ENDBR.
9137
9138 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9139
9140 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9141 _CET_ENDBR.
9142
9143 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9144
9145 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9146 _CET_ENDBR.
9147 (_dl_tlsdesc_undefweak): Likewise.
9148 (_dl_tlsdesc_dynamic): Likewise.
9149 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9150 (_dl_tlsdesc_resolve_rel): Likewise.
9151 (_dl_tlsdesc_resolve_rela): Likewise.
9152 (_dl_tlsdesc_resolve_hold): Likewise.
9153 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9154 (_dl_tlsdesc_undefweak): Likewise.
9155 (_dl_tlsdesc_dynamic): Likewise.
9156 (_dl_tlsdesc_resolve_rela): Likewise.
9157 (_dl_tlsdesc_resolve_hold): Likewise.
9158
9159 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9162 (_fini): Likewise.
9163 * sysdeps/x86_64/crti.S (_init): Likewise.
9164 (_fini): Likewise.
9165
9166 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9167
9168 [BZ #23140]
9169 * localedata/locales/os_RU (mon): Rename to...
9170 (alt_mon): This.
9171 (mon): Import from CLDR (genitive case).
9172
9173 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9174
9175 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9176 cet-tunables.h> when CET is enabled.
9177
9178 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9179
9180 [BZ #21598]
9181 * configure.ac: Add --enable-cet.
9182 * configure: Regenerated.
9183 * elf/Makefille (all-built-dso): Add a comment.
9184 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9185 Include <dl-prop.h>.
9186 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9187 segment.
9188 * elf/dl-open.c: Include <dl-prop.h>.
9189 (dl_open_worker): Call _dl_open_check.
9190 * elf/rtld.c: Include <dl-prop.h>.
9191 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9192 _rtld_main_check.
9193 * sysdeps/generic/dl-prop.h: New file.
9194 * sysdeps/i386/dl-cet.c: Likewise.
9195 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9196 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9197 * sysdeps/x86/cet-tunables.h: Likewise.
9198 * sysdeps/x86/check-cet.awk: Likewise.
9199 * sysdeps/x86/configure: Likewise.
9200 * sysdeps/x86/configure.ac: Likewise.
9201 * sysdeps/x86/dl-cet.c: Likewise.
9202 * sysdeps/x86/dl-procruntime.c: Likewise.
9203 * sysdeps/x86/dl-prop.h: Likewise.
9204 * sysdeps/x86/libc-start.h: Likewise.
9205 * sysdeps/x86/link_map.h: Likewise.
9206 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9207 _CET_ENDBR.
9208 (_dl_runtime_profile): Likewise.
9209 (_dl_runtime_resolve_shstk): New.
9210 (_dl_runtime_profile_shstk): Likewise.
9211 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9212 if CET is enabled.
9213 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9214 (CFLAGS-.os): Likewise.
9215 (CFLAGS-.op): Likewise.
9216 (CFLAGS-.oS): Likewise.
9217 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9218 is enabled.
9219 (tests-special): Add $(objpfx)check-cet.out.
9220 (cet-built-dso): New.
9221 (+$(cet-built-dso:=.note)): Likewise.
9222 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9223 ($(objpfx)check-cet.out): New.
9224 (generated): Add check-cet.out.
9225 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9226 <cet-tunables.h>.
9227 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9228 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9229 (init_cpu_features): Call get_cet_status to check CET status
9230 and update dl_x86_feature_1 with CET status. Call
9231 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9232 (set_x86_shstk). Disable and lock CET in libc.a.
9233 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9234 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9235 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9236 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9237 (_CET_ENDBR): Define if not defined.
9238 (ENTRY): Add _CET_ENDBR.
9239 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9240 x86_shstk.
9241 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9242 _CET_ENDBR.
9243 (_dl_runtime_profile): Likewise.
9244
9245 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9246
9247 [BZ #21895]
9248 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9249 restore r2 on longjmp.
9250 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9251 test list.
9252 Added rules to build test tst-setjmp-bug21895-static.
9253 Added module setjmp-bug21895 and rules to build a shared object from it.
9254 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9255 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9256
9257 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9258
9259 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9260 * benchtests/bench-strstr.c: Likewise.
9261 * string/memmem.c (FASTSEARCH): Define.
9262 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9263 Add support for FASTSEARCH.
9264 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9265 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9266 (FASTSEARCH): Define.
9267 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9268 * string/test-strstr.c: Likewise.
9269
9270 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9271
9272 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9273 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9274
9275 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9276 H.J. Lu <hongjiu.lu@intel.com>
9277
9278 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9279 (__longjmp): Restore shadow stack pointer if shadow stack is
9280 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9281 isn't defined for __longjmp_cancel.
9282 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9283 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9284 and SHADOW_STACK_POINTER_OFFSET is defined.
9285 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9286 (setjmp): Save shadow stack pointer if shadow stack is enabled
9287 and SHADOW_STACK_POINTER_OFFSET is defined.
9288 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9289 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9290 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9291 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9292 <jmp_buf-ssp.h>.
9293 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9294 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9295 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9296 Remove jmp_buf-ssp.sym.
9297 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9298 <jmp_buf-ssp.h>.
9299 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9300 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9301 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9302 jmp_buf-ssp.sym.
9303 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9304 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9305 (__longjmp): Restore shadow stack pointer if shadow stack is
9306 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9307 isn't defined for __longjmp_cancel.
9308 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9309 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9310 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9311
9312 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9313
9314 [BZ #22563]
9315 * nptl/pthread_create.c: Include <tls-setup.h>.
9316 (__pthread_create_2_1): Call tls_setup_tcbhead.
9317 * sysdeps/generic/tls-setup.h: New file.
9318 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9319 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9320 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9321 Likewise.
9322 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9323 to feature_1.
9324 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9325 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9326 (X86_FEATURE_1_SHSTK): Likewise.
9327 (CET_ENABLED): Likewise.
9328 (IBT_ENABLED): Likewise.
9329 (SHSTK_ENABLED): Likewise.
9330
9331 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9332
9333 [BZ #23208]
9334 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9335 (LOCALES): Likewise.
9336 * localedata/dsb_DE.UTF-8.in: New file.
9337 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9338
9339 2018-07-12 Florian Weimer <fweimer@redhat.com>
9340
9341 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9342 __mprotect, not mprotect.
9343
9344 2018-07-11 Florian Weimer <fweimer@redhat.com>
9345
9346 * io/Makefile (headers): Add bits/statx.h.
9347
9348 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9349
9350 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9351 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9352 and headers.
9353 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9354 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9355 for utf8_gen.py
9356
9357 2018-07-10 Florian Weimer <fweimer@redhat.com>
9358
9359 * io/Makefile (routines): Add statx.
9360 (tests-internal): Add tst-statx.
9361 * io/Versions (GLIBC_2.28): Export statx.
9362 * io/bits/statx.h: New file.
9363 * io/sys/stat.h [__USE_GNU]: Include it.
9364 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9365 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9366 Define.
9367 * io/statx.c: New file.
9368 * io/statx_generic.: Likewise.
9369 * io/tst-statx.: Likewise.
9370 * include/bits/statx.h: Likewise.
9371 * sysdeps/unix/sysv/linux/kernel-features.h
9372 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9373 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9374 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9375 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9376 Undefine.
9377 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9378 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9379 * sysdeps/unix/sysv/linux/statx.c: New file.
9380 * manual/filesys.texi: Note that statx is undocumented.
9381 * sysdeps/**/libc*.abilist: Update.
9382
9383 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9384
9385 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9386 a kernel issue which lead to test failure in some cases.
9387
9388 2018-07-10 Florian Weimer <fweimer@redhat.com>
9389
9390 [BZ #23036]
9391 * posix/regexec.c (check_node_accept_bytes): When comparing
9392 weights, do not compare an extra byte after the end of the
9393 weights.
9394
9395 2018-07-10 Florian Weimer <fweimer@redhat.com>
9396
9397 * libio/readline.c: Fix copyright year.
9398 * libio/tst-readline.c Likewise.
9399 * nss/tst-nss-files-hosts-getent.c: Likewise.
9400
9401 2018-07-06 Florian Weimer <fweimer@redhat.com>
9402
9403 [BZ #18991]
9404 * nss/nss_files/files-XXX.c (internal_getent): Use
9405 __libc_readline_unlocked. Seek back to the start of the line if
9406 parsing failes with ERANGE.
9407 (get_contents_ret, get_contents): Remove.
9408 * nss/tst-nss-files-hosts-getent.c: New file.
9409 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9410 (tst-nss-files-hosts-getent): Link with -ldl.
9411
9412 2018-07-06 Florian Weimer <fweimer@redhat.com>
9413
9414 * include/stdio.h (__libc_readline_unlocked): Declare.
9415 (__ftello64, __fseeko64): Declare aliases.
9416 * libio/readline.c: New file.
9417 * libio/tst-readline.c: Likewise.
9418 (routines): Add readline.
9419 (tests-internal): Add tst-readlime.
9420 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9421 __libc_readline_unlocked.
9422 * libio/fseeko.c (__fseeko): Rename from fseeko.
9423 (fseeko): Add alias.
9424 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9425 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9426 (fseeko64): Add alias.
9427 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9428 * libio/ftello64.c (__ftello64): Rename from ftello64.
9429 (ftello64): Add alias.
9430
9431 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9432
9433 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9434 HWCAP_ATOMICS.
9435
9436 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9437
9438 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9439 Use dl_hwcap without masking.
9440 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9441 Remove HWCAP_CPUID.
9442
9443 2018-07-06 Florian Weimer <fweimer@redhat.com>
9444
9445 * conform/conformtest.pl (checknamespace): Escape literal braces
9446 in regular expressions.
9447
9448 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9449
9450 * sysdeps/x86/cpu-features.c (get_common_indeces):
9451 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9452 * sysdeps/x86/cpu-features.c (init_cpu_features):
9453 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9454
9455 2018-07-05 Florian Weimer <fweimer@redhat.com>
9456
9457 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9458 protector.
9459 (CFLAGS-elf-init.oS): Likewise.
9460
9461 2018-07-05 Florian Weimer <fweimer@redhat.com>
9462 Carlos O'Donell <carlos@redhat.com>
9463
9464 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9465 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9466 with stack protector enabled because there is no risk of infinite
9467 recursion.
9468
9469 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9470
9471 [BZ #19818]
9472 [BZ #23307]
9473 * libc-abis (ABSOLUTE): New ABI.
9474 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9475 * NEWS: Mention the new ABI.
9476
9477 2018-07-05 Florian Weimer <fweimer@redhat.com>
9478
9479 [BZ # 17662]
9480 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9481 (RENAME_WHITEOUT): Define.
9482 [__USE_GNU] (renameat2): Declare.
9483 * stdio-common/Makefile (routines): Add renameat2.
9484 (tests): Add tst-renameat2.
9485 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9486 * stdio-common/renameat2.c: New file.
9487 * stdio-common/tst-renameat2.c: Likewise.
9488 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9489 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9490 undocumented.
9491 * sysdeps/unix/sysv/linux/kernel-features.h
9492 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9493 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9494 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9495 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9496 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9497 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9498 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9499 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9500 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9501 * include/stdio.h (__renameat): Add alias for renameat.
9502 * stdio-common/renameat.c (__renameat): Rename from renameat.
9503 Add hidden definition and alias.
9504 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9505 * sysdeps/mach/hurd/renameat.c: Likewise.
9506 * sysdeps/**/libc*.abilist: Add renameat2.
9507
9508 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9509
9510 * posix/bug-regex33.c: Fix build after regex sync.
9511
9512 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9513
9514 [BZ #23164]
9515 * localedata/tst-langinfo-setlocale.c: New file.
9516 * localedata/tst-langinfo-setlocale-static.c: New file.
9517 * localedata/tst-langinfo-newlocale.c: New file.
9518 * localedata/tst-langinfo-newlocale-static.c: New file.
9519 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9520 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9521 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9522 (tests-static): Remove tst-langinfo-static. Add
9523 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9524 (tests-special): Remove $(objpfx)tst-langinfo.out,
9525 $(objpfx)tst-langinfo-static.out. Add
9526 $(objpfx)tst-langinfo-setlocale.out,
9527 $(objpfx)tst-langinfo-newlocale.out,
9528 $(objpfx)tst-langinfo-setlocale-static.out,
9529 $(objpfx)tst-langinfo-newlocale-static.out.
9530 ($(objpfx)tst-langinfo.out): Remove.
9531 ($(objpfx)tst-langinfo-static.out): Remove.
9532 ($(objpfx)tst-langinfo-newlocale.out): New target.
9533 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9534 (test-xfail-tst-langinfo-newlocale-static): Add.
9535 ($(objpfx)tst-langinfo-setlocale.out): New target.
9536 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9537 * localedata/tst-langinfo.c: Call test_locale.
9538 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9539 data.
9540
9541 2018-07-04 Florian Weimer <fweimer@redhat.com>
9542
9543 testrun.sh: Implement --tool=strace, --tool=valgrind
9544 * Makefile (testrun-script): Define variable.
9545 (testrun.sh): Use variable.
9546 * manual/install.texi (Tools for Compilation): make 4.0 or later
9547 is required.
9548 * configure.ac: Check for make 4.0 or later.
9549 * INSTALL: Regenerate.
9550 * configure: Likewise.
9551
9552 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9553
9554 [BZ #23233]
9555 [BZ #21163]
9556 [BZ #18986]
9557 [BZ #13762]
9558 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9559 * posix/PCRE.tests: Remove invalid test.
9560 * posix/bug-regex28.c: Fix expected values for used syntax.
9561 * posix/bug-regex37.c: New file.
9562 * posix/bug-regex38.c: Likewise.
9563 * posix/regcomp.c: Sync with gnulib.
9564 * posix/regex.c: Likewise.
9565 * posix/regex.h: Likewise.
9566 * posix/regex_internal.c: Likewise.
9567 * posix/regex_internal.h: Likewise.
9568 * posix/regexec.c: Likewise.
9569
9570 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9571
9572 [BZ #23308]
9573 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9574 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9575 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9576 * localedata/unicode-gen/PropList.txt: likewise.
9577 * localedata/unicode-gen/UnicodeData.txt: likewise.
9578 * localedata/charmaps/UTF-8: Regenerate.
9579 * localedata/locales/i18n_ctype: likewise.
9580 * localedata/locales/tr_TR: likewise.
9581 * localedata/locales/translit_circle: likewise.
9582 * localedata/locales/translit_cjk_compat: likewise.
9583 * localedata/locales/translit_combining: likewise.
9584 * localedata/locales/translit_compat: likewise.
9585 * localedata/locales/translit_font: likewise.
9586 * localedata/locales/translit_fraction: likewise.
9587
9588 2018-07-03 Florian Weimer <fweimer@redhat.com>
9589
9590 [BZ #23363]
9591 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9592 * stdio-common/tst-printf.sh: Adjust expected output.
9593 * LICENSES: Update.
9594
9595 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9596
9597 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9598 symbol.
9599
9600 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9601
9602 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9603 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9604 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9605 * stdio-common/tst-printfsz-islongdouble.c: New file.
9606 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9607 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9608 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9609 [subdir == stdio-common] (tests-internal): Add
9610 test-printf-size-ieee128, and test-printf-size-ibm128.
9611 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9612 (CFLAGS-test-printf-size-ibm128.c): New variables.
9613 [subdir == stdio-common] (tests-special): Add
9614 $(objpfx)test-printf-size-ieee128.out and
9615 $(objpfx)test-printf-size-ibm128.out.
9616 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9617 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9618 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9619 __printf_sizeieee128.
9620 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9621 New file.
9622 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9623 Likewise.
9624 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9625 Likewise.
9626
9627 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9628
9629 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9630 (exp2f_inline): Likewise.
9631 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9632 (__math_uflowf): Likewise.
9633 (__math_may_uflowf): Likewise.
9634 (__math_divzerof): Likewise.
9635 (__math_invalidf): Likewise.
9636 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9637 (__math_oflowf): Likewise.
9638 (__math_uflowf): Likewise.
9639 (__math_may_uflowf): Likewise.
9640 (__math_divzerof): Likewise.
9641 (__math_invalidf): Likewise.
9642
9643 2018-06-29 DJ Delorie <dj@redhat.com>
9644 Carlos O'Donell <carlos@redhat.com>
9645
9646 [BZ #23329]
9647 * include/libc-symbols.h: Comment the freeres framework.
9648 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9649 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9650 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9651 * dlfcn/dlerror.c: Include libc-symbols.h
9652 (__dlerror_main_freeres): New function.
9653 * dlfcn/dlfreeres.c: New file.
9654 * dlfcn/sdlfreeres.c: New file.
9655 * include/dlfcn.h: Declare __dlerror_main_freeres.
9656 * malloc/set-freeres.c: Declare __libdl_freeres, and
9657 __libpthread_freeres.
9658 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9659 the releavant libraries are loaded.
9660 * malloc/thread-freeres.c: Add comments.
9661 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9662 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9663 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9664 (__free_stacks): Rename to...
9665 (free_stacks): ...this. Mark static.
9666 (queue_stack): Call free_stacks.
9667 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9668 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9669 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9670 ptr_freeres element from struct.
9671 (pthread_functions): Remove .ptr_freeres from struct initializer.
9672 [SHARED] (nptl_freeres): Remove.
9673 * nptl/nptlfreeres.c: New file.
9674 * nptl/pthreadP.h
9675 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9676 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9677 attribute_hidden.
9678 (__free_stacks): Rename to...
9679 (__nptl_stacks_freeres): ...this.
9680 (__shm_directory_freeres): Declare.
9681 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9682 (__nptl_unwind_freeres): ...this.
9683 * resolv/res-close.c: Add comment.
9684 * resolv/resolv_conf.c: Include libc-symbols.h.
9685 * string/strerror_l.c: Include libc-symbols.h.
9686 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9687 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9688 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9689 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9690
9691 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9692
9693 * stdlib/tst-strfmon_l.c: Add tests for long double.
9694
9695 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9696
9697 [BZ #23208]
9698 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9699 * localedata/locales/dsb_DE: New file.
9700
9701 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9702
9703 [BZ #23140]
9704 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9705 genitive case).
9706 (alt_mon): New entry, import from CLDR (nominative case).
9707
9708 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9709
9710 [BZ #22996]
9711 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9712
9713 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9714
9715 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9716 Use vector registers.
9717
9718 * sysdeps/aarch64/multiarch/memmove_falkor.S
9719 (__memcpy_falkor): Use vector registers.
9720
9721 2018-06-29 Martin Sebor <msebor@redhat.com>
9722
9723 * manual/stdio.texi (Customizing Printf): Mention interaction
9724 with GCC built-ins.
9725
9726 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9727
9728 [BZ #23307]
9729 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9730 `st_value' is 0 if `st_shndx' is SHN_ABS.
9731 * elf/tst-absolute-zero.c: New file.
9732 * elf/tst-absolute-zero-lib.c: New file.
9733 * elf/tst-absolute-zero-lib.lds: New file.
9734 * elf/Makefile (tests): Add `tst-absolute-zero'.
9735 (modules-names): Add `tst-absolute-zero-lib'.
9736 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9737 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9738 ($(objpfx)tst-absolute-zero: New dependency.
9739
9740 2018-06-29 Zack Weinberg <zackw@panix.com>
9741
9742 * configure.ac: New command-line option --disable-crypt.
9743 Force --disable-nss-crypt when --disable-crypt is given, with a
9744 warning if it was explicitly enabled.
9745 * configure: Regenerate.
9746 * config.make.in: New boolean substitution variable $(build-crypt).
9747 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9748 when $(build-crypt).
9749 * manual/install.texi: Document --disable-crypt.
9750 * INSTALL: Regenerate.
9751
9752 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9753 which is never set.
9754 * conform/Makefile: Only include libcrypt.a in
9755 linknamespace-libs-xsi and linknamespace-libs-XPG4
9756 when $(build-crypt).
9757 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9758 USE_CRYPT to 1 when $(build-crypt).
9759 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9760 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9761 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9762
9763 2018-06-29 Zack Weinberg <zackw@panix.com>
9764
9765 * crypt/crypt.h, posix/unistd.h: Update comments and
9766 prototypes for crypt and crypt_r.
9767
9768 * manual/crypt.texi (Cryptographic Functions): New initial
9769 exposition.
9770 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9771 (Unpredictable Bytes): Improve initial exposition. Clarify error
9772 behavior of getentropy and getrandom.
9773 * manual/examples/genpass.c: Generate a salt using getentropy
9774 instead of the current time. Use hash $5$ (SHA-2-256).
9775 * manual/examples/testpass.c: Demonstrate validation against
9776 hashes generated with three different one-way functions.
9777
9778 * manual/intro.texi: crypt.texi does not need an overview
9779 anymore.
9780
9781 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9782 * manual/terminal.texi: Consistently refer to "passphrases"
9783 * instead of "passwords", and to the "user database" instead
9784 * of the "password database".
9785 * manual/users.texi: Similarly. Add notes about how actual
9786 passphrase hashes are now stored in the shadow database.
9787 Remove 20-year-old junk todo note.
9788
9789 2018-06-29 Zack Weinberg <zackw@panix.com>
9790
9791 * manual/crypt.texi: Use a normal top-level @node declaration.
9792 Move most of the introductory text to the 'crypt' section.
9793 Move the example programs below the @deftypefun for 'crypt_r'.
9794 Move the 'getpass' section...
9795 * manual/terminal.texi: ...here.
9796
9797 2018-06-29 Zack Weinberg <zackw@panix.com>
9798 Florian Weimer <fweimer@redhat.com>
9799
9800 * posix/unistd.h: Do not declare encrypt.
9801 (_XOPEN_CRYPT): Remove macro definition.
9802 (crypt): Declare only for _USE_MISC.
9803 * stdlib/stdlib.h: Do not declare setkey.
9804 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9805 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9806
9807 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9808 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9809 into compat symbols. Don't define initial_perm if it's not
9810 going to be used.
9811 * crypt/cert.c: Link explicitly with the expected versions for
9812 setkey and encrypt. If they are not available at all, mark
9813 the test as unsupported.
9814
9815 * sunrpc/des_crypt.c: Unconditionally block linkage with
9816 cbc_crypt and ecb_crypt for new binaries.
9817 * sunrpc/des_soft.c: Unconditionally block linkage with
9818 des_setparity for new binaries.
9819
9820 * manual/crypt.texi: Remove the entire "DES Encryption"
9821 section. Also remove the paragraph talking about FIPS 140-2
9822 from the introduction.
9823 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9824 of libgcrypt for "real" encryption, not DES.
9825 * manual/conf.texi (Constants for Sysconf): Mention that
9826 _XOPEN_CRYPT is no longer impelemented.
9827
9828 * conform/data/unistd.h-data: Remove crypt function declaration.
9829
9830 2018-06-29 Florian Weimer <fweimer@redhat.com>
9831
9832 [BZ #23351]
9833 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9834 (disallow_malloc_check): Remove variable.
9835 (__malloc_check_init): Adjust.
9836 (malloc_set_state): Update comment.
9837 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9838 declarations.
9839
9840 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9841
9842 [BZ #23140]
9843 * localedata/locales/ast_ES (mon): Rename to...
9844 (alt_mon): This.
9845 (mon): Import from CLDR (genitive case).
9846
9847 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9848 Jakub Sitnicki <jkbs@redhat.com>
9849
9850 [BZ #21812]
9851 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9852 on NLM_F_DUMP_INTR.
9853
9854 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9855
9856 * manual/llio.texi: Remove spurious space.
9857
9858 2018-06-28 Florian Weimer <fweimer@redhat.com>
9859
9860 [BZ #23349]
9861 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9862 _STRUCT_TIMESPEC.
9863
9864 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9865
9866 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9867 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9868 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9869 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9870 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9871 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9872 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9873
9874 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9875
9876 [BZ #23266]
9877 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9878 Copy and null-terminate entries that are not terminated, in
9879 addition to empty ones.
9880
9881 2018-06-27 Florian Weimer <fweimer@redhat.com>
9882
9883 [BZ #18023]
9884 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9885 (extend_alloca_account): Remove.
9886 * manual/stdio.texi (Variable Arguments Output): Update comment.
9887
9888 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9889
9890 * nptl/sockperf.c: Remove file.
9891
9892 2018-06-27 Florian Weimer <fweimer@redhat.com>
9893
9894 [BZ #18023]
9895 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9896 scratch_buffer instead of extend_alloca.
9897
9898 2018-06-27 Florian Weimer <fweimer@redhat.com>
9899
9900 [BZ #18023]
9901 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9902 scratch_buffer instead of extend_alloca. Update comments.
9903
9904 2018-06-27 Florian Weimer <fweimer@redhat.com>
9905
9906 [BZ #18023]
9907 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9908 instead of extend_alloca.
9909
9910 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9911
9912 [BZ #13888]
9913 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9914 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9915 /tmp.
9916 * scripts/test-installation.pl: Put temporary files in build
9917 directory, not /tmp.
9918 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9919 (CFLAGS-bug4.c): Likewise.
9920 (CFLAGS-bug5.c): Likewise.
9921 (CFLAGS-test-fseek.c): Likewise.
9922 (CFLAGS-test-popen.c): Likewise.
9923 (CFLAGS-test_rdwr.c): Likewise.
9924 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9925 /tmp.
9926 * stdio-common/bug4.c (main): Likewise.
9927 * stdio-common/bug5.c (main): Likewise.
9928 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9929 * stdio-common/test-popen.c (do_test): Likewise.
9930 * stdio-common/test_rdwr.c (main): Likewise.
9931
9932 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9933
9934 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9935 (sem_open): Set sem.newsem.pad to zero for valgrind.
9936
9937 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9938
9939 [BZ #20251]
9940 * NEWS: Mention fcntl64 addition.
9941 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9942 * login/utmp_file.c: Likewise.
9943 * sysdeps/posix/fdopendir.c: Likewise.
9944 * sysdeps/posix/opendir.c: Likewise.
9945 * sysdeps/unix/pt-fcntl.c: Likewise.
9946 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9947 __fcntl64_nocancel_adjusted): New prototype.
9948 (__fcntl_nocancel_adjusted): Remove prototype.
9949 * io/Makefile (routines): Add fcntl64.
9950 (CFLAGS-fcntl64.c): New rule.
9951 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9952 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9953 * io/fcntl.h (fcntl64): Add prototype and redirect if
9954 __USE_FILE_OFFSET64 is defined.
9955 * io/fcntl64.c: New file.
9956 * manual/llio.text: Add a note for which commands fcntl acts a
9957 cancellation point.
9958 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9959 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9960 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9961 New symbols.
9962 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9963 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9964 non-LFS case.
9965 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9966 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9967 to __fcntl64_nocancel.
9968 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9969 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9970 to __fcntl64_nocancel.
9971 * sysdeps/generic/not-cancel.h: Likewise.
9972 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9973 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9974 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9975 (fcntl64): New symbol.
9976 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9977 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9978 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9980 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9981 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9982 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9983 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9984 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9985 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9986 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9987 fcntl64): Likewise.
9988 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9989 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9990 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9991 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9992 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9993 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9994 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9995 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9996 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9998 Likewise.
9999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10000 Likewise.
10001 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10002 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10003 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10004
10005 2018-06-26 Florian Weimer <fweimer@redhat.com>
10006
10007 Run thread shutdown functions in an explicit order.
10008 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10009 definition.
10010 (__libc_thread_freeres): Call thread shutdown functions
10011 explicitly.
10012 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10013 * include/string.h (__strerror_thread_freeres): Declare.
10014 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10015 arena_thread_freeres. No longer static. Remove thread shutdown
10016 hook registration.
10017 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10018 Declare.
10019 * resolv/res-close.c (__res_thread_freeres): Renamed from
10020 res_thread_freeres. No longer static. Remove thread shutdown
10021 hook registration.
10022 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10023 * resolv/resolv_conf.c (freeres): Remove incorrect section
10024 attribute and use libc_freeres_fn.
10025 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10026 strerror_thread_freeres. No longer static. Remove thread
10027 shutdown hook registration.
10028 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10029 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10030 shutdown hook registration.
10031 * Makerules (shlib.lds): Do not provide section boundary symbols
10032 for __libc_thread_subfreeres.
10033 * manual/memory.texi (Basic Allocation): Update comment.
10034
10035 2018-06-26 Florian Weimer <fweimer@redhat.com>
10036
10037 Remove always-defined _RPC_THREAD_SAFE_ macro.
10038 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10039 Do not define _RPC_THREAD_SAFE_.
10040 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10041 conditional.
10042 * sunrpc/clnt_perr.c: Likewise.
10043 * sunrpc/clnt_raw.c: Likewise.
10044 * sunrpc/clnt_simp.c: Likewise.
10045 * sunrpc/key_call.c: Likewise.
10046 * sunrpc/rpc_common.c: Likewise.
10047 * sunrpc/rpc_main.c: Likewise.
10048 * sunrpc/rpc_thread.c: Likewise.
10049 * sunrpc/svc.c: Likewise.
10050 * sunrpc/svc_raw.c: Likewise.
10051 * sunrpc/svc_simple.c: Likewise.
10052 * sumrpc/svcauth_des.c: Likewise.
10053
10054 2018-06-26 Florian Weimer <fweimer@redhat.com>
10055
10056 * libio/Makefile (tests-internal): Add tst-vtables,
10057 tst-vtables-interposed.
10058 * libio/tst-vtables.c: New file.
10059 * libio/tst-vtables-common.c: Likewise.
10060 * libio/tst-vtables-interposed.c: Likewise.
10061
10062 2018-06-26 Florian Weimer <fweimer@redhat.com>
10063
10064 * support/support_test_main.c (support_test_main): Only call
10065 setvbuf if not disables.
10066 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10067 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10068
10069 2018-06-26 Florian Weimer <fweimer@redhat.com>
10070
10071 [BZ #23313]
10072 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10073
10074 2018-06-25 Florian Weimer <fweimer@redhat.com>
10075
10076 [BZ #18023]
10077 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10078 Use struct scratch_buffer instead of extend_alloca.
10079
10080 2018-06-25 Florian Weimer <fweimer@redhat.com>
10081
10082 [BZ #18023]
10083 * nss/getent.c (initgroups_keys): Use dynarray instead of
10084 extend_alloca.
10085
10086 2018-06-25 Florian Weimer <fweimer@redhat.com>
10087
10088 [BZ #18023]
10089 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10090 Use struct scratch_buffer instead of extend_alloca.
10091
10092 2018-06-25 Florian Weimer <fweimer@redhat.com>
10093
10094 [BZ #18023]
10095 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10096 back to malloc directly, without stack allocations.
10097
10098 2018-06-25 Florian Weimer <fweimer@redhat.com>
10099
10100 [BZ #18023]
10101 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10102 of extend_alloca.
10103
10104 2018-06-25 Florian Weimer <fweimer@redhat.com>
10105
10106 [BZ #18023]
10107 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10108 of extend_alloca.
10109 * nscd/hstcache.c (addhstbyX): Likewise.
10110 * nscd/pwdcache.c (addpwbyX): Likewise.
10111 * nscd/servicescache.c (addservbyX): Likewise.
10112
10113 2018-06-25 Florian Weimer <fweimer@redhat.com>
10114
10115 [BZ #18023]
10116 * nscd/connections.c (read_cmdline): New function.
10117 (restart): Use it. Update comment.
10118
10119 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10120
10121 [BZ #23140]
10122 * localedata/locales/csb_PL (mon): Rename to...
10123 (alt_mon): This.
10124 (abmon): Rename to...
10125 (ab_alt_mon): This.
10126 (mon): Add with proper genitive forms, copy from Wikipedia.
10127 (abmon): Likewise.
10128
10129 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10130
10131 [BZ #19485]
10132 * localedata/locales/csb_PL (mon): Fix typos:
10133 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10134 (yesstr): Add, value is "jo".
10135 (nostr): Add, value is "nié".
10136
10137 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10138
10139 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10140 all log1p and significand functions on m680x0.
10141 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10142 of s_significand.c..
10143 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10144 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10145 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10146 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10147 s_log1p.c and include it..
10148
10149 2018-06-21 Vincent Chen <vincentc@andestech.com>
10150
10151 * elf/elf.h (R_NDS32_NONE): New define.
10152 (R_NDS32_32_RELA): Likewise.
10153 (R_NDS32_COPY): Likewise.
10154 (R_NDS32_GLOB_DAT): Likewise.
10155 (R_NDS32_JUMP_SLOT): Likewise.
10156 (R_NDS32_RELATIVE): Likewise.
10157 (R_NDS32_TLS_TPOFF): Likewise.
10158 (R_NDS32_TLS_DESC): Likewise.
10159
10160 2018-06-21 Mark Wielaard <mark@klomp.org>
10161
10162 * elf/elf.h (R_BPF_MAP_FD): Removed.
10163 (R_BPF_64_64, R_BPF_64_32): New.
10164
10165 2018-06-21 Florian Weimer <fweimer@redhat.com>
10166
10167 [BZ #23253]
10168 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10169 Renamed from libc_feholdsetround_ctx.
10170 (default_libc_feresetround_ctx): Renamed from
10171 libc_feresetround_ctx.
10172 (default_libc_feholdsetround_noex_ctx): Renamed from
10173 libc_feholdsetround_noex_ctx.
10174 (default_libc_feresetround_noex_ctx): Renamed from
10175 libc_feresetround_noex_ctx.
10176 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10177 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10178 forwardning to the old implementations under the new names.
10179 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10180 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10181 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10182 (libc_feresetround_ctx): Forward to default implements for i386
10183 and MATH_SET_BOTH_ROUNDING_MODES.
10184 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10185 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10186
10187 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10188
10189 * string/tst-cmp.c: Include <libc-diag.h>.
10190 (strncmp_max): Disable -Wstringop-overflow= around call to
10191 strncmp.
10192 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10193 strncasecmp.
10194
10195 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10196 (main): Disable -Wunused-value around call to strpbrk.
10197 * string/bug-strspn1.c: Include <libc-diag.h>.
10198 (main): Disable -Wunused-value around call to strspn.
10199
10200 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10201 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10202
10203 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10204 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10205
10206 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10207
10208 * math/Makefile (libm-calls): Move s_significandF to...
10209 (gen-libm-calls): ... here.
10210 * math/s_significand_template.c: New file.
10211 * math/s_significand.c: Removed.
10212 * math/s_significandf.c: Removed.
10213 * math/s_significandl.c: Removed.
10214 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10215 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10216
10217 * math/e_exp2_template.c (declare_mgen_finite_alias,
10218 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10219 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10220 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10221
10222 2018-06-20 Florian Weimer <fweimer@redhat.com>
10223
10224 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10225
10226 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10227
10228 [BZ #23280]
10229 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10230 floating-point number to strtod functions rather than possibly
10231 negating result of those functions.
10232 * stdio-common/tst-scanf-round.c: New file.
10233 * stdio-common/Makefile (tests): Add tst-scanf-round.
10234 ($(objpfx)tst-scanf-round): Depend on $(libm).
10235
10236 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10237
10238 * sysdeps/mach/hurd/localplt.data: Move to...
10239 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10240 R_386_GLOB_DAT like on Linux i386.
10241
10242 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10243
10244 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10245 (SHM_STAT_ANY): New macro.
10246 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10247 (SHM_STAT_ANY): Likewise.
10248 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10249 (SHM_STAT_ANY): Likewise.
10250 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10251 (SHM_STAT_ANY): Likewise.
10252 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10253 (SHM_STAT_ANY): Likewise.
10254 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10255 (SHM_STAT_ANY): Likewise.
10256 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10257 (SHM_STAT_ANY): Likewise.
10258 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10259 (SHM_STAT_ANY): Likewise.
10260 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10261 (SHM_STAT_ANY): Likewise.
10262 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10263 (SHM_STAT_ANY): Likewise.
10264 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10265 (SHM_STAT_ANY): Likewise.
10266 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10267 (SHM_STAT_ANY): Likewise.
10268
10269 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10270 (SEM_STAT_ANY): New macro.
10271 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10272 (SEM_STAT_ANY): Likewise.
10273 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10274 (SEM_STAT_ANY): Likewise.
10275 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10276 (SEM_STAT_ANY): Likewise.
10277 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10278 (SEM_STAT_ANY): Likewise.
10279 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10280 (SEM_STAT_ANY): Likewise.
10281 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10282 (SEM_STAT_ANY): Likewise.
10283 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10284 (SEM_STAT_ANY): Likewise.
10285 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10286 (SEM_STAT_ANY): Likewise.
10287 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10288 (SEM_STAT_ANY): Likewise.
10289
10290 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10291 (MSG_STAT_ANY): New macro.
10292 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10293 (MSG_STAT_ANY): Likewise.
10294 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10295 (MSG_STAT_ANY): Likewise.
10296 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10297 (MSG_STAT_ANY): Likewise.
10298 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10299 (MSG_STAT_ANY): Likewise.
10300 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10301 (MSG_STAT_ANY): Likewise.
10302 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10303 (MSG_STAT_ANY): Likewise.
10304 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10305 (MSG_STAT_ANY): Likewise.
10306 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10307 (MSG_STAT_ANY): Likewise.
10308 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10309 (MSG_STAT_ANY): Likewise.
10310
10311 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10312 (MAP_TYPE): Change value to 0x2b.
10313
10314 2018-06-18 Florian Weimer <fweimer@redhat.com>
10315
10316 [BZ #15722]
10317 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10318 socket with SOCK_CLOEXEC.
10319
10320 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10321
10322 [BZ #23303]
10323 * sysdeps/powerpc/powerpc64/le/Makefile
10324 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10325 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10326 (gnulib-tests): Also add $(f128-loader-link) for
10327 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10328
10329 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10330
10331 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10332 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10333 of sendfile.
10334 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10335 (sendfile64): New strong alias.
10336 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10337 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10338 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10339 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10340 attribute.
10341 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10342 ___pthread_get_cleanup_stack.
10343 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10344 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10345 * mach/shortcut.awk: Make syscall stubs include
10346 <mach-shortcuts-hidden.h> and add hidden definition.
10347 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10348 (__mach_msg): Add hidden prototype.
10349 * mach/msg.c: Include <mach.h>.
10350 (__mach_msg): Add hidden definition.
10351 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10352 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10353 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10354 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10355 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10356 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10357 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10358 prototype and definition.
10359 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10360 hidden target for _hurd_self_sigstate.
10361
10362 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10363
10364 [BZ #23007]
10365 * stdlib/tst-strtod-nan-sign-main.c: New file.
10366 * stdlib/tst-strtod-nan-sign.c: Likewise.
10367 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10368 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10369 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10370 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10371 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10372
10373 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10374
10375 [BZ #23007]
10376 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10377 appropriate sign.
10378
10379 2018-06-14 Florian Weimer <fweimer@redhat.com>
10380
10381 [BZ #23290]
10382 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10383 that the result stays within the ISO-8859-1 range.
10384 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10385 characters are defined in IBM273.
10386
10387 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10388
10389 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10390 __mach_task_self): Remove attribute_hidden.
10391
10392 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10393
10394 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10395 ignore -Wrestrict for one test.
10396
10397 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10398 Szabolcs Nagy <szabolcs.nagy@arm.com>
10399
10400 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10401
10402 2018-06-14 Florian Weimer <fweimer@redhat.com>
10403
10404 * scripts/update-abilist.sh: Accept empty list of files to patch.
10405
10406 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10407
10408 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10409 test-xfail-check-abi-libmachuser): Add.
10410 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10411 __libc_read and __libc_write to __read and __write.
10412 * sysdeps/hurd/include/hurd/port.h: New file.
10413 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10414 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10415 __thread_switch, __evc_wait): Move declarations to...
10416 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10417 attribute_hidden.
10418 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10419 use PLT to call _hurd_self_sigstate.
10420
10421 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10422
10423 [BZ #23279]
10424 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10425 MAX_EXP as overflowing.
10426 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10427 overflow flag.
10428 (round_str): Output also whether result overflows in each rounding
10429 mode.
10430 * stdlib/tst-strtod-round-data: Add more tests.
10431 * stdlib/tst-strtod-round-data.h: Regenerated.
10432 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10433 (TEST): Handle extra arguments for overflow flags.
10434 (struct test_overflow): New type.
10435 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10436 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10437 (test_in_one_mode): Take argument with overflow information.
10438 (do_test): Update calls to test_in_one_mode.
10439
10440 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10441
10442 * elf/dl-load (_dl_dst_substitute): Correct comment.
10443 (_dl_dst_count): Likewise.
10444
10445 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10446 lll_futex_timed_wait.
10447
10448 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10449
10450 [BZ #23277]
10451 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10452 attribute.
10453 * math/test-nan-const.c: New file.
10454 * math/Makefile (tests): Add test-nan-const.
10455 (CFLAGS-test-nan-const.c): New variable.
10456
10457 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10458
10459 * benchtests/scripts/compare_strings.py (process_results): Add
10460 funcs argument. Compare only functions which are selected.
10461 (main): Check if base function is among selected functions.
10462 Pass selected functions to process_results.
10463 (__main__): Add -f/--functions argument.
10464
10465 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10466 Hongbo Zhang <hongbo.zhang@linaro.org>
10467
10468 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10469 __memcpy_falkor for phecda core.
10470 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10471 __memmove_falkor for phecda core.
10472 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10473 __memset_falkor for phecda core.
10474 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10475 for phecda core.
10476 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10477 macro to identify phecda core.
10478
10479 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10480 Andreas Schwab <schwab@suse.de>
10481 Dmitry V. Levin <ldv@altlinux.org>
10482 Florian Weimer <fweimer@redhat.com>
10483
10484 [BZ #23102]
10485 [BZ #21942]
10486 [BZ #18018]
10487 [BZ #23259]
10488 CVE-2011-0536
10489 * elf/dl-dst.h: Remove DL_DST_COUNT.
10490 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10491 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10492 (is_dst): Comment. Support ELF gABI.
10493 (_dl_dst_count): Comment. Simplify and count DSTs.
10494 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10495 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10496 locals.
10497
10498 2018-06-12 Zack Weinberg <zackw@panix.com>
10499
10500 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10501 * sysdeps/unix/sysv/linux/dl-sysdep.c
10502 Include not-cancel.h. Use __close_nocancel instead of __close,
10503 __open64_nocancel instead of __open, __read_nocancel instead of
10504 __libc_read, and __write_nocancel instead of __libc_write.
10505
10506 * csu/check_fds.c (check_one_fd)
10507 * sysdeps/posix/fdopendir.c (__fdopendir)
10508 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10509 instead of __fcntl and/or __libc_fcntl.
10510
10511 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10512 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10513 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10514 Use __open64_nocancel instead of __open_nocancel.
10515
10516 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10517 hidden_proto declarations to the end and issue them if either
10518 IS_IN(libc) or IS_IN(rtld).
10519 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10520 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10521 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10522 read_nocancel, waitpid_nocancel, write_nocancel.
10523
10524 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10525 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10526 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10527
10528 * nptl/pt-fcntl.c: New file.
10529 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10530 (libpthread-routines): Add pt-fcntl.
10531 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10532 (__libc_fcntl): Remove attribute_hidden.
10533 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10534 __fcntl_nocancel_adjusted, not fcntl_common.
10535 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10536 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10537 to fcntl_nocancel.c.
10538 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10541 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10542
10543 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10544 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10545 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10546 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10547 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10548 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10549 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10550 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10551 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10552 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10553 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10554 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10555 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10556 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10557 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10558 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10559 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10560 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10561 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10562 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10563
10564 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10565 libpthread-routines.
10566 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10567 defines nothing.
10568
10569 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10570 __libc_read, and __write instead of __libc_write. Define
10571 __open64 in addition to __open.
10572
10573 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10574
10575 [BZ #23250]
10576 [BZ #10686]
10577 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10578 to _private_tm[3] and add __glibc_reserved2.
10579 Add _Static_assert of offset of __private_ss == 0x30.
10580 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10581 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10582
10583 2018-06-12 Florian Weimer <fweimer@redhat.com>
10584
10585 x86: Make strncmp usable from rtld.
10586 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10587 __strncmp_ia32 if in libc (and not in rtld).
10588 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10589 strncmp if not in libc (and not to __strncmp_sse2).
10590
10591 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10592
10593 [BZ #23140]
10594 * localedata/locales/gd_GB (mon): Rename to...
10595 (alt_mon): This.
10596 (mon): Import from CLDR (genitive case).
10597 * localedata/locales/hsb_DE (mon): Rename to...
10598 (alt_mon): This.
10599 (mon): Import from CLDR (genitive case).
10600 * localedata/locales/wa_BE (mon): Rename to...
10601 (alt_mon): This.
10602 (mon): Add, fill with the proper genitive forms, but CLDR data
10603 is incomplete; completed according to the comments in this file.
10604 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10605
10606 * localedata/locales/wa_BE (country_name): Reword
10607 "Beljike" -> "Beldjike".
10608
10609 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10610
10611 [BZ #23272]
10612 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10613 cases of non-finite arguments.
10614 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10615
10616 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10617
10618 [BZ #23174]
10619 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10620
10621 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10622
10623 [BZ #23264]
10624 * include/unistd.h (__execvpex): New prototype.
10625 * posix/Makefile (tests): Add tst-spawn4.
10626 (tests-internal): Add tst-spawn4-compat.
10627 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10628 * posix/tst-spawn4-compat.c: New file.
10629 * posix/tst-spawn4.c: Likewise.
10630 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10631 binaries as shell scripts.
10632 * sysdeps/posix/spawni.c (__spawni): Likewise.
10633
10634 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10635
10636 [BZ #23145]
10637 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10638 ($(all-built-dso:=.dynsym): New target.
10639 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10640 ($(objpfx)check-initfini.out): New target.
10641 (generated): Add check-initfini.out.
10642 * scripts/check-initfini.awk: New file.
10643 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10644 (_fini): Likewise.
10645 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10646 (_fini): Likewise.
10647 * sysdeps/arm/crti.S (_init): Mark as hidden.
10648 (_fini): Likewise.
10649 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10650 (_fini): Likewise.
10651 * sysdeps/i386/crti.S (_init): Mark as hidden.
10652 (_fini): Likewise.
10653 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10654 (_fini): Likewise.
10655 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10656 (_fini): Likewise.
10657 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10658 (_fini): Likewise.
10659 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10660 (_fini): Likewise.
10661 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10662 (_fini): Likewise.
10663 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10664 (_fini): Likewise.
10665 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10666 (_fini): Likewise.
10667 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10668 (_fini): Likewise.
10669 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10670 (_fini): Likewise.
10671 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10672 (_fini): Likewise.
10673 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10674 (_fini): Likewise.
10675 * sysdeps/sh/crti.S (_init): Mark as hidden.
10676 (_fini): Likewise.
10677 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10678 (_fini): Likewise.
10679 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10680 (_fini): Likewise.
10681
10682 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10683
10684 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10685 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10686 and TF redirection to KFtype and KF only when the default
10687 long double type is not the IEEE 128-bit floating point type.
10688
10689 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10690
10691 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10692 macro.
10693 (HWCAP_USCAT): Likewise.
10694 (HWCAP_ILRCPC): Likewise.
10695 (HWCAP_FLAGM): Likewise.
10696 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10697 Increase to 28.
10698 (_dl_aarch64_cap_flags): Add new flag names.
10699
10700 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10701 (MAP_FIXED_NOREPLACE): New macro.
10702 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10703 (MAP_FIXED_NOREPLACE): Likewise.
10704 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10705 (MAP_FIXED_NOREPLACE): Likewise.
10706 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10707 (MAP_FIXED_NOREPLACE): Likewise.
10708 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10709 (MAP_FIXED_NOREPLACE): Likewise.
10710 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10711 (MAP_FIXED_NOREPLACE): Likewise.
10712 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10713 (MAP_FIXED_NOREPLACE): Likewise.
10714 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10715 (MAP_FIXED_NOREPLACE): Likewise.
10716 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10717 (MAP_FIXED_NOREPLACE): Likewise.
10718 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10719 (MAP_FIXED_NOREPLACE): Likewise.
10720 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10721 (MAP_FIXED_NOREPLACE): Likewise.
10722 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10723 (MAP_FIXED_NOREPLACE): Likewise.
10724 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10725 (MAP_FIXED_NOREPLACE): Likewise.
10726 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10727 (MAP_FIXED_NOREPLACE): Likewise.
10728 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10729 (MAP_FIXED_NOREPLACE): Likewise.
10730
10731 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10732 version to 4.17.
10733
10734 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10735
10736 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10737 version to 4.17
10738
10739 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10740
10741 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10742 int.
10743 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10744
10745 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10746
10747 * benchtests/scripts/compare_string.py: (process_results) Catch
10748 exception in non-existent base_func and catch exception in
10749 non-existent attribute.
10750 (parse_file) Catch exception if input file does not exist.
10751
10752 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10753
10754 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10755 options to avoid diff calculation and omit header, respectively.
10756 (main): process --no-diff and --no-header
10757
10758 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10759 H.J. Lu <hongjiu.lu@intel.com>
10760
10761 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10762 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10763 wcsncmp-sse2.
10764 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10765 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10766 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10767 and __wcsncmp_sse2.
10768 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10769 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10770 AVX unaligned load is fast and vzeroupper is preferred.
10771 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10772 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10773 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10774 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10775 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10776 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10777 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10778 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10779 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10780 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10781 is undefined.
10782
10783 2018-06-01 Florian Weimer <fweimer@redhat.com>
10784
10785 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10786 configuring with --disable-multi-arch, building with
10787 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10788 Haswell-era CPU.
10789
10790 2018-06-01 Florian Weimer <fweimer@redhat.com>
10791
10792 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10793 results from building with “-march=x86-64 -mtune=generic
10794 -mfpmath=sse” and running on a Haswell-era CPU.
10795
10796 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10797
10798 [BZ #18473]
10799 * soft-fp/sqrttf2.c: Remove file.
10800 * soft-fp/sqrtdf2.c: Move to ....
10801 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10802 <shlib-compat.h>.
10803 (__sqrtdf2): Make conditional on
10804 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10805 symbol.
10806 * soft-fp/sqrtsf2.c: Move to ....
10807 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10808 <shlib-compat.h>.
10809 (__sqrtsf2): Make conditional on
10810 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10811 symbol.
10812 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10813 (gcc-double-routines): Remove sqrtdf2.
10814 (gcc-quad-routines): Remove sqrttf2.
10815 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10816 Do not filter out sqrtsf2 and sqrtdf2.
10817 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10818 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10819
10820 2018-06-01 Florian Weimer <fweimer@redhat.com>
10821
10822 * sysdeps/generic/libcidn.abilist: Remove file.
10823
10824 2018-06-01 Florian Weimer <fweimer@redhat.com>
10825
10826 [BZ #23236]
10827 * libio/strfile.h (struct _IO_str_fields): Rename members to
10828 discourage their use and add comment.
10829 (_IO_STR_DYNAMIC): Remove unused macro.
10830 * libio/strops.c (_IO_str_init_static_internal): Do not use
10831 callback pointers. Call malloc and free.
10832 (_IO_str_overflow): Do not use callback pointers. Call malloc
10833 and free.
10834 (enlarge_userbuf): Likewise.
10835 (_IO_str_finish): Call free.
10836 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10837 _allocate_buffer_unused.
10838 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10839 and free.
10840 (enlarge_userbuf): Likewise.
10841 (_IO_wstr_finish): Call free.
10842 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10843 _allocate_buffer_unused, _free_buffer_unused.
10844 * libio/memstream.c (__open_memstream): Likewise.
10845 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10846 * libio/wmemstream.c (open_wmemstream): Likewise.
10847
10848 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10849
10850 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10851 AMD Ryzen 7 1800X.
10852
10853 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10854
10855 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10856 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10857 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10858 New file.
10859 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10860 Likewise.
10861 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10862
10863 2018-05-29 Florian Weimer <fweimer@redhat.com>
10864
10865 * support/Makefile (libsupport-routines): Add
10866 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10867 xpthread_barrierattr_setpshared.
10868 * support/xpthread_barrierattr_destroy.c: New file.
10869 * support/xpthread_barrierattr_init.c: Likewise.
10870 * support/xpthread_barrierattr_setpshared.c: Likewise.
10871
10872 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10873
10874 [BZ #23206]
10875 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10876 _r_debug and update DT_DEBUG for debugger.
10877
10878 2018-05-29 Florian Weimer <fweimer@redhat.com>
10879
10880 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10881 (tst-strtod5i.out): Likewise.
10882
10883 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10884
10885 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10886 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10887 (sparc64-quad-routines): New variable. Moved from ....
10888 [$(subdir) = soft-fp] (sysdep_routines): Add
10889 $(sparc64-quad-routines). Moved from ....
10890 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10891 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10892 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10893 moved from ....
10894 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10895 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10896 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10897 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10898 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10899 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10900 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10901 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10902 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10903 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10904 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10905 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10906 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10907 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10908 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10909 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10910 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10911 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10912 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10913 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10914 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10915 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10916 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10917 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10918 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10919 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10920 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10921 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10922 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10923 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10924 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10925 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10926 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10927 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10928 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10929 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10930 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10931 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10932 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10933 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10934 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10935 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10936 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10937 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10938 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10939 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10940 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10941 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10942 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10943 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10944 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10945 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10946 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10947 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10948 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10949 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10950 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10951 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10952
10953 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10954 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10955 (sparc32-quad-routines): New variable. Moved from ....
10956 [$(subdir) = soft-fp] (sysdep_routines): Add
10957 $(sparc32-quad-routines). Moved from ....
10958 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10959 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10960 moved from ....
10961 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10962 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10963 * sysdeps/sparc/sparc32/q_add.c: ... here.
10964 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10965 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10966 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10967 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10968 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10969 * sysdeps/sparc/sparc32/q_div.c: ... here.
10970 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10971 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10972 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10973 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10974 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10975 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10976 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10977 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10978 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10979 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10980 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10981 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10982 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10983 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10984 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10985 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10986 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10987 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10988 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10989 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10990 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10991 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10992 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10993 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10994 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10995 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10996 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10997 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10998 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10999 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11000 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11001 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11002 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11003 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11004 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11005 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11006 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11007 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11008 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11009 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11010 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11011 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11012 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11013 * sysdeps/sparc/sparc32/q_util.c: ... here.
11014 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11015 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11016 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11017 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11018
11019 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11020 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11021
11022 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11023 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11024 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11025 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11026
11027 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11028
11029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11030 powerpc/soft-fp.
11031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11032 Likewise.
11033 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11034 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11035
11036 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11037
11038 [BZ #23171]
11039 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11040 double version.
11041
11042 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11043
11044 * sysdeps/sh/Implies: Remove sh/soft-fp.
11045 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11046 * sysdeps/sh/sfp-machine.h: ... here.
11047
11048 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11049
11050 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11051 (__mempcpy_erms): Skip zero length.
11052 (__memmove_erms): Likewise.
11053 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11054 (__memset_erms): Likewise.
11055
11056 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11057
11058 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11059 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11060 Add functions moved from ....
11061 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11062 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11063 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11064 from ....
11065 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11066 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11067 * sysdeps/alpha/e_sqrtl.c: ... here.
11068 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11069 * sysdeps/alpha/local-soft-fp.h: ... here.
11070 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11071 * sysdeps/alpha/ots_add.c: ... here.
11072 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11073 * sysdeps/alpha/ots_cmp.c: ... here.
11074 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11075 * sysdeps/alpha/ots_cmpe.c: ... here.
11076 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11077 * sysdeps/alpha/ots_cvtqux.c: ... here.
11078 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11079 * sysdeps/alpha/ots_cvtqx.c: ... here.
11080 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11081 * sysdeps/alpha/ots_cvttx.c: ... here.
11082 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11083 * sysdeps/alpha/ots_cvtxq.c: ... here.
11084 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11085 * sysdeps/alpha/ots_cvtxt.c: ... here.
11086 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11087 * sysdeps/alpha/ots_div.c: ... here.
11088 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11089 * sysdeps/alpha/ots_mul.c: ... here.
11090 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11091 * sysdeps/alpha/ots_nintxq.c: ... here.
11092 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11093 * sysdeps/alpha/ots_sub.c: ... here.
11094 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11095 * sysdeps/alpha/sfp-machine.h: ... here.
11096
11097 2018-05-23 Florian Weimer <fweimer@redhat.com>
11098
11099 [BZ #19728]
11100 [BZ #19729]
11101 [BZ #22247]
11102 CVE-2016-6261
11103 CVE-2016-6263
11104 CVE-2017-14062
11105 Switch to extern IDNA implementation (libidn2).
11106 * libidn: Remove subdirectory.
11107 * LICENSES: Do not mention licensing conditions for the removed
11108 libidn code.
11109 * config.h.in (HAVE_LIBIDN): Remove.
11110 * include/dlfcn.h (__libc_dlopen): Update comment.
11111 * include/idna.h: Remove file.
11112 * inet/Makefile (routines): Add idna.
11113 (tests-static, tests-internal): Add tst-idna_name_classify.
11114 (LOCALES): Generate locales for tests.
11115 (tst-idna_name_classify.out): Depend on generated locales.
11116 * inet/idna_name_classify.c: New file.
11117 * inet/tst-idna_name_classify.c: Likewise.
11118 * inet/net-internal.h (__idna_to_dns_encoding)
11119 (__idna_from_dns_encoding): Declare.
11120 * inet/net-internal.h (enum idna_name_classification): Define.
11121 (__idna_name_classify): Declare.
11122 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11123 __idna_from_dns_encoding.
11124 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11125 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11126 name as a fallback in case of encoding errors.
11127 (getnameinfo): Use DEPRECATED_NI_IDN.
11128 * inet/idna.c: New file.
11129 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11130 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11131 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11132 (modules-names): Add tst-no-libidn2.
11133 (extra-test-objs): Add tst-no-libidn2.os.
11134 (LDFLAGS-tst-no-libidn2.so): Set soname.
11135 (LOCALES): Set, and generate locales.
11136 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11137 (tst-resolv-ai_idn-latin1): Likewise.
11138 (tst-resolv-ai_idn-nolibidn2): Likewise.
11139 (tst-resolv-ai_idn.out): Depend on locales.
11140 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11141 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11142 tst-no-libidn2.so.
11143 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11144 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11145 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11146 * resolv/tst-resolv-ai_idn.c: New file.
11147 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11148 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11149 * resolv/tst-no-libidn2.c: Likewise.
11150 * support/support_format_addrinfo.c (format_ai_flags): Do not
11151 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11152 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11153 (gaih_inet): Call __idna_to_dns_encoding and
11154 __idna_from_dns_encoding, and use the original (punycode) name if
11155 __idna_from_dns_encoding fails due to an encoding error.
11156 (getaddrinfo): Use DEPRECATED_AI_IDN.
11157 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11158 * sysdeps/unix/inet/configure: Remove file.
11159 * sysdeps/unix/inet/configure.ac: Likewise.
11160
11161 2018-05-23 Florian Weimer <fweimer@redhat.com>
11162
11163 Implement allocate_once.
11164 * include/allocate_once.h: New file.
11165 * misc/allocate_once.c: Likewise.
11166 * misc/tst-allocate_once.c: Likewise.
11167 * misc/Makefile (routines): Add allocate_once.
11168 (tests-internal): Add tst-allocate_once.
11169 (generated): Add tst-allocate_once.mtrace,
11170 tst-allocate_once-mem.out.
11171 (tests-special): Add tst-allocate_once-mem.out.
11172 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11173 (tst-allocate_once-mem.out): Call mtrace.
11174 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11175
11176 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 [BZ #23196]
11179 * string/test-memcpy.c (do_test1): New function.
11180 (test_main): Call it.
11181
11182 2018-05-23 Andreas Schwab <schwab@suse.de>
11183
11184 [BZ #23196]
11185 CVE-2018-11237
11186 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11187 (L(preloop_large)): Save initial destination pointer in %r11 and
11188 use it instead of %rax after the loop.
11189 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11190
11191 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11192
11193 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11194 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11195 -I../soft-fp. Moved from ....
11196 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11197 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11198 * sysdeps/aarch64/e_sqrtl.c: ... here.
11199 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11200 * sysdeps/aarch64/sfp-machine.h: ... here.
11201
11202 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11203 -Wmaybe-uninitialized around access to fq[0].
11204 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11205 Likewise.
11206
11207 [BZ #18471]
11208 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11209 aliases for non-libc case of versioned symbols.
11210 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11211 (llseek): Define as compat symbol if
11212 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11213 with link warning.
11214 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11215 Make into a compat symbol, disabled for minimum symbol version
11216 GLIBC_2.28 and later.
11217 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11218
11219 2018-05-22 Florian Weimer <fweimer@redhat.com>
11220
11221 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11222 not add -mpreferred-stack-boundary=4.
11223 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11224 (stack-align-test-flags): Likewise.
11225 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11226 Likewise.
11227 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11228 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11229 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11230 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11231 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11232 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11233 (CFLAGS-tst-align2.c): Likewise.
11234
11235 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11236
11237 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11238 (index_arch_Prefer_FSRM): Likewise.
11239 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11240 Also check Prefer_FSRM.
11241 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11242 Also return OPTIMIZE (erms) for Prefer_FSRM.
11243
11244 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11245
11246 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11247 (index_cpu_FSRM): Likewise.
11248 (reg_FSRM): Likewise.
11249
11250 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11251
11252 * math/gen-tgmath-tests.py: Import sys.
11253 (Tests.__init__): Initialize macros_seen.
11254 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11255 if requested to do so for this macro.
11256 (Tests.add_all_tests): Take argument for macro for which to
11257 generate tests.
11258 (Tests.check_macro_list): New function.
11259 (main): Handle check-list argument and argument specifying macro
11260 for which to generate tests.
11261 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11262 [PYTHON] (tgmath3-macro-tests): Likewise.
11263 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11264 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11265 not test-tgmath3.c.
11266 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11267 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11268 to CFLAGS.
11269 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11270 [PYTHON] ($(foreach
11271 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11272 rule.
11273 [PYTHON] (tests-special): Add
11274 $(objpfx)test-tgmath3-macro-list.out.
11275 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11276
11277 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11278 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11279 later.
11280
11281 [BZ #22639]
11282 * time/tzset.c (SECSPERDAY): Cast to time_t.
11283 * time/tst-y2039.c: New file.
11284 * time/Makefile (tests): Add tst-y2039.
11285
11286 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11287
11288 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11289 (PREFETCH_ONE_SET): Remove duplicate line.
11290
11291 2018-05-17 Florian Weimer <fweimer@redhat.com>
11292
11293 * sysdeps/generic/math-type-macros-double.h: Include
11294 <math-nan-payload-double.h> after <libm-alias-double.h>.
11295 * sysdeps/generic/math-type-macros-float.h: Include
11296 <math-nan-payload-float.h> after <libm-alias-float.h>.
11297 * sysdeps/generic/math-type-macros-float128.h: Include
11298 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11299 * sysdeps/generic/math-type-macros-ldouble.h: Include
11300 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11301
11302 2018-05-17 Andreas Schwab <schwab@suse.de>
11303
11304 * resolv/res_send.c (__res_context_send): Don't set errno when
11305 returing error after malloc failure.
11306
11307 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11308
11309 * nptl/allocatestack.c (allocate_stack): Remove the
11310 !__ASSUME_PRIVATE_FUTEX paths.
11311 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11312 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11313 Likewise.
11314 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11315 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11316 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11317 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11318 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11319 !__ASSUME_PRIVATE_FUTEX path.
11320 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11321 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11322 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11323 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11324 !__ASSUME_PRIVATE_FUTEX macros.
11325 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11326 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11327 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11328 * sysdeps/unix/sysv/linux/kernel-features.h
11329 (__ASSUME_PRIVATE_FUTEX): Removed.
11330
11331 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11332
11333 * math/Makefile (libm-narrow-fns): Add div.
11334 (libm-test-funcs-narrow): Likewise.
11335 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11336 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11337 * math/gen-auto-libm-tests.c (test_functions): Add div.
11338 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11339 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11340 (NARROW_DIV_TRIVIAL): Likewise.
11341 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11342 macro.
11343 (__ddivl): Likewise.
11344 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11345 ddiv.
11346 (CFLAGS-nldbl-ddiv.c): New variable.
11347 (CFLAGS-nldbl-fdiv.c): Likewise.
11348 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11349 __nldbl_ddivl.
11350 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11351 prototype.
11352 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11353 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11354 * math/auto-libm-test-in: Add tests of div.
11355 * math/auto-libm-test-out-narrow-div: New generated file.
11356 * math/libm-test-narrow-div.inc: New file.
11357 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11358 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11359 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11360 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11361 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11362 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11369 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11370 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11371 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11372 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11373 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11374 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11375 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11376 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11377 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11378 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11379 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11380 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11381 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11382 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11383 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11384 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11385 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11386 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11387 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11388 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11393 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11394 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11395 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11396 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11397 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11398 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11399 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11400 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11401
11402 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11403
11404 [BZ #23178]
11405 * nscd/nscd-client.h (sendfileall): Remove prototype.
11406 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11407 (handle_request): Use writeall instead of sendfileall.
11408 * nscd/aicache.c (addhstaiX): Likewise.
11409 * nscd/grpcache.c (cache_addgr): Likewise.
11410 * nscd/hstcache.c (cache_addhst): Likewise.
11411 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11412 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11413 * nscd/pwdcache.c (cache_addpw): Likewise.
11414 * nscd/servicescache.c (cache_addserv): Likewise.
11415 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11416 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11417 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11418 Remove define.
11419
11420 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11421
11422 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11423 Include <string/strncat.c>.
11424 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11425 alias.
11426 (__GI___strncat): New hidden alias.
11427
11428 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11429
11430 * sysdeps/mips/mips32/libm-test-ulps: Update.
11431 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11432
11433 2018-05-16 Florian Weimer <fweimer@redhat.com>
11434
11435 * support/Makefile (libsupport-routines): Add support_quote_blob,
11436 support_test_compare_blob.
11437 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11438 * support/check.h (TEST_COMPARE_BLOB): Define.
11439 (support_test_compare_blob): Declare.
11440 * support/support.h (support_quote_blob): Declare.
11441 * support/support_quote_blob.c: New file.
11442 * support/support_test_compare_blob.c: Likewise.
11443 * support/tst-support_quote_blob.c: Likewise.
11444 * support/tst-test_compare_blob.c: Likewise.
11445
11446 2018-05-16 Florian Weimer <fweimer@redhat.com>
11447
11448 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11449 of <strtod_nan_double.h>.
11450 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11451 instead of SET_MANTISSA.
11452 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11453 of include <strtod_nan_float.h>.
11454 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11455 instead of <strtod_nan_ldouble.h>.
11456 * stdlib/strtod_nan_double.h: Move to ...
11457 * sysdeps/generic/math-nan-payload-double.h: ... here.
11458 (FLOAT): Remove definition.
11459 (SET_MANTISSA): Rename to ...
11460 (SET_NAN_PAYLOAD): ... this.
11461 * stdlib/strtod_nan_float.h: Move to ...
11462 * sysdeps/generic/math-nan-payload-float.h: ... here.
11463 (FLOAT): Remove definition.
11464 (SET_MANTISSA): Rename to ...
11465 (SET_NAN_PAYLOAD): ... this.
11466 * sysdeps/generic/math-type-macros-double.h: Include
11467 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11468 instead of <math-svid-compat.h>.
11469 * sysdeps/generic/math-type-macros-float.h: Include
11470 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11471 instead of <math-svid-compat.h>.
11472 * sysdeps/generic/math-type-macros-float128.h: Include
11473 <math-nan-payload-float128.h>.
11474 * sysdeps/generic/math-type-macros-ldouble.h: Include
11475 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11476 instead of <math-svid-compat.h>.
11477 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11478 check for definition.
11479 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11480 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11481 Include <ieee754_float128.h>.
11482 (FLOAT): Remove definition.
11483 (SET_MANTISSA): Rename to ...
11484 (SET_NAN_PAYLOAD): ... this.
11485 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11486 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11487 Do not include <float128_private.h>.
11488 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11490 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11491 (FLOAT): Remove definition.
11492 (SET_MANTISSA): Rename to ...
11493 (SET_NAN_PAYLOAD): ... this.
11494 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11495 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11496 (FLOAT): Remove definition.
11497 (SET_MANTISSA): Rename to ...
11498 (SET_NAN_PAYLOAD): ... this.
11499 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11500 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11501 (FLOAT): Remove definition.
11502 (SET_MANTISSA): Rename to ...
11503 (SET_NAN_PAYLOAD): ... this.
11504 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11505 of "../stdlib/strtod_nan_double.h".
11506 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11507 of "../stdlib/strtod_nan_float.h".
11508 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11509 instead of "../stdlib/strtod_nan_ldouble.h".
11510 * manual/arith.texi (Parsing of Floats): Adjust comment.
11511
11512 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11513
11514 * math/Makefile (libm-narrow-fns): Add mul.
11515 (libm-test-funcs-narrow): Likewise.
11516 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11517 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11518 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11519 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11520 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11521 (NARROW_MUL_TRIVIAL): Likewise.
11522 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11523 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11524 macro.
11525 (__dmull): Likewise.
11526 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11527 dmul.
11528 (CFLAGS-nldbl-dmul.c): New variable.
11529 (CFLAGS-nldbl-fmul.c): Likewise.
11530 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11531 __nldbl_dmull.
11532 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11533 prototype.
11534 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11535 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11536 * math/auto-libm-test-in: Add tests of mul.
11537 * math/auto-libm-test-out-narrow-mul: New generated file.
11538 * math/libm-test-narrow-mul.inc: New file.
11539 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11540 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11541 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11542 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11543 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11544 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11545 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11546 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11547 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11548 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11549 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11550 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11551 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11552 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11553 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11554 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11555 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11556 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11557 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11558 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11583
11584 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11585
11586 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11587 with *%eax in call.
11588
11589 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11590
11591 * sysdeps/i386/ldsodefs.h: Removed.
11592 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11593 * sysdeps/x86/ldsodefs.h: This.
11594 (La_i86_regs): New.
11595 (La_i86_retval): Likewise.
11596 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11597 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11598
11599 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11600
11601 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11602 unnecessary testl.
11603
11604 2018-05-13 Alan Modra <amodra@gmail.com>
11605
11606 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11607 R_PARISC_TLS_DTPOFF32 reloc addend.
11608
11609 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11610
11611 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11612 * math/math.h: Restrict the prototype definition for the functions
11613 issignaling(_Float128) and iszero(_Float128); and template
11614 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11615 __HAVE_FLOAT128_UNLIKE_LDBL.
11616 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11617 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11618 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11619 __f128() constants; define the type _Float128 as long double;
11620 and reuse long double in __CFLOAT128.
11621
11622 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11623
11624 * sysdeps/generic/math_private.h: Do not include
11625 <math-barriers.h>.
11626 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11627 <math_private.h>.
11628 * math/fromfp.h: Include <math-barriers.h>.
11629 * math/math-narrow.h: Likewise.
11630 * math/s_nextafter.c: Likewise.
11631 * math/s_nexttowardf.c: Likewise.
11632 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11633 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11634 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11635 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11636 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11637 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11638 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11639 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11640 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11641 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11642 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11643 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11644 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11645 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11646 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11647 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11648 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11649 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11650 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11651 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11652 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11653 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11654 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11655 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11656 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11657 * sysdeps/ieee754/k_standardl.c: Likewise.
11658 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11659 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11660 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11661 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11662 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11663 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11664 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11665 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11666 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11667 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11668 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11669 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11670 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11671 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11672 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11673 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11674 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11675 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11676 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11677 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11678 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11679 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11680
11681 2018-05-11 Florian Weimer <fweimer@redhat.com>
11682
11683 Use 64-bit epoch values in the time zone file parser.
11684 * include/time.h (internal_time_t): Define.
11685 (__tzfile_compute): Use it.
11686 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11687 member.
11688 (transitions): Switch to internal_time_t.
11689 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11690 types.
11691 (__tzfile_compute): Use internal_time_t for timer argument. Check
11692 for truncation before calling __offtime.
11693
11694 2018-05-11 Florian Weimer <fweimer@redhat.com>
11695
11696 [BZ #23166]
11697 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11698 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11699 Likewise.
11700 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11701 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11702 export without --enable-obsolete-rpc.
11703 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11704 symbol. This should not have been exported, ever.
11705
11706 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11707
11708 [BZ #23152]
11709 * localedata/locales/gd_GB (abmon): Fix typo in May:
11710 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11711
11712 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11713
11714 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11715 Use multiple registers to copy data in loop tail.
11716
11717 * sysdeps/aarch64/multiarch/memmove_falkor.S
11718 (__memmove_falkor): Use multiple registers to move data in
11719 loop tail.
11720
11721 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11722
11723 * math/math-underflow.h: New file.
11724 * sysdeps/generic/math_private.h: Do not include <float.h>.
11725 (fabs_tg): Remove macro. Moved to math-underflow.h.
11726 (min_of_type_f): Likewise.
11727 (min_of_type_): Likewise.
11728 (min_of_type_l): Likewise.
11729 (min_of_type_f128): Likewise.
11730 (min_of_type): Likewise.
11731 (math_check_force_underflow): Likewise.
11732 (math_check_force_underflow_nonneg): Likewise.
11733 (math_check_force_underflow_complex): Likewise.
11734 * math/e_exp2_template.c: Include <math-underflow.h>.
11735 * math/k_casinh_template.c: Likewise.
11736 * math/s_catan_template.c: Likewise.
11737 * math/s_catanh_template.c: Likewise.
11738 * math/s_ccosh_template.c: Likewise.
11739 * math/s_cexp_template.c: Likewise.
11740 * math/s_clog10_template.c: Likewise.
11741 * math/s_clog_template.c: Likewise.
11742 * math/s_csin_template.c: Likewise.
11743 * math/s_csinh_template.c: Likewise.
11744 * math/s_csqrt_template.c: Likewise.
11745 * math/s_ctan_template.c: Likewise.
11746 * math/s_ctanh_template.c: Likewise.
11747 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11748 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11749 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11750 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11751 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11752 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11753 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11754 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11755 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11756 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11757 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11758 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11759 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11760 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11761 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11762 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11763 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11764 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11765 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11766 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11767 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11768 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11769 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11770 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11771 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11772 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11773 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11774 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11775 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11776 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11777 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11778 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11779 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11780 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11781 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11782 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11783 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11784 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11785 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11786 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11787 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11788 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11789 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11790 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11791 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11792 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11793 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11794 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11795 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11796 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11797 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11798 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11799 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11800 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11801 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11802 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11803 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11804 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11805 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11806 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11807 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11808 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11809 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11810 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11811 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11812 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11813 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11814 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11815 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11816 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11817 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11818 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11819 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11820 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11821 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11822 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11823 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11824 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11825 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11826 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11827 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11828 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11829 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11830 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11831
11832 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11833
11834 * sysdeps/generic/math-barriers.h: New file.
11835 * sysdeps/generic/math_private.h [!math_opt_barrier]
11836 (math_opt_barrier): Move to math-barriers.h.
11837 [!math_opt_barrier] (math_force_eval): Likewise.
11838 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11839 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11840 math-barriers.h.
11841 (math_force_eval): Likewise.
11842 * sysdeps/alpha/fpu/math-barriers.h: New file.
11843 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11844 math-barriers.h.
11845 (math_force_eval): Likewise.
11846 * sysdeps/x86/fpu/math-barriers.h: New file.
11847 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11848 math-barriers.h.
11849 (math_force_eval): Likewise.
11850 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11851 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11852 multiple-include guard for rename.
11853 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11854 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11855 math-barriers.h.
11856 (math_force_eval): Likewise.
11857
11858 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11859
11860 [BZ #22786]
11861 CVE-2018-11236
11862 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11863 computation.
11864 * stdlib/Makefile (test-bz22786): New test.
11865 * stdlib/test-bz22786.c: New test.
11866
11867 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11868
11869 * include/math-narrow-eval.h: New file. Contents moved from ....
11870 * sysdeps/generic/math_private.h: ... here.
11871 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11872 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11873 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11874 * stdlib/strtod_l.c: Likewise.
11875 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11876 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11877 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11878 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11879 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11880 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11881 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11882 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11883 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11884 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11885 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11886 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11887 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11888 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11889 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11890 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11891 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11892 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11893 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11894 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11895 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11896 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11897 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11898 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11899 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11900 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11901 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11902 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11903 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11904
11905 2018-05-08 Andreas Schwab <schwab@suse.de>
11906
11907 * sysdeps/nptl/internaltypes.h: Fix comment.
11908
11909 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11910
11911 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11912 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11913 hidden.
11914
11915 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11916
11917 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11918 of I into loop header.
11919 * benchtests/bench-memmove-walk.c
11920 (test_main): Likewise.
11921
11922 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11923
11924 Revert:
11925 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11926 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11927
11928 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11929
11930 [BZ #20419]
11931 * elf/dl-load.c (open_verify): Fix stack overflow.
11932 * elf/Makefile (tst-big-note): New test.
11933 * elf/tst-big-note-lib.S: New.
11934 * elf/tst-big-note.c: New.
11935
11936 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11937
11938 * scripts/abilist.awk: Ignore absolute symbols.
11939 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11940 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11941 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11942 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11943 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11944 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11945 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11946 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11947 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11948 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11949 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11950 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11990 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11991 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11992 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11993 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11994 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11995 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11996 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11997 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11998 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11999 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12000 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12001 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12002 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12003 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12004 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12005 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12006 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12007 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12008 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12009 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12010 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12011 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12012 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12013 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12014 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12025 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12026 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12029 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12030 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12031 Likewise.
12032 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12033 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12034 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12035 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12036 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12039 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12040 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12045 Likewise.
12046 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12047 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12048 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12049 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12050 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12061 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12062 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12063 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12064 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12065 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12066 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12067 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12068 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12073 Likewise.
12074 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12078 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12080 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12088 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12089 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12094 Likewise.
12095 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12127 Likewise.
12128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12133 Likewise.
12134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12135 Likewise.
12136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12138 Likewise.
12139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12141 Likewise.
12142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12143 Likewise.
12144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12147 Likewise.
12148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12149 Likewise.
12150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12151 Likewise.
12152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12156 Likewise.
12157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12163 Likewise.
12164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12166 Likewise.
12167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12168 Likewise.
12169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12170 Likewise.
12171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12172 Likewise.
12173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12176 Likewise.
12177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12178 Likewise.
12179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12180 Likewise.
12181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12184 Likewise.
12185 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12199 Likewise.
12200 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12206 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12207 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12212 Likewise.
12213 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12227 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12228 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12233 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12238 Likewise.
12239 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12252 Likewise.
12253 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12291
12292 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12293
12294 [BZ #23137]
12295 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12296 Use atomic_load_acquire to load __tid.
12297
12298 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12299
12300 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12301 Restore the pointer into %rdx, after syscall and use %rdx,
12302 instead of %rsi, to restore context.
12303
12304 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12305
12306 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12307 Pop the pointer into %rdx after syscall and use %rdx, instead
12308 of %rsi, to restore context.
12309
12310 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12311
12312 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12313 handlers after setjmp.
12314 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12315 defined.
12316 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12317 <libc-pointer-arith.h>.
12318 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12319 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12320 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12321 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12322 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12323 * sysdeps/x86/__longjmp_cancel.S: New file.
12324 * sysdeps/x86/longjmp.c: Likewise.
12325 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12326
12327 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12328
12329 * NEWS: Add ustat.h deprecation entry.
12330 * bits/ustat.h: Remove file.
12331 * misc/sys/ustat.h: Likewise.
12332 * misc/ustat.h: Likewise.
12333 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12334 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12335 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12336 compatibility mode.
12337 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12338 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12339 generic Linux implementation.
12340
12341 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12342
12343 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12344 * math/w_expl_compat.c: Likewise.
12345 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12346
12347 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12348
12349 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12350
12351 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12352
12353 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12354 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12355 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12356 Remove.
12357 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12359 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12360 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12361 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12362 and SYSCALL_LL64.
12363
12364 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12365
12366 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12367
12368 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12369 * math/w_asin_template.c: Likewise.
12370 * math/w_atanh_template.c: Likewise.
12371
12372 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12373
12374 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12375 to powerpc/powerpc64/be for big-endian.
12376 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12377 little-endian.
12378
12379 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12380 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12381 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12382 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12383 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12384 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12385 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12386 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12387 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12388 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12389 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12390 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12391 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12392 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12393 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12394 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12395 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12396 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12397 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12398 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12399 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12400 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12401 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12402 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12403 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12404 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12405 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12406 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12407 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12408 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12409 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12410 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12411
12412 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12413 adjusted to imply powerpc64 and older processors on powerpc64/be.
12414 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12415 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12416 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12417 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12418 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12419 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12420 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12421 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12422 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12423 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12424 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12425 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12426 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12427 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12428 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12429 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12430 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12431 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12432 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12433 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12434 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12435 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12436 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12437 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12438 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12439 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12440 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12441 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12442 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12443 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12444 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12445
12446 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12447 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12448 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12449 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12450
12451 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12452 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12453 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12454 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12455
12456 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12457 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12458 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12459 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12460 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12461 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12462 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12463 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12464 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12465 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12466 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12467
12468 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12469 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12470 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12471 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12472 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12473 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12474 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12475 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12476 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12477 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12478 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12479
12480 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12481 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12482 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12483 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12484 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12485 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12486 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12487 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12488 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12489 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12490 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12491 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12492
12493 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12494 and adjusted to imply olders processors.
12495 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12496 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12497 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12498 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12499 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12500 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12501 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12502 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12503 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12504 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12505 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12506
12507 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12508 powerpc64/le.
12509 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12510 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12511
12512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12513 powerpc64le.
12514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12516
12517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12518 powerpc64/be.
12519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12522
12523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12524 powerpc64 and adjusted.
12525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12528 Likewise.
12529
12530 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12531
12532 * sysdeps/tile: Remove.
12533 * sysdeps/unix/sysv/linux/tile: Likewise.
12534 * README (tilegx-*-linux-gnu): Remove from list of supported
12535 configurations.
12536 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12537 contribution of support for generic Linux kernel syscall
12538 interface.
12539 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12540 tilegx configurations.
12541 (Config.install_linux_headers): Do not handle tile.
12542 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12543 in comment.
12544 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12545 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12546 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12547 conditional undefine and redefine.
12548 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12549 in comment.
12550 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12551 conditional undefine and redefine.
12552
12553 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12554
12555 * signal/tst-sigaction.c: New file to test BZ #23069.
12556 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12557
12558 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12559
12560 [BZ #22766]
12561 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12562 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12563 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12564 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12565
12566 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12567
12568 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12569 _DIRENT_MATCHES_DIRENT64 is not defined.
12570 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12571 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12572 is defined.
12573 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12574 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12575
12576 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12577
12578 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12579 version to GCC 8 branch.
12580
12581 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12582
12583 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12584 (check_no_hidden): Use type of original function when declaring
12585 alias.
12586
12587 * sysdeps/unix/sysv/linux/sys/ptrace.h
12588 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12589 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12590 (struct __ptrace_seccomp_metadata): New type.
12591 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12592 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12593 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12594 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12595 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12596 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12597 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12598 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12599 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12600 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12601 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12602 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12603 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12604 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12605 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12606 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12607
12608 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12609
12610 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12611 defined.
12612 * dirent/versionsort.c (versionsort): Likewise.
12613 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12614 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12615 * dirent/versionsort64.c (versionsort64): Likewise.
12616 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12617 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12618 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12619 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12620 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12621 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12622 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12623 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12624 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12625 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12628 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12629 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12630
12631 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12632
12633 * elf/elf.h (NT_PPC_PKEY): New macro.
12634
12635 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12636
12637 [BZ #23094]
12638 * localedata/locales/hr_HR: fix thousands_sep and
12639 mon_thousands_sep
12640
12641 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12642
12643 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12644 (XTABS): Define to TAB3.
12645
12646 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12647
12648 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12649
12650 * dirent/scandir-tail-common.c: New file.
12651 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12652 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12653 * dirent/scandir.c: Use scandir-tail-common.c.
12654 * dirent/scandirat.c: Likewise.
12655 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12656 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12657 if _DIRENT_MATCHES_DIRENT64 is defined.
12658 * dirent/scandirat64.c (scandirat64): Likewise.
12659 * include/dirent.h (__scandir_tail): Only define iff
12660 _DIRENT_MATCHES_DIRENT64 is not defined.
12661 (__scandir64_tail): Define regardless.
12662 (__scandirat, scandirat64): Remove libc_hidden_proto.
12663 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12664 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12666 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12667 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12668 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12669 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12670
12671 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12672
12673 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12674 New macro.
12675 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12676 Increase to 24.
12677 (_dl_aarch64_cap_flags): Add asimdfhm.
12678
12679 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12680
12681 * sysdeps/nios2/libm-test-ulps: Update.
12682
12683 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12684
12685 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12686 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12687
12688 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12689 requirements.
12690 (_DIRENT_MATCHES_DIRENT64): Undef
12691 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12692 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12693 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12694 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12695 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12696 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12697 use getdents64 syscalls as base.
12698 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12699 symbol if required.
12700 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12701 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12702 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12703 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12704 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12705 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12706 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12707 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12708 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12709 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12710 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12711
12712 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12713
12714 * scripts/test_printers_common.py (init_test): Disable lock elision.
12715
12716 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12717
12718 * math/test-tgmath.c (count_double, count_float,
12719 count_ldouble, count_cdouble, count_cfloat,
12720 count_cldouble): Use volatile int.
12721
12722 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12723
12724 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12725 (conformtest-xfail-conds): Add i386-gnu.
12726 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12727 i386-gnu.
12728 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12729 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12730 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12731 msqid_ds.msg_lrpid): Likewise.
12732 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12733 Likewise.
12734 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12735 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12736 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12737 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12738 unsigned int.
12739 (struct statvfs64): Likewise.
12740 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12741 Likewise.
12742 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12743 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12744 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12745 instead of wait_queue.
12746 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12747 instead of vm_area_struct.
12748 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12749 struct sched_param definition to it.
12750 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12751 * bits/types/struct_sched_param.h: New file.
12752 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12753 <bits/types/struct_sched_param.h> instead of <sched.h>.
12754 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12755 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12756 generic version but include <bits/pthreadtypes.h> to make struct
12757 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12758 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12759 non-compliant.
12760 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12761 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12762 [__USE_XOPEN] (OFDEL): New macro.
12763 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12764 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12765 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12766 prototypes.
12767 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12768 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12769 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12770 non-compliant.
12771 * sysdeps/i386/sys/ucontext.h: Likewise.
12772 * sysdeps/m68k/sys/ucontext.h: Likewise.
12773 * sysdeps/mips/sys/ucontext.h: Likewise.
12774 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12775 * sysdeps/mach/hurd/i386/Makefile
12776 (test-xfail-POSIX/fcntl.h/conform): Add.
12777 (test-xfail-POSIX/signal.h/conform): Add.
12778 (test-xfail-POSIX/semaphore.h/conform): Add.
12779 (test-xfail-POSIX/regex.h/conform): Add.
12780 (test-xfail-POSIX/aio.h/conform): Add.
12781 (test-xfail-POSIX/mqueue.h/conform): Add.
12782 (test-xfail-POSIX/sys/types.h/conform): Add.
12783 (test-xfail-UNIX98/fcntl.h/conform): Add.
12784 (test-xfail-UNIX98/netdb.h/conform): Add.
12785 (test-xfail-UNIX98/signal.h/conform): Add.
12786 (test-xfail-UNIX98/semaphore.h/conform): Add.
12787 (test-xfail-UNIX98/regex.h/conform): Add.
12788 (test-xfail-UNIX98/aio.h/conform): Add.
12789 (test-xfail-UNIX98/ftw.h/conform): Add.
12790 (test-xfail-UNIX98/mqueue.h/conform): Add.
12791 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12792 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12793 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12794 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12795 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12796 (test-xfail-UNIX98/sys/types.h/conform): Add.
12797 (test-xfail-UNIX98/stdlib.h/conform): Add.
12798 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12799 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12800 (test-xfail-POSIX2008/netdb.h/conform): Add.
12801 (test-xfail-POSIX2008/signal.h/conform): Add.
12802 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12803 (test-xfail-POSIX2008/regex.h/conform): Add.
12804 (test-xfail-POSIX2008/aio.h/conform): Add.
12805 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12806 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12807 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12808 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12809 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12810 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12811 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12812 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12813 (test-xfail-XOPEN2K/signal.h/conform): Add.
12814 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12815 (test-xfail-XOPEN2K/regex.h/conform): Add.
12816 (test-xfail-XOPEN2K/aio.h/conform): Add.
12817 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12818 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12819 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12820 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12821 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12822 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12823 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12824 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12825 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12826 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12827 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12828 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12829 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12830 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12831 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12832 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12833 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12834 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12835 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12836 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12837 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12838 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12839 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12840 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12841 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12842 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12843 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12844 i386-gnu.
12845 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12846 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12847
12848 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12849
12850 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12851 --enable-obsolete for powerpc-linux-gnuspe.
12852
12853 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12854
12855 * conform/data/sys/un.h-data: Allow sun_ prefix.
12856 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12857 prototypes.
12858 * sysdeps/mach/include/mach.h: Likewise.
12859 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12860 * sysdeps/mach/include/mach_error.h: Likewise.
12861
12862 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12863
12864 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12865 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12866 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12867 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12868
12869 2018-04-16 Andreas Schwab <schwab@suse.de>
12870
12871 [BZ #19527]
12872 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12873
12874 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12875
12876 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12877 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12878
12879 2018-04-12 DJ Delorie <dj@redhat.com>
12880
12881 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12882 version to 4.16.
12883
12884 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12885
12886 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12887 (struct kernel_sigaction): Use the same definition on 31bit as is used
12888 on 64bit.
12889
12890 2018-04-09 Florian Weimer <fweimer@redhat.com>
12891
12892 [BZ #23037]
12893 * resolv/res_send.c (send_dg): Use designated initializers instead
12894 of assignment to zero-initialize other fields of struct mmsghdr.
12895
12896 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12897
12898 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12899 __READDIR_ALIAS): Undefine after usage.
12900 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12901 __READDIR_R_ALIAS): Likewise.
12902 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12903 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12904 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12905 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12906 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12907 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12908 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12909 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12910 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12911 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12912 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12913 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12914 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12915 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12916 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12917 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12918 * sysdeps/unix/sysv/linux/readdir.c: New file.
12919 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12920 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12921 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12922
12923 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12924
12925 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12926
12927 * manual/charset.texi (Converting a Character): Fix typo.
12928
12929 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12930
12931 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12932
12933 * sysdeps/arm/libm-test-ulps: Update.
12934
12935 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12936 as base implementation.
12937 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12938 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12939 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12940 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12941 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12942 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12943 remove unrequired definitions and update comments.
12944 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12945 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12946 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12947 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12948 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12949 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12950 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12951 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12952 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12953 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12954 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12955 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12956 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12957 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12958 and RESET_SA_RESTORER hooks.
12959
12960 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12961
12962 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12963
12964 2018-04-05 Florian Weimer <fweimer@redhat.com>
12965
12966 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12967 integer overflow, memory leak on error, and indeterminate errno
12968 value. Add a null wide character to terminate the result string.
12969 * manual/charset.texi (Converting a Character): Mention embedded
12970 null bytes in the mbrtowc input string. Explain what happens in
12971 the -2 result case. Do not claim that mbrtowc is simple or
12972 obvious to use. Adjust the description of the code example. Use
12973 @code, not @var, for concrete variables.
12974
12975 2018-04-05 Florian Weimer <fweimer@redhat.com>
12976
12977 * manual/examples/mbstouwcs.c: New file.
12978 * manual/charset.texi (Converting a Character): Include it.
12979
12980 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12981
12982 * include/dirent.h (dirfd): Add hidden proto.
12983 * dirent/dirfd.c (dirfd): Add hidden def.
12984 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12985 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12986
12987 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12988
12989 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12990 sin, cos and sincos to 1 ULP.
12991
12992 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12993
12994 [BZ #19818]
12995 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12996 symbols.
12997 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12998 * elf/tst-absolute-sym.c: New file.
12999 * elf/tst-absolute-sym-lib.c: New file.
13000 * elf/tst-absolute-sym-lib.lds: New file.
13001 * elf/Makefile (tests): Add `tst-absolute-sym'.
13002 (modules-names): Add `tst-absolute-sym-lib'.
13003 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13004 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13005 ($(objpfx)tst-absolute-sym): New dependency.
13006
13007 [BZ #19818]
13008 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13009 parameter.
13010 (SYMBOL_ADDRESS): New macro.
13011 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13012 SYMBOL_ADDRESS for symbol address calculation.
13013 * elf/dl-runtime.c (_dl_fixup): Likewise.
13014 (_dl_profile_fixup): Likewise.
13015 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13016 * elf/rtld.c (dl_main): Likewise.
13017 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13018 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13019 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13020 (elf_machine_rela): Likewise.
13021 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13022 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13023 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13024 (elf_machine_rela): Likewise.
13025 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13026 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13027 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13028 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13029 Likewise.
13030 (elf_machine_reloc): Likewise.
13031 (elf_machine_got_rel): Likewise.
13032 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13033 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13034 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13035 Likewise.
13036 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13037 Likewise.
13038 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13039 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13040 Likewise.
13041 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13042 Likewise.
13043 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13044 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13045 Likewise.
13046 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13047 Likewise.
13048 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13049 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13050
13051 2018-04-04 Zack Weinberg <zackw@panix.com>
13052
13053 * sysdeps/generic/internal-signals.h: Include signal.h,
13054 sigsetops.h, and stdbool.h.
13055 (__libc_signal_block_all): Actually block all signals.
13056 (__libc_signal_block_app): Likewise.
13057 (__libc_signal_restore_set): Actually restore the signal mask.
13058
13059 2018-04-04 Florian Weimer <fweimer@redhat.com>
13060
13061 inet: Actually build and run tst-deadline.
13062 * inet/Makefile (tests-internal): Add tst-deadline and do not
13063 overwrite the variable.
13064 (tests-static-internal): Remove variable.
13065
13066 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13067
13068 [BZ #22947]
13069 * bits/uio-ext.h (RWF_APPEND): New.
13070 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13071 * manual/llio.texi: Document RWF_APPEND.
13072 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13073 (RWF_SUPPORTED): Add RWF_APPEND.
13074
13075 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13076
13077 [BZ #22391]
13078 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13079 check for internal nptl signals.
13080 * nptl/sigaction.c (__sigaction): Likewise.
13081 * signal/sigaddset.c (sigaddset): Likewise.
13082 * signal/sigdelset.c (sigdelset): Likewise.
13083 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13084 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13085 value.
13086 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13087 to filter out internal nptl signals.
13088 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13089 also check realtime signals using standard macros.
13090 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13091 __is_internal_signal, __libc_signal_block_all,
13092 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13093 * sysdeps/nptl/sigfillset.c: Remove file.
13094 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13095 Change return to bool.
13096 (__clear_internal_signals): Remove SIGTIMER clean since it is
13097 equal to SIGCANEL on Linux.
13098 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13099 signal set was constructed using standard functions.
13100
13101 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13102
13103 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13104 ifname is too long.
13105 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13106 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13107 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13108 hidden def.
13109 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13110 * signal/sigaddset.c: Include <sigsetopts.h>.
13111 * signal/sigdelset.c: Likewise.
13112
13113 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13114
13115 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13116 (__cos): Likewise.
13117 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13118 logic as sin and cos.
13119
13120 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13121
13122 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13123 inputs. Return correct sign.
13124 (do_sincos): Remove small input check before do_sin, let do_sin set
13125 the sign.
13126 (__sin): Likewise.
13127 (__cos): Likewise.
13128
13129 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13130
13131 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13132 (do_cos_slow): Likewise.
13133 (do_sin_slow): Likewise.
13134 (reduce_and_compute): Likewise.
13135 (slow): Likewise.
13136 (slow1): Likewise.
13137 (slow2): Likewise.
13138 (sloww): Likewise.
13139 (sloww1): Likewise.
13140 (sloww2): Likewise.
13141 (bslow): Likewise.
13142 (bslow1): Likewise.
13143 (bslow2): Likewise.
13144 (cslow2): Likewise.
13145
13146 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13147
13148 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13149 (do_cos): Remove corp parameter and calculations.
13150 (do_sin): Likewise.
13151 (do_sincos): Remove cor variable.
13152 (__sin): Use do_sincos for huge inputs.
13153 (__cos): Likewise.
13154 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13155 (reduce_and_compute_sincos): Remove unused function.
13156
13157 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13158
13159 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13160 reduce_sincos, improve accuracy to 136 bits.
13161 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13162 (__sin): Use improved reduction and simplified do_sincos calculation.
13163 (__cos): Likewise.
13164 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13165
13166 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13167
13168 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13169 (do_sincos_2): Likewise.
13170 (__sin): Remove middle range reduction case.
13171 (__cos): Likewise.
13172 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13173 reduction case.
13174
13175 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13176
13177 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13178 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13179 inputs.
13180 (__cos): Likewise.
13181 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13182
13183 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13184
13185 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13186 version to 4.16
13187
13188 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13189
13190 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13191 Remove definitions.
13192 (opendir_oflags): Use O_DIRECTORY regardless.
13193 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13194 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13195
13196 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13197
13198 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13199 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13200 macros.
13201 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13202 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13203 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13204 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13205 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13206 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13207
13208 * htl/Makefile: Bump licence to LGPL 2.1+.
13209 * htl/alloca_cutoff.c: Likewise.
13210 * htl/cthreads-compat.c: Likewise.
13211 * htl/lockfile.c: Likewise.
13212 * htl/pt-alloc.c: Likewise.
13213 * htl/pt-cancel.c: Likewise.
13214 * htl/pt-cleanup.c: Likewise.
13215 * htl/pt-create.c: Likewise.
13216 * htl/pt-dealloc.c: Likewise.
13217 * htl/pt-detach.c: Likewise.
13218 * htl/pt-exit.c: Likewise.
13219 * htl/pt-getattr.c: Likewise.
13220 * htl/pt-initialize.c: Likewise.
13221 * htl/pt-internal.h: Likewise.
13222 * htl/pt-join.c: Likewise.
13223 * htl/pt-self.c: Likewise.
13224 * htl/pt-setcancelstate.c: Likewise.
13225 * htl/pt-setcanceltype.c: Likewise.
13226 * htl/pt-sigmask.c: Likewise.
13227 * htl/pt-spin-inlines.c: Likewise.
13228 * htl/pt-testcancel.c: Likewise.
13229 * htl/pt-yield.c: Likewise.
13230 * htl/tests/test-1.c: Likewise.
13231 * htl/tests/test-10.c: Likewise.
13232 * htl/tests/test-11.c: Likewise.
13233 * htl/tests/test-12.c: Likewise.
13234 * htl/tests/test-13.c: Likewise.
13235 * htl/tests/test-14.c: Likewise.
13236 * htl/tests/test-15.c: Likewise.
13237 * htl/tests/test-16.c: Likewise.
13238 * htl/tests/test-17.c: Likewise.
13239 * htl/tests/test-2.c: Likewise.
13240 * htl/tests/test-3.c: Likewise.
13241 * htl/tests/test-4.c: Likewise.
13242 * htl/tests/test-5.c: Likewise.
13243 * htl/tests/test-6.c: Likewise.
13244 * htl/tests/test-7.c: Likewise.
13245 * htl/tests/test-8.c: Likewise.
13246 * htl/tests/test-9.c: Likewise.
13247 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13248 * sysdeps/htl/bits/cancelation.h: Likewise.
13249 * sysdeps/htl/bits/pthread-np.h: Likewise.
13250 * sysdeps/htl/bits/pthread.h: Likewise.
13251 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13252 * sysdeps/htl/bits/semaphore.h: Likewise.
13253 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13254 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13255 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13256 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13257 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13258 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13259 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13260 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13261 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13262 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13263 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13264 * sysdeps/htl/old_pt-atfork.c: Likewise.
13265 * sysdeps/htl/pt-atfork.c: Likewise.
13266 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13267 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13268 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13269 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13270 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13271 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13272 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13273 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13274 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13275 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13276 * sysdeps/htl/pt-attr-init.c: Likewise.
13277 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13278 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13279 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13280 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13281 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13282 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13283 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13284 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13285 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13286 * sysdeps/htl/pt-attr.c: Likewise.
13287 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13288 * sysdeps/htl/pt-barrier-init.c: Likewise.
13289 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13290 * sysdeps/htl/pt-barrier.c: Likewise.
13291 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13292 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13293 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13294 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13295 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13296 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13297 * sysdeps/htl/pt-cond-init.c: Likewise.
13298 * sysdeps/htl/pt-cond-signal.c: Likewise.
13299 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13300 * sysdeps/htl/pt-cond-wait.c: Likewise.
13301 * sysdeps/htl/pt-cond.c: Likewise.
13302 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13303 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13304 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13305 * sysdeps/htl/pt-condattr-init.c: Likewise.
13306 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13307 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13308 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13309 * sysdeps/htl/pt-equal.c: Likewise.
13310 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13311 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13312 * sysdeps/htl/pt-getschedparam.c: Likewise.
13313 * sysdeps/htl/pt-getspecific.c: Likewise.
13314 * sysdeps/htl/pt-init-specific.c: Likewise.
13315 * sysdeps/htl/pt-key-create.c: Likewise.
13316 * sysdeps/htl/pt-key-delete.c: Likewise.
13317 * sysdeps/htl/pt-key.h: Likewise.
13318 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13319 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13320 * sysdeps/htl/pt-mutex-init.c: Likewise.
13321 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13322 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13323 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13324 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13325 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13326 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13327 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13328 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13329 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13330 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13331 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13332 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13333 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13334 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13335 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13336 * sysdeps/htl/pt-mutexattr.c: Likewise.
13337 * sysdeps/htl/pt-once.c: Likewise.
13338 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13339 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13340 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13341 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13342 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13343 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13344 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13345 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13346 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13347 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13348 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13349 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13350 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13351 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13352 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13353 * sysdeps/htl/pt-setschedparam.c: Likewise.
13354 * sysdeps/htl/pt-setschedprio.c: Likewise.
13355 * sysdeps/htl/pt-setspecific.c: Likewise.
13356 * sysdeps/htl/pt-spin.c: Likewise.
13357 * sysdeps/htl/pt-startup.c: Likewise.
13358 * sysdeps/htl/pthread.h: Likewise.
13359 * sysdeps/htl/sem-close.c: Likewise.
13360 * sysdeps/htl/sem-destroy.c: Likewise.
13361 * sysdeps/htl/sem-getvalue.c: Likewise.
13362 * sysdeps/htl/sem-init.c: Likewise.
13363 * sysdeps/htl/sem-open.c: Likewise.
13364 * sysdeps/htl/sem-post.c: Likewise.
13365 * sysdeps/htl/sem-timedwait.c: Likewise.
13366 * sysdeps/htl/sem-trywait.c: Likewise.
13367 * sysdeps/htl/sem-unlink.c: Likewise.
13368 * sysdeps/htl/sem-wait.c: Likewise.
13369 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13370 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13371 * sysdeps/mach/htl/pt-block.c: Likewise.
13372 * sysdeps/mach/htl/pt-spin.c: Likewise.
13373 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13374 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13375 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13376 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13377 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13378 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13379 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13380 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13381 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13382 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13383 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13384 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13385 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13386 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13387 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13388 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13389 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13390 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13391 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13392 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13393 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13394 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13395 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13396 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13397 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13398 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13399 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13400 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13401 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13402 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13403 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13404 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13405 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13406 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13407 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13408 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13409 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13410 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13411 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13412 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13413 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13414 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13415 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13416
13417 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13418 * README: Remove the mention of out-of-tree patches needed for
13419 GNU/Hurd.
13420
13421 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13422 (UTIME_NOW, UTIME_OMIT): Define macros.
13423
13424 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13425 instead of pthread_detach.
13426 (__cthread_fork): Call __pthread_create instead of pthread_create.
13427 (__cthread_keycreate): Call __pthread_key_create instead of
13428 pthread_key_create.
13429 (__cthread_getspecific): Call __pthread_getspecific instead of
13430 pthread_getspecific.
13431 (__cthread_setspecific): Call __pthread_setspecific instead of
13432 pthread_setspecific.
13433 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13434 __pthread_mutex_unlock instead of pthread_mutex_lock and
13435 pthread_mutex_unlock.
13436 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13437 ___pthread_get_cleanup_stack.
13438 (__pthread_get_cleanup_stack): New strong alias.
13439 * htl/pt-create.c: Include <pthreadP.h>.
13440 (entry_point): Call __pthread_exit instead of pthread_exit.
13441 (pthread_create): Rename to __pthread_create.
13442 (pthread_create): New strong alias.
13443 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13444 (pthread_detach): New strong alias.
13445 (__pthread_detach): Call __pthread_cond_broadcast instead of
13446 pthread_cond_broadcast.
13447 * htl/pt-exit.c: Include <pthreadP.h>.
13448 (__pthread_exit): Call __pthread_setcancelstate and
13449 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13450 __pthread_get_cleanup_stack.
13451 * htl/pt-testcancel.c: Include <pthreadP.h>.
13452 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13453 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13454 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13455 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13456 pthread_attr_getstacksize.
13457 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13458 Rename to __pthread_attr_getstackaddr.
13459 (pthread_attr_getstackaddr): New strong alias.
13460 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13461 Rename to __pthread_attr_getstacksize.
13462 (pthread_attr_getstacksize): New strong alias.
13463 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13464 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13465 (pthread_attr_setstack): New strong alias.
13466 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13467 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13468 pthread_attr_getstacksize, pthread_attr_setstacksize and
13469 pthread_attr_setstackaddr.
13470 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13471 Rename to __pthread_attr_setstackaddr.
13472 (pthread_attr_setstackaddr): New strong alias.
13473 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13474 Rename to __pthread_attr_setstacksize.
13475 (pthread_attr_setstacksize): New strong alias.
13476 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13477 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13478 pthread_exit.
13479 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13480 (__pthread_key_create): New hidden def.
13481 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13482 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13483 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13484 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13485 __pthread_setspecific, __pthread_setcancelstate,
13486 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13487 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13488 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13489 declarations.
13490 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13491 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13492 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13493 (pthread_attr_setstackaddr): New strong alias.
13494 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13495 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13496 (pthread_attr_setstacksize): New strong alias.
13497 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13498 (call_exit): Call __pthread_exit instead of pthread_exit.
13499 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13500 (_pthread_mutex_init): New hidden definition.
13501 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13502 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13503 instead of pthread_attr_init and pthread_attr_setstack.
13504
13505 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13506 __vm_deallocate instead of vm_allocate and vm_deallocate.
13507 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13508 setenv.
13509 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13510 of geteuid.
13511 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13512 strdup.
13513 * hurd/siginfo.c: Include <libioP.h>.
13514 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13515 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13516 munmap.
13517 * mach/devstream.c: Include <libioP.h>.
13518 (dealloc_ref): Call __mach_port_deallocate instead of
13519 mach_port_deallocate.
13520 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13521 Call __mach_port_deallocate instead of mach_port_deallocate.
13522 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13523 pathconf.
13524 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13525 munmap.
13526 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13527 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13528 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13529 of munmap.
13530 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13531 of close.
13532 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13533 instead of sysconf.
13534 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13535 __clock_gettime instead of clock_gettime.
13536 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13537 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13538 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13539 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13540 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13541 tcgetattr.
13542 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13543 __clock_gettime and __nanosleep instead of clock_gettime and
13544 nanosleep.
13545 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13546 __hurd_catch_signal.
13547 (hurd_catch_signal): New strong alias.
13548 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13549 __hurd_catch_signal instead of hurd_catch_signal.
13550 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13551 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13552 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13553 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13554 (_hurd_thread_sigstate): Add hidden def.
13555 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13556 mutex_unlock.
13557 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13558 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13559 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13560 __hurd_file_name_path_lookup.
13561 (hurd_file_name_path_lookup): New strong alias.
13562 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13563 hurd_file_name_path_lookup.
13564 * mach/errstring.c (mach_error_type): Add hidden def.
13565 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13566 * mach/mutex-init.c (__mutex_init): Add hidden def.
13567 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13568 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13569 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13570 * sysdeps/mach/hurd/getcwd.c
13571 (_hurd_canonicalize_directory_name_internal): Rename to
13572 __hurd_canonicalize_directory_name_internal.
13573 (_hurd_canonicalize_directory_name_internal): New strong alias.
13574 (__canonicalize_directory_name_internal, __getcwd): Call
13575 __hurd_canonicalize_directory_name_internal instead of
13576 _hurd_canonicalize_directory_name_internal.
13577 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13578 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13579 hidden defs.
13580 * sysdeps/hurd/include/hurd.h: New file.
13581 * sysdeps/hurd/include/hurd/fd.h: New file.
13582 * sysdeps/hurd/include/hurd/signal.h: New file.
13583 * sysdeps/mach/include/lock-intern.h: New file.
13584 * sysdeps/mach/include/mach.h: New file.
13585 * sysdeps/mach/include/mach/mig_support.h: New file.
13586 * sysdeps/mach/include/mach_error.h: New file.
13587 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13588 prototype.
13589 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13590 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13591 _HEADER_H_HIDDEN_DEF macro.
13592 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13593 _hurd_fd_error_signal): Add hidden prototype.
13594 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13595 hidden def.
13596 * libio/iolibio.h (_IO_puts): New hidden prototype.
13597 * libio/ioputs.c (_IO_puts): New hidden def.
13598 * sysdeps/mach/hurd/localplt.data: New file.
13599
13600 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13601 Amos Jeffries <squid3@treenet.co.nz>
13602 David Michael <fedora.dm0@gmail.com>
13603 Marco Gerards <marco@gnu.org>
13604 Marcus Brinkmann <marcus@gnu.org>
13605 Neal H. Walfield <neal@gnu.org>
13606 Pino Toscano <toscano.pino@tiscali.it>
13607 Richard Braun <rbraun@sceen.net>
13608 Roland McGrath <roland@gnu.org>
13609 Samuel Thibault <samuel.thibault@ens-lyon.org>
13610 Thomas DiModica <ricinwich@yahoo.com>
13611 Thomas Schwinge <tschwinge@gnu.org>
13612
13613 * htl: New directory.
13614 * sysdeps/htl: New directory.
13615 * sysdeps/hurd/htl: New directory.
13616 * sysdeps/i386/htl: New directory.
13617 * sysdeps/mach/htl: New directory.
13618 * sysdeps/mach/hurd/htl: New directory.
13619 * sysdeps/mach/hurd/i386/htl: New directory.
13620 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13621 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13622 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13623
13624 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13625
13626 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13627 signals in thread created for runing timers.
13628
13629 2018-04-01 Florian Weimer <fweimer@redhat.com>
13630
13631 * support/support_format_addrinfo.c (support_format_addrinfo):
13632 Include unknown error number in formatted result.
13633
13634 2018-03-29 Florian Weimer <fweimer@redhat.com>
13635
13636 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13637 capture SIGBUS.
13638
13639 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13640
13641 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13642 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13643 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13644 (__ASSUME_CLONE_BACKWARDS): Define.
13645
13646 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13647
13648 [BZ #23024]
13649 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13650 early when linux sentinel value is set.
13651
13652 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13653
13654 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13655
13656 2018-03-27 Andreas Schwab <schwab@suse.de>
13657
13658 [BZ #23005]
13659 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13660 allocation of private copy of nsaddr_list fails.
13661
13662 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13663
13664 [BZ #16552]
13665 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13666 * sysdeps/unix/sysv/linux/umount.c: ... here.
13667 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13668 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13669 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13670 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13672 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13673 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13674
13675 2018-03-26 Andreas Schwab <schwab@suse.de>
13676
13677 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13678 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13679 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13680 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13681 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13682 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13683 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13684 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13685 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13686 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13687 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13688 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13689 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13690 (R_RISCV_NUM): Define.
13691
13692 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13693
13694 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13695 TLS declaration of errno.
13696 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13697 __libc_setup_tls.
13698 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13699 (ARCH_SETUP_TLS): Likewise.
13700 * sysdeps/mach/hurd/libc-start.h: New file copied from
13701 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13702 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13703 instead of __libc_setup_tls.
13704 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13705 __libc_setup_tls before initializing libpthread and running _hurd_init
13706 which starts the signal thread.
13707 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13708 Declare function.
13709 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13710
13711 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13712
13713 [BZ #22998]
13714 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13715 after it is defined.
13716
13717 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13718 Max Horn <max@quendi.de>
13719
13720 [BZ #22644]
13721 CVE-2017-18269
13722 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13723 branch conditions.
13724 * string/test-memmove.c (do_test2): New testcase.
13725
13726 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13727
13728 * sysdeps/generic/frame.h: Remove file.
13729 * sysdeps/arm/frame.h: Likewise.
13730 * sysdeps/hppa/frame.h: Likewise.
13731 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13732 macro.
13733 (GET_FRAME): Likewise.
13734 (GET_STACK): Likewise.
13735 (CALL_SIGHANDLER): Likewise.
13736 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13737 Likewise.
13738 (GET_FRAME): Likewise.
13739 (GET_STACK): Likewise.
13740 (CALL_SIGHANDLER): Likewise.
13741 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13742 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13743 (GET_FRAME): Likewise.
13744 (GET_STACK): Likewise.
13745 (CALL_SIGHANDLER): Likewise.
13746 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13747 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13748 (GET_FRAME): Likewise.
13749 (GET_STACK): Likewise.
13750 (ADVANCE_STACK_FRAME): Likewise.
13751 (CALL_SIGHANDLER): Likewise.
13752 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13753 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13754 (GET_FRAME): Likewise.
13755 (GET_STACK): Likewise.
13756 (CALL_SIGHANDLER): Likewise.
13757 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13758 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13759 (GET_FRAME): Likewise.
13760 (GET_STACK): Likewise.
13761 (CALL_SIGHANDLER): Likewise.
13762 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13763 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13764 (GET_FRAME): Likewise.
13765 (GET_STACK): Likewise.
13766 (CALL_SIGHANDLER): Likewise.
13767 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13768 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13769 (GET_FRAME): Likewise.
13770 (GET_STACK): Likewise.
13771 (CALL_SIGHANDLER): Likewise.
13772 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13773 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13774 (GET_FRAME): Likewise.
13775 (GET_STACK): Likewise.
13776 (CALL_SIGHANDLER): Likewise.
13777 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13778 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13779 (GET_FRAME): Likewise.
13780 (GET_STACK): Likewise.
13781 (CALL_SIGHANDLER): Likewise.
13782 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13783 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13784 (GET_FRAME): Likewise.
13785 (GET_STACK): Likewise.
13786 (CALL_SIGHANDLER): Likewise.
13787 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13788 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13789 (GET_FRAME): Likewise.
13790 (GET_STACK): Likewise.
13791 (CALL_SIGHANDLER): Likewise.
13792 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13793 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13794 (GET_FRAME): Likewise.
13795 (GET_STACK): Likewise.
13796 (CALL_SIGHANDLER): Likewise.
13797 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13798 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13799 (FIRST_FRAME_POINTER): Likewise.
13800 (ADVANCE_STACK_FRAME): Likewise.
13801 (GET_STACK): Likewise.
13802 (GET_FRAME): Likewise.
13803 (CALL_SIGHANDLER): Likewise.
13804 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13805 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13806 (ADVANCE_STACK_FRAME): Likewise.
13807 (GET_STACK): Likewise.
13808 (GET_FRAME): Likewise.
13809 (CALL_SIGHANDLER): Likewise.
13810 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13811 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13812 (GET_FRAME): Likewise.
13813 (GET_STACK): Likewise.
13814 (CALL_SIGHANDLER): Likewise.
13815 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13816 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13817 (GET_FRAME): Likewise.
13818 (GET_STACK): Likewise.
13819 (CALL_SIGHANDLER): Likewise.
13820
13821 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13822
13823 * sysdeps/x86_64/backtrace.c: Move to ....
13824 * debug/backtrace.c: ... here.
13825 * sysdeps/aarch64/backtrace.c: Remove file.
13826 * sysdeps/alpha/backtrace.c: Likewise.
13827 * sysdeps/hppa/backtrace.c: Likewise.
13828 * sysdeps/ia64/backtrace.c: Likewise.
13829 * sysdeps/mips/backtrace.c: Likewise.
13830 * sysdeps/nios2/backtrace.c: Likewise.
13831 * sysdeps/riscv/backtrace.c: Likewise.
13832 * sysdeps/sh/backtrace.c: Likewise.
13833 * sysdeps/tile/backtrace.c: Likewise.
13834
13835 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13836
13837 [BZ #22987]
13838 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13839 function.
13840 (fdimf): Likewise.
13841 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13842
13843 [BZ #17343]
13844 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13845 possibly overflowing computations.
13846
13847 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13848
13849 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13850 values from Linux-specific section now that it is in the GNU section.
13851 * sysdeps/gnu/errlist.c: Regenerate.
13852
13853 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13854
13855 * math/Makefile (libm-narrow-fns): Add sub.
13856 (libm-test-funcs-narrow): Likewise.
13857 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13858 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13859 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13860 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13861 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13862 (NARROW_SUB_TRIVIAL): Likewise.
13863 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13864 macro.
13865 (__dsubl): Likewise.
13866 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13867 dsub.
13868 (CFLAGS-nldbl-dsub.c): New variable.
13869 (CFLAGS-nldbl-fsub.c): Likewise.
13870 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13871 __nldbl_dsubl.
13872 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13873 prototype.
13874 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13875 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13876 * math/auto-libm-test-in: Add tests of sub.
13877 * math/auto-libm-test-out-narrow-sub: New generated file.
13878 * math/libm-test-narrow-sub.inc: New file.
13879 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13880 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13881 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13882 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13883 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13884 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13885 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13886 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13887 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13888 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13889 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13890 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13891 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13892 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13893 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13894 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13895 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13896 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13897 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13898 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13899 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13900 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13901 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13902 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13903 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13904 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13905 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13906 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13907 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13908 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13909 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13910 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13915 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13916 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13917 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13918 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13919 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13920 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13921 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13922 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13923 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13924 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13925
13926 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13927
13928 [BZ #20079]
13929 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13930
13931 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13932
13933 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13934
13935 2018-03-18 Richard Braun <rbraun@sceen.net>
13936
13937 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13938 thread reference.
13939
13940 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13941
13942 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13943 (__libc_cleanup_fct): Define function.
13944 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13945 __libc_cleanup_end): Rewrite implementation using
13946 __attribute__ ((__cleanup__)).
13947 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13948 * hurd/Makefile (routines): Add hurdlock.
13949 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13950 interface.
13951 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13952 * hurd/hurdpid.c: Include <lowlevellock.h>
13953 (_S_msg_proc_newids): Use lll_wait to synchronize.
13954 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13955 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13956 * mach/Makefile (lock-headers): Remove machine-lock.h.
13957 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13958 <machine-lock.h>.
13959 (__spin_lock_t): New type.
13960 (__SPIN_LOCK_INITIALIZER): New macro.
13961 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13962 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13963 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13964 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13965 (__mutex_init): Initialize with lll.
13966 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13967 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13968 needing lll.
13969 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13970 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13971 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13972 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13973 (__setpgid): Use lll for synchronization.
13974 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13975 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13976 instead of <cthreads.h>.
13977 (_IO_lock_inexpensive): New macro
13978 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13979 (__libc_lock_self0): New declaration.
13980 (__libc_lock_owner_self): New macro.
13981 (__libc_key_t): Remove type.
13982 (_LIBC_LOCK_INITIALIZER): New macro.
13983 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13984 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13985 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13986 __libc_lock_define_initialized_recursive,
13987 __rtld_lock_define_initialized_recursive,
13988 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13989 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13990 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13991 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13992 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13993 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13994 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13995 New macros.
13996 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13997 * hurd/hurdlock.c: New file.
13998 * hurd/hurdlock.h: New file.
13999 * mach/lowlevellock.h: New file
14000
14001 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14002
14003 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14004 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14005 when opening a symlink with O_NOFOLLOW.
14006 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14007 path when flags contains O_NOFOLLOW.
14008 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14009 if flags contains O_DIRECTORY and the result is a directory.
14010 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14011 oneself when the pointer given in D is nul (as set by ext2fs).
14012 * sysdeps/mach/hurd/mlockall.c: New file.
14013 * sysdeps/mach/hurd/munlockall.c: New file.
14014
14015 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14016
14017 * hurd/hurdsig.c: Include <pthread.h>.
14018 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14019 get the signal thread stack layout.
14020 * hurd/Makefile (headers): Remove threadvar.h.
14021 (inline-headers): Remove threadvar.h.
14022 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14023 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14024 __hurd_threadvar_max, __hurd_errno_location.
14025 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14026 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14027 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14028 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14029 unless TLS is not initialized yet, in which case we do not need a
14030 critical section yet anyway.
14031 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14032 <machine-sp.h>.
14033 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14034 declarations.
14035 (__hurd_threadvar_index): Remove enum.
14036 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14037 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14038 inlines.
14039 (__hurd_reply_port0): New variable declaration.
14040 (__hurd_local_reply_port): New macro.
14041 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14042 (interrupted_reply_port_location): Add thread_t parameter. Use it
14043 with THREAD_TCB to access thread-local variables.
14044 (_hurdsig_abort_rpcs): Pass ss->thread to
14045 interrupted_reply_port_location.
14046 (_hurd_internal_post_signal): Likewise.
14047 (_hurdsig_init): Use presence of cthread_fork instead of
14048 __hurd_threadvar_stack_mask to start signal thread by hand.
14049 Remove signal thread threadvar initialization.
14050 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14051 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14052 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14053 of threadvar.
14054 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14055 __libc_lock_self0.
14056 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14057 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14058 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14059 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14060 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14061 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14062 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14063 define variables.
14064 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14065 <hurd/threadvar.h>.
14066 [IS_IN(rtld)] (rtld_errno): New variable.
14067 [IS_IN(rtld)] (__errno_location): New weak function.
14068 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14069 * sysdeps/mach/hurd/errno.c: Remove file.
14070 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14071 (__fork): Remove THREADVAR_SPACE macro and its use.
14072 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14073 variable.
14074 (init): Do not initialize threadvar.
14075 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14076 symbol.
14077 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14078 __hurd_local_reply_port instead of threadvar.
14079 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14080 _hurd_sigstate fields.
14081 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14082 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14083 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14084 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14085 instead of threadvar.
14086 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14087 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14088 (use_threadvar, global_reply_port): Remove variables.
14089 (__hurd_reply_port0): New variable.
14090 (__mig_get_reply_port): Use __hurd_local_reply_port and
14091 __hurd_reply_port0 instead of threadvar.
14092 (__mig_dealloc_reply_port): Likewise.
14093 (__mig_init): Do not initialize threadvar.
14094 * sysdeps/mach/hurd/profil.c: Fix comment.
14095 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14096 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14097 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14098 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14099 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14100 __cthread_setspecific.
14101 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14102 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14103 __cthread_t instead of cthread_fork, cthread_detach,
14104 pthread_getattr_np, pthread_attr_getstack.
14105 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14106 __cthread_keycreate.
14107 (cthread_getspecific): Rename to __cthread_getspecific.
14108 (cthread_setspecific): Rename to __cthread_setspecific.
14109 (__libc_getspecific): Use __cthread_getspecific instead of
14110 cthread_getspecific.
14111 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14112 __cthread_keycreate instead of cthread_keycreate.
14113 (__libc_setspecific): Use __cthread_setspecific instead of
14114 cthread_setspecific.
14115 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14116 Likewise.
14117 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14118 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14119 testing whether it is defined.
14120
14121 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14122
14123 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14124 Define macro.
14125 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14126 * sysdeps/mach/i386/thread_state.h
14127 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14128 i386_THREAD_STATE.
14129 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14130 i386_THREAD_STATE.
14131 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14132
14133 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14134 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14135
14136 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14137 macros.
14138 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14139 descriptor instead of creating a new one.
14140 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14141
14142 * mach/setup-thread.c: Include <ldsodefs.h>.
14143 (__mach_setup_thread): Call _dl_allocate_tls, pass
14144 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14145 MACHINE_THREAD_STATE_FLAVOR, before getting
14146 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14147 MACHINE_THREAD_STATE_FLAVOR with the result.
14148 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14149 MACHINE_THREAD_STATE_FIX_NEW.
14150 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14151 too. Add original thread parameter.
14152
14153 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14154
14155 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14156 Remove inline function.
14157
14158 * sysdeps/i386/fpu/libm-test-ulps: Update.
14159 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14160
14161 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14162
14163 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14164 commit.
14165
14166 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14167
14168 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14169 (__sincos_code): Remove define and undefine.
14170 [__FAST_MATH__] (__sincos): Remove inline function.
14171 [__FAST_MATH__] (__sincosf): Remove inline function.
14172 [__FAST_MATH__] (__sincosl): Remove inline function.
14173 (__atan2l): Remove inline functions.
14174 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14175 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14176 function.
14177 (floor): Remove inline function.
14178 (ceil): Likewise.
14179 [__FAST_MATH__] (__ldexp_code): Remove macro.
14180 [__FAST_MATH__] (ldexp): Remove inline function.
14181 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14182 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14183 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14184 [__USE_ISOC99] (__lrint_code): Remove macro.
14185 [__USE_ISOC99] (__llrint_code): Likewise.
14186 [__USE_ISOC99] (lrintf): Remove inline function.
14187 [__USE_ISOC99] (lrint): Likewise.
14188 [__USE_ISOC99] (lrintl): Likewise.
14189 [__USE_ISOC99] (llrint): Likewise.
14190 [__USE_ISOC99] (llrintf): Likewise.
14191 [__USE_ISOC99] (llrintl): Likewise.
14192
14193 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14194
14195 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14196 (__ieee754_sqrtf): Remove.
14197 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14198 (__ieee754_sqrtf): Remove.
14199 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14200 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14201 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14202 (__ieee754_sqrtf): Remove.
14203 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14204 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14205 (sqrtf): Remove.
14206 (sqrtl): Remove.
14207 (__ieee754_sqrt): Remove.
14208 (__ieee754_sqrtf): Remove.
14209 (__ieee754_sqrtl): Remove.
14210 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14211 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14212 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14213 (__ieee754_sqrtf): Remove.
14214 (__ieee754_sqrtl): Remove.
14215
14216 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14217
14218 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14219 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14220 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14221 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14222 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14223 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14224 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14225 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14226 Likewise.
14227 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14228 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14229 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14230 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14231 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14232 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14233 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14234 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14235 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14236 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14237 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14238 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14239 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14240 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14241 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14242 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14243 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14244 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14245 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14246 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14247 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14248 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14249 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14250 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14251 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14252 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14253 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14254 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14255 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14256 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14257 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14258 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14259 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14260 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14261 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14262 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14263 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14264 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14265 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14266 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14267
14268 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14269
14270 * include/math.h (sqrt): Declare with asm redirect.
14271 (sqrtf): Likewise.
14272 (sqrtl): Likewise.
14273 (sqrtf128): Likewise.
14274 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14275 nonlib and libnldbl with -fmath-errno.
14276 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14277 * math/w_sqrt_template.c: Likewise.
14278 * math/w_sqrtf_compat.c: Likewise.
14279 * math/w_sqrtl_compat.c: Likewise.
14280 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14281 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14282 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14283 complex.h.
14284
14285 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14286
14287 * benchtests/Makefile: Define _ISOMAC.
14288 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14289 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14290 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14291 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14292 * benchtests/bench-timing.h: Define attribute_hidden.
14293
14294 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14295
14296 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14297 mov + lsr.
14298
14299 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14300
14301 [BZ #22963]
14302 * localedata/locales/cs_CZ (mon): Rename to...
14303 (alt_mon): This.
14304 (mon): Import from CLDR (genitive case).
14305
14306 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14307
14308 [BZ #22937]
14309 * localedata/locales/el_CY (abmon): Rename to...
14310 (ab_alt_mon): This.
14311 (abmon): Import from CLDR (abbreviated genitive case).
14312 * localedata/locales/el_GR (abmon): Rename to...
14313 (ab_alt_mon): This.
14314 (abmon): Import from CLDR (abbreviated genitive case).
14315
14316 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14317
14318 [BZ #22932]
14319 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14320
14321 2018-03-15 Robert Buj <robert.buj@gmail.com>
14322
14323 [BZ #22848]
14324 * localedata/locales/ca_ES (abmon): Rename to...
14325 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14326 (mon): Rename to...
14327 (alt_mon): This.
14328 (abmon): Import from CLDR (genitive case, month names preceded by
14329 "de" or "d’").
14330 (mon): Likewise.
14331 (abday): Synchronize with CLDR.
14332 (d_t_fmt): Likewise.
14333 (d_fmt): Likewise.
14334 (am_pm): Likewise.
14335
14336 (LC_TIME): Improve indentation.
14337 (LC_TELEPHONE): Likewise.
14338 (LC_NAME): Likewise.
14339 (LC_ADDRESS): Likewise.
14340
14341 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14342
14343 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14344 (lrintf): Remove definitions used only with old GCC.
14345 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14346 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14347 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14348 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14349 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14350 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14351 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14352 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14353 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14354 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14355 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14356 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14357 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14358 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14359 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14360 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14361 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14362 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14363 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14364 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14365 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14366 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14367 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14368 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14369 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14370 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14371 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14372 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14373
14374 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14375
14376 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14377 instruction to unbreak builds with binutils 2.26 and older.
14378
14379 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14380
14381 * sysdeps/aarch64/strncmp.S (count): New macro.
14382 (strncmp): Store misaligned length in SRC1 in COUNT.
14383 (mutual_align): Adjust.
14384 (misaligned8): Load dword at a time when it is safe.
14385
14386 2018-03-12 Zack Weinberg <zackw@panix.com>
14387
14388 [BZ #1190]
14389 [BZ #19476]
14390 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14391 if the _IO_EOF_SEEN bit is already set; update commentary.
14392 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14393 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14394
14395 * support/support_openpty.c, support/tty.h: New files.
14396 * support/Makefile (libsupport-routines): Add support_openpty.
14397
14398 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14399 New test cases.
14400 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14401 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14402
14403 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14404
14405 * po/pt_BR.po: Update translations.
14406
14407 2018-03-12 David Michael <fedora.dm0@gmail.com>
14408
14409 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14410 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14411 get a port to the startup server.
14412
14413 2018-03-11 Zack Weinberg <zackw@panix.com>
14414
14415 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14416 before nldbl-compat.h.
14417
14418 2018-03-10 Zack Weinberg <zackw@panix.com>
14419
14420 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14421 math.h or math_private.h.
14422
14423 * sysdeps/alpha/fpu/s_isnan.c
14424 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14425 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14426 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14427 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14428 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14429 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14430 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14431 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14432 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14434 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14435 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14436 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14437 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14438 Include math_private.h.
14439
14440 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14441 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14442 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14443 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14444 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14445 * sysdeps/powerpc/power7/fpu/s_logb.c:
14446 Include math.h and math_private.h.
14447
14448 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14449 uses of $at in .set noat / .set at.
14450
14451 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14452
14453 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14454 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14455 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14456 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14457 Likewise.
14458
14459 2018-03-09 Florian Weimer <fweimer@redhat.com>
14460
14461 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14462 in comment.
14463
14464 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14465
14466 [BZ #22919]
14467 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14468 Add nop before __startcontext, add explaining comments.
14469
14470 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14471
14472 [BZ #22926]
14473 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14474 empty for __SPE__.
14475 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14476 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14477 Do not build hardware transactional code for __SPE__.
14478 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14479 (__lll_trylock_elision): Likewise.
14480 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14481 (__lll_unlock_elision): Likewise.
14482
14483 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14484 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14485 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14486 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14487 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14488 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14489 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14490 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14491 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14492 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14493 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14494 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14495 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14496 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14497 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14498 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14499 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14500 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14501 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14502 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14503 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14504 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14505 (__ASSUME_CLONE_BACKWARDS): Define.
14506 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14507 __clone2 if __NR_clone2 is defined.
14508 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14509 (__ASSUME_CLONE_BACKWARDS): Likewise.
14510 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14511 (__ASSUME_CLONE_BACKWARDS): Likewise.
14512 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14513 (__ASSUME_CLONE2): Likewise.
14514 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14515 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14516 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14517 variants and the define architecture can use.
14518 (__ASSUME_CLONE_DEFAULT): Define as default.
14519 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14520 (__ASSUME_CLONE_BACKWARDS): Likewise.
14521 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14522 (__ASSUME_CLONE_BACKWARDS): Likewise.
14523 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14524 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14525
14526 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14527
14528 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14529
14530 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14531 time.
14532
14533 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14534 (do_test_limit): Likewise.
14535
14536 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14537 for every implementation.
14538 (do_test): Likewise.
14539
14540 * benchtests/bench-strncmp.c: Convert output to json.
14541
14542 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14543
14544 * io/futimens.c: Add missing start-of-file descriptive comment.
14545 * io/utime.c: Likewise.
14546 * misc/futimesat.c: Likewise.
14547 * misc/utimes.c: Likewise.
14548 * sysdeps/mach/hurd/futimesat.c: Likewise.
14549 * sysdeps/mach/hurd/utimes.c: Likewise.
14550 * sysdeps/posix/utime.c: Likewise.
14551 * sysdeps/posix/utimes.c: Likewise.
14552 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14553 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14554 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14555 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14556
14557 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14558
14559 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14560 hurd_futimes.
14561 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14562 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14563 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14564 (__futimens): Move implementation to...
14565 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14566 utime_tvalue_from_tspec): ... new helper functions.
14567 (hurd_futimens): New function.
14568 * sysdeps/mach/hurd/futimesat.c: New file.
14569 * sysdeps/mach/hurd/utimensat.c: New file.
14570
14571 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14572
14573 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14574 UTIME_OMIT): New macros.
14575 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14576 before reverting to converting time spec to time value and calling
14577 __file_utimes.
14578 * sysdeps/mach/hurd/utime-helper.c: New file.
14579 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14580 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14581 reverting to utime_tvalue_from_tval and __file_utimes.
14582 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14583 (__lutimes): Just call hurd_futimens after lookup.
14584 * sysdeps/mach/hurd/utimes.c: Likewise.
14585
14586 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14587
14588 * bits/sigaction.h: Add include guard.
14589 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14590 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14591 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14592 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14593 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14595 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14596 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14597 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14598
14599 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14600
14601 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14602 -Wmaybe-uninitialized for -Os.
14603 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14604 this disabling.
14605
14606 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14607
14608 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14609 __INO_T_MATCHES_INO64_T is defined.
14610 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14611 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14612 of definition.
14613 * dirent/alphasort64.c: Likewise.
14614 * dirent/scandir.c: Likewise.
14615 * dirent/scandir64-tail.c: Likewise.
14616 * dirent/scandir64.c: Likewise.
14617 * dirent/scandirat.c: Likewise.
14618 * dirent/scandirat64.c: Likewise.
14619 * dirent/versionsort.c: Likewise.
14620 * dirent/versionsort64.c: Likewise.
14621 * include/dirent.h: Likewise.
14622
14623 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14624 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14625 for socketpair endpoint.
14626 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14627 WRITE_BUFFER_SIZE as buffer size for sending socket.
14628 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14629 issue on system where send is implemented with sendto syscall.
14630 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14631 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14632 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14633 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14634
14635 [BZ #21269]
14636 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14637 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14638 sa_restorer for vDSO case.
14639 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14640
14641 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14642
14643 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14644 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14645 * hurd/hurd/ioctl.h: Include <mach/port.h>
14646 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14647 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14648 <mach/mach_types.h> and <mach/message.h>.
14649 (headers): Move mach/param.h to bits/mach/param.h.
14650 * sysdeps/mach/i386/mach/param.h: Move file to ...
14651 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14652 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14653 of <mach/param.h>.
14654 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14655 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14656 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14657 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14658 trivial, for C++ conformity.
14659 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14660 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14661 Process mig output through $(migheadersed).
14662 * hurd/Makefile (migheadersed): Define variable.
14663 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14664 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14665 headers.
14666 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14667 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14668 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14669 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14670 <bits/types/sigset_t.h>.
14671 [!defined __USE_GNU]: Do not #error out.
14672 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14673 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14674 Include <stddef.h> and <bits/types/sigset_t.h>
14675 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14676 instead of sighandler_t.
14677 * stdlib/errno.h (error_t): Move definition to...
14678 * bits/types/error_t.h: ... new header.
14679 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14680 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14681 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14682 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14683 * hurd/hurd.h: Include <bits/types/error_t.h>
14684 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14685 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14686 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14687 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14688 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14689 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14690 * sysdeps/mach/hurd/futimens.c: New file.
14691
14692 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14693
14694 [BZ #22918]
14695 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14696 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14697 * nscd/gai.c (__nss_hosts_database): Readd definition.
14698 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14699 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14700 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14701
14702 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14703
14704 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14705 (ifunc_one): Likewise.
14706
14707 2018-03-01 DJ Delorie <dj@delorie.com>
14708
14709 [BZ #22342]
14710 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14711 key value.
14712
14713 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14714
14715 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14716 `match_pid' parameter.
14717 (td_ta_thr_iter): Update accordingly.
14718
14719 2018-03-01 Florian Weimer <fweimer@redhat.com>
14720
14721 * nptl/Makefile (install-lib-ldscripts): Remove.
14722 (install): Remove rule.
14723 ($(inst_libdir)/libpthread.so): Likewise.
14724
14725 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14726
14727 [BZ #22896]
14728 * localedata/locales/an_ES: update month and day names,
14729 improve d_fmt, improve postal_fmt, add country_post,
14730 add country_isbn
14731
14732 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14733
14734 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14735 Ukrainian instead of Bulgarian.
14736
14737 2018-03-01 Florian Weimer <fweimer@redhat.com>
14738
14739 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14740 reference.
14741
14742 2018-03-01 Florian Weimer <fweimer@redhat.com>
14743
14744 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14745 * nptl/Makefile (routines): Add pthread_atfork.
14746 (static-only-routines): Set to pthread_atfork.
14747 (libpthread-routines): Remove pthread_atfork.
14748 (libpthread-static-only-routines): Remove.
14749 (install): Update comment.
14750 (libpthread.so): Do not install libpthread_nonshared.a.
14751 (tests): Do not link with libpthread_nonshared.a.
14752 (generated): Remove libpthread_nonshared.a.
14753 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14754 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14755 with libpthread_nonshared.a.
14756
14757 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14758
14759 [BZ #22902]
14760 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14761 (libc_feholdexcept_setroundf128): New macro.
14762 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14763
14764 [BZ #15105]
14765 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14766 libc_hidden_def.
14767 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14768 * include/inttypes.h: New file.
14769
14770 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14771
14772 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14773 -Os in two more places.
14774
14775 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14776
14777 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14778 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14779 be sorted correctly at the moment because of a bug.
14780
14781 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14782
14783 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14784 treat ñ as a primary different character, sync the collation
14785 for Spanish with CLDR.
14786 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14787 * localedata/Makefile: Add new test files.
14788 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14789 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14790 collation order.
14791 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14792 * localedata/am_ET.UTF-8.in: New test file.
14793 * localedata/az_AZ.UTF-8.in: Likewise.
14794 * localedata/be_BY.UTF-8.in: Likewise.
14795 * localedata/ber_DZ.UTF-8.in: Likewise.
14796 * localedata/ber_MA.UTF-8.in: Likewise.
14797 * localedata/bg_BG.UTF-8.in: Likewise.
14798 * localedata/br_FR.UTF-8.in: Likewise.
14799 * localedata/cmn_TW.UTF-8.in: Likewise.
14800 * localedata/crh_UA.UTF-8.in: Likewise.
14801 * localedata/csb_PL.UTF-8.in: Likewise.
14802 * localedata/cv_RU.UTF-8.in: Likewise.
14803 * localedata/cy_GB.UTF-8.in: Likewise.
14804 * localedata/dz_BT.UTF-8.in: Likewise.
14805 * localedata/eo.UTF-8.in: Likewise.
14806 * localedata/es_ES.UTF-8.in: Likewise.
14807 * localedata/fa_IR.UTF-8.in: Likewise.
14808 * localedata/fi_FI.UTF-8.in: Likewise.
14809 * localedata/fil_PH.UTF-8.in: Likewise.
14810 * localedata/fur_IT.UTF-8.in: Likewise.
14811 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14812 * localedata/ha_NG.UTF-8.in: Likewise.
14813 * localedata/ig_NG.UTF-8.in: Likewise.
14814 * localedata/ik_CA.UTF-8.in: Likewise.
14815 * localedata/kk_KZ.UTF-8.in: Likewise.
14816 * localedata/ku_TR.UTF-8.in: Likewise.
14817 * localedata/ky_KG.UTF-8.in: Likewise.
14818 * localedata/ln_CD.UTF-8.in: Likewise.
14819 * localedata/mi_NZ.UTF-8.in: Likewise.
14820 * localedata/ml_IN.UTF-8.in: Likewise.
14821 * localedata/mn_MN.UTF-8.in: Likewise.
14822 * localedata/mr_IN.UTF-8.in: Likewise.
14823 * localedata/mt_MT.UTF-8.in: Likewise.
14824 * localedata/nb_NO.UTF-8.in: Likewise.
14825 * localedata/om_KE.UTF-8.in: Likewise.
14826 * localedata/os_RU.UTF-8.in: Likewise.
14827 * localedata/ps_AF.UTF-8.in: Likewise.
14828 * localedata/ro_RO.UTF-8.in: Likewise.
14829 * localedata/ru_RU.UTF-8.in: Likewise.
14830 * localedata/sc_IT.UTF-8.in: Likewise.
14831 * localedata/se_NO.UTF-8.in: Likewise.
14832 * localedata/sq_AL.UTF-8.in: Likewise.
14833 * localedata/sv_SE.UTF-8.in: Likewise.
14834 * localedata/szl_PL.UTF-8.in: Likewise.
14835 * localedata/tg_TJ.UTF-8.in: Likewise.
14836 * localedata/tk_TM.UTF-8.in: Likewise.
14837 * localedata/tt_RU.UTF-8.in: Likewise.
14838 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14839 * localedata/ug_CN.UTF-8.in: Likewise.
14840 * localedata/uz_UZ.UTF-8.in: Likewise.
14841 * localedata/vi_VN.UTF-8.in: Likewise.
14842 * localedata/yi_US.UTF-8.in: Likewise.
14843 * localedata/yo_NG.UTF-8.in: Likewise.
14844 * localedata/zh_CN.UTF-8.in: Likewise.
14845 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14846 file and fix bugs in the collation.
14847 * localedata/locales/az_AZ: Likewise.
14848 * localedata/locales/be_BY: Likewise.
14849 * localedata/locales/ber_DZ: Likewise.
14850 * localedata/locales/ber_MA: Likewise.
14851 * localedata/locales/bg_BG: Likewise.
14852 * localedata/locales/br_FR: Likewise.
14853 * localedata/locales/br_FR@euro: Likewise.
14854 * localedata/locales/ca_ES: Likewise.
14855 * localedata/locales/cns11643_stroke: Likewise.
14856 * localedata/locales/crh_UA: Likewise.
14857 * localedata/locales/cs_CZ: Likewise.
14858 * localedata/locales/csb_PL: Likewise.
14859 * localedata/locales/cv_RU: Likewise.
14860 * localedata/locales/cy_GB: Likewise.
14861 * localedata/locales/da_DK: Likewise.
14862 * localedata/locales/dz_BT: Likewise.
14863 * localedata/locales/en_CA: Likewise.
14864 * localedata/locales/eo: Likewise.
14865 * localedata/locales/es_CU: Likewise.
14866 * localedata/locales/es_EC: Likewise.
14867 * localedata/locales/es_ES: Likewise.
14868 * localedata/locales/es_US: Likewise.
14869 * localedata/locales/et_EE: Likewise.
14870 * localedata/locales/fa_IR: Likewise.
14871 * localedata/locales/fi_FI: Likewise.
14872 * localedata/locales/fil_PH: Likewise.
14873 * localedata/locales/fur_IT: Likewise.
14874 * localedata/locales/gez_ER@abegede: Likewise.
14875 * localedata/locales/ha_NG: Likewise.
14876 * localedata/locales/hr_HR: Likewise.
14877 * localedata/locales/hsb_DE: Likewise.
14878 * localedata/locales/hu_HU: Likewise.
14879 * localedata/locales/ig_NG: Likewise.
14880 * localedata/locales/ik_CA: Likewise.
14881 * localedata/locales/is_IS: Likewise.
14882 * localedata/locales/iso14651_t1_pinyin: Likewise.
14883 * localedata/locales/kk_KZ: Likewise.
14884 * localedata/locales/ku_TR: Likewise.
14885 * localedata/locales/ky_KG: Likewise.
14886 * localedata/locales/ln_CD: Likewise.
14887 * localedata/locales/lt_LT: Likewise.
14888 * localedata/locales/lv_LV: Likewise.
14889 * localedata/locales/mi_NZ: Likewise.
14890 * localedata/locales/ml_IN: Likewise.
14891 * localedata/locales/mn_MN: Likewise.
14892 * localedata/locales/mr_IN: Likewise.
14893 * localedata/locales/mt_MT: Likewise.
14894 * localedata/locales/nb_NO: Likewise.
14895 * localedata/locales/om_KE: Likewise.
14896 * localedata/locales/os_RU: Likewise.
14897 * localedata/locales/pl_PL: Likewise.
14898 * localedata/locales/ps_AF: Likewise.
14899 * localedata/locales/ro_RO: Likewise.
14900 * localedata/locales/ru_RU: Likewise.
14901 * localedata/locales/ru_UA: Likewise.
14902 * localedata/locales/sc_IT: Likewise.
14903 * localedata/locales/se_NO: Likewise.
14904 * localedata/locales/si_LK: Likewise.
14905 * localedata/locales/sq_AL: Likewise.
14906 * localedata/locales/sv_FI: Likewise.
14907 * localedata/locales/sv_FI@euro: Likewise.
14908 * localedata/locales/sv_SE: Likewise.
14909 * localedata/locales/szl_PL: Likewise.
14910 * localedata/locales/tg_TJ: Likewise.
14911 * localedata/locales/ti_ER: Likewise.
14912 * localedata/locales/tk_TM: Likewise.
14913 * localedata/locales/tl_PH: Likewise.
14914 * localedata/locales/tr_TR: Likewise.
14915 * localedata/locales/tt_RU: Likewise.
14916 * localedata/locales/tt_RU@iqtelif: Likewise.
14917 * localedata/locales/ug_CN: Likewise.
14918 * localedata/locales/uk_UA: Likewise.
14919 * localedata/locales/uz_UZ: Likewise.
14920 * localedata/locales/uz_UZ@cyrillic: Likewise.
14921 * localedata/locales/vi_VN: Likewise.
14922 * localedata/locales/yi_US: Likewise.
14923 * localedata/locales/yo_NG: Likewise.
14924
14925 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14926
14927 * gen-locales.mk: Make test files which contain @ modifiers in their
14928 name work.
14929 * localedata/gen-locale.sh: Likewise.
14930
14931 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14932
14933 * posix/tst-fnmatch.input: Fix results for range expressions
14934 for non C locales.
14935 * posix/tst-regexloc.c: Do not use a range expression for
14936 de_DE.ISO-8859-1 locale.
14937
14938 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14939
14940 * posix/bug-regex5.c: Fix test case because with the new
14941 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14942 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14943 file.
14944
14945 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14946
14947 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14948 downloaded from ISO, the collation order of @-. and space has changed.
14949 Therefore, this test file needed to be adapted.
14950 * localedata/fr_CA.UTF-8.in: Likewise.
14951 * localedata/fr_FR.UTF-8.in: Likewise.
14952 * localedata/uk_UA.UTF-8.in: Likewise.
14953
14954 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14955
14956 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14957 order of ȥ in the new iso14651_t1_common file.
14958 * localedata/pl_PL.UTF-8.in: Likewise.
14959
14960 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14961
14962 * localedata/locales/iso14651_t1_common: Add sections for various
14963 scripts to the iso14651_t1_common file.
14964
14965 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14966
14967 * localedata/locales/iso14651_t1_common: Use the code point of a
14968 character in the fourth collation level instead of IGNORE for all
14969 entries which have IGNORE on all 4 levels.
14970
14971 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14972
14973 * localedata/locales/iso14651_t1_common: Add some convenient collation
14974 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14975 rules similar to those in CLDR.
14976
14977 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14978
14979 * localedata/locales/iso14651_t1_common: The new version of this
14980 file downloaded from ISO contained several syntax errors which
14981 are fixed by this patch.
14982
14983 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14984
14985 * localedata/locales/iso14651_t1_common: replace all <U.....>
14986 with <U000.....> because glibc understands only 4 digit or 8 digit
14987
14988 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14989
14990 * localedata/locales/iso14651_t1_common: Necessary changes
14991 to make the file downloaded from ISO usable by glibc.
14992
14993 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14994
14995 [BZ #14095]
14996 * localedata/locales/iso14651_t1_common: Update file to
14997 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14998
14999 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15000
15001 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15002 of <nptl/pthreadP.h>
15003 (thread_attr_compare): Move function to...
15004 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15005 * sysdeps/nptl/timer_routines.h: ... new header.
15006 * sysdeps/mach/hurd/gai_misc.h: New file.
15007
15008 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15009
15010 * string/strcoll_l.c: Include <libc-diag.h>.
15011 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15012 declarations of seq1 and seq2.
15013
15014 [BZ #15105]
15015 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15016 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15017
15018 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15019
15020 [BZ #22433]
15021 [BZ #22807]
15022 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15023 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15024 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15025 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15026 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15027 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15028
15029 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15030
15031 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15032 macros used in __ptrace_request.
15033
15034 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15035
15036 [BZ #22792]
15037 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15038 to $(CC).
15039 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15040 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15041 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15042 <tcb-offsets.h>.
15043
15044 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15045
15046 [BZ #15105]
15047 * ctype/ctype.c (tolower): Use libc_hidden_def.
15048 (toupper): Likewise.
15049 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15050 [!_ISOMAC] (toupper): Likewise.
15051
15052 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15053
15054 * localedata/Makefile: Remove --quiet argument when
15055 installing locales
15056
15057 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15058
15059 [BZ #17438]
15060 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15061 in d_fmt.
15062 * localedata/locales/pt_PT (LC_TIME): likewise
15063
15064 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15065
15066 [BZ #22646]
15067 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15068 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15069 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15070
15071 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15072
15073 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15074
15075 * nptl/Makefile (routines): Remove unregister-atfork.
15076 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15077 (fork_handler_alloc): Remove function.
15078 (fork_handlers, fork_handler_init): New variables.
15079 (__fork_lock): Rename to atfork_lock.
15080 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15081 to use a dynamic array to add/remove atfork handlers.
15082 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15083 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15084 Remove declaration.
15085 (fork_handler): Remove next, refcntr, and need_signal member.
15086 (__run_fork_handler_type): New enum.
15087 (__run_fork_handlers): New prototype.
15088 * nptl/register-atfork.c: Remove file.
15089 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15090
15091 * sysdeps/nptl/nptl-signals.h: Move to ...
15092 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15093 comments.
15094 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15095 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15096 unnecessary check for SIGTIMER.
15097 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15098 remove unnecessary removal of SIGTIMER.
15099 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15100 include-signals.h rename.
15101 * nptl/pthreadP.h: Likewise.
15102 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15103 __is_internal_signal instead of __nptl_is_internal_signal.
15104
15105 2018-02-22 Andrew Waterman <andrew@sifive.com>
15106
15107 [BZ # 22884]
15108 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15109 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15110 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15111 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15112
15113 2018-02-22 DJ Delorie <dj@delorie.com>
15114
15115 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15116
15117 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15118
15119 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15120 do_misaligned, not misaligned8.
15121
15122 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15123
15124 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15125 Add memcpy_thunderx2.
15126 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15127 Increment to 4.
15128 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15129 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15130 and IS_THUNDERX2PA checks.
15131 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15132 Use macro to set name appropriately.
15133 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15134 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15135 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15136 New macro.
15137 (IS_THUNDERX2): New macro.
15138
15139 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15140
15141 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15142
15143 2018-02-21 Zack Weinberg <zackw@panix.com>
15144
15145 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15146 Define here, unconditionally.
15147 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15148 * libio/libioP.h: Remove #if 0 blocks.
15149 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15150 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15151 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15152
15153 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15154 Assume weak_alias is always defined.
15155
15156 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15157 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15158 Remove #if 0 and #ifdef TODO blocks.
15159 Assume text_set_element is always defined.
15160
15161 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15162 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15163 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15164
15165 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15166 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15167 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15168 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15169 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15170 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15171 Reformat bit flags for _flags field to make occupancy clearer.
15172 Update commentary.
15173 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15174 Keep definitions consistent with those in libio/libio.h.
15175
15176 * libio/libio.h (_IO_file_flags): Remove macro.
15177 All uses changed to _flags.
15178
15179 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15180 (__HAVE_COLUMN, _IO_BE): Don't define.
15181 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15182 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15183 * libio/libioP.h (EOF): Don't define.
15184 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15185 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15186 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15187 testing _IO_UNIFIED_JUMPTABLES.
15188
15189 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15190 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15191 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15192 (_IO_size_t): Delete; all uses changed to size_t.
15193 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15194 (_IO_off_t): Delete; all uses changed to off_t.
15195 (_IO_off64_t): Delete; all uses changed to off64_t.
15196 (_IO_pid_t): Delete; all uses changed to pid_t.
15197 (_IO_uid_t): Delete; all uses changed to uid_t.
15198 (_IO_wint_t): Delete; all uses changed to wint_t.
15199 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15200 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15201 (_IO_cookie_io_functions_t): Delete; all uses changed to
15202 cookie_io_functions_t.
15203 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15204 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15205 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15206 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15207
15208 * libio/iofopncook.c: Remove unnecessary forward declarations.
15209 * libio/iolibio.h: Correct outdated commentary.
15210 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15211 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15212 Remove unnecessary casts.
15213 * stdio-common/getline.c: Use _IO_getdelim directly.
15214 Don't redefine ssize_t.
15215 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15216 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15217 Remove outdated comments.
15218 * stdio-common/vfscanf.c: Don't redefine va_list.
15219
15220 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15221 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15222 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15223 which are always true, and __cplusplus, which is always false.
15224
15225 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15226
15227 [BZ #15105]
15228 [BZ #19463]
15229 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15230 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15231 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15232 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15233 libc_hidden_proto.
15234 [!_ISOMAC] (putc_unlocked): Likewise.
15235 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15236 define inline if [__USE_EXTERN_INLINES].
15237 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15238 putc_unlocked.
15239
15240 [BZ #15105]
15241 [BZ #19463]
15242 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15243 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15244 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15245 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15246 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15247 getc_unlocked.
15248 * time/tzfile.c (__tzfile_read): Likewise.
15249
15250 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15251
15252 [BZ #22517]
15253 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15254
15255 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15256
15257 * io/fcntl.h: Fix a typo in a comment.
15258
15259 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15260
15261 [BZ #22862]
15262 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15263 define _DEFAULT_SOURCE.
15264 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15265
15266 2018-02-21 Florian Weimer <fweimer@redhat.com>
15267
15268 [BZ #20890]
15269 * elf/cache.c (save_cache): Call fsync on temporary file before
15270 renaming it.
15271 (save_aux_cache): Call fdatasync on temporary file before renaming
15272 it.
15273
15274 2018-02-21 Florian Weimer <fweimer@redhat.com>
15275
15276 [BZ #22787]
15277 * include/caller.h: Remove file.
15278 * elf/dl-caller.c: Likewise.
15279 * elf/Makefile (dl-routines): Remove dl-caller.
15280 (shared-only-routines): Do not add dl-caller.
15281 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15282 __check_caller.
15283 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15284 member.
15285 (dl_open_worker): Do not call __check_caller.
15286 (_dl_open): Do not set caller_dl_open member.
15287 * elf/rtld.c (_rtld_global_ro): Do not initialize
15288 _dl_check_caller member.
15289 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15290 _dl_check_caller member.
15291 (_dl_check_caller): Remove declaration.
15292 * sysdeps/unix/sysv/linux/dl-execstack.c
15293 (_dl_make_stack_executable): Do not call __check_caller.
15294
15295 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15296
15297 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15298 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15299
15300 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15301
15302 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15303 description.
15304
15305 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15306
15307 [BZ #16335]
15308 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15309 of 199606L, 200112L, and 200809L.
15310 (_XOPEN_SOURCE): Document special values of 600 and 700.
15311 (_ISOC11_SOURCE): Document macro.
15312 (_ATFILE_SOURCE): Likewise.
15313 (_FORTIFY_SOURCE): Likewise.
15314
15315 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15316
15317 [BZ #15105]
15318 [BZ #19463]
15319 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15320 and define as weak alias of __ferror_unlocked. Use
15321 libc_hidden_weak.
15322 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15323 libc_hidden_proto.
15324 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15325 function if [__USE_EXTERN_INLINES].
15326 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15327 ferror_unlocked.
15328
15329 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15330
15331 [BZ #6889]
15332 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15333
15334 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15335
15336 [BZ #22818]
15337 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15338 the GLIBC_2.1 version.
15339
15340 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15341
15342 [BZ #21508]
15343 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15344 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15345 intl/tst-gettext-de.po from po/de.po by removing the
15346 POT-Creation-Date line.
15347 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15348 ../po/de.po.
15349 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15350 ../po/de.po.
15351
15352 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15353
15354 * mach/Makefile (headers): Add mach/param.h.
15355 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15356 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15357 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15358 (__ptsname_r): Move implementation to...
15359 (__ptsname_internal): ... new function. Add filling the STP
15360 structure.
15361
15362 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15363
15364 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15365 idouble to 1 ULP.
15366
15367 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15368
15369 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15370 syntax.
15371
15372 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15373
15374 * nptl/Makefile (tst-mutex8-ENV): Delete.
15375 * nptl/tst-mutex8.c (check_type):
15376 Add runtime check if mutex will be elided.
15377
15378 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15379
15380 [BZ #20980]
15381 [BZ #21234]
15382 * manual/install.texi (Configuring and compiling): Describe
15383 passing CC and CFLAGS on configure command line, not as
15384 environment variables. Use @code markup on those variables.
15385 Specify what options go in CC and what go in CFLAGS. Note the
15386 requirement to compile with optimization.
15387 * INSTALL: Regenerated.
15388
15389 [BZ #18124]
15390 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15391 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15392 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15393 __sigprocmask instead of sigprocmask.
15394 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15395 Likewise.
15396 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15397 __sigsetjmp and sigprocmask.
15398
15399 [BZ #15105]
15400 * include/argz.h (argz_next): Use libc_hidden_proto.
15401 (__argz_next): Likewise.
15402 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15403 (argz_next): Use libc_hidden_weak.
15404
15405 [BZ #15105]
15406 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15407 libc_hidden_proto.
15408 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15409 libc_hidden_def.
15410
15411 [BZ #15105]
15412 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15413 libc_hidden_proto.
15414 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15415
15416 [BZ #15105]
15417 [BZ #19463]
15418 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15419 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15420 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15421 (__feof_unlocked): New declaration, and inline function if
15422 [__USE_EXTERN_INLINES].
15423 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15424 instead of feof_unlocked.
15425 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15426 * nss/nsswitch.c (nss_parse_file): Likewise.
15427 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15428 Likewise.
15429 * time/getdate.c (__getdate_r): Likewise.
15430 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15431 Define as macro to call __feof_unlocked.
15432
15433 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15434
15435 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15436
15437 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15438
15439 * math/Makefile: Remove mpexp.c and mplog.c
15440 * sysdeps/i386/fpu/mpexp.c: Delete file.
15441 * sysdeps/i386/fpu/mplog.c: Likewise.
15442 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15443 * sysdeps/ia64/fpu/mplog.c: Likewise.
15444 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15445 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15446 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15447 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15448 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15449 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15450 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15451 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15452 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15453 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15454 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15455 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15456 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15457 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15458 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15459 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15460
15461 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15462
15463 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15464
15465 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15466
15467 * sysdeps/sh/libm-test-ulps: Update.
15468
15469 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15470
15471 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15472 idouble to 1 ULP.
15473
15474 2018-02-12 Zack Weinberg <zackw@panix.com>
15475
15476 [BZ #19239]
15477 * posix/sys/types.h: Don't include sys/sysmacros.h.
15478 * misc/sys/sysmacros.h: Remove the conditional deprecation
15479 warnings for the macros defined by this header.
15480
15481 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15482
15483 * manual/probes.texi: Remove slowexp probes.
15484 * math/Makefile: Remove slowexp.
15485 * sysdeps/generic/math_private.h (__slowexp): Remove.
15486 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15487 document error bounds.
15488 * sysdeps/i386/fpu/slowexp.c: Remove.
15489 * sysdeps/ia64/fpu/slowexp.c: Remove.
15490 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15491 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15492 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15493 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15494 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15495 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15496 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15497 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15498 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15499 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15500 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15501
15502 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15503
15504 [BZ #13932]
15505 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15506 * benchtests/pow-inputs: Update comment for slow path cases.
15507 * manual/probes.texi (slowpow_p10): Delete removed probe.
15508 (slowpow_p10): Likewise.
15509 * math/Makefile: Remove halfulp.c and slowpow.c.
15510 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15511 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15512 (__halfulp): Remove.
15513 (__slowpow): Remove.
15514 * sysdeps/i386/fpu/halfulp.c: Delete file.
15515 * sysdeps/i386/fpu/slowpow.c: Likewise.
15516 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15517 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15518 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15519 improve comments and add error analysis.
15520 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15521 (power1): Remove function:
15522 (log1): Remove error argument, add error analysis.
15523 (my_log2): Remove function.
15524 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15525 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15526 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15527 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15528 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15529 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15530 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15531 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15532 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15533 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15534 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15535 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15536 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15537 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15538
15539 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15540
15541 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15542 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15543
15544 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15545
15546 [BZ #22433]
15547 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15548 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15549 and PTRACE_SETHBPREGS.
15550
15551 2018-02-10 Zack Weinberg <zackw@panix.com>
15552
15553 [BZ #22830]
15554 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15555 correctly.
15556 * malloc/tst-malloc-stats-cancellation.c: New test case.
15557 * malloc/Makefile: Add new test case.
15558
15559 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15560
15561 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15562
15563 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15564
15565 * math/Makefile (libm-narrow-fns): Add add.
15566 (libm-test-funcs-narrow): Likewise.
15567 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15568 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15569 * math/gen-auto-libm-tests.c (test_functions): Add add.
15570 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15571 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15572 (NARROW_ADD_TRIVIAL): Likewise.
15573 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15574 macro.
15575 (__daddl): Likewise.
15576 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15577 dadd.
15578 (CFLAGS-nldbl-dadd.c): New variable.
15579 (CFLAGS-nldbl-fadd.c): Likewise.
15580 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15581 __nldbl_daddl.
15582 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15583 prototype.
15584 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15585 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15586 * math/auto-libm-test-in: Add tests of add.
15587 * math/auto-libm-test-out-narrow-add: New generated file.
15588 * math/libm-test-narrow-add.inc: New file.
15589 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15590 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15591 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15592 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15593 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15594 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15595 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15596 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15597 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15598 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15599 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15600 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15601 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15602 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15603 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15604 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15605 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15606 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15607 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15608 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15609 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15610 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15611 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15612 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15613 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15614 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15615 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15616 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15617 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15618 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15619 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15620 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15625 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15626 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15627 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15628 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15629 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15630 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15631 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15632 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15633 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15634 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15635
15636 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15637 (f128-pairs): New variable.
15638 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15639 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15640 to CFLAGS.
15641 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15642 Also make tests add $(f128-loader-link) to gnulib-tests.
15643
15644 2018-02-09 DJ Delorie <dj@redhat.com>
15645
15646 [BZ #22827]
15647 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15648 64-bit ELF type for 64-bit ELF objects.
15649
15650 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15651
15652 * math/libm-test-driver.c (snan_tests_arg): New variable.
15653 * math/libm-test-support.h (snan_tests_arg): New declaration.
15654 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15655
15656 * math/Makefile (test-type-pairs): New variable.
15657 (test-type-pairs-f64xf128-yes): Likewise.
15658 (tests): Add test-narrow-macros.
15659 (libm-test-funcs-narrow): New variable.
15660 (libm-test-c-narrow): Likewise.
15661 (generated): Add $(libm-test-c-narrow).
15662 (libm-tests-base-narrow): New variable.
15663 (libm-tests-narrow): Likewise.
15664 (libm-tests): Add $(libm-tests-narrow).
15665 (libm-tests-for-type): Handle $(libm-tests-narrow).
15666 (libm-test-c-narrow-obj): New variable.
15667 ($(libm-test-c-narrow-obj)): New rule.
15668 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15669 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15670 $(o-iterator) to set dependencies and CFLAGS.
15671 * math/gen-auto-libm-tests.c: Document use for narrowing
15672 functions.
15673 (output_for_one_input_case): Take argument NARROW.
15674 (generate_output): Likewise. Update call to
15675 output_for_one_input_case.
15676 (main): Take --narrow option. Update call to generate_output.
15677 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15678 (apply_lit): Update call to _apply_lit.
15679 (apply_arglit): New function.
15680 (parse_args): Handle "a" arguments.
15681 (parse_auto_input): Handle format names using ":".
15682 * math/README.libm-test: Document "a" parameter type.
15683 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15684 (ARG_TYPE_TRUE_MIN): Likewise.
15685 (ARG_TYPE_MAX): Likwise.
15686 (ARG_MIN_EXP): Likewise.
15687 (ARG_MAX_EXP): Likewise.
15688 (ARG_MANT_DIG): Likewise.
15689 (TEST_COND_arg_ibm128): Likewise.
15690 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15691 (TEST_COND_arg_fmt): New macro.
15692 (init_max_error): Update prototype.
15693 * math/libm-test-support.c (test_ibm128): New variable.
15694 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15695 instead of using [TEST_COND_ibm128] conditional.
15696 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15697 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15698 [TEST_NARROW] (TEST_MSG): New definition.
15699 (arg_plus_zero): New macro.
15700 (arg_minus_zero): Likewise.
15701 (arg_plus_infty): Likewise.
15702 (arg_minus_infty): Likewise.
15703 (arg_qnan_value_pl): Likewise.
15704 (arg_qnan_value): Likewise.
15705 (arg_snan_value_pl): Likewise.
15706 (arg_snan_value): Likewise.
15707 (arg_max_value): Likewise.
15708 (arg_min_value): Likewise.
15709 (arg_min_subnorm_value): Likewise.
15710 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15711 (RUN_TEST_LOOP_aa_f): New macro.
15712 (TEST_SUFF): New macro.
15713 (TEST_SUFF_STR): Likewise.
15714 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15715 (TEST_COND_any_ibm128): New macro.
15716 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15717 this_func. Update call to init_max_error.
15718 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15719 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15720 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15721 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15722 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15723 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15724 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15725 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15726 * math/test-math-vector.h (TEST_NARROW): Likewise.
15727 * math/test-arg-double.h: New file.
15728 * math/test-arg-float128.h: Likewise.
15729 * math/test-arg-float32x.h: Likewise.
15730 * math/test-arg-float64.h: Likewise.
15731 * math/test-arg-float64x.h: Likewise.
15732 * math/test-arg-ldouble.h: Likewise.
15733 * math/test-math-narrow.h: Likewise.
15734 * math/test-narrow-macros.c: Likewise.
15735 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15736 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15737 test-narrow-macros-ldbl-64.
15738 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15739
15740 * math/bits/mathcalls-narrow.h: New file.
15741 * include/bits/mathcalls-narrow.h: Likewise.
15742 * math/math-narrow.h: Likewise.
15743 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15744 (__MATHCALL_NARROW_ARGS_2): Likewise.
15745 (__MATHCALL_NARROW_ARGS_3): Likewise.
15746 (__MATHCALL_NARROW_NORMAL): Likewise.
15747 (__MATHCALL_NARROW_REDIR): Likewise.
15748 (__MATHCALL_NARROW): Likewise.
15749 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15750 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15751 defined.
15752 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15753 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15754 (libm-narrow-fns): New variable.
15755 (libm-narrow-types-basic): Likewise.
15756 (libm-narrow-types-ldouble-yes): Likewise.
15757 (libm-narrow-types-float128-yes): Likewise.
15758 (libm-narrow-types-float128-alias-yes): Likewise.
15759 (libm-narrow-types): Likewise.
15760 (libm-routines): Add narrowing functions.
15761 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15762 (libc_feholdexcept_setroundf128): New macro.
15763 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15764 * sysdeps/ieee754/float128/float128_private.h: Include
15765 <math/math-narrow.h>.
15766 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15767 Undefine and redefine.
15768 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15769 (libm_alias_float_ldouble): Undefine and redefine.
15770 (libm_alias_double_ldouble): Likewise.
15771
15772 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15773
15774 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15775
15776 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15777 FPCR/FPSR.
15778
15779 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15780
15781 * manual/creature.texi: Convert references to gcc.info to gcc.
15782 * manual/stdio.texi: Likewise.
15783 * manual/string.texi: Likewise.
15784
15785 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15786
15787 [BZ #17979]
15788 * posix/bits/types.h (__int_least8_t): New typedef.
15789 (__uint_least8_t): Likewise.
15790 (__int_least16_t): Likewise.
15791 (__uint_least16_t): Likewise.
15792 (__int_least32_t): Likewise.
15793 (__uint_least32_t): Likewise.
15794 (__int_least64_t): Likewise.
15795 (__uint_least64_t): Likewise.
15796 * sysdeps/generic/stdint.h (int_least8_t): Define using
15797 __int_least8_t.
15798 (int_least16_t): Define using __int_least16_t.
15799 (int_least32_t): Define using __int_least32_t.
15800 (int_least64_t): Define using __int_least64_t.
15801 (uint_least8_t): Define using __uint_least8_t.
15802 (uint_least16_t): Define using __uint_least16_t.
15803 (uint_least32_t): Define using __uint_least32_t.
15804 (uint_least64_t): Define using __uint_least64_t.
15805 * wcsmbs/uchar.h: Include <bits/types.h>.
15806 (char16_t): Define using __uint_least16_t conditional only on
15807 [!__USE_ISOCXX11].
15808 (char32_t): Define using __uint_least32_t conditional only on
15809 [!__USE_ISOCXX11].
15810 * wcsmbs/test-char-types.c: New file.
15811 * wcsmbs/Makefile (tests): Add test-char-types.
15812
15813 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15814 version to 4.0.1.
15815
15816 2018-02-07 Zack Weinberg <zackw@panix.com>
15817
15818 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15819 Delete all contents except for definitions of _G_HAVE_MMAP and
15820 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15821 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15822 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15823 change as above.
15824
15825 * libio/libio.h: Don't include bits/_G_config.h here.
15826 Include stddef.h with __need_wchar_t defined. Include
15827 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15828 Define _IO_iconv_t here, directly.
15829 Don't define _IO_HAVE_ST_BLKSIZE.
15830 * libio/libioP.h: Include _G_config.h here. Move include of
15831 shlib-compat.h up with rest of includes. Simplify conditionals
15832 controlling definition of _IO_JUMPS_OFFSET.
15833
15834 * csu/init.c: Remove always-true #if around entire file.
15835 Don't include stdio.h. Set _IO_stdin_used to hardwired
15836 constant 0x20001, and update commentary.
15837 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15838 Replace all uses of _G_va_list with __gnuc_va_list.
15839 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15840 instead of #if _IO_HAVE_ST_BLKSIZE.
15841 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15842 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15843 not #ifdef.
15844
15845 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15846 multiple-include guard to match.
15847 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15848 into this file.
15849 Remove preprocessor conditionals that are always true and/or
15850 redundant to other preprocessor conditionals in the same nest.
15851 Include shlib-compat.h unconditionally.
15852 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15853 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15854 defined after including stdio.h.
15855 Use __BEGIN_DECLS/__END_DECLS.
15856
15857 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15858 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15859 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15860
15861 2018-02-07 Zack Weinberg <zackw@panix.com>
15862
15863 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15864 New single-type headers split from _G_config.h.
15865 * libio/bits/types/cookie_io_functions_t.h
15866 * libio/bits/types/struct_FILE.h
15867 New single-type headers split from libio.h.
15868
15869 * libio/Makefile: Install the above new headers. Don't install
15870 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15871 bits/libio-ldbl.h.
15872 * libio/_G_config.h, libio/libio.h: Delete file.
15873
15874 * libio/bits/libio.h: Remove improper-inclusion guard.
15875 Include stdio.h and don't repeat anything that it does.
15876 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15877 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15878 __io_read_fn as cookie_read_function_t,
15879 __io_write_fn as cookie_write_function_t,
15880 __io_seek_fn as cookie_seek_function_t,
15881 __io_close_fn as cookie_close_function_t,
15882 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15883 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15884 here, in the "compatibility defines" section. Remove an #if 0
15885 block. Use the "body" macros from bits/types/struct_FILE.h to
15886 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15887 and _IO_ferror_unlocked.
15888 Move prototypes of __uflow and __overflow...
15889
15890 * libio/stdio.h: ...here. Don't include bits/libio.h.
15891 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15892 directly from stdarg.h. Include bits/types/__fpos_t.h,
15893 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15894 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15895 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15896 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15897 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15898 __ssize_t, not _IO_ssize_t. Unconditionally define
15899 BUFSIZ as 8192 and EOF as (-1).
15900
15901 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15902 macros from bits/types/struct_FILE.h instead of _IO_* macros
15903 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15904 instead of _IO_ssize_t.
15905 * libio/bits/stdio2.h: Similarly.
15906
15907 * libio/iolibio.h: Add multiple-include guard.
15908 Include bits/libio.h after stdio.h.
15909 * libio/libioP.h: Add multiple-include guard.
15910 Include stdio.h and bits/libio.h before iolibio.h.
15911
15912 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15913 * include/bits/types/cookie_io_functions_t.h
15914 * include/bits/types/struct_FILE.h: New wrappers.
15915
15916 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15917 Get definitions of _G_fpos_t and _G_fpos64_t from
15918 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15919 respectively. Remove improper-inclusion guards.
15920
15921 * conform/data/stdio.h-data: Update expectations of va_list.
15922 * scripts/check-installed-headers.sh: Remove special case for
15923 libio.h and _G_config.h.
15924
15925 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15926
15927 [BZ #15105]
15928 [BZ #19463]
15929 * include/sys/sysmacros.h [!_ISOMAC]
15930 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15931 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15932 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15933 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15934 libc_hidden_proto.
15935 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15936 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15937 Likewise.
15938 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15939 Undefine and redefine to add use __gnu_dev_ prefix.
15940 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15941 Likewise.
15942 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15943 and define as hidden inline function.
15944 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15945 Likewise.
15946 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15947 Likewise.
15948 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15949 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15950 (gnu_dev_minor): Likewise.
15951 (gnu_dev_makedev): Likewise.
15952 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15953 makedev.
15954 * posix/wordexp.c (exec_comm_child): Likewise.
15955 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15956 instead of minor and __gnu_dev_major instead of major.
15957 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15958 __gnu_dev_major instead of major.
15959 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15960 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15961 instead of gnu_dev_minor.
15962 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15963 (SLAVE_P): Likewise.
15964 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15965 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15966 instead of major.
15967
15968 [BZ #21313]
15969 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15970 in another place.
15971 * locale/weightwc.h (findidx): Likewise.
15972
15973 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15974
15975 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15976 (slowlog_inexact): Likewise
15977 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15978 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15979
15980 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15981
15982 [BZ #22797]
15983 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15984 missing second underscore to parameter name.
15985
15986 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15987
15988 [BZ #14508]
15989 [BZ #15512]
15990 [BZ #17082]
15991 [BZ #20530]
15992 * bits/byteswap.h: Update file comment. Do not include
15993 <bits/byteswap-16.h>.
15994 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15995 constant.
15996 (__bswap_16): Define as inline function.
15997 (__bswap_constant_32): Reformat definition.
15998 (__bswap_32): Always define as inline function, not macro, using
15999 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16000 otherwise __bswap_constant_32.
16001 (__bswap_constant_64): Reformat definition. Do not use
16002 __extension__ here.
16003 (__bswap_64): Always define as inline function, not macro. Use
16004 __extension__ on function definition. Use __builtin_bswap64 if
16005 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16006 * string/test-endian-file-scope.c: New file.
16007 * string/test-endian-sign-conversion.c: Likewise.
16008 * string/Makefile (headers): Remove bits/byteswap-16.h.
16009 (tests): Add test-endian-file-scope and
16010 test-endian-sign-conversion.
16011 (CFLAGS-test-endian-sign-conversion.c): New variable.
16012 * bits/byteswap-16.h: Remove file.
16013 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16014 * sysdeps/ia64/bits/byteswap.h: Likewise.
16015 * sysdeps/m68k/bits/byteswap.h: Likewise.
16016 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16017 * sysdeps/s390/bits/byteswap.h: Likewise.
16018 * sysdeps/tile/bits/byteswap.h: Likewise.
16019 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16020 * sysdeps/x86/bits/byteswap.h: Likewise.
16021
16022 [BZ #17721]
16023 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16024 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16025 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16026 199901L] (__restrict): Define to restrict.
16027
16028 [BZ #19667]
16029 * string/testcopy.c: Include <support/support.h>. Do not include
16030 <malloc.h>. Use <support/test-driver.c>.
16031 (main): Rename to do_test. Make static. Use xmalloc instead of
16032 malloc.
16033
16034 [BZ #13575]
16035 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16036 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16037 (SSIZE_MAX): Define to INT_MAX.
16038 * posix/test-ssize-max.c: New file.
16039 * posix/Makefile (tests): Add test-ssize-max.
16040
16041 [BZ #19668]
16042 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16043 <support/support.h>. Do not include <malloc.h>.
16044 (query_auxv): Use xmalloc instead of malloc.
16045
16046 [BZ #14553]
16047 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16048 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16049 instead of loff_t.
16050
16051 2018-02-06 Florian Weimer <fweimer@redhat.com>
16052
16053 [BZ #18023]
16054 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16055 Use scratch_buffer instead of extend_alloca.
16056
16057 2018-02-06 Zack Weinberg <zackw@panix.com>
16058
16059 * libio/stdio.h: Don't define getc or putc as macros.
16060 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16061 not _IO_getc and _IO_putc.
16062
16063 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16064 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16065
16066 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16067
16068 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16069 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16070
16071 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16072
16073 [BZ #14890]
16074 * elf/elf.h (NT_PRFPREG): New macro.
16075 (NT_S390_VXRS_LOW): Likewise.
16076 (NT_S390_VXRS_HIGH): Likewise.
16077 (NT_S390_GS_CB): Likewise.
16078 (NT_S390_GS_BC): Likewise.
16079 (NT_S390_RI_CB): Likewise.
16080
16081 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16082 (MAP_SYNC): New macro.
16083 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16084 Likewise.
16085 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16086 (MAP_SYNC): Likewise.
16087 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16088 (MAP_SYNC): Likewise.
16089 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16090 (MAP_SYNC): Likewise.
16091 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16092 (MAP_SYNC): Likewise.
16093 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16094 (MAP_SYNC): Likewise.
16095 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16096 (MAP_SYNC): Likewise.
16097 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16098 Likewise.
16099 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16100 Likewise.
16101
16102 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16103 (MAP_SHARED_VALIDATE): New macro.
16104 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16105 (MAP_SHARED_VALIDATE): Likewise.
16106
16107 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16108
16109 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16110 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16111 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16112
16113 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16114
16115 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16116 (DT_NUM): Updated to 35.
16117
16118 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16119
16120 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16121 __builtin_expect with __glibc_likely and __glibc_unlikely.
16122 (elf_machine_rela): Likewise.
16123 (elf_machine_lazy_rel): Likewise.
16124
16125 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16126
16127 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16128 __builtin_expect with __glibc_likely and __glibc_unlikely.
16129 (elf_machine_lazy_rel): Likewise.
16130
16131 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16132
16133 [BZ #22638]
16134 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16135 SHARED.
16136 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16137
16138 2018-02-05 Andreas Schwab <schwab@suse.de>
16139
16140 [BZ #22761]
16141 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16142 string.
16143
16144 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16145
16146 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16147 not check against PTHREAD_STACK_MIN.
16148
16149 2018-02-02 Sean McKean <smckean83@gmail.com>
16150
16151 [BZ #22735]
16152 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16153
16154 2018-02-02 Florian Weimer <fweimer@redhat.com>
16155
16156 [BZ #22753]
16157 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16158 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16159 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16160 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16161 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16162 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16163 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16164 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16165 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16166 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16167 * misc/tst-preadvwritev2.c (do_test): Call it.
16168 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16169
16170 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16171
16172 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16173
16174 * benchtests/bench-memcmp.c: Print json instead of plain text.
16175
16176 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16177 every test run.
16178
16179 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16180
16181 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16182 version to 4.15.
16183 (s390_sthyi): New syscall.
16184
16185 * sysdeps/generic/ldbl-classify-compat.h: New file.
16186 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16187 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16188 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16189 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16190 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16191 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16192 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16193 <ldbl-classify-compat.h>.
16194 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16195 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16196 <ldbl-classify-compat.h>.
16197 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16198 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16199 <ldbl-classify-compat.h>.
16200 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16201 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16202 <ldbl-classify-compat.h>.
16203 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16204 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16205 <ldbl-classify-compat.h>.
16206 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16207 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16208 <ldbl-classify-compat.h>.
16209 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16210 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16211 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16212 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16213 * sysdeps/microblaze/math_private.h: Likewise.
16214 * sysdeps/nios2/math_private.h: Likewise.
16215 * sysdeps/sh/math_private.h: Likewise.
16216
16217 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16218 * sysdeps/m68k/coldfire/math_private.h: ... here.
16219 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16220 * sysdeps/tile/math_private.h: Likewise.
16221 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16222 Remove macro.
16223 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16224 Likewise.
16225
16226 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16227 Remove macro.
16228 (libc_fetestexcept): Likewise.
16229 (libc_feupdateenv_test): Likewise.
16230 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16231 (libc_fetestexcept): Likewise.
16232 (libc_feupdateenv_test): Likewise.
16233 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16234 (libc_fetestexcept): Likewise.
16235 (libc_feupdateenv_test): Likewise.
16236 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16237 (libc_fetestexcept): Likewise.
16238 (libc_feupdateenv_test): Likewise.
16239
16240 * sysdeps/generic/math_private.h
16241 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16242 New inline function.
16243 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16244 Likewise.
16245
16246 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16247 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16248 * sysdeps/generic/math_private.h
16249 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16250 inline function.
16251 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16252 Likewise.
16253 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16254 Likewise.
16255 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16256 Likewise.
16257 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16258 Likewise.
16259 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16260 Likewise.
16261 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16262 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16263 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16264 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16265 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16266 (__fegetenv): Likewise.
16267 (fesetenv): Likewise.
16268 (__fesetenv): Likewise.
16269 (feupdateenv): Likewise.
16270 (__feupdateenv): Likewise.
16271 (fegetround): Likewise.
16272 (__fegetround): Likewise.
16273 (fesetround): Likewise.
16274 (__fesetround): Likewise.
16275
16276 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16277 (feraiseexcept): New macro.
16278 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16279 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16280 Remove macro.
16281 (__feraiseexcept): Likewise.
16282 (feclearexcept): Likewise.
16283 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16284 (__feraiseexcept): Likewise.
16285 (feclearexcept): Likewise.
16286 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16287 (__feraiseexcept): Likewise.
16288 (feclearexcept): Likewise.
16289 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16290 (__feraiseexcept): Likewise.
16291 (feclearexcept): Likewise.
16292 (fetestexcept): Likewise.
16293
16294 * sysdeps/m68k/coldfire/math-tests.h: New file.
16295
16296 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16297 * sysdeps/m68k/bits/fenv.h: ... here.
16298 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16299 not define.
16300 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16301 Likewise.
16302 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16303 Likewise.
16304 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16305 Likewise.
16306 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16307 Likewise.
16308 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16309 Define to 0.
16310 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16311 (__FE_UNDEFINED): New enum constant.
16312 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16313 Do not define.
16314 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16315 Likewise.
16316 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16317 Likewise.
16318 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16319 to match generic bits/fenv.h.
16320 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16321 Do not define.
16322
16323 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16324 packed on bits.
16325 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16326 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16327 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16328 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16329
16330 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16331 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16332 Joseph Myers <joseph@codesourcery.com>
16333
16334 [BZ #21314]
16335 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16336 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16337 computation using c.
16338 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16339 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16340 computation using c.
16341
16342 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16343
16344 * version.h (RELEASE): Set to "development".
16345 (VERSION): Set to "2.27.9000".
16346 * NEWS (2.28): New section.
16347
16348 * version.h (RELEASE): Set to "stable".
16349 (VERSION): Set to "2.27".
16350 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16351
16352 * NEWS: Add the list of bugs fixed in 2.27.
16353
16354 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16355
16356 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16357 against PTHREAD_STACK_MIN.
16358
16359 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16360
16361 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16362 New entries.
16363 (Rafal Luzynski, Andreas Schwab): Update.
16364
16365 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16366
16367 [BZ #10871]
16368 * NEWS: List the languages which actually use the alternative
16369 months feature in this release. Also explain that "alt_mon" and
16370 "ab_alt_mon" are optional.
16371
16372 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16373
16374 [BZ #22765]
16375 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16376
16377 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16378
16379 * manual/install.texi (Tools for Compilation): Update the newest
16380 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16381 * INSTALL: Regenerated.
16382
16383 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16384
16385 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16386 instead of __builtin_expect.
16387
16388 2018-01-30 Florian Weimer <fweimer@redhat.com>
16389
16390 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16391 data.
16392 * nss/tst-nss-getpwent.c (do_test): Likewise.
16393
16394 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16395
16396 [BZ #10871]
16397 * localedata/locales/hr_HR (mon): Rename to...
16398 (alt_mon): This.
16399 (mon): Import from CLDR (genitive case).
16400 (d_t_fmt): Update the comment.
16401
16402 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16403
16404 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16405 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16406 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16407
16408 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16409
16410 * mach/Versions: Fix version when __mach_host_self_ was added.
16411 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16412 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16413 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16414 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16415 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16416 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16417 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16418 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16419 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16420 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16421 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16422 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16423 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16424 || to respect codestyle.
16425 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16426 (do_test_bz20181): Rename accordingly.
16427 * malloc/malloc.c: Include <assert.h>.
16428 (assert): Do not define.
16429 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16430 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16431 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16432 * sysdeps/mach/hurd/hp-timing.h: New file.
16433 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16434
16435 2018-01-29 Darius Rad <darius@bluespec.com>
16436
16437 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16438
16439 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16440
16441 * sysdeps/init_array/crti.S (.section .init_array): Add
16442 PREINIT_FUNCTION when defined.
16443 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16444 * config.h.in: Regenerate.
16445 * manual/platform.texi: Add RISC-V documenation for
16446 __riscv_flush_icache.
16447 * sysdeps/riscv/__longjmp.S: New file.
16448 * sysdeps/riscv/backtrace.c: Likewise.
16449 * sysdeps/riscv/bits/endian.h: Likewise.
16450 * sysdeps/riscv/bits/setjmp.h: Likewise.
16451 * sysdeps/riscv/bits/wordsize.h: Likewise.
16452 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16453 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16454 * sysdeps/riscv/dl-trampoline.S: Likewise.
16455 * sysdeps/riscv/gccframe.h: Likewise.
16456 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16457 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16458 * sysdeps/riscv/machine-gmon.h: Likewise.
16459 * sysdeps/riscv/memusage.h: Likewise.
16460 * sysdeps/riscv/setjmp.S: Likewise.
16461 * sysdeps/riscv/sys/asm.h: Likewise.
16462 * sysdeps/riscv/tls-macros.h: Likewise.
16463 * sysdeps/riscv/dl-tls.h: New file.
16464 * sysdeps/riscv/libc-tls.c: Likewise.
16465 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16466 * sysdeps/riscv/nptl/tls.h: Likewise.
16467 * sysdeps/riscv/stackinfo.h: Likewise.
16468 * sysdeps/riscv/bits/fenv.h: New file.
16469 * sysdeps/riscv/e_sqrtl.c: Likewise.
16470 * sysdeps/riscv/fpu_control.h: Likewise.
16471 * sysdeps/riscv/math-tests.h: Likewise.
16472 * sysdeps/riscv/nofpu/Implies: Likewise.
16473 * sysdeps/riscv/sfp-machine.h: Likewise.
16474 * sysdeps/riscv/tininess.h: Likewise.
16475 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16476 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16477 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16478 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16479 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16480 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16481 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16482 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16483 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16484 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16485 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16486 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16487 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16488 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16489 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16490 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16491 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16492 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16493 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16494 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16495 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16496 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16497 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16498 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16499 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16500 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16501 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16502 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16503 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16504 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16505 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16506 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16507 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16508 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16509 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16510 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16511 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16512 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16513 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16514 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16515 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16516 * sysdeps/riscv/rvf/math_private.h: Likewise.
16517 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16518 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16519 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16520 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16521 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16522 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16523 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16524 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16525 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16526 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16527 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16528 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16529 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16530 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16531 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16532 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16533 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16534 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16535 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16536 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16537 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16538 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16539 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16540 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16541 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16542 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16543 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16544 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16545 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16546 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16547 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16548 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16549 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16550 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16551 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16552 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16553 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16554 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16555 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16556 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16557 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16558 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16559 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16560 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16561 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16562 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16563 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16564 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16565 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16566 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16567 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16568 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16569 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16570 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16571 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16572 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16573 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16574 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16575 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16576 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16577 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16578 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16579 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16580 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16581 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16582 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16583 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16584 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16585 * sysdeps/riscv/Implies: New file.
16586 * sysdeps/riscv/Makefile: Likewise.
16587 * sysdeps/riscv/configure: Likewise.
16588 * sysdeps/riscv/configure.ac: Likewise.
16589 * sysdeps/riscv/nptl/Makefile: Likewise.
16590 * sysdeps/riscv/preconfigure: Likewise.
16591 * sysdeps/riscv/rv64/Implies-after: Likewise.
16592 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16593 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16594 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16595 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16596 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16597 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16598 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16599 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16600 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16601 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16602 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16603 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16604 (Config): Likewise.
16605
16606 2018-01-29 Florian Weimer <fweimer@redhat.com>
16607
16608 [BZ #22701]
16609 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16610 libnsl_hidden_proto.
16611 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16612 libnsl_hidden_proto.
16613 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16614 * nis/Makefile (libnsl-routines): Add nss-default only for
16615 build-obsolete-nsl.
16616 * nis/nis_defaults.c (__nis_default_ttl): Add
16617 libnsl_hidden_nolink_def.
16618 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16619 declaration.
16620 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16621 * nis/ypclnt.c (yp_maplist): Likewise.
16622
16623 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16624
16625 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16626 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16627
16628 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16629
16630 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16631 clean -dxfq for git updates when replacing sources.
16632
16633 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16634 --disable-libcilkrts unconditionally, not just for the final GCC
16635 build for Hurd.
16636
16637 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16638 version to 4.15.
16639
16640 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16641
16642 [BZ #10871]
16643 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16644 case).
16645
16646 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16647
16648 [BZ #10871]
16649 * localedata/locales/be_BY (mon): Rename to...
16650 (alt_mon): This, then synchronize with CLDR (nominative case).
16651 (abmon): Rename to...
16652 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16653 (mon): Import from CLDR (genitive case).
16654 (abmon): Likewise.
16655 * localedata/locales/be_BY@latin (mon): Rename to...
16656 (alt_mon): This.
16657 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16658
16659 * localedata/locales/be_BY@latin (lang_name): Reworded to
16660 "biełaruskaja mova".
16661
16662 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16663
16664 [BZ #10871]
16665 * localedata/locales/el_CY (mon): Renamed to...
16666 (alt_mon): This.
16667 (mon): Import from CLDR (genitive case).
16668 * localedata/locales/el_GR: Likewise.
16669
16670 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16671
16672 [BZ #10871]
16673 * localedata/locales/ru_RU (mon): Rename to...
16674 (alt_mon): This.
16675 (abmon): Rename to...
16676 (ab_alt_mon): This.
16677 (mon): Import from CLDR (genitive case).
16678 (abmon): Copy from the old content except the 5th month which is
16679 now in the genitive case, even when abbreviated.
16680 * localedata/locales/ru_UA: Likewise.
16681 * time/tst-strptime.c (day_tests): Add an actual example of
16682 a difference between %b and %Ob in Russian.
16683
16684 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16685
16686 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16687 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16688 a `c' variable.
16689 * resolv/res-close.c: Include <stdlib.h>.
16690 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16691 <sys/wait.h>, <time.h>, <sys/uio.h>.
16692 (NOT_CANCEL_H): Add inclusion guard.
16693 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16694 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16695 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16696 return 0.
16697 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16698 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16699 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16700 instead of void *.
16701 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16702 timer_ptr2id to cast struct timer_node * to void *.
16703 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16704 --disable-libcilkrts to gcc configure.
16705 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16706 and make them the default for now.
16707 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16708 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16709 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16710 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16711 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16712 MACH_IPC_COMPAT.
16713 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16714 __task_terminate would ever return successfully.
16715 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16716 to global scope.
16717 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16718 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16719 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16720 critical section to make code simpler and avoid warning.
16721 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16722 critical section to make code simpler and avoid warning.
16723 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16724 const char * instead of char *.
16725 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16726 __hurd_file_name_split, hurd_file_name_split,
16727 __hurd_directory_name_split, hurd_directory_name_split,
16728 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16729 hurd_file_name_path_lookup): Make lookup function parameter take a
16730 const char *name instead of char *name.
16731 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16732 __hurd_directory_name_split): Likewise.
16733 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16734 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16735 * sysdeps/mach/hurd/check_native.c: New file.
16736 * sysdeps/mach/hurd/check_pf.c: New file.
16737 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16738 (__freeifaddrs): Define macro to freeifaddrs.
16739 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16740 * sysdeps/mach/libmachuser.abilist: New file.
16741 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16742 (do_test_bz20181): Rename accordingly.
16743 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16744 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16745 <sys/mount.h>.
16746 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16747 version only if __USE_EXTERN_INLINES is defined.
16748 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16749 __hurd_sockfail): Likewise.
16750 (_hurd_fd_get): Always declare functions, and provide inline versions
16751 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16752 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16753 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16754 _hurd_port_set): Always declare functions, and provide inline versions
16755 only if __USE_EXTERN_INLINES and _LIBC are defined and
16756 IS_IN(libc).
16757 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16758 _hurd_critical_section_unlock): Likewise.
16759 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16760 * __hurd_threadvar_location): Likewise.
16761 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16762 _hurd_userlink_clear): Likewise.
16763 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16764 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16765 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16766 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16767 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16768 __spin_lock_locked): Likewise.
16769 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16770 __spin_lock_locked): Likewise.
16771 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16772 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16773 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16774 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16775 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16776 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16777 _POSIX_NO_TRUNC): Define to 0.
16778 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16779 check size against PTHREAD_STACK_MIN.
16780 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16781 IS_IN(libpthread)]: Include <sigsetops.h>.
16782 * mach/Makefile (user-interfaces): Add mach/gnumach.
16783 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16784 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16785 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16786 instead of invalid -1.
16787 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16788 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16789 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16790 <net/ppp_defs.h>.
16791
16792 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16793
16794 * hurd/fcntl-internal.h: New file.
16795
16796 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16797
16798 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16799
16800 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16801
16802 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16803
16804 [BZ #22701]
16805 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16806 Build only shared objects.
16807
16808 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16809
16810 * README: Update for hppa.
16811
16812 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16813
16814 * sysdeps/sparc/fpu/libm-test-ulps: Update
16815 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16816
16817 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16818
16819 Revert:
16820
16821 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16822
16823 [BZ #22563]
16824 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16825 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16826 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16827 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16828 to feature_1.
16829
16830 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16831
16832 [BZ #22563]
16833 * bits/types/__cancel_jmp_buf_tag.h: New file.
16834 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16835 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16836 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16837 * nptl/Makefile (headers): Add
16838 bits/types/__cancel_jmp_buf_tag.h.
16839 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16840 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16841 * sysdeps/nptl/pthread.h: Include
16842 <bits/types/__cancel_jmp_buf_tag.h>.
16843 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16844 __cancel_jmp_buf.
16845 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16846
16847 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16848
16849 [BZ #10871]
16850 * localedata/locales/uk_UA (mon): Renamed to...
16851 (alt_mon): This.
16852 (alt_digits): "0" removed and then renamed to...
16853 (mon): This.
16854 (date_fmt): Definition changed not to use the alternative
16855 digits hack.
16856
16857 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16858
16859 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16860 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16861 * elf/elf.h (EF_RISCV_RVC): New define.
16862 (EF_RISCV_FLOAT_ABI): Likewise.
16863 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16864 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16865 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16866 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16867 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16868 define.
16869 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16870
16871 2018-01-25 Andreas Schwab <schwab@suse.de>
16872
16873 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16874 single quotes.
16875 * sysdeps/gnu/configure: Regenerate.
16876 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16877 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16879 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16880 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16881 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16882 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16883 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16884
16885 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16886
16887 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16888 URL, and run autoconf, make it the default for now.
16889
16890 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16891
16892 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16893 soft-float ColdFire configuration.
16894
16895 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16896 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16897 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16898
16899 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16900 MicroBlaze file.
16901
16902 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16903 ....
16904 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16905 ... here.
16906 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16907 New file.
16908
16909 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16910 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16911 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16912 file.
16913
16914 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16915
16916 [BZ #22742]
16917 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16918 Rename to __reserved and add comment.
16919 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16920 Rename to __reserved.
16921
16922 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16923
16924 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16925 i686-gnu configurations.
16926 (Context.run_builds): Include mig, gnumach and hurd in components
16927 considered.
16928 (Context.checkout): Add mig, gnumach and hurd to components.
16929 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16930 hurd.
16931 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16932 (Config.build): Install gnumach headers, build mig and install
16933 hurd headers for 'gnu' OS.
16934 (Config.install_gnumach_headers): New function.
16935 (Config.install_hurd_headers): Likewise.
16936 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16937 when building for 'gnu' OS.
16938
16939 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16940
16941 * manual/tunables.texi (Hardware Capability Tunables): Fix
16942 spelling.
16943
16944 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16945
16946 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16947 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16948 (ALTMON_11, ALTMON_12): Improve documentation.
16949 * manual/time.texi (strftime): Likewise.
16950
16951 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16952
16953 [BZ #10871]
16954 * localedata/locales/pl_PL: Alternative month names added,
16955 primary month names are genitive now.
16956 * time/tst-strptime.c (day_tests): Actually use a genitive case
16957 of a month name in Polish language.
16958
16959 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16960
16961 [BZ #10871]
16962 * manual/locale.texi: Document ALTMON_1..12 constants for
16963 nl_langinfo. Specify when to use ALTMON instead of MON.
16964 * manual/time.texi (strftime, strptime): Document GNU extension
16965 permitting O modifier with %B and %b. Specify when to use
16966 %OB instead of %B.
16967
16968 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16969
16970 [BZ #10871]
16971 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16972 names, define them as the same as abbreviated month names explicitly.
16973 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16974 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16975 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16976 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16977 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16978 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16979 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16980 _NL_WABALTMON_12): New enum constants.
16981 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16982 wab_alt_mon, and ab_alt_mon_defined members.
16983 (time_output): Output ab_alt_mon and wab_alt_mon members.
16984 (time_read): Read them, initialize them as copies of abmon and wabmon
16985 respectively if they are missing, initialize ab_alt_mon_defined.
16986 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16987 * locale/programs/locfile-kw.h: Regenerate.
16988 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16989 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16990 and ru_RU.UTF-8.
16991 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16992 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16993 (__strftime_internal): Handle %Ob and %Oh formats.
16994 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16995 (__strptime_internal): Handle %Ob and %Oh formats.
16996 * time/tst-strptime.c (day_tests): Add more tests to parse different
16997 forms of month names including the new %Ob format specifier.
16998
16999 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17000
17001 [BZ #10871]
17002 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17003 define them as the same as primary full month names explicitly.
17004 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17005 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17006 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17007 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17008 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17009 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17010 _NL_WALTMON_12): New enum constants.
17011 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17012 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17013 macros.
17014 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17015 walt_mon, and alt_mon_defined members.
17016 (time_output): Output alt_mon and walt_mon members.
17017 (time_read): Read them, initialize them as copies of mon and wmon
17018 respectively if they are missing, initialize alt_mon_defined.
17019 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17020 * locale/programs/locfile-kw.h: Regenerate.
17021 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17022 * localedata/tst-langinfo.c (map): Add tests for the new constants
17023 ALTMON_1 .. ALTMON_12.
17024 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17025 and pl_PL.UTF-8.
17026 * time/strftime_l.c (f_altmonth): New macro.
17027 (__strftime_internal): Handle %OB format.
17028 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17029 (__strptime_internal): Handle %OB format.
17030 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17031 of month names including the new %OB format specifier.
17032
17033 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17034
17035 [BZ #22685]
17036 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17037 from ABORT_TRANSACTION.
17038 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17039 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17040 ABORT_TRANSACTION_IMPL): Likewise.
17041 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17042 Linux code, but remove the code that aborts transactions.
17043
17044 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17045
17046 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17047
17048 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17049
17050 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17051 in date: "2004-14-09" should be "2004-09-14".
17052 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17053 "2003-15-09" should be "2003-09-15".
17054
17055 2018-01-18 Arjun Shankar <arjun@redhat.com>
17056
17057 [BZ #22343]
17058 [BZ #22774]
17059 CVE-2018-6485
17060 CVE-2018-6551
17061 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17062 after padding.
17063 (_int_memalign): check for integer overflow before calling
17064 _int_malloc.
17065 * malloc/tst-malloc-too-large.c: New test.
17066 * malloc/Makefile: Add tst-malloc-too-large.
17067
17068 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17069
17070 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17071 in date: "2017-24-07" should be "2017-07-24".
17072 * localedata/locales/mai_IN: Likewise.
17073 * localedata/locales/mai_NP: Likewise.
17074
17075 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17076
17077 * po/ru.po: Update translations.
17078
17079 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17080
17081 [BZ #22719]
17082 * sysdeps/hppa/backtrace.c: New file.
17083
17084 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17085
17086 [BZ #22715]
17087 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17088 align La_x86_64_retval to VEC_SIZE.
17089
17090 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17091
17092 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17093 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17094
17095 2018-01-16 Florian Weimer <fweimer@redhat.com>
17096
17097 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17098 Move tst-thread-exit-clobber ...
17099 [$(CXX)] (tests-unsupported): ... to here.
17100
17101 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17102
17103 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17104 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17105 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17106 (_dl_aarch64_cap_flags): Update.
17107 (_DL_HWCAP_COUNT): Update.
17108
17109 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17110
17111 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17112 (_DL_HWCAP_LAST): Remove.
17113 (_DL_HWCAP_COUNT): Move to ...
17114 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17115 (_DL_HWCAP_COUNT): ... here.
17116
17117 2018-01-16 Florian Weimer <fweimer@redhat.com>
17118
17119 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17120 mode with GNU extensions.
17121
17122 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17123
17124 * elf/elf.h (NT_ARM_SVE): Define.
17125
17126 2018-01-15 Florian Weimer <fweimer@redhat.com>
17127
17128 [BZ #22636]
17129 * nptl/tst-minstack-throw.cc: New file.
17130 * nptl/Makefile (tests): Add tst-minstack-throw.
17131 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17132 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17133
17134 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17135
17136 * scripts/build-many-glibcs.py (Context.checkout): Default
17137 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17138 version to 1.1.0.
17139
17140 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17141
17142 [BZ #22707]
17143 * elf/elf.h (DF_1_STUB): Define.
17144 (DF_1_PIE): Define.
17145
17146 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17147
17148 [BZ #22697]
17149 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17150 Do not add 0.5 to integer or out-of-range arguments.
17151
17152 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17153
17154 * po/bg.po: Update translations.
17155 * po/cs.po: Likewise.
17156 * po/de.po: Likewise.
17157 * po/ko.po: Likewise.
17158 * po/pl.po: Likewise.
17159 * po/sv.po: Likewise.
17160 * po/uk.po: Likewise.
17161 * po/vi.po: Likewise.
17162
17163 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17164
17165 * aarch64/start.S (_start): Use __wrap_main.
17166 (__wrap_main): New local symbol.
17167
17168 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17169
17170 [BZ #22679]
17171 CVE-2018-1000001
17172 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17173 generic_getcwd if the path returned by getcwd syscall is not absolute.
17174 * io/tst-getcwd-abspath.c: New test.
17175 * io/Makefile (tests): Add tst-getcwd-abspath.
17176
17177 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17178
17179 * malloc/malloc.c (malloc_consolidate): Add size check.
17180
17181 2018-01-12 Florian Weimer <fweimer@redhat.com>
17182
17183 * support/write_message.c (write_message): Preserve errno.
17184 * support/check.c (print_failure): Likewise.
17185 * support/support_test_verify_impl.c (support_test_verify_impl):
17186 Likewise.
17187 * support/support_test_compare_failure.c
17188 (support_test_compare_failure): Likewise.
17189
17190 2018-01-12 Florian Weimer <fweimer@redhat.com>
17191
17192 [BZ #22701]
17193 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17194 Prevent installation of libnsl.so.
17195 (libnsl-inhibit-o): Do not build (or install) static libraries.
17196
17197 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17198
17199 [BZ #22657]
17200 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17201 before the day number which may produce a double space.
17202 (date_fmt): Likewise.
17203
17204 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17205
17206 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17207 instead of fegetenv.
17208
17209 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17210
17211 [BZ #22702]
17212 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17213 comment to say exceptions are discarded.
17214 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17215 __fegetenv.
17216 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17217 be enabled.
17218
17219 2018-01-11 Florian Weimer <fweimer@redhat.com>
17220
17221 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17222 and error message.
17223
17224 2018-01-11 Florian Weimer <fweimer@redhat.com>
17225
17226 [BZ #22636]
17227 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17228 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17229
17230 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17231
17232 [BZ #22693]
17233 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17234 negative arguments in test for NaN or infinity argument.
17235
17236 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17237
17238 * po/libc.pot: Regenerate.
17239
17240 2018-01-10 Florian Weimer <fweimer@redhat.com>
17241
17242 [BZ #22636]
17243 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17244 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17245
17246 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17247
17248 * hurd/hurd/fd.h: Include <fcntl.h>
17249 (__hurd_at_flags): New function.
17250 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17251 with call to __hurd_at_flags.
17252 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17253 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17254 __faccessat
17255 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17256 (__access_noerrno): Use __faccessat_common instead of access_common.
17257 (__access): Likewise.
17258 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17259 with a call to __faccessat.
17260 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17261 (__faccessat_common): ... this. Move implementation of __access into it when
17262 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17263 reauthenticate_cwdir_at helper to implement AT mechanism.
17264 (__faccessat_noerrno): New function, just calls __faccessat_common.
17265 (__faccessat): New function, just calls __faccessat_common.
17266 (faccessat): Define weak alias.
17267
17268 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17269
17270 [BZ #22691]
17271 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17272 (CFLAGS-s_fmaxmagl.c): New variable.
17273 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17274
17275 [BZ #22690]
17276 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17277 long int for arguments of possibly overflowing addition or
17278 subtraction.
17279 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17280
17281 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17282
17283 [BZ #22688]
17284 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17285 (CFLAGS-e_remainderl.c): New variable.
17286
17287 [BZ #22687]
17288 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17289 variable.
17290 (CFLAGS-s_cacoshl.c): Likewise.
17291 (CFLAGS-s_casinhl.c): Likewise.
17292 (CFLAGS-s_catanl.c): Likewise.
17293 (CFLAGS-s_catanhl.c): Likewise.
17294 (CFLAGS-s_cexpl.c): Likewise.
17295 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17296 (CFLAGS-s_csinhl.c): Likewise.
17297 (CFLAGS-s_clogl.c): Likewise.
17298 (CFLAGS-s_clog10l.c): Likewise.
17299 (CFLAGS-s_csinl.c): Likewise.
17300 (CFLAGS-s_csqrtl.c): Likewise.
17301
17302 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17303 2017-01-09 Svante Signell <svante.signell@gmail.com>
17304
17305 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17306 (_hurd_exec_paths): New function.
17307 * hurd/hurd.h (_hurd_exec): Deprecate function.
17308 (_hurd_exec_paths): Declare function.
17309 * hurd/Versions: Export _hurd_exec_paths.
17310 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17311 (__execve): Use __getcwd to build absolute path, and use
17312 _hurd_exec_paths instead of _hurd_exec.
17313 * sysdeps/mach/hurd/spawni.c: Likewise.
17314 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17315 _hurd_exec.
17316
17317 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17318
17319 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17320 test instead of failing in case of ENOENT returned by posix_openpt.
17321
17322 2018-01-08 Florian Weimer <fweimer@redhat.com>
17323
17324 resolv: Support binary labels in test framework.
17325 * support/resolv_test.c (struct to_be_freed): Remove.
17326 (struct compressed_name): New.
17327 (allocate_compressed_name, ascii_tolower)
17328 (compare_compressed_name): New functions.
17329 (struct resolv_response_builder): Update type of
17330 compression_offsets for use with tsearch. Rempve to_be_freed.
17331 (response_push_pointer_to_free): Remove function.
17332 (resolv_response_add_name): Rewrite using struct compressed_name
17333 and tsearch instead of hsearch_r.
17334 (response_builder_allocate): Remove initialization of
17335 compression_offsets.
17336 (response_builder_free): Update for removal of to_be_freed. Use
17337 tdestroy instead of hdestroy_r.
17338 * resolv/Makefile (tests): Add tst-resolv-binary.
17339 (tst-resolv-binary): Link with -lresolv -lpthread.
17340
17341 2018-01-08 Florian Weimer <fweimer@redhat.com>
17342
17343 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17344 time. Pass positive flag instead of negative flag to
17345 support_test_compare_failure.
17346 (support_test_compare_failure): Change negative parameter to
17347 positive.
17348 * support/support_test_compare_failure.c (report)
17349 (support_test_compare_failure): Likewise.
17350 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17351 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17352
17353 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17354
17355 [BZ #22637]
17356 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17357 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17358 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17359 stacksize.
17360 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17361
17362 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17363
17364 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17365 Add s_sincosf-sse2 and s_sincosf-fma.
17366 (CFLAGS-s_sincosf-fma.c): New.
17367 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17368 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17369 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17370 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17371 __sincosf is defined.
17372
17373 2018-01-08 Florian Weimer <fweimer@redhat.com>
17374
17375 * nptl/tst-thread-exit-clobber.cc: New file.
17376 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17377 C++11 mode.
17378 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17379 (tests): Add tst-thread-exit-clobber.
17380 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17381
17382 2018-01-08 Florian Weimer <fweimer@redhat.com>
17383
17384 * support/check.h (support_static_assert): Define.
17385 (TEST_COMPARE): Use it.
17386
17387 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17388
17389 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17390 [!__RLIM_T_MATCHES_RLIM64_T]
17391 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17392 __getrlimit64. Add libc_hidden_weak.
17393
17394 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17395
17396 * elf/elf.h (R_RISCV_NONE): New define.
17397 (R_RISCV_32): Likewise.
17398 (R_RISCV_64): Likewise.
17399 (R_RISCV_RELATIVE): Likewise.
17400 (R_RISCV_COPY): Likewise.
17401 (R_RISCV_JUMP_SLOT): Likewise.
17402 (R_RISCV_TLS_DTPMOD32): Likewise.
17403 (R_RISCV_TLS_DTPMOD64): Likewise.
17404 (R_RISCV_TLS_DTPREL32): Likewise.
17405 (R_RISCV_TLS_DTPREL64): Likewise.
17406 (R_RISCV_TLS_TPREL32): Likewise.
17407 (R_RISCV_TLS_TPREL64): Likewise.
17408 * Makerules (make-link-multidir): Make directories before linking into
17409 them.
17410 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17411 define.
17412 (VDSO_HASH_LINUX_4_15): Likewise.
17413 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17414 in subdirectories of lib.
17415 * nptl/Makefile (/librt.so): Always depend on
17416 "$(shared-thread-library)".
17417
17418 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17419
17420 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17421 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17422 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17423 (___tls_get_addr).
17424 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17425 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17426 "-O2 -march=i686".
17427 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17428 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17429 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17430 * sysdeps/gnu/glob-lstat-compat.c: New file.
17431 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17432 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17433
17434 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17435
17436 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17437 Reserve 16 chars to reloc_addr before calling _itoa_word.
17438
17439 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17440
17441 [BZ #22678]
17442 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17443 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17444
17445 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17446 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17447
17448 * resource/tst-getrlimit.c: Add copyright header.
17449
17450 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17451 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17452
17453 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17454 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17455 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17456 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17457 instead.
17458 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17459 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17460 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17461 RLIM64_INFINITY): Fix values to match the kernel ones.
17462 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17463 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17464 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17465 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17466 getrlimit64@@GLIBC_2_27.
17467 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17468 and setrlimit64.
17469 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17470 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17471 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17472 setrlimit, getrlimit64 and setrlimit64.
17473
17474 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17475
17476 [BZ #22648]
17477 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17478 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17479
17480 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17481
17482 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17483 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17484 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17485
17486 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17487
17488 [BZ #15479]
17489 [BZ #22666]
17490 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17491 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17492
17493 [BZ #15479]
17494 [BZ #22665]
17495 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17496 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17497 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17498 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17499
17500 2018-01-04 Florian Weimer <fweimer@redhat.com>
17501
17502 [BZ #22667]
17503 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17504 Align the stack before calling exit.
17505 * stdlib/tst-makecontext-align.c: New file.
17506 * stdlib/Makefile (tests): Add tst-makecontext-align.
17507
17508 2018-01-04 Florian Weimer <fweimer@redhat.com>
17509
17510 Add support for calling dlvsym from libc.so.
17511 * include/dlfcn.h (__libc_dlvsym): Declare.
17512 * elf/Makefile (tests-static-internal): Add
17513 tst-libc_dlvsym-static.
17514 (tests-internal): Add tst-libc_dlvsym.
17515 (modules-names): Add tst-libc_dlvsym-dso.
17516 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17517 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17518 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17519 object tst-libc_dlvsym-dso.so needs to be built before running
17520 these tests.
17521 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17522 * elf/Versions: Export __libc_dlvsym.
17523 * elf/dl-libc.c (struct do_dlvsym_args): New.
17524 (do_dlvsym, __libc_dlvsym): New functions.
17525 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17526 (_dl_open_hook2): New variable.
17527 (__libc_register_dl_open_hook): Set it.
17528 * elf/tst-libc_dlvsym-dso.c: New file.
17529 * elf/tst-libc_dlvsym-static.c: Likewise.
17530 * elf/tst-libc_dlvsym.c: Likewise.
17531 * elf/tst-libc_dlvsym.h: Likewise.
17532
17533 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17534
17535 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17536 include <sys/mount.h>.
17537
17538 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17539
17540 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17541 Add __NO_MATH_ERRNO__ check.
17542
17543 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17544
17545 * sysdeps/mips/mips32/libm-test-ulps: Update.
17546 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17547
17548 2018-01-02 Florian Weimer <fweimer@redhat.com>
17549
17550 * misc/tst-pselect.c: Add copyright header.
17551
17552 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17553
17554 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17555 comment.
17556 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17557 comment.
17558 (settrlimit): Rename into setrlimit.
17559 (__sttrlimit): Rename into __setrlimit.
17560
17561 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17562 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17563 never defined in that case.
17564
17565 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17566
17567 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17568
17569 * sysdeps/arm/libm-test-ulps: Update.
17570
17571 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17572 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17573
17574 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17575
17576 * NEWS: Add cosf and sincosf to list of optimized functions.
17577
17578 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17579
17580 [BZ #22660]
17581 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17582 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17583 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17584 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17585
17586 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17587
17588 [BZ #22433]
17589 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17590
17591 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17592 making a copy of it.
17593
17594 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17595
17596 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17597 trailing whitespace removed.
17598 * scripts/config.guess: Update to version 2018-01-01.
17599 * scripts/config.sub: Update to version 2018-01-01.
17600 * scripts/move-if-change: Update from gnulib.
17601
17602 * NEWS: Update copyright dates.
17603 * catgets/gencat.c (print_version): Likewise.
17604 * csu/version.c (banner): Likewise.
17605 * debug/catchsegv.sh: Likewise.
17606 * debug/pcprofiledump.c (print_version): Likewise.
17607 * debug/xtrace.sh (do_version): Likewise.
17608 * elf/ldconfig.c (print_version): Likewise.
17609 * elf/ldd.bash.in: Likewise.
17610 * elf/pldd.c (print_version): Likewise.
17611 * elf/sotruss.sh: Likewise.
17612 * elf/sprof.c (print_version): Likewise.
17613 * iconv/iconv_prog.c (print_version): Likewise.
17614 * iconv/iconvconfig.c (print_version): Likewise.
17615 * locale/programs/locale.c (print_version): Likewise.
17616 * locale/programs/localedef.c (print_version): Likewise.
17617 * login/programs/pt_chown.c (print_version): Likewise.
17618 * malloc/memusage.sh (do_version): Likewise.
17619 * malloc/memusagestat.c (print_version): Likewise.
17620 * malloc/mtrace.pl: Likewise.
17621 * manual/libc.texinfo: Likewise.
17622 * nptl/version.c (banner): Likewise.
17623 * nscd/nscd.c (print_version): Likewise.
17624 * nss/getent.c (print_version): Likewise.
17625 * nss/makedb.c (print_version): Likewise.
17626 * posix/getconf.c (main): Likewise.
17627 * scripts/test-installation.pl: Likewise.
17628 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17629
17630 * All files with FSF copyright notices: Update copyright dates
17631 using scripts/update-copyrights.
17632 * locale/programs/charmap-kw.h: Regenerated.
17633 * locale/programs/locfile-kw.h: Likewise.
17634
17635 2017-12-31 Zack Weinberg <zackw@panix.com>
17636
17637 * libio/bits/libio-ldbl.h: Correct check for improper
17638 inclusion. Add own multiple include guard.
17639
17640 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17641 Dmitry V. Levin <ldv@altlinux.org>
17642
17643 [BZ #22625]
17644 CVE-2017-16997
17645 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17646 string token expansion. Check for NULL pointer or empty string possibly
17647 returned by expand_dynamic_string_token.
17648 (decompose_rpath): Check for empty path after dynamic string
17649 token expansion.
17650
17651 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17652
17653 [BZ #22433]
17654 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17655
17656 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17657 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17658 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17659 and PTRACE_SYSCALL.
17660 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17661 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17662 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17663 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17664 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17665 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17666
17667 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17668 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17669 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17670 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17671 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17672 bits/ptrace-shared.h.
17673 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17674 <bits/ptrace-shared.h>.
17675 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17676 __ptrace_peeksiginfo_flags, ptrace): Remove.
17677 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17678 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17679 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17680 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17681 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17682
17683 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17684
17685 [BZ #17804]
17686 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17687 end of the loop. Improve comments.
17688
17689 2017-12-29 Zack Weinberg <zackw@panix.com>
17690
17691 [BZ #22615]
17692 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17693 might be set on success.
17694
17695 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17696
17697 [BZ #22611]
17698 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17699 is unchanged on success.
17700
17701 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17702
17703 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17704 updated.
17705 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17706 expand_dynamic_string_token): Likewise.
17707 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17708 is_path argument.
17709
17710 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17711 contains ':'.
17712
17713 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17714 is set and name contains ':', and all code depending on these checks.
17715
17716 2017-12-24 Zack Weinberg <zackw@panix.com>
17717
17718 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17719 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17720 respectively.
17721 * libio/libio.h: Rename the original version of this file to
17722 libio/bits/libio.h. Error out if not included by stdio.h or the
17723 stub libio.h.
17724 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17725 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17726 if not included by bits/libio.h or the stub _G_config.h.
17727 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17728 sysdeps/unix/sysv/linux/bits. Error out if not included by
17729 bits/libio.h or the stub _G_config.h.
17730 * libio/stdio.h: Include bits/libio.h, not libio.h.
17731 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17732 well as libio.h and _G_config.h.
17733
17734 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17735 * libio/strfile.h, stdio-common/vfscanf.c
17736 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17737 Include stdio.h, not _G_config.h nor libio.h.
17738 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17739 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17740
17741 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17742
17743 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17744
17745 [BZ #22347]
17746 * stdlib/getrandom.c (getrandom): Fix comment.
17747 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17748
17749 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17750
17751 [BZ #21161]
17752 * manual/arith.texi (strtoul): Fix a typo.
17753
17754 [BZ #22596]
17755 * manual/arith.texi (finite): Fix the description of the return
17756 value.
17757
17758 2017-12-22 Eric Blake <ebb9@byu.net>
17759
17760 Avoid gcc warnings on cygwin
17761 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17762 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17763 Avoid unused variable.
17764
17765 2017-12-22 Florian Weimer <fweimer@redhat.com>
17766
17767 * io/Makefile (routines): Add copy_file_range.
17768 (tests): Add tst-copy_file_range.
17769 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17770 * io/Versions (GLIBC_2.27): Export copy_file_range.
17771 * io/copy_file_range-compat.c: New file.
17772 * io/copy_file_range.c: Likewise.
17773 * io/tst-copy_file_range-compat.c: Likewise.
17774 * io/tst-copy_file_range.c: Likewise.
17775 * manual/llio.texi (Copying File Data): New section.
17776 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17777 * support/Makefile (libsupport-routines): Add support-xfstat,
17778 xftruncate, xlseek.
17779 * support/support-xfstat.c: New file.
17780 * support/xftruncate.c: Likewise.
17781 * support/xlseek.c: Likewise.
17782 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17783 * sysdeps/unix/sysv/linux/**.abilist: Update.
17784 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17785
17786 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17787
17788 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17789 disable-multi-arch variant to aarch64-linux-gnu.
17790
17791 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17792
17793 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17794 trailing whitespace removed.
17795 * scripts/config.guess: Update to version 2017-12-17.
17796 * scripts/config.sub: Update to version 2017-11-23.
17797 * scripts/install-sh: Update to version 2017-09-23.17.
17798 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17799
17800 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17801
17802 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17803 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17804 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17805 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17806 * sysdeps/tile/crtn.S: Likewise.
17807 * sysdeps/tile/dl-start.S (_start): Likewise.
17808 * sysdeps/tile/dl-trampoline.S: Likewise.
17809 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17810 * sysdeps/tile/start.S (_start): Likewise.
17811 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17812 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17813 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17814 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17815 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17816 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17817 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17818
17819 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17820 comment.
17821 * sysdeps/tile/preconfigure: Remove tilegx folder.
17822 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17823 * sysdeps/tile/Implies: ... here.
17824 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17825 * sysdeps/tile/Makefile: ... here.
17826 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17827 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17828 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17829 * sysdeps/tile/bits/wordsize.h: ... here.
17830 * sysdeps/tile/tilegx/*: Move to ...
17831 * sysdeps/tile/*: ... here.
17832 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17833 * sysdeps/tile/tilegx32/Implies: ... here.
17834 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17835 * sysdeps/tile/tilegx64/Implies: ... here.
17836 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17837 to ...
17838 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17839 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17840 * sysdeps/unix/sysv/linux/tile/*: ... here.
17841 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17842 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17843 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17844 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17845
17846 * README: Remove tilepro-*-linux-gnu from supported architecture.
17847 * scripts/build-many-glibcs.py: Likewise.
17848 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17849 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17850 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17851 elf_machine_matches_host, elf_machine_dynamic,
17852 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17853 howto, elf_machine_rela): Likewise.
17854 * sysdeps/tile/dl-start.S (_start): Likewise.
17855 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17856 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17857 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17858 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17859 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17860 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17861 Likewise.
17862 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17863 * sysdeps/tile/preconfigure: Likewise.
17864 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17865 POINTER_CHK_GUARD): Likewise.
17866 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17867 * sysdeps/tile/start.S (_start): Likewise.
17868 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17869 Likewise.
17870 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17871 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17872 CMOVNEZ): Remove.
17873 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17874 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17875 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17876 Likewise.
17877 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17878 * sysdeps/tile/tilepro/Implies: Remove file.
17879 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17880 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17881 * sysdeps/tile/tilepro/memchr.c: Likewise.
17882 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17883 * sysdeps/tile/tilepro/memset.c: Likewise.
17884 * sysdeps/tile/tilepro/memusage.h: Likewise.
17885 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17886 * sysdeps/tile/tilepro/strchr.c: Likewise.
17887 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17888 * sysdeps/tile/tilepro/strlen.c: Likewise.
17889 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17890 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17891 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17892 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17893 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17895 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17896 Likewise.
17897 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17909 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17910 tilepro mention in comment.
17911
17912 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17913 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17914 * nptl/pthread_join_common.c: New file: common function used on
17915 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17916 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17917 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17918 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17919 (cleanup): Move definition to pthread_join_common.c.
17920 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17921 Remove superflous checks.
17922 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17923 Likewise.
17924
17925 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17926
17927 * sysdeps/aarch64/libm-test-ulps: Update.
17928
17929 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17930
17931 * sysdeps/aarch64/memset.S (MEMSET): Define.
17932
17933 2017-12-20 Florian Weimer <fweimer@redhat.com>
17934
17935 [BZ #22635]
17936 nptl: Provide full implementation of pthread_self in libc.so.
17937 * nptl/Makefile (routines): Add pthread_self.
17938 (libpthread-routines): Replace pthread_self with
17939 compat-pthread_self.
17940 * nptl/forward.c (pthread_self): Remove.
17941 * nptl/nptl-init.c (pthread_functions): Do not initialize
17942 ptr_pthread_self.
17943 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17944 * nptl/compat-pthread_self.c: New file.
17945 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17946 Remove ptr_pthread_self.
17947
17948 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17949
17950 * posix/regcomp.c: Fix spelling in comments.
17951 * posix/regex.h: Likewise.
17952 * posix/regex_internal.c: Likewise.
17953 * posix/regexec.c: Likewise.
17954
17955 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17956
17957 [BZ #22377]
17958 * math/Makefile [C++] (tests): Add test for iseqsig.
17959 * math/math.h [C++] (iseqsig): New implementation, which does
17960 not rely on __MATH_TG/__builtin_types_compatible_p.
17961 * math/test-math-iseqsig.cc: New file.
17962 * sysdeps/powerpc/powerpc64le/Makefile
17963 (CFLAGS-test-math-iseqsig.cc): New variable.
17964
17965 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17966
17967 * elf/dl-load.c (is_trusted_path): Remove.
17968 (fillin_rpath): Remove check_trusted argument and its use,
17969 all callers changed.
17970
17971 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17972
17973 [BZ #22630]
17974 * Makeconfig (link-pie-before-libc): Replace -pie with
17975 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17976 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17977 (tst-dlopen-aout-no-pie): New.
17978 (LDFLAGS-tst-prelink): Removed.
17979 (tst-prelink-no-pie): New.
17980 (LDFLAGS-tst-main1): Removed.
17981 (tst-main1-no-pie): New.
17982 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17983 (tst-gmon-no-pie): New.
17984
17985 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17986
17987 * manual/install.texi: Document that --enable-static-pie
17988 implies PIE.
17989 * INSTALL: Regenerated.
17990
17991 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17992
17993 [BZ #21309]
17994 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17995 unsigned.
17996
17997 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17998
17999 Revert:
18000
18001 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18002
18003 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18004
18005 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18006
18007 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18008 <errno.h>. Include "eexp.tbl".
18009 (half): New constant.
18010 (one): Likewise.
18011 (__ieee754_exp): Rewrite.
18012 (__slowexp): Remove prototype.
18013 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18014 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18015 * sysdeps/i386/fpu/slowexp.c: Likewise.
18016 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18017 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18018 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18019 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18020 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18021 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18022 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18023 comment.
18024 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18025 (CPPFLAGS-slowexp.c): Remove variable.
18026 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18027 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18028 (CFLAGS-slowexp-fma.c): Remove variable.
18029 (CFLAGS-slowexp-fma4.c): Likewise.
18030 (CFLAGS-slowexp-avx.c): Likewise.
18031 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18032 define as macro.
18033 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18034 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18035 * math/Makefile (type-double-routines): Remove slowexp.
18036 * manual/probes.texi (slowexp_p6): Remove.
18037 (slowexp_p32): Likewise.
18038
18039 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18040
18041 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18042 arithmetic.
18043
18044 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18045
18046 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18047
18048 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18049
18050 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18051
18052 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18053 <errno.h>. Include "eexp.tbl".
18054 (half): New constant.
18055 (one): Likewise.
18056 (__ieee754_exp): Rewrite.
18057 (__slowexp): Remove prototype.
18058 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18059 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18060 * sysdeps/i386/fpu/slowexp.c: Likewise.
18061 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18062 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18063 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18064 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18065 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18066 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18067 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18068 comment.
18069 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18070 (CPPFLAGS-slowexp.c): Remove variable.
18071 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18072 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18073 (CFLAGS-slowexp-fma.c): Remove variable.
18074 (CFLAGS-slowexp-fma4.c): Likewise.
18075 (CFLAGS-slowexp-avx.c): Likewise.
18076 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18077 define as macro.
18078 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18079 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18080 * math/Makefile (type-double-routines): Remove slowexp.
18081 * manual/probes.texi (slowexp_p6): Remove.
18082 (slowexp_p32): Likewise.
18083
18084 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18085 James Clarke <jrtc27@jrtc27.com>
18086
18087 [BZ #22603]
18088 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18089 addition.
18090
18091 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18092
18093 [BZ #22605]
18094 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18095 code.
18096
18097 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18098
18099 [BZ #22563]
18100 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18101 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18102 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18103 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18104 to feature_1.
18105
18106 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18107
18108 [BZ #22563]
18109 * bits/types/__cancel_jmp_buf_tag.h: New file.
18110 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18111 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18112 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18113 * nptl/Makefile (headers): Add
18114 bits/types/__cancel_jmp_buf_tag.h.
18115 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18116 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18117 * sysdeps/nptl/pthread.h: Include
18118 <bits/types/__cancel_jmp_buf_tag.h>.
18119 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18120 __cancel_jmp_buf.
18121 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18122
18123 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18124
18125 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18126 --enable-static-pie variants to x86_64, x32 and i686.
18127
18128 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18129
18130 [BZ #22631]
18131 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18132 argument for attrubutes. All callers changed.
18133 (__inline_mathop1): Likewise. All callers changed.
18134 (__inline_mathop): Likewise. All callers changed.
18135 [__USE_MISC] (scalbn): Use __inline_forward instead of
18136 __inline_forward_c.
18137 [__USE_ISOC99] (scalbln): Likewise.
18138 [__USE_ISOC99] (nearbyint): Likewise.
18139 [__USE_ISOC99] (lrint): Likewise.
18140 [__USE_MISC] (scalbnf): Likewise.
18141 [__USE_ISOC99] (scalblnf): Likewise.
18142 [__USE_ISOC99] (nearbyintf): Likewise.
18143 [__USE_ISOC99] (lrintf): Likewise.
18144 [__USE_MISC] (scalbnl): Likewise.
18145 [__USE_ISOC99] (scalblnl): Likewise.
18146 [__USE_ISOC99] (nearbyintl): Likewise.
18147 [__USE_ISOC99] (lrintl): Likewise.
18148 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18149 __inline_mathop and __m81_defun changed.
18150
18151 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18152 CPU or FPU for ARM hard-float configurations.
18153
18154 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18155
18156 * nptl/tst-attr3.c: Include <libc-diag.h>.
18157 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18158
18159 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18160
18161 * string/tester.c (test_strncat): Also disable -Warray-bounds
18162 warnings for two tests.
18163
18164 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18165
18166 [BZ #22614]
18167 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18168 $(cc-pie-default) == yes.
18169 * config.make.in (cc-pie-default): New.
18170 * configure.ac (libc_cv_pie_default): Renamed to ...
18171 (libc_cv_cc_pie_default): This.
18172 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18173 * configure: Regenerated.
18174
18175 2017-12-18 Florian Weimer <fweimer@redhat.com>
18176
18177 [BZ #20204]
18178 ld.so: Harden dl-libc/libdl hooks.
18179 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18180 (rtld_active): New function.
18181 * dlfcn/dladdr.c (__dladdr): Call it.
18182 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18183 * dlfcn/dlclose.c (__dlcose): Likewise.
18184 * dlfcn/dlerror.c (__dlerror): Likewise.
18185 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18186 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18187 * dlfcn/dlopen.c (__dlopen): Likewise.
18188 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18189 * dlfcn/dlsym.c (__dlsym): Likewise.
18190 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18191 * libio/vtables.c (_IO_vtable_check): Likewise.
18192 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18193 (__libc_dlclose): Likewise.
18194 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18195 assignment.
18196
18197 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18198
18199 [BZ #22446]
18200 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18201 buffers for readlink input and output.
18202
18203 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18204
18205 [BZ #22624]
18206 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18207 inhibit_stack_protector.
18208
18209 [BZ #22624]
18210 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18211 inhibit_stack_protector.
18212
18213 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18214
18215 [BZ #22627]
18216 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18217 code and invocation.
18218
18219 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18220
18221 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18222
18223 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18224
18225 [BZ #22505]
18226 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18227
18228 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18229
18230 * sysdeps/s390/fpu/libm-test-ulps: Update.
18231
18232 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18233
18234 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18235
18236 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18237
18238 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18239 constants to s_sincosf.h file.
18240 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18241 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18242 implementation.
18243 * sysdeps/ieee754/flt-32/s_sincosf.h:
18244 New file.
18245
18246 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18247
18248 [BZ #14681]
18249 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18250 before mtrace.
18251
18252 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18253
18254 [BZ #19574]
18255 * INSTALL: Regenerated.
18256 * Makeconfig (real-static-start-installed-name): New.
18257 (pic-default): Updated for --enable-static-pie.
18258 (pie-default): New for --enable-static-pie.
18259 (default-pie-ldflag): Likewise.
18260 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18261 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18262 Replace $(static-start-installed-name) with
18263 $(real-static-start-installed-name).
18264 (+prectorT): Updated for --enable-static-pie.
18265 (+postctorT): Likewise.
18266 (CFLAGS-.o): Add $(pie-default).
18267 (CFLAGS-.op): Likewise.
18268 * NEWS: Mention --enable-static-pie.
18269 * config.h.in (ENABLE_STATIC_PIE): New.
18270 * configure.ac (--enable-static-pie): New configure option.
18271 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18272 (have-static-pie): Likewise.
18273 Enable static PIE if linker supports --no-dynamic-linker.
18274 (ENABLE_STATIC_PIE): New AC_DEFINE.
18275 (enable-static-pie): New LIBC_CONFIG_VAR.
18276 * configure: Regenerated.
18277 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18278 gr$(start-installed-name) for --enable-static-pie.
18279 (extra-objs): Likewise.
18280 (install-lib): Likewise.
18281 (extra-objs): Add static-reloc.o and static-reloc.os
18282 ($(objpfx)$(start-installed-name)): Also depend on
18283 $(objpfx)static-reloc.o.
18284 ($(objpfx)r$(start-installed-name)): New.
18285 ($(objpfx)g$(start-installed-name)): Also depend on
18286 $(objpfx)static-reloc.os.
18287 ($(objpfx)gr$(start-installed-name)): New.
18288 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18289 in libc.a.
18290 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18291 initimage.
18292 * csu/static-reloc.c: New file.
18293 * elf/Makefile (routines): Add dl-reloc-static-pie.
18294 (elide-routines.os): Likewise.
18295 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18296 (tst-tls1-static-non-pie-no-pie): New.
18297 * elf/dl-reloc-static-pie.c: New file.
18298 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18299 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18300 STATIC_PIE_BOOTSTRAP.
18301 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18302 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18303 (tests-static): Likewise.
18304 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18305 (tst-gmon-static-no-pie): New.
18306 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18307 (CRT-tst-gmon-static-pie): Likewise.
18308 (tst-gmon-static-pie-ENV): Likewise.
18309 (tests-special): Likewise.
18310 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18311 (clean-tst-gmon-static-pie-data): Likewise.
18312 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18313 * gmon/tst-gmon-static-pie.c: New file.
18314 * manual/install.texi: Document --enable-static-pie.
18315 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18316 (_dl_get_dl_main_map): Likewise.
18317 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18318 * sysdeps/x86_64/configure.ac: Likewise.
18319 * sysdeps/i386/configure: Regenerated.
18320 * sysdeps/x86_64/configure: Likewise.
18321 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18322 (ASFLAGS-.op): Likewise.
18323
18324 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18325
18326 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18327 * posix/tst-mmap-offset.c (fname): Use /tmp.
18328 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18329
18330 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18331
18332 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18333
18334 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18335
18336 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18337 errno.
18338
18339 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18340
18341 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18342 --with-float=hard for arm-linux-gnueabihf configurations.
18343
18344 [BZ #14121]
18345 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18346 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18347 ($(mo-installed)): Use $(objpfx)%.mo.
18348 (realclean): Remove rule.
18349
18350 * po/Makefile (linguas): Remove rule and dependencies.
18351 (linguas.mo): Likewise.
18352 (.PHONY): Do not depend on linguas and linguas.mo.
18353 (podir): Remove variable.
18354 (pofiles): Likewise.
18355 [$(pofiles)] (%.po): Remove rule.
18356
18357 * sysdeps/sparc/sparc32/Makefile
18358 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18359 start-of-line whitespace in argument of echo.
18360 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18361 with whitespace. Generate __wrap_.udiv alias.
18362 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18363 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18364 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18365 * sysdeps/sparc/sparc32/urem.S: Likewise.
18366
18367 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18368
18369 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18370 for aligned inputs.
18371
18372 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18373
18374 * benchtests/bench-strcmp.c: Print output in JSON format.
18375
18376 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18377
18378 2017-12-14 Florian Weimer <fweimer@redhat.com>
18379
18380 [BZ #22607]
18381 CVE-2017-1000409
18382 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18383 the expanded path string.
18384
18385 2017-12-14 Florian Weimer <fweimer@redhat.com>
18386
18387 [BZ #22606]
18388 CVE-2017-1000408
18389 * elf/dl-load.c (system_dirs): Update comment.
18390 (nsystem_dirs_len): Use array_length.
18391 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18392
18393 2017-12-14 Florian Weimer <fweimer@redhat.com>
18394
18395 Simplify compiling most of support/ outside of glibc.
18396 * support/check_addrinfo.c: Include <string.h>.
18397 * support/check_dns_packet.c: Likewise.
18398 * support/check_hostent.c: Likewise.
18399 * support/support_can_chroot.c: Include <support/xunistd.h>.
18400 * support/support_format_addrinfo.c: Include <stdlib.h>
18401 * support/support_format_dns_packet.c: Include <stdbool.h>.
18402 * support/support_format_hostent.c: Include <stdlib.h>.
18403 * support/support_format_netent.c: Likewise.
18404 * support/support_write_string.c: Include <support/xunistd.h>.
18405 * support/xdlfcn.c: Include <stddef.h>.
18406
18407 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18408
18409 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18410
18411 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18412 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18413
18414 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18415 (sysdeps_routines): Add memset-niagara7.
18416 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18417 Likewise.
18418 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18419 file.
18420 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18421 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18422 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18423 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18424 Add niagara7 option.
18425 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18426 memset.
18427
18428 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18429 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18430 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18431 Likewise.
18432 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18433 New file.
18434 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18435 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18436 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18437 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18438 and __memmove_niagara7.
18439 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18440 Add niagara7 option.
18441 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18442 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18443 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18444 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18445 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18446
18447 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18448
18449 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18450 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18451 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18452 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18453
18454 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18455 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18456 _dl_sparc_cap_flags array.
18457 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18458
18459 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18460
18461 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18462 time whenever possible.
18463
18464 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18465
18466 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18467 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18468
18469 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18470
18471 * soft-fp/fmadf4.c: Move to ....
18472 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18473 * soft-fp/fmasf4.c: Move to ....
18474 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18475 * soft-fp/fmatf4.c: Move to ....
18476 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18477 * sysdeps/ieee754/soft-fp/Makefile: New file.
18478 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18479 * sysdeps/arm/preconfigure: Regenerated.
18480 * sysdeps/arm/nofpu/Implies: New file.
18481 * sysdeps/arm/s_fma.c: Remove file.
18482 * sysdeps/arm/s_fmaf.c: Likewise.
18483 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18484 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18485 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18486 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18487 * sysdeps/microblaze/s_fma.c: Remove file.
18488 * sysdeps/microblaze/s_fmaf.c: Likewise.
18489 * sysdeps/mips/mips32/nofpu/Implies: New file.
18490 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18491 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18492 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18493 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18494 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18495 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18496 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18497 implementation.
18498 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18499 * sysdeps/nios2/s_fma.c: Remove file.
18500 * sysdeps/nios2/s_fmaf.c: Likewise.
18501 * sysdeps/sh/nofpu/Implies: New file.
18502 * sysdeps/sh/s_fma.c: Remove file.
18503 * sysdeps/sh/s_fmaf.c: Likewise.
18504 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18505 * sysdeps/tile/s_fma.c: Remove file.
18506 * sysdeps/tile/s_fmaf.c: Likewise.
18507
18508 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18509
18510 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18511 Add s_cosf-sse2 and s_cosf-fma.
18512 (CFLAGS-s_cosf-fma.c): New.
18513 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18514 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18515 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18516
18517 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18518
18519 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18520
18521 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18522
18523 * libio/Makefile (tests): Add tst-bz22415.
18524 (tst-bz22415-ENV): New rule.
18525 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18526 (tests-special): Add tst-bz22415-mem.out.
18527 ($(objpfx)tst-bz22415-mem.out): New rule.
18528 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18529 in case of a successful seek operation.
18530 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18531 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18532 buffer is required.
18533 * libio/tst-bz22415.c: New test.
18534
18535 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18536
18537 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18538
18539 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18540 __IPC_64 to 0 to avoid IPC_64 being set.
18541
18542 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18543
18544 [BZ #22593]
18545 * math/bits/mathcalls.h (nextafter): Remove const.
18546 (nexttoward): Likewise.
18547
18548 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18549
18550 * configure.ac (--with-fp): Remove configure option.
18551 (with_fp_cond): New variable.
18552 (libc_cv_with_fp): New configure test. Use this variable instead
18553 of with_fp.
18554 * configure: Regenerated.
18555 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18556 * manual/install.texi (Configuring and compiling): Remove
18557 --without-fp.
18558 * INSTALL: Regenerated.
18559 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18560 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18561 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18562 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18563 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18564 use --without-fp to configure glibc.
18565
18566 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18567
18568 * manual/locale.texi (nl_langinfo): Fix a typo.
18569
18570 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18571
18572 [BZ #22588]
18573 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18574
18575 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18576
18577 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18578 (CFLAGS-argp-parse.c): Likewise.
18579 (CFLAGS-argp-fmtstream.c): Likewise.
18580 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18581 (CPPFLAGS-sha512-crypt.c): Likewise.
18582 (CPPFLAGS-md5-crypt.c): Likewise.
18583 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18584 (CFLAGS-stack_chk_fail_local.c): Likewise.
18585 (CFLAGS-backtrace.c): Likewise.
18586 (CFLAGS-sprintf_chk.c): Likewise.
18587 (CFLAGS-snprintf_chk.c): Likewise.
18588 (CFLAGS-vsprintf_chk.c): Likewise.
18589 (CFLAGS-vsnprintf_chk.c): Likewise.
18590 (CFLAGS-asprintf_chk.c): Likewise.
18591 (CFLAGS-vasprintf_chk.c): Likewise.
18592 (CFLAGS-obprintf_chk.c): Likewise.
18593 (CFLAGS-dprintf_chk.c): Likewise.
18594 (CFLAGS-vdprintf_chk.c): Likewise.
18595 (CFLAGS-printf_chk.c): Likewise.
18596 (CFLAGS-fprintf_chk.c): Likewise.
18597 (CFLAGS-vprintf_chk.c): Likewise.
18598 (CFLAGS-vfprintf_chk.c): Likewise.
18599 (CFLAGS-gets_chk.c): Likewise.
18600 (CFLAGS-fgets_chk.c): Likewise.
18601 (CFLAGS-fgets_u_chk.c): Likewise.
18602 (CFLAGS-fread_chk.c): Likewise.
18603 (CFLAGS-fread_u_chk.c): Likewise.
18604 (CFLAGS-swprintf_chk.c): Likewise.
18605 (CFLAGS-vswprintf_chk.c): Likewise.
18606 (CFLAGS-wprintf_chk.c): Likewise.
18607 (CFLAGS-fwprintf_chk.c): Likewise.
18608 (CFLAGS-vwprintf_chk.c): Likewise.
18609 (CFLAGS-vfwprintf_chk.c): Likewise.
18610 (CFLAGS-fgetws_chk.c): Likewise.
18611 (CFLAGS-fgetws_u_chk.c): Likewise.
18612 (CFLAGS-read_chk.c): Likewise.
18613 (CFLAGS-pread_chk.c): Likewise.
18614 (CFLAGS-pread64_chk.c): Likewise.
18615 (CFLAGS-recv_chk.c): Likewise.
18616 (CFLAGS-recvfrom_chk.c): Likewise.
18617 (CFLAGS-tst-longjmp_chk.c): Likewise.
18618 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18619 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18620 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18621 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18622 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18623 (CFLAGS-tst-chk1.c): Likewise.
18624 (CFLAGS-tst-chk2.c): Likewise.
18625 (CFLAGS-tst-chk3.c): Likewise.
18626 (CFLAGS-tst-chk4.cc): Likewise.
18627 (CFLAGS-tst-chk5.cc): Likewise.
18628 (CFLAGS-tst-chk6.cc): Likewise.
18629 (CFLAGS-tst-lfschk1.c): Likewise.
18630 (CFLAGS-tst-lfschk2.c): Likewise.
18631 (CFLAGS-tst-lfschk3.c): Likewise.
18632 (CFLAGS-tst-lfschk4.cc): Likewise.
18633 (CFLAGS-tst-lfschk5.cc): Likewise.
18634 (CFLAGS-tst-lfschk6.cc): Likewise.
18635 (CFLAGS-tst-ssp-1.c): Likewise.
18636 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18637 (CFLAGS-scandir64.c): Likewise.
18638 (CFLAGS-scandir-tail.c): Likewise.
18639 (CFLAGS-scandir64-tail.c): Likewise.
18640 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18641 (CFLAGS-dl-tunables.c): Likewise.
18642 (CFLAGS-dl-runtime.c): Likewise.
18643 (CFLAGS-dl-lookup.c): Likewise.
18644 (CFLAGS-dl-iterate-phdr.c): Likewise.
18645 (CFLAGS-vismain.c): Likewise.
18646 (CFLAGS-tst-linkall-static.c): Likewise.
18647 (CFLAGS-tst-linkall-static.c): Likewise.
18648 (CPPFLAGS-dl-load.c): Likewise.
18649 (CFLAGS-ldconfig.c): Likewise.
18650 (CFLAGS-dl-cache.c): Likewise.
18651 (CFLAGS-cache.c): Likewise.
18652 (CFLAGS-rtld.c): Likewise.
18653 (CFLAGS-multiload.c): Likewise.
18654 (CFLAGS-filtmod1.c): Likewise.
18655 (CFLAGS-tst-align.c): Likewise.
18656 (CFLAGS-tst-align2.c): Likewise.
18657 (CFLAGS-tst-alignmod.c): Likewise.
18658 (CFLAGS-tst-alignmod2.c): Likewise.
18659 (CPPFLAGS-tst-execstack.c): Likewise.
18660 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18661 (CFLAGS-tst-latepthreadmod.c): Likewise.
18662 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18663 (CFLAGS-getgrnam_r.c): Likewise.
18664 (CFLAGS-getgrent_r.c): Likewise.
18665 (CFLAGS-getgrent.c): Likewise.
18666 (CFLAGS-fgetgrent.c): Likewise.
18667 (CFLAGS-fgetgrent_r.c): Likewise.
18668 (CFLAGS-putgrent.c): Likewise.
18669 (CFLAGS-initgroups.c): Likewise.
18670 (CFLAGS-getgrgid.c): Likewise.
18671 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18672 (CFLAGS-getsgent.c): Likewise.
18673 (CFLAGS-fgetsgent.c): Likewise.
18674 (CFLAGS-fgetsgent_r.c): Likewise.
18675 (CFLAGS-putsgent.c): Likewise.
18676 (CFLAGS-getsgnam.c): Likewise.
18677 (CFLAGS-getsgnam_r.c): Likewise.
18678 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18679 (CFLAGS-iconv_charmap.c): Likewise.
18680 (CFLAGS-dummy-repertoire.c): Likewise.
18681 (CFLAGS-charmap.c): Likewise.
18682 (CFLAGS-linereader.c): Likewise.
18683 (CFLAGS-simple-hash.c): Likewise.
18684 (CFLAGS-gconv_conf.c): Likewise.
18685 (CFLAGS-iconvconfig.c): Likewise.
18686 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18687 (CFLAGS-gethstbyad.c): Likewise.
18688 (CFLAGS-gethstbynm_r.c): Likewise.
18689 (CFLAGS-gethstbynm.c): Likewise.
18690 (CFLAGS-gethstbynm2_r.c): Likewise.
18691 (CFLAGS-gethstbynm2.c): Likewise.
18692 (CFLAGS-gethstent_r.c): Likewise.
18693 (CFLAGS-gethstent.c): Likewise.
18694 (CFLAGS-rcmd.c): Likewise.
18695 (CFLAGS-getnetbynm_r.c): Likewise.
18696 (CFLAGS-getnetbynm.c): Likewise.
18697 (CFLAGS-getnetbyad_r.c): Likewise.
18698 (CFLAGS-getnetbyad.c): Likewise.
18699 (CFLAGS-getnetent_r.c): Likewise.
18700 (CFLAGS-getnetent.c): Likewise.
18701 (CFLAGS-getaliasent_r.c): Likewise.
18702 (CFLAGS-getaliasent.c): Likewise.
18703 (CFLAGS-getrpcent_r.c): Likewise.
18704 (CFLAGS-getrpcent.c): Likewise.
18705 (CFLAGS-getservent_r.c): Likewise.
18706 (CFLAGS-getservent.c): Likewise.
18707 (CFLAGS-getprtent_r.c): Likewise.
18708 (CFLAGS-getprtent.c): Likewise.
18709 (CFLAGS-either_ntoh.c): Likewise.
18710 (CFLAGS-either_hton.c): Likewise.
18711 (CFLAGS-getnetgrent.c): Likewise.
18712 (CFLAGS-getnetgrent_r.c): Likewise.
18713 (CFLAGS-tst-checks-posix.c): Likewise.
18714 (CFLAGS-tst-sockaddr.c): Likewise.
18715 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18716 (CFLAGS-tst-translit.c): Likewise.
18717 (CFLAGS-tst-gettext2.c): Likewise.
18718 (CFLAGS-tst-codeset.c): Likewise.
18719 (CFLAGS-tst-gettext3.c): Likewise.
18720 (CFLAGS-tst-gettext4.c): Likewise.
18721 (CFLAGS-tst-gettext5.c): Likewise.
18722 (CFLAGS-tst-gettext6.c): Likewise.
18723 * io/Makefile (CFLAGS-open.c): Likewise.
18724 (CFLAGS-open64.c): Likewise.
18725 (CFLAGS-creat.c): Likewise.
18726 (CFLAGS-creat64.c): Likewise.
18727 (CFLAGS-fcntl.c): Likewise.
18728 (CFLAGS-poll.c): Likewise.
18729 (CFLAGS-ppoll.c): Likewise.
18730 (CFLAGS-lockf.c): Likewise.
18731 (CFLAGS-statfs.c): Likewise.
18732 (CFLAGS-fstatfs.c): Likewise.
18733 (CFLAGS-statvfs.c): Likewise.
18734 (CFLAGS-fstatvfs.c): Likewise.
18735 (CFLAGS-fts.c): Likewise.
18736 (CFLAGS-fts64.c): Likewise.
18737 (CFLAGS-ftw.c): Likewise.
18738 (CFLAGS-ftw64.c): Likewise.
18739 (CFLAGS-lockf.c): Likewise.
18740 (CFLAGS-posix_fallocate.c): Likewise.
18741 (CFLAGS-posix_fallocate64.c): Likewise.
18742 (CFLAGS-fallocate.c): Likewise.
18743 (CFLAGS-fallocate64.c): Likewise.
18744 (CFLAGS-read.c): Likewise.
18745 (CFLAGS-write.c): Likewise.
18746 (CFLAGS-test-stat.c): Likewise.
18747 (CFLAGS-test-lfs.c): Likewise.
18748 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18749 (CFLAGS-fputc.c): Likewise.
18750 (CFLAGS-fputwc.c): Likewise.
18751 (CFLAGS-freopen64.c): Likewise.
18752 (CFLAGS-freopen.c): Likewise.
18753 (CFLAGS-fseek.c): Likewise.
18754 (CFLAGS-fseeko64.c): Likewise.
18755 (CFLAGS-fseeko.c): Likewise.
18756 (CFLAGS-ftello64.c): Likewise.
18757 (CFLAGS-ftello.c): Likewise.
18758 (CFLAGS-fwide.c): Likewise.
18759 (CFLAGS-genops.c): Likewise.
18760 (CFLAGS-getc.c): Likewise.
18761 (CFLAGS-getchar.c): Likewise.
18762 (CFLAGS-getwc.c): Likewise.
18763 (CFLAGS-getwchar.c): Likewise.
18764 (CFLAGS-iofclose.c): Likewise.
18765 (CFLAGS-iofflush.c): Likewise.
18766 (CFLAGS-iofgetpos64.c): Likewise.
18767 (CFLAGS-iofgetpos.c): Likewise.
18768 (CFLAGS-iofgets.c): Likewise.
18769 (CFLAGS-iofgetws.c): Likewise.
18770 (CFLAGS-iofputs.c): Likewise.
18771 (CFLAGS-iofputws.c): Likewise.
18772 (CFLAGS-iofread.c): Likewise.
18773 (CFLAGS-iofsetpos64.c): Likewise.
18774 (CFLAGS-iofsetpos.c): Likewise.
18775 (CFLAGS-ioftell.c): Likewise.
18776 (CFLAGS-iofwrite.c): Likewise.
18777 (CFLAGS-iogetdelim.c): Likewise.
18778 (CFLAGS-iogetline.c): Likewise.
18779 (CFLAGS-iogets.c): Likewise.
18780 (CFLAGS-iogetwline.c): Likewise.
18781 (CFLAGS-ioputs.c): Likewise.
18782 (CFLAGS-ioseekoff.c): Likewise.
18783 (CFLAGS-ioseekpos.c): Likewise.
18784 (CFLAGS-iosetbuffer.c): Likewise.
18785 (CFLAGS-iosetvbuf.c): Likewise.
18786 (CFLAGS-ioungetc.c): Likewise.
18787 (CFLAGS-ioungetwc.c): Likewise.
18788 (CFLAGS-oldfileops.c): Likewise.
18789 (CFLAGS-oldiofclose.c): Likewise.
18790 (CFLAGS-oldiofgetpos64.c): Likewise.
18791 (CFLAGS-oldiofgetpos.c): Likewise.
18792 (CFLAGS-oldiofsetpos64.c): Likewise.
18793 (CFLAGS-oldiofsetpos.c): Likewise.
18794 (CFLAGS-peekc.c): Likewise.
18795 (CFLAGS-putc.c): Likewise.
18796 (CFLAGS-putchar.c): Likewise.
18797 (CFLAGS-putwc.c): Likewise.
18798 (CFLAGS-putwchar.c): Likewise.
18799 (CFLAGS-rewind.c): Likewise.
18800 (CFLAGS-wfileops.c): Likewise.
18801 (CFLAGS-wgenops.c): Likewise.
18802 (CFLAGS-oldiofopen.c): Likewise.
18803 (CFLAGS-iofopen.c): Likewise.
18804 (CFLAGS-iofopen64.c): Likewise.
18805 (CFLAGS-oldtmpfile.c): Likewise.
18806 (CFLAGS-tst_putwc.c): Likewise.
18807 * locale/Makefile (CFLAGS-md5.c): Likewise.
18808 (CFLAGS-charmap.c): Likewise.
18809 (CFLAGS-locfile.c): Likewise.
18810 (CFLAGS-charmap-dir.c): Likewise.
18811 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18812 (CFLAGS-getpt.c): Likewise.
18813 (CFLAGS-pt_chown.c): Likewise.
18814 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18815 (CFLAGS-obstack.c): Likewise.
18816 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18817 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18818 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18819 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18820 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18821 (CFLAGS-test-tgmath.c): Likewise.
18822 (CFLAGS-test-tgmath2.c): Likewise.
18823 (CFLAGS-test-tgmath-ret.c): Likewise.
18824 (CFLAGS-test-powl.c): Likewise.
18825 (CFLAGS-test-snan.c): Likewise.
18826 (CFLAGS-test-signgam-finite.c): Likewise.
18827 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18828 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18829 (CFLAGS-test-signgam-uchar.c): Likewise.
18830 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18831 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18832 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18833 (CFLAGS-test-signgam-uint.c): Likewise.
18834 (CFLAGS-test-signgam-uint-init.c): Likewise.
18835 (CFLAGS-test-signgam-uint-static.c): Likewise.
18836 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18837 (CFLAGS-test-signgam-ullong.c): Likewise.
18838 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18839 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18840 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18841 (CFLAGS-test-math-cxx11.cc): Likewise.
18842 (CFLAGS-test-math-isinff.cc): Likewise.
18843 (CFLAGS-test-math-iszero.cc): Likewise.
18844 (CFLAGS-test-math-issignaling.cc): Likewise.
18845 (CFLAGS-test-math-iscanonical.cc): Likewise.
18846 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18847 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18848 (CFLAGS-test-flt-eval-method.c): Likewise.
18849 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18850 (CFLAGS-test-finite-macros.c): Likewise.
18851 * misc/Makefile (CFLAGS-select.c): Likewise.
18852 (CFLAGS-tsearch.c): Likewise.
18853 (CFLAGS-lsearch.c): Likewise.
18854 (CFLAGS-pselect.c): Likewise.
18855 (CFLAGS-readv.c): Likewise.
18856 (CFLAGS-writev.c): Likewise.
18857 (CFLAGS-preadv.c): Likewise.
18858 (CFLAGS-preadv64.c): Likewise.
18859 (CFLAGS-pwritev.c): Likewise.
18860 (CFLAGS-pwritev64.c): Likewise.
18861 (CFLAGS-preadv2.c): Likewise.
18862 (CFLAGS-preadv64v2.c): Likewise.
18863 (CFLAGS-pwritev2.c): Likewise.
18864 (CFLAGS-pwritev64v2.c): Likewise.
18865 (CFLAGS-usleep.c): Likewise.
18866 (CFLAGS-syslog.c): Likewise.
18867 (CFLAGS-error.c): Likewise.
18868 (CFLAGS-getpass.c): Likewise.
18869 (CFLAGS-mkstemp.c): Likewise.
18870 (CFLAGS-mkstemp64.c): Likewise.
18871 (CFLAGS-getsysstats.c): Likewise.
18872 (CFLAGS-getusershell.c): Likewise.
18873 (CFLAGS-err.c): Likewise.
18874 (CFLAGS-tst-tsearch.c): Likewise.
18875 (CFLAGS-msync.c): Likewise.
18876 (CFLAGS-fdatasync.c): Likewise.
18877 (CFLAGS-fsync.c): Likewise.
18878 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18879 (CFLAGS-unwind.c): Likewise.
18880 (CFLAGS-unwind-forcedunwind.c): Likewise.
18881 (CFLAGS-pthread_cancel.c): Likewise.
18882 (CFLAGS-pthread_setcancelstate.c): Likewise.
18883 (CFLAGS-pthread_setcanceltype.c): Likewise.
18884 (CFLAGS-cancellation.c): Likewise.
18885 (CFLAGS-libc-cancellation.c): Likewise.
18886 (CFLAGS-pthread_exit.c): Likewise.
18887 (CFLAGS-forward.c): Likewise.
18888 (CFLAGS-pthread_testcancel.c): Likewise.
18889 (CFLAGS-pthread_join.c): Likewise.
18890 (CFLAGS-pthread_timedjoin.c): Likewise.
18891 (CFLAGS-pthread_once.c): Likewise.
18892 (CFLAGS-pthread_cond_wait.c): Likewise.
18893 (CFLAGS-sem_wait.c): Likewise.
18894 (CFLAGS-sem_timedwait.c): Likewise.
18895 (CFLAGS-fcntl.c): Likewise.
18896 (CFLAGS-lockf.c): Likewise.
18897 (CFLAGS-pread.c): Likewise.
18898 (CFLAGS-pread64.c): Likewise.
18899 (CFLAGS-pwrite.c): Likewise.
18900 (CFLAGS-pwrite64.c): Likewise.
18901 (CFLAGS-wait.c): Likewise.
18902 (CFLAGS-waitpid.c): Likewise.
18903 (CFLAGS-sigwait.c): Likewise.
18904 (CFLAGS-msgrcv.c): Likewise.
18905 (CFLAGS-msgsnd.c): Likewise.
18906 (CFLAGS-tcdrain.c): Likewise.
18907 (CFLAGS-open.c): Likewise.
18908 (CFLAGS-open64.c): Likewise.
18909 (CFLAGS-pause.c): Likewise.
18910 (CFLAGS-recv.c): Likewise.
18911 (CFLAGS-send.c): Likewise.
18912 (CFLAGS-accept.c): Likewise.
18913 (CFLAGS-sendto.c): Likewise.
18914 (CFLAGS-connect.c): Likewise.
18915 (CFLAGS-recvfrom.c): Likewise.
18916 (CFLAGS-recvmsg.c): Likewise.
18917 (CFLAGS-sendmsg.c): Likewise.
18918 (CFLAGS-close.c): Likewise.
18919 (CFLAGS-read.c): Likewise.
18920 (CFLAGS-write.c): Likewise.
18921 (CFLAGS-nanosleep.c): Likewise.
18922 (CFLAGS-sigsuspend.c): Likewise.
18923 (CFLAGS-msync.c): Likewise.
18924 (CFLAGS-fdatasync.c): Likewise.
18925 (CFLAGS-fsync.c): Likewise.
18926 (CFLAGS-pt-system.c): Likewise.
18927 (CFLAGS-tst-cleanup2.c): Likewise.
18928 (CFLAGS-tst-cleanupx2.c): Likewise.
18929 (CFLAGS-flockfile.c): Likewise.
18930 (CFLAGS-ftrylockfile.c): Likewise.
18931 (CFLAGS-funlockfile.c): Likewise.
18932 (CFLAGS-tst-initializers1.c): Likewise.
18933 (CFLAGS-tst-initializers1-c89.c): Likewise.
18934 (CFLAGS-tst-initializers1-c99.c): Likewise.
18935 (CFLAGS-tst-initializers1-c11.c): Likewise.
18936 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18937 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18938 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18939 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18940 (CFLAGS-nscd_getgr_r.c): Likewise.
18941 (CFLAGS-nscd_gethst_r.c): Likewise.
18942 (CFLAGS-nscd_getai.c): Likewise.
18943 (CFLAGS-nscd_initgroups.c): Likewise.
18944 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18945 (CFLAGS-pause.c): Likewise.
18946 (CFLAGS-pread.c): Likewise.
18947 (CFLAGS-pread64.c): Likewise.
18948 (CFLAGS-pwrite.c): Likewise.
18949 (CFLAGS-pwrite64.c): Likewise.
18950 (CFLAGS-sleep.c): Likewise.
18951 (CFLAGS-wait.c): Likewise.
18952 (CFLAGS-waitid.c): Likewise.
18953 (CFLAGS-waitpid.c): Likewise.
18954 (CFLAGS-getopt.c): Likewise.
18955 (CFLAGS-wordexp.c): Likewise.
18956 (CFLAGS-sysconf.c): Likewise.
18957 (CFLAGS-pathconf.c): Likewise.
18958 (CFLAGS-fpathconf.c): Likewise.
18959 (CFLAGS-spawn.c): Likewise.
18960 (CFLAGS-spawnp.c): Likewise.
18961 (CFLAGS-spawni.c): Likewise.
18962 (CFLAGS-glob.c): Likewise.
18963 (CFLAGS-glob64.c): Likewise.
18964 (CFLAGS-getconf.c): Likewise.
18965 (CFLAGS-nanosleep.c): Likewise.
18966 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18967 (CFLAGS-getpwent.c): Likewise.
18968 (CFLAGS-getpw.c): Likewise.
18969 (CFLAGS-fgetpwent_r.c): Likewise.
18970 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18971 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18972 (CFLAGS-mq_timedreceive.c): Likewise.
18973 (CFLAGS-mq_timedsend.c): Likewise.
18974 (CFLAGS-clock_nanosleep.c): Likewise.
18975 (CFLAGS-librt-cancellation.c): Likewise.
18976 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18977 (CFLAGS-getspent.c): Likewise.
18978 (CFLAGS-fgetspent.c): Likewise.
18979 (CFLAGS-fgetspent_r.c): Likewise.
18980 (CFLAGS-putspent.c): Likewise.
18981 (CFLAGS-getspnam.c): Likewise.
18982 (CFLAGS-getspnam_r.c): Likewise.
18983 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18984 (CFLAGS-sigsuspend.c): Likewise.
18985 (CFLAGS-sigtimedwait.c): Likewise.
18986 (CFLAGS-sigwait.c): Likewise.
18987 (CFLAGS-sigwaitinfo.c): Likewise.
18988 (CFLAGS-sigreturn.c): Likewise.
18989 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18990 (CFLAGS-vfwprintf.c): Likewise.
18991 (CFLAGS-tmpfile.c): Likewise.
18992 (CFLAGS-tmpfile64.c): Likewise.
18993 (CFLAGS-tempname.c): Likewise.
18994 (CFLAGS-psignal.c): Likewise.
18995 (CFLAGS-vprintf.c): Likewise.
18996 (CFLAGS-cuserid.c): Likewise.
18997 (CFLAGS-errlist.c): Likewise.
18998 (CFLAGS-siglist.c): Likewise.
18999 (CFLAGS-scanf15.c): Likewise.
19000 (CFLAGS-scanf17.c): Likewise.
19001 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19002 (CFLAGS-msort.c): Likewise.
19003 (CFLAGS-qsort.c): Likewise.
19004 (CFLAGS-system.c): Likewise.
19005 (CFLAGS-fmtmsg.c): Likewise.
19006 (CFLAGS-strfmon.c): Likewise.
19007 (CFLAGS-strfmon_l.c): Likewise.
19008 (CFLAGS-strfromd.c): Likewise.
19009 (CFLAGS-strfromf.c): Likewise.
19010 (CFLAGS-strfroml.c): Likewise.
19011 (CFLAGS-tst-bsearch.c): Likewise.
19012 (CFLAGS-tst-qsort.c): Likewise.
19013 (CFLAGS-tst-makecontext2.c): Likewise.
19014 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19015 (CFLAGS-xnlm_prot.c): Likewise.
19016 (CFLAGS-xrstat.c): Likewise.
19017 (CFLAGS-xyppasswd.c): Likewise.
19018 (CFLAGS-xklm_prot.c): Likewise.
19019 (CFLAGS-xrex.c): Likewise.
19020 (CFLAGS-xsm_inter.c): Likewise.
19021 (CFLAGS-xmount.c): Likewise.
19022 (CFLAGS-xrusers.c): Likewise.
19023 (CFLAGS-xspray.c): Likewise.
19024 (CFLAGS-xnfs_prot.c): Likewise.
19025 (CFLAGS-xrquota.c): Likewise.
19026 (CFLAGS-xkey_prot.c): Likewise.
19027 (CFLAGS-auth_unix.c): Likewise.
19028 (CFLAGS-key_call.c): Likewise.
19029 (CFLAGS-pmap_rmt.c): Likewise.
19030 (CFLAGS-clnt_perr.c): Likewise.
19031 (CFLAGS-openchild.c): Likewise.
19032 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19033 (CFLAGS-msgsnd.c): Likewise.
19034 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19035 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19036 (CFLAGS-tzset.c): Likewise.
19037 (CFLAGS-getdate.c): Likewise.
19038 (CFLAGS-test_time.c): Likewise.
19039 (CPPFLAGS-tst-tzname.c): Likewise.
19040 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19041 (CFLAGS-zic.c): Likewise.
19042 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19043 (CFLAGS-wcswidth.c): Likewise.
19044 (CFLAGS-wcstol.c): Likewise.
19045 (CFLAGS-wcstoul.c): Likewise.
19046 (CFLAGS-wcstoll.c): Likewise.
19047 (CFLAGS-wcstoull.c): Likewise.
19048 (CFLAGS-wcstod.c): Likewise.
19049 (CFLAGS-wcstold.c): Likewise.
19050 (CFLAGS-wcstof128.c): Likewise.
19051 (CFLAGS-wcstof.c): Likewise.
19052 (CFLAGS-wcstol_l.c): Likewise.
19053 (CFLAGS-wcstoul_l.c): Likewise.
19054 (CFLAGS-wcstoll_l.c): Likewise.
19055 (CFLAGS-wcstoull_l.c): Likewise.
19056 (CFLAGS-wcstod_l.c): Likewise.
19057 (CFLAGS-wcstold_l.c): Likewise.
19058 (CFLAGS-wcstof128_l.c): Likewise.
19059 (CFLAGS-wcstof_l.c): Likewise.
19060 (CPPFLAGS-tst-wchar-h.c): Likewise.
19061 (CPPFLAGS-wcstold_l.c): Likewise.
19062
19063 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19064
19065 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19066
19067 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19068 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19069
19070 * manual/tunables.texi (Hardware Capability Tunables): Document
19071 glibc.tune.cached_memopt.
19072 * sysdeps/powerpc/cpu-features.c: New file.
19073 * sysdeps/powerpc/cpu-features.h: New file.
19074 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19075 _dl_powerpc_cpu_features.
19076 * sysdeps/powerpc/dl-tunables.list: New file.
19077 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19078 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19079 (INIT_ARCH): Initialize use_aligned_memopt.
19080 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19081 IS_IN(rtld))]: Restrict dl_platform_init availability and
19082 initialize CPU features used by tunables.
19083 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19084 Add memcpy-power8-cached.
19085 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19086 __memcpy_power8_cached.
19087 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19088 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19089 New file.
19090
19091 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19092
19093 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19094 (CFLAGS-noinl-tester.c): Likewise.
19095 (CFLAGS-tst-strlen.c): Likewise.
19096 (CFLAGS-stratcliff.c): Likewise.
19097 (CFLAGS-test-ffs.c): Likewise.
19098 (CFLAGS-tst-inlcall.c): Likewise.
19099 (CFLAGS-tst-xbzero-opt.c): Likewise.
19100 (CFLAGS-memcpy.c): Likewise.
19101 (CFLAGS-wordcopy.c): Likewise.
19102
19103 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19104
19105 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19106 Store r15 on stack and add cfi rule.
19107 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19108 Likewise.
19109
19110 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19111
19112 [BZ #22577]
19113 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19114 call.
19115
19116 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19117
19118 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19119 Add s_sinf-sse2 and s_sinf-fma.
19120 (CFLAGS-s_sinf-fma.c): New.
19121 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19122 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19123 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19124
19125 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19126
19127 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19128
19129 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19130
19131 [BZ #22568]
19132 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19133 part of result to imaginary part of argument if it is zero and the
19134 real part of the argument is not finite.
19135 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19136 of result to real part of argument if it is zero and the imaginary
19137 part of the argument is not finite.
19138
19139 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19140
19141 [BZ #22524]
19142 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19143 and to the list of locales to be built for testing.
19144 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19145 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19146 and build the collation rules upon that.
19147
19148 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19149
19150 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19151 * manual/math.texi (Mathematics): Document support for _Float32.
19152 * math/Makefile (test-types): Add float32.
19153 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19154 * stdlib/Versions (GLIBC_2.27): Likewise.
19155 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19156 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19157 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19158 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19159 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19160 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19161 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19162 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19163 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19164 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19165 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19166 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19167 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19168 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19169 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19170 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19171 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19172 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19173 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19174 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19175 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19176 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19177 Likewise.
19178 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19179 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19180 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19181 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19182 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19184 Likewise.
19185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19186 Likewise.
19187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19188 Likewise.
19189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19190 Likewise.
19191
19192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19193 Likewise.
19194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19195 Likewise.
19196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19197 Likewise.
19198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19199 Likewise.
19200 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19201 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19202 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19203 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19204 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19205 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19206 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19207 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19208 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19209 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19210 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19211 Likewise.
19212 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19213 Likewise.
19214 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19215 Likewise.
19216 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19217 Likewise.
19218 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19219 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19220 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19221 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19222 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19223 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19224 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19225 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19226
19227 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19228
19229 * stdlib/strtof.c: Include <bits/floatn.h>
19230 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19231 and later undefine as macro. Define as weak alias if
19232 [!USE_WIDE_CHAR].
19233 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19234 and later undefine as macro. Define as weak alias if
19235 [USE_WIDE_CHAR].
19236 * stdlib/strtof_l.c: Include <bits/floatn.h>
19237 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19238 and later undefine as macro. Define as weak alias if
19239 [!USE_WIDE_CHAR].
19240 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19241 and later undefine as macro. Define as weak alias if
19242 [USE_WIDE_CHAR].
19243
19244 * stdlib/strfromf.c: Include <bits/floatn.h>.
19245 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19246 and later undefine as macro and define as weak alias.
19247
19248 * math/test-float32.h: New file.
19249
19250 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19251 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19252 (libm_alias_float_other_r): Create f32 alias.
19253 (libm_alias_float_r): Use semicolon before call to
19254 libm_alias_float_other_r.
19255
19256 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19257 second argument to libm_alias_float_other.
19258 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19259 second argument to libm_alias_float_other.
19260 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19261 argument to libm_alias_float_other.
19262
19263 [BZ #22561]
19264 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19265 real part of result for argument 0 + i * NaN.
19266 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19267 results for tests of 0 + i * NaN.
19268
19269 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19270
19271 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19272
19273 2017-12-06 David S. Miller <davem@davemloft.net>
19274
19275 * sysdeps/sparc/fpu/libm-test-ulps: Update
19276 exp_{downward,towardzero,upward} ulps.
19277
19278 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19279
19280 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19281 variables static.
19282
19283 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19284 (Y0_2D): Likewise.
19285 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19286 (Y0_2D): Likewise.
19287 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19288 (Y0_2D): Likewise.
19289 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19290 (Y0_2D): Likewise.
19291
19292 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19293
19294 [BZ #22515]
19295 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19296 and to the list of locales to be built for testing.
19297 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19298 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19299 and build the collation rules upon that.
19300
19301 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19302
19303 * NEWS: Add sinf to list of optimized functions.
19304
19305 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19306
19307 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19308 (__HAVE_FLOAT32X): Likewise.
19309 * manual/math.texi (Mathematics): Document support for _Float64
19310 and _Float32x.
19311 * math/Makefile (test-types): Add float64 and float32x.
19312 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19313 functions.
19314 * stdlib/Versions (GLIBC_2.27): Likewise.
19315 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19316 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19317 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19318 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19319 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19320 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19321 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19322 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19323 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19324 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19325 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19326 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19327 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19328 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19329 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19330 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19331 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19332 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19333 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19334 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19335 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19336 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19337 Likewise.
19338 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19339 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19340 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19341 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19342 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19344 Likewise.
19345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19346 Likewise.
19347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19348 Likewise.
19349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19350 Likewise.
19351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19352 Likewise.
19353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19354 Likewise.
19355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19356 Likewise.
19357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19358 Likewise.
19359 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19360 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19361 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19362 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19363 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19364 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19365 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19366 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19367 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19368 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19369 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19370 Likewise.
19371 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19372 Likewise.
19373 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19374 Likewise.
19375 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19376 Likewise.
19377 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19378 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19379 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19380 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19381 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19382 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19383 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19384 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19385
19386 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19387
19388 * bits/floatn-common.h: Include <bits/long-double.h>.
19389 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19390 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19391 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19392 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19393 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19394 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19395 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19396 (__builtin_huge_valf64): Use __builtin_huge_vall.
19397 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19398 (__builtin_inff64): Use __builtin_infl.
19399 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19400 (__builtin_nanf64): Use __builtin_nanl.
19401 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19402 (__builtin_nansf64): Use __builtin_nansl.
19403
19404 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19405 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19406 Carlos O'Donnell <carlos@redhat.com>
19407
19408 * elf/dl-tunables.list: Add elision parameters.
19409 * manual/tunables.texi: Add entries about elision tunable.
19410 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19411 Add callback functions to dynamically enable/disable elision.
19412 Add multiple callbacks functions to set elision parameters.
19413 Deleted __libc_enable_secure check.
19414 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19415 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19416 * configure: Regenerated.
19417 * configure.ac: Option enable_lock_elision was deleted.
19418 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19419 * config.make.in: Remove references to enable_lock_elision.
19420 * manual/install.texi: Elision configure option was removed.
19421 * INSTALL: Regenerated to remove enable_lock_elision.
19422 * nptl/Makefile:
19423 Disable elision so it can verify error case for destroying a mutex.
19424 * sysdeps/powerpc/nptl/elide.h:
19425 Cleanup ENABLE_LOCK_ELISION check.
19426 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19427 * sysdeps/s390/configure: Regenerated.
19428 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19429 * nptl/tst-mutex8.c:
19430 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19431 * sysdeps/powerpc/powerpc32/sysdep.h:
19432 Deleted all ENABLE_LOCK_ELISION checks.
19433 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19434 * sysdeps/powerpc/sysdep.h: Likewise.
19435 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19436 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19437 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19438 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19439 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19440 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19441 enable-lock-elision.
19442
19443 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19444
19445 * stdlib/strtod.c: Include <bits/floatn.h>.
19446 (BUILD_DOUBLE): New macro.
19447 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19448 (strtof64): Define and later undefine as macro. Define as weak
19449 alias if [!USE_WIDE_CHAR].
19450 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19451 (wcstof64): Define and later undefine as macro. Define as weak
19452 alias if [USE_WIDE_CHAR].
19453 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19454 (strtof32x): Define and later undefine as macro. Define as weak
19455 alias if [!USE_WIDE_CHAR].
19456 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19457 (wcstof32x): Define and later undefine as macro. Define as weak
19458 alias if [USE_WIDE_CHAR].
19459 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19460 (BUILD_DOUBLE): New macro.
19461 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19462 (strtof64_l): Define and later undefine as macro. Define as weak
19463 alias if [!USE_WIDE_CHAR].
19464 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19465 (wcstof64_l): Define and later undefine as macro. Define as weak
19466 alias if [USE_WIDE_CHAR].
19467 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19468 (strtof32x_l): Define and later undefine as macro. Define as weak
19469 alias if [!USE_WIDE_CHAR].
19470 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19471 (wcstof32x_l): Define and later undefine as macro. Define as weak
19472 alias if [USE_WIDE_CHAR].
19473
19474 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19475
19476 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19477 (reduced): Use ones as double instead of integer.
19478
19479 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19480
19481 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19482
19483 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19484
19485 * stdlib/strfromd.c: Include <bits/floatn.h>.
19486 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19487 and later undefine as macro and define as weak alias.
19488 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19489 Likewise.
19490
19491 * math/test-float32x.h: New file.
19492 * math/test-float64.h: Likewise.
19493
19494 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19495 (libm_alias_double_other_r_f64): New macro.
19496 (libm_alias_double_other_r_f32x): Likewise.
19497 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19498 libm_alias_double_other_r_f32x.
19499 (libm_alias_double_r): Use semicolon before call to
19500 libm_alias_double_other_r.
19501 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19502 <bits/floatn.h>.
19503 (libm_alias_double_other_r_f64): New macro.
19504 (libm_alias_double_other_r_f32x): Likewise.
19505 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19506 libm_alias_double_other_r_f32x.
19507
19508 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19509
19510 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19511 int.
19512 (SINF_FUNC): Likewise. Replace floor with simple casts.
19513
19514 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19515
19516 [BZ #22517]
19517 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19518 and to the list of locales to be built for testing.
19519 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19520 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19521 and build the collation rules upon that.
19522
19523 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19524
19525 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19526 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19527 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19528 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19529 instead of __insn__xxx.
19530 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19531 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19532 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19533 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19534 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19535 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19536
19537 2017-12-05 Florian Weimer <fweimer@redhat.com>
19538
19539 Linux: Implement interfaces for memory protection keys
19540 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19541 xsignal, xsysconf.
19542 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19543 * support/xunistd.h (xsysconf): Declare.
19544 * support/xraise.c: New file.
19545 * support/xsigaction.c: Likewise.
19546 * support/xsignal.c: Likewise.
19547 * support/xsysconf.c: Likewise.
19548 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19549 pkey_set, pkey_get, pkey_mprotect.
19550 [misc] (tests): Add tst-pkey.
19551 (tst-pkey): Link with -lpthread.
19552 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19553 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19554 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19555 (PKEY_DISABLE_WRITE): Define.
19556 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19557 Declare.
19558 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19559 (SEGV_PKUERR): Add.
19560 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19561 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19562 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19563 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19564 Add.
19565 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19566 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19567 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19568 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19569 * sysdeps/unix/sysv/linux/**.abilist: Update.
19570
19571 2017-12-05 Florian Weimer <fweimer@redhat.com>
19572
19573 * support/tst-test_compare.c (subprocess): Use long long instead
19574 of long argument for consistent type width across 32-bit and
19575 64-bit architectures.
19576 (do_test): Adjust expected output.
19577
19578 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19579
19580 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19581 (cosf): Define using libm_alias_float.
19582 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19583 (fabsf): Define using libm_alias_float.
19584 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19585 (fmaf): Define using libm_alias_float.
19586 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19587 (rintf): Define using libm_alias_float.
19588 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19589 (sinf): Define using libm_alias_float.
19590 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19591 <libm-alias-float.h>.
19592 (modff): Define using libm_alias_float.
19593 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19594 <libm-alias-float.h>.
19595 (logbf): Define using libm_alias_float.
19596 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19597 <libm-alias-float.h>.
19598 (ceilf): Define using libm_alias_float.
19599 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19600 <libm-alias-float.h>.
19601 (copysignf): Define using libm_alias_float.
19602 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19603 <libm-alias-float.h>.
19604 (floorf): Define using libm_alias_float.
19605 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19606 <libm-alias-float.h>.
19607 (llrintf): Define using libm_alias_float.
19608 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19609 <libm-alias-float.h>.
19610 (llroundf): Define using libm_alias_float.
19611 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19612 <libm-alias-float.h>.
19613 (lrintf): Define using libm_alias_float.
19614 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19615 <libm-alias-float.h>.
19616 (lroundf): Define using libm_alias_float.
19617 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19618 <libm-alias-float.h>.
19619 (nearbyintf): Define using libm_alias_float.
19620 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19621 <libm-alias-float.h>.
19622 (rintf): Define using libm_alias_float.
19623 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19624 <libm-alias-float.h>.
19625 (roundf): Define using libm_alias_float.
19626 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19627 <libm-alias-float.h>.
19628 (truncf): Define using libm_alias_float.
19629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19630 Include <libm-alias-float.h>.
19631 (ceilf): Define using libm_alias_float.
19632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19633 Include <libm-alias-float.h>.
19634 (copysignf): Define using libm_alias_float.
19635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19636 Include <libm-alias-float.h>.
19637 (floorf): Define using libm_alias_float.
19638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19639 Include <libm-alias-float.h>.
19640 (llrintf): Define using libm_alias_float.
19641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19642 Include <libm-alias-float.h>.
19643 (llroundf): Define using libm_alias_float.
19644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19645 Include <libm-alias-float.h>.
19646 (logbf): Define using libm_alias_float.
19647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19648 Include <libm-alias-float.h>.
19649 (lrintf): Define using libm_alias_float.
19650 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19651 Include <libm-alias-float.h>.
19652 (lroundf): Define using libm_alias_float.
19653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19654 Include <libm-alias-float.h>.
19655 (modff): Define using libm_alias_float.
19656 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19657 Include <libm-alias-float.h>.
19658 (roundf): Define using libm_alias_float.
19659 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19660 Include <libm-alias-float.h>.
19661 (truncf): Define using libm_alias_float.
19662 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19663 <libm-alias-float.h>.
19664 (llrintf): Define using libm_alias_float.
19665 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19666 <libm-alias-float.h>.
19667 (llroundf): Define using libm_alias_float.
19668 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19669 <libm-alias-float.h>.
19670 (ceilf): Define using libm_alias_float.
19671 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19672 <libm-alias-float.h>.
19673 (floorf): Define using libm_alias_float.
19674 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19675 <libm-alias-float.h>.
19676 (llroundf): Define using libm_alias_float.
19677 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19678 <libm-alias-float.h>.
19679 (lroundf): Define using libm_alias_float.
19680 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19681 <libm-alias-float.h>.
19682 (roundf): Define using libm_alias_float.
19683 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19684 <libm-alias-float.h>.
19685 (truncf): Define using libm_alias_float.
19686 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19687 <libm-alias-float.h>.
19688 (copysignf): Define using libm_alias_float.
19689 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19690 <libm-alias-float.h>.
19691 (llrintf): Define using libm_alias_float.
19692 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19693 <libm-alias-float.h>.
19694 (llroundf): Define using libm_alias_float.
19695 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19696 <libm-alias-float.h>.
19697 (lrintf): Define using libm_alias_float.
19698 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19699 <libm-alias-float.h>.
19700 (lroundf): Define using libm_alias_float.
19701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19702 <libm-alias-float.h>.
19703 (ceilf): Define using libm_alias_float.
19704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19705 <libm-alias-float.h>.
19706 (copysignf): Define using libm_alias_float.
19707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19708 <libm-alias-float.h>.
19709 (cosf): Define using libm_alias_float.
19710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19711 <libm-alias-float.h>.
19712 (floorf): Define using libm_alias_float.
19713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19714 <libm-alias-float.h>.
19715 (llrintf): Define using libm_alias_float.
19716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19717 <libm-alias-float.h>.
19718 (llroundf): Define using libm_alias_float.
19719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19720 <libm-alias-float.h>.
19721 (logbf): Define using libm_alias_float.
19722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19723 <libm-alias-float.h>.
19724 (modff): Define using libm_alias_float.
19725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19726 <libm-alias-float.h>.
19727 (roundf): Define using libm_alias_float.
19728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19729 <libm-alias-float.h>.
19730 (sinf): Define using libm_alias_float.
19731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19732 <libm-alias-float.h>.
19733 (truncf): Define using libm_alias_float.
19734 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19735 <libm-alias-float.h>.
19736 (ceilf): Define using libm_alias_float.
19737 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19738 <libm-alias-float.h>.
19739 (copysignf): Define using libm_alias_float.
19740 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19741 <libm-alias-float.h>.
19742 (floorf): Define using libm_alias_float.
19743 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19744 <libm-alias-float.h>.
19745 (llrintf): Define using libm_alias_float.
19746 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19747 <libm-alias-float.h>.
19748 (llroundf): Define using libm_alias_float.
19749 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19750 <libm-alias-float.h>.
19751 (nearbyintf): Define using libm_alias_float.
19752 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19753 <libm-alias-float.h>.
19754 (rintf): Define using libm_alias_float.
19755 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19756 <libm-alias-float.h>.
19757 (roundf): Define using libm_alias_float.
19758 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19759 <libm-alias-float.h>.
19760 (truncf): Define using libm_alias_float.
19761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19762 <libm-alias-float.h>.
19763 (ceilf): Define using libm_alias_float.
19764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19765 <libm-alias-float.h>.
19766 (floorf): Define using libm_alias_float.
19767 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19768 <libm-alias-float.h>.
19769 (llroundf): Define using libm_alias_float.
19770 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19771 <libm-alias-float.h>.
19772 (roundf): Define using libm_alias_float.
19773 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19774 <libm-alias-float.h>.
19775 (truncf): Define using libm_alias_float.
19776 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19777 <libm-alias-float.h>.
19778 (copysignf): Define using libm_alias_float.
19779 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19780 <libm-alias-float.h>.
19781 (llrintf): Define using libm_alias_float.
19782 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19783 <libm-alias-float.h>.
19784 (llroundf): Define using libm_alias_float.
19785 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19786 <libm-alias-float.h>.
19787 (cosf): Define using libm_alias_float.
19788 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19789 <libm-alias-float.h>.
19790 (llrintf): Define using libm_alias_float.
19791 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19792 <libm-alias-float.h>.
19793 (llroundf): Define using libm_alias_float.
19794 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19795 <libm-alias-float.h>.
19796 (sinf): Define using libm_alias_float.
19797
19798 2017-12-04 Florian Weimer <fweimer@redhat.com>
19799
19800 * support/check.h (TEST_COMPARE): Define.
19801 (support_test_compare_failure): Declare.
19802 * support/Makefile (libsupport-routines): Add
19803 support_test_compare_failure.
19804 (tests): Add tst-test_compare.
19805 * support /support_test_compare_failure.c: New file.
19806 * support/tst-test_compare.c: Likewise.
19807
19808 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19809
19810 [BZ #22527]
19811 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19812 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19813 available, this rewrite of the collation rules does reproduce
19814 the test file in the same order.
19815
19816 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19817
19818 [BZ #10580]
19819 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19820 digraphs in the month and day names. Using single code points for
19821 digraphs is deprecated. While there are dedicated Unicode
19822 codepoints, for the digraphs, these are included for backwards
19823 compatibility and modern texts use a sequence of Basic Latin
19824 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19825 This makes the month and day names agree exactly with CLDR now,
19826 CLDR does not use the single code points for the digraphs either.
19827
19828 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19829
19830 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19831
19832 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19833
19834 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19835 of floor.
19836
19837 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19838
19839 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19840 Define only for libc.so.
19841
19842 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19843
19844 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19845 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19846 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19847 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19848 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19849
19850 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19851
19852 [BZ #5997]
19853 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19854
19855 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19856
19857 [BZ libc/19170]
19858 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19859 PREINIT_FUNCTION_WEAK is nonzero.
19860 (gmon_initializer): New function. Put procedure label for it in
19861 .init_array section.
19862 (_init): Don't call PREINIT_FUNCTION.
19863 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19864 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19865 value when map argument is null.
19866
19867 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19868 depi instruction from PIC pc-relative sequence.
19869 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19870 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19871 (elf_machine_load_address): Likewise.
19872 (elf_machine_runtime_setup): Likewise.
19873
19874 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19875
19876 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19877 <libm-alias-double.h>.
19878 (logb): Define using libm_alias_double.
19879 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19880 <libm-alias-double.h>.
19881 (copysign): Define using libm_alias_double.
19882 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19883 <libm-alias-double.h>.
19884 (llrint): Define using libm_alias_double.
19885 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19886 <libm-alias-double.h>.
19887 (llround): Define using libm_alias_double.
19888 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19889 <libm-alias-double.h>.
19890 (lrint): Define using libm_alias_double.
19891 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19892 <libm-alias-double.h>.
19893 (lround): Define using libm_alias_double.
19894 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19895 Include <libm-alias-double.h>.
19896 (copysign): Define using libm_alias_double.
19897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19898 Include <libm-alias-double.h>.
19899 (llrint): Define using libm_alias_double.
19900 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19901 Include <libm-alias-double.h>.
19902 (llround): Define using libm_alias_double.
19903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19904 <libm-alias-double.h>.
19905 (logb): Define using libm_alias_double.
19906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19907 Include <libm-alias-double.h>.
19908 (lrint): Define using libm_alias_double.
19909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19910 Include <libm-alias-double.h>.
19911 (lround): Define using libm_alias_double.
19912 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19913 <libm-alias-double.h>.
19914 (llrint): Define using libm_alias_double.
19915 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19916 <libm-alias-double.h>.
19917 (llround): Define using libm_alias_double.
19918 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19919 <libm-alias-double.h>.
19920 (llround): Define using libm_alias_double.
19921 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19922 <libm-alias-double.h>.
19923 (lround): Define using libm_alias_double.
19924 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19925 <libm-alias-double.h>.
19926 (copysign): Define using libm_alias_double.
19927 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19928 <libm-alias-double.h>.
19929 (llrint): Define using libm_alias_double.
19930 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19931 <libm-alias-double.h>.
19932 (llround): Define using libm_alias_double.
19933 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19934 <libm-alias-double.h>.
19935 (lrint): Define using libm_alias_double.
19936 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19937 <libm-alias-double.h>.
19938 (lround): Define using libm_alias_double.
19939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19940 <libm-alias-double.h>.
19941 (copysign): Define using libm_alias_double.
19942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19943 <libm-alias-double.h>.
19944 (llrint): Define using libm_alias_double.
19945 (lrint): Likewise.
19946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19947 <libm-alias-double.h>.
19948 (llround): Define using libm_alias_double.
19949 (lround): Likewise.
19950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19951 <libm-alias-double.h>.
19952 (logb): Define using libm_alias_double.
19953 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19954 <libm-alias-double.h>.
19955 (copysign): Define using libm_alias_double.
19956 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19957 <libm-alias-double.h>.
19958 (llrint): Define using libm_alias_double.
19959 (lrint): Likewise.
19960 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19961 <libm-alias-double.h>.
19962 (llround): Define using libm_alias_double.
19963 (lround): Likewise.
19964 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19965 <libm-alias-double.h>.
19966 (llround): Define using libm_alias_double.
19967 (lround): Likewise.
19968 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19969 <libm-alias-double.h>.
19970 (copysign): Define using libm_alias_double.
19971 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19972 <libm-alias-double.h>.
19973 (llrint): Define using libm_alias_double.
19974 (lrint): Likewise.
19975 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19976 <libm-alias-double.h>.
19977 (llround): Define using libm_alias_double.
19978 (lround): Likewise.
19979 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19980 <libm-alias-double.h>.
19981 (llrint): Define using libm_alias_double.
19982 (lrint): Likewise.
19983 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19984 <libm-alias-double.h>.
19985 (llround): Define using libm_alias_double.
19986 (lround): Likewise.
19987
19988 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19989
19990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19991 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19992 compat symbol based on llround.
19993
19994 * sysdeps/powerpc/power7/fpu/s_logb.c
19995 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19996 symbol based on __logb, not on logb.
19997 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19998 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20000 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20001
20002 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20003 (rint): Define using libm_alias_double.
20004 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20005 <libm-alias-double.h>.
20006 (modf): Define using libm_alias_double.
20007 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20008 <libm-alias-double.h>.
20009 (ceil): Define using libm_alias_double.
20010 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20011 <libm-alias-double.h>.
20012 (floor): Define using libm_alias_double.
20013 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20014 <libm-alias-double.h>.
20015 (nearbyint): Define using libm_alias_double.
20016 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20017 <libm-alias-double.h>.
20018 (rint): Define using libm_alias_double.
20019 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20020 <libm-alias-double.h>.
20021 (round): Define using libm_alias_double.
20022 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20023 <libm-alias-double.h>.
20024 (trunc): Define using libm_alias_double.
20025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20026 <libm-alias-double.h>.
20027 (ceil): Define using libm_alias_double.
20028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20029 Include <libm-alias-double.h>.
20030 (floor): Define using libm_alias_double.
20031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20032 <libm-alias-double.h>.
20033 (modf): Define using libm_alias_double.
20034 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20035 Include <libm-alias-double.h>.
20036 (round): Define using libm_alias_double.
20037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20038 Include <libm-alias-double.h>.
20039 (trunc): Define using libm_alias_double.
20040 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20041 <libm-alias-double.h>.
20042 (ceil): Define using libm_alias_double.
20043 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20044 <libm-alias-double.h>.
20045 (floor): Define using libm_alias_double.
20046 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20047 <libm-alias-double.h>.
20048 (round): Define using libm_alias_double.
20049 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20050 <libm-alias-double.h>.
20051 (trunc): Define using libm_alias_double.
20052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20053 <libm-alias-double.h>.
20054 (ceil): Define using libm_alias_double.
20055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20056 <libm-alias-double.h>.
20057 (floor): Define using libm_alias_double.
20058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20059 <libm-alias-double.h>.
20060 (modf): Define using libm_alias_double.
20061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20062 <libm-alias-double.h>.
20063 (round): Define using libm_alias_double.
20064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20065 <libm-alias-double.h>.
20066 (trunc): Define using libm_alias_double.
20067 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20068 <libm-alias-double.h>.
20069 (ceil): Define using libm_alias_double.
20070 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20071 <libm-alias-double.h>.
20072 (floor): Define using libm_alias_double.
20073 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20074 <libm-alias-double.h>.
20075 (nearbyint): Define using libm_alias_double.
20076 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20077 <libm-alias-double.h>.
20078 (rint): Define using libm_alias_double.
20079 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20080 <libm-alias-double.h>.
20081 (round): Define using libm_alias_double.
20082 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20083 <libm-alias-double.h>.
20084 (trunc): Define using libm_alias_double.
20085 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20086 <libm-alias-double.h>.
20087 (ceil): Define using libm_alias_double.
20088 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20089 <libm-alias-double.h>.
20090 (floor): Define using libm_alias_double.
20091 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20092 <libm-alias-double.h>.
20093 (round): Define using libm_alias_double.
20094 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20095 <libm-alias-double.h>.
20096 (trunc): Define using libm_alias_double.
20097
20098 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20099 (fabs): Define using libm_alias_double.
20100 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20101 (fma): Define using libm_alias_double.
20102 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20103 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20104 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20105 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20106
20107 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20108
20109 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20110
20111 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20112 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20113 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20114
20115 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20116 due redirect macro.
20117
20118 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20119
20120 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20121
20122 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20123
20124 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20125 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20126 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20127 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20128
20129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20130 (libm-sysdep_routines): Add s_nearbyintf-generic and
20131 s_nearbyint-generic.
20132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20133 New file.
20134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20136 Likewise.
20137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20138 Likewise.
20139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20140 file.
20141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20142 Likewise.
20143
20144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20145 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20147 file.
20148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20150 Likewise.
20151 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20154
20155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20156 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20158 file.
20159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20160 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20161 Likewise.
20162 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20163 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20165
20166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20167 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20169 file.
20170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20172 Likewise.
20173 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20174 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20176
20177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20178 (sysdep_calls): New rule.
20179 (sysdep_routines): Use sysdep_calls as base.
20180 (libm-sysdep_routines): Add generic rule for symbols shared with
20181 libc. Add s_copysign-generic and s_copysign-generic objects.
20182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20183 New file.
20184 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20186 Likewise.
20187 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20188 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20190
20191 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20192
20193 [BZ #22519]
20194 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20195 the list of locales to be built for testing.
20196 * localedata/is_IS.UTF-8.in: New file.
20197 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20198 on iso14651_t1.
20199
20200 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20201
20202 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20203 <libm-alias-float.h>.
20204 (fabsf): Define using libm_alias_float.
20205
20206 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20207
20208 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20209
20210 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20211
20212 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20213 <libm-alias-float.h>.
20214 (fabsf): Define using libm_alias_float.
20215 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20216 <libm-alias-float.h>.
20217 (lrintf): Define using libm_alias_float.
20218 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20219 <libm-alias-float.h>.
20220 (rintf): Define using libm_alias_float.
20221
20222 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20223 <libm-alias-double.h>.
20224 (fabs): Define using libm_alias_double.
20225 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20226 <libm-alias-double.h>.
20227 (lrint): Define using libm_alias_double.
20228 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20229 <libm-alias-double.h>.
20230 (rint): Define using libm_alias_double.
20231
20232 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20233 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20234 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20235 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20236 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20237 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20238 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20239 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20240 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20241 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20242 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20243 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20244 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20245 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20246 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20247 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20248 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20249 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20250 s_atan_template.c.
20251 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20252 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20253 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20254 s_ceil_template.c.
20255 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20256 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20257 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20258 s_cos_template.c.
20259 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20260 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20261 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20262 s_expm1_template.c.
20263 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20264 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20265 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20266 s_fabs_template.c.
20267 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20268 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20269 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20270 s_floor_template.c.
20271 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20272 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20273 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20274 s_frexp_template.c.
20275 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20276 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20277 s_lrint_template.c.
20278 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20279 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20280 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20281 s_modf_template.c.
20282 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20283 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20284 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20285 s_nearbyint_template.c.
20286 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20287 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20288 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20289 s_remquo_template.c.
20290 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20291 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20292 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20293 s_rint_template.c.
20294 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20295 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20296 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20297 s_sin_template.c.
20298 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20299 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20300 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20301 s_sincos_template.c.
20302 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20303 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20304 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20305 s_tan_template.c.
20306 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20307 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20308 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20309 s_tanh_template.c.
20310 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20311 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20312 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20313 s_trunc_template.c.
20314 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20315 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20316 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20317 s_atan.c instead of including s_atan.c.
20318 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20319 s_atanf.c instead of including s_atanf.c.
20320 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20321 s_atanl.c instead of including s_atanl.c.
20322 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20323 instead of s_atan.c.
20324 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20325 instead of s_atanf.c.
20326 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20327 instead of s_atanl.c.
20328
20329 * scripts/update-copyrights: Do not handle intl/plural.c
20330 specially.
20331
20332 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20333
20334 [BZ #22432]
20335 * configure.ac (BISON): Require to be present.
20336 * configure: Regenerated.
20337 * intl/Makefile (generated): Add plural.c.
20338 [$(BISON) != no]: Make code unconditional.
20339 (plural.c): Change rule to $(objpfx)plural.c.
20340 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20341 * intl/plural.c: Remove.
20342 * manual/install.texi (Tools for Compilation): Document bison as
20343 required.
20344 * INSTALL: Regenerated.
20345
20346 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20347
20348 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20349 <libm-alias-double.h>.
20350 (llrint): Define using libm_alias_double.
20351 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20352 <libm-alias-float.h>.
20353 (llrintf): Define using libm_alias_float.
20354 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20355 <libm-alias-ldouble.h>.
20356 (llrintl): Define using libm_alias_ldouble.
20357
20358 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20359 declare_mgen_alias instead of weak_alias.
20360 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20361 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20362 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20363
20364 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20365
20366 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20367 Add add_n-generic.
20368 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20369 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20370 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20371
20372 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20373 Add submul_1-generic.
20374 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20375 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20376 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20377
20378 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20379 Add addmul_1-generic.
20380 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20381 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20382 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20383
20384 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20385 Add sub_n-generic.
20386 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20387 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20388 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20389
20390 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20391 Add mul_1-generic.
20392 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20393 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20394 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20395
20396 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20397
20398 According to CLDR, collation rules for Serbian and Bosnian
20399 should be the same as for Croatian.
20400
20401 [BZ #22534]
20402 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20403 and to the list of locales to be built for testing.
20404 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20405 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20406 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20407 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20408
20409 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20410
20411 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20412 to make test case pass.
20413 * localedata/hr_HR.UTF-8.in: Add more test strings.
20414
20415 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20416
20417 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20418
20419 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20420
20421 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20422 the list of locales to built for testing.
20423 * localedata/hr_HR.UTF-8.in: New file.
20424
20425 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20426
20427 [BZ #10580]
20428 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20429 iso14651_t1.
20430 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20431 CLDR (except use ligatures for the digraphs, CLDR does not use
20432 the ligatures), add first_workday, some fixes in the date and time
20433 formats.
20434 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20435 for Đ and đ.
20436 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20437 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20438 Add int_p_cs_precedes and int_n_cs_precedes.
20439 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20440 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20441 LC_MONETARY now).
20442 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20443 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20444 name_miss.
20445 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20446 and lang_lib. Change postal_fmt.
20447
20448 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20449
20450 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20451 <setjmp.h>.
20452 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20453 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20454 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20455 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20456 * sysdeps/generic/setjmpP.h: New file.
20457 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20458 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20459 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20460 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20461 Add jmp_buf-ssp.sym.
20462 (tests): Add tst-saved_mask-1.
20463
20464 2017-11-30 Arjun Shankar <arjun@redhat.com>
20465
20466 [BZ #22375]
20467 CVE-2017-17426
20468 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20469 instead of request2size.
20470
20471 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20472
20473 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20474 (__lllrint): Remove alias.
20475 (lllrint): Likewise.
20476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20477 (__lllrintf): Likewise.
20478 (lllrintf): Likewise.
20479
20480 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20481 <libm-alias-float.h>.
20482 (copysignf): Define using libm_alias_float.
20483 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20484 <libm-alias-float.h>.
20485 (fabsf): Define using libm_alias_float.
20486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20487 Include <libm-alias-float.h>.
20488 (copysignf): Define using libm_alias_float.
20489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20490 <libm-alias-float.h>.
20491 (fabsf): Define using libm_alias_float.
20492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20493 <libm-alias-float.h>.
20494 (fdimf): Define using libm_alias_float.
20495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20496 <libm-alias-float.h>.
20497 (fmaf): Define using libm_alias_float.
20498 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20499 <libm-alias-float.h>.
20500 (llrintf): Define using libm_alias_float.
20501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20502 Include <libm-alias-float.h>.
20503 (nearbyintf): Define using libm_alias_float.
20504 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20505 <libm-alias-float.h>.
20506 (rintf): Define using libm_alias_float.
20507 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20508 <libm-alias-float.h>.
20509 (llrintf): Define using libm_alias_float.
20510 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20511 <libm-alias-float.h>.
20512 (lrintf): Define using libm_alias_float.
20513 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20514 <libm-alias-float.h>.
20515 (nearbyintf): Define using libm_alias_float.
20516 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20517 <libm-alias-float.h>.
20518 (rintf): Define using libm_alias_float.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20520 <libm-alias-float.h>.
20521 (ceilf): Define using libm_alias_float.
20522 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20523 <libm-alias-float.h>.
20524 (floorf): Define using libm_alias_float.
20525 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20526 <libm-alias-float.h>.
20527 (fmaf): Define using libm_alias_float.
20528 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20529 <libm-alias-float.h>.
20530 (lrintf): Define using libm_alias_float.
20531 (llrintf): Likewise.
20532 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20533 <libm-alias-float.h>.
20534 (nearbyintf): Define using libm_alias_float.
20535 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20536 <libm-alias-float.h>.
20537 (rintf): Define using libm_alias_float.
20538 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20539 <libm-alias-float.h>.
20540 (truncf): Define using libm_alias_float.
20541 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20542 <libm-alias-float.h>.
20543 (copysignf): Define using libm_alias_float.
20544 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20545 <libm-alias-float.h>.
20546 (fabsf): Define using libm_alias_float.
20547 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20548 <libm-alias-float.h>.
20549 (lrintf): Define using libm_alias_float.
20550 (llrintf): Likewise.
20551 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20552 <libm-alias-float.h>.
20553 (nearbyintf): Define using libm_alias_float.
20554 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20555 <libm-alias-float.h>.
20556 (rintf): Define using libm_alias_float.
20557
20558 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20559
20560 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20561 <libm-alias-double.h>.
20562 (copysign): Define using libm_alias_double.
20563 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20564 <libm-alias-double.h>.
20565 (fabs): Define using libm_alias_double.
20566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20567 Include <libm-alias-double.h>.
20568 (copysign): Define using libm_alias_double.
20569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20570 <libm-alias-double.h>.
20571 (fabs): Define using libm_alias_double.
20572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20573 <libm-alias-double.h>.
20574 (fdim): Define using libm_alias_double.
20575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20576 <libm-alias-double.h>.
20577 (fma): Define using libm_alias_double.
20578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20579 <libm-alias-double.h>.
20580 (llrint): Define using libm_alias_double.
20581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20582 Include <libm-alias-double.h>.
20583 (nearbyint): Define using libm_alias_double.
20584 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20585 <libm-alias-double.h>.
20586 (rint): Define using libm_alias_double.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20588 <libm-alias-double.h>.
20589 (fabs): Define using libm_alias_double.
20590 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20591 <libm-alias-double.h>.
20592 (llrint): Define using libm_alias_double.
20593 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20594 <libm-alias-double.h>.
20595 (nearbyint): Define using libm_alias_double.
20596 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20597 <libm-alias-double.h>.
20598 (rint): Define using libm_alias_double.
20599 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20600 <libm-alias-double.h>.
20601 (ceil): Define using libm_alias_double.
20602 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20603 <libm-alias-double.h>.
20604 (floor): Define using libm_alias_double.
20605 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20606 <libm-alias-double.h>.
20607 (fma): Define using libm_alias_double.
20608 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20609 <libm-alias-double.h>.
20610 (lrint): Define using libm_alias_double.
20611 (llrint): Likewise.
20612 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20613 <libm-alias-double.h>.
20614 (nearbyint): Define using libm_alias_double.
20615 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20616 <libm-alias-double.h>.
20617 (rint): Define using libm_alias_double.
20618 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20619 <libm-alias-double.h>.
20620 (trunc): Define using libm_alias_double.
20621 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20622 <libm-alias-double.h>.
20623 (copysign): Define using libm_alias_double.
20624 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20625 <libm-alias-double.h>.
20626 (fabs): Define using libm_alias_double.
20627 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20628 <libm-alias-double.h>.
20629 (lrint): Define using libm_alias_double.
20630 (llrint): Likewise.
20631 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20632 <libm-alias-double.h>.
20633 (nearbyint): Define using libm_alias_double.
20634 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20635 <libm-alias-double.h>.
20636 (rint): Define using libm_alias_double.
20637
20638 [BZ #22229]
20639 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20640 <math_ldbl_opt.h>.
20641 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20642
20643 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20644 SPARC --disable-multi-arch glibc variants.
20645
20646 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20647 <libm-alias-float.h>.
20648 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20649 if [SHARED].
20650 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20651 <libm-alias-float.h>.
20652 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20653 if [SHARED].
20654 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20655 <libm-alias-float.h>.
20656 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20657 if [SHARED].
20658 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20659 <libm-alias-float.h>.
20660 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20661 if [SHARED].
20662 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20663 <libm-alias-float.h>.
20664 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20665 if [SHARED].
20666 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20667 <libm-alias-float.h>.
20668 (ceilf): Define using libm_alias_float.
20669 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20670 <libm-alias-float.h>.
20671 (floorf): Define using libm_alias_float.
20672 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20673 <libm-alias-float.h>.
20674 (fmaf): Define using libm_alias_float.
20675 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20676 <libm-alias-float.h>.
20677 (nearbyintf): Define using libm_alias_float.
20678 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20679 <libm-alias-float.h>.
20680 (rintf): Define using libm_alias_float.
20681 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20682 <libm-alias-float.h>.
20683 (truncf): Define using libm_alias_float.
20684 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20685 (copysignf): Define using libm_alias_float.
20686 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20687 (cosf): Define using libm_alias_float.
20688 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20689 (fabsf): Define using libm_alias_float.
20690 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20691 (fmaxf): Define using libm_alias_float.
20692 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20693 (fminf): Define using libm_alias_float.
20694 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20695 (llrintf): Define using libm_alias_float.
20696 [!__ILP32__] (lrintf): Likewise.
20697 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20698 (sincosf): Define using libm_alias_float.
20699 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20700 (sinf): Define using libm_alias_float.
20701 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20702 (lrintf): Define using libm_alias_float.
20703
20704 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20705 <libm-alias-double.h>.
20706 (atan): Define using libm_alias_double.
20707 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20708 <libm-alias-double.h>.
20709 (ceil): Define using libm_alias_double.
20710 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20711 <libm-alias-double.h>.
20712 (floor): Define using libm_alias_double.
20713 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20714 <libm-alias-double.h>.
20715 (fma): Define using libm_alias_double.
20716 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20717 <libm-alias-double.h>.
20718 (nearbyint): Define using libm_alias_double.
20719 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20720 <libm-alias-double.h>.
20721 (rint): Define using libm_alias_double.
20722 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20723 <libm-alias-double.h>.
20724 (sin): Define using libm_alias_double.
20725 (cos): Likewise.
20726 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20727 <libm-alias-double.h>.
20728 (tan): Define using libm_alias_double.
20729 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20730 <libm-alias-double.h>.
20731 (trunc): Define using libm_alias_double.
20732 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20733 (copysign): Define using libm_alias_double.
20734 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20735 (fabs): Define using libm_alias_double.
20736 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20737 (fmax): Define using libm_alias_double.
20738 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20739 (fmin): Define using libm_alias_double.
20740 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20741 (llrint): Define using libm_alias_double.
20742 [!__ILP32__] (lrint): Likewise.
20743 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20744 (lrint): Define using libm_alias_double.
20745
20746 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20747
20748 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20749 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20750 objects.
20751 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20752 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20753 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20754 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20755 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20756 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20757
20758 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20759 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20760 objects.
20761 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20762 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20763 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20764 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20765 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20766 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20767
20768 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20769 (libm-sysdep_routines): Add s_nearbyint-generic and
20770 s_nearbyintf-generic objects.
20771 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20772 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20773 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20774 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20775 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20776 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20777
20778 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20779 Add s_finitef-generic and s_finite-generic objects.
20780 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20781 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20782 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20783 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20784 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20785 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20786
20787 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20788 Add s_isinff-generic and s_isinf-generic objects.
20789 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20790 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20791 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20792 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20793 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20794 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20795
20796 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20797 Add s_isnanf-generic and s_isnan-generic objects.
20798 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20799 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20800 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20801 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20802 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20803 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20804
20805 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20806 macro.
20807 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20808 rule.
20809 (sysdep_routines): Use sysdep_calls as base.
20810 (libm-sysdep_routines): Add generic rule for symbols shared with
20811 libc. Add s_signbit-generic and s_signbitf-generic objects.
20812 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20813 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20814 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20815 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20816 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20817 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20818
20819 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20820
20821 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20822 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20823 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20824 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20825 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20826 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20827 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20828 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20829 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20830 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20831 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20832 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20833 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20834 libm_alias_float_r.
20835 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20836 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20837 (logf): Likewise.
20838 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20839 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20840 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20841 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20842 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20843 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20844 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20845 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20846 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20847 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20848 libm_alias_float.
20849 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20850 (cosf): Likewise.
20851 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20852 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20853 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20854 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20855 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20856 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20857 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20858 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20859 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20860 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20861 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20862 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20863 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20864 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20865 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20866 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20867 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20868 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20869 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20870 libm_alias_float.
20871 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20872 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20873 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20874 * sysdeps/ia64/fpu/w_lgammaf_main.c
20875 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20876 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20877
20878 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20879 Alexandre Oliva <aoliva@redhat.com>
20880
20881 [BZ #17750]
20882 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20883 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20884 accents sorting.
20885 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20886 sorting.
20887 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20888 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20889 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20890 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20891 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20892 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20893 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20894 instead of “ifdef DIACRIT_BACKWARD”.
20895
20896 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20897
20898 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20899 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20900 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20901 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20902 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20903 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20904 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20905 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20906 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20907 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20908 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20909 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20910 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20911 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20912 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20913 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20914 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20915 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20917 ($(have-as-vis3) == yes): Remove conditional.
20918 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20919 Likewise.
20920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20921 file.
20922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20923 file.
20924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20925 file.
20926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20927 file.
20928 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20929 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20930 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20931 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20932 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20933 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20934 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20935 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20936
20937 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20938
20939 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20940 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20941 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20942 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20943 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20944 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20945 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20946 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20947 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20948 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20949 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20950 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20951 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20952 libm_alias_double_r.
20953 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20954 (log): Likewise.
20955 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20956 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20957 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20958 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20959 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20960 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20961 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20962 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20963 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20964 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20965 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20966 libm_alias_double.
20967 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20968 (cos): Likewise.
20969 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20970 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20971 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20972 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20973 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20974 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20975 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20976 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20977 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20978 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20979 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20980 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20981 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20982 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20983 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20984 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20985 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20986 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20987 libm_alias_double.
20988 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20989 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20990 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20991 * sysdeps/ia64/fpu/w_lgamma_main.c
20992 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20993 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20994
20995 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20996
20997 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20998 address of $global$ into %dp register earlier. Use pc-relative
20999 instruction sequence for PIC case.
21000
21001 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21002
21003 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21004 (asinhf): Define using libm_alias_float.
21005 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21006 (atanf): Define using libm_alias_float.
21007 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21008 (cbrtf): Define using libm_alias_float.
21009 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21010 (ceilf): Define using libm_alias_float.
21011 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21012 (copysignf): Define using libm_alias_float.
21013 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21014 (expm1f): Define using libm_alias_float.
21015 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21016 (fabsf): Define using libm_alias_float.
21017 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21018 (floorf): Define using libm_alias_float.
21019 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21020 (fmaxf): Define using libm_alias_float.
21021 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21022 (fminf): Define using libm_alias_float.
21023 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21024 (frexpf): Define using libm_alias_float.
21025 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21026 (llrintf): Define using libm_alias_float.
21027 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21028 (logbf): Define using libm_alias_float.
21029 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21030 (lrintf): Define using libm_alias_float.
21031 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21032 (nearbyintf): Define using libm_alias_float.
21033 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21034 (remquof): Define using libm_alias_float.
21035 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21036 (rintf): Define using libm_alias_float.
21037 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21038 (truncf): Define using libm_alias_float.
21039 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21040 <libm-alias-float.h>.
21041 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21042 if [SHARED].
21043 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21044 <libm-alias-float.h>.
21045 (expf): Define using libm_alias_float, or libm_alias_float_other
21046 if [SHARED].
21047 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21048 <libm-alias-float.h>.
21049 (log2f): Define using libm_alias_float, or libm_alias_float_other
21050 if [SHARED].
21051 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21052 <libm-alias-float.h>.
21053 (logf): Define using libm_alias_float, or libm_alias_float_other
21054 if [SHARED].
21055 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21056 <libm-alias-float.h>.
21057 (powf): Define using libm_alias_float, or libm_alias_float_other
21058 if [SHARED].
21059 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21060 <libm-alias-float.h>.
21061 (cosf): Define using libm_alias_float.
21062 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21063 <libm-alias-float.h>.
21064 (sincosf): Define using libm_alias_float.
21065 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21066 <libm-alias-float.h>.
21067 (sinf): Define using libm_alias_float.
21068 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21069 (fmaxf): Define using libm_alias_float.
21070 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21071 (fminf): Define using libm_alias_float.
21072 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21073 <libm-alias-float.h>.
21074 (fmaf): Define using libm_alias_float.
21075
21076 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21077 (asinh): Define using libm_alias_double.
21078 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21079 (atan): Define using libm_alias_double.
21080 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21081 (cbrt): Define using libm_alias_double.
21082 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21083 (ceil): Define using libm_alias_double.
21084 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21085 (copysign): Define using libm_alias_double.
21086 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21087 (expm1): Define using libm_alias_double.
21088 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21089 (fabs): Define using libm_alias_double.
21090 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21091 (fdim): Define using libm_alias_double.
21092 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21093 (floor): Define using libm_alias_double.
21094 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21095 (fmax): Define using libm_alias_double.
21096 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21097 (fmin): Define using libm_alias_double.
21098 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21099 (frexp): Define using libm_alias_double.
21100 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21101 (llrint): Define using libm_alias_double.
21102 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21103 (logb): Define using libm_alias_double.
21104 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21105 (lrint): Define using libm_alias_double.
21106 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21107 (nearbyint): Define using libm_alias_double.
21108 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21109 (remquo): Define using libm_alias_double.
21110 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21111 (rint): Define using libm_alias_double.
21112 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21113 (trunc): Define using libm_alias_double.
21114 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21115 (fmax): Define using libm_alias_double.
21116 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21117 (fmin): Define using libm_alias_double.
21118 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21119 (fma): Define using libm_alias_double.
21120
21121 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21122
21123 [BZ #22370]
21124 * elf/dl-hwcaps.c (ROUND): Removed.
21125 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21126 and ELF_NOTE_NEXT_OFFSET.
21127 * elf/dl-load.c (ROUND): Removed.
21128 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21129 * elf/readelflib.c (ROUND): Removed.
21130 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21131 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21132 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21133 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21134
21135 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21136
21137 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21138 [!__fmaf] (fmaf): Define using libm_alias_float.
21139
21140 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21141 [!__fma] (fma): Define using libm_alias_double.
21142 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21143
21144 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21145
21146 [BZ #22336]
21147 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21148 and implement the collation rules for cs from CLDR on top of that.
21149 * Makefile: Add cs_CZ.UTF-8 to test-input.
21150 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21151
21152 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21153
21154 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21155
21156 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21157 Icarus Sparry <icarus.w.sparry@intel.com>
21158
21159 * benchtests/Makefile:Add BENCHSET to allow subsets of
21160 benchmarks to be run.
21161 * benchtests/README: Add documentation for: Running subsets of
21162 benchmarks.
21163
21164 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21165
21166 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21167 range of tests names.
21168
21169 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21170 result from property and remove "max", min" and "mean" from
21171 required properties based on benchtests/bench-skeleton.c.
21172
21173 2017-11-28 Florian Weimer <fweimer@redhat.com>
21174
21175 [BZ #20826]
21176 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21177 due to Internet requirement.
21178 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21179 tst-getaddrinfo5.
21180 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21181
21182 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21183
21184 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21185 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21186 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21187 (sysdep_routines): Add memset-ultra1.
21188 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21189 file.
21190 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21191 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21192 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21193 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21194 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21195 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21196 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21197 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21198
21199 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21200 file.
21201 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21202 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21203 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21204 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21205 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21206 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21207 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21208 macro.
21209 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21210 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21211 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21212 (sysdep_routines): Add memcpy-ultra1.
21213 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21214 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21215
21216 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21217
21218 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21219 (cfloat_versions): Take function argument without trailing 'f'.
21220 Call libm_alias_float_other.
21221 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21222 * sysdeps/alpha/fpu/cargf.c: Likewise.
21223 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21224 * sysdeps/alpha/fpu/conjf.c: Likewise.
21225 * sysdeps/alpha/fpu/crealf.c: Likewise.
21226 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21227 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21228 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21229 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21230 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21231 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21232 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21233 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21234 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21235 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21236 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21237 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21238 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21239 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21240 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21241 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21242 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21243 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21244 (clog10f): Use libm_alias_float_other.
21245 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21246 (ceilf): Define using libm_alias_float.
21247 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21248 (copysignf): Define using libm_alias_float.
21249 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21250 (fabsf): Define using libm_alias_float.
21251 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21252 (floorf): Define using libm_alias_float.
21253 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21254 (fmaxf): Define using libm_alias_float.
21255 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21256 (fminf): Define using libm_alias_float.
21257 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21258 (lrintf): Define using libm_alias_float.
21259 (llrintf): Likewise.
21260 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21261 (lroundf): Define using libm_alias_float.
21262 (llroundf): Likewise.
21263 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21264 (rintf): Define using libm_alias_float.
21265 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21266 (truncf): Define using libm_alias_float.
21267
21268 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21269 (ceilf): Define using libm_alias_float.
21270 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21271 (floorf): Define using libm_alias_float.
21272 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21273 (fmaf): Define using libm_alias_float.
21274 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21275 (fmaxf): Define using libm_alias_float.
21276 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21277 (fminf): Define using libm_alias_float.
21278 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21279 (llrintf): Define using libm_alias_float.
21280 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21281 (llroundf): Define using libm_alias_float.
21282 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21283 (lrintf): Define using libm_alias_float.
21284 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21285 (lroundf): Define using libm_alias_float.
21286 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21287 <libm-alias-float.h>.
21288 (nearbyintf): Define using libm_alias_float.
21289 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21290 (rintf): Define using libm_alias_float.
21291 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21292 (roundf): Define using libm_alias_float.
21293 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21294 (truncf): Define using libm_alias_float.
21295
21296 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21297 (ceil): Define using libm_alias_double.
21298 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21299 (copysign): Define using libm_alias_double.
21300 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21301 (fabs): Define using libm_alias_double.
21302 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21303 (floor): Define using libm_alias_double.
21304 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21305 (fmax): Define using libm_alias_double.
21306 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21307 (fmin): Define using libm_alias_double.
21308 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21309 (lrint): Define using libm_alias_double.
21310 (llrint): Likewise.
21311 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21312 (lround): Define using libm_alias_double.
21313 (llround): Likewise.
21314 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21315 (rint): Define using libm_alias_double.
21316 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21317 (trunc): Define using libm_alias_double.
21318
21319 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21320 (libm_alias_double_r): Add semicolon after weak_alias call.
21321
21322 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21323
21324 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21325 (ceil): Define using libm_alias_double.
21326 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21327 (floor): Define using libm_alias_double.
21328 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21329 (fma): Define using libm_alias_double.
21330 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21331 (fmax): Define using libm_alias_double.
21332 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21333 (fmin): Define using libm_alias_double.
21334 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21335 (llrint): Define using libm_alias_double.
21336 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21337 (llround): Define using libm_alias_double.
21338 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21339 (lrint): Define using libm_alias_double.
21340 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21341 (lround): Define using libm_alias_double.
21342 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21343 (nearbyint): Define using libm_alias_double.
21344 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21345 (rint): Define using libm_alias_double.
21346 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21347 (round): Define using libm_alias_double.
21348 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21349 (trunc): Define using libm_alias_double.
21350
21351 2017-11-27 Florian Weimer <fweimer@redhat.com>
21352
21353 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21354 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21355 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21356 (tests): Add tst-mlock2.
21357 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21358 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21359 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21360 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21361 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21362 for mlock. Document mlock2.
21363
21364 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21365
21366 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21367 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21368 Likewise.
21369 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21370 Likewise.
21371 * sysdeps/x86/Makeconfig: New file.
21372 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21373 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21374 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21375 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21376 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21377 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21378 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21379 Likewise.
21380 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21381 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21382 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21383 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21384 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21385 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21386 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21387 * manual/math.texi (Mathematics): Document support for _Float64x.
21388 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21389 * stdlib/Versions (GLIBC_2.27): Likewise.
21390 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21391 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21392 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21393 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21394 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21395 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21396 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21397 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21398 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21399 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21400 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21401 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21403 Likewise.
21404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21405 Likewise.
21406 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21408 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21409 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21410 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21411 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21412 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21413 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21414 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21415 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21416 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21417 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21418 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21419 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21420
21421 2017-11-27 Andreas Schwab <schwab@suse.de>
21422
21423 * elf/Makefile (dl-routines): Add dl-sort-maps.
21424 * elf/dl-sort-maps.c: New file.
21425 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21426 (_dl_sort_maps): Declare.
21427 * elf/dl-fini.c (_dl_sort_fini): Remove.
21428 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21429 * elf/dl-close.c (_dl_close_worker): Likewise.
21430 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21431 open-coding it.
21432 * elf/dl-open.c (dl_open_worker): Likewise.
21433
21434 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21435
21436 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21437 using libm_alias_float128.
21438 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21439 Likewise.
21440 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21441 Likewise.
21442 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21443 (setpayloadsigf128): Likewise.
21444 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21445 Likewise.
21446 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21447 Likewise.
21448
21449 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21450 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21451 -mfloat128 to CFLAGS.
21452 ($(foreach
21453 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21454 Likewise.
21455 (CFLAGS-libm-test-support-float64x.c): New variable.
21456 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21457 $(f128-loader-link) to gnulib-tests.
21458
21459 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21460 (libm_alias_float128_other_r): If
21461 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21462 alias.
21463 (libm_alias_float128_r): Add semicolon after weak_alias call.
21464 * sysdeps/generic/libm-alias-ldouble.h
21465 (libm_alias_ldouble_other_r_f128): New macro.
21466 (libm_alias_ldouble_other_r_f64x): Likewise.
21467 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21468 and libm_alias_ldouble_other_r_f64x.
21469 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21470 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21471 (libm_alias_ldouble_other_r_f128): New macro.
21472 (libm_alias_ldouble_other_r_f64x): Likewise.
21473 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21474 and libm_alias_ldouble_other_r_f64x.
21475
21476 * stdlib/strfroml.c: Always include <stdlib.h>.
21477 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21478 undefine as macro and define as weak alias.
21479 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21480 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21481 <stdlib.h>.
21482 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21483 Define and later undefine as macro and define as weak alias.
21484
21485 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21486 Define and later undefine as macro. Define as weak alias if
21487 [!USE_WIDE_CHAR].
21488 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21489 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21490 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21491 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21492 Define and later undefine as macro. Define as weak alias if
21493 [!USE_WIDE_CHAR].
21494 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21495 Define and later undefine as macro. Define as weak alias if
21496 [USE_WIDE_CHAR].
21497 * sysdeps/ieee754/float128/strtof128_l.c
21498 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21499 Define and later undefine as macro. Define as weak alias if
21500 [!USE_WIDE_CHAR].
21501 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21502 Define and later undefine as macro. Define as weak alias if
21503 [USE_WIDE_CHAR].
21504 * sysdeps/ieee754/ldbl-128/strtold_l.c
21505 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21506 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21507 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21508 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21509 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21510 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21511 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21512 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21513 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21514 * sysdeps/ieee754/ldbl-96/strtold_l.c
21515 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21516 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21517 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21518 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21519
21520 * math/test-float64x.h: New file.
21521 * math/Makefile (type-float64x-yes): New variable.
21522 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21523
21524 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21525 function-like macro.
21526 (min_of_type_): Likewise.
21527 (min_of_type_l): Likewise.
21528 (min_of_type_f128): Likewise.
21529 (min_of_type): Pass () as last argument of __MATH_TG.
21530
21531 * stdlib/tst-strtod-round-skeleton.c
21532 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21533 headers.
21534
21535 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21536 for combinations of long double with _Float64 and _Float64x.
21537
21538 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21539 (__DECL_SIMD_cosf32): Likewise.
21540 (__DECL_SIMD_cosf64): Likewise.
21541 (__DECL_SIMD_cosf32x): Likewise.
21542 (__DECL_SIMD_cosf64x): Likewise.
21543 (__DECL_SIMD_cosf128x): Likewise.
21544 (__DECL_SIMD_sinf16): Likewise.
21545 (__DECL_SIMD_sinf32): Likewise.
21546 (__DECL_SIMD_sinf64): Likewise.
21547 (__DECL_SIMD_sinf32x): Likewise.
21548 (__DECL_SIMD_sinf64x): Likewise.
21549 (__DECL_SIMD_sinf128x): Likewise.
21550 (__DECL_SIMD_sincosf16): Likewise.
21551 (__DECL_SIMD_sincosf32): Likewise.
21552 (__DECL_SIMD_sincosf64): Likewise.
21553 (__DECL_SIMD_sincosf32x): Likewise.
21554 (__DECL_SIMD_sincosf64x): Likewise.
21555 (__DECL_SIMD_sincosf128x): Likewise.
21556 (__DECL_SIMD_logf16): Likewise.
21557 (__DECL_SIMD_logf32): Likewise.
21558 (__DECL_SIMD_logf64): Likewise.
21559 (__DECL_SIMD_logf32x): Likewise.
21560 (__DECL_SIMD_logf64x): Likewise.
21561 (__DECL_SIMD_logf128x): Likewise.
21562 (__DECL_SIMD_expf16): Likewise.
21563 (__DECL_SIMD_expf32): Likewise.
21564 (__DECL_SIMD_expf64): Likewise.
21565 (__DECL_SIMD_expf32x): Likewise.
21566 (__DECL_SIMD_expf64x): Likewise.
21567 (__DECL_SIMD_expf128x): Likewise.
21568 (__DECL_SIMD_powf16): Likewise.
21569 (__DECL_SIMD_powf32): Likewise.
21570 (__DECL_SIMD_powf64): Likewise.
21571 (__DECL_SIMD_powf32x): Likewise.
21572 (__DECL_SIMD_powf64x): Likewise.
21573 (__DECL_SIMD_powf128x): Likewise.
21574
21575 * stdlib/Versions (libc): Move entries for wcstof128 and
21576 wcstof128_l to ....
21577 * wcsmbs/Versions (libc): ... here.
21578 Include <float128-abi.h>.
21579
21580 2017-11-24 Florian Weimer <fweimer@redhat.com>
21581
21582 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21583 bits/mman-shared.h.
21584 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21585 <bits/mman-shared.h>.
21586 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21587 to ...
21588 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21589 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21590 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21591 <bits/mman-shared.h>.
21592
21593 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21594
21595 [BZ #22457]
21596 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21597 posix_memalign/free.
21598 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21599
21600 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21601
21602 [BZ #22469]
21603 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21604 and implement the collation rules for pl from CLDR on top of that.
21605 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21606 of locales to be built for testing.
21607 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21608
21609 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21610
21611 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21612 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21613 libm_alias_ldouble_other.
21614 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21615 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21616 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21617 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21618 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21619 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21620 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21621 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21622 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21623 libm_alias_ldouble_r.
21624 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21625 libm_alias_ldouble_other.
21626 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21627 (log10l): Likewise.
21628 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21629 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21630 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21631 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21632 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21633 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21634 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21635 (atan2l): Likewise.
21636 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21637 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21638 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21639 libm_alias_ldouble.
21640 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21641 (cosl): Likewise.
21642 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21643 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21644 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21645 (expl): Likewise.
21646 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21647 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21648 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21649 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21650 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21651 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21652 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21653 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21654 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21655 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21656 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21657 libm_alias_ldouble.
21658 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21659 libm_alias_ldouble_other.
21660 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21661 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21662 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21663 libm_alias_ldouble.
21664 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21665 libm_alias_ldouble_other.
21666 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21667 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21668 * sysdeps/ia64/fpu/w_lgammal_main.c
21669 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21670 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21671
21672 2017-11-23 Florian Weimer <fweimer@redhat.com>
21673
21674 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21675 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21676 alike. Remove freeres marker.
21677 * malloc/arena.c (arena_thread_freeres): Call
21678 tcache_thread_shutdown.
21679
21680 2017-11-23 Florian Weimer <fweimer@redhat.com>
21681
21682 [BZ #22459]
21683 Export nscd hash function as __nss_hash.
21684 * include/nss.h (__nss_hash): Declare.
21685 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21686 symbol.
21687 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21688 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21689 of __nscd_hash.
21690 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21691 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21692 * nss/Makefiles (routines): Add nss_hash.
21693 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21694 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21695 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21696 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21697
21698 2017-11-23 Florian Weimer <fweimer@redhat.com>
21699
21700 [BZ #22478]
21701 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21702 Return error code, not -1.
21703 * signal/tst-sigwait-eintr.c: New file.
21704 * signal/Makefile (tests): Add tst-sigwait-eintr.
21705
21706 2017-11-23 Florian Weimer <fweimer@redhat.com>
21707
21708 Linux: Add memfd_create system call wrapper
21709 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21710 tst-memfd_create.
21711 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21712 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21713 [__USE_GNU] (memfd_create): Declare.
21714 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21715 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21716 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21717 * sysdeps/unix/sysv/linux/**.abilist: Update.
21718 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21719
21720 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21721
21722 * localedata/gen-locale.sh: Fix typo in variable name.
21723
21724 * resolv/res_debug.c (p_secstodate): Condition definition on
21725 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21726 directly as __p_secstodate, and as a compat symbol. Do not use
21727 libresolv_hidden_def.
21728 * resolv/resolv.h (p_secstodate): Remove macro and function
21729 declaration.
21730 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21731 using p_secstodate.
21732 * include/resolv.h (__p_secstodate): Do not use
21733 libresolv_hidden_proto.
21734 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21735 (tests-internal): ... here.
21736 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21737 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21738 and declare and use __p_secstodate and use compat_symbol_reference
21739 in that case.
21740 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21741 implementation returning 77.
21742
21743 [BZ #22463]
21744 * resolv/res_debug.c: Include <libc-diag.h>.
21745 (p_secstodate): Assert time_t at least as wide as u_long. On
21746 overflow, use integer seconds since the epoch as output, or use
21747 "<overflow>" as output and set errno to EOVERFLOW if integer
21748 seconds since the epoch would be 14 or more characters.
21749 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21750 for sprintf call.
21751 * resolv/tst-p_secstodate.c: New file.
21752 * resolv/Makefile (tests): Add tst-p_secstodate.
21753 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21754
21755 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21756 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21757 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21758
21759 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21760
21761 * posix/regcomp.c (init_word_char): Add comments.
21762
21763 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21764
21765 [BZ #22447]
21766 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21767 strlen to compute length of ut_user and set trailing NUL byte of
21768 result explicitly.
21769
21770 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21771
21772 [BZ #15537]
21773 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21774 using “copy "iso14651_t1"” and then implementing the
21775 collation rules for lv from CLDR on top of that.
21776 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21777 of locales to be built for testing.
21778 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21779 sorting.
21780
21781 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21782
21783 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21784 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21785 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21786 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21787 [__USE_MISC] (MADV_HWPOISON): New macro.
21788 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21789
21790 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21791
21792 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21793 -Wmissing-braces on GCC 4.9.
21794
21795 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21796
21797 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21798 * sysdeps/s390/s390-32/start.S (_start): Likewise
21799 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21800 (thread_start): Likewise.
21801 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21802 (thread_start): Likewise.
21803 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21804 (__makecontext_ret): Likewise.
21805 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21806 (__makecontext_ret): Likewise.
21807
21808 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21809
21810 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21811 __wcschrnul): Remove attribute_hidden.
21812
21813 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21814
21815 regex: don't assume uint64_t or uint32_t
21816 This avoids -Werror=overflow errors for 32-bit systems in
21817 the 64-bit case. Problem reported by Joseph Myers in:
21818 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21819 Also, when this code is used in Gnulib it ports to platforms
21820 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21821 them, and on some 32-bit compilers there is no uint64_t.
21822 Problem reported by Gianluigi Tiesi in:
21823 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21824 * posix/regcomp.c (init_word_char): Don't assume that the types
21825 uint64_t and uint32_t exist. Adapted from Gnulib patch
21826 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21827 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21828
21829 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21830
21831 * sysdeps/aarch64/memset-reg.h: New file.
21832 * sysdeps/aarch64/memset.S: Use it.
21833 (__memset): Rename to MEMSET macro.
21834 [ZVA_MACRO]: Use zva_macro.
21835 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21836 Add memset_generic and memset_falkor.
21837 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21838 (__libc_ifunc_impl_list): Add memset ifuncs.
21839 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21840 local variable zva_size.
21841 * sysdeps/aarch64/multiarch/memset.c: New file.
21842 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21843 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21844 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21845 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21846 (DCZID_DZP_MASK): New macro.
21847 (DCZID_BS_MASK): Likewise.
21848 (init_cpu_features): Read and set zva_size.
21849 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21850 (struct cpu_features): New member zva_size.
21851
21852 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21853 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21854 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21855
21856 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21857 backwards. Fix timing computation.
21858 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21859 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21860 on memset by N at a time. Fix timing computation.
21861
21862 2017-11-20 Florian Weimer <fweimer@redhat.com>
21863
21864 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21865 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21866
21867 2017-11-19 Florian Weimer <fweimer@redhat.com>
21868
21869 manual: Document mprotect
21870 * manual/memory.texi (Memory Protection): New section.
21871 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21872 documentation of PROT_* flags and reference the Memory Protection
21873 section instead.
21874
21875 2017-11-19 Florian Weimer <fweimer@redhat.com>
21876
21877 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21878 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21879 (Scatter-Gather): ... to here. Remove misleading comment.
21880
21881 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21882
21883 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21884 style.
21885
21886 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21887 when /proc/<pid>/setgroups does not exist.
21888
21889 2017-11-18 Florian Weimer <fweimer@redhat.com>
21890
21891 * sysdeps/unix/sysv/linux/tst-ttyname.c
21892 (become_root_in_mount_ns): Remove.
21893 (do_in_chroot_1): Call support_enter_mount_namespace.
21894 (do_in_chroot_2): Likewise.
21895 (do_test): Call support_become_root early.
21896
21897 2017-11-18 Florian Weimer <fweimer@redhat.com>
21898
21899 * support/namespace.h (support_enter_mount_namespace): Declare.
21900 * support/support_enter_mount_namespace.c: New file.
21901 * support/Makefile (libsupport-routines): Add
21902 support_enter_mount_namespace.
21903
21904 2017-11-18 Florian Weimer <fweimer@redhat.com>
21905
21906 * support/temp_file.c (support_create_temp_directory): Use
21907 test_dir and do not rely on the presence of the XXXXXX suffix.
21908 * support/temp_file.h (support_create_temp_directory): Update
21909 comment.
21910 * support/tst-xreadlink.c (do_test): Adjust.
21911 * support/support_chroot.c (support_chroot_create): Likewise.
21912
21913 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21914
21915 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21916 macro.
21917 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21918 htm-no-suspend.
21919
21920 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21921
21922 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21923 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21924 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21925 (ceill): Define using libm_alias_ldouble.
21926 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21927 <libm-alias-ldouble.h>.
21928 (copysignl): Define using libm_alias_ldouble.
21929 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21930 (fabsl): Define using libm_alias_ldouble.
21931 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21932 (floorl): Define using libm_alias_ldouble.
21933 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21934 (fmaxl): Define using libm_alias_ldouble.
21935 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21936 (fminl): Define using libm_alias_ldouble.
21937 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21938 (llrintl): Define using libm_alias_ldouble.
21939 (lrintl): Likewise.
21940 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21941 <libm-alias-ldouble.h>.
21942 (nearbyintl): Define using libm_alias_ldouble.
21943 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21944 (truncl): Define using libm_alias_ldouble.
21945 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21946 <libm-alias-ldouble.h>.
21947 (lrintl): Define using libm_alias_ldouble.
21948
21949 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21950 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21951 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21952 (asinhl): Define using libm_alias_ldouble.
21953 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21954 (atanl): Define using libm_alias_ldouble.
21955 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21956 (cbrtl): Define using libm_alias_ldouble.
21957 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21958 (ceill): Define using libm_alias_ldouble.
21959 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21960 (copysignl): Define using libm_alias_ldouble.
21961 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21962 (fabsl): Define using libm_alias_ldouble.
21963 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21964 (floorl): Define using libm_alias_ldouble.
21965 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21966 (fmaxl): Define using libm_alias_ldouble.
21967 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21968 (fminl): Define using libm_alias_ldouble.
21969 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21970 (frexpl): Define using libm_alias_ldouble.
21971 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21972 (llrintl): Define using libm_alias_ldouble.
21973 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21974 (logbl): Define using libm_alias_ldouble.
21975 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21976 (lrintl): Define using libm_alias_ldouble.
21977 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21978 (nearbyintl): Define using libm_alias_ldouble.
21979 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21980 (nextafterl): Define using libm_alias_ldouble.
21981 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21982 (remquol): Define using libm_alias_ldouble.
21983 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21984 (rintl): Define using libm_alias_ldouble.
21985 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21986 (truncl): Define using libm_alias_ldouble.
21987 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21988 (fmaxl): Define using libm_alias_ldouble.
21989 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21990 (fminl): Define using libm_alias_ldouble.
21991
21992 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21993 to C syntax instead of availability and properties of types.
21994 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21995 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21996 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21997 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21998 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21999 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22000
22001 2017-11-17 Florian Weimer <fweimer@redhat.com>
22002
22003 support_become_root: Enable file creation in namespaces.
22004 * support/support_become_root.c (setup_mapping): New function.
22005 (support_become_root): Call it.
22006
22007 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22008
22009 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22010 macro.
22011
22012 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22013
22014 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22015 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22016
22017 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22018
22019 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22020
22021 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22022 version to 4.14.
22023
22024 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22025
22026 * INSTALL: Fix botched up regeneration.
22027
22028 * NEWS: Update sourceare link to https.
22029 * configure.ac: Likewise.
22030 * crypt/md5test-giant.c: Likewise.
22031 * dlfcn/bug-atexit1.c: Likewise.
22032 * dlfcn/bug-atexit2.c: Likewise.
22033 * localedata/README: Likewise.
22034 * malloc/tst-mallocfork.c: Likewise.
22035 * manual/install.texi: Likewise.
22036 * nptl/tst-pthread-getattr.c: Likewise.
22037 * stdio-common/tst-fgets.c: Likewise.
22038 * stdio-common/tst-fwrite.c: Likewise.
22039 * sunrpc/Makefile: Likewise.
22040 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22041 * wcsmbs/tst-mbrtowc2.c: Likewise.
22042 * configure: Regenerate.
22043 * INSTALL: Regenerate.
22044
22045 2017-11-15 Martin Sebor <msebor@redhat.com>
22046
22047 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22048 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22049 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22050
22051 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22052
22053 [BZ #22145]
22054 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22055 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22056
22057 [BZ #22145]
22058 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22059 Defer is_pty check until end of the function.
22060 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22061
22062 [BZ #22145]
22063 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22064 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22065 (ttyname): Likewise.
22066 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22067 (__ttyname_r): Likewise.
22068
22069 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22070 int to bool.
22071
22072 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22073
22074 * manual/terminal.texi (Is It a Terminal):
22075 Mention ENODEV for ttyname and ttyname_r.
22076
22077 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22078
22079 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22080 constant and macro.
22081
22082 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22083 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22084 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22085 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22086 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22087 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22088
22089 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22090
22091 * signal/sigrelse.c (sigrelse): Optimize implementation.
22092
22093 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22094 (__sigpause): Rely on __sigsuspend to implement single thread
22095 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22096
22097 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22098
22099 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22100 kernel version to 4.14.
22101
22102 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22103
22104 [BZ #22442]
22105 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22106 Check if ifname is too long.
22107
22108 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22109
22110 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22111
22112 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22113
22114 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22115 was accidentally lost.
22116
22117 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22118
22119 * localedata/locales/az_IR: Add standard copyright header.
22120
22121 2017-11-15 Florian Weimer <fweimer@redhat.com>
22122
22123 [BZ #22439]
22124 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22125 not just the top one. Output a new "subheaps" statistic.
22126
22127 2017-11-15 Florian Weimer <fweimer@redhat.com>
22128
22129 [BZ #22408]
22130 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22131 under the per-arena lock.
22132 * malloc/Makefile (tests): Add tst-malloc_info.
22133 (tst-malloc_info): Link with libpthread.
22134 * malloc/tst-malloc_info.c: New file.
22135
22136 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22137
22138 [BZ #21660]
22139 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22140 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22141 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22142 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22143 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22144 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22145 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22146 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22147 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22148 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22149 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22150 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22151 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22152 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22153 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22154 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22155 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22156 (__floating_type): Likewise.
22157 (__real_integer_type): Likewise.
22158 (__complex_integer_type): Likewise.
22159 (__expr_is_real): Likewise.
22160 (__tgmath_real_type_sub): Likewise.
22161 (__tgmath_real_type): Likewise.
22162 (__tgmath_complex_type_sub): Likewise.
22163 (__tgmath_complex_type): Likewise.
22164 (__TGMATH_F128): Likewise.
22165 (__TGMATH_CF128): Likewise.
22166 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22167 new macros.
22168 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22169 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22170 Likewise.
22171 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22172 Likewise.
22173 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22174 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22175 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22176 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22177 Likewise.
22178 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22179 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22180 Likewise.
22181 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22182 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22183 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22184 Likewise.
22185 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22186 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22187 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22188 (cimag): Likewise.
22189 (creal): Likewise.
22190
22191 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22192
22193 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22194 for stpncpy calls for GCC 8.
22195 (test_strncat): Disable -Wstringop-truncation warning for strncat
22196 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22197 strncat call for GCC 7.
22198 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22199 calls for GCC 8.
22200 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22201 trailing NUL.
22202
22203 * string/bug-strncat1.c: Include <libc-diag.h>.
22204 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22205
22206 2017-11-13 Claude Paroz <claude@2xlibre.net>
22207
22208 [BZ #22387]
22209 * localedata/locales/aa_DJ: Improved readibility by replacing
22210 <Uxxxx> sequences in the ASCII printable range by their ASCII
22211 character equivalents.
22212 * localedata/locales/aa_ER: Likewise.
22213 * localedata/locales/aa_ER@saaho: Likewise.
22214 * localedata/locales/aa_ET: Likewise.
22215 * localedata/locales/af_ZA: Likewise.
22216 * localedata/locales/agr_PE: Likewise.
22217 * localedata/locales/ak_GH: Likewise.
22218 * localedata/locales/am_ET: Likewise.
22219 * localedata/locales/anp_IN: Likewise.
22220 * localedata/locales/ar_AE: Likewise.
22221 * localedata/locales/ar_BH: Likewise.
22222 * localedata/locales/ar_DZ: Likewise.
22223 * localedata/locales/ar_EG: Likewise.
22224 * localedata/locales/ar_IN: Likewise.
22225 * localedata/locales/ar_IQ: Likewise.
22226 * localedata/locales/ar_JO: Likewise.
22227 * localedata/locales/ar_KW: Likewise.
22228 * localedata/locales/ar_LB: Likewise.
22229 * localedata/locales/ar_LY: Likewise.
22230 * localedata/locales/ar_MA: Likewise.
22231 * localedata/locales/ar_OM: Likewise.
22232 * localedata/locales/ar_QA: Likewise.
22233 * localedata/locales/ar_SA: Likewise.
22234 * localedata/locales/ar_SD: Likewise.
22235 * localedata/locales/ar_SS: Likewise.
22236 * localedata/locales/ar_SY: Likewise.
22237 * localedata/locales/ar_TN: Likewise.
22238 * localedata/locales/ar_YE: Likewise.
22239 * localedata/locales/as_IN: Likewise.
22240 * localedata/locales/ast_ES: Likewise.
22241 * localedata/locales/ayc_PE: Likewise.
22242 * localedata/locales/az_AZ: Likewise.
22243 * localedata/locales/az_IR: Likewise.
22244 * localedata/locales/be_BY: Likewise.
22245 * localedata/locales/be_BY@latin: Likewise.
22246 * localedata/locales/bem_ZM: Likewise.
22247 * localedata/locales/ber_DZ: Likewise.
22248 * localedata/locales/ber_MA: Likewise.
22249 * localedata/locales/bg_BG: Likewise.
22250 * localedata/locales/bhb_IN: Likewise.
22251 * localedata/locales/bho_IN: Likewise.
22252 * localedata/locales/bi_VU: Likewise.
22253 * localedata/locales/bn_BD: Likewise.
22254 * localedata/locales/bn_IN: Likewise.
22255 * localedata/locales/bo_CN: Likewise.
22256 * localedata/locales/bo_IN: Likewise.
22257 * localedata/locales/br_FR: Likewise.
22258 * localedata/locales/brx_IN: Likewise.
22259 * localedata/locales/bs_BA: Likewise.
22260 * localedata/locales/byn_ER: Likewise.
22261 * localedata/locales/ca_AD: Likewise.
22262 * localedata/locales/ca_ES: Likewise.
22263 * localedata/locales/ca_FR: Likewise.
22264 * localedata/locales/ca_IT: Likewise.
22265 * localedata/locales/ce_RU: Likewise.
22266 * localedata/locales/chr_US: Likewise.
22267 * localedata/locales/cmn_TW: Likewise.
22268 * localedata/locales/crh_UA: Likewise.
22269 * localedata/locales/cs_CZ: Likewise.
22270 * localedata/locales/csb_PL: Likewise.
22271 * localedata/locales/cv_RU: Likewise.
22272 * localedata/locales/cy_GB: Likewise.
22273 * localedata/locales/da_DK: Likewise.
22274 * localedata/locales/de_AT: Likewise.
22275 * localedata/locales/de_BE: Likewise.
22276 * localedata/locales/de_CH: Likewise.
22277 * localedata/locales/de_DE: Likewise.
22278 * localedata/locales/de_IT: Likewise.
22279 * localedata/locales/de_LI: Likewise.
22280 * localedata/locales/de_LU: Likewise.
22281 * localedata/locales/doi_IN: Likewise.
22282 * localedata/locales/dv_MV: Likewise.
22283 * localedata/locales/dz_BT: Likewise.
22284 * localedata/locales/el_CY: Likewise.
22285 * localedata/locales/el_GR: Likewise.
22286 * localedata/locales/en_AG: Likewise.
22287 * localedata/locales/en_AU: Likewise.
22288 * localedata/locales/en_BW: Likewise.
22289 * localedata/locales/en_CA: Likewise.
22290 * localedata/locales/en_DK: Likewise.
22291 * localedata/locales/en_GB: Likewise.
22292 * localedata/locales/en_HK: Likewise.
22293 * localedata/locales/en_IE: Likewise.
22294 * localedata/locales/en_IL: Likewise.
22295 * localedata/locales/en_IN: Likewise.
22296 * localedata/locales/en_NG: Likewise.
22297 * localedata/locales/en_NZ: Likewise.
22298 * localedata/locales/en_PH: Likewise.
22299 * localedata/locales/en_SG: Likewise.
22300 * localedata/locales/en_US: Likewise.
22301 * localedata/locales/en_ZA: Likewise.
22302 * localedata/locales/en_ZM: Likewise.
22303 * localedata/locales/en_ZW: Likewise.
22304 * localedata/locales/eo: Likewise.
22305 * localedata/locales/es_AR: Likewise.
22306 * localedata/locales/es_BO: Likewise.
22307 * localedata/locales/es_CL: Likewise.
22308 * localedata/locales/es_CO: Likewise.
22309 * localedata/locales/es_CR: Likewise.
22310 * localedata/locales/es_CU: Likewise.
22311 * localedata/locales/es_DO: Likewise.
22312 * localedata/locales/es_EC: Likewise.
22313 * localedata/locales/es_ES: Likewise.
22314 * localedata/locales/es_GT: Likewise.
22315 * localedata/locales/es_HN: Likewise.
22316 * localedata/locales/es_MX: Likewise.
22317 * localedata/locales/es_NI: Likewise.
22318 * localedata/locales/es_PA: Likewise.
22319 * localedata/locales/es_PE: Likewise.
22320 * localedata/locales/es_PR: Likewise.
22321 * localedata/locales/es_PY: Likewise.
22322 * localedata/locales/es_SV: Likewise.
22323 * localedata/locales/es_US: Likewise.
22324 * localedata/locales/es_UY: Likewise.
22325 * localedata/locales/es_VE: Likewise.
22326 * localedata/locales/et_EE: Likewise.
22327 * localedata/locales/eu_ES: Likewise.
22328 * localedata/locales/eu_ES@euro: Likewise.
22329 * localedata/locales/fa_IR: Likewise.
22330 * localedata/locales/ff_SN: Likewise.
22331 * localedata/locales/fi_FI: Likewise.
22332 * localedata/locales/fil_PH: Likewise.
22333 * localedata/locales/fo_FO: Likewise.
22334 * localedata/locales/fr_BE: Likewise.
22335 * localedata/locales/fr_CA: Likewise.
22336 * localedata/locales/fr_CH: Likewise.
22337 * localedata/locales/fr_FR: Likewise.
22338 * localedata/locales/fr_LU: Likewise.
22339 * localedata/locales/fur_IT: Likewise.
22340 * localedata/locales/fy_DE: Likewise.
22341 * localedata/locales/fy_NL: Likewise.
22342 * localedata/locales/ga_IE: Likewise.
22343 * localedata/locales/gd_GB: Likewise.
22344 * localedata/locales/gez_ER: Likewise.
22345 * localedata/locales/gez_ET: Likewise.
22346 * localedata/locales/gl_ES: Likewise.
22347 * localedata/locales/gu_IN: Likewise.
22348 * localedata/locales/gv_GB: Likewise.
22349 * localedata/locales/ha_NG: Likewise.
22350 * localedata/locales/hak_TW: Likewise.
22351 * localedata/locales/he_IL: Likewise.
22352 * localedata/locales/hi_IN: Likewise.
22353 * localedata/locales/hif_FJ: Likewise.
22354 * localedata/locales/hne_IN: Likewise.
22355 * localedata/locales/hr_HR: Likewise.
22356 * localedata/locales/hsb_DE: Likewise.
22357 * localedata/locales/ht_HT: Likewise.
22358 * localedata/locales/hu_HU: Likewise.
22359 * localedata/locales/hy_AM: Likewise.
22360 * localedata/locales/i18n: Likewise.
22361 * localedata/locales/ia_FR: Likewise.
22362 * localedata/locales/id_ID: Likewise.
22363 * localedata/locales/ig_NG: Likewise.
22364 * localedata/locales/ik_CA: Likewise.
22365 * localedata/locales/is_IS: Likewise.
22366 * localedata/locales/it_CH: Likewise.
22367 * localedata/locales/it_IT: Likewise.
22368 * localedata/locales/iu_CA: Likewise.
22369 * localedata/locales/ja_JP: Likewise.
22370 * localedata/locales/ka_GE: Likewise.
22371 * localedata/locales/kk_KZ: Likewise.
22372 * localedata/locales/kl_GL: Likewise.
22373 * localedata/locales/kn_IN: Likewise.
22374 * localedata/locales/ko_KR: Likewise.
22375 * localedata/locales/kok_IN: Likewise.
22376 * localedata/locales/ks_IN: Likewise.
22377 * localedata/locales/ks_IN@devanagari: Likewise.
22378 * localedata/locales/ku_TR: Likewise.
22379 * localedata/locales/kw_GB: Likewise.
22380 * localedata/locales/ky_KG: Likewise.
22381 * localedata/locales/lb_LU: Likewise.
22382 * localedata/locales/lg_UG: Likewise.
22383 * localedata/locales/li_BE: Likewise.
22384 * localedata/locales/li_NL: Likewise.
22385 * localedata/locales/lij_IT: Likewise.
22386 * localedata/locales/ln_CD: Likewise.
22387 * localedata/locales/lo_LA: Likewise.
22388 * localedata/locales/lt_LT: Likewise.
22389 * localedata/locales/lv_LV: Likewise.
22390 * localedata/locales/lzh_TW: Likewise.
22391 * localedata/locales/mag_IN: Likewise.
22392 * localedata/locales/mai_IN: Likewise.
22393 * localedata/locales/mg_MG: Likewise.
22394 * localedata/locales/mhr_RU: Likewise.
22395 * localedata/locales/mi_NZ: Likewise.
22396 * localedata/locales/mk_MK: Likewise.
22397 * localedata/locales/ml_IN: Likewise.
22398 * localedata/locales/mn_MN: Likewise.
22399 * localedata/locales/mni_IN: Likewise.
22400 * localedata/locales/mr_IN: Likewise.
22401 * localedata/locales/ms_MY: Likewise.
22402 * localedata/locales/mt_MT: Likewise.
22403 * localedata/locales/my_MM: Likewise.
22404 * localedata/locales/nan_TW: Likewise.
22405 * localedata/locales/nan_TW@latin: Likewise.
22406 * localedata/locales/nb_NO: Likewise.
22407 * localedata/locales/nds_DE: Likewise.
22408 * localedata/locales/nds_NL: Likewise.
22409 * localedata/locales/ne_NP: Likewise.
22410 * localedata/locales/nhn_MX: Likewise.
22411 * localedata/locales/niu_NU: Likewise.
22412 * localedata/locales/niu_NZ: Likewise.
22413 * localedata/locales/nl_AW: Likewise.
22414 * localedata/locales/nl_BE: Likewise.
22415 * localedata/locales/nl_NL: Likewise.
22416 * localedata/locales/nn_NO: Likewise.
22417 * localedata/locales/nr_ZA: Likewise.
22418 * localedata/locales/nso_ZA: Likewise.
22419 * localedata/locales/oc_FR: Likewise.
22420 * localedata/locales/om_ET: Likewise.
22421 * localedata/locales/om_KE: Likewise.
22422 * localedata/locales/or_IN: Likewise.
22423 * localedata/locales/os_RU: Likewise.
22424 * localedata/locales/pa_IN: Likewise.
22425 * localedata/locales/pa_PK: Likewise.
22426 * localedata/locales/pap_AW: Likewise.
22427 * localedata/locales/pap_CW: Likewise.
22428 * localedata/locales/pl_PL: Likewise.
22429 * localedata/locales/ps_AF: Likewise.
22430 * localedata/locales/pt_BR: Likewise.
22431 * localedata/locales/pt_PT: Likewise.
22432 * localedata/locales/quz_PE: Likewise.
22433 * localedata/locales/raj_IN: Likewise.
22434 * localedata/locales/ro_RO: Likewise.
22435 * localedata/locales/ru_RU: Likewise.
22436 * localedata/locales/ru_UA: Likewise.
22437 * localedata/locales/rw_RW: Likewise.
22438 * localedata/locales/sa_IN: Likewise.
22439 * localedata/locales/sat_IN: Likewise.
22440 * localedata/locales/sc_IT: Likewise.
22441 * localedata/locales/sd_IN: Likewise.
22442 * localedata/locales/sd_IN@devanagari: Likewise.
22443 * localedata/locales/se_NO: Likewise.
22444 * localedata/locales/sgs_LT: Likewise.
22445 * localedata/locales/shs_CA: Likewise.
22446 * localedata/locales/si_LK: Likewise.
22447 * localedata/locales/sid_ET: Likewise.
22448 * localedata/locales/sk_SK: Likewise.
22449 * localedata/locales/sl_SI: Likewise.
22450 * localedata/locales/sm_WS: Likewise.
22451 * localedata/locales/so_DJ: Likewise.
22452 * localedata/locales/so_ET: Likewise.
22453 * localedata/locales/so_KE: Likewise.
22454 * localedata/locales/so_SO: Likewise.
22455 * localedata/locales/sq_AL: Likewise.
22456 * localedata/locales/sq_MK: Likewise.
22457 * localedata/locales/sr_ME: Likewise.
22458 * localedata/locales/sr_RS: Likewise.
22459 * localedata/locales/sr_RS@latin: Likewise.
22460 * localedata/locales/ss_ZA: Likewise.
22461 * localedata/locales/st_ZA: Likewise.
22462 * localedata/locales/sv_FI: Likewise.
22463 * localedata/locales/sv_SE: Likewise.
22464 * localedata/locales/sw_KE: Likewise.
22465 * localedata/locales/sw_TZ: Likewise.
22466 * localedata/locales/szl_PL: Likewise.
22467 * localedata/locales/ta_IN: Likewise.
22468 * localedata/locales/ta_LK: Likewise.
22469 * localedata/locales/tcy_IN: Likewise.
22470 * localedata/locales/te_IN: Likewise.
22471 * localedata/locales/tg_TJ: Likewise.
22472 * localedata/locales/th_TH: Likewise.
22473 * localedata/locales/the_NP: Likewise.
22474 * localedata/locales/ti_ER: Likewise.
22475 * localedata/locales/ti_ET: Likewise.
22476 * localedata/locales/tig_ER: Likewise.
22477 * localedata/locales/tk_TM: Likewise.
22478 * localedata/locales/tl_PH: Likewise.
22479 * localedata/locales/tn_ZA: Likewise.
22480 * localedata/locales/to_TO: Likewise.
22481 * localedata/locales/tpi_PG: Likewise.
22482 * localedata/locales/tr_CY: Likewise.
22483 * localedata/locales/tr_TR: Likewise.
22484 * localedata/locales/ts_ZA: Likewise.
22485 * localedata/locales/tt_RU: Likewise.
22486 * localedata/locales/tt_RU@iqtelif: Likewise.
22487 * localedata/locales/ug_CN: Likewise.
22488 * localedata/locales/uk_UA: Likewise.
22489 * localedata/locales/unm_US: Likewise.
22490 * localedata/locales/ur_IN: Likewise.
22491 * localedata/locales/ur_PK: Likewise.
22492 * localedata/locales/uz_UZ: Likewise.
22493 * localedata/locales/uz_UZ@cyrillic: Likewise.
22494 * localedata/locales/ve_ZA: Likewise.
22495 * localedata/locales/vi_VN: Likewise.
22496 * localedata/locales/wa_BE: Likewise.
22497 * localedata/locales/wae_CH: Likewise.
22498 * localedata/locales/wal_ET: Likewise.
22499 * localedata/locales/wo_SN: Likewise.
22500 * localedata/locales/xh_ZA: Likewise.
22501 * localedata/locales/yi_US: Likewise.
22502 * localedata/locales/yo_NG: Likewise.
22503 * localedata/locales/yue_HK: Likewise.
22504 * localedata/locales/yuw_PG: Likewise.
22505 * localedata/locales/zh_CN: Likewise.
22506 * localedata/locales/zh_HK: Likewise.
22507 * localedata/locales/zh_SG: Likewise.
22508 * localedata/locales/zh_TW: Likewise.
22509 * localedata/locales/zu_ZA: Likewise.
22510
22511 2017-11-13 Florian Weimer <fweimer@redhat.com>
22512
22513 * support/next_to_fault.h, support/next_to_fault.c: New files.
22514 * support/Makefile (libsupport-routines): Add next_to_fault.
22515 * resolv/tst-inet_pton.c (struct next_to_fault)
22516 (next_to_fault_allocate, next_to_fault_free): Remove.
22517 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22518
22519 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22520
22521 * elf/dl-support.c: Include <dl-procruntime.c>.
22522 * include/link.h: Include <link_map.h>.
22523 * sysdeps/generic/dl-procruntime.c: New file.
22524 * sysdeps/generic/link_map.h: Likewise.
22525 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22526 the writable ld.so namespace.
22527
22528 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22529
22530 timezone: pacify GCC -Wstringop-truncation
22531 Problem reported by Martin Sebor in:
22532 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22533 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22534
22535 2017-11-12 Florian Weimer <fweimer@redhat.com>
22536
22537 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22538 tst-xreadlink.
22539 (tests): Add tst-xreadlink.
22540 * support/support.h (xstrndup): Declare.
22541 * support/xunistd.h (xunlink, xreadlink): Declare.
22542 * support/temp_file.h (support_create_temp_directory): Declare.
22543 * support/temp_file.c (support_create_temp_directory): New function.
22544 * support/support_chroot.c (support_chroot_create): Use it.
22545 * support/xreadlink.c: New file.
22546 * support/xstrndup.c: Likewise.
22547 * support/xunlink.c: Likewise.
22548 * support/tst-xreadlink.c: Likewise.
22549
22550 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22551
22552 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22553
22554 2017-11-11 Florian Weimer <fweimer@redhat.com>
22555
22556 [BZ #22409]
22557 [BZ #22412]
22558 * resolv/res_comp.c (printable_string, binary_hnok)
22559 (binary_leading_dash): New functions.
22560 (res_hnok): Reimplement using these functions and ns_name_pton.
22561 (res_ownok): Likewise.
22562 (res_mailok): Reimplement using printable_string, ns_name_pton and
22563 binary_hnok.
22564 (res_dnok): Reimplement using printable_string and ns_name_pton.
22565 * resolv/tst-res_hnok.c (tests): Add additional tests.
22566 (LETTERDIGITS, PRINTABLE): Define.
22567 (do_test): Adjust one_char results.
22568
22569 2017-11-11 Florian Weimer <fweimer@redhat.com>
22570
22571 [BZ #22413]
22572 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22573 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22574
22575 2017-11-11 Florian Weimer <fweimer@redhat.com>
22576
22577 * resolv/tst-ns_name_pton.c: New file.
22578 * resolv/Makefile (tests): Add tst-ns_name_pton.
22579 (tst-ns_name_pton): Link against libresolv.
22580
22581 2017-11-11 Florian Weimer <fweimer@redhat.com>
22582
22583 * resolv/tst-res_hnok.c: New file.
22584 * resolv/Makefile (tests): Add tst-res_hnok.
22585 (tst-res_hnok): Link against libresolv.
22586
22587 2017-11-11 Florian Weimer <fweimer@redhat.com>
22588
22589 * resolv/tst-resolv-network.c: Use test framework instead explicit
22590 main function.
22591
22592 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22593
22594 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22595 <jmp_buf-macros.h>.
22596 [!_ISOMAC] (STR_HELPER): New.
22597 [!_ISOMAC] (STR): Likewise.
22598 [!_ISOMAC] (TEST_SIZE): Likewise.
22599 [!_ISOMAC] (TEST_ALIGN): Likewise.
22600 [!_ISOMAC] (TEST_OFFSET): Likewise.
22601 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22602 field offsets of jmp_buf as well as sigjmp_buf.
22603 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22604 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22605 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22606 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22607 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22608 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22609 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22610 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22611 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22612 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22613 Likewise.
22614 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22615 Likewise.
22616 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22618 Likewise.
22619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22620 Likewise.
22621 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22622 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22623 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22624 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22625 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22626 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22627 Likewise.
22628 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22629 Likewise.
22630 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22631 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22632 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22633
22634 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22635
22636 * include/float.h
22637 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22638 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22639 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22640 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22641 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22642 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22643 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22644 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22645 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22646 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22647 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22648 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22649 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22650 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22651 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22652 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22653 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22654 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22655 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22656 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22657 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22658 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22659 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22660 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22661 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22662 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22663 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22664 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22665 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22666 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22667 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22668 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22669 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22670 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22671 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22672 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22673 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22674 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22675 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22676 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22677 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22678 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22679 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22680 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22681 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22682 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22683 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22684 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22685 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22686 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22687 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22688 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22689 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22690 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22691 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22692 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22693 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22694 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22695 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22696 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22697 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22698 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22699 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22700 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22701 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22702 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22703 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22704 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22705 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22706 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22707 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22708 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22709 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22710 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22711 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22712 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22713 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22714 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22715 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22716 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22717 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22718 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22719 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22720 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22721 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22722 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22723 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22724 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22725
22726 * stdlib/tst-strtod.h (F16): New macro.
22727 (F32): Likewise.
22728 (F64): Likewise.
22729 (F32X): Likewise.
22730 (F64X): Likewise.
22731 (F128X): Likewise.
22732 (IF_FLOAT16): Likewise.
22733 (IF_FLOAT32): Likewise.
22734 (IF_FLOAT64): Likewise.
22735 (IF_FLOAT32X): Likewise.
22736 (IF_FLOAT64X): Likewise.
22737 (IF_FLOAT128X): Likewise.
22738 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22739 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22740 (STRTOD_TEST_FOREACH): Likewise.
22741 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22742 (CHOOSE_f64): Likewise.
22743 (CHOOSE_f32x): Likewise.
22744 (CHOOSE_f64x): Likewise.
22745
22746 2017-11-07 Andreas Schwab <schwab@suse.de>
22747
22748 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22749
22750 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22751
22752 [BZ #22403]
22753 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22754 to be escaped.
22755 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22756 to be escaped.
22757
22758 2017-11-07 Claude Paroz <claude@2xlibre.net>
22759
22760 [BZ #22403]
22761 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22762 to be escaped.
22763 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22764 to be escaped.
22765 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22766 to be escaped.
22767
22768 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22769
22770 [BZ #22298]
22771 * nptl/allocatestack.c (allocate_stack): Check if
22772 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22773 __PTHREAD_MUTEX_HAVE_PREV is defined.
22774 * nptl/descr.h (pthread): Likewise.
22775 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22776 Likewise.
22777 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22778 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22779 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22780 * sysdeps/nptl/bits/thread-shared-types.h
22781 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22782 defines.
22783 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22784 of __WORDSIZE for internal layout.
22785 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22786 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22787 instead of __WORDSIZE whether to use an union for __spins and __list
22788 fields.
22789 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22790 case.
22791 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22792 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22793 defines.
22794 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22795 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22796 Likewise.
22797 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22798 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22799 Likewise.
22800 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22801 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22802 Likewise.
22803 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22804 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22805 Likewise.
22806 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22807 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22808 Likewise.
22809 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22810 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22811 Likewise.
22812 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22813 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22814 Likewise.
22815 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22816 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22817 Likewise.
22818 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22819 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22820 Likewise.
22821 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22822 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22823 Likewise.
22824 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22825 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22826 Likewise.
22827 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22828 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22829 Likewise.
22830 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22831 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22832 Likewise.
22833 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22834 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22835 Likewise.
22836
22837 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22838 New macros.
22839 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22840 checks for expected input type size.
22841 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22842 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22843 Likewise.
22844 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22845 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22846 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22847 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22848 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22849 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22850 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22851 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22852 superflous runtime assert check.
22853 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22854 Likewise.
22855 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22856 Likewise.
22857 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22858 Likewise.
22859 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22860 Likewise.
22861 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22862 Likewise.
22863 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22864 Likewise.
22865 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22866 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22867 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22868 Likewise.
22869 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22870 Likewise.
22871 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22872 Likewise.
22873 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22874 Likewise.
22875 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22876 Likewise.
22877 * nptl/pthread_attr_setinheritsched.c
22878 (__pthread_attr_setinheritsched): Likewise.
22879 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22880 Likewise.
22881 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22882 Likewise.
22883 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22884 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22885 __old_pthread_attr_setstack): Likewise.
22886 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22887 Likewise.
22888 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22889 Likewise.
22890 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22891 Likewise.
22892 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22893 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22894 Likewise.
22895 * nptl/tst-typesizes.c: Remove file.
22896
22897 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22898 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22899 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22900 checks for internal pthread_mutex_t offsets.
22901 * sysdeps/aarch64/nptl/pthread-offsets.h
22902 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22903 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22904 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22905 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22906 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22907 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22908 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22909 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22910 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22911 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22912 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22913 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22914 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22915 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22916 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22917 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22918 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22919 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22920
22921 2017-11-07 Florian Weimer <fweimer@redhat.com>
22922
22923 * bits/mman-linux.h: Move ...
22924 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22925 comment.
22926 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22927 outdated comment.
22928
22929 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22930
22931 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22932 Redefine STRNLEN as __strnlen_power8.
22933
22934 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22935
22936 * signal/sighold.c (sighold): Optimize implementation.
22937
22938 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22939 __NR_rt_sigqueueinfo.
22940
22941 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22942 __sigtimedwait.
22943 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22944 assume __NR_rt_sigtimedwait.
22945 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22946 and add LIBC_CANCEL_HANDLED for cancellation marking.
22947 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22948
22949 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22950 (sysdeps_routines): Add memchr_noneon.
22951 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22952 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22953 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22954 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22955 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22956 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22957 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22958
22959 * sysdeps/arm/arm-ifunc.h: New file.
22960 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22961 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22962 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22963 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22964 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22965 (__memcpy_neon): Avoid create hidden alias.
22966 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22967 (__memcpy_vfp): Likewise.
22968 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22969 (sysdep_routines): Add memcpy_arm.
22970 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22971
22972 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22973
22974 [BZ #22362]
22975 * Makerules (make-link-multidir): New.
22976 * config.make.in (multidir): New.
22977 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22978 * configure: Regenerated.
22979 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22980 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22981 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22982 New target.
22983
22984 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22985
22986 [BZ #22402]
22987 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22988 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22989
22990 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22991
22992 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22993 to be escaped.
22994
22995 2017-11-04 Florian Weimer <fweimer@redhat.com>
22996
22997 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22998
22999 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23000
23001 * math/math.h [__HAVE_DISTINCT_FLOAT16
23002 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23003 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23004 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23005 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23006 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23007 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23008 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23009 (__MATH_TG_F32): New macro.
23010 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23011 (__MATH_TG_F64X): Likewise.
23012 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23013 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23014
23015 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23016
23017 * po/de.po: Update translations.
23018 * po/ru.po: Likewise.
23019
23020 2017-11-03 Florian Weimer <fweimer@redhat.com>
23021
23022 * manual/filesys.texi (Hard Links): Document linkat.
23023
23024 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23025
23026 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23027 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23028 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23029 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23030 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23031 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23032 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23033 the same as _Float128.
23034 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23035 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23036 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23037
23038 * stdlib/stdlib.h
23039 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23040 Declare.
23041 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23042 Likewise.
23043 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23044 Likewise.
23045 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23046 (strtof32x): Likewise.
23047 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23048 (strtof64x): Likewise.
23049 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23050 (strtof128x): Likewise.
23051 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23052 (strfromf16): Likewise.
23053 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23054 (strfromf32): Likewise.
23055 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23056 (strfromf64): Likewise.
23057 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23058 (strfromf32x): Likewise.
23059 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23060 (strfromf64x): Likewise.
23061 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23062 (strfromf128x): Likewise.
23063 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23064 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23065 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23066 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23067 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23068 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23069
23070 2017-11-03 Richard Henderson <rth@twiddle.net>
23071
23072 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23073
23074 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23075
23076 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23077
23078 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23079
23080 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23081 DT_TLSDESC_GOT initialization.
23082 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23083 (_dl_tlsdesc_resolve_hold): Likewise.
23084 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23085 (_dl_tlsdesc_resolve_hold): Likewise.
23086 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23087 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23088
23089 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23090
23091 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23092
23093 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23094
23095 [BZ #18572]
23096 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23097 non-lazily for R_ARM_TLS_DESC.
23098
23099 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23100
23101 [BZ #17078]
23102 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23103 R_ARM_TLS_DESC case.
23104 (elf_machine_lazy_rel): Remove the prelink check.
23105
23106 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23107
23108 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23109 DT_TLSDESC_GOT initialization.
23110 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23111 (_dl_tlsdesc_resolve_rela): Likewise.
23112 (_dl_tlsdesc_resolve_hold): Likewise.
23113 (_dl_tlsdesc_undefweak): Remove ldar.
23114 (_dl_tlsdesc_dynamic): Likewise.
23115 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23116 (_dl_tlsdesc_resolve_rela): Likewise.
23117 (_dl_tlsdesc_resolve_hold): Likewise.
23118 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23119 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23120 (_dl_tlsdesc_resolve_rela): Likewise.
23121 (_dl_tlsdesc_resolve_hold): Likewise.
23122
23123 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23124
23125 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23126 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23127
23128 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23129
23130 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23131 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23132
23133 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23134
23135 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23136 Declare.
23137 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23138 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23139 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23140 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23141 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23142 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23143 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23144 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23145 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23146 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23147 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23148
23149 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23150
23151 [BZ #22382]
23152 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23153 * localedata/locales/tpi_PG: Add standard header.
23154
23155 2017-11-02 Florian Weimer <fweimer@redhat.com>
23156
23157 test-errno-linux: quotactl can fail with EPERM in containers.
23158 * sysdeps/unix/sysv/linux/test-errno-linux.c
23159 (LIST, LIST_FORWARD): New macros.
23160 (check_error_in_list): New function.
23161 (test_wrp_rv): Accept list of permitted error codes.
23162 (test_wrp_rv2): Remove.
23163 (test_wrp): Call test_wrp_rv with list of error codes.
23164 (test_wrp2): Accept list of error codes.
23165 (do_test): Adjust. Allow EPERM for quotactl.
23166
23167 2017-11-02 Florian Weimer <fweimer@redhat.com>
23168
23169 * stdio-common/bug16.c (do_test): Use array_length.
23170 * stdio-common/errlist.c (_sys_nerr): Likewise.
23171 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23172 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23173 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23174 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23175 (do_test): Use array_length.
23176 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23177 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23178 * stdio-common/tst-printf-round.c (do_test): Likewise.
23179 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23180 (CHECK): Use array_length.
23181 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23182 * stdio-common/tstscanf.c (main): Likewise.
23183 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23184
23185 2017-11-02 Florian Weimer <fweimer@redhat.com>
23186
23187 Add array_length and array_end macros.
23188 * include/array_length.h: New file.
23189
23190 2017-11-02 Florian Weimer <fweimer@redhat.com>
23191
23192 [BZ #22332]
23193 * posix/tst-glob-tilde.c (do_noescape): New variable.
23194 (one_test): Process it.
23195 (do_test): Set do_noescape. Add unescaping test case.
23196
23197 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23198
23199 * math/complex.h
23200 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23201 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23202 with appropriate macros defined and undefined.
23203 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23204 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23205 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23206 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23207 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23208 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23209 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23210 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23211 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23212 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23213
23214 * math/complex.h
23215 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23216 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23217 that for long double. Do not condition define and undefine of
23218 _Mdouble_complex_ on [__CFLOAT128].
23219
23220 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23221
23222 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23223 of <sysdeps/generic/sysdep.h>.
23224 (ALIGNARG): Removed.
23225 (ASM_SIZE_DIRECTIVE): Likewise.
23226 (ENTRY): Likewise.
23227 (END): Likewise.
23228 (ENTRY_CHK): Likewise.
23229 (END_CHK): Likewise.
23230 (syscall_error): Likewise.
23231 (mcount): Likewise.
23232 (PSEUDO_END): Likewise.
23233 (L): Likewise.
23234 (atom_text_section): Likewise.
23235 * sysdeps/x86/sysdep.h: New file.
23236 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23237 of <sysdeps/generic/sysdep.h>.
23238 (ALIGNARG): Removed.
23239 (ASM_SIZE_DIRECTIVE): Likewise.
23240 (ENTRY): Likewise.
23241 (END): Likewise.
23242 (ENTRY_CHK): Likewise.
23243 (END_CHK): Likewise.
23244 (syscall_error): Likewise.
23245 (mcount): Likewise.
23246 (PSEUDO_END): Likewise.
23247 (L): Likewise.
23248 (atom_text_section): Likewise.
23249
23250 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23251
23252 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23253 category of LC_CTYPE set to "i18n:2012".
23254 * localedata/locales/i18n_ctype: Regenerate.
23255
23256 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23257
23258 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23259 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23260 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23261 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23262
23263 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23264 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23265 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23266 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23267
23268 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23269
23270 * math/complex.h
23271 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23272 New macro.
23273 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23274 Likewise.
23275 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23276 Likewise.
23277 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23278 (CMPLXF32X): Likewise.
23279 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23280 (CMPLXF64X): Likewise.
23281 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23282 (CMPLXF128X): Likewise.
23283
23284 * math/math.h
23285 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23286 (__MATH_EVAL_FMT2): Define to add 0.0f.
23287
23288 2017-10-31 Alan Modra <amodra@gmail.com>
23289
23290 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23291 include sysdep.h.
23292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23304 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23306 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23307 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23308 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23309 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23310 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23311 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23312 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23313 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23314 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23315 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23316 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23317 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23318 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23319 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23320 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23321 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23322 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23323 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23324 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23325 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23326 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23327 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23328 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23329 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23330 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23331 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23332 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23333 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23334 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23335 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23336 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23337 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23338 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23339 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23340 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23341 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23342 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23343 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23344 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23345 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23346 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23347 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23348 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23349 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23350 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23351 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23352 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23353 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23354 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23355 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23356 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23357 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23358 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23359 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23360 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23361
23362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23363 include sysdep.h and math_ldbl_opt.h.
23364
23365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23366 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23391
23392 2017-10-31 Alan Modra <amodra@gmail.com>
23393
23394 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23395 string/strncase_l.c, not string/strncase.c.
23396 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23397 (libc_hidden_def): Redefine.
23398
23399 2017-10-31 Alan Modra <amodra@gmail.com>
23400
23401 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23402 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23403 (__strcasecmp): Don't define.
23404
23405 2017-10-31 Alan Modra <amodra@gmail.com>
23406
23407 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23408 IS_IN (libc).
23409 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23410 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23411 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23412
23413 2017-10-31 Alan Modra <amodra@gmail.com>
23414
23415 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23416 USE_AS_STPNCPY.
23417
23418 2017-10-31 Alan Modra <amodra@gmail.com>
23419
23420 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23421 Redefine only when SHARED.
23422
23423 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23424
23425 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23426 Include <bits/math-finite.h> with appropriate macros defined and
23427 undefined.
23428 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23429 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23430 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23431 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23432 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23433
23434 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23435 [!_Mlong_double_] (_Mlong_double_): Likewise.
23436 [!_Mfloat16_] (_Mfloat16_): Likewise.
23437 [!_Mfloat32_] (_Mfloat32_): Likewise.
23438 [!_Mfloat64_] (_Mfloat64_): Likewise.
23439 [!_Mfloat128_] (_Mfloat128_): Likewise.
23440 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23441 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23442 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23443 (_Mdouble_): Define without indirection through those macros.
23444 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23445 [!_Mfloat128_] (_Mfloat128_): Likewise.
23446 [_Mlong_double_] (_Mlong_double_): Likewise.
23447 (_Mdouble_): Define without indirection through those macros.
23448 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23449 not add -D_Mlong_double_=double.
23450 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23451 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23452
23453 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23454
23455 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23456
23457 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23458
23459 * sysdeps/x86/libc-start.c: Reformat.
23460
23461 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23462
23463 [BZ #22353]
23464 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23465 (1): Renamed to ...
23466 (L(Src0)): This.
23467 (L(Src1)): New.
23468 (L(Src2)): Likewise.
23469 (L(1)): Renamed to ...
23470 (L(Src3)): This.
23471
23472 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23473
23474 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23475 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23476 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23477 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23478 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23479 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23480 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23481 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23482 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23483 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23484 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23485 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23486 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23487 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23488 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23489 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23490 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23491 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23492 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23493 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23494 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23495 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23496 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23497 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23498 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23499 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23500 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23501 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23502 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23503 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23504 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23505 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23506 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23507 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23508 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23509 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23510 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23511 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23512 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23513 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23514 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23515 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23516 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23517 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23518 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23519 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23520 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23521 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23522 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23523 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23524 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23525 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23526 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23527 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23528 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23529 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23530 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23531 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23532 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23533 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23534 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23535 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23536 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23537 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23538 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23539 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23540
23541 2017-10-30 Florian Weimer <fweimer@redhat.com>
23542
23543 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23544 always defined.
23545 * io/tst-mkdirat.c (do_test): Likewise.
23546 * io/tst-mkfifoat.c (do_test): Likewise.
23547 * io/tst-mknodat.c (do_test): Likewise.
23548 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23549 * locale/programs/locale.c (select_dirs): Likewise.
23550 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23551 * posix/bug-glob2.c (my_readdir): Likewise.
23552 * posix/tst-dir.c (main): Likewise.
23553 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23554 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23555
23556 2017-10-30 Florian Weimer <fweimer@redhat.com>
23557
23558 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23559 just __USE_GNU.
23560
23561 2017-10-30 Florian Weimer <fweimer@redhat.com>
23562
23563 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23564 Convert to support/test-driver.c.
23565 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23566 New macro parameters.
23567 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23568 * posix/tst-gnuglob.c: New file.
23569 * posix/tst-gnuglob64.c: Likewise.
23570 * posix/Makefile (tests): Add tst-gnuglob64.
23571
23572 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23573
23574 [BZ #19485]
23575 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23576 and use a better translation for March in “mon”.
23577 * localedata/locales/csb_PL: Use more ASCII to improve the
23578 readability of the source.
23579
23580 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23581
23582 [BZ #13953]
23583 * localedata/locales/km_KH: Use ASCII as much
23584 as possible for better readability of the source and
23585 remove useless comments.
23586 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23587 was commented out and apparently wrong anyway because it was
23588 using Lao characters. If Buddhist era should be used
23589 for km_KH, a native speaker should write the correct formaat
23590 for Khmer.
23591 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23592 (According to CLDR, the first weekday for Cambodia is Sunday).
23593 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23594 (These were using Lao characters which must be wrong. If we get
23595 the correct data from a native speaker, we could add it back, until
23596 then it is better not to have name_mr and name_mrs at all than
23597 having it wrong).
23598
23599 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23600
23601 * locale/loadlocale.c: Correct size of
23602 _nl_value_type_LC_<category> arrays.
23603
23604 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23605
23606 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23607 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23608 with appropriate macros defined and undefined.
23609 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23610 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23611 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23612 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23613 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23614
23615 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23616
23617 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23618 "-O2 -march=i586".
23619
23620 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23621
23622 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23623 with lowercase letters to make it agree with CLDR.
23624
23625 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23626
23627 [BZ #15260]
23628 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23629 first letters of yesstr and nostr in yesexpr and noexpr,
23630 not for the full words.
23631 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23632 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23633 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23634 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23635 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23636 first letters of yesstr and nostr in yesexpr and noexpr,
23637 until now only English was matched in yesexpr and noexpr.
23638 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23639 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23640 fil but not for tl. As tl and fil are very similar, using fil
23641 is probably better than using English.
23642
23643 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23644
23645 [BZ #21706]
23646 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23647 in yesstr and nostr.
23648
23649 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23650
23651 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23652 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23653 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23654 Likewise.
23655 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23656 Likewise.
23657 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23658 Likewise.
23659 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23660 Likewise.
23661 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23662 (SNANF128X): Likewise.
23663
23664 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23665 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23666 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23667 (HUGE_VAL_F32): Likewise.
23668 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23669 (HUGE_VAL_F64): Likewise.
23670 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23671 (HUGE_VAL_F32X): Likewise.
23672 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23673 (HUGE_VAL_F64X): Likewise.
23674 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23675 (HUGE_VAL_F128X): Likewise.
23676
23677 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23678
23679 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23680 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23681 for the br_FR locale.
23682
23683 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23684
23685 [BZ #21706]
23686 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23687
23688 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23689
23690 * locale/programs/record-status.h: Define globals, and function
23691 prototypes. Move function bodies...
23692 * locale/programs/record-status.c: ... to here. New file.
23693 * iconv/Makefile (iconv_prog-modules): Add record-status.
23694 * locale/Makefile (lib-modules): Likewise.
23695 * iconv/iconv_prog.c: Remove verbose.
23696 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23697 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23698 record a warning about ASCII compatibility.
23699 * locale/programs/ld-monetary.c (monetary_finish): If
23700 warn_int_curr_symbol is true then record a warning about the symbol
23701 not being in our ISO 4217 list.
23702 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23703 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23704 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23705 (OPT_NO_WARN): Define.
23706 (OPT_WARN): Define.
23707 (options): Add entry for --no-warnings, and --warnings.
23708 (set_warnings): New function to enable/disable warnings.
23709 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23710 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23711 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23712 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23713 Pass flags to generate_locale.
23714 (generate_locale): Accept new flag argument and pass it to localedef
23715 invocation.
23716 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23717 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23718
23719 * localedata/Makefile (test-input-data): Use full file name.
23720 * localedata/da_DK.in: Rename to...
23721 * localedata/da_DK.ISO-8859-1.in: ...this.
23722 * localedata/de_DE.in: Rename to...
23723 * localedata/de_DE.ISO-8859-1.in: ...this.
23724 * localedata/en_US.in: Rename to...
23725 * localedata/en_US.ISO-8859-1.in: ...this.
23726 * localedata/fr_FR.in: Rename to...
23727 * localedata/fr_FR.UTF-8.in: ... this.
23728 * localedata/hr_HR.in: Rename to...
23729 * localedata/hr_HR.ISO-8859-2.in: ...this.
23730 * localedata/hu_HU.in: Rename to...
23731 * localedata/hu_HU.UTF-8.in: ...this.
23732 * localedata/si_LK.in: Rename to...
23733 * localedata/si_LK.UTF-8.in: ...this.
23734 * localedata/sv_SE.in: Rename to...
23735 * localedata/sv_SE.ISO-8859-1.in: ...this.
23736 * localedata/tr_TR.in: Rename to...
23737 * localedata/tr_TR.UTF-8.in: ...this.
23738 * localedata/uk_UA.in: Rename to...
23739 * localedata/uk_UA.UTF-8.in: ...this.
23740 * localedata/sort-test.sh: Test file is locale name with the
23741 suffix.
23742
23743 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23744 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23745 file.
23746 * localedata/locales/i18n_ctype: Regenerate.
23747 * localedata/locales/tr_TR: Likewise.
23748 * localedata/locales/translit_circle: Likewise.
23749 * localedata/locales/translit_cjk_compat: Likewise.
23750 * localedata/locales/translit_combining: Likewise.
23751 * localedata/locales/translit_compat: Likewise.
23752 * localedata/locales/translit_font: Likewise.
23753 * localedata/locales/translit_fraction: Likewise.
23754
23755 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23756
23757 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23758 lxvd2x/stxvd2x with lvx/stvx.
23759 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23760
23761 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23762
23763 * include/alloc_buffer.h: Replace "if if " with "if " in
23764 comments.
23765 * sysdeps/mips/memcpy.S: Likkewise.
23766 * sysdeps/mips/memset.S: Likewise.
23767 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23768 Likewise.
23769 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23770 Likewise.
23771 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23772 Likewise.
23773
23774 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23775
23776 [BZ #15261]
23777 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23778 yesexpr and noexpr.
23779 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23780 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23781 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23782 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23783 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23784 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23785 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23786
23787 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23788
23789 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23790 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23791 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23792 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23793 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23794 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23795 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23796 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23797 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23798 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23799 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23800 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23801
23802 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23803
23804 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23805 as possible for better readability of the source.
23806 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23807 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23808 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23809 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23810 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23811 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23812 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23813 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23814 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23815 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23816 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23817 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23818 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23819 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23820 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23821 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23822 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23823 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23824 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23825 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23826 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23827 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23828 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23829 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23830 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23831 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23832 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23833 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23834 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23835 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23836 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23837 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23838 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23839 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23840 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23841 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23842 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23843 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23844 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23845 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23846 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23847 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23848 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23849 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23850 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23851 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23852 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23853 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23854 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23855 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23856 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23857 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23858 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23859 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23860 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23861 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23862 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23863 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23864 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23865 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23866 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23867 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23868 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23869 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23870 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23871 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23872 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23873 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23874 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23875 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23876 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23877 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23878 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23879 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23880 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23881 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23882 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23883 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23884 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23885 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23886 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23887 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23888 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23889 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23890 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23891 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23892 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23893 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23894 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23895 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23896 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23897 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23898 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23899 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23900 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23901 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23902 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23903 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23904 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23905 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23906 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23907 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23908 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23909 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23910 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23911 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23912 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23913 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23914 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23915 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23916 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23917 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23918 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23919 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23920 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23921 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23922 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23923 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23924 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23925 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23926 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23927 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23928 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23929 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23930 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23931 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23932 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23933 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23934 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23935 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23936 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23937 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23938 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23939 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23940 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23941 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23942 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23943 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23944 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23945 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23946 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23947 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23948 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23949 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23950 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23951 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23952 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23953 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23954 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23955 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23956 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23957 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23958 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23959 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23960 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23961 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23962 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23963 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23964 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23965 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23966 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23967 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23968 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23969 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23970 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23971 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23972 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23973 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23974 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23975 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23976 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23977 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23978 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23979 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23980
23981 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23982
23983 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23984 (Use first letters of yesstr and nostr correctly instead of using
23985 full words).
23986
23987 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23988
23989 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23990 (Use first letters of yesstr and nostr correctly).
23991
23992 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23993
23994 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23995 also check for the first characters of yesstr and nostr.
23996 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23997 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23998
23999 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24000
24001 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24002 also check for Chinese characters.
24003
24004 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24005
24006 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24007 match also for the contents of yesstr and nostr. As the first letter
24008 of yesstr and nostr is equal, checking only for the first letter
24009 is not enough.
24010
24011 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24012
24013 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24014 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24015
24016 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24017
24018 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24019 of main contributor.
24020
24021 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24022
24023 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24024 instead of using English.
24025
24026 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24027
24028 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24029 by including the first letters of nostr and yesexpr in the regexp.
24030 Also make it more readable by using ASCII where possible.
24031
24032 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24033
24034 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24035 the first letter of nostr in the regexp. It agrees with CLDR now.
24036 Also make it more readable by using ASCII where possible.
24037
24038 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24039
24040 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24041 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24042 these strings contain a U+17D6 (which somewhat looks like a colon)
24043 instead of a real colon to separate the full words for “yes”
24044 and “no” from the single letter responses.
24045
24046 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24047
24048 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24049 it agree with CLDR (include the first letter of yesstr).
24050 Also make it more readable by using ASCII where possible.
24051
24052 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24053
24054 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24055 and improve yesexpr and noexpr. The yesstr and nostr apparently
24056 came from CLDR. And CLDR has a bug there: these strings contain
24057 a U+0903 (which looks like a colon) instead of a real colon
24058 to separate the full words for “yes” and “no” from the single
24059 letter responses.
24060
24061 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24062
24063 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24064 letters of the full yesstr and nostr in yesexpr and noexpr.
24065
24066 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24067
24068 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24069 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24070 * localedata/locales/an_ES: Make source more readable by using ASCII
24071 where possible.
24072
24073 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24074
24075 [BZ #20952]
24076 * localedata/locales/yuw_PG: New file.
24077 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24078 * locale/iso-639.def: Add Yau (Uruwa).
24079
24080 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24081
24082 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24083
24084 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24085
24086 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24087 (__libc_realloc): Likewise.
24088 (_mid_memalign): Likewise.
24089 (__libc_calloc): Likewise.
24090
24091 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24092
24093 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24094 by adding the generic +1 and -0 as in all other locales.
24095 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24096 day names and make it more readable by using ASCII where possible.
24097
24098 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24099
24100 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24101 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24102
24103 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24104
24105 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24106 WNOHANG in waitpid call.
24107
24108 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24109
24110 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24111 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24112
24113 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24114 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24115 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24116 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24117 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24118 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24119 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24120 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24121 variables.
24122
24123 2017-10-23 Michael Collison <michael.collison@arm.com>
24124
24125 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24126 with __builtin_sqrt.
24127 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24128 with __builtin_sqrtf.
24129 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24130 with __builtin_ceil.
24131 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24132 with __builtin_ceilf.
24133 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24134 with __builtin_floor.
24135 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24136 with __builtin_floorf.
24137 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24138 with __builtin_fma.
24139 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24140 with __builtin_fmaf.
24141 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24142 with __builtin_fmax.
24143 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24144 with __builtin_fmaxf.
24145 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24146 with __builtin_fmin.
24147 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24148 with __builtin_fminf.
24149 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24150 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24151 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24152 with builtin_rint and conversion to int.
24153 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24154 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24155 with builtin_llround.
24156 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24157 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24158 with builtin_rint and conversion to long int.
24159 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24160 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24161 with builtin_lround.
24162 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24163 with builtin_lroundf.
24164 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24165 statements with __builtin_nearbyint.
24166 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24167 statements with __builtin_nearbyintf.
24168 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24169 with __builtin_rint.
24170 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24171 with __builtin_rintf.
24172 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24173 with __builtin_round.
24174 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24175 with __builtin_roundf.
24176 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24177 with __builtin_trunc.
24178 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24179 with __builtin_truncf.
24180 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24181 and s_l[l]round[f].c too.
24182
24183 2017-10-23 Alan Modra <amodra@gmail.com>
24184
24185 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24186 Adjust stack after restoring regs. Add missing LR cfi_restore.
24187
24188 2017-10-23 Alan Modra <amodra@gmail.com>
24189
24190 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24191 Move LR save and frame setup/teardown and LR restore to
24192 immediately around memset call. Provide cfi.
24193
24194 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24195
24196 * sysdeps/i386/fpu/e_powf.S: Removed.
24197 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24198 * sysdeps/i386/fpu/w_powf.c: Likewise.
24199 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24200 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24201 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24202 Add e_powf-sse2.
24203 (CFLAGS-e_powf-sse2.c): New.
24204 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24205 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24206
24207 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24208
24209 * sysdeps/i386/fpu/e_log2f.S: Removed.
24210 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24211 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24212 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24213 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24214 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24215 Add e_log2f-sse2.
24216 (CFLAGS-e_log2f-sse2.c): New.
24217 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24218 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24219
24220 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24221
24222 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24223 Add e_powf-fma.
24224 (CFLAGS-e_powf-fma.c): New.
24225 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24226 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24227
24228 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24229
24230 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24231 Add e_log2f-fma.
24232 (CFLAGS-e_log2f-fma.c): New.
24233 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24234 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24235
24236 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24237
24238 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24239 Add e_logf-fma.
24240 (CFLAGS-e_logf-fma.c): New.
24241 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24242 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24243
24244 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24245
24246 * sysdeps/i386/fpu/e_logf.S: Removed.
24247 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24248 * sysdeps/i386/fpu/w_logf.c: Likewise.
24249 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24250 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24251 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24252 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24253 Add e_logf-sse2.
24254 (CFLAGS-e_logf-sse2.c): New.
24255 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24256 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24257
24258 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24259
24260 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24261 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24262 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24263 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24264 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24265 Add e_exp2f-sse2.
24266 (CFLAGS-e_exp2f-sse2.c): New.
24267 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24268 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24269
24270 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24271
24272 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24273 Add e_exp2f-fma.
24274 (CFLAGS-e_exp2f-fma.c): New.
24275 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24276 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24277
24278 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24279
24280 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24281 * sysdeps/i386/fpu/e_expf.S: Likewise.
24282 * sysdeps/i386/fpu/math_errf.c: Likewise.
24283 * sysdeps/i386/fpu/w_expf.c: Likewise.
24284 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24285 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24286 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24287 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24288 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24289 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24290 Remove e_expf-ia32.
24291 (CFLAGS-e_expf-sse2.c): New.
24292 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24293 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24294
24295 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24296
24297 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24298 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24299 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24300 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24301 e_expf.c.
24302 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24303 New.
24304 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24305 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24306 Renamed to ...
24307 (__redirect_expf): This.
24308 (SYMBOL_NAME): Changed to expf.
24309 (__ieee754_expf): Renamed to ...
24310 (__expf): This.
24311 (__GI___expf): This.
24312 (__ieee754_expf): Add strong_alias.
24313 (__expf_finite): Likewise.
24314 (__expf): New.
24315 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24316
24317 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24318
24319 [BZ #22332]
24320 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24321 unescaping.
24322
24323 2017-10-21 Florian Weimer <fweimer@redhat.com>
24324
24325 * posix/Makefile (tests): Add tst-glob-tilde.
24326 (tests-special): Add tst-glob-tilde-mem.out
24327 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24328 (tst-glob-tilde-mem.out): Add mtrace check.
24329 * posix/tst-glob-tilde.c: New file.
24330
24331 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24332
24333 * bits/floatn-common.h: New file.
24334 * math/Makefile (headers): Add bits/floatn-common.h.
24335 * bits/floatn.h: Include <bits/floatn-common.h>.
24336 * sysdeps/ia64/bits/floatn.h: Likewise.
24337 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24338 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24339 * sysdeps/powerpc/bits/floatn.h: Likewise.
24340 * sysdeps/x86/bits/floatn.h: Likewise.
24341
24342 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24343
24344 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24345 indicates whether compiler emits an warning for alias for
24346 functions with incompatible types.
24347
24348 [BZ #22273]
24349 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24350 the auxiliary process is terminated by a signal before calling _exit
24351 or execve.
24352
24353 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24354
24355 [BZ #21265]
24356 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24357 New.
24358 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24359 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24360 and bit_arch_XSAVEC_Usable if needed.
24361 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24362 and bit_arch_Use_dl_runtime_resolve_opt.
24363 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24364 Removed.
24365 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24366 (bit_arch_Prefer_No_AVX512): Updated.
24367 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24368 (bit_arch_XSAVEC_Usable): New.
24369 (STATE_SAVE_OFFSET): Likewise.
24370 (STATE_SAVE_MASK): Likewise.
24371 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24372 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24373 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24374 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24375 (index_arch_XSAVEC_Usable): New.
24376 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24377 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24378 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24379 is enabled.
24380 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24381 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24382 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24383 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24384 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24385 _dl_runtime_resolve_xsavec.
24386 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24387 Removed.
24388 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24389 instead of VEC_SIZE.
24390 (REGISTER_SAVE_BND0): Removed.
24391 (REGISTER_SAVE_BND1): Likewise.
24392 (REGISTER_SAVE_BND3): Likewise.
24393 (REGISTER_SAVE_RAX): Always defined to 0.
24394 (VMOV): Removed.
24395 (_dl_runtime_resolve_avx): Likewise.
24396 (_dl_runtime_resolve_avx_slow): Likewise.
24397 (_dl_runtime_resolve_avx_opt): Likewise.
24398 (_dl_runtime_resolve_avx512): Likewise.
24399 (_dl_runtime_resolve_avx512_opt): Likewise.
24400 (_dl_runtime_resolve_sse): Likewise.
24401 (_dl_runtime_resolve_sse_vex): Likewise.
24402 (USE_FXSAVE): New.
24403 (_dl_runtime_resolve_fxsave): Likewise.
24404 (USE_XSAVE): Likewise.
24405 (_dl_runtime_resolve_xsave): Likewise.
24406 (USE_XSAVEC): Likewise.
24407 (_dl_runtime_resolve_xsavec): Likewise.
24408 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24409 Removed.
24410 (_dl_runtime_resolve_avx512_opt): Likewise.
24411 (_dl_runtime_resolve_avx): Likewise.
24412 (_dl_runtime_resolve_avx_opt): Likewise.
24413 (_dl_runtime_resolve_sse): Likewise.
24414 (_dl_runtime_resolve_sse_vex): Likewise.
24415 (_dl_runtime_resolve_fxsave): New.
24416 (_dl_runtime_resolve_xsave): Likewise.
24417 (_dl_runtime_resolve_xsavec): Likewise.
24418
24419 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24420
24421 [BZ #22320]
24422 CVE-2017-15670
24423 * posix/glob.c (__glob): Fix one-byte overflow.
24424
24425 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24426
24427 * malloc/malloc.c (sysdep-cancel.h): Add include.
24428
24429 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24430
24431 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24432
24433 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24434
24435 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24436 (tests): Remove $(objpfx)ga_test depdendency.
24437 * resolv/ga_test.c: Remove file.
24438
24439 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24440
24441 [BZ #18812]
24442 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24443 * localedata/locales/kab_DZ: New file.
24444
24445 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24446
24447 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24448 _dl_relocate_static_pie instead of _dl_start to compute load
24449 address in static PIE.
24450
24451 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24452
24453 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24454
24455 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24456
24457 [BZ #13605]
24458 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24459 * localedata/locales/shn_MM: New file.
24460
24461 2017-10-20 Florian Weimer <fweimer@redhat.com>
24462
24463 [BZ #22321]
24464 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24465 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24466 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24467 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24468 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24469 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24470
24471 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24472
24473 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24474
24475 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24476
24477 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24478
24479 [BZ #22322]
24480 * sysdeps/mips/bits/long-double.h: Move to ....
24481 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24482
24483 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24484
24485 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24486
24487 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24488 H.J. Lu <hongjiu.lu@intel.com>
24489
24490 [BZ #22299]
24491 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24492 GLRO(dl_platform) to NULL.
24493 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24494 (modules-names): Add tst-platformmod-1 and
24495 x86_64/tst-platformmod-2.
24496 (CFLAGS-tst-platform-1.c): New.
24497 (CFLAGS-tst-platformmod-1.c): Likewise.
24498 (CFLAGS-tst-platformmod-2.c): Likewise.
24499 (LDFLAGS-tst-platformmod-2.so): Likewise.
24500 ($(objpfx)tst-platform-1): Likewise.
24501 ($(objpfx)tst-platform-1.out): Likewise.
24502 (tst-platform-1-ENV): Likewise.
24503 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24504 * sysdeps/x86_64/tst-platform-1.c: New file.
24505 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24506 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24507
24508 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24509
24510 [BZ #13994]
24511 * locale/iso-639.def: Add Karbi.
24512 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24513 * localedata/locales/mjw_IN: New file.
24514
24515 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24516
24517 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24518 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24519 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24520 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24521 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24522 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24523 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24524 <bits/floatn.h>.
24525 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24526 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24527 * manual/math.texi (Mathematics): Document additional architecture
24528 support for _Float128.
24529 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24530 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24531 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24532 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24533 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24534 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24535 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24536 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24537 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24538 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24539 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24540 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24541 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24542 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24543 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24544
24545 2017-10-18 Renlin Li <renlin.li@arm.com>
24546
24547 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24548 _DYNAMIC symbol to calculate load address.
24549
24550 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24551
24552 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24553 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24554 summary bits.
24555 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24556 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24557
24558 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24559
24560 [BZ #16777]
24561 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24562 and improve readability by using more ASCII.
24563 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24564 and improve readability by using more ASCII.
24565
24566 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24567
24568 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24569 not all targets support atomics on bool.
24570
24571 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24572
24573 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24574 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24575 __f128.
24576 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24577 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24578 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24579 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24580 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24581 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24582
24583 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24584
24585 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24586 defines.
24587
24588 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24589
24590 [BZ #22159]
24591 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24592 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24593 (do_check_remalloced_chunk): Fix build bug.
24594 (do_check_malloc_state): Add assert that checks arena->top.
24595 (malloc_consolidate): Remove initialization.
24596 (int_mallinfo): Remove call to malloc_consolidate.
24597 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24598
24599 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24600
24601 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24602 (have_fastchunks): Remove.
24603 (clear_fastchunks): Remove.
24604 (set_fastchunks): Remove.
24605 (malloc_state): Add have_fastchunks.
24606 (malloc_init_state): Use have_fastchunks.
24607 (do_check_malloc_state): Remove incorrect invariant checks.
24608 (_int_malloc): Use have_fastchunks.
24609 (_int_free): Likewise.
24610 (malloc_consolidate): Likewise.
24611
24612 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24613
24614 * malloc/malloc.c (tcache_put): Inline.
24615 (tcache_get): Inline.
24616
24617 2017-10-17 Jordi Mallach <jordi@gnu.org>
24618
24619 Aurelien Jarno <aurelien@aurel32.net>
24620 [BZ #2522]
24621 * localedata/locales/ca_ES@valencia: New file.
24622 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24623
24624 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24625
24626 [BZ #22296]
24627 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24628 < 6.x
24629
24630 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24631
24632 * scripts/build-many-glibcs.py (Context.add_all_configs):
24633 Add arm-linux-gnueabihf multiarch extra_glibcs.
24634
24635 * sysdeps/generic/ifunc-init.h: New file.
24636 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24637
24638 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24639
24640 [BZ #22019]
24641 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24642 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24643 * stdlib/tst-strfmon_l.c: adapt test case.
24644
24645 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24646
24647 * sysdeps/generic/float128-abi.h: New file.
24648 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24649 non-__prefixed symbols to ....
24650 * math/Versions: ... here. Include <float128-abi.h>.
24651 * stdlib/Versions ... and here. Include <float128-abi.h>
24652
24653 2017-10-16 Florian Weimer <fweimer@redhat.com>
24654
24655 * version.h (VERSION): Switch to ".9000" as the development
24656 version suffix.
24657
24658 2017-10-16 Florian Weimer <fweimer@redhat.com>
24659
24660 [BZ #22050]
24661 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24662 compat_symbol_reference to access non-default version.
24663
24664 2017-10-16 Florian Weimer <fweimer@redhat.com>
24665
24666 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24667
24668 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24669
24670 * include/shlib-compat.h (compat_symbol_reference): Update
24671 comment.
24672
24673 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24674
24675 * math/Makefile (test-types): Add
24676 $(type-float128-$(float128-alias-fcts)).
24677 * math/test-float128.h (TYPE_STR): Define conditional on
24678 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24679 (ULP_IDX): Likewise.
24680 (ULP_I_IDX): Likewise.
24681
24682 * stdlib/strtold.c: Include <bits/floatn.h>
24683 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24684 and later undefine as macro. Define as weak alias if
24685 [!USE_WIDE_CHAR].
24686 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24687 and later undefine as macro. Define as weak alias if
24688 [USE_WIDE_CHAR].
24689 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24690 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24691 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24692 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24693 Define and later undefine as macro. Define as weak alias if
24694 [USE_WIDE_CHAR].
24695 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24696 <bits/floatn.h>.
24697 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24698 Define and later undefine as macro. Define as weak alias if
24699 [!USE_WIDE_CHAR].
24700 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24701 Define and later undefine as macro. Define as weak alias if
24702 [USE_WIDE_CHAR].
24703
24704 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24705
24706 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24707 record_verbose messages.
24708
24709 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24710
24711 [BZ #22052]
24712 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24713 to silence -O3 -Wall warning with GCC 7.
24714
24715 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24716
24717 * Makeconfig (+link-static-before-libc): Use the first of
24718 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24719 * gmon/Makefile (tests): Add tst-gmon-static.
24720 (tests-static): Likewise.
24721 (CFLAGS-tst-gmon-static.c): New.
24722 (CRT-tst-gmon-static): Likewise.
24723 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24724 (tst-gmon-static-ENV): Likewise.
24725 (tests-special): Likewise.
24726 ($(objpfx)tst-gmon-static.out): Likewise.
24727 (clean-tst-gmon-static-data): Likewise.
24728 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24729 * gmon/tst-gmon-static-gprof.sh: New file.
24730 * gmon/tst-gmon-static.c: Likewise.
24731
24732 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24733
24734 [BZ #22295]
24735 * locale/programs/linereader.c (get_string): Don't warn on
24736 non-symbolic character.
24737
24738 [BZ #22294]
24739 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24740 int_curr_symbol.
24741
24742 [BZ #22292]
24743 * locale/programs/record-status.h: New file
24744 * locale/programs/locale.c: Add comment.
24745 * locale/programs/charmap-dir.c: Don't include error.h.
24746 (charmap_opendir): Use record_error.
24747 * locale/programs/charmap.c: Don't include error.h.
24748 (charmap_read): Use record_error, and record_warning.
24749 (parse_charmap): Likewise.
24750 * locale/programs/ld-address.c: Don't include error.h.
24751 (address_finish): Use record_error, and record_warning.
24752 * locale/programs/ld-collate.c: Don't include error.h.
24753 (collate_finish): Use record_error, and record_error_at_line.
24754 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24755 (ctype_class_new): Likewise.
24756 (ctype_map_new): Likewise.
24757 (set_one_default): Likewise.
24758 (set_class_defaults): Likewise.
24759 (translit_flatten): Likewise.
24760 (allocate_arrays): Use record_error, and record_verbose.
24761 * locale/programs/ld-identification.c: Don't include error.h.
24762 (indentation_finish): Use record_error and record_warning.
24763 * locale/programs/ld-measurement.c: Don't include error.h.
24764 (measurement_finish): Use record_error.
24765 * locale/programs/ld-messages.c
24766 (message_finish): Likewise.
24767 * locale/programs/ld-monetary.c
24768 (monetary_finish): Likewise.
24769 * locale/programs/ld-name.c (name_finish): Use record_error
24770 and record_warning.
24771 * locale/programs/ld-numeric.c
24772 (numeric_finish): Use record_error.
24773 * locale/programs/ld-paper.c: Don't include error.h.
24774 (paper_finish): Use record_error.
24775 * locale/programs/ld-telephone.c: Don't include error.h.
24776 (telephone_finish): Use record_error.
24777 * locale/programs/ld-time.c (time_finish): Likewise.
24778 * locale/programs/linereader.h (lr_error): Make inline func.
24779 * locale/programs/localedef.c: Define recorded_warning_count,
24780 and recorded_error_count.
24781 (main): Use record_error. Use recorded_error_count and
24782 recorded_warning_count to issue correct error returns.
24783 (add_to_readlist): Use record_error.
24784 (find_locale): Likewise.
24785 (load_locale): Likewise.
24786 * locale/programs/localedef.h: Remove be_quiet
24787 and WITH_CUR_LOCALE.
24788 * locale/programs/locarchive.c (compare_from_file): Use
24789 record_error.
24790 * locale/programs/locfile.c (write_locale_data): Use
24791 record_error.
24792 * locale/programs/repertoire.c: Dont include error.h.
24793 (repertoire_complain): Use record_error.
24794 * localedata/tst-fmon.sh: Expect failures from localedef.
24795 * localedata/tst-locale.sh: Likewise.
24796 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24797
24798 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24799 (REPORTS): Likewise.
24800 (check): Likewise.
24801 (i18n): Rename to...
24802 (i18n_ctype): ...this.
24803 (i18n-report): Rename to...
24804 (i18n_ctype-report): ...this.
24805 * localedata/locales/i18n_ctype: Regenerate.
24806 * localedata/locales/i18n: copy i18n_ctype.
24807
24808 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24809
24810 * stdlib/strfroml.c: Include <bits/floatn.h>.
24811 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24812 Define before include of <stdlib.h> and undefine afterwards, then
24813 define as weak alias.
24814
24815 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24816 Undefine and restore default definition. Use
24817 libm_alias_ldouble_other.
24818
24819 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24820
24821 [BZ #22153]
24822 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24823 in coredumps.
24824
24825 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24826
24827 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24828 Assign sym_map to be map for local symbols, as TLS relocations
24829 use sym_map to determine whether the symbol is defined and to
24830 extract the TLS information.
24831 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24832 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24833
24834 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24835
24836 [BZ #22189]
24837 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24838 (math_force_eval): Add powerpc version.
24839
24840 [BZ #22142]
24841 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24842 -DBL_MAX.
24843 (do_test): Likewise.
24844 * stdio-common/tst-printf.sh: Likewise.
24845 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24846 ifdef clause in order to set the carry bit right. Replace r0 by
24847 0 without changing the behavior.
24848
24849 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24850
24851 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24852 <libm-alias-ldouble.h>.
24853 (fabsl): Define using libm_alias_ldouble.
24854 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24855 <libm-alias-ldouble.h>.
24856 (fabsl): Define using libm_alias_ldouble.
24857
24858 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24859 Remove conditional code.
24860
24861 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24862 Rename to __clog10_internal_l.
24863 (__clog10_internal_l): Define aliases using
24864 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24865 with __clog10.
24866
24867 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24868
24869 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24870 * benchtests/sincosf-inputs: New file.
24871 * benchtests/cosf-inputs: New file.
24872 * benchtests/sinf-inputs: New file.
24873
24874 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24875
24876 * posix/tst-spawn.c (do_test): Wait for both children.
24877
24878 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24879
24880 [BZ #22284]
24881 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24882 tests-pie): Add tst-gmon-pie.
24883 (CFLAGS-tst-gmon-pie.c): New.
24884 (CRT-tst-gmon-pie): Likewise.
24885 (tst-gmon-pie-ENV): Likewise.
24886 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24887 ($(objpfx)tst-gmon-pie.out): Likewise.
24888 (clean-tst-gmon-pie-data): Likewise.
24889 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24890 * gmon/gmon.c [PIC]: Include <link.h>.
24891 [PIC] (callback): New function.
24892 (write_hist): Add an argument for load address. Subtract load
24893 address from PCs.
24894 (write_call_graph): Likewise.
24895 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24896 it to write_hist and write_call_graph.
24897 * gmon/tst-gmon-pie.c: New file.
24898
24899 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24900
24901 * math/Makefile (test-types-basic): New variable.
24902 (test-types): Likewise.
24903 (libm-test-support): Use $(test-types) instead of $(types).
24904 (libm-tests-base-normal): Likewise.
24905 (libm-tests-base-finite): Likewise.
24906 (libm-tests-base-inline): Likewise.
24907 (generated): Likewise.
24908 ($(objpfx)libm-test-support-$(t).c): Likewise.
24909 (libm-tests-for-type iterator): Likewise.
24910 (libm-test-support iterator): Likewise.
24911 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24912 (ulp_idx): Use ULP_IDX.
24913 * math/test-ldouble.h: Include <float.h>.
24914 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24915 (ULP_IDX): New macro.
24916 (ULP_I_IDX): Likewise.
24917 * math/test-double.h (ULP_IDX): Likewise.
24918 (ULP_I_IDX): Likewise.
24919 * math/test-float.h (ULP_IDX): Likewise.
24920 (ULP_I_IDX): Likewise.
24921 * math/test-float128.h (ULP_IDX): Likewise.
24922 (ULP_I_IDX): Likewise.
24923
24924 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24925
24926 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24927 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24928 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24929 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24930 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24931 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24932 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24933 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24934 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24935 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24936 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24937 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24938 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24939 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24940 (SINGLE_THREAD_BY_GLOBAL): Define.
24941 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24942 Likewise.
24943 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24944 Likewise.
24945 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24946 Likewise.
24947 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24948 Likewise.
24949 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24950 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24951 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24952 Likewise.
24953
24954 2017-10-11 Andreas Schwab <schwab@suse.de>
24955
24956 * nis/Makefile (aux): Remove.
24957 * nscd/Makefile (aux): Add nscd_hash.
24958 (nscd-modules): Likewise.
24959 ($(objpfx)nscd): Don't depend on libnsl.
24960 * nscd/nscd_hash.c: New file.
24961 * nscd/nscd_hash.h: Likewise.
24962 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24963 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24964 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24965 instead of <nis/rpcsvc/nis.h>.
24966 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24967
24968 2017-10-11 Florian Weimer <fweimer@redhat.com>
24969
24970 [BZ #22078]
24971 Avoid large NSS buffers with many addresses, aliases.
24972 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24973 using dynarrays and struct alloc_buffer.
24974 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24975 (tst-nss-files-hosts-multi): Link with -ldl.
24976 * nss/tst-nss-files-hosts-multi.c: New file.
24977
24978 2017-10-11 Florian Weimer <fweimer@redhat.com>
24979
24980 [BZ #18023]
24981 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24982 scratch_buffer. Eliminate gotos.
24983
24984 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24985
24986 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24987 libm_alias_ldouble_other.
24988 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24989 undefine and redefine.
24990 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24991 (exp10l): Do not define here.
24992 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24993 (weak_alias): Undefine and redefine.
24994 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24995 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24996 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24997 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24998
24999 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25000 [!__fma] (fma): Define using libm_alias_double.
25001 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25002 [!__fmaf] (fmaf): Define using libm_alias_float.
25003 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25004 (fmal): Define using libm_alias_ldouble.
25005
25006 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25007
25008 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25009 New macro.
25010 (libm_alias_double_other): Likewise.
25011 (libm_alias_double_r): Use libm_alias_double_other_r.
25012 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25013 New macro.
25014 (libm_alias_float_other): Likewise.
25015 (libm_alias_float_r): Use libm_alias_float_other_r.
25016 * sysdeps/generic/libm-alias-float128.h
25017 (libm_alias_float128_other_r): New macro.
25018 (libm_alias_float128_other): Likewise.
25019 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25020 * sysdeps/generic/libm-alias-ldouble.h
25021 (libm_alias_ldouble_other_r): New macro.
25022 (libm_alias_ldouble_other): Likewise.
25023 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25024 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25025 (libm_alias_double_other_r): New macro.
25026 (libm_alias_double_other): Likewise.
25027 (libm_alias_double_r): Use libm_alias_double_other_r.
25028 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25029 (libm_alias_ldouble_other_r): New macro.
25030 (libm_alias_ldouble_other): Likewise.
25031 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25032 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25033 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25034 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25035 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25036 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25037 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25038 * math/w_exp2f.c: Use libm_alias_float_other.
25039 * math/w_expf.c: Likewise.
25040 * math/w_log2f.c: Likewise.
25041 * math/w_logf.c: Likewise.
25042 * math/w_powf.c: Likewise.
25043 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25044 [!__exp2f]: Use libm_alias_float_other.
25045 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25046 [!__expf]: Use libm_alias_float_other.
25047 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25048 [!__log2f]: Use libm_alias_float_other.
25049 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25050 [!__logf]: Use libm_alias_float_other.
25051 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25052 [!__powf]: Use libm_alias_float_other.
25053
25054 2017-10-10 Florian Weimer <fweimer@redhat.com>
25055
25056 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25057 function.
25058 (_nss_files_gethostbyname3_r): Call it.
25059
25060 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25061
25062 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25063 error. Remove default definition of declare_mgen_alias.
25064 [!declare_mgen_alias_r]: Likewise.
25065 * sysdeps/generic/math-type-macros-double.h
25066 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25067 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25068 (declare_mgen_alias_r): Likewise.
25069 * sysdeps/generic/math-type-macros-float128.h
25070 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25071 * sysdeps/generic/math-type-macros-ldouble.h
25072 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25073 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25074 macro.
25075 (declare_mgen_alias_r_s): Likewise.
25076 (declare_mgen_alias_r): Likewise.
25077 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25078 (lgamma_r): Define using libm_alias_double_r.
25079 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25080 (lgammaf_r): Define using libm_alias_float_r.
25081 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25082 (lgammal_r): Define using libm_alias_ldouble_r.
25083 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25084 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25085
25086 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25087
25088 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25089 extern declaration.
25090
25091 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25092
25093 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25094
25095 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25096
25097 [BZ #21326]
25098 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25099 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25100 * math/Makefile (test-math-cxx11): New test.
25101 * math/test-math-cxx11.cc: New file.
25102
25103 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25104
25105 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25106
25107 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25108 call to allocate the slave pty file descriptor.
25109
25110 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25111
25112 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25113 [!__fma] (fma): Define using libm_alias_double.
25114 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25115 [!__fma] (fma): Define using libm_alias_double.
25116
25117 * sysdeps/ieee754/float128/float128_private.h: Include
25118 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25119 (libm_alias_ldouble_r): Undefine and redefine.
25120 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25121 <libm-alias-ldouble.h>.
25122 (asinhl): Define using libm_alias_ldouble.
25123 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25124 <libm-alias-ldouble.h>.
25125 (atanl): Define using libm_alias_ldouble.
25126 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25127 <libm-alias-ldouble.h>.
25128 (cbrtl): Define using libm_alias_ldouble.
25129 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25130 <libm-alias-ldouble.h>.
25131 (ceill): Define using libm_alias_ldouble.
25132 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25133 <libm-alias-ldouble.h>.
25134 (copysignl): Define using libm_alias_ldouble.
25135 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25136 <libm-alias-ldouble.h>.
25137 (cosl): Define using libm_alias_ldouble.
25138 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25139 <libm-alias-ldouble.h>.
25140 (erfl): Define using libm_alias_ldouble.
25141 (erfcl): Likewise.
25142 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25143 <libm-alias-ldouble.h>.
25144 (expm1l): Define using libm_alias_ldouble.
25145 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25146 <libm-alias-ldouble.h>.
25147 (fabsl): Define using libm_alias_ldouble.
25148 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25149 <libm-alias-ldouble.h>.
25150 (floorl): Define using libm_alias_ldouble.
25151 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25152 <libm-alias-ldouble.h>.
25153 (fmal): Define using libm_alias_ldouble.
25154 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25155 <libm-alias-ldouble.h>.
25156 (frexpl): Define using libm_alias_ldouble.
25157 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25158 libm_alias_ldouble.
25159 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25160 <libm-alias-ldouble.h>.
25161 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25162 libm_alias_ldouble.
25163 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25164 <libm-alias-ldouble.h>.
25165 (getpayloadl): Define using libm_alias_ldouble.
25166 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25167 <libm-alias-ldouble.h>.
25168 (llrintl): Define using libm_alias_ldouble.
25169 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25170 <libm-alias-ldouble.h>.
25171 (llroundl): Define using libm_alias_ldouble.
25172 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25173 <libm-alias-ldouble.h>.
25174 (logbl): Define using libm_alias_ldouble.
25175 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25176 <libm-alias-ldouble.h>.
25177 (lrintl): Define using libm_alias_ldouble.
25178 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25179 <libm-alias-ldouble.h>.
25180 (lroundl): Define using libm_alias_ldouble.
25181 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25182 <libm-alias-ldouble.h>.
25183 (modfl): Define using libm_alias_ldouble.
25184 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25185 <libm-alias-ldouble.h>.
25186 (nearbyintl): Define using libm_alias_ldouble.
25187 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25188 <libm-alias-ldouble.h>.
25189 (nextafterl): Define using libm_alias_ldouble.
25190 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25191 <libm-alias-ldouble.h>.
25192 (nextupl): Define using libm_alias_ldouble.
25193 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25194 <libm-alias-ldouble.h>.
25195 (remquol): Define using libm_alias_ldouble.
25196 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25197 <libm-alias-ldouble.h>.
25198 (rintl): Define using libm_alias_ldouble.
25199 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25200 <libm-alias-ldouble.h>.
25201 (roundevenl): Define using libm_alias_ldouble.
25202 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25203 <libm-alias-ldouble.h>.
25204 (roundl): Define using libm_alias_ldouble.
25205 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25206 using libm_alias_ldouble.
25207 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25208 <libm-alias-ldouble.h>.
25209 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25210 Define using libm_alias_ldouble.
25211 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25212 <libm-alias-ldouble.h>.
25213 (sincosl): Define using libm_alias_ldouble.
25214 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25215 <libm-alias-ldouble.h>.
25216 (sinl): Define using libm_alias_ldouble.
25217 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25218 <libm-alias-ldouble.h>.
25219 (tanhl): Define using libm_alias_ldouble.
25220 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25221 <libm-alias-ldouble.h>.
25222 (tanl): Define using libm_alias_ldouble.
25223 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25224 <libm-alias-ldouble.h>.
25225 (totalorderl): Define using libm_alias_ldouble.
25226 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25227 <libm-alias-ldouble.h>.
25228 (totalordermagl): Define using libm_alias_ldouble.
25229 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25230 <libm-alias-ldouble.h>.
25231 (truncl): Define using libm_alias_ldouble.
25232 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25233 libm_alias_ldouble.
25234 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25235 libm_alias_ldouble.
25236 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25237 <libm-alias-ldouble.h>.
25238 (weak_alias): Do not undefine and redefine.
25239 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25240 (copysignl): Define with long_double_symbol only if [IS_IN
25241 (libc)].
25242 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25243 <libm-alias-ldouble.h>.
25244 (weak_alias): Do not undefine and redefine.
25245 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25246 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25247 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25248 <libm-alias-ldouble.h>.
25249 (weak_alias): Do not undefine and redefine.
25250 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25251 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25252 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25253 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25254 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25255 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25256 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25257 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25258 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25259 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25260 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25261 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25262 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25263 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25264 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25265 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25266 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25267 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25268 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25269 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25270 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25271 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25272 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25273 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25274 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25275 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25276
25277 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25278
25279 [BZ #22111]
25280 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25281 (tcache_thread_freeres): Set tcache_shutting_down before
25282 freeing the tcache.
25283 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25284 * malloc/tst-malloc-tcache-leak.c: New file.
25285
25286 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25287
25288 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25289 back to powerpc32 file.
25290 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25291 (memrchr): Add __memrchr_power8 to ifunc list.
25292 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25293 extra bytes for unaligned inputs.
25294
25295 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25296
25297 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25298 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25299 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25300 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25301 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25302
25303 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25304
25305 * sysdeps/arm/libm-test-ulps: Update.
25306
25307 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25308 <libm-alias-ldouble.h>.
25309 (asinhl): Define using libm_alias_ldouble.
25310 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25311 <libm-alias-ldouble.h>.
25312 (cbrtl): Define using libm_alias_ldouble.
25313 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25314 <libm-alias-ldouble.h>.
25315 (copysignl): Define using libm_alias_ldouble.
25316 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25317 <libm-alias-ldouble.h>.
25318 (cosl): Define using libm_alias_ldouble.
25319 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25320 <libm-alias-ldouble.h>.
25321 (erfl): Define using libm_alias_ldouble.
25322 (erfcl): Likewise.
25323 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25324 <libm-alias-ldouble.h>.
25325 (fmal): Define using libm_alias_ldouble.
25326 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25327 <libm-alias-ldouble.h>.
25328 (frexpl): Define using libm_alias_ldouble.
25329 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25330 libm_alias_ldouble.
25331 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25332 <libm-alias-ldouble.h>.
25333 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25334 libm_alias_ldouble.
25335 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25336 <libm-alias-ldouble.h>.
25337 (getpayloadl): Define using libm_alias_ldouble.
25338 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25339 <libm-alias-ldouble.h>.
25340 (llrintl): Define using libm_alias_ldouble.
25341 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25342 <libm-alias-ldouble.h>.
25343 (llroundl): Define using libm_alias_ldouble.
25344 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25345 <libm-alias-ldouble.h>.
25346 (lrintl): Define using libm_alias_ldouble.
25347 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25348 <libm-alias-ldouble.h>.
25349 (lroundl): Define using libm_alias_ldouble.
25350 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25351 <libm-alias-ldouble.h>.
25352 (modfl): Define using libm_alias_ldouble.
25353 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25354 <libm-alias-ldouble.h>.
25355 (nextupl): Define using libm_alias_ldouble.
25356 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25357 <libm-alias-ldouble.h>.
25358 (remquol): Define using libm_alias_ldouble.
25359 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25360 <libm-alias-ldouble.h>.
25361 (roundevenl): Define using libm_alias_ldouble.
25362 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25363 <libm-alias-ldouble.h>.
25364 (roundl): Define using libm_alias_ldouble.
25365 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25366 using libm_alias_ldouble.
25367 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25368 <libm-alias-ldouble.h>.
25369 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25370 <libm-alias-ldouble.h>.
25371 (setpayloadsigl): Define using libm_alias_ldouble.
25372 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25373 <libm-alias-ldouble.h>.
25374 (sincosl): Define using libm_alias_ldouble.
25375 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25376 <libm-alias-ldouble.h>.
25377 (sinl): Define using libm_alias_ldouble.
25378 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25379 <libm-alias-ldouble.h>.
25380 (tanhl): Define using libm_alias_ldouble.
25381 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25382 <libm-alias-ldouble.h>.
25383 (tanl): Define using libm_alias_ldouble.
25384 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25385 <libm-alias-ldouble.h>.
25386 (totalorderl): Define using libm_alias_ldouble.
25387 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25388 <libm-alias-ldouble.h>.
25389 (totalordermagl): Define using libm_alias_ldouble.
25390 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25391 libm_alias_ldouble.
25392 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25393 libm_alias_ldouble.
25394
25395 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25396
25397 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25398 memmove_falkor.
25399 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25400 (__libc_ifunc_impl_list): Likewise.
25401 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25402 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25403
25404 * benchtests/bench-memmove-walk.c: New file.
25405 * benchtests/Makefile (string-benchset): Add it.
25406
25407 * benchtests/bench-memset-walk.c: New file.
25408 * benchtests/Makefile (string-benchset): Add it.
25409
25410 * benchtests/bench-memcpy-walk.c: New file.
25411 * benchtests/Makefile (string-benchset): Add it.
25412
25413 2017-10-05 Florian Weimer <fweimer@redhat.com>
25414
25415 nscd: Eliminate compilation time dependency in the build output.
25416 * nscd/nscd_stat.c (STATDATA_VERSION)
25417 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25418 (STATDATA_VERSION_FULL): New macro definitions.
25419 (compilation): Remove.
25420 (struct statdata): Adjust version member.
25421 (send_stats): Set version from STATDATA_VERSION_FULL.
25422 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25423
25424 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25425
25426 * configure.ac (--enable-add-ons): Remove option.
25427 (machine): Do not mention add-ons in comment.
25428 (LIBC_PRECONFIGURE): Likewise.
25429 (add_ons): Remove variable and sanity checks and logic to locate
25430 add-ons.
25431 (add_ons_automatic): Remove variable.
25432 (configured_add_ons): Likewise.
25433 (add_ons_sfx): Likewise.
25434 (add_ons_pfx): Likewise.
25435 (add_on_subdirs): Likewise.
25436 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25437 consideration of add-ons in Implies handling.
25438 (sysdeps_add_ons): Likewise.
25439 * configure: Regenerated.
25440 * libidn/configure.ac: Remove.
25441 * libidn/configure: Likewise.
25442 * sysdeps/unix/inet/configure.ac: New file.
25443 * sysdeps/unix/inet/configure: New generated file.
25444 * sysdeps/unix/inet/Subdirs: Add libidn.
25445 * Makeconfig (sysdeps-srcdirs): Remove variable.
25446 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25447 ($(common-objpfx)config.status): Do not depend on add-on files.
25448 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25449 comment.
25450 (all-subdirs): Do not include $(add-on-subdirs).
25451 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25452 * config.make.in (add-ons): Remove variable.
25453 (add-on-subdirs): Likewise.
25454 (sysdeps-add-ons): Likewise.
25455 * manual/Makefile (add-chapters): Remove.
25456 ($(objpfx)texis): Do not depend on $(add-chapters).
25457 (nonexamples): Do not handle $(add-chapters).
25458 (examples): Do not handle $(add-ons).
25459 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25460 libc-texinfo.sh.
25461 * manual/install.texi (Installation): Do not mention add-ons.
25462 (--enable-add-ons): Do not document configure option.
25463 * INSTALL: Regenerated.
25464 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25465 * manual/maint.texi (Hierarchy Conventions): Do not mention
25466 add-ons.
25467 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25468 --enable-add-ons.
25469 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25470 add-ons.
25471 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25472 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25473
25474 2017-10-05 Andreas Schwab <schwab@suse.de>
25475
25476 [BZ #15142]
25477 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25478 (_IO_flush_all_lockp): Always lock list_all_lock.
25479 (_IO_flush_all_linebuffered): Likewise.
25480 (_IO_unbuffer_all): Likewise.
25481
25482 2017-10-05 Florian Weimer <fweimer@redhat.com>
25483
25484 [BZ #15436]
25485 Do not flush stdio streams on abort.
25486 * stdlib/abort.c (fflush): Remove macro definition.
25487 (abort): Remove stages related to stdio flushing.
25488
25489 2017-10-05 Florian Weimer <fweimer@redhat.com>
25490
25491 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25492
25493 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25494
25495 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25496
25497 2017-10-05 Florian Weimer <fweimer@redhat.com>
25498
25499 * support/support_format_hostent.c (support_format_hostent): Add
25500 more error information for NETDB_INTERNAL.
25501
25502 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25503
25504 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25505 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25506 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25507 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25508 AC_DEFINE if multi-arch is enabled.
25509 * sysdeps/i386/configure: Regenerated.
25510
25511 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25512
25513 * Makeconfig (+link-static-before-libc): Use
25514 $(DEFAULT-LDFLAGS-$(@F)).
25515 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25516 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25517 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25518
25519 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25520
25521 * elf/Makefile (tests): Add tst-main1.
25522 (modules-names): Add tst-main1mod.
25523 ($(objpfx)tst-main1): New.
25524 (CRT-tst-main1): Likewise.
25525 (LDFLAGS-tst-main1): Likewise.
25526 (LDLIBS-tst-main1): Likewise.
25527 (tst-main1mod.so-no-z-defs): Likewise.
25528 * elf/tst-main1.c: New file.
25529 * elf/tst-main1mod.c: Likewise.
25530
25531 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25532
25533 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25534
25535 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25536
25537 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25538 (fma): Define using libm_alias_double.
25539 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25540 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25541 <math_ldbl_opt.h>.
25542 (fmal): Do not define as compat symbol here.
25543 * sysdeps/alpha/fpu/s_fma.c: New file.
25544
25545 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25546
25547 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25548
25549 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25550
25551 [BZ #22229]
25552 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25553 <math_ldbl_opt.h>
25554 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25555 and libc.
25556 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25557 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25558 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25559 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25561 Include <math_ldbl_opt.h>
25562 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25563 and libc.
25564 (compat_symbol): Undefine and redefine.
25565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25566 <math_ldbl_opt.h>
25567 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25568 (compat_symbol): Undefine and redefine.
25569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25570 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25571 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25572 GLIBC_2_1 for libm.
25573 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25574 GLIBC_2.0 copysignl symbol.
25575 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25576 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25577
25578 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25579
25580 2017-10-04 Florian Weimer <fweimer@redhat.com>
25581
25582 * scripts/check-local-headers.sh: Ignore nspr4 header file
25583 directory in addition to nspr.
25584
25585 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25586
25587 [BZ #17956]
25588 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25589 * configure: Regenerate.
25590 * crypt/Makefile (nss-cpp-flags): New variable.
25591 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25592 (CPPFLAGS-md5-crypt.c): Use it.
25593 * scripts/check-local-headers.sh: Ignore nspr header file
25594 directory.
25595
25596 2017-10-04 Andreas Schwab <schwab@suse.de>
25597
25598 * nis/Makefile (services): Remove compat.
25599 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25600 ($(objpfx)libnss_compat.so): Remove rule.
25601 * nis/Versions (libnss_compat): Remove.
25602 * nss/Makefile (services): Add compat.
25603 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25604 * nss/Versions (libnss_compat): Define.
25605 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25606 Don't include <rpc/types.h>. Replace bool_t by bool.
25607 * nss/nss_compat/compat-initgroups.c: Likewise.
25608 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25609 instead of <rpcsrv/ypclnt.h>.
25610 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25611 yp_get_default_domain.
25612 * nss/nss_compat/compat-pwd.c: Likewise.
25613 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25614 yp_get_default_domain.
25615 * nss/nss_compat/nisdomain.c: New file.
25616 * nss/nss_compat/nisdomain.h: Likewise.
25617
25618 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25619
25620 [BZ #22244]
25621 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25622 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25623
25624 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25625
25626 [BZ #22243]
25627 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25628 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25629
25630 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25631
25632 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25633 "movl main@GOTOFF(%ebx), %eax".
25634
25635 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25636
25637 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25638 allow undefined _DYNAMIC in PIE libc.a.
25639 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25640 Likewse.
25641
25642 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25643
25644 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25645 check _DYNAMIC.
25646
25647 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25648
25649 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25650 check _DYNAMIC.
25651
25652 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 * math/test-math-iscanonical.cc (error): Replace bool with int.
25655
25656 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25657
25658 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25659 (modf): Define using libm_alias_double, only if [!__modf].
25660 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25661 <libm-alias-double.h>.
25662 (modf): Define using libm_alias_double, only if [!__modf].
25663 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25664 compat symbol here.
25665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25666 (weak_alias): Do not undefine and redefine.
25667 (strong_alias): Likewise.
25668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25669 (weak_alias): Likewise.
25670 (strong_alias): Likewise.
25671
25672 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25673 (logb): Define using libm_alias_double, only if [!__logb].
25674 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25675 <libm-alias-double.h>.
25676 (logb): Define using libm_alias_double, only if [!__logb].
25677 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25679 (weak_alias): Do not undefine and redefine.
25680 (strong_alias): Likewise.
25681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25682 (weak_alias): Likewise.
25683 (strong_alias): Likewise.
25684
25685 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25686
25687 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25688 Check SHARED instead PIC.
25689
25690 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25691
25692 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25693 [!__fmaf] (fmaf): Define using libm_alias_float.
25694
25695 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25696 (frexp): Define using libm_alias_double.
25697 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25698 <libm-alias-double.h>.
25699 (frexp): Define using libm_alias_double.
25700 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25701 compat symbol here.
25702
25703 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25704
25705 [BZ #22235]
25706 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25707 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25708 (CFLAGS-test-math-iscanonical.cc): New variable.
25709 * math/test-math-iscanonical.cc: New file.
25710 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25711 Provide a C++ implementation based on function overloading,
25712 rather than using __MATH_TG, which uses C-only builtins.
25713 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25714 Likewise.
25715 * sysdeps/powerpc/powerpc64le/Makefile
25716 (CFLAGS-test-math-iscanonical.cc): New variable.
25717
25718 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25719
25720 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25721 (ceil): Define using libm_alias_double.
25722 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25723 (floor): Define using libm_alias_double.
25724 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25725 <libm-alias-double.h>.
25726 (llround): Define using libm_alias_double.
25727 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25728 <libm-alias-double.h>.
25729 (lround): Define using libm_alias_double.
25730 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25731 <libm-alias-double.h>.
25732 (nearbyint): Define using libm_alias_double.
25733 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25734 <libm-alias-double.h>.
25735 (remquo): Define using libm_alias_double.
25736 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25737 (rint): Define using libm_alias_double.
25738 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25739 (round): Define using libm_alias_double.
25740 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25741 (trunc): Define using libm_alias_double.
25742 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25743 <libm-alias-double.h>.
25744 (ceil): Define using libm_alias_double.
25745 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25746 <libm-alias-double.h>.
25747 (floor): Define using libm_alias_double.
25748 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25749 <libm-alias-double.h>.
25750 (llround): Define using libm_alias_double.
25751 [_LP64] (lround): Likewise.
25752 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25753 <libm-alias-double.h>.
25754 [!_LP64] (lround): Define using libm_alias_double.
25755 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25756 <libm-alias-double.h>.
25757 (nearbyint): Define using libm_alias_double.
25758 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25759 <libm-alias-double.h>.
25760 (remquo): Define using libm_alias_double.
25761 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25762 <libm-alias-double.h>.
25763 (rint): Define using libm_alias_double.
25764 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25765 <libm-alias-double.h>.
25766 (round): Define using libm_alias_double.
25767 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25768 <libm-alias-double.h>.
25769 (trunc): Define using libm_alias_double.
25770 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25771 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25772 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25773 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25774 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25775 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25776 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25777 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25778 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25779
25780 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25781
25782 * math/w_remainder.c: New file.
25783 * math/w_remainderf.c: New file.
25784 * math/w_remainderl.c: New file.
25785
25786 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25787
25788 * elf/rtld.c (BOOTSTRAP_MAP): New.
25789 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25790 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25791 Likewise.
25792 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25793 Likewise.
25794 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25795 Likewise.
25796
25797 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25798
25799 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25800 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25801 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25802 rtld_hidden_data_ver): Define to empty.
25803 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25804 __assert_perror_fail): Likewise.
25805 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25806 (__rewinddir): Likewise.
25807 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25808 (__profile_frequency): Likewise.
25809 * include/setjmp.h (__sigsetjmp): Likewise.
25810 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25811 __libc_sigaction): Likewise.
25812 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25813 not set hidden attribute.
25814 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25815 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25816 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25817 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25818 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25819 __fxstatat64): Likewise.
25820 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25821 (__uname): Likewise.
25822 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25823 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25824 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25825 (NO_RTLD_HIDDEN): Set.
25826 * sysdeps/mach/hurd/configure: Refresh.
25827 * config.h.in: Refresh.
25828
25829 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25830
25831 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25832 (atan): Define using libm_alias_double.
25833 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25834 (tan): Define using libm_alias_double.
25835 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25836 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25837
25838 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25839 define as weak alias of __atan. Do not define any aliases if
25840 [__atan].
25841 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25842 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25843 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25844 as weak alias of __tan. Do not define any aliases if [__tan].
25845 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25846 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25847 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25848 __atan.
25849 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25850 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25851 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25852 and define as weak alias of __atan.
25853 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25854 __atan.
25855 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25856 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25857 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25858 define as weak alias of __tan.
25859
25860 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25861
25862 * math/w_lgamma.c: New file.
25863 * math/w_lgammaf.c: New file.
25864 * math/w_lgammal.c: New file.
25865
25866 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25867
25868 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25869 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25870 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25871 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25872 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25873 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25874 * sysdeps/i386/fpu/w_log2f.c: New file.
25875 * sysdeps/i386/fpu/w_logf.c: New file.
25876 * sysdeps/i386/fpu/w_powf.c: New file.
25877 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25878 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25879 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25880
25881 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25882 H.J. Lu <hongjiu.lu@intel.com>
25883
25884 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25885 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25886 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25887 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25888 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25889 the new expf code.
25890 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25891 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25892 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25893 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25894 * sysdeps/i386/fpu/w_exp2f.c: New file.
25895 * sysdeps/i386/fpu/w_expf.c: New file.
25896 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25897 * sysdeps/x86_64/fpu/w_expf.c: New file.
25898
25899 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25900
25901 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25902 (log2f): Likewise.
25903 (powf): Likewise.
25904 * math/w_log2f.c: New file.
25905 * math/w_logf.c: New file.
25906 * math/w_powf.c: New file.
25907 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25908 * math/w_logf_compat.c (__logf_compat): Likewise.
25909 * math/w_powf_compat.c (__powf_compat): Likewise.
25910 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25911 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25912 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25913 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25914 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25915 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25916 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25917 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25918 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25919 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25920 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25921 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25922 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25923 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25924 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25926 Likewise.
25927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25928 Likewise.
25929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25930 Likewise.
25931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25932 Likewise.
25933 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25934 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25935 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25936 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25937 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25938 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25939 Likewise.
25940 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25941 Likewise.
25942 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25943 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25944 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25945
25946 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25947
25948 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25949 (sysdep_routines): Add memrchr_power8.
25950 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25951 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25952 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25953 New file.
25954 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25955 (memrchr): Add __memrchr_power8 to ifunc list.
25956 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25957
25958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25959
25960 [BZ #18822]
25961 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25962 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25963 libc_hidden_def.
25964 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25965 (__posix_fallocate64_l64): Likewise.
25966
25967 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25968
25969 [BZ #18822]
25970 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25971 (__sched_setaffinity_new): Add libc_hidden_proto and
25972 libc_hidden_def.
25973
25974 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25975
25976 [BZ #18822]
25977 * include/glob.h (__glob64): Add libc_hidden_proto.
25978 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25979 libc_hidden_def.
25980
25981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25982
25983 [BZ #18822]
25984 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25985 attribute_hidden.
25986
25987 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25988
25989 [BZ #18822]
25990 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25991
25992 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25993
25994 [BZ #18822]
25995 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25996 libc_hidden_def.
25997
25998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25999
26000 [BZ #18822]
26001 * csu/version.c (__libc_print_version): Add attribute_hidden.
26002
26003 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26004
26005 [BZ #18822]
26006 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26007
26008 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26009
26010 [BZ #18822]
26011 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26012
26013 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26014
26015 [BZ #18822]
26016 * nscd/nscd_helper.c (__nis_hash): New prototype.
26017
26018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26019
26020 [BZ #18822]
26021 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26022 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26023 libc_hidden_def.
26024 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26025 * termios/tcgetattr.c (__tcgetattr): Likewise.
26026
26027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26028
26029 [BZ #18822]
26030 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26031 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26032 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26033 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26034 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26035
26036 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26037
26038 [BZ #18822]
26039 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26040
26041 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26042
26043 [BZ #18822]
26044 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26045 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26046
26047 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26048
26049 [BZ #18822]
26050 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26051
26052 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26053
26054 [BZ #18822]
26055 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26056 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26057
26058 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26059
26060 [BZ #18822]
26061 * include/ifreq.h: New file.
26062 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26063 (__ifreq): Likewise.
26064 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26065 (__ifreq): Likewise.
26066
26067 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26068
26069 [BZ #18822]
26070 * include/idna.h: New file.
26071 * inet/getnameinfo.c: Include <idna.h> instead of
26072 <libidn/idna.h>.
26073 (__idna_to_unicode_lzlz): Removed.
26074 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26075 <libidn/idna.h>.
26076 (__idna_to_ascii_lz): Removed.
26077 (__idna_to_unicode_lzlz): Likewise.
26078
26079 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26080
26081 [BZ #18822]
26082 * include/plural-exp.h: New file.
26083 * intl/plural-exp.c: Include <plural-exp.h> instead of
26084 "plural-exp.h".
26085
26086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26087
26088 [BZ #18822]
26089 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26090 "getsourcefilter.h".
26091 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26092 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26093 "getsourcefilter.h".
26094 (__get_sol): Removed.
26095
26096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26097
26098 [BZ #18822]
26099 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26100 to ...
26101 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26102
26103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26104
26105 [BZ #18822]
26106 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26107 attribute_hidden.
26108
26109 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26110
26111 [BZ #18822]
26112 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26113
26114 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26115
26116 [BZ #18822]
26117 * include/search.h (__tdestroy): Add libc_hidden_proto.
26118 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26119
26120 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26121
26122 [BZ #18822]
26123 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26124
26125 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26126
26127 [BZ #18822]
26128 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26129 attribute_hidden.
26130
26131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26132
26133 [BZ #18822]
26134 * include/signal.h (__kill): Add libc_hidden_proto.
26135 (__sigblock): Likewise.
26136 (__sigprocmask): Likewise.
26137 (__sigaltstack): Likewise.
26138 * signal/kill.c (__kill): Add libc_hidden_def.
26139 * signal/sigblock.c (__sigblock): Likewise.
26140 * signal/sigprocmask.c (__sigprocmask): Likewise.
26141 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26142 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26143 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26144 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26145 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26146 Likewise.
26147 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26148 Likewise.
26149 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26150 (__sigprocmask): Likewise.
26151 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26152 Likewise.
26153 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26154 (__sigprocmask): Likewise.
26155 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26156 Likewise.
26157
26158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26159
26160 [BZ #18822]
26161 * include/string.h (__strsep): Add libc_hidden_proto.
26162 * string/strsep.c (__strsep): Add libc_hidden_def.
26163
26164 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26165
26166 [BZ #18822]
26167 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26168 attribute_hidden.
26169 (__spawni): Likewise.
26170
26171 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26172
26173 [BZ #18822]
26174 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26175 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26176 libc_hidden_def.
26177
26178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26179
26180 [BZ #18822]
26181 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26182
26183 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26184
26185 [BZ #18822]
26186 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26187 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26188 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26189 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26190 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26191 Likewise.
26192 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26193 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26194
26195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26196
26197 [BZ #18822]
26198 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26199 (__dcigettext): Likewise.
26200
26201 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26202
26203 [BZ #18822]
26204 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26205 libc_hidden_proto.
26206 (__get_nprocs): Likewise.
26207 (__get_phys_pages): Likewise.
26208 (__get_avphys_pages): Likewise.
26209 (__get_child_max): Add attribute_hidden.
26210 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26211 (__get_nprocs): Likewise.
26212 (__get_phys_pages): Likewise.
26213 (__get_avphys_pages): Likewise.
26214 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26215 libc_hidden_def.
26216 (__get_nprocs): Likewise.
26217 (__get_phys_pages): Likewise.
26218 (__get_avphys_pages): Likewise.
26219 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26220 libc_hidden_def.
26221 (__get_nprocs_conf): Likewise.
26222 (__get_phys_pages): Likewise.
26223 (__get_avphys_pages): Likewise.
26224
26225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26226
26227 [BZ #18822]
26228 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26229 attribute_hidden.
26230 (__netlink_close): Likewise.
26231 (__netlink_free_handle): Likewise.
26232 (__netlink_request): Likewise.
26233
26234 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26235
26236 [BZ #18822]
26237 * include/rpc/rpc.h (__rpc_thread_variables): Add
26238 attribute_hidden.
26239 (__rpc_thread_svc_cleanup): Likewise.
26240 (__rpc_thread_clnt_cleanup): Likewise.
26241 (__rpc_thread_key_cleanup): Likewise.
26242
26243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26244
26245 [BZ #18822]
26246 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26247 (__writev): Likewise.
26248 * misc/readv.c (__readv): Add libc_hidden_def.
26249 * misc/writev.c (__writev): Likewise.
26250 * sysdeps/posix/readv.c (__readv): Likewise.
26251 * sysdeps/posix/writev.c (__writev): Likewise.
26252 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26253 (__readv): Likewise.
26254 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26255 (__writev): Likewise.
26256
26257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26258
26259 [BZ #18822]
26260 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26261 (__regcomp): Add libc_hidden_proto.
26262 (__regexec): Likewise.
26263 (__regfree): Likewise.
26264 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26265 (__regfree): Likewise.
26266 * posix/regexec.c (__regexec): Likewise.
26267
26268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26269
26270 [BZ #18822]
26271 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26272 (__getutent): Likewise.
26273 (__getutid): Likewise.
26274 (__getutline): Likewise.
26275 (__pututline): Likewise.
26276 (__getutent_r): Likewise.
26277 (__getutid_r): Likewise.
26278 (__getutline_r): Likewise.
26279 (__utmpname): Add attribute_hidden.
26280 (__setutent): Likewise.
26281 (__endutent): Likewise.
26282 * login/getutent.c (__getutent): Add libc_hidden_def.
26283 * login/getutent_r.c (__getutent_r): Likewise.
26284 (__pututline): Likewise.
26285 * login/getutid.c (__getutid): Likewise.
26286 * login/getutid_r.c (__getutid_r): Likewise.
26287 * login/getutline.c (__getutline): Likewise.
26288 * login/getutline_r.c (__getutline_r): Likewise.
26289 * login/updwtmp.c (__updwtmp): Likewise.
26290
26291 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26292
26293 [BZ #18822]
26294 * include/dirent.h (__opendir): Always add attribute_hidden.
26295 (__fdopendir): Likewise.
26296 (__closedir): Likewise.
26297 (__readdir): Likewise.
26298 (__readdir64): Add libc_hidden_proto.
26299 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26300 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26301 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26302 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26303 New alias.
26304
26305 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26306
26307 [BZ #18822]
26308 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26309 * include/netdb.h (__gethostbyaddr_r): Likewise.
26310 (__gethostbyname_r): Likewise.
26311 (__gethostbyname2_r): Likewise.
26312 (__getnetbyaddr_r): Likewise.
26313 (__getnetbyname_r): Likewise.
26314 (__getservbyname_r): Likewise.
26315 (__getservbyport_r): Likewise.
26316 (__getprotobyname_r): Likewise.
26317 (__getprotobynumber_r): Likewise.
26318 (__getnetgrent_r): Likewise.
26319 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26320 (__getrpcbynumber_r): Likewise.
26321 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26322
26323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26324
26325 [BZ #18822]
26326 * include/stdio.h (__fcloseall): Add attribute_hidden.
26327 (__getline): Likewise.
26328 (__path_search): Likewise.
26329 (__gen_tempname): Likewise.
26330 (__libc_message): Likewise.
26331 (__flockfile): Likewise.
26332 (__funlockfile): Likewise.
26333 (__fxprintf): Likewise.
26334 (__fxprintf_nocancel): Likewise.
26335
26336 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26337
26338 [BZ #18822]
26339 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26340 (__sgetsgent_r): Likewise.
26341
26342 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26343
26344 [BZ #18822]
26345 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26346 (__statfs64): Likewise.
26347 (__fstatfs64): Likewise.
26348 * include/sys/statvfs.h (__statvfs64): Likewise.
26349 (__fstatvfs64): Likewise.
26350 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26351 (__statfs_filesize_max): Likewise.
26352 (__statfs_symlinks): Likewise.
26353 (__statfs_chown_restricted): Likewise.
26354
26355 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26356
26357 [BZ #18822]
26358 * include/time.h (__tzstring): Add attribute_hidden.
26359 (__tzfile_read): Likewise.
26360 (__tzfile_compute): Likewise.
26361 (__tzfile_default): Likewise.
26362 (__tzset_parse_tz): Likewise.
26363 (__offtime): Likewise.
26364 (__asctime_r): Likewise.
26365 (__tzset): Likewise.
26366 (__tz_convert): Likewise.
26367 (__getdate_r): Likewise.
26368 (__getclktck): Likewise.
26369
26370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26371
26372 [BZ #18822]
26373 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26374 (__nscd_unmap): Likewise.
26375 (__nscd_cache_search): Likewise.
26376 (__nscd_get_nl_timestamp): Likewise.
26377 (__nscd_getpwnam_r): Likewise.
26378 (__nscd_getpwuid_r): Likewise.
26379 (__nscd_getgrnam_r): Likewise.
26380 (__nscd_getgrgid_r): Likewise.
26381 (__nscd_gethostbyname_r): Likewise.
26382 (__nscd_gethostbyname2_r): Likewise.
26383 (__nscd_gethostbyaddr_r): Likewise.
26384 (__nscd_getai): Likewise.
26385 (__nscd_getgrouplist): Likewise.
26386 (__nscd_getservbyname_r): Likewise.
26387 (__nscd_getservbyport_r): Likewise.
26388 (__nscd_innetgr): Likewise.
26389 (__nscd_setnetgrent): Likewise.
26390
26391 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26392
26393 [BZ #18822]
26394 * include/gmp.h: Declare internal functions only if _ISOMAC is
26395 undefined.
26396 (__mpn_extract_double): Add attribute_hidden.
26397 (__mpn_extract_long_double): Likewise.
26398 (__mpn_extract_float128): Likewise.
26399 (__mpn_construct_float): Likewise.
26400 (__mpn_construct_double): Likewise.
26401 (__mpn_construct_long_double): Likewise.
26402 (__mpn_construct_float128): Likewise.
26403 (mpn_add_1): Likewise.
26404 (mpn_addmul_1): Likewise.
26405 (mpn_add_n): Likewise.
26406 (mpn_cmp): Likewise.
26407 (mpn_divrem): Likewise.
26408 (mpn_lshift): Likewise.
26409 (mpn_mul): Likewise.
26410 (mpn_mul_1): Likewise.
26411 (mpn_rshift): Likewise.
26412 (mpn_sub_1): Likewise.
26413 (mpn_submul_1): Likewise.
26414 (mpn_sub_n): Likewise.
26415
26416 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26417
26418 [BZ #18822]
26419 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26420 (__wcscat): Likewise.
26421 (__btowc): Likewise.
26422 (__wcrtomb): Likewise.
26423 (__mbsrtowcs): Likewise.
26424 (__wcsrtombs): Likewise.
26425 (__mbsnrtowcs): Likewise.
26426 (__wcsnrtombs): Likewise.
26427 (__wcsncpy): Likewise.
26428 (__wcpncpy): Likewise.
26429 (__wmemcpy): Likewise.
26430 (__wmempcpy): Likewise.
26431 (__wmemmove): Likewise.
26432 (__wcschrnul): Likewise.
26433 (__vfwscanf): Likewise.
26434 (__vswprintf): Likewise.
26435 (__fwprintf): Likewise.
26436 (__vfwprintf): Likewise.
26437
26438 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26439
26440 [BZ #18822]
26441 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26442 (__getgrgid_r): Likewise.
26443 (__getgrnam_r): Likewise.
26444 * include/pwd.h (__getpwuid_r): Likewise.
26445 (__getpwnam_r): Likewise.
26446 (__fgetpwent_r): Likewise.
26447 * include/shadow.h (__getspnam_r): Likewise.
26448 (__sgetspent_r): Likewise.
26449 (__fgetspent_r): Likewise.
26450
26451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26452
26453 [BZ #18822]
26454 * include/unistd.h (__access): Add attribute_hidden.
26455 (__lseek64): Likewise.
26456 (__libc_pread64): Likewise.
26457 (__pipe2): Likewise.
26458 (__sleep): Likewise.
26459 (__chdir): Likewise.
26460 (__fchdir): Likewise.
26461 (__getcwd): Likewise.
26462 (__rmdir): Likewise.
26463 (__execvpe): Likewise.
26464 (__execve): Likewise.
26465 (__setsid): Likewise.
26466 (__getuid): Likewise.
26467 (__geteuid): Likewise.
26468 (__getgid): Likewise.
26469 (__getegid): Likewise.
26470 (__getgroups): Likewise.
26471 (__group_member): Likewise.
26472 (__ttyname_r): Likewise.
26473 (__isatty): Likewise.
26474 (__readlink): Likewise.
26475 (__unlink): Likewise.
26476 (__gethostname): Likewise.
26477 (__profil): Likewise.
26478 (__getdtablesize): Likewise.
26479 (__brk): Likewise.
26480 (__ftruncate): Likewise.
26481 (__ftruncate64): Likewise.
26482
26483 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26484
26485 [BZ #18822]
26486 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26487 * argp/argp-fs-xinl.c: Likewise.
26488 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26489 * argp/argp-parse.c: Include <argp.h>.
26490 * argp/argp-xinl.c: Likewise.
26491 * include/argp-fmtstream.h: New file.
26492 * include/argp.h (__argp_error): Add attribute_hidden.
26493 (__argp_failure): Likewise.
26494 (__argp_input): Likewise.
26495 (__argp_state_help): Likewise.
26496
26497 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26498
26499 [BZ #18822]
26500 * include/wchar.h (____wcstof_l_internal): New prototype.
26501 (____wcstod_l_internal): Likewise.
26502 (____wcstold_l_internal): Likewise.
26503 (____wcstol_l_internal): Likewise.
26504 (____wcstoul_l_internal): Likewise.
26505 (____wcstoll_l_internal): Likewise.
26506 (____wcstoull_l_internal): Likewise.
26507 (____wcstof128_l_internal): Likewise.
26508 * sysdeps/ieee754/float128/wcstof128.c
26509 (____wcstof128_l_internal): Removed.
26510 * sysdeps/ieee754/float128/wcstof128_l.c
26511 (____wcstof128_l_internal): Likewise.
26512 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26513 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26514 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26515 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26516 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26517 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26518 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26519 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26520 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26521 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26522
26523 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26524
26525 [BZ #18822]
26526 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26527 instead of <sys/statvfs.h>.
26528 (__internal_statvfs): Removed.
26529 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26530 instead of <sys/statvfs.h>.
26531 (__internal_statvfs64): Removed.
26532 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26533 "internal_statvfs.h" instead of <sys/statvfs.h>.
26534 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26535 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26536 instead of <sys/statvfs.h>.
26537 (__internal_statvfs): Removed.
26538 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26539 instead of <sys/statvfs.h>.
26540 (__internal_statvfs64): Removed.
26541
26542 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26543
26544 [BZ #18822]
26545 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26546 (__gconv_close): Likewise.
26547 (__gconv): Likewise.
26548 (__gconv_find_transform): Likewise.
26549 (__gconv_lookup_cache): Likewise.
26550 (__gconv_compare_alias_cache): Likewise.
26551 (__gconv_load_cache): Likewise.
26552 (__gconv_get_path): Likewise.
26553 (__gconv_close_transform): Likewise.
26554 (__gconv_release_cache): Likewise.
26555 (__gconv_find_shlib): Likewise.
26556 (__gconv_release_shlib): Likewise.
26557 (__gconv_get_builtin_trans): Likewise.
26558 (__gconv_compare_alias): Likewise.
26559 * include/dlfcn.h (_dlerror_run): Likewise.
26560 * include/stdio.h (__fortify_fail_abort): Likewise.
26561 * include/time.h (__tz_compute): Likewise.
26562 (__strptime_internal): Likewise.
26563 * intl/gettextP.h (_nl_find_domain): Likewise.
26564 (_nl_load_domain): Likewise.
26565 (_nl_find_msg): Likewise.
26566 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26567 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26568 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26569 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26570 (__gai_find_request): Likewise.
26571 (__gai_remove_request): Likewise.
26572 (__gai_notify): Likewise.
26573 (__gai_notify_only): Likewise.
26574 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26575 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26576 (_dl_non_dynamic_init): Likewise.
26577 (_dl_aux_init): Likewise.
26578 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26579 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26580 Likewise.
26581 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26582 (__wcsmbs_clone_conv): Likewise.
26583 (__wcsmbs_named_conv): Likewise.
26584
26585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26586
26587 [BZ #18822]
26588 * include/stdlib.h (__random): Add attribute_hidden.
26589 (__random_r): Likewise.
26590 (__srandom_r): Likewise.
26591 (__initstate_r): Likewise.
26592 (__setstate_r): Likewise.
26593 (__erand48_r): Likewise.
26594 (__nrand48_r): Likewise.
26595 (__jrand48_r): Likewise.
26596 (__srand48_r): Likewise.
26597 (__seed48_r): Likewise.
26598 (__lcong48_r): Likewise.
26599 (__drand48_iterate): Likewise.
26600 (__setenv): Likewise.
26601 (__unsetenv): Likewise.
26602 (__clearenv): Likewise.
26603 (__ptsname_r): Likewise.
26604 (__posix_openpt): Likewise.
26605 (__add_to_environ): Likewise.
26606 (__realpath): Add libc_hidden_proto.
26607 (__ecvt_r): Likewise.
26608 (__fcvt_r): Likewise.
26609 (__qecvt_r): Likewise.
26610 (__qfcvt_r): Likewise.
26611 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26612 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26613
26614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26615
26616 [BZ #18822]
26617 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26618 * include/time.h (__mktime_internal): Likewise.
26619 * libio/iolibio.h (__fopen_internal): Likewise.
26620
26621 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26622
26623 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26624 pointer in frame.
26625 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26626 Correct offset used to restore PIC register.
26627
26628 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26629
26630 [BZ libc/22165]
26631 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26632 code to load address of __getcontext_ret when generating PIC code.
26633
26634 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26635
26636 * elf/Makefile (tests-static-internal): Add
26637 tst-tls1-static-non-pie.
26638 (LDFLAGS-tst-tls1-static-non-pie): New.
26639 * elf/tst-tls1-static-non-pie.c: New file.
26640
26641 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26642
26643 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26644 (asinh): Define using libm_alias_double.
26645 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26646 (cbrt): Define using libm_alias_double.
26647 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26648 <libm-alias-double.h>.
26649 (copysign): Define using libm_alias_double.
26650 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26651 (erf): Define using libm_alias_double.
26652 (erfc): Likewise.
26653 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26654 (expm1): Define using libm_alias_double.
26655 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26656 (fabs): Define using libm_alias_double.
26657 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26658 libm_alias_double.
26659 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26660 <libm-alias-double.h>.
26661 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26662 libm_alias_double.
26663 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26664 <libm-alias-double.h>.
26665 (getpayload): Define using libm_alias_double.
26666 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26667 <libm-alias-double.h>.
26668 (llrint): Define using libm_alias_double.
26669 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26670 (lrint): Define using libm_alias_double.
26671 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26672 <libm-alias-double.h>.
26673 (nextup): Define using libm_alias_double.
26674 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26675 <libm-alias-double.h>.
26676 (roundeven): Define using libm_alias_double.
26677 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26678 libm_alias_double.
26679 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26680 <libm-alias-double.h>.
26681 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26682 using libm_alias_double.
26683 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26684 (cos): Define using libm_alias_double.
26685 (sin): Likewise.
26686 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26687 <libm-alias-double.h>.
26688 (sincos): Define using libm_alias_double.
26689 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26690 (tanh): Define using libm_alias_double.
26691 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26692 <libm-alias-double.h>.
26693 (totalorder): Define using libm_alias_double.
26694 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26695 <libm-alias-double.h>.
26696 (totalordermag): Define using libm_alias_double.
26697 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26698 libm_alias_double.
26699 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26700 libm_alias_double.
26701 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26702 <libm-alias-double.h>.
26703 (getpayload): Define using libm_alias_double.
26704 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26705 <libm-alias-double.h>.
26706 (roundeven): Define using libm_alias_double.
26707 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26708 <libm-alias-double.h>.
26709 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26710 <libm-alias-double.h>.
26711 (totalorder): Define using libm_alias_double.
26712 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26713 <libm-alias-double.h>.
26714 (totalordermag): Define using libm_alias_double.
26715 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26716 libc compat symbol here.
26717 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26718 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26719 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26720 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26721 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26722 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26723 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26724 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26725 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26726 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26727
26728 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26729
26730 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26731 _dl_relocate_static_pie instead of _dl_start to compute load
26732 address in static PIE. Return 0 if _DYNAMIC is undefined for
26733 static executable.
26734
26735 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26736
26737 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26738 _DYNAMIC is undefined for static executable.
26739
26740 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26741
26742 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26743
26744 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26745
26746 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26747
26748 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26749
26750 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26751 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26752 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26753 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26754 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26755 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26756 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26757 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26758 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26759 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26760 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26761 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26762 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26763 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26764 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26765 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26766 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26767
26768 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26769
26770 * math/bits/cmathcalls.h (cimag): Remove inline.
26771 (creal): Remove inline.
26772 (conj): Remove inline.
26773
26774 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26775
26776 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26777 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26778 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26779 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26780 (issignalingf_inline): Likewise.
26781 (POWF_LOG2_TABLE_BITS): Likewise.
26782 (POWF_LOG2_POLY_ORDER): Likewise.
26783 (POWF_SCALE_BITS): Likewise.
26784 (POWF_SCALE): Likewise.
26785 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26786 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26787 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26788
26789 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26790
26791 * math/Makefile (type-float-routines): Add e_log2f_data.
26792 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26793 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26794 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26795 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26796 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26797 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26798 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26799
26800 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26801
26802 * math/Makefile (type-float-routines): Add e_logf_data.
26803 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26804 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26805 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26806 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26807 * sysdeps/i386/fpu/e_logf_data.c: New file.
26808 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26809 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26810
26811 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26812
26813 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26814 undefined _DYNAMIC in PIE libc.a.
26815 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26816 Likewse.
26817
26818 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26819
26820 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26821 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26822 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26823 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26824 (__signbit): Remove.
26825 (__signbitl): Remove.
26826 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26827 (__signbit): Remove.
26828 (__signbitl): Remove.
26829 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26830 (__signbit): Remove.
26831 (__signbitl): Remove.
26832 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26833 (__signbit): Remove.
26834 (__signbitl): Remove.
26835 * sysdeps/tile/bits/mathinline.h: Delete file.
26836 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26837 (__signbit): Remove.
26838 (__signbitl): Remove.
26839
26840 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26841
26842 * math/math.h: Improve handling of C99 isgreater macros.
26843 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26844 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26845 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26846 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26847 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26848
26849 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26850
26851 * sysdeps/aarch64/libm-test-ulps: Update.
26852
26853 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26854
26855 [BZ #22225]
26856 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26857 math_opt_barrier on argument when doing arithmetic on it.
26858 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26859 Likewise. Use math_force_eval not math_opt_barrier after
26860 arithmetic.
26861 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26862 math_opt_barrier on argument when doing arithmetic on it.
26863 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26864 Likewise.
26865
26866 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26867
26868 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26869 libc_hidden_def.
26870 (__freeifaddrs): Likewise.
26871
26872 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26873
26874 * include/dirent.h (__dirfd): New declaration.
26875 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26876 alias.
26877 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26878 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26879 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26880 * include/unistd.h (__revoke): New declaration.
26881 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26882 alias.
26883 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26884 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26885 revoke.
26886 * include/dirent.h (__seekdir): New declaration.
26887 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26888 redefine as weak alias.
26889 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26890 of seekdir.
26891 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26892 and use libc_hidden_def on them.
26893 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26894 them.
26895 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26896 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26897 instead of getifaddrs and freeifaddrs.
26898
26899 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 [BZ #18822]
26902 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26903 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26904 (__dso_handle): Remove declaration.
26905 * dlfcn/tstatexit.c (__dso_handle): Removed.
26906 (main): Don't check __dso_handle.
26907 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26908 (main): Don't check __dso_handle.
26909 * include/dso_handle.h: New file.
26910 * malloc/mtrace.c: Include <dso_handle.h>.
26911 (mtrace): Pass __dso_handle directly.
26912 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26913 (__dso_handle): Remove declaration.
26914 (__pthread_atfork): Pass __dso_handle directly.
26915 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26916 (__dso_handle): Removed.
26917 * posix/wordexp-test.c: Include <dso_handle.h>.
26918 (__dso_handle): Remove declaration.
26919 (__app_register_atfork): Pass __dso_handle directly.
26920 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26921 (__dso_handle): Remove declaration.
26922 (at_quick_exit): Pass __dso_handle directly.
26923 * stdlib/atexit.c: Include <dso_handle.h>.
26924 (__dso_handle): Remove declaration.
26925 (atexit): Pass __dso_handle directly.
26926 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26927 (__dso_handle): Removed.
26928
26929 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26930
26931 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26932 using VDSO.
26933
26934 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26935
26936 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26937 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26938 values to correct default value for given type.
26939
26940 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26941
26942 [BZ #22101]
26943 * elf/Makefile (tests): Add tst-debug1.
26944 ($(objpfx)tst-debug1): New.
26945 ($(objpfx)tst-debug1.out): Likewise.
26946 ($(objpfx)tst-debug1mod1.so): Likewise.
26947 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26948 with p_filesz == 0.
26949 * elf/tst-debug1.c: New file.
26950
26951 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26952
26953 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26954 Define using __ifunc.
26955
26956 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26957
26958 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26959 exp2f() values.
26960
26961 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26962
26963 [BZ #22156]
26964 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26965
26966 2017-09-26 Florian Weimer <fweimer@redhat.com>
26967
26968 * resolv/Makefile (tests-internal): Fix typo in comment.
26969
26970 2017-09-26 Florian Weimer <fweimer@redhat.com>
26971
26972 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26973
26974 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26975
26976 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26977 Use an union instead of a max_align_t array for __space,
26978 so that __space is the same size on all platforms.
26979 * malloc/scratch_buffer_grow_preserve.c
26980 (__libc_scratch_buffer_grow_preserve): Likewise.
26981
26982 [BZ #22183]
26983 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26984 version to 2.
26985 * posix/Makefile (routines): Add glob-lstat-compat and
26986 glob64-lstat-compat.
26987 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26988 * posix/glob-lstat-compat.c: New file.
26989 * posix/glob64-lstat-compat.c: Likewise.
26990 * posix/tst-glob_lstat_compat.c: Likewise.
26991 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26992 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26993 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26994 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26995 Likewise.
26996 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26997 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26998 * posix/glob.c (glob_lstat): New function.
26999 (glob): Rename to __glob and add versioned symbol to 2.27.
27000 (glob_in_dir): Use glob_lstat.
27001 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27002 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27003 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27004 2.27.
27005 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27006 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27007 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27008 gl_lstat on glob call.
27009 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27010 and glob64 symbols.
27011 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27012 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27013 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27014 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27015 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27016 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27017 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27018 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27019 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27020 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27021 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27022 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27024 Likewise.
27025 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27027 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27028 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27029 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27030 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27031 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27032 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27033 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27034 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27035 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27036 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27037
27038 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27039
27040 * configure.ac (AS): Require binutils 2.25 or later.
27041 * configure: Regenerated.
27042
27043 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27044
27045 [BZ #22207]
27046 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27047 VM size.
27048
27049 2017-09-25 DJ Delorie <dj@redhat.com>
27050
27051 [BZ #22161]
27052 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27053 resetting timeout.
27054
27055 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27056
27057 * sysdeps/ieee754/dbl-64/sincos32.h
27058 [SINCCOS32_H]: Remove define.
27059 [SINCOS32_H]: Define.
27060
27061 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27062
27063 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27064 (exp2f): Likewise.
27065 * math/w_exp2f.c: New file.
27066 * math/w_expf.c: New file.
27067 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27068 * math/w_expf_compat.c (__expf_compat): Likewise.
27069 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27070 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27071 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27072 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27073 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27074 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27075 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27076 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27077 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27078 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27079 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27080 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27081 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27082 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27084 Likewise.
27085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27086 Likewise.
27087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27088 Likewise.
27089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27090 Likewise.
27091 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27092 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27093 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27094 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27095 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27096 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27097 Likewise.
27098 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27099 Likewise.
27100 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27101 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27102 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27103
27104 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27105
27106 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27107 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27108 (roundtoint, converttoint): Likewise.
27109 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27110 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27111 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27112 * sysdeps/ieee754/flt-32/math_config.h: New file.
27113 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27114 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27115 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27116 * sysdeps/i386/fpu/math_errf.c: New file.
27117 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27118 * sysdeps/ia64/fpu/math_errf.c: New file.
27119 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27120 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27121
27122 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27123
27124 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27125 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27126 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27127 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27128 to make sure that these symbols are defined.
27129 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27130 of <limits.h>
27131 (__need_NULL): Do not define.
27132 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27133 alignment.
27134 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27135 CMGROUP_MAX, cmsgcred): Do not define.
27136 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27137 NULL.
27138 * bits/socket.h: Likewise.
27139 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27140 __gettimeofday instead of gettimeofday.
27141 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27142 instead of settimeofday.
27143
27144 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27145
27146 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27147 (asinhf): Define using libm_alias_float.
27148 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27149 (atanf): Define using libm_alias_float.
27150 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27151 (cbrtf): Define using libm_alias_float.
27152 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27153 (ceilf): Define using libm_alias_float.
27154 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27155 <libm-alias-float.h>.
27156 (copysignf): Define using libm_alias_float.
27157 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27158 (cosf): Define using libm_alias_float.
27159 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27160 (erff): Define using libm_alias_float.
27161 (erfcf): Likewise.
27162 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27163 (expm1f): Define using libm_alias_float.
27164 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27165 (fabsf): Define using libm_alias_float.
27166 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27167 (floorf): Define using libm_alias_float.
27168 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27169 (frexpf): Define using libm_alias_float.
27170 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27171 libm_alias_float.
27172 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27173 <libm-alias-float.h>.
27174 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27175 libm_alias_float.
27176 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27177 <libm-alias-float.h>.
27178 (getpayloadf): Define using libm_alias_float.
27179 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27180 <libm-alias-float.h>.
27181 (llrintf): Define using libm_alias_float.
27182 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27183 <libm-alias-float.h>.
27184 (llroundf): Define using libm_alias_float.
27185 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27186 (logbf): Define using libm_alias_float.
27187 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27188 (lrintf): Define using libm_alias_float.
27189 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27190 (lroundf): Define using libm_alias_float.
27191 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27192 (modff): Define using libm_alias_float.
27193 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27194 <libm-alias-float.h>.
27195 (nearbyintf): Define using libm_alias_float.
27196 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27197 <libm-alias-float.h>.
27198 (nextafterf): Define using libm_alias_float.
27199 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27200 <libm-alias-float.h>.
27201 (nextupf): Define using libm_alias_float.
27202 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27203 <libm-alias-float.h>.
27204 (remquof): Define using libm_alias_float.
27205 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27206 (rintf): Define using libm_alias_float.
27207 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27208 <libm-alias-float.h>.
27209 (roundevenf): Define using libm_alias_float.
27210 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27211 (roundf): Define using libm_alias_float.
27212 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27213 using libm_alias_float.
27214 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27215 <libm-alias-float.h>.
27216 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27217 Define using libm_alias_float.
27218 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27219 <libm-alias-float.h>.
27220 (sincosf): Define using libm_alias_float.
27221 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27222 (sinf): Define using libm_alias_float.
27223 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27224 (tanf): Define using libm_alias_float.
27225 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27226 (tanhf): Define using libm_alias_float.
27227 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27228 <libm-alias-float.h>.
27229 (totalorderf): Define using libm_alias_float.
27230 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27231 <libm-alias-float.h>.
27232 (totalordermagf): Define using libm_alias_float.
27233 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27234 (truncf): Define using libm_alias_float.
27235 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27236 libm_alias_float.
27237 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27238 libm_alias_float.
27239
27240 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27241
27242 [BZ #22146]
27243 math/math.h: Let fpclassify use the builtin in C++ mode, even
27244 when optimazing for size.
27245
27246 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27247
27248 * csu/Makefile (generated): Do not add version-info.h.
27249 (before-compile): Likewise.
27250 (all-Banner-files): Remove variable.
27251 ($(objpfx)version-info.h): Remove rule.
27252 * csu/version.c (banner): Do not include "version-info.h".
27253 * libidn/Banner: Remove.
27254 * manual/contrib.texi (Simon Josefsson): New entry.
27255
27256 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27257
27258 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27259 Remove conditionals on LDBL_MANT_DIG.
27260 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27261 (__ieee754_lgammal_r): Likewise.
27262
27263 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27264
27265 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27266 _Float128 and L().
27267 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27268 _Float128 and L(). Replace _Float128 with long double and L(x)
27269 with xL, throughout the file.
27270 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27271 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27272 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27273 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27274
27275 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27276
27277 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27278 sysdeps/ieee754/ldbl-128ibm.
27279 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27280 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27281 of including it. Keep _Float128 and L() intact. These will be
27282 reviewed by a separate patch.
27283 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27284 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27285 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27286 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27287
27288 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27289
27290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27291 (__finitef128): Define to __redirect___finitef128.
27292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27293 (__isinff128): Define to __redirect___isinff128.
27294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27295 (__isnanf128): Define to __redirect___isnanf128.
27296
27297 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27298
27299 * sysdeps/powerpc/powerpc64le/Makefile
27300 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27301 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27302
27303 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27304 Carlos O'Donell <carlos@redhat.com>
27305
27306 [BZ #22180]
27307 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27308 * stdlib/test-dlclose-exit-race.c: New file.
27309 * stdlib/test-dlclose-exit-race-helper.c: New file.
27310 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27311
27312 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27313
27314 * crypt/Banner: Remove file.
27315 * nptl/Banner: Likewise.
27316 * resolv/Banner: Likewise.
27317 * soft-fp/Banner: Likewise.
27318 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27319 ($(objpfx)version.d): Remove dependency on banner.h.
27320 ($(objpfx)version.os): Likewise.
27321 * nptl/version.c (banner): Do not include banner.h.
27322 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27323 Jelinek and BIND code.
27324
27325 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27326 Carlos O'Donell <carlos@redhat.com>
27327
27328 * support/xdlfcn.h: New file.
27329 * support/xdlfcn.c: New file.
27330 * support/Makefile (libsupport-routines): Add xdlfcn.
27331 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27332
27333 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27334
27335 [BZ #20142]
27336 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27337 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27338 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27339 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27340 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27341 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27342 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27343 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27344
27345 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27346 Ricky Zhou <rickyz@google.com>
27347 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27348
27349 [BZ #14333]
27350 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27351 Remove atomics.
27352 (__new_exitfn): Fail registration when we finished at_exit processing.
27353 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27354 * stdlib/on_exit.c (__on_exit): Likewise.
27355 * stdlib/exit.c (__exit_funcs_done): New variable.
27356 (__run_exit_handlers): Use __exit_funcs_lock.
27357 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27358 declarations.
27359 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27360 (test-cxa_atexit-race, test-on_exit-race): New tests.
27361 * stdlib/test-atexit-race-common.c: New file.
27362 * stdlib/test-atexit-race.c: New file.
27363 * stdlib/test-at_quick_exit-race.c: New file.
27364 * stdlib/test-cxa_atexit-race.c: New file.
27365 * stdlib/test-on_exit-race.c: New file.
27366
27367 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27368
27369 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27370 * benchtests/exp2f-inputs: Copy of expf-inputs.
27371 * benchtests/log2f-inputs: Copy of logf-inputs.
27372
27373 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27374
27375 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27376 Explicitly take address of first element of array arguments in
27377 call to INLINE_SYSCALL.
27378
27379 2017-09-19 Andreas Schwab <schwab@suse.de>
27380
27381 [BZ #22134]
27382 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27383 execveat first.
27384 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27385 unimplemented.
27386 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27387 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27388 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27389 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27390 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27391 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27392 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27393 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27394 * posix/Makefile (tests): Add tst-fexecve.
27395 * posix/tst-fexecve.c: New file.
27396
27397 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27398
27399 * benchtests/Makefile: Add logf benchmark.
27400 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27401
27402 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27403
27404 * benchtests/Makefile: Add expf benchmark.
27405 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27406
27407 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27408
27409 * csu/Makefile: Add -funwind-tables to libc-start.c.
27410 * debug/Makefile: Add -funwind-tables to backtrace.c.
27411 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27412 * sysdeps/arm/Makefile: Likewise.
27413 * sysdeps/i386/Makefile: Likewise.
27414 * sysdeps/m68k/Makefile: Likewise.
27415 * sysdeps/mips/Makefile: Likewise.
27416 * sysdeps/nios2/Makefile: Likewise.
27417 * sysdeps/sh/Makefile: Likewise.
27418 * sysdeps/sparc/Makefile: Likewise.
27419
27420 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27421
27422 * benchtests/Makefile (bench-math): Add trunc and truncf.
27423 (CFLAGS-bench-trunc.c): New variable.
27424 (CFLAGS-bench-truncf.c): Likewise.
27425 * benchtests/trunc-inputs: New file.
27426 * benchtests/truncf-inputs: Likewise.
27427
27428 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27429
27430 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27431
27432 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27433
27434 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27435 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27436 redefine.
27437 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27438 (exp10l): Define as weak alias.
27439 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27440 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27441 and redefine.
27442 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27443 (remainderl): Define as weak alias.
27444
27445 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27446 (fmal): Define using libm_alias_ldouble.
27447 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27448 (acoshl): Define using libm_alias_ldouble.
27449 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27450 (acosl): Define using libm_alias_ldouble.
27451 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27452 (asinl): Define using libm_alias_ldouble.
27453 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27454 (atan2l): Define using libm_alias_ldouble.
27455 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27456 (atanhl): Define using libm_alias_ldouble.
27457 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27458 (coshl): Define using libm_alias_ldouble.
27459 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27460 (exp10l): Define using libm_alias_ldouble.
27461 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27462 (exp2l): Define using libm_alias_ldouble.
27463 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27464 (expl): Define using libm_alias_ldouble.
27465 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27466 (fmodl): Define using libm_alias_ldouble.
27467 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27468 (hypotl): Define using libm_alias_ldouble.
27469 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27470 (j0l): Define using libm_alias_ldouble.
27471 (y0l): Likewise.
27472 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27473 (j1l): Define using libm_alias_ldouble.
27474 (y1l): Likewise.
27475 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27476 (jnl): Define using libm_alias_ldouble.
27477 (ynl): Likewise.
27478 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27479 (log10l): Define using libm_alias_ldouble.
27480 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27481 (log2l): Define using libm_alias_ldouble.
27482 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27483 (logl): Define using libm_alias_ldouble.
27484 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27485 (powl): Define using libm_alias_ldouble.
27486 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27487 (remainderl): Define using libm_alias_ldouble.
27488 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27489 (sinhl): Define using libm_alias_ldouble.
27490 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27491 (sqrtl): Define using libm_alias_ldouble.
27492 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27493 (tgammal): Define using libm_alias_ldouble.
27494 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27495 (exp10l): Do not use long_double_symbol here.
27496 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27497 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27498 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27499 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27500 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27501 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27502 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27503 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27504 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27505 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27506 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27507 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27508 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27509 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27510 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27511 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27512 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27513 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27514 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27515 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27516 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27517 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27518
27519 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27520
27521 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27522 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27523
27524 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27525
27526 * io/read.c (read): Add libc_hidden_weak.
27527 * sysdeps/mach/hurd/read.c (read): Likewise.
27528 * io/write.c (write): Likewise.
27529 * sysdeps/mach/hurd/write.c (write): Likewise.
27530 * io/pread64.c (__pread64): Likewise.
27531 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27532 * posix/pread64.c (__pread64): Add libc_hidden_def.
27533
27534 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27535
27536 * benchtests/scripts/compare_strings.py: New option -g.
27537 (draw_graph): Print a message that a graph is being generated.
27538 (process_results): Generate graph only if -g is passed.
27539 (main): Process option -g.
27540
27541 * benchtests/scripts/compare_strings.py (process_results):
27542 Better spacing for output.
27543
27544 * benchtests/scripts/compare_strings.py: Use argparse.
27545 * benchtests/README: Document existence of compare_strings.py.
27546
27547 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27548
27549 * math/s_fma.c: Include <libm-alias-double.h>.
27550 (fma): Define using libm_alias_double.
27551 * math/s_nextafter.c: Include <libm-alias-double.h>.
27552 (nextafter): Define using libm_alias_double.
27553 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27554 (acos): Define using libm_alias_double.
27555 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27556 (aocsh): Define using libm_alias_double.
27557 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27558 (asin): Define using libm_alias_double.
27559 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27560 (atan2): Define using libm_alias_double.
27561 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27562 (atanh): Define using libm_alias_double.
27563 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27564 (cosh): Define using libm_alias_double.
27565 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27566 (exp10): Define using libm_alias_double.
27567 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27568 (exp2): Define using libm_alias_double.
27569 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27570 (exp): Define using libm_alias_double.
27571 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27572 (fmod): Define using libm_alias_double.
27573 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27574 (hypot): Define using libm_alias_double.
27575 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27576 (j0): Define using libm_alias_double.
27577 (y0): Likewise.
27578 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27579 (j1): Define using libm_alias_double.
27580 (y1): Likewise.
27581 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27582 (jn): Define using libm_alias_double.
27583 (yn): Likewise.
27584 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27585 (log10): Define using libm_alias_double.
27586 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27587 (log2): Define using libm_alias_double.
27588 * math/w_log_compat.c: Include <libm-alias-double.h>.
27589 (log): Define using libm_alias_double.
27590 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27591 (pow): Define using libm_alias_double.
27592 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27593 (remainder): Define using libm_alias_double.
27594 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27595 (sinh): Define using libm_alias_double.
27596 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27597 (sqrt): Define using libm_alias_double.
27598 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27599 (tgamma): Define using libm_alias_double.
27600 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27601 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27602 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27603 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27604 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27605 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27606 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27607 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27608 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27609 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27610 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27611 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27612 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27613 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27614 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27615 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27616 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27617 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27618 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27619 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27620 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27621 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27622 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27623 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27624 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27625
27626 * math/e_acoshl.c: Remove.
27627 * math/e_acosl.c: Likewise.
27628 * math/e_asinl.c: Likewise.
27629 * math/e_atan2l.c: Likewise.
27630 * math/e_atanhl.c: Likewise.
27631 * math/e_coshl.c: Likewise.
27632 * math/e_expl.c: Likewise.
27633 * math/e_fmodl.c: Likewise.
27634 * math/e_gammal_r.c: Likewise.
27635 * math/e_hypotl.c: Likewise.
27636 * math/e_j0l.c: Likewise.
27637 * math/e_j1l.c: Likewise.
27638 * math/e_jnl.c: Likewise.
27639 * math/e_lgammal_r.c: Likewise.
27640 * math/e_log10l.c: Likewise.
27641 * math/e_log2l.c: Likewise.
27642 * math/e_logl.c: Likewise.
27643 * math/e_powl.c: Likewise.
27644 * math/e_rem_pio2l.c: Likewise.
27645 * math/e_sinhl.c: Likewise.
27646 * math/e_sqrtf128.c: Likewise.
27647 * math/e_sqrtl.c: Likewise.
27648 * math/k_cosl.c: Likewise.
27649 * math/k_sinl.c: Likewise.
27650 * math/k_tanl.c: Likewise.
27651 * math/s_asinhl.c: Likewise.
27652 * math/s_atanl.c: Likewise.
27653 * math/s_cbrtl.c: Likewise.
27654 * math/s_erfl.c: Likewise.
27655 * math/s_expm1l.c: Likewise.
27656 * math/s_log1pl.c: Likewise.
27657 * math/s_tanhl.c: Likewise.
27658
27659 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27660
27661 [BZ #21745]
27662 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27663 [$(subdir) = math] (sysdep_calls): New variable. Has the
27664 previous contents of sysdep_routines, but re-sorted..
27665 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27666 sysdep_calls.
27667 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27668 defined in sysdep_calls and replace by the respective m_* names.
27669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27670 (compat_symbol): Undefine to avoid duplicated compat symbols in
27671 libc.
27672
27673 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27674
27675 * math/s_fmaf.c: Include <libm-alias-float.h>.
27676 (fmaf): Define using libm_alias_float.
27677 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27678 (acosf): Define using libm_alias_float.
27679 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27680 (acoshf): Define using libm_alias_float.
27681 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27682 (asinf): Define using libm_alias_float.
27683 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27684 (atan2f): Define using libm_alias_float.
27685 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27686 (atanhf): Define using libm_alias_float.
27687 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27688 (coshf): Define using libm_alias_float.
27689 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27690 (exp10f): Define using libm_alias_float.
27691 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27692 (fmodf): Define using libm_alias_float.
27693 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27694 (hypotf): Define using libm_alias_float.
27695 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27696 (j0f): Define using libm_alias_float.
27697 (y0f): Likewise.
27698 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27699 (j1f): Define using libm_alias_float.
27700 (y1f): Likewise.
27701 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27702 (jnf): Define using libm_alias_float.
27703 (ynf): Likewise.
27704 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27705 (log10f): Define using libm_alias_float.
27706 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27707 (log2f): Define using libm_alias_float.
27708 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27709 (logf): Define using libm_alias_float.
27710 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27711 (powf): Define using libm_alias_float.
27712 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27713 (remainderf): Define using libm_alias_float.
27714 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27715 (sinhf): Define using libm_alias_float.
27716 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27717 (sqrtf): Define using libm_alias_float.
27718 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27719 (tgammaf): Define using libm_alias_float.
27720
27721 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27722
27723 * include/math.h (roundeven): Change hidden_proto call to
27724 __roundeven.
27725 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27726 alias.
27727 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27728 (y0): Rename to __y0 and define as weak alias.
27729 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27730 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27731 alias.
27732 (y0f): Rename to __y0f and define as weak alias.
27733 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27734 alias.
27735 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27736 (y1): Rename to __y1 and define as weak alias.
27737 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27738 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27739 alias.
27740 (y1f): Rename to __y1f and define as weak alias.
27741 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27742 alias.
27743 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27744 (yn): Rename to __yn and define as weak alias.
27745 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27746 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27747 alias.
27748 (ynf): Rename to __ynf and define as weak alias.
27749 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27750 (fromfp): Define as weak alias.
27751 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27752 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27753 (fromfpx): Define as weak alias.
27754 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27755 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27756 __getpayload and define as weak alias.
27757 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27758 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27759 __roundeven and define as weak alias.
27760 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27761 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27762 __setpayload.
27763 (setpayload): Define as weak alias.
27764 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27765 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27766 __setpayloadsig.
27767 (setpayloadsig): Define as weak alias.
27768 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27769 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27770 __totalorder and define as weak alias.
27771 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27772 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27773 to __totalordermag and define as weak alias.
27774 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27775 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27776 (ufromfp): Define as weak alias.
27777 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27778 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27779 __ufromfpx.
27780 (ufromfpx): Define as weak alias.
27781 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27782 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27783 Rename to __getpayload and define as weak alias.
27784 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27785 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27786 Rename to __roundeven and define as weak alias.
27787 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27788 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27789 Rename to __totalorder and define as weak alias.
27790 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27791 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27792 (totalordermag): Rename to __totalordermag and define as weak
27793 alias.
27794 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27795 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27796 macro.
27797 (__roundevenl): Likewise.
27798 (__totalorderl): Likewise.
27799 (__totalordermagl): Likewise
27800 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27801 __fromfpf128.
27802 (fromfpf128): Define as weak alias.
27803 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27804 __fromfpxf128.
27805 (fromfpxf128): Define as weak alias.
27806 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27807 __setpayloadf128.
27808 (setpayloadf128): Define as weak alias.
27809 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27810 __setpayloadsigf128.
27811 (setpayloadsigf128): Define as weak alias.
27812 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27813 __ufromfpf128.
27814 (ufromfpf128): Define as weak alias.
27815 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27816 __ufromfpxf128.
27817 (ufromfpxf128): Define as weak alias.
27818 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27819 (fromfpf): Define as weak alias.
27820 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27821 __fromfpxf.
27822 (fromfpxf): Define as weak alias.
27823 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27824 __getpayloadf and define as weak alias.
27825 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27826 __roundevenf and define as weak alias.
27827 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27828 __setpayloadf.
27829 (setpayloadf): Define as weak alias.
27830 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27831 __setpayloadsigf.
27832 (setpayloadsigf): Define as weak alias.
27833 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27834 __totalorderf and define as weak alias.
27835 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27836 Rename to __totalordermagf and define as weak alias.
27837 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27838 __ufromfpf.
27839 (ufromfpf): Define as weak alias.
27840 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27841 __ufromfpxf.
27842 (ufromfpxf): Define as weak alias.
27843 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27844 __fromfpl.
27845 (fromfpl): Define as weak alias.
27846 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27847 __fromfpxl.
27848 (fromfpxl): Define as weak alias.
27849 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27850 to __getpayloadl and define as weak alias.
27851 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27852 __roundevenl and define as weak alias.
27853 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27854 __setpayloadl.
27855 (setpayloadl): Define as weak alias.
27856 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27857 __setpayloadsigl.
27858 (setpayloadsigl): Define as weak alias.
27859 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27860 to __totalorderl and define as weak alias.
27861 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27862 Rename to __totalordermagl and define as weak alias.
27863 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27864 __ufromfpl.
27865 (ufromfpl): Define as weak alias.
27866 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27867 __ufromfpxl.
27868 (ufromfpxl): Define as weak alias.
27869 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27870 __fromfpl.
27871 (fromfpl): Define as weak alias.
27872 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27873 __fromfpxl.
27874 (fromfpxl): Define as weak alias.
27875 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27876 Rename to __getpayloadl and define as weak alias.
27877 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27878 to __roundevenl and define as weak alias. Call __roundeven
27879 instead of roundeven.
27880 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27881 __setpayloadl.
27882 (setpayloadl): Define as weak alias.
27883 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27884 __setpayloadsigl.
27885 (setpayloadsigl): Define as weak alias.
27886 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27887 Rename to __totalorderl and define as weak alias.
27888 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27889 Rename to __totalordermagl and define as weak alias.
27890 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27891 __ufromfpl.
27892 (ufromfpl): Define as weak alias.
27893 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27894 __ufromfpxl.
27895 (ufromfpxl): Define as weak alias.
27896 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27897 __fromfpl.
27898 (fromfpl): Define as weak alias.
27899 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27900 __fromfpxl.
27901 (fromfpxl): Define as weak alias.
27902 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27903 __getpayloadl and define as weak alias.
27904 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27905 __roundevenl and define as weak alias.
27906 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27907 __setpayloadl.
27908 (setpayloadl): Define as weak alias.
27909 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27910 __setpayloadsigl.
27911 (setpayloadsigl): Define as weak alias.
27912 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27913 __totalorderl and define as weak alias.
27914 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27915 Rename to __totalordermagl and define as weak alias.
27916 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27917 __ufromfpl.
27918 (ufromfpl): Define as weak alias.
27919 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27920 __ufromfpxl.
27921 (ufromfpxl): Define as weak alias.
27922
27923 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27924
27925 * benchtests/bench-string.h (realloc_bufs): New function.
27926 (test_init): Call it.
27927 * benchtests/bench-memset-large.c (do_test): Likewise.
27928 * benchtests/bench-memset.c (do_test): Likewise.
27929
27930 * benchtests/bench-memset-large.c: Print output in JSON
27931 format.
27932 * benchtests/bench-memset.c: Likewise.
27933
27934 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27935
27936 [BZ #21084]
27937 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27938 * iconvdata/Makefile: Add IBM858.
27939 * iconvdata/gconv-modules: Likewise.
27940 * iconvdata/tst-tables.sh: Likewise.
27941 * iconvdata/ibm858.c: New file.
27942 * localedata/charmaps/IBM858: Likewise.
27943
27944 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27945
27946 [BZ #22023]
27947 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27948 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27949
27950 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27951
27952 [BZ #22112]
27953 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27954 and add tel_int_fmt.
27955
27956 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27957
27958 * sysdeps/generic/libm-alias-float128.h: New file.
27959 * sysdeps/generic/math-type-macros-float128.h: Include
27960 <libm-alias-float128.h>.
27961 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27962
27963 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27964
27965 * sysdeps/generic/libm-alias-ldouble.h: New file.
27966 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27967 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27968 * sysdeps/generic/math-type-macros-ldouble.h: Include
27969 <libm-alias-ldouble.h>.
27970 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27971 libm_alias_ldouble.
27972
27973 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27974
27975 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27976 * math/w_exp_compat.c: ... here.
27977 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27978 * math/w_expf_compat.c: ... here.
27979 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27980 * math/w_expl_compat.c: ... here.
27981 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27982 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27983 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27984 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27985
27986 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27987
27988 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27989 redefine.
27990 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27991 macro.
27992 (ldexpl): Only define as compat symbol for libc, not libm.
27993 (scalbnl): Define as compat symbol for libc here.
27994 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27995 define for [IS_IN (libc)].
27996 (__ldexpl_2): Remove alias.
27997 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27998 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27999 name in long_double_symbol call.
28000 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28001 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28002 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28003 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28004 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28005 Remove macro.
28006 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28007 Define as compat symbol.
28008
28009 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28010
28011 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28012 * sysdeps/unix/sysv/linux/alpha/Makefile
28013 [$(subdir) = csu] (sysdep_routines): Remove rule.
28014
28015 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28016
28017 * sysdeps/generic/libm-alias-double.h: New file.
28018 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28019 * sysdeps/generic/math-type-macros-double.h: Include
28020 <libm-alias-double.h>.
28021 [declare_mgen_alias] (declare_mgen_alias): Define to use
28022 libm_alias_double.
28023 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28024 (M_LIBM_NEED_COMPAT): Remove macro.
28025 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28026 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28027 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28028 code.
28029 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28030 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28031 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28032 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28033 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28034 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28035 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28036 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28037 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28038 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28039 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28040 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28041 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28042 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28043 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28044 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28045 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28046 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28047 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28048 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28049 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28050 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28051 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28052 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28053 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28054 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28055 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28056 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28057 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28058 macro.
28059 (declare_mgen_alias): New macro.
28060 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28061 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28063 (M_LIBM_NEED_COMPAT): Remove macro.
28064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28065 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28066 <first-versions.h>.
28067 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28068 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28069
28070 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28071
28072 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28073 (declare_mgen_alias_2): Remove.
28074 * sysdeps/generic/math-type-macros-double.h
28075 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28076 Likewise.
28077 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28078 alias.
28079 (ldexp): Define with declare_mgen_alias.
28080 (scalbn): Likewise.
28081
28082 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28083
28084 * grp/initgroups.c: Include config.h.
28085 (DEFAULT_CONFIG): New macro.
28086 (internal_getgrouplist): Use DEFAULT_CONFIG.
28087 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28088 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28089 (DEFAULT_DEFCONFIG): New macro.
28090 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28091 * nss/grp-lookup.c: Include config.h
28092 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28093 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28094 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28095 * manual/nss.texi: Update default values section.
28096
28097 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28098
28099 [BZ #21967]
28100 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28101 New.
28102 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28103 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28104 Handle MathVec_Prefer_No_AVX512.
28105 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28106 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28107 is set.
28108
28109 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28110
28111 * posix/sched_primax.c (__sched_get_priority_max): Add
28112 libc_hidden_def.
28113 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28114 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28115 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28116 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28117 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28118 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28119 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28120 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28121 Add aliases.
28122
28123 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28124
28125 * sysdeps/generic/libm-alias-float.h: New file.
28126 * sysdeps/generic/math-type-macros-float.h: Include
28127 <libm-alias-float.h>.
28128 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28129
28130 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28131
28132 [BZ #22093]
28133 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28134 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28135 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28136 (HWCAP_IMPORTANT): Likewise.
28137 (HWCAP_X86_64): New enum.
28138 (HWCAP_X86_AVX512_1): Updated.
28139 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28140 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28141 (modules-names): Add x86_64/tst-x86_64mod-1.
28142 (LDFLAGS-tst-x86_64mod-1.so): New.
28143 ($(objpfx)tst-x86_64-1): Likewise.
28144 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28145 (tst-x86_64-1-clean): Likewise.
28146 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28147 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28148
28149 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28150
28151 * po/sv.po: Update translations.
28152 * po/fr.po: Likewise.
28153
28154 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28155
28156 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28157 seconds.
28158 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28159 seconds.
28160 * elf/rtld-Rules: Fix $(error) use.
28161
28162 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28163
28164 [BZ #14925]
28165 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28166 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28167 * localedata/locales/bn_BD: “Bengali” was still used in some
28168 comments. Change it to “Bangla”.
28169
28170 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28171
28172 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28173
28174 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28175
28176 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28177 thunderx2t99p1 to list of cpu names.
28178 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28179 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28180
28181 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28182
28183 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28184 Use strcmp instead of tunable_is_name.
28185
28186 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28187
28188 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28189 (F_GET_RW_HINT): New macro.
28190 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28191 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28192 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28193 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28194 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28195 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28196 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28197 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28198 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28199
28200 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28201 (F_ADD_SEALS): New macro.
28202 [__USE_GNU] (F_GET_SEALS): Likewise.
28203 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28204 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28205 [__USE_GNU] (F_SEAL_GROW): Likewise.
28206 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28207
28208 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28209
28210 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28211 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28212 * posix/glob_internal.h (__glob_pattern_type):
28213 * posix/glob.c (glob):
28214 * posix/glob_pattern_p.c (__glob_pattern_p):
28215 Use them.
28216
28217 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28218 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28219 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28220 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28221 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28223 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28224 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28225 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28226 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28227 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28228 * sysdeps/wordsize-64/glob.c: Likewise.
28229 * sysdeps/wordsize-64/glob64.c: Likewise.
28230 * sysdeps/wordsize-64/globfree.c: Likewise.
28231 * sysdeps/wordsize-64/globfree64.c: Likewise.
28232 * sysdeps/unix/sysv/linux/glob.c: New file.
28233 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28234 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28235 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28236 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28237 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28238 adds !GLOB_NO_OLD_VERSION as an extra condition.
28239 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28240 using relative path instead of absolute one.
28241 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28242 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28243 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28244 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28245 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28246 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28247
28248 [BZ #1062]
28249 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28250 (glob): Use the same scratch buffer for both getlogin_r and
28251 getpwnam_r. Don’t require preallocation of the login name. This
28252 simplifies storage allocation, and corrects the handling of
28253 long login names.
28254
28255 [BZ #1062]
28256 * posix/glob.c (glob): Port recent patches to platforms
28257 lacking getpwnam_r.
28258 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28259 returns an error number rather than setting errno.
28260
28261 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28262 instead of GCC extension.
28263 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28264 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28265 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28266
28267 [BZ #866]
28268 [BZ #1062]
28269 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28270 * posix/bug-glob1.c: Remove file.
28271 * posix/tst-glob_symlinks.c: New file.
28272 * posix/glob.c (__lstat64): New macro.
28273 (is_dir): New function.
28274 (glob, glob_in_dir): Match symlinks even if they are dangling.
28275 (link_stat, link_exists_p): Remove. All uses removed.
28276
28277 [BZ #1062]
28278 [BZ #19971]
28279 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28280 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28281 All uses removed.
28282
28283 [BZ #1062]
28284 CVE-2017-15671
28285 * posix/Makefile (routines): Add globfree, globfree64, and
28286 glob_pattern_p.
28287 * posix/flexmember.h: New file.
28288 * posix/glob_internal.h: Likewise.
28289 * posix/glob_pattern_p.c: Likewise.
28290 * posix/globfree.c: Likewise.
28291 * posix/globfree64.c: Likewise.
28292 * sysdeps/gnu/globfree64.c: Likewise.
28293 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28294 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28295 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28296 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28297 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28298 * sysdeps/wordsize-64/globfree.c: Likewise.
28299 * sysdeps/wordsize-64/globfree64.c: Likewise.
28300 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28301 [NDEBUG): Remove comments.
28302 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28303 (dirent_type): New type. Use uint_fast8_t not
28304 uint8_t, as C99 does not require uint8_t.
28305 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28306 (struct readdir_result): Use dirent_type. Do not define skip_entry
28307 unless it is needed; this saves a byte on platforms lacking d_ino.
28308 (readdir_result_type, readdir_result_skip_entry):
28309 New functions, replacing ...
28310 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28311 these functions, which were removed. This makes the callers
28312 easier to read. All callers changed.
28313 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28314 (size_add_wrapv, glob_use_alloca): New static functions.
28315 (glob, glob_in_dir): Check for size_t overflow in several places,
28316 and fix some size_t checks that were not quite right.
28317 Remove old code using SHELL since Bash no longer
28318 uses this.
28319 (glob, prefix_array): Separate MS code better.
28320 (glob_in_dir): Remove old Amiga and VMS code.
28321 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28322 separate files.
28323 (glob_in_dir): Do not rely on undefined behavior in accessing
28324 struct members beyond their bounds. Use a flexible array member
28325 instead
28326 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28327 0/1. Caller changed.
28328 (glob): Fix memory leaks.
28329 * posix/glob64 (globfree64): Move to separate file.
28330 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28331 (globfree64): Remove hidden alias.
28332 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28333 oldglob.
28334 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28335 separate file.
28336 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28337 define.
28338 Move compat code to separate file.
28339 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28340 separate file.
28341
28342 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28343
28344 * resolv/tst-resolv-qtypes.c (domain): Changed to
28345 "const char domain[] =".
28346
28347 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28348
28349 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28350 version to 3.1.6.
28351
28352 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28353 (TCP_MD5SIG_EXT): Likewise.
28354 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28355 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28356 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28357
28358 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28359
28360 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28361
28362 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28363
28364 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28365
28366 [BZ #22100]
28367 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28368
28369 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28370
28371 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28372 before assuming that the file is empty. Avoid testing buffer content
28373 when nread == 0.
28374
28375 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28376
28377 [BZ #18858]
28378 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28379 Remove define.
28380 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28381 Likewise.
28382 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28383 Likewise.
28384 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28385 Likewise.
28386 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28387 Likewise.
28388 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28389 Likewise.
28390 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28391 Likewise.
28392
28393 2017-09-06 Florian Weimer <fweimer@redhat.com>
28394
28395 * malloc/dynarray_emplace_enlarge.c
28396 (__libc_dynarray_emplace_enlarge): Add missing else.
28397
28398 2017-09-06 Florian Weimer <fweimer@redhat.com>
28399
28400 [BZ #22096]
28401 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28402 case of failure to obtain the global conf object.
28403
28404 2017-09-06 Florian Weimer <fweimer@redhat.com>
28405
28406 [BZ #22095]
28407 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28408 dynarray allocation failure.
28409
28410 2017-09-06 Florian Weimer <fweimer@redhat.com>
28411
28412 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28413 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28414 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28415 New functions.
28416 (response): Call them. Add 'p', '6' flag processing.
28417 (test_reverse): New function.
28418 (test_get2_any): Call it.
28419 (test_no_inet6): Add 'p' test.
28420 (test_inet6): Likewise.
28421
28422 2017-09-06 Florian Weimer <fweimer@redhat.com>
28423
28424 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28425 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28426 the QNAME.
28427 (test_gai): Adjust query names. Add additional tests.
28428 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28429 test_get2. Adjust query names. Add additional tests.
28430 (test_no_inet6): New function, extracted from threadfunc.
28431 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28432 Add additional tests.
28433
28434 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28435
28436 [BZ #22070]
28437 * localedata/unicode-gen/utf8_gen.py: Set the width for
28438 characters with Prepended_Concatenation_Mark property to 1
28439 * localedata/charmaps/UTF-8: Updated using the improved script.
28440
28441 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28442
28443 [BZ #21750]
28444 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28445 use the range notation for all ranges of neighbouring characters
28446 with the same width.
28447
28448 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28449
28450 * sysdeps/generic/math-type-macros-double.h: Include
28451 <math-svid-compat.h>.
28452 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28453 * sysdeps/generic/math-type-macros-float.h: Include
28454 <math-svid-compat.h>.
28455 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28456 * sysdeps/generic/math-type-macros-ldouble.h: Include
28457 <math-svid-compat.h>.
28458 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28459 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28460 condition.
28461 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28462 * math/w_acosf_compat.c: Likewise.
28463 * math/w_acosh_compat.c: Likewise.
28464 * math/w_acoshf_compat.c: Likewise.
28465 * math/w_acoshl_compat.c: Likewise.
28466 * math/w_acosl_compat.c: Likewise.
28467 * math/w_asin_compat.c: Likewise.
28468 * math/w_asinf_compat.c: Likewise.
28469 * math/w_asinl_compat.c: Likewise.
28470 * math/w_atan2_compat.c: Likewise.
28471 * math/w_atan2f_compat.c: Likewise.
28472 * math/w_atan2l_compat.c: Likewise.
28473 * math/w_atanh_compat.c: Likewise.
28474 * math/w_atanhf_compat.c: Likewise.
28475 * math/w_atanhl_compat.c: Likewise.
28476 * math/w_cosh_compat.c: Likewise.
28477 * math/w_coshf_compat.c: Likewise.
28478 * math/w_coshl_compat.c: Likewise.
28479 * math/w_exp10_compat.c: Likewise.
28480 * math/w_exp10f_compat.c: Likewise.
28481 * math/w_exp10l_compat.c: Likewise.
28482 * math/w_exp2_compat.c: Likewise.
28483 * math/w_exp2f_compat.c: Likewise.
28484 * math/w_exp2l_compat.c: Likewise.
28485 * math/w_fmod_compat.c: Likewise.
28486 * math/w_fmodf_compat.c: Likewise.
28487 * math/w_fmodl_compat.c: Likewise.
28488 * math/w_hypot_compat.c: Likewise.
28489 * math/w_hypotf_compat.c: Likewise.
28490 * math/w_hypotl_compat.c: Likewise.
28491 * math/w_j0_compat.c: Likewise.
28492 * math/w_j0f_compat.c: Likewise.
28493 * math/w_j0l_compat.c: Likewise.
28494 * math/w_j1_compat.c: Likewise.
28495 * math/w_j1f_compat.c: Likewise.
28496 * math/w_j1l_compat.c: Likewise.
28497 * math/w_jn_compat.c: Likewise.
28498 * math/w_jnf_compat.c: Likewise.
28499 * math/w_jnl_compat.c: Likewise.
28500 * math/w_lgamma_r_compat.c: Likewise.
28501 * math/w_lgammaf_r_compat.c: Likewise.
28502 * math/w_lgammal_r_compat.c: Likewise.
28503 * math/w_log10_compat.c: Likewise.
28504 * math/w_log10f_compat.c: Likewise.
28505 * math/w_log10l_compat.c: Likewise.
28506 * math/w_log2_compat.c: Likewise.
28507 * math/w_log2f_compat.c: Likewise.
28508 * math/w_log2l_compat.c: Likewise.
28509 * math/w_log_compat.c: Likewise.
28510 * math/w_logf_compat.c: Likewise.
28511 * math/w_logl_compat.c: Likewise.
28512 * math/w_pow_compat.c: Likewise.
28513 * math/w_powf_compat.c: Likewise.
28514 * math/w_powl_compat.c: Likewise.
28515 * math/w_remainder_compat.c: Likewise.
28516 * math/w_remainderf_compat.c: Likewise.
28517 * math/w_remainderl_compat.c: Likewise.
28518 * math/w_sinh_compat.c: Likewise.
28519 * math/w_sinhf_compat.c: Likewise.
28520 * math/w_sinhl_compat.c: Likewise.
28521 * math/w_sqrt_compat.c: Likewise.
28522 * math/w_sqrtf_compat.c: Likewise.
28523 * math/w_sqrtl_compat.c: Likewise.
28524 * math/w_tgamma_compat.c: Likewise.
28525 * math/w_tgammaf_compat.c: Likewise.
28526 * math/w_tgammal_compat.c: Likewise.
28527 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28528 [LIBM_SVID_COMPAT].
28529 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28530 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28531 [LIBM_SVID_COMPAT].
28532 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28533 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28534 [LIBM_SVID_COMPAT].
28535 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28536 * sysdeps/i386/fpu/w_sqrt.c: New file.
28537 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28538 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28539 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28540 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28541 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28542 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28543 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28544 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28545 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28546 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28547 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28548 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28549 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28550 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28551 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28552 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28553 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28554 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28555 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28556 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28557 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28558 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28559 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28560 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28561 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28562 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28563 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28564 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28565 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28566 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28567 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28568 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28569 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28570 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28571 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28572 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28573 * sysdeps/ia64/fpu/w_log.c: Likewise.
28574 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28575 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28576 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28577 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28578 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28579 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28580 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28581 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28582 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28583 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28584 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28585 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28586 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28587 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28588 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28589 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28590 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28591 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28592 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28593 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28594 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28595 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28596 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28597 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28598 [LIBM_SVID_COMPAT].
28599 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28600 * sysdeps/ieee754/k_standard.c: Likewise.
28601 * sysdeps/ieee754/k_standardf.c: Likewise.
28602 * sysdeps/ieee754/k_standardl.c: Likewise.
28603 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28604 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28605 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28606 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28607 long_double_symbol call on [LIBM_SVID_COMPAT].
28608 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28609 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28610 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28611 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28612 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28613 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28614 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28615 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28616 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28617 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28618 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28619 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28620 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28621 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28622 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28623 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28624 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28625 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28626 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28627 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28628 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28629 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28630
28631 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28632
28633 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28634 * malloc/tst-mallocstate.c: Convert from test-skeleton
28635 to test-driver. Ifdef code using TEST_COMPAT macro.
28636 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28637 * math/test-matherr.c: Likewise.
28638
28639 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28640
28641 [BZ #22086]
28642 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28643 comparing word with byte-swapped constant.
28644
28645 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28646
28647 [BZ #20498]
28648 * locale/iso-639.def: add Miskito.
28649 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28650 * localedata/locales/miq_NI: New file.
28651
28652 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28653
28654 [BZ #18822]
28655 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28656 (__mkdir): Likewise.
28657 * io/chmod.c (__chmod): Add libc_hidden_def.
28658 * io/mkdir.c (__mkdir): Likewise.
28659 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28660 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28661 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28662 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28663
28664 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28665
28666 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28667 version to 4.13.
28668
28669 [BZ #22082]
28670 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28671 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28672
28673 2017-09-04 Florian Weimer <fweimer@redhat.com>
28674
28675 * math/math.h: Issue warning if log is defined.
28676
28677 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28678
28679 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28680 kernel version to 4.13.
28681
28682 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28683
28684 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28685 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28686 parameter.
28687 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28688 just <bits/types.h>.
28689 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28690 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28691 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28692 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28693 * misc/preadv2.c: Include <errno.h>.
28694 * misc/preadv64v2.c: Include <errno.h>.
28695 * misc/pwritev2.c: Include <errno.h>.
28696 * misc/pwritev64v2.c: Include <errno.h>.
28697 * sysdeps/posix/preadv2.c: Include <errno.h>.
28698 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28699 Fix <unistd.h> inclusion.
28700 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28701 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28702 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28703 __strtoul_internal): New functions.
28704 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28705 * sysdeps/posix/system.c: Include <sigsetops.h>.
28706 * sysdeps/mach/hurd/i386/Makefile
28707 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28708 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28709 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28710 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28711 __feraiseexcept_renamed to feraiseexcept instead of
28712 __GI_feraiseexcept.
28713 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28714 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28715 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28716 RWF_NOWAIT): Define to 0 if undefined already.
28717 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28718 boils down to 0.
28719 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28720 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28721
28722 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28723
28724 * manual/math.texi (pow10): Do not document.
28725 (pow10f): Likewise.
28726 (pow10l): Likewise.
28727 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28728 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28729 * math/libm-test-exp10.inc (pow10_test): Remove.
28730 (do_test): Do not call pow10.
28731 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28732 [NO_LONG_DOUBLE] (pow10l): Likewise.
28733 * math/w_exp10f_compat.c (pow10f): Likewise.
28734 * math/w_exp10l_compat.c (pow10l): Likewise.
28735 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28736 (pow10): Make into compat symbol.
28737 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28738 (pow10f): Make into compat symbol.
28739 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28740 (pow10l): Make into compat symbol.
28741 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28742 pow10.
28743 (CFLAGS-nldbl-pow10.c): Remove variable..
28744 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28745 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28746 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28747 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28748 Undefine and redefine.
28749 (pow10l): Make into compat symbol.
28750 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28751 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28752 * sysdeps/arm/libm-test-ulps: Likewise.
28753 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28754 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28755 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28756 * sysdeps/microblaze/libm-test-ulps: Likewise.
28757 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28758 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28759 * sysdeps/nios2/libm-test-ulps: Likewise.
28760 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28761 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28762 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28763 * sysdeps/sh/libm-test-ulps: Likewise.
28764 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28765 * sysdeps/tile/libm-test-ulps: Likewise.
28766 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28767
28768 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28769
28770 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28771
28772 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28773
28774 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28775 "../ChangeLog.old/ChangeLog.8".
28776 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28777 "../ChangeLog.old/ChangeLog.14".
28778
28779 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28780
28781 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28782 Threads Library.
28783
28784 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28785
28786 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28787
28788 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28789
28790 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28791 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28792
28793 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28794
28795 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28796 32 atexit handlers.
28797
28798 2017-09-01 Zack Weinberg <zackw@panix.com>
28799
28800 * math/math.h (HUGE_VAL): Improve commentary.
28801
28802 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28803 Andreas Schwab <schwab@suse.de>
28804
28805 [BZ #21530]
28806 * include/stdio.h (__gen_tempfd): New function.
28807 * stdio-common/Makefile (routines): Add gentempfd.
28808 * stdio-common/gentempfd.c: New file.
28809 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28810 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28811 unnamed file first.
28812
28813 2017-09-01 Florian Weimer <fweimer@redhat.com>
28814
28815 [BZ #21915]
28816 [BZ #21922]
28817 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28818 result to determine success or failure, not the errno value.
28819 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28820 (tst-nss-files-hosts-erange): Link with -ldl.
28821 * nss/tst-nss-files-hosts-erange.c: New file.
28822 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28823 (do_test): Add NO_DATA tests.
28824 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28825 (do_test): Call it.
28826
28827 2017-09-01 Florian Weimer <fweimer@redhat.com>
28828
28829 [BZ #21922]
28830 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28831 coming from gethostbyname2_r.
28832
28833 2017-09-01 Florian Weimer <fweimer@redhat.com>
28834
28835 * support/namespace.h (struct support_chroot_configuration): Add
28836 hosts, host_conf.
28837 (struct support_chroot): Add path_hosts, path_host_conf.
28838 * support/support_chroot.c (write_file): New function.
28839 (support_chroot_create): Call it to process /etc/resolv.conf,
28840 /etc/hosts, /etc/host.conf.
28841 (support_chroot_free): Update.
28842
28843 2017-09-01 Florian Weimer <fweimer@redhat.com>
28844
28845 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28846 status indicates it is set.
28847
28848 2017-09-01 Florian Weimer <fweimer@redhat.com>
28849
28850 [BZ #20532]
28851 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28852 function lookup failures more reliable.
28853
28854 2017-09-01 Florian Weimer <fweimer@redhat.com>
28855
28856 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28857 (getcanonname): Likewise.
28858 (gaih_inet): Likewise.
28859
28860 2017-09-01 Florian Weimer <fweimer@redhat.com>
28861
28862 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28863 (getcanonname): Likewise.
28864 (gaih_inet): Likewise.
28865
28866 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28867 Richard Henderson <rth@twiddle.net>
28868
28869 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28870 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28871 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28872 (IREG_SIZE, OREG_SIZE): New macros.
28873 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28874 (IREG_SIZE, OREG_SIZE): New macros.
28875 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28876 (IREG_SIZE): New macro.
28877 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28878 (IREG_SIZE): New macro.
28879 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28880 New includes.
28881 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28882 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28883 (__CONCATX): Handle exceptions correctly on large values that may
28884 set FE_INVALID.
28885 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28886 Initialize if not already set.
28887 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28888
28889 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28890
28891 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28892 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28893 Likewise.
28894 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28895 Likewise.
28896 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28897 Likewise.
28898 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28899 Likewise.
28900 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28901 Likewise.
28902 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28903 Likewise.
28904 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28905 Likewise.
28906 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28907 (NO_CANCELLATION): Likewise.
28908 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28909 Likewise.
28910 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28911 Likewise.
28912 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28913 Likewise.
28914 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28915 (NO_CANCELLATION): Likewise.
28916 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28917 (NO_CANCELLATION): Likewise.
28918 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28919 Likewise
28920 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28921 Likewise.
28922 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28923 Likewise.
28924 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28925 Likewise.
28926 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28927 hidden prototype.
28928 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28929 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28930
28931 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28932
28933 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28934 in resolver call.
28935
28936 2017-08-31 Florian Weimer <fweimer@redhat.com>
28937
28938 * include/libc-symbols.h (internal_function): Remove.
28939
28940 2017-08-31 Florian Weimer <fweimer@redhat.com>
28941
28942 * stdlib/fmtmsg.c (internal_addseverity): Remove
28943 internal_function.
28944
28945 2017-08-31 Florian Weimer <fweimer@redhat.com>
28946
28947 * stdio-common/printf_fp.c (group_number): Remove
28948 internal_function.
28949 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28950
28951 2017-08-31 Florian Weimer <fweimer@redhat.com>
28952
28953 * posix/fnmatch.c (internal_function): Remove definition.
28954 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28955 * posix/regcomp.c (peek_token, init_word_char)
28956 (duplicate_node_closure, fetch_token, peek_token)
28957 (peek_token_bracket, build_range_exp, build_collating_symbol):
28958 Likewise.
28959 * posix/regex_internal.c (re_string_construct_common)
28960 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28961 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28962 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28963 (re_string_translate_buffer, re_string_reconstruct)
28964 (re_string_peek_byte_case, re_string_fetch_byte_case)
28965 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28966 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28967 (re_node_set_add_intersect, re_node_set_init_union)
28968 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28969 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28970 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28971 (re_acquire_state_context): Likewise.
28972 * posix/regex_internal.h (internal_function): Remove definition.
28973 (re_string_realloc_buffers, build_wcs_buffer)
28974 (build_wcs_upper_buffer, build_upper_buffer)
28975 (re_string_translate_buffer, re_string_context_at)
28976 (re_string_char_size_at, re_string_wchar_at)
28977 (re_string_elem_size_at): Likewise.
28978 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28979 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28980 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28981 (re_search_internal, re_search_2_stub, re_search_stub)
28982 (re_copy_regs, prune_impossible_nodes, check_matching)
28983 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28984 (free_fail_stack_return, sift_states_iter_mb)
28985 (sift_states_backward, build_sifted_states)
28986 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28987 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28988 (check_subexp_limits, sift_states_bkref, merge_state_array)
28989 (find_recover_state, transit_state, merge_state_with_log)
28990 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28991 (transit_state_mb, transit_state_bkref, get_subexp)
28992 (get_subexp_sub, find_subexp_node, check_arrival)
28993 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28994 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28995 (check_node_accept_bytes, find_collation_sequence_value)
28996 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28997 (acquire_init_state_context, check_halt_node_context)
28998 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28999 (sub_epsilon_src_nodes): Likewise.
29000 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29001 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29002 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29003 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29004 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29005 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29006 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29007 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29008 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29009 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29010 (PREADV): Likewise.
29011 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29012 (PREADV): Likewise.
29013 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29014 (PWRITEV): Likewise.
29015 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29016 (PWRITEV): Likewise.
29017 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29018 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29019
29020 2017-08-31 Florian Weimer <fweimer@redhat.com>
29021
29022 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29023 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29024 Remove internal_function.
29025 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29026 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29027 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29028 (__deallocate_stack, __libc_pthread_init)
29029 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29030 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29031 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29032 Likewise.
29033 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29034 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29035 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29036 Likewise.
29037 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29038 (__pthread_mutex_unlock_usercnt): Likewise.
29039
29040 2017-08-31 Florian Weimer <fweimer@redhat.com>
29041
29042 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29043 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29044 (fts_safe_changedir): Remove internal_function.
29045 * io/ftw.c (internal_function): Remove definition.
29046 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29047
29048 2017-08-31 Florian Weimer <fweimer@redhat.com>
29049
29050 * inet/deadline.c (__deadline_current_time)
29051 (__deadline_from_timeval, __deadline_to_ms): Remove
29052 internal_function.
29053 * inet/getnameinfo.c (nrl_domainname): Likewise.
29054 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29055 * inet/inet6_option.c (add_pad): Likewise.
29056 * inet/net-internal.h (__deadline_current_time)
29057 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29058 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29059 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29060 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29061
29062 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29063
29064 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29065 include <bits/nan.h>.
29066 * math/Makefile (headers): Remove bits/nan.h.
29067 * bits/nan.h: Remove.
29068 * sysdeps/ieee754/bits/nan.h: Likewise.
29069 * sysdeps/mips/bits/nan.h: Likewise.
29070
29071 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29072 not include <bits/inf.h>.
29073 * math/Makefile (headers): Remove bits/inf.h.
29074 * bits/inf.h: Remove.
29075 * sysdeps/ieee754/bits/inf.h: Likewise.
29076
29077 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29078 bits/huge_vall.h or bits/huge_val_flt128.h.
29079 (HUGE_VAL): Define directly here.
29080 [__USE_ISOC99] (HUGE_VALF): Likewise.
29081 [__USE_ISOC99] (HUGE_VALL): Likewise.
29082 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29083 (HUGE_VAL_F128): Likewise.
29084 * math/Makefile (headers): Remove bits/huge_val.h,
29085 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29086 * bits/huge_val.h: Remove.
29087 * bits/huge_val_flt128.h: Likewise.
29088 * bits/huge_valf.h: Likewise.
29089 * bits/huge_vall.h: Likewise.
29090 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29091 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29092 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29093 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29094 * sysdeps/sh/bits/huge_val.h: Likewise.
29095 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29096 * sysdeps/x86/bits/huge_vall.h: Likewise.
29097
29098 2017-08-31 Florian Weimer <fweimer@redhat.com>
29099
29100 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29101 internal_function.
29102 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29103 Likewise.
29104 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29105 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29106 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29107 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29108 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29109 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29110 * elf/dl-libc.c (dlerror_run): Likewise.
29111 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29112 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29113 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29114 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29115 Likewise.
29116 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29117 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29118 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29119 * elf/dl-profile.c (_dl_start_profile): Likewise.
29120 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29121 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29122 Likewise.
29123 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29124 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29125 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29126 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29127 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29128 (_dl_allocate_tls_storage): Likewise.
29129 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29130 (_dl_check_all_versions): Likewise.
29131 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29132 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29133 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29134 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29135 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29136 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29137 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29138 internal_function from __dl_start.
29139 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29140 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29141 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29142 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29143 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29144 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29145 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29146 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29147 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29148 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29149 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29150 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29151 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29152 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29153 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29154 Likewise.
29155 (struct rtld_global_ro): Remove internal_function from the
29156 _dl_lookup_symbol_x member.
29157 (_dl_symbol_value): Remove. No longer defined anywhere.
29158 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29159 internal_function.
29160 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29161 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29162 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29163 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29164 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29165 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29166 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29167 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29168 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29169 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29170 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29171 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29172
29173 2017-08-31 Florian Weimer <fweimer@redhat.com>
29174
29175 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29176 Remove internal_function.
29177 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29178 Likewise.
29179 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29180 Likewise.
29181
29182 2017-08-31 Florian Weimer <fweimer@redhat.com>
29183
29184 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29185 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29186 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29187
29188 2017-08-31 Florian Weimer <fweimer@redhat.com>
29189
29190 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29191 (__gai_enqueue_request): Remove internal_function.
29192 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29193 (__gai_remove_request, __gai_notify, __gai_notify_only)
29194 (__gai_sigqueue): Likewise.
29195 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29196 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29197 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29198 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29199 Likewise.
29200
29201 2017-08-31 Florian Weimer <fweimer@redhat.com>
29202
29203 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29204 * include/dirent.h (__opendirat, __getdents, __getdents64)
29205 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29206 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29207 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29208 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29209 Likewise.
29210 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29211
29212 2017-08-31 Florian Weimer <fweimer@redhat.com>
29213
29214 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29215 internal_function.
29216 (GETCWD_RETURN_TYPE): Likewise.
29217
29218 2017-08-31 Florian Weimer <fweimer@redhat.com>
29219
29220 * include/time.h (__tz_compute, __strptime_internal): Remove
29221 internal_function.
29222 * time/strptime_l.c (__strptime_internal): Likewise.
29223 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29224
29225 2017-08-31 Florian Weimer <fweimer@redhat.com>
29226
29227 * iconv/gconv.c (__gconv): Remove internal_function.
29228 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29229 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29230 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29231 (__gconv_release_cache): Likewise.
29232 * iconv/gconv_close.c (__gconv_close): Likewise.
29233 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29234 (read_conf_file, __gconv_get_path): Likewise.
29235 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29236 (__gconv_release_step, gen_steps, increment_counter)
29237 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29238 (__gconv_close_transform, free_modules_db): Likewise.
29239 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29240 Likewise.
29241 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29242 (__gconv_find_transform, __gconv_lookup_cache)
29243 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29244 (__gconv_close_transform, __gconv_release_cache)
29245 (__gconv_loaded_object, __gconv_release_shlib)
29246 (__gconv_compare_alias): Likewise.
29247 * iconv/gconv_open.c (__gconv_open): Likewise.
29248 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29249 * iconv/iconvconfig.c (add_module): Likewise.
29250 * intl/dcigettext.c (plural_lookup, guess_category_value)
29251 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29252 * intl/eval-plural.h (plural_eval): Likewise.
29253 * intl/finddomain.c (_nl_find_domain): Likewise.
29254 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29255 (_nl_load_domain, _nl_find_msg): Likewise.
29256 (internal_function): Remove definition.
29257 * intl/loadinfo.h (internal_function): Likewise.
29258 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29259 internal_function.
29260 * intl/localealias.c (internal_function): Remove definition.
29261 (read_alias_file): Remove internal_function.
29262 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29263 * intl/plural-exp.h (internal_function): Remove definition.
29264 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29265 internal_function.
29266 * intl/plural.c: Regenerate.
29267 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29268 * locale/coll-lookup.c (__collidx_table_lookup)
29269 (__collseq_table_lookup): Likewise.
29270 * locale/coll-lookup.h (__collidx_table_lookup)
29271 (__collseq_table_lookup): Likewise.
29272 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29273 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29274 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29275 (_nl_unload_locale): Likewise.
29276 * locale/localeinfo.h (struct __locale_data): Remove
29277 internal_function from cleanup member.
29278 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29279 (_nl_remove_locale, _nl_load_locale_from_archive)
29280 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29281 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29282 (_nl_cleanup_time): Remove internal_function.
29283 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29284 (_nl_parse_alt_digit): Likewise.
29285 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29286 (_nl_select_era_entry): Likewise.
29287 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29288 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29289 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29290 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29291 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29292
29293 2017-08-31 Florian Weimer <fweimer@redhat.com>
29294
29295 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29296 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29297 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29298 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29299 Likewise.
29300 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29301 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29302 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29303 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29304 Likewise.
29305 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29306
29307 2017-08-31 Florian Weimer <fweimer@redhat.com>
29308
29309 * misc/getttyent.c (skip, value): Remove internal_function.
29310 * misc/syslog.c (openlog_internal): Likewise.
29311 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29312
29313 2017-08-31 Florian Weimer <fweimer@redhat.com>
29314
29315 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29316 (__nss_rewrite_field): Remove internal_function.
29317 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29318 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29319 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29320 * nss/nsswitch.c (nss_parse_file, nss_getline)
29321 (nss_parse_service_list, nss_new_service): Likewise.
29322 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29323 * nss/valid_field.c (__nss_valid_field): Likewise.
29324 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29325
29326 2017-08-31 Florian Weimer <fweimer@redhat.com>
29327
29328 * malloc/arena.c (__malloc_fork_lock_parent)
29329 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29330 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29331 internal_function from defintions.
29332 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29333 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29334 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29335 internal_function from declarations.
29336 * malloc/malloc.c (internal_function): Do not define.
29337 (mem2mem_check): Remove internal_function from declaration.
29338 (munmap_chunk, mremap_chunk): Remove internal_function.
29339 * malloc/mtrace.c (tr_where): Likewise.
29340
29341 2017-08-31 Florian Weimer <fweimer@redhat.com>
29342
29343 * include/rpc/pmap_clnt.h (__get_socket): Remove
29344 internal_function.
29345 * sunrpc/auth_des.c (synchronize): Likewise.
29346 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29347 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29348 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29349 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29350 (key_call): Likewise.
29351 * sunrpc/pm_getport.c (__get_socket): Likewise.
29352 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29353 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29354 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29355 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29356 (invalidate): Likewise.
29357 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29358 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29359 (set_input_fragment, get_input_bytes): Likewise.
29360
29361 2017-08-31 Florian Weimer <fweimer@redhat.com>
29362
29363 * malloc/malloc.c (_int_free): Remove locked variable and related
29364 asserts.
29365
29366 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29367
29368 [BZ #22051]
29369 * Makerules (build-module-helper-objlist): Filter out
29370 $(elf-objpfx)sofini.os.
29371 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29372 needed.
29373
29374 2017-08-31 Florian Weimer <fweimer@redhat.com>
29375
29376 * libio/fcloseall.c: Assume weak_alias is defined.
29377 * libio/feof.c: Likewise.
29378 * libio/fileno.c: Likewise.
29379 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29380 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29381 definitions.
29382 (_IO_file_open): Call __open directly.
29383 (_IO_new_file_sync): Assume ESPIPE is defined.
29384 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29385 (_IO_new_file_write): Call __write directly.
29386 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29387 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29388 * libio/genops.c: Assume _LIBC is defined.
29389 (save_for_backup): Remove internal_function.
29390 * libio/getc.c: Assume weak_alias is defined.
29391 * libio/getwc.c: Likewise.
29392 * libio/iofclose.c: Assume _LIBC is defined.
29393 * libio/iofdopen.c: Likewise.
29394 (_IO_fcntl): Remove macro definition.
29395 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29396 Call __fcntl directly.
29397 * libio/iofflush.c: Assume weak_alias is defined.
29398 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29399 defined.
29400 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29401 * libio/iofgets.c: Likewise.
29402 * libio/iofopen.c: Assume _LIBC is defined.
29403 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29404 * libio/iofputs.c: Assume weak_alias is defined.
29405 * libio/iofread.c: Likewise.
29406 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29407 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29408 * libio/ioftell.c: Assume weak_alias is defined.
29409 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29410 * libio/iofwide.c: Assume _LIBC is defined.
29411 (_IO_fwide): Drop SHARED conditional because it is implied by
29412 SHLIB_COMPAT.
29413 * libio/iofwrite.c: Assume weak_alias is defined.
29414 * libio/iogetdelim.c: Likewise.
29415 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29416 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29417 (_IO_getwline): Call __wmemcpy directly.
29418 * libio/iopopen.c: Assume _LIBC is defined.
29419 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29420 (_IO_close): Remove macro definitions.
29421 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29422 _exit directly.
29423 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29424 directly.
29425 * libio/ioputs.c: Assume weak_alias is defined.
29426 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29427 * libio/iosetbuffer.c: Assume weak_alias is defined.
29428 * libio/iosetvbuf.c: Likewise.
29429 * libio/ioungetc.c: Likewise.
29430 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29431 libc_hidden_def, libc_hidden_weak, NULL are defined.
29432 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29433 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29434 defined.
29435 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29436 definitions.
29437 (_IO_old_file_init_internal): Drop SHARED conditional because it
29438 is implied by SHLIB_COMPAT.
29439 (_IO_old_file_fopen): Call __open directly.
29440 (_IO_old_file_sync): Assume ESPIPE is defined.
29441 (_IO_old_file_write): Call __write directly.
29442 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29443 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29444 Call __fcntl directly.
29445 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29446 (_IO_old_fgetpos): Assume EIO is defined.
29447 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29448 (_IO_old_fgetpos64): Assume EIO is defined.
29449 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29450 (_IO_old_fsetpos): Assume EIO is defined.
29451 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29452 (_IO_old_fsetpos64): Assume EIO is defined.
29453 * libio/oldiopopen.c: Assume _LIBC is defined.
29454 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29455 (_IO_close): Remove macro definitions.
29456 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29457 directly.
29458 (_IO_old_proc_close): Call __close, __waitpid directly.
29459 * libio/put.c: Assume weak_alias is defined.
29460 * libio/stdfiles.c: Assume _LIBC is defined.
29461 * libio/stdio.c: Likewise.
29462 * libio/wfileops.c: Likewise.
29463 (_IO_wfile_sync): Assume ESPIPE is defined.
29464 * libio/wgenops.c: Assume _LIBC is defined.
29465 (save_for_wbackup): Remove internal_function.
29466
29467 2017-08-31 Florian Weimer <fweimer@redhat.com>
29468
29469 * malloc/malloc.c (top_check): Change return type to void. Remove
29470 internal_function.
29471 * malloc/hooks.c (top_check): Likewise.
29472 (malloc_check, realloc_check, memalign_check): Adjust.
29473
29474 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29475
29476 [BZ #21457]
29477 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29478 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29479 sigcontext and namespace requirements.
29480 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29481 * sysdeps/m68k/sys/ucontext.h: Likewise.
29482 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29483 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29484 <bits/sigcontext.h>.
29485 (__ctx): Define earlier.
29486 (mcontext_t): Define structure contents rather than using struct
29487 sigcontext.
29488 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29489 __glibc_reserved1 instead of __reserved.
29490 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29491 <bits/sigcontext.h>.
29492 (__ctx): Define earlier.
29493 (mcontext_t): Define structure contents rather than using struct
29494 sigcontext.
29495 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29496 mcontext_t instead of struct sigcontext.
29497 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29498 <bits/sigcontext.h>.
29499 (__ctx): Define earlier.
29500 (mcontext_t): Define structure contents rather than using struct
29501 sigcontext.
29502 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29503 <bits/sigcontext.h>.
29504 (__ctx): Define earlier.
29505 (mcontext_t): Define structure contents rather than using struct
29506 sigcontext.
29507 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29508 mcontext_t instead of struct sigcontext.
29509 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29510 mcontext_t instead of struct sigcontext.
29511 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29512 <bits/sigcontext.h>.
29513 (__ctx): New macro.
29514 (struct __ia64_fpreg_mcontext): New type.
29515 (mcontext_t): Define structure contents rather than using struct
29516 sigcontext.
29517 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29518 (uc_sigmask): Define using __ctx.
29519 (uc_stack): Likewise.
29520 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29521 <bits/sigcontext.h>.
29522 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29523 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29524 <bits/sigcontext.h>.
29525 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29526 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29527 <bits/sigcontext.h>.
29528 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29529 <bits/sigcontext.h>.
29530 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29531 <bits/sigcontext.h>.
29532 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29533 <bits/sigcontext.h>.
29534 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29535 <bits/sigcontext.h>.
29536 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29537 <bits/sigcontext.h>.
29538 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29539 <bits/sigcontext.h>.
29540 (__ctx): Define earlier.
29541 (mcontext_t): Define structure contents rather than using struct
29542 sigcontext.
29543 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29544 <bits/sigcontext.h>. Include <bits/types.h>.
29545 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29546 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29547 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29548 (test-xfail-UNIX98/signal.h/conform): Likewise.
29549 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29550 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29551 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29552 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29553 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29554 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29555 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29556 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29557 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29558
29559 2017-08-30 Florian Weimer <fweimer@redhat.com>
29560
29561 * malloc/dynarray_emplace_enlarge.c
29562 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29563 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29564 * malloc/tst-dynarray.c (test_long_overflow): New function.
29565 (do_test): Call it.
29566
29567 2017-08-30 Florian Weimer <fweimer@redhat.com>
29568
29569 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29570 (set_arena_corrupt): Remove definitions.
29571 (mtrim): Do not check for corrupt arena.
29572 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29573 Likewise.
29574
29575 2017-08-30 Florian Weimer <fweimer@redhat.com>
29576
29577 [BZ #21754]
29578 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29579 check_action.
29580 (ptmalloc_init): Do not set or use check_action.
29581 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29582 call to malloc_printerr. Remove return statement.
29583 (free_check): Likewise. Remove arena unlock.
29584 (top_check): Update comment. Adjust call to malloc_printerr.
29585 Remove heap repair code.
29586 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29587 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29588 (sysmalloc): Adjust call to malloc_printerr.
29589 (munmap_chunk, __libc_realloc): Likewise. Remove return
29590 statement.
29591 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29592 Remove errout label and corresponding gotos.
29593 (_int_free): Likewise. Remove arena unlock.
29594 (do_set_mallopt_check): Do not set check_action.
29595 (malloc_printerr): Adjust parameter list. Do not mark arena as
29596 corrupt.
29597 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29598 comment.
29599 * manual/probes.texi (Memory Allocation Probes): Remove
29600 memory_mallopt_check_action.
29601
29602 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29603
29604 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29605 Use pointer to uint64_t instead of long int for sp.
29606
29607 2017-08-30 Florian Weimer <fweimer@redhat.com>
29608
29609 [BZ #21754]
29610 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29611 without printing a backtrace. Do not leak any information in the
29612 error message.
29613 * manual/memory.texi (Heap Consistency Checking): Update.
29614 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29615
29616 2017-08-30 Florian Weimer <fweimer@redhat.com>
29617
29618 Do not scale NPTL tests with available number of CPUs.
29619 * nptl/tst-cond16.c (count): Set to constant value of 8.
29620 * nptl/tst-cond18.c (count): Likewise.
29621
29622 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29623
29624 [BZ #22035]
29625 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29626 Define to take a second argument that is a macro that
29627 concatentates a suffix, not the suffix itself.
29628 (__CONCAT_d): New macro.
29629 (__CONCAT_f): Likewise.
29630 (__CONCAT_l): Likewise.
29631
29632 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29633
29634 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29635 by child.
29636
29637 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29638 Aurelien Jarno <aurelien@aurel32.net>
29639 Maciej W. Rozycki <macro@imgtec.com>
29640
29641 [BZ #21956]
29642 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29643 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29644 `mips16-syscall6' and `mips16-syscall7'.
29645 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29646 (CFLAGS-mips16-syscall7.c): Remove.
29647 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29648 Remove `__mips16_syscall5', `__mips16_syscall6' and
29649 `__mips16_syscall7'.
29650 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29651 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29652 `__mips_syscall_return'.
29653 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29654 (__mips16_syscall1): Likewise.
29655 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29656 (__mips16_syscall2): Likewise.
29657 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29658 (__mips16_syscall3): Likewise.
29659 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29660 (__mips16_syscall4): Likewise.
29661 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29662 Remove.
29663 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29664 Remove.
29665 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29666 Remove.
29667 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29668 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29669 `__mips16_syscall5'. Remove prototype.
29670 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29671 `__mips16_syscall6'. Remove prototype.
29672 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29673 `__mips16_syscall7'. Remove prototype.
29674 (__nomips16, __mips16_syscall_return): Move to...
29675 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29676 (__nomips16, __mips_syscall_return): ... here.
29677 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29678 `__mips16_syscall_return' to `__mips_syscall_return'.
29679 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29680 `internal_syscall##nr'.
29681 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29682 `internal_syscall##nr'.
29683 (FORCE_FRAME_POINTER): Remove.
29684 (__mips_syscall5): New prototype.
29685 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29686 (__mips_syscall6): New prototype.
29687 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29688 (__mips_syscall7): New prototype.
29689 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29690 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29691 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29692 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29693 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29694 (sysdep_routines): Add libc-do-syscall.
29695 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29696 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29697
29698 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29699
29700 [BZ #21672]
29701 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29702 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29703 (advise_stack_range): New function.
29704 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29705 stack non required to advise_stack_range at allocatestack.c
29706
29707 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29708
29709 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29710
29711 2017-08-29 Florian Weimer <fweimer@redhat.com>
29712
29713 [BZ #22026]
29714 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29715 __end_fct. Mangle __end_fct after setting it to NULL.
29716 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29717 (modules-names, modules-names-tests): Add
29718 tst-gconv-init-failure-mod.
29719 (gconv-modules): New target.
29720 (tst-gconv-init-failure-mod.so): Link against libsupport.
29721 (tst-gconv-init-failure): Depend on gconv-modules,
29722 tst-gconv-init-failure-mod.so.
29723 * iconv/tst-gconv-init-failure-mod.c: New file.
29724 * iconv/tst-gconv-init-failure.c: Likewise.
29725 * iconv/test-gconv-modules: Likewise.
29726
29727 2017-08-29 Florian Weimer <fweimer@redhat.com>
29728
29729 [BZ #22025]
29730 * iconv/gconv_db.c (free_derivation): Remove redundant
29731 parentheses.
29732 (gen_steps): Unconditionally mangle __btowc_fct after
29733 initialization.
29734 (increment_counter): Likewise. Do not call init_fct for internal
29735 modules.
29736
29737 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29738
29739 [BZ #22028]
29740 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29741 (_MSUF_): Remove macro.
29742 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29743 Likewise.
29744 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29745 (__REDIRFROM_X): New macro.
29746 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29747 Likewise.
29748 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29749 (__REDIRTO_X): Likewise.
29750 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29751 arguments.
29752 (__MATH_REDIRCALL_2): Likewise.
29753 (__MATH_REDIRCALL_INTERNAL): Likewise.
29754 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29755 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29756 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29757 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29758 * math/test-finite-macros.c: New file.
29759 * math/Makefile (tests): Add test-finite-macros.
29760 (CFLAGS-test-finite-macros.c): New variable.
29761
29762 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29763 Jeff Law <law@redhat.com>
29764
29765 [BZ #22025]
29766 Mangle NULL pointers in iconv/gconv.
29767 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29768 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29769 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29770 is non-NULL before demangling the end_fct. Check for NULL
29771 end_fct after demangling.
29772 (__gconv_release_step): Demangle the end_fct before checking
29773 it for NULL. Remove assert on __shlibc_handle != NULL.
29774 (gen_steps): Don't check btowc_fct for NULL before mangling.
29775 Demangle init_fct before checking for NULL.
29776 (increment_counter): Likewise.
29777 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29778 end_fct for NULL before mangling.
29779 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29780 for NULL.
29781
29782 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29783
29784 [BZ #21971]
29785 * locale/iso-639.def: add Morisyen.
29786
29787 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29788
29789 [BZ #21930]
29790 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29791 (iszero): New C++ implementation that does not use
29792 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29793 signaling nans are enabled, since __builtin_types_compatible_p
29794 is a C-only feature.
29795 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29796 defined, include ieee754_float128.h for access to the union and
29797 member ieee854_float128.ieee.
29798 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29799 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29800 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29801 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29802 options of test-math-zero on powerpc64le.
29803
29804 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29805
29806 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29807 Change double to float.
29808
29809 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29810
29811 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29812 unconditional.
29813 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29814 conditional code; define contents only for [LIBM_SVID_COMPAT].
29815
29816 2017-08-28 Florian Weimer <fweimer@redhat.com>
29817
29818 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29819 (abi-lp64_be-options): Remove.
29820 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29821 (abi-hard-options): Likewise.
29822 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29823 (abi-o32_hard-options, abi-o32_soft_2008-options)
29824 (abi-o32_hard_2008-options, abi-n32_soft-options)
29825 (abi-n32_hard-options, abi-n32_soft_2008-options)
29826 (abi-n32_hard_2008-options, abi-n64_soft-options)
29827 (abi-n64_hard-options, abi-n64_soft_2008-options)
29828 (abi-n64_hard_2008-options): Likewise.
29829 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29830 (abi-64-v1-options, abi-64-v2-options): Likewise.
29831 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29832 (abi-64-options): Likewise.
29833 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29834 (abi-64-options): Likewise.
29835 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29836 (abi-64-options): Likewise.
29837 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29838 (abi-64-options, abi-x32-options): Likewise.
29839
29840 2017-08-28 Florian Weimer <fweimer@redhat.com>
29841
29842 Store supported list of SYS_* system calls in the source tree.
29843 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29844 (bits/syscall.h): Generate from list file.
29845 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29846 [$(subdir) = misc] (tests): Add tst-syscall-list.
29847 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29848 [$(subdir) = misc] (tst-syscall-list-macros.list)
29849 [$(subdir) = misc] (tst-syscall-list-nr.list)
29850 (tst-syscall-list-sys.list): Helper targets for new
29851 tst-syscall-list test.
29852 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29853 tst-syscall-list.sh.
29854 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29855 target. Do not include bits/syscall.d.
29856 [$(subdir) = misc] (generated): Do not update.
29857 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29858 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29859 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29860 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29861
29862 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29863
29864 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29865 (tst-cxa_atexit, tst-on_exit): Likewise.
29866 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29867 tst-cxa_atexit, and tst-on_exit.
29868 * stdlib/tst-atexit-common.c: New file.
29869 * stdlib/tst-atexit.c: New file.
29870 * stdlib/tst-at_quick_exit.c: New file.
29871 * stdlib/tst-cxa_atexit.c: New file.
29872 * stdlib/tst-on_exit.c: New file.
29873
29874 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29875
29876 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29877 * mach/stack_chk_fail_local.c: New file.
29878 * hurd/stack_chk_fail_local.c: New file.
29879 * mach/Machrules ($(interface-library)-routines): Add
29880 stack_chk_fail_local.
29881 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29882 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29883 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29884 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29885 * hurd/Makefile (CFLAGS-hurdstartup.o,
29886 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29887
29888 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29889
29890 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29891 (index_cpu_*, index_arch_*): Removed.
29892
29893 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29894
29895 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29896 Use uint64_t instead of unsigned long.
29897
29898 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29899
29900 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29901 [__HAVE_DISTINCT_FLOAT128].
29902
29903 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29904 of <bits/math-finite.h>.
29905 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29906 inclusion of <bits/math-finite.h>.
29907 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29908 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29909 __NO_LONG_DOUBLE_MATH].
29910 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29911 (__MATH_REDIRCALL_2): Likewise.
29912 (__MATH_REDIRCALL_INTERNAL): Likewise.
29913 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29914 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29915 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29916
29917 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29918 Remove file.
29919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29920 Likewise.
29921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29922 Likewise.
29923 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29924 Likewise.
29925 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29926 Likewise.
29927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29928 Likewise.
29929 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29930 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29931 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29932 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29934 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29935 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29936 w_sqrtf_compat-ppc32.
29937
29938 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29939
29940 * math/math.h [defined __cplusplus] (issignaling): In the long
29941 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29942 is not defined. Call __issignaling, otherwise.
29943
29944 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29945
29946 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29947 syscall definitions and replace __builtin_expect with __glibc_likely.
29948 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29949 syscall.
29950 (SYSCALL_CANCELLABLE): Removedefinition
29951 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29952 definition.
29953 (PSEUDO_END): Likewise.
29954 [IS_IN (libpthread)] (CENABLE): Likewise.
29955 [IS_IN (libpthread)] (CDISABLE): Likewise.
29956 [IS_IN (libc)] (CENABLE): Likewise.
29957 [IS_IN (libc)] (CENABLE): Likewise.
29958 [IS_IN (librt)] (CDISABLE): Likewise.
29959 [IS_IN (librt)] (CDISABLE): Likewise.
29960 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29961 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29962 definition.
29963 (PSEUDO_END): Likewise.
29964 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29965 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29966 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29967 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29968 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29969 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29970 (CENABLE): Likewise.
29971 (CDISABLE): Likewise.
29972 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29973 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29974 defintion.
29975 (PSEUDO_END): Likewise.
29976 [IS_IN (libpthread)] (CENABLE): Likewise.
29977 [IS_IN (libpthread)] (CDISABLE): Likewise.
29978 [IS_IN (libc)] (CENABLE): Likewise.
29979 [IS_IN (libc)] (CENABLE): Likewise.
29980 [IS_IN (librt)] (CDISABLE): Likewise.
29981 [IS_IN (librt)] (CDISABLE): Likewise.
29982 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29983 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29984 definition.
29985 (PSEUDO_END): Likewise.
29986 [IS_IN (libpthread)] (CENABLE): Likewise.
29987 [IS_IN (libpthread)] (CDISABLE): Likewise.
29988 [IS_IN (libc)] (CENABLE): Likewise.
29989 [IS_IN (libc)] (CENABLE): Likewise.
29990 [IS_IN (librt)] (CDISABLE): Likewise.
29991 [IS_IN (librt)] (CDISABLE): Likewise.
29992 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29993 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29994 definition.
29995 (PSEUDO_END): Likewise.
29996 [IS_IN (libpthread)] (CENABLE): Likewise.
29997 [IS_IN (libpthread)] (CDISABLE): Likewise.
29998 [IS_IN (libc)] (CENABLE): Likewise.
29999 [IS_IN (libc)] (CENABLE): Likewise.
30000 [IS_IN (librt)] (CDISABLE): Likewise.
30001 [IS_IN (librt)] (CDISABLE): Likewise.
30002 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30003 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30004 definition.
30005 (PSEUDO_END): Likewise.
30006 [IS_IN (libpthread)] (CENABLE): Likewise.
30007 [IS_IN (libpthread)] (CDISABLE): Likewise.
30008 [IS_IN (libc)] (CENABLE): Likewise.
30009 [IS_IN (libc)] (CENABLE): Likewise.
30010 [IS_IN (librt)] (CDISABLE): Likewise.
30011 [IS_IN (librt)] (CDISABLE): Likewise.
30012 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30013 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30014 definition.
30015 (PSEUDO_END): Likewise.
30016 [IS_IN (libpthread)] (CENABLE): Likewise.
30017 [IS_IN (libpthread)] (CDISABLE): Likewise.
30018 [IS_IN (libc)] (CENABLE): Likewise.
30019 [IS_IN (libc)] (CENABLE): Likewise.
30020 [IS_IN (librt)] (CDISABLE): Likewise.
30021 [IS_IN (librt)] (CDISABLE): Likewise.
30022 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30023 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30024 definition.
30025 (PSEUDO_END): Likewise.
30026 [IS_IN (libpthread)] (CENABLE): Likewise.
30027 [IS_IN (libpthread)] (CDISABLE): Likewise.
30028 [IS_IN (libc)] (CENABLE): Likewise.
30029 [IS_IN (libc)] (CENABLE): Likewise.
30030 [IS_IN (librt)] (CDISABLE): Likewise.
30031 [IS_IN (librt)] (CDISABLE): Likewise.
30032 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30033 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30034 Remove definition.
30035 (PSEUDO_END): Likewise.
30036 [IS_IN (libpthread)] (CENABLE): Likewise.
30037 [IS_IN (libpthread)] (CDISABLE): Likewise.
30038 [IS_IN (libc)] (CENABLE): Likewise.
30039 [IS_IN (libc)] (CENABLE): Likewise.
30040 [IS_IN (librt)] (CDISABLE): Likewise.
30041 [IS_IN (librt)] (CDISABLE): Likewise.
30042 (SINGLE_THREAD_P): Likewise.
30043 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30044 definition.
30045 (PSEUDO_END): Likewise.
30046 [IS_IN (libpthread)] (CENABLE): Likewise.
30047 [IS_IN (libpthread)] (CDISABLE): Likewise.
30048 [IS_IN (libc)] (CENABLE): Likewise.
30049 [IS_IN (libc)] (CENABLE): Likewise.
30050 [IS_IN (librt)] (CDISABLE): Likewise.
30051 [IS_IN (librt)] (CDISABLE): Likewise.
30052 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30053 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30054 definition.
30055 (PSEUDO_END): Likewise.
30056 [IS_IN (libpthread)] (CENABLE): Likewise.
30057 [IS_IN (libpthread)] (CDISABLE): Likewise.
30058 [IS_IN (libc)] (CENABLE): Likewise.
30059 [IS_IN (libc)] (CENABLE): Likewise.
30060 [IS_IN (librt)] (CDISABLE): Likewise.
30061 [IS_IN (librt)] (CDISABLE): Likewise.
30062 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30063 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30064 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30065 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30066 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30067 definition.
30068 (PSEUDO_END): Likewise.
30069 [IS_IN (libpthread)] (CENABLE): Likewise.
30070 [IS_IN (libpthread)] (CDISABLE): Likewise.
30071 [IS_IN (libc)] (CENABLE): Likewise.
30072 [IS_IN (libc)] (CENABLE): Likewise.
30073 [IS_IN (librt)] (CDISABLE): Likewise.
30074 [IS_IN (librt)] (CDISABLE): Likewise.
30075 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30076 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30077 definition.
30078 (PSEUDO_END): Likewise.
30079 [IS_IN (libpthread)] (CENABLE): Likewise.
30080 [IS_IN (libpthread)] (CDISABLE): Likewise.
30081 [IS_IN (libc)] (CENABLE): Likewise.
30082 [IS_IN (libc)] (CENABLE): Likewise.
30083 [IS_IN (librt)] (CDISABLE): Likewise.
30084 [IS_IN (librt)] (CDISABLE): Likewise.
30085 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30086 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30087 definition.
30088 (PSEUDO_END): Likewise.
30089 [IS_IN (libpthread)] (CENABLE): Likewise.
30090 [IS_IN (libpthread)] (CDISABLE): Likewise.
30091 [IS_IN (libc)] (CENABLE): Likewise.
30092 [IS_IN (libc)] (CENABLE): Likewise.
30093 [IS_IN (librt)] (CDISABLE): Likewise.
30094 [IS_IN (librt)] (CDISABLE): Likewise.
30095 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30096 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30097 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30098 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30099 * sysdeps/unix/sysv/linux/tile/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/x86_64/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
30120 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30121
30122 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30123
30124 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30125
30126 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30127
30128 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30129
30130 [BZ #21982]
30131 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30132 middle and outer with size_t instead of int. Repleace %d and
30133 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30134 "MAX (outer, nchars - 64)" to support unsigned outer and
30135 nchars. Also exit loop when outer == 0.
30136
30137 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30138
30139 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30140 * include/signal.h (__sigsuspend_nocancel): Likewise.
30141 * include/time.h (__nanosleep_nocancel): Likewise.
30142 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30143 * login/utmp_file.c: Include non cancellable syscall header.
30144 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30145 prototype.
30146
30147 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30148
30149 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30150 .byte sequences with AVX512F instructions.
30151 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30152 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30153 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30154 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30155 Likewise.
30156 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30157 Likewise.
30158
30159 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30160 Steve Ellcey <sellcey@cavium.com>
30161
30162 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30163 Use PTR_REG macro in cmp instruction.
30164
30165 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30166
30167 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30168 Change the return type of the ifunc resolver to match the return
30169 type of the target function.
30170
30171 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30172
30173 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30174 (preadv64): Likewise.
30175 (pwrite64(: Likewise.
30176 (pwritev64): Likewise.
30177
30178 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30179 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30180 (LOAD_ARGS_0): Likewise.
30181 (LOAD_ARGS_1): Likewise.
30182 (LOAD_ARGS_2): Likewise.
30183 (LOAD_ARGS_3): Likewise.
30184 (LOAD_ARGS_4): Likewise.
30185 (LOAD_ARGS_5): Likewise.
30186 (LOAD_ARGS_6): Likewise.
30187 (LOAD_REGS_0): Likewise.
30188 (LOAD_REGS_1): Likewise.
30189 (LOAD_REGS_2): Likewise.
30190 (LOAD_REGS_3): Likewise.
30191 (LOAD_REGS_4): Likewise.
30192 (LOAD_REGS_5): Likewise.
30193 (LOAD_REGS_6): Likewise.
30194 (ASM_ARGS_0): Likewise.
30195 (ASM_ARGS_1): Likewise.
30196 (ASM_ARGS_2): Likewise.
30197 (ASM_ARGS_3): Likewise.
30198 (ASM_ARGS_4): Likewise.
30199 (ASM_ARGS_5): Likewise.
30200 (ASM_ARGS_6): Likewise.
30201 (LOAD_ARGS_TYPES_1): Likewise.
30202 (LOAD_ARGS_TYPES_2): Likewise.
30203 (LOAD_ARGS_TYPES_3): Likewise.
30204 (LOAD_ARGS_TYPES_4): Likewise.
30205 (LOAD_ARGS_TYPES_5): Likewise.
30206 (LOAD_ARGS_TYPES_6): Likewise.
30207 (LOAD_REGS_TYPES_1): Likewise.
30208 (LOAD_REGS_TYPES_2): Likewise.
30209 (LOAD_REGS_TYPES_3): Likewise.
30210 (LOAD_REGS_TYPES_4): Likewise.
30211 (LOAD_REGS_TYPES_5): Likewise.
30212 (LOAD_REGS_TYPES_6): Likewise.
30213 (TYPEFY): New define.
30214 (ARGIFY): Likewise.
30215 (internal_syscall0): Likewise.
30216 (internal_syscall1): Likewise.
30217 (internal_syscall2): Likewise.
30218 (internal_syscall3): Likewise.
30219 (internal_syscall4): Likewise.
30220 (internal_syscall5): Likewise.
30221 (internal_syscall6): Likewise.
30222 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30223 (INTERNAL_SYSCALL_NCS): Remove define.
30224 (internal_syscall1): Add define.
30225
30226 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30227
30228 * math/w_remainder_compat.c: Remove duplicate inclusion of
30229 math-svid-compat.h.
30230 * math/w_remainderf_compat.c: Likewise.
30231 * math/w_remainderl_compat.c: Likewise.
30232
30233 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30234
30235 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30236
30237 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30238
30239 [BZ #21684]
30240 * math/tgmath.h (__floating_type): Simplify definitions.
30241 (__real_integer_type): New macro.
30242 (__complex_integer_type): Likewise.
30243 (__expr_is_real): Likewise.
30244 (__tgmath_real_type_sub): Update comment to describe handling of
30245 complex types.
30246 (__tgmath_complex_type_sub): New macro.
30247 (__tgmath_complex_type): Likewise.
30248 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30249 (__TGMATH_CF128): Use __expr_is_real.
30250 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30251 __expr_is_real.
30252 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30253 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30254 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30255 integer types.
30256
30257 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30258
30259 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30260 macro.
30261 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30262 alias.
30263 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30264 Likewise.
30265
30266 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30267 nanosleep_not_cancel with __nanosleep_nocancel.
30268 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30269 (__nanosleep_nocancel): New macro.
30270 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30271 function.
30272 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30273 macro.
30274 (__nanosleep_nocancel): New prototype.
30275
30276 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30277 pause_not_cancel with __pause_nocancel.
30278 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30279 (__pause_nocancel): New macro.
30280 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30281 macro.
30282 (__pause_nocancel): New prototype.
30283 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30284
30285 2017-08-22 Martin Sebor <msebor@redhat.com>
30286
30287 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30288 to return a pointer to the same type as the target function.
30289
30290 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30291
30292 [BZ #18822]
30293 [BZ #21986]
30294 * include/printf.h (__printf_fphex): Add attribute_hidden.
30295 (__guess_grouping): New prototype.
30296 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30297 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30298 libc_hidden_proto and libc_hidden_def.
30299 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30300 (__vstrfmon_l): Remove the third argument passed to
30301 __guess_grouping.
30302
30303 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30304
30305 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30306 definition for issignaling that does not rely on __MATH_TG,
30307 since __MATH_TG uses __builtin_types_compatible_p, which is only
30308 available in C mode.
30309 (CFLAGS-test-math-issignaling.cc): New variable.
30310 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30311 * math/test-math-issignaling.cc: New test for C++ implementation
30312 of type-generic issignaling.
30313 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30314 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30315 options of test-math-issignaling on powerpc64le.
30316
30317 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30318
30319 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30320 building libc.a.
30321 (hidden_proto): Likewise.
30322 (hidden_tls_proto): Likewise.
30323 (__hidden_proto): Likewise.
30324
30325 2017-08-22 Florian Weimer <fweimer@redhat.com>
30326
30327 math: Statically link tests of internal functionality.
30328 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30329 atest-exp2.
30330 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30331 (gmp-objs): Remove assignment.
30332 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30333
30334 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30335
30336 [BZ #21987]
30337 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30338 and copy to ...
30339 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30340 ... here.
30341 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30342 ... and here.
30343
30344 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30345 variable definitions above inclusion of ../Rules.
30346
30347 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30348
30349 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30350 case calling __builtin_unreachable.
30351
30352 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30353
30354 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30355 __waitpid_nocancel.
30356 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30357 (__waitpid_nocancel): New macro.
30358 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30359 macro.
30360 (__waitpid_nocancel): Replace macro with a function.
30361 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30362 function.
30363
30364 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30365 __fcntl_nocancel.
30366 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30367 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30368
30369 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30370 __writev_nocancel_nostatus.
30371 (write_call_graph): Likewise.
30372 (write_bb_counts): Likewise.
30373 * resolv/herror.c (herror): Likewise.
30374 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30375 macro.
30376 (__writev_nocancel_nostatus): New macro.
30377 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30378 Remove macro.
30379 (__writev_nocancel_nostatus): New function.
30380
30381 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30382
30383 Revert:
30384 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30385
30386 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30387 building libc.a.
30388 (hidden_proto): Likewise.
30389 (hidden_tls_proto): Likewise.
30390 (__hidden_proto): Likewise.
30391
30392 [BZ #21973]
30393 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30394 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30396 Likewise.
30397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30398 Likewise.
30399 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30400 Likewise.
30401 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30402 Likewise.
30403 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30404 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30405 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30406 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30407 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30408 GLIBC_2.0 sqrtl symbol.
30409
30410 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30411 [__USE_MISC] (_LIB_VERSION): Likewise.
30412 [__USE_MISC] (struct exception): Likewise.
30413 [__USE_MISC] (matherr): Likewise.
30414 [__USE_MISC] (DOMAIN): Likewise.
30415 [__USE_MISC] (SING): Likewise.
30416 [__USE_MISC] (OVERFLOW): Likewise.
30417 [__USE_MISC] (UNDERFLOW): Likewise.
30418 [__USE_MISC] (TLOSS): Likewise.
30419 [__USE_MISC] (PLOSS): Likewise.
30420 [__USE_MISC] (HUGE): Likewise.
30421 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30422 * math/math-svid-compat.h: New file.
30423 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30424 and matherrl.
30425 * include/math.h [!_ISOMAC] (__matherr): Remove.
30426 * manual/arith.texi (FP Exceptions): Do not document matherr.
30427 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30428 (tests-internal): New variable.
30429 (install-lib): Do not add libieee.a.
30430 (non-lib.a): Likewise.
30431 (extra-objs): Do not add libieee.a and ieee-math.o.
30432 (CPPFLAGS-s_lib_version.c): Remove variable.
30433 ($(objpfx)libieee.a): Remove rule.
30434 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30435 * math/ieee-math.c: Remove.
30436 * math/libm-test-support.c (matherr): Remove.
30437 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30438 and license notices. Include <math-svid-compat.h> and
30439 <shlib-compat.h>.
30440 (matherr): Undefine as macro. Use compat_symbol_reference.
30441 (_LIB_VERSION): Likewise.
30442 * math/test-matherr-2.c: New file.
30443 * math/test-matherr-3.c: Likewise.
30444 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30445 declaration.
30446 (__kernel_standard_f): Likewise.
30447 (__kernel_standard_l): Likewise.
30448 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30449 <math_private.h>. Include <math-svid-compat.h>.
30450 (_LIB_VERSION): Undefine as macro.
30451 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30452 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30453 [LIBM_SVID_COMPAT], use compat_symbol.
30454 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30455 <math_private.h>. Include <math-svid-compat.h>.
30456 (matherr): Undefine as macro.
30457 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30458 compat_symbol.
30459 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30460 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30461 compat_symbol_reference.
30462 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30463 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30464 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30465 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30466 (MATHERR_D): Remove declaration.
30467 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30468 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30469 [LIBM_BUILD] (pmatherrf): Likewise.
30470 [LIBM_BUILD] (pmatherr): Likewise.
30471 [LIBM_BUILD] (pmatherrl): Likewise.
30472 (DOMAIN): Likewise.
30473 (SING): Likewise.
30474 (OVERFLOW): Likewise.
30475 (UNDERFLOW): Likewise.
30476 (TLOSS): Likewise.
30477 (PLOSS): Likewise.
30478 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30479 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30480 compat_symbol.
30481 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30482 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30483 compat_symbol.
30484 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30485 * math/w_acos_compat.c: Likewise.
30486 * math/w_acosf_compat.c: Likewise.
30487 * math/w_acosh_compat.c: Likewise.
30488 * math/w_acoshf_compat.c: Likewise.
30489 * math/w_acoshl_compat.c: Likewise.
30490 * math/w_acosl_compat.c: Likewise.
30491 * math/w_asin_compat.c: Likewise.
30492 * math/w_asinf_compat.c: Likewise.
30493 * math/w_asinl_compat.c: Likewise.
30494 * math/w_atan2_compat.c: Likewise.
30495 * math/w_atan2f_compat.c: Likewise.
30496 * math/w_atan2l_compat.c: Likewise.
30497 * math/w_atanh_compat.c: Likewise.
30498 * math/w_atanhf_compat.c: Likewise.
30499 * math/w_atanhl_compat.c: Likewise.
30500 * math/w_cosh_compat.c: Likewise.
30501 * math/w_coshf_compat.c: Likewise.
30502 * math/w_coshl_compat.c: Likewise.
30503 * math/w_exp10_compat.c: Likewise.
30504 * math/w_exp10f_compat.c: Likewise.
30505 * math/w_exp10l_compat.c: Likewise.
30506 * math/w_exp2_compat.c: Likewise.
30507 * math/w_exp2f_compat.c: Likewise.
30508 * math/w_exp2l_compat.c: Likewise.
30509 * math/w_fmod_compat.c: Likewise.
30510 * math/w_fmodf_compat.c: Likewise.
30511 * math/w_fmodl_compat.c: Likewise.
30512 * math/w_hypot_compat.c: Likewise.
30513 * math/w_hypotf_compat.c: Likewise.
30514 * math/w_hypotl_compat.c: Likewise.
30515 * math/w_j0_compat.c: Likewise.
30516 * math/w_j0f_compat.c: Likewise.
30517 * math/w_j0l_compat.c: Likewise.
30518 * math/w_j1_compat.c: Likewise.
30519 * math/w_j1f_compat.c: Likewise.
30520 * math/w_j1l_compat.c: Likewise.
30521 * math/w_jn_compat.c: Likewise.
30522 * math/w_jnf_compat.c: Likewise.
30523 * math/w_jnl_compat.c: Likewise.
30524 * math/w_lgamma_main.c: Likewise.
30525 * math/w_lgamma_r_compat.c: Likewise.
30526 * math/w_lgammaf_main.c: Likewise.
30527 * math/w_lgammaf_r_compat.c: Likewise.
30528 * math/w_lgammal_main.c: Likewise.
30529 * math/w_lgammal_r_compat.c: Likewise.
30530 * math/w_log10_compat.c: Likewise.
30531 * math/w_log10f_compat.c: Likewise.
30532 * math/w_log10l_compat.c: Likewise.
30533 * math/w_log2_compat.c: Likewise.
30534 * math/w_log2f_compat.c: Likewise.
30535 * math/w_log2l_compat.c: Likewise.
30536 * math/w_log_compat.c: Likewise.
30537 * math/w_logf_compat.c: Likewise.
30538 * math/w_logl_compat.c: Likewise.
30539 * math/w_pow_compat.c: Likewise.
30540 * math/w_powf_compat.c: Likewise.
30541 * math/w_powl_compat.c: Likewise.
30542 * math/w_remainder_compat.c: Likewise.
30543 * math/w_remainderf_compat.c: Likewise.
30544 * math/w_remainderl_compat.c: Likewise.
30545 * math/w_scalb_compat.c: Likewise.
30546 * math/w_scalbf_compat.c: Likewise.
30547 * math/w_scalbl_compat.c: Likewise.
30548 * math/w_sinh_compat.c: Likewise.
30549 * math/w_sinhf_compat.c: Likewise.
30550 * math/w_sinhl_compat.c: Likewise.
30551 * math/w_sqrt_compat.c: Likewise.
30552 * math/w_sqrtf_compat.c: Likewise.
30553 * math/w_sqrtl_compat.c: Likewise.
30554 * math/w_tgamma_compat.c: Likewise.
30555 * math/w_tgammaf_compat.c: Likewise.
30556 * math/w_tgammal_compat.c: Likewise.
30557 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30558 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30559 * sysdeps/ieee754/k_standard.c: Likewise.
30560 * sysdeps/ieee754/k_standardf.c: Likewise.
30561 * sysdeps/ieee754/k_standardl.c: Likewise.
30562 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30563 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30564 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30565 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30566 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30567 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30568 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30569 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30570 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30571 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30572 Likewise.
30573 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30574 Likewise.
30575 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30576 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30577 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30578 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30579
30580 2017-08-21 Florian Weimer <fweimer@redhat.com>
30581
30582 [BZ #21864]
30583 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30584 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30585 Move before inclusion of ../Rules.
30586
30587 2017-08-21 Florian Weimer <fweimer@redhat.com>
30588
30589 [BZ #21972]
30590 * assert/assert.h (assert): Use static_cast (bool) for C++.
30591 Use the ternary operator in the warning branch for GNU C.
30592 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30593 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30594 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30595 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30596 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30597
30598 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30599
30600 [BZ #18822]
30601 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30602 (__syscall_clock_gettime): Add attribute_hidden.
30603 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30604 (__start_context): Likewise.
30605
30606 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30607
30608 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30609 building libc.a.
30610 (hidden_proto): Likewise.
30611 (hidden_tls_proto): Likewise.
30612 (__hidden_proto): Likewise.
30613
30614 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30615
30616 * include/libc-symbols.h (attribute_hidden): Enable hidden
30617 visibility in libc.a compiled with PIE.
30618
30619 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30620
30621 [BZ #18822]
30622 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30623 Add attribute_hidden.
30624
30625 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30626
30627 [BZ #21864]
30628 * Makerules (all-nonlib): Add $(others-extras).
30629 * catgets/Makefile (others-extras): New.
30630 * elf/Makefile (others-extras): Likewise.
30631 * nss/Makefile (others-extras): Likewise.
30632
30633 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30634
30635 [BZ #18822]
30636 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30637 * elf/dl-open.c: Include <libc-internal.h>.
30638 (__libc_multiple_libcs): Removed.
30639 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30640 <hp-timing.h>.
30641 * include/libc-internal.h (__libc_multiple_libcs): New.
30642 * misc/sbrk.c: Include <libc-internal.h>.
30643 (__libc_multiple_libcs): Removed.
30644
30645 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30646
30647 [BZ #18822]
30648 * grp/initgroups.c (__nss_group_database): Removed.
30649 (__nss_initgroups_database): Likewise.
30650 * nscd/gai.c (__nss_hosts_database): Likewise.
30651 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30652 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30653 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30654 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30655 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30656 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30657 attribute_hidden.
30658 * nss/nsswitch.c (__nss_database_custom): Define only if
30659 USE_NSCD is defined.
30660 (__nss_configure_lookup): Use __nss_database_custom only if
30661 USE_NSCD is defined.
30662 * nss/nsswitch.h (__nss_database_custom): Declare only if
30663 USE_NSCD is defined. Add attribute_hidden.
30664 (__nss_setent): Add attribute_hidden.
30665 (__nss_endent): Likewise.
30666 (__nss_getent_r): Likewise.
30667 (__nss_getent): Likewise.
30668 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30669
30670 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30671
30672 [BZ #18822]
30673 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30674 libc_hidden_proto and libc_hidden_def.
30675
30676 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30677
30678 [BZ #18822]
30679 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30680 Add libc_hidden_proto.
30681 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30682 Add libc_hidden_def.
30683
30684 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30685
30686 [BZ #21974]
30687 * gmon/Makefile (routines): Remove bb_init_func and
30688 bb_exit_func.
30689 (elide-routines.os): Removed.
30690 * gmon/bb_exit_func.c: Likewise.
30691 * gmon/bb_init_func.c: Likewise.
30692 * include/sys/gmon.h (__bb): Likewise.
30693 (__bb_init_func): Likewise.
30694 (__bb_exit_func): Likewise.
30695 * sysdeps/alpha/bb_init_func.S: Likewise.
30696
30697 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30700 * include/setjmp.h (____longjmp_chk): Here. Add
30701 attribute_hidden.
30702
30703 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30704
30705 [BZ #18822]
30706 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30707 attribute_hidden.
30708 (__strspn_sse2): Likewise.
30709
30710 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30711
30712 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30713 (close_not_cancel_no_status): Likewise.
30714 (__close_nocancel): New macro.
30715 (__close_nocancel_nostatus): Likewise.
30716 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30717 macro.
30718 (close_not_cancel): Likewise.
30719 (close_not_cancel_no_status): Likewise.
30720 (__close_nocancel): New prototype.
30721 (__close_nocancel_nostatus): New function.
30722 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30723 * catgets/open_catalog.c (__open_catalog): Replace
30724 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30725 * gmon/gmon.c (write_gmon): Likewise.
30726 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30727 * intl/loadmsgcat.c (close): Likewise.
30728 * io/ftw.c (open_dir_stream): Likewise.
30729 (ftw_startup): Likewise.
30730 * libio/fileops.c (_IO_file_open): Likewise.
30731 (_IO_file_close_mmap): Likewise.
30732 (_IO_file_close): Likewise.
30733 * libio/iopopen.c (_IO_dup2): Likewise.
30734 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30735 * locale/loadlocale.c (_nl_load_locale): Likewise.
30736 * login/utmp_file.c (pututline_file): Likewise.
30737 (endutent_file): Likewise.
30738 * misc/daemon.c (daemon): Likewise.
30739 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30740 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30741 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30742 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30743 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30744 * nscd/nscd_helper.c (open_socket): Likewise.
30745 (__nscd_open_socket): Likewise.
30746 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30747 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30748 (__nscd_innetgr): Likewise.
30749 * nss/nss_db/db-open.c (internal_setent): Likewise.
30750 * resolv/res-close.c (__res_iclose): Likewise.
30751 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30752 * sysdeps/posix/closedir.c (__closedir): Likewise.
30753 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30754 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30755 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30756 (opendir_tail): Likewise.
30757 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30758 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30759 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30760 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30761 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30762 (gethostid): Likewise.
30763 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30764 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30765 Likewise.
30766 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30767 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30768 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30769 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30770 Likewise.
30771 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30772 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30773 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30774 Likewise.
30775 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30776 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30777 Likewise.
30778 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30779 Likewise.
30780 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30781 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30782 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30783 __close_nocancel.
30784
30785 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30786 (openat_not_cancel_3): Likewise.
30787 (openat64_not_cancel_3): Likewise).
30788 (openat_not_cancel_3): Likewise).
30789 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30790 macro.
30791 (openat_not_cancel_3): Likewise.
30792 (openat64_not_cancel): Likewise.
30793 (openat64_not_cancel_3): Likewise.
30794 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30795 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30796 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30797 __open{64}_nocancel.
30798 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30799 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30800 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30801
30802 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30803
30804 [BZ #18822]
30805 * include/argz.h (__argz_create_sep): New function prototype.
30806 (__argz_append): Likewise.
30807 (__argz_add): Likewise.
30808 (__argz_add_sep): Likewise.
30809 (__argz_delete): Likewise.
30810 (__argz_insert): Likewise.
30811 (__argz_replace): Likewise.
30812 * string/argz.h (__argz_create_sep): Removed.
30813 (__argz_append): Likewise.
30814 (__argz_add): Likewise.
30815 (__argz_add_sep): Likewise.
30816 (__argz_delete): Likewise.
30817 (__argz_insert): Likewise.
30818 (__argz_replace): Likewise.
30819
30820 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30821
30822 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30823 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30824 (GNU_PROPERTY_STACK_SIZE): Likewie.
30825 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30826 (GNU_PROPERTY_LOPROC): Likewise.
30827 (GNU_PROPERTY_HIPROC): Likewise.
30828 (GNU_PROPERTY_LOUSER): Likewise.
30829 (GNU_PROPERTY_HIUSER): Likewise.
30830 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30831 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30832 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30833 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30834 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30835 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30836 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30837 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30838 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30839 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30840 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30841 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30842 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30843 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30844 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30845 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30846 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30847 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30848 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30849 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30850 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30851 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30852 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30853
30854 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30855
30856 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30857 in C++ mode.
30858
30859 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30860
30861 [BZ #21930]
30862 * math/math.h (isinf): Check if in C or C++ mode before using
30863 __builtin_types_compatible_p, since this is a C mode feature.
30864
30865 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30866
30867 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30868 (__write_nocancel): New macro.
30869 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30870 Rewrite as a function prototype.
30871 (write_not_cancel): Remove macro.
30872 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30873 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30874 (write_gmon): Likewise.
30875 * libio/fileops.c (_IO_new_file_write): Likewise.
30876 * login/utmp_file.c (pututline_file): Likewise.
30877 (updwtmp_file): Likewise.
30878 * stdio-common/psiginfo.c (psiginfo): Likewise.
30879 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30880 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30881 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30882 Likewise.
30883 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30884 Likewise.
30885
30886 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30887 (__read_nocancel): New macro.
30888 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30889 __read_nocancel.
30890 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30891 macro.
30892 (__read_nocancel): New prototype.
30893 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30894 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30895 with __read_nocancel.
30896 * intl/loadmsgcat.c (read): Likewise.
30897 * libio/fileops.c (_IO_file_read): Likewise.
30898 * locale/loadlocale.c (_nl_load_locale): Likewise.
30899 * login/utmp_file.c (getutent_r_file): Likewise.
30900 (internal_getut_r): Likewise.
30901 (getutline_r_file): Likewise.
30902 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30903 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30904 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30905 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30906 Likewise.
30907 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30908 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30909 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30910 Likewise.
30911 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30912 Likewise.
30913 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30914 Likewise.
30915 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30916 Likewise.
30917 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30918
30919 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30920
30921 [BZ #21966]
30922 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30923 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30924 usable.
30925
30926 2017-08-17 DJ Delorie <dj@redhat.com>
30927
30928 * bug17079.c: Update to new test harness.
30929 * test-digits-dots.c: Likewise.
30930 * test-netdb.c: Likewise.
30931 * tst-field.c: Likewise.
30932 * tst-nss-getpwent.c: Likewise.
30933 * tst-nss-static.c: Likewise.
30934 * tst-nss-test1.c: Likewise.
30935 * tst-nss-test2.c: Likewise.
30936 * tst-nss-test3.c: Likewise.
30937 * tst-nss-test4.c: Likewise.
30938 * tst-nss-test5.c: Likewise.
30939
30940 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30941
30942 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30943 (open_not_cancel_2): Likewise.
30944 (open_nocancel): New macro.
30945 (open64_nocancel): Likewise.
30946 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30947 (open_not_cancel_2): Likewise.
30948 (__open_nocancel): New prototype.
30949 (__open64_nocancel): Likewise.
30950 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30951 __open_nocancel.
30952 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30953 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30954 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30955 with __open_nocancel.
30956 * csu/check_fds.c (check_one_fd): Likewise.
30957 * gmon/gmon.c (write_gmon): Likewise.
30958 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30959 * intl/loadmsgcat.c (open): Likewise.
30960 * libio/fileops.c (_IO_file_open): Likewise.
30961 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30962 * locale/loadlocale.c (_nl_load_locale): Likewise.
30963 * login/utmp_file.c (setutent_file): Likewise.
30964 * misc/daemon.c (daemon): Likewise.
30965 * nss/nss_db/db-open.c (internal_setent): Likewise.
30966 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30967 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30968 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30969 (__opendir): Likewise.
30970 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30971 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30972 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30973 (gethostid): Likewise.
30974 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30975 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30976 Likewise.
30977 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30978 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30979 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30980 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30981 Likewise.
30982 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30983 Likewise.
30984 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30987 Likewise.
30988 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30989 Likewise.
30990 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30991 Likewise.
30992 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30993 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30994
30995 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30996
30997 * benchtests/bench-skeleton.c (main): Add support for
30998 latency benchmarking.
30999 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31000
31001 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31002
31003 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31004 the startup object.
31005
31006 2017-08-17 Florian Weimer <fweimer@redhat.com>
31007
31008 * include/sys/socket.h (__opensock): Remove internal_function.
31009 * socket/opensock.c (__opensock): Likewise.
31010 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31011
31012 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31013
31014 [BZ #21944]
31015 * signal/bits/types/__sigval_t.h: New file.
31016 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31017 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31018 and define sigval_t using __sigval_t.
31019 * include/bits/types/__sigval_t.h: New file.
31020 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31021 instead of <bits/types/__sigval_t.h>.
31022 (struct sigevent): Use __sigval_t instead of sigval_t.
31023 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31024 instead of <bits/types/__sigval_t.h>.
31025 (siginfo_t): Use __sigval_t instead of sigval_t.
31026 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31027 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31028 (struct sigevent): Use __sigval_t instead of sigval_t.
31029 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31030 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31031 (siginfo_t): Use __sigval_t instead of sigval_t.
31032 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31033
31034 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31035
31036 * NEWS: Remove "[Add new features here]" for 2.27.
31037
31038 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31039
31040 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31041 libc.so.
31042
31043 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31044
31045 * NEWS: Mention x86-64 FMA optimization.
31046
31047 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31048
31049 [BZ #21912]
31050 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31051 Add e_expf-fma.
31052 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31053 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31054 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31055
31056 2017-08-16 Andreas Schwab <schwab@suse.de>
31057
31058 [BZ #16750]
31059 CVE-2009-5064
31060 * elf/ldd.bash.in: Never run file directly.
31061
31062 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31063
31064 [BZ #21955]
31065 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31066 (L(SP_INF_0)): Likewise.
31067
31068 2017-08-15 Florian Weimer <fweimer@redhat.com>
31069
31070 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31071 run-built-tests.
31072
31073 2017-08-15 Florian Weimer <fweimer@redhat.com>
31074
31075 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31076 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31077 BROKEN_THREAD_SIGNALS code.
31078 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31079 request_list): Remove caller_pid member used for
31080 BROKEN_THREAD_SIGNALS.
31081 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31082 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31083 Remove BROKEN_THREAD_SIGNALS support.
31084 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31085 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31086
31087 2017-08-15 Florian Weimer <fweimer@redhat.com>
31088
31089 * gmon/Makefile (tests): Add tst-gmon.
31090 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31091 Set.
31092 (tests-special): Add tst-gmon-prof.out.
31093 (tst-gmon.out): Depend on clean-tst-gmon-data.
31094 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31095 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31096 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31097 startup object.
31098 * aclocal.m4 (GPROF): Set and substitute.
31099 * config.amke.in (GPROF): Set.
31100 * configure: Regenerate.
31101
31102 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31103
31104 * elf/elf.h A (NT_PPC_TAR): New macro.
31105 (NT_PPC_PPR): Likewise.
31106 (NT_PPC_DSCR): Likewise.
31107 (NT_PPC_EBB): Likewise.
31108 (NT_PPC_PMU): Likewise.
31109 (NT_PPC_TM_CGPR): Likewise.
31110 (NT_PPC_TM_CFPR): Likewise.
31111 (NT_PPC_TM_CVMX): Likewise.
31112 (NT_PPC_TM_CVSX): Likewise.
31113 (NT_PPC_TM_SPR): Likewise.
31114 (NT_PPC_TM_CTAR): Likewise.
31115 (NT_PPC_TM_CPPR): Likewise.
31116 (NT_PPC_TM_CDSCR): Likewise.
31117
31118 2017-08-15 Florian Weimer <fweimer@redhat.com>
31119
31120 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31121 regparm (2) instead of internal_function.
31122 (_MCOUNT_DECL): Adjust.
31123
31124 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31125
31126 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31127 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31128
31129 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31130
31131 * conform/data/sys/wait.h-data (si_value): Do not expect for
31132 XPG42.
31133
31134 2017-08-14 Florian Weimer <fweimer@redhat.com>
31135
31136 [BZ #21962]
31137 NSS: Create stubs for accidentally exported lookup functions.
31138 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31139 Remove declaration.
31140 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31141 (ether_hostton): Call __nss_ethers_lookup2 instead.
31142 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31143 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31144 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31145 (setup): Call __nss_netgroup_lookup2 instead.
31146 * nss/Makefile (routines): Add compat-lookup.
31147 * nss/Versions (GLIBC_2.27): Add symbol version.
31148 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31149 (DB_COMPAT_FCT): Remove.
31150 * nss/compat-lookup.c: New file.
31151 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31152 from databases.def.
31153 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31154 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31155 (netname2user): Call __nss_publickey_lookup2 instead.
31156 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31157 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31158 instead.
31159
31160 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31161 Sergei Trofimovich <slyfox@inbox.ru>
31162
31163 [BZ #21908]
31164 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31165 Rename to MMAP2_PAGE_UNIT.
31166 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31167 __OFF_T_MATCHES_OFF64_T is not defined.
31168 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31169 uint64_t.
31170 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31171 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31172
31173 2017-08-14 Florian Weimer <fweimer@redhat.com>
31174
31175 i386: Do not set internal_function.
31176 * config.h.in (USE_REGPARMS, internal_function): Remove.
31177 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31178 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31179
31180 2017-08-14 Florian Weimer <fweimer@redhat.com>
31181
31182 * elf/dl-init.c (_dl_init): Remove internal_function.
31183 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31184 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31185
31186 2017-08-14 Florian Weimer <fweimer@redhat.com>
31187
31188 * elf/rtld.c (_dl_start): Remove internal_function.
31189 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31190 _dl_start.
31191
31192 2017-08-14 Florian Weimer <fweimer@redhat.com>
31193
31194 * elf/dl-fini.c (_dl_fini): Remove internal_function
31195 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31196
31197 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31198
31199 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31200 (bit_cpu_SHSTK): Likewise.
31201 (index_cpu_IBT): Likewise.
31202 (index_cpu_SHSTK): Likewise.
31203 (reg_IBT): Likewise.
31204 (reg_SHSTK): Likewise.
31205 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31206 Handle index_cpu_IBT and index_cpu_SHSTK.
31207
31208 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31209
31210 [BZ #19982]
31211 * po/fr.po: Fix spelling mistake.
31212
31213 2017-08-13 Florian Weimer <fweimer@redhat.com>
31214
31215 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31216 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31217 (_dl_catch_error, _dl_receive_error): Likewise.
31218 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31219 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31220 (_dl_deallocate_tls): Likewise.
31221 * include/dlfcn.h (_dl_addr): Likewise.
31222 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31223 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31224 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31225 Likewise.
31226
31227 2017-08-13 Florian Weimer <fweimer@redhat.com>
31228
31229 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31230 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31231 internal_function.
31232 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31233
31234 2017-08-13 Florian Weimer <fweimer@redhat.com>
31235
31236 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31237 internal_function.
31238 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31239 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31240 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31241 internal_function from _dl_make_stack_executable_hook member.
31242 (_dl_make_stack_executable): Remove internal_function.
31243 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31244 Likewise.
31245 * sysdeps/unix/sysv/linux/dl-execstack.c
31246 (_dl_make_stack_executable): Likewise.
31247
31248 2017-08-13 Florian Weimer <fweimer@redhat.com>
31249
31250 * sysdeps/unix/sysv/linux/netlinkaccess.h
31251 (__netlink_assert_response): Remove internal_function.
31252 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31253 (__netlink_assert_response): Likewise.
31254
31255 2017-08-13 Florian Weimer <fweimer@redhat.com>
31256
31257 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31258 internal_function.
31259 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31260
31261 2017-08-13 Florian Weimer <fweimer@redhat.com>
31262
31263 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31264 internal_function.
31265 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31266 * inet/netgroup.h (__internal_setnetgrent)
31267 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31268 * inet/getnetgrent_r.c (__internal_setnetgrent)
31269 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31270 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31271 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31272 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31273 * nss/nsswitch.h (db_lookup_function): Likewise.
31274
31275 2017-08-13 Florian Weimer <fweimer@redhat.com>
31276
31277 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31278 Remove internal_function.
31279 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31280 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31281 message argument on the stack.
31282 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31283 Likeweise.
31284
31285 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31286
31287 Adapt test case data to the changes in the thousands
31288 separators.
31289
31290 [BZ #20756]
31291 * localedata/tst-langinfo.sh: Adapt test case data.
31292 * stdlib/tst-strfmon_l.c: Likewise.
31293 * stdlib/tst-strtod4.c: Likewise.
31294 * stdlib/tst-strtod5i.c: Likewise.
31295
31296 2017-08-11 Florian Weimer <fweimer@redhat.com>
31297
31298 [BZ #21242]
31299 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31300 Suppress pedantic warning resulting from statement expression.
31301 (__ASSERT_FUNCTION): Add missing __extension__.
31302
31303 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31304
31305 * benchtests/bench-memmove-large.c: Print output in JSON
31306 format.
31307 * benchtests/bench-memmove.c: Likewise.
31308
31309 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31310 * benchtests/bench-memchr.c (do_one_test): Likewise.
31311 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31312 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31313 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31314 * benchtests/bench-memmove.c (do_one_test): Likewise.
31315 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31316 * benchtests/bench-memset.c (do_one_test): Likewise.
31317 * benchtests/bench-string.h (test_init): Remove memsets.
31318
31319 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31320
31321 * manual/lang.texi
31322 (Computing the Width of an Integer Data Type): Rename section to
31323 "Width of an Integer Type". Remove inaccurate statement regarding
31324 lack of C language facilities for determining width of integer
31325 types, and reorder content to improve flow and context of
31326 discussion.
31327
31328 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31329
31330 * lang.texi (va_copy): Change standard from ISO to C99.
31331 (__va_copy): Add standard and header annotation.
31332 Update description for clarity of origins and current use.
31333
31334 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31335
31336 [BZ #21941]
31337 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31338 xssqrtqp requires operands to be in Vector Registers
31339 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31340 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31341 (__ieee754_sqrtf128): Likewise.
31342
31343 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31344
31345 * sysdeps/aarch64/memcmp.S (memcmp):
31346 Rewrite of optimized memcmp.
31347
31348 2017-08-10 Florian Weimer <fweimer@redhat.com>
31349
31350 Introduce ld.so exceptions.
31351 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31352 (_dl_exception_create, _dl_exception_create_format)
31353 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31354 (_dl_catch_exception): Declare.
31355 (_dl_catch_error): Update comment.
31356 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31357 errstring, malloced members with exception member.
31358 (_dl_out_of_memory): Remove.
31359 (fatal_error): New function, extracted from _dl_signal_error.
31360 (_dl_signal_exception, _dl_signal_cexception): New functions.
31361 (_dl_signal_error): Call _dl_exception_create to allocate an
31362 exception object.
31363 (_dl_catch_exception): New function, based on _dl_catch_error.
31364 (_dl_catch_error): Implement using _dl_catch_exception.
31365 * elf/dl-exception.c: New file.
31366 * elf/Makefile (dl-routines): Add dl-exception.
31367 (elide-routines.os): Likewise.
31368 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31369 _dl_exception_create_format, _dl_exception_free.
31370 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31371 _dl_signal_exception.
31372 * elf/dl-lookup.c (make_string): Remove.
31373 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31374 _dl_signal_cexception, _dl_exception_free.
31375 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31376 _dl_signal_exception.
31377 * elf/dl-sym.c (do_sym): Likewise.
31378 * elf/dl-version.c (make_string): Remove.
31379 (match_symbol): Use _dl_exception_create_format,
31380 _dl_signal_cexception, _dl_exception_free.
31381 (_dl_check_map_versions): Likewise.
31382 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31383 _dl_catch_exception.
31384 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31385 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31386 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31387 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31388 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31389 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31390 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31391 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31392 Likewise.
31393 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31395 (ld.so): Likewise.
31396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31397 (ld.so): Likewise.
31398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31399 Likewise.
31400 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31401 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31402 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31403 Likewise.
31404 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31405 Likewise.
31406 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31407
31408 2017-08-10 Florian Weimer <fweimer@redhat.com>
31409
31410 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31411 attribute_hidden, internal_function.
31412 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31413 internal_function.
31414
31415 2017-08-10 Florian Weimer <fweimer@redhat.com>
31416
31417 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31418 function which calls __builtin_unreachable.
31419
31420 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31421
31422 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31423 Indian monetary formatting
31424 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31425 test cases.
31426
31427 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31428
31429 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31430 Fix typo in comment.
31431
31432 [BZ #21928]
31433 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31434 PTRACE_SEIZE_DEVEL): Remove.
31435 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31436 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31437 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31438 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31439 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31440
31441 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31442
31443 * posix/bits/types.h (__qaddr_t): Remove.
31444
31445 [BZ #21457]
31446 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31447 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31448 __glibc_reserved1.
31449 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31450 (ucontext_t): Use __ctx with uc_flags.
31451 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31452 (__ctxt): Likewise.
31453 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31454 __glibc_reserved1.
31455 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31456 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31457 __glibc_reserved1.
31458 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31459 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31460 __glibc_reserved1.
31461 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31462 macro.
31463 (ucontext_t): Use __ctx with uc_flags.
31464 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31465 (ucontext_t): Use __ctx with uc_flags.
31466 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31467 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31468 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31469 (ucontext_t): Use __ctx with uc_flags.
31470 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31471 undefine further down.
31472 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31473 __glibc_reserved1.
31474 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31475 undefine further down.
31476 (ucontext_t): Use __ctx with uc_flags.
31477 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31478 undefine further down.
31479 (ucontext_t): Use __ctx with uc_flags.
31480 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31481 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31482 Rename uc_pad to __glibc_reserved1.
31483 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31484 undefine further down.
31485 (ucontext_t): Use __ctx with uc_flags.
31486 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31487 further down.
31488 (ucontext_t): Use __ctx with uc_flags.
31489 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31490 __ctx with uc_flags.
31491 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31492 (ucontext_t): Use __ctx with uc_flags.
31493 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31494 __ctx with uc_flags.
31495
31496 2017-08-09 Florian Weimer <fweimer@redhat.com>
31497
31498 [BZ #21932]
31499 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31500 before early return.
31501
31502 2017-08-09 Andreas Schwab <schwab@suse.de>
31503
31504 [BZ #21041]
31505 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31506 renamed alias.
31507
31508 [BZ #21041]
31509 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31510 tst-compat-forwarder.
31511 (modules-names): Add tst-compat-forwarder-mod.
31512 ($(objpfx)tst-compat-forwarder): Depend on
31513 $(objpfx)tst-compat-forwarder-mod.so.
31514 * nptl/tst-compat-forwarder.c: New file.
31515 * nptl/tst-compat-forwarder-mod.c: New file.
31516
31517 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31518
31519 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31520 comments.
31521
31522 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31523 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31524 memcpy_falkor.
31525 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31526 Bump.
31527 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31528 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31529 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31530 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31531 Add falkor.
31532 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31533 New macro.
31534
31535 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31536
31537 [BZ #759]
31538 * manual/setjmp.texi (getcontex): Document uc_stack value
31539 compatibility differences.
31540
31541 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31542
31543 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31544 (old_malloc_hook): Likewise.
31545 (old_memalign_hook): Likewise.
31546 (old_realloc_hook): Likewise.
31547 (struct hdr): Likewise.
31548 (flood): Likewise.
31549 (freehook): Likewise.
31550 (mallochook): Likewise.
31551 (memalignhook): Likewise.
31552 (reallochook): Likewise.
31553 (mprobe): Likewise.
31554 * malloc/mtrace.c (mallwatch): Likewise.
31555 (tr_old_free_hook): Likewise.
31556 (tr_old_malloc_hook): Likewise.
31557 (tr_old_realloc_hook): Likewise.
31558 (tr_old_memalign_hook): Likewise.
31559 (tr_where): Likewise.
31560 (lock_and_info): Likewise.
31561 (tr_freehook): Likewise.
31562 (tr_mallochook): Likewise.
31563 (tr_reallochook): Likewise.
31564 (tr_memalignhook): Likewise.
31565 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31566 * misc/mmap.c (__mmap): Likewise.
31567 * misc/mmap64.c (__mmap64): Likewise.
31568 * misc/mprotect.c (__mprotect): Likewise.
31569 * misc/msync.c (msync): Likewise.
31570 * misc/munmap.c (__munmap): Likewise.
31571 * posix/posix_madvise.c (posix_madvise): Likewise.
31572 * socket/send.c (__send): Likewise.
31573 * socket/sendto.c (__sendto): Likewise.
31574 * socket/setsockopt.c (__setsockopt): Likewise.
31575 * string/memcmp.c (__ptr_t): Remove macro.
31576 (MEMCMP): Use void * instead of ptr_t.
31577 * string/memrchr.c (__ptr_t): Remove macro.
31578 (__memrchr): Use void * instead of ptr_t.
31579 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31580 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31581 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31582 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31583 * sysdeps/mach/msync.c (msync): Likewise.
31584 * sysdeps/mach/munmap.c (__munmap): Likewise.
31585 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31586 Likewise.
31587 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31588 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31589 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31590 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31591 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31592 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31593 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31594 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31595 Likewise.
31596 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31597 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31598 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31599 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31600 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31601 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31602 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31603 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31604 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31605 Likewise.
31606 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31607 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31608 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31609 (MEMCMP): Use void * instead of ptr_t.
31610 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31611 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31612
31613 2017-08-08 Florian Weimer <fweimer@redhat.com>
31614
31615 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31616 return statement.
31617
31618 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31619
31620 [BZ #21913]
31621 * csu/libc-tls.c: Include <startup.h> first.
31622 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31623 * elf/dl-tunables.c: Include <startup.h> first.
31624 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31625 * sysdeps/generic/startup.h: New file.
31626 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31627 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31628 (I386_USE_SYSENTER): New. Defined to 0.
31629
31630 2017-08-08 Andreas Schwab <schwab@suse.de>
31631
31632 [BZ #21041]
31633 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31634 * nptl/pt-system.c (system): Likewise.
31635
31636 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31637
31638 [BZ #21780]
31639 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31640 EOPNOTSUPP.
31641 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31642 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31643 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31644 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31645 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31646 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31647 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31648
31649 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31650
31651 [BZ #21899]
31652 * bits/sigaction.h (struct sigaction): Define sa_handler and
31653 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31654 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31655 [__USE_XOPEN_EXTENDED].
31656 (SA_RESTART): Likewise.
31657 (SA_NODEFER): Likewise.
31658 (SA_RESETHAND): Likewise.
31659 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31660 (struct sigaction): Define sa_handler and sa_sigaction using union
31661 also for [__USE_XOPEN_EXTENDED].
31662 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31663 [__USE_XOPEN_EXTENDED].
31664 (SA_RESTART): Likewise.
31665 (SA_NODEFER): Likewise.
31666 (SA_RESETHAND): Likewise.
31667 * sysdeps/unix/sysv/linux/bits/sigaction.h
31668 (struct sigaction): Define sa_handler and sa_sigaction using union
31669 also for [__USE_XOPEN_EXTENDED].
31670 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31671 [__USE_XOPEN_EXTENDED].
31672 (SA_RESTART): Likewise.
31673 (SA_NODEFER): Likewise.
31674 (SA_RESETHAND): Likewise.
31675 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31676 (struct sigaction): Define sa_handler and sa_sigaction using union
31677 also for [__USE_XOPEN_EXTENDED].
31678 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31679 [__USE_XOPEN_EXTENDED].
31680 (SA_RESTART): Likewise.
31681 (SA_NODEFER): Likewise.
31682 (SA_RESETHAND): Likewise.
31683 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31684 (struct sigaction): Define sa_handler and sa_sigaction using union
31685 also for [__USE_XOPEN_EXTENDED].
31686 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31687 [__USE_XOPEN_EXTENDED].
31688 (SA_RESTART): Likewise.
31689 (SA_NODEFER): Likewise.
31690 (SA_RESETHAND): Likewise.
31691 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31692 (struct sigaction): Define sa_handler and sa_sigaction using union
31693 also for [__USE_XOPEN_EXTENDED].
31694 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31695 [__USE_XOPEN_EXTENDED].
31696 (SA_RESTART): Likewise.
31697 (SA_NODEFER): Likewise.
31698 (SA_RESETHAND): Likewise.
31699 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31700 (struct sigaction): Define sa_handler and sa_sigaction using union
31701 also for [__USE_XOPEN_EXTENDED].
31702 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31703 [__USE_XOPEN_EXTENDED].
31704 (SA_RESTART): Likewise.
31705 (SA_NODEFER): Likewise.
31706 (SA_RESETHAND): Likewise.
31707 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31708 (struct sigaction): Define sa_handler and sa_sigaction using union
31709 also for [__USE_XOPEN_EXTENDED].
31710 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31711 [__USE_XOPEN_EXTENDED].
31712 (SA_RESTART): Likewise.
31713 (SA_NODEFER): Likewise. Define directly rather than as alias.
31714 (SA_RESETHAND): Likewise.
31715 (SA_INTERRUPT): Define only for [__USE_MISC].
31716 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31717 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31718 [__USE_MISC].
31719 (SA_STACK): Define only for [__USE_MISC].
31720 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31721 (struct sigaction): Define sa_handler and sa_sigaction using union
31722 also for [__USE_XOPEN_EXTENDED].
31723 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31724 [__USE_XOPEN_EXTENDED].
31725 (SA_RESTART): Likewise.
31726 (SA_NODEFER): Likewise.
31727 (SA_RESETHAND): Likewise.
31728 (SA_NOPTRACE): Define only for [__USE_MISC].
31729
31730 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31731 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31732 (struct catalog_info): Likewise.
31733 * inet/htontest.c (lo): Likewise.
31734 (foo): Likewise.
31735 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31736 * inet/inet_net.c (inet_network): Likewise.
31737 * inet/inet_netof.c (inet_netof): Likewise.
31738 * inet/rcmd.c (__ivaliduser): Likewise.
31739 (iruserok): Likewise.
31740 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31741 * locale/programs/locale-spec.c (locale_special): Likewise.
31742 * nis/nis_findserv.c (struct findserv_req): Likewise.
31743 (__nis_findfastest_with_timeout): Likewise.
31744 * nss/test-netdb.c (test_network): Likewise.
31745 * resolv/inet_neta.c (inet_neta): Likewise.
31746 * resolv/ns_date.c (ns_datetosecs): Likewise.
31747 (SECS_PER_DAY): Likewise.
31748 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31749 Likewise.
31750 * resolv/res_comp.c (__putlong): Likewise.
31751 (__putshort): Likewise.
31752 (_getlong): Likewise.
31753 (_getshort): Likewise.
31754 * resolv/res_debug.c (p_time): Likewise.
31755 (precsize_ntoa): Likewise.
31756 (precsize_aton): Likewise.
31757 (latlon2ul): Likewise.
31758 (loc_aton): Likewise.
31759 (loc_ntoa): Likewise.
31760 * resolv/res_hconf.c (struct netaddr): Likewise.
31761 (_res_hconf_reorder_addrs): Likewise.
31762 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31763 (clnttcp_control): Likewise.
31764 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31765 (clntudp_control): Likewise.
31766 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31767 (clntunix_control): Likewise.
31768 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31769 * sunrpc/rpc/auth.h (union des_block): Likewise.
31770 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31771 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31772 (xdrrec_create): Likewise.
31773 (xdrrec_endofrecord): Likewise.
31774 (flush_out): Likewise.
31775 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31776 (xdrstdio_putlong): Likewise.
31777 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31778 Likewise.
31779
31780 * misc/sys/cdefs.h (__long_double_t): Remove.
31781 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31782 instead of __long_double_t,
31783 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31784
31785 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31786
31787 * benchtests/scripts/compare_strings.py: Avoid display error when
31788 running on a text terminal.
31789
31790 * benchtests/scripts/compare_strings.py (main): Add an
31791 optional -base option.
31792 (process_results): New argument base_func.
31793
31794 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31795 hardcoding memcpy.
31796 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31797 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31798
31799 2017-08-07 Andreas Schwab <schwab@suse.de>
31800
31801 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31802 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31803 * intl/Makefile ($(objpfx)tst-gettext.out)
31804 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31805 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31806 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31807 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31808 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31809 * posix/Makefile ($(objpfx)globtest.out)
31810 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31811 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31812 ($(objpfx)tst-printf.out): Likewise.
31813 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31814 ($(objpfx)tst-setcontext3.out): Likewise.
31815
31816 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31817
31818 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31819 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31820 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31821 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31822 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31823 and mptan-fma.
31824 (CFLAGS-doasin-fma.c): New.
31825 (CFLAGS-dosincos-fma.c): Likewise.
31826 (CFLAGS-e_asin-fma.c): Likewise.
31827 (CFLAGS-e_atan2-fma.c): Likewise.
31828 (CFLAGS-e_exp-fma.c): Likewise.
31829 (CFLAGS-e_log-fma.c): Likewise.
31830 (CFLAGS-e_pow-fma.c): Likewise.
31831 (CFLAGS-halfulp-fma.c): Likewise.
31832 (CFLAGS-mpa-fma.c): Likewise.
31833 (CFLAGS-mpatan-fma.c): Likewise.
31834 (CFLAGS-mpatan2-fma.c): Likewise.
31835 (CFLAGS-mpexp-fma.c): Likewise.
31836 (CFLAGS-mplog-fma.c): Likewise.
31837 (CFLAGS-mpsqrt-fma.c): Likewise.
31838 (CFLAGS-mptan-fma.c): Likewise.
31839 (CFLAGS-s_atan-fma.c): Likewise.
31840 (CFLAGS-sincos32-fma.c): Likewise.
31841 (CFLAGS-slowexp-fma.c): Likewise.
31842 (CFLAGS-slowpow-fma.c): Likewise.
31843 (CFLAGS-s_sin-fma.c): Likewise.
31844 (CFLAGS-s_tan-fma.c): Likewise.
31845 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31846 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31847 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31848 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31849 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31850 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31851 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31852 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31853 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31854 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31855 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31856 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31857 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31858 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31859 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31860 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31861 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31862 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31863 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31864 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31865 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31866 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31867 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31868 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31869 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31870 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31871 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31872 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31873 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31874 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31875 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31876
31877 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31878
31879 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31880 (min_of_type_f): New macro.
31881 (min_of_type_): Likewise.
31882 (min_of_type_l): Likewise.
31883 (min_of_type_f128): Likewise.
31884 (min_of_type): Define using __MATH_TG and taking an expression
31885 argument.
31886 (math_check_force_underflow): Pass expression instead of type to
31887 min_of_type.
31888 (math_check_force_underflow_nonneg): Likewise.
31889
31890 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31891
31892 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31893 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31894 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31895
31896 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31897
31898 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31899 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31900 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31901 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31902 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31903 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31904 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31905 memmove_chk-nonshared and memset_chk-nonshared
31906 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31907 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31908 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31909 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31910 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31911 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31912 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31913 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31914 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31915 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31916 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31917 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31918 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31919 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31920 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31921 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31922 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31923 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31924 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31925 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31926 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31927 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31928 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31929 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31930 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31931 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31932 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31933 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31934 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31935 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31936 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31937 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31938 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31939 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31940 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31941 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31942 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31943 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31944 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31945 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31946 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31947 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31948 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31949 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31950 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31951 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31952 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31953 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31954 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31955 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31956 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31957 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31958 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31959 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31960 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31961 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31962 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31963 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31964 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31965 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31966 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31967 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31968 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31969 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31970 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31971 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31972 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31973 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31974 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31975 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31976 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31977 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31978 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31979 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31980 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31981 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31982 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31983 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31984 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31985 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31986 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31987 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31988 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31989 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31990 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31991 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31992 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31993 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31994 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31995 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31996 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31997 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31998 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31999 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32000 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32001 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32002 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32003 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32004 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32005 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32006 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32007 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32008 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32009 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32010 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32011 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32012 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32013 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32014
32015 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32016
32017 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32018 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32019 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32020 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32021 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32022 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32023 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32024 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32025 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32026 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32027 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32028 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32029 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32030 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32031 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32032 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32033 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32034 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32035 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32036 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32037 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32038 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32039 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32040 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32041 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32042 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32043 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32044 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32045 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32046 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32047 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32048 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32049 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32050 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32051 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32052 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32053 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32054 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32055 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32056 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32057 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32058 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32059 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32060 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32061 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32062 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32063 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32064 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32065 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32066 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32067 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32068 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32069 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32070 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32071 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32072 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32073 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32074 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32075 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32076 ...
32077 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32078 Don't include <sysdep.h> nor <init-arch.h>.
32079 (_ZGVbN2v_cos): Removed.
32080 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32081 ...
32082 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32083 Don't include <sysdep.h> nor <init-arch.h>.
32084 (_ZGVdN4v_cos): Removed.
32085 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32086 ...
32087 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32088 Don't include <sysdep.h> nor <init-arch.h>.
32089 (_ZGVeN8v_cos): Removed.
32090 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32091 ...
32092 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32093 Don't include <sysdep.h> nor <init-arch.h>.
32094 (_ZGVbN2v_exp): Removed.
32095 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32096 ...
32097 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32098 Don't include <sysdep.h> nor <init-arch.h>.
32099 (_ZGVdN4v_exp): Removed.
32100 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32101 ...
32102 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32103 Don't include <sysdep.h> nor <init-arch.h>.
32104 (_ZGVeN8v_exp): Removed.
32105 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32106 ...
32107 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32108 Don't include <sysdep.h> nor <init-arch.h>.
32109 (_ZGVbN2v_log): Removed.
32110 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32111 ...
32112 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32113 Don't include <sysdep.h> nor <init-arch.h>.
32114 (_ZGVdN4v_log): Removed.
32115 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32116 ...
32117 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32118 Don't include <sysdep.h> nor <init-arch.h>.
32119 (_ZGVeN8v_log): Removed.
32120 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32121 ...
32122 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32123 Don't include <sysdep.h> nor <init-arch.h>.
32124 (_ZGVbN2vv_pow): Removed.
32125 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32126 ...
32127 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32128 Don't include <sysdep.h> nor <init-arch.h>.
32129 (_ZGVdN4vv_pow): Removed.
32130 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32131 ...
32132 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32133 Don't include <sysdep.h> nor <init-arch.h>.
32134 (_ZGVeN8vv_pow): Removed.
32135 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32136 ...
32137 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32138 Don't include <sysdep.h> nor <init-arch.h>.
32139 (_ZGVbN2v_sin): Removed.
32140 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32141 ...
32142 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32143 Don't include <sysdep.h> nor <init-arch.h>.
32144 (_ZGVbN4v_sin): Removed.
32145 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32146 ...
32147 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32148 Don't include <sysdep.h> nor <init-arch.h>.
32149 (_ZGVbN8v_sin): Removed.
32150 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32151 ...
32152 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32153 Don't include <sysdep.h> nor <init-arch.h>.
32154 (_ZGVbN2vvv_sincos): Removed.
32155 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32156 ...
32157 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32158 Don't include <sysdep.h> nor <init-arch.h>.
32159 (_ZGVdN4vvv_sincos): Removed.
32160 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32161 ...
32162 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32163 Don't include <sysdep.h> nor <init-arch.h>.
32164 (_ZGVeN8vvv_sincos): Removed.
32165 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32166 ...
32167 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32168 Don't include <sysdep.h> nor <init-arch.h>.
32169 (_ZGVeN16v_cosf): Removed.
32170 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32171 ...
32172 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32173 Don't include <sysdep.h> nor <init-arch.h>.
32174 (_ZGVbN4v_cosf): Removed.
32175 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32176 ...
32177 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32178 Don't include <sysdep.h> nor <init-arch.h>.
32179 (_ZGVdN8v_cosf): Removed.
32180 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32181 ...
32182 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32183 Don't include <sysdep.h> nor <init-arch.h>.
32184 (_ZGVeN16v_expf): Removed.
32185 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32186 ...
32187 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32188 Don't include <sysdep.h> nor <init-arch.h>.
32189 (_ZGVbN4v_expf): Removed.
32190 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32191 ...
32192 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32193 Don't include <sysdep.h> nor <init-arch.h>.
32194 (_ZGVdN8v_expf): Removed.
32195 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32196 ...
32197 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32198 Don't include <sysdep.h> nor <init-arch.h>.
32199 (_ZGVeN16v_logf): Removed.
32200 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32201 ...
32202 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32203 Don't include <sysdep.h> nor <init-arch.h>.
32204 (_ZGVbN4v_logf): Removed.
32205 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32206 ...
32207 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32208 Don't include <sysdep.h> nor <init-arch.h>.
32209 (_ZGVdN8v_logf): Removed.
32210 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32211 ...
32212 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32213 Don't include <sysdep.h> nor <init-arch.h>.
32214 (_ZGVeN16vv_powf): Removed.
32215 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32216 ...
32217 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32218 Don't include <sysdep.h> nor <init-arch.h>.
32219 (_ZGVbN4vv_powf): Removed.
32220 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32221 ...
32222 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32223 Don't include <sysdep.h> nor <init-arch.h>.
32224 (_ZGVdN8vv_powf): Removed.
32225 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32226 ...
32227 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32228 Don't include <sysdep.h> nor <init-arch.h>.
32229 (_ZGVeN16vvv_sincosf): Removed.
32230 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32231 ...
32232 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32233 Don't include <sysdep.h> nor <init-arch.h>.
32234 (_ZGVbN4vvv_sincosf): Removed.
32235 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32236 ...
32237 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32238 Don't include <sysdep.h> nor <init-arch.h>.
32239 (_ZGVdN8vvv_sincosf): Removed.
32240 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32241 ...
32242 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32243 Don't include <sysdep.h> nor <init-arch.h>.
32244 (_ZGVeN16v_sinf): Removed.
32245 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32246 ...
32247 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32248 Don't include <sysdep.h> nor <init-arch.h>.
32249 (_ZGVbN4v_sinf): Removed.
32250 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32251 ...
32252 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32253 Don't include <sysdep.h> nor <init-arch.h>.
32254 (_ZGVdN8v_sinf): Removed.
32255
32256 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32257
32258 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32259 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32260 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32261 s_rint-sse4_1 and s_rintf-sse4_1.
32262 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32263 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32264 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32265 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32266 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32267 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32268 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32269 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32270 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32271 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32272 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32273 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32274 (__ceil): Removed.
32275 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32276 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32277 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32278 (__ceilf): Removed.
32279 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32280 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32281 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32282 (__floor): Removed.
32283 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32284 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32285 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32286 (__floorf): Removed.
32287 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32288 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32289 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32290 (__nearbyint): Removed.
32291 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32292 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32293 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32294 (__nearbyintf): Removed.
32295 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32296 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32297 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32298 (__rint): Removed.
32299 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32300 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32301 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32302 (__rintf): Removed.
32303
32304 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32305
32306 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32307 SHARED. Avoid dynamic relocation against main in static PIE.
32308
32309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32310
32311 [BZ #21815]
32312 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32313 (LDFLAGS-tst-prelink): Likewise.
32314
32315 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32316
32317 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32318 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32319 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32320 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32321 (INTERNAL_SYSCALL_NCS): Likewise.
32322 (LOADARGS_1): Likewise.
32323 (LOADARGS_5): Likewise.
32324 (RESTOREARGS_1): Likewise.
32325 (RESTOREARGS_5): Likewise.
32326
32327 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32328
32329 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32330 (MEMPCPY_SYMBOL): Likewise.
32331 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32332 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32333 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32334 in libc.a.
32335 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32336 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32337 Likewise.
32338 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32339 (__hidden_ver1): Don't use in libc.a.
32340 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32341 (__mempcpy): Don't create a weak alias in libc.a.
32342 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32343 libc.a.
32344 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32345 (__hidden_ver1): Don't use in libc.a.
32346
32347 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32348
32349 * config.make.in (have-insert): New.
32350 * configure.ac (libc_cv_insert): New. Set to yes if linker
32351 supports INSERT in linker script.
32352 (AC_SUBST(libc_cv_insert): New.
32353 * configure: Regenerated.
32354 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32355 if $(have-insert) == yes.
32356
32357 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32358
32359 * elf/Makefile (tests): Add vismain only if
32360 $(have-protected-data) == yes.
32361 (tests-pie): Likewise.
32362
32363 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32364
32365 [BZ #21871]
32366 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32367 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32368
32369 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32370
32371 [BZ #21790]
32372 * sysdeps/i386/i586/memset.S
32373 (__memset_zero_constant_len_parameter): Removed.
32374 * sysdeps/i386/i686/memset.S
32375 (__memset_zero_constant_len_parameter): Likewise.
32376 * sysdeps/i386/i686/multiarch/memset_chk.S
32377 (__memset_zero_constant_len_parameter): Likewise.
32378 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32379 Likewise.
32380
32381 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32382
32383 * stdlib/getentropy.c (getentropy): Change return type to int.
32384
32385 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32386
32387 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32388
32389 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32390
32391 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32392 u_intN_t.
32393 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32394 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32395 Likewise.
32396 (ieee_float_shape_type): Likewise.
32397 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32398 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32399 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32400 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32401 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32402 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32403 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32404 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32405 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32406 Likewise.
32407 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32408 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32409 (__ieee754_yn): Likewise.
32410 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32411 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32412 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32413 Likewise.
32414 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32415 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32416 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32417 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32418 (__erfc): Likewise.
32419 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32420 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32421 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32422 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32423 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32424 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32425 Likewise.
32426 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32427 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32428 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32429 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32430 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32431 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32432 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32433 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32434 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32435 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32436 (__issignaling): Likewise.
32437 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32438 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32439 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32440 Likewise.
32441 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32442 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32443 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32444 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32445 Likewise.
32446 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32447 Likewise.
32448 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32449 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32450 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32451 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32452 (__erfcf): Likewise.
32453 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32454 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32455 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32456 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32457 Likewise.
32458 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32459 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32460 Likewise.
32461 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32462 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32463 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32464 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32465 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32466 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32467 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32468 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32469 Likewise.
32470 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32471 Likewise.
32472 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32473 Likewise.
32474 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32475 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32476 Likewise.
32477 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32478 Likewise.
32479 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32480 (__ieee754_ynl): Likewise.
32481 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32482 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32483 Likewise.
32484 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32485 Likewise.
32486 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32487 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32488 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32489 Likewise.
32490 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32491 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32492 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32493 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32494 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32495 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32496 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32497 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32498 Likewise.
32499 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32500 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32501 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32502 Likewise.
32503 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32504 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32505 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32506 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32507 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32508 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32509 Likewise.
32510 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32511 Likewise.
32512 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32513 Likewise.
32514 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32515 Likewise.
32516 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32517 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32518 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32519 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32520 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32521 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32522 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32523 Likewise.
32524 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32525 Likewise.
32526 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32527 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32528 Likewise.
32529 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32530 (__ieee754_remainderl): Likewise.
32531 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32532 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32533 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32534 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32535 Likewise.
32536 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32537 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32538 Likewise.
32539 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32540 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32541 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32542 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32543 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32544 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32545 Likewise.
32546 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32547 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32548 (__ieee754_y0l): Likewise.
32549 (pzero): Likewise.
32550 (qzero): Likewise.
32551 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32552 (__ieee754_y1l): Likewise.
32553 (pone): Likewise.
32554 (qone): Likewise.
32555 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32556 (__ieee754_ynl): Likewise.
32557 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32558 (__ieee754_lgammal_r): Likewise.
32559 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32560 Likewise.
32561 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32562 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32563 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32564 (__erfcl): Likewise.
32565 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32566 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32567 Likewise.
32568 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32569 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32570 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32571 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32572 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32573 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32574 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32575 Likewise.
32576 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32577 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32578 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32579 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32580 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32581 Likewise.
32582 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32583 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32584 Likewise.
32585 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32586 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32587 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32588 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32589 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32590
32591 2017-08-03 Florian Weimer <fweimer@redhat.com>
32592
32593 [BZ #21885]
32594 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32595 on memory allocation failure.
32596
32597 2017-08-03 Alan Modra <amodra@gmail.com>
32598
32599 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32600 tst-tlsopt-powerpc.c with function name change and no test harness.
32601 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32602 Call tls_get_addr_opt_test.
32603 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32604 (modules-names): Add mod-tlsopt-powerpc.
32605 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32606 (tst-tlsopt-powerpc): Depend on .so.
32607 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32608 define. Expand use in TLS_GD and TLS_LD.
32609
32610 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32611
32612 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32613 function.
32614 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32615
32616 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32617
32618 [BZ #21686]
32619 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32620 comparing size with that of double.
32621 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32622 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32623 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32624 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32625 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32626 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32627 unsigned __int128 types.
32628
32629 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32630
32631 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32632 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32633 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32634 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32635 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32636
32637 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32638
32639 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32640
32641 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32642
32643 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32644 of SHARED.
32645 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32646 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32647 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32648 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32649 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32650 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32651 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32652
32653 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32654
32655 [BZ #21685]
32656 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32657 bit-field expressions passed to sizeof or typeof.
32658 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32659 (__TGMATH_F128): Likewise.
32660 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32661 (__TGMATH_CF128): Likewise.
32662 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32663 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32664 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32665 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32666 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32667 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32668 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32669 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32670 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32671 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32672 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32673 (__TGMATH_UNARY_IMAG): Likewise.
32674 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32675 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32676 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32677 type.
32678 (define_vars_for_type): Handle bit_field type specially.
32679 (Tests.__init__): Declare structure with bit-field element.
32680
32681 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32682
32683 [BZ #21791]
32684 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32685 (MEMCPY_CHK): Define only if SHARED is defined.
32686 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32687 Likewise.
32688 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32689 Likewise.
32690
32691 See ChangeLog.18 for earlier changes.