]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
wcsmbs: optimize wcscpy
[thirdparty/glibc.git] / ChangeLog
1 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
4
5 * include/wchar.h (__wcscpy): New prototype.
6 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
7 (__wcscpy): Route internal symbol to generic implementation.
8 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
9 Add internal __wcscpy alias.
10 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
11 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
12 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
13 * wcsmbs/wcscpy.c (wcscpy): Add
14 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
15 use generic implementation.
16 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
17
18 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
19 wmemset.
20
21 * sysdeps/m68k/wcpcpy.c: Remove file.
22 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
23
24 2019-02-26 Joseph Myers <joseph@codesourcery.com>
25
26 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
27 than after operators.
28 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
29 * sysdeps/mach/hurd/getcwd.c
30 (__hurd_canonicalize_directory_name_internal): Likewise.
31 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
32 (pthread_mutex_consistent): Likewise.
33 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
34 Likewise.
35 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
36 (__pthread_mutex_transfer_np): Likewise.
37 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
38 (__pthread_mutex_unlock): Likewise.
39 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
40 (mtx_owned_p): Likewise.
41 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
42 (pthread_mutexattr_getrobust): Likewise.
43 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
44 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
45 Likewise.
46 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
47 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
48 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
49 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
50 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
51 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
52 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
53 Likewise.
54 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
55 Likewise.
56 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
57 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
58 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
59 (____longjmp_chk): Likewise.
60 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
61 Likewise.
62 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
63 (INTERNAL_SYSCALL): Likewise.
64 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
65 (INTERNAL_SYSCALL): Likewise.
66 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67 (__get_clockfreq_via_cpuinfo): Likewise.
68
69 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
70 comments.
71 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
72 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
73 (WORD_COPY_BWD): Likewise.
74 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
75 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76 Likewise.
77 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
78 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
79 comment.
80 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
81
82 2019-02-25 Joseph Myers <joseph@codesourcery.com>
83
84 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
85 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
86 rather than after operators.
87 * elf/cache.c (print_cache): Likewise.
88 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
89 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
90 * hurd/hurdinit.c (_hurd_setproc): Likewise.
91 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
92 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
93 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
94 (reauth_proc): Likewise.
95 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
96 (__file_name_split_at): Likewise.
97 (__directory_name_split_at): Likewise.
98 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
99 * hurd/port2fd.c (_hurd_port2fd): Likewise.
100 * iconv/gconv_dl.c (do_print): Likewise.
101 * inet/netinet/in.h (struct sockaddr_in): Likewise.
102 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
103 * locale/setlocale.c (new_composite_name): Likewise.
104 * malloc/memusagestat.c (main): Likewise.
105 * misc/fstab.c (fstab_convert): Likewise.
106 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
107 Likewise.
108 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
109 (getgrent_next_file): Likewise.
110 (internal_getgrnam_r): Likewise.
111 (internal_getgrgid_r): Likewise.
112 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
113 Likewise.
114 (internal_getgrent_r): Likewise.
115 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
116 (getpwent_next_nss): Likewise.
117 (getpwent_next_file): Likewise.
118 (internal_getpwnam_r): Likewise.
119 (internal_getpwuid_r): Likewise.
120 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
121 Likewise.
122 (getspent_next_nss): Likewise.
123 (internal_getspnam_r): Likewise.
124 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
125 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
126 * string/strchr.c (STRCHR): Likewise.
127 * string/strchrnul.c (STRCHRNUL): Likewise.
128 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
129 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
130 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
131 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
132 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
133 Likewise.
134 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
135 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
136 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
137 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
138 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
139 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
140 (open_file): Likewise.
141 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
142 (pthread_mutexattr_setprotocol): Likewise.
143 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
144 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
145 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
146 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
147 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
148 Likewise.
149 (elf_machine_rela): Likewise.
150 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
151 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
152 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
153 * sysdeps/posix/rename.c (rename): Likewise.
154 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
155 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
156 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
157 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
158 * sysdeps/unix/grantpt.c (grantpt): Likewise.
159 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
160 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
161 Likewise.
162 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
163 Likewise.
164 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
165 * time/tzfile.c (__tzfile_compute): Likewise.
166
167 2019-02-22 Joseph Myers <joseph@codesourcery.com>
168
169 * benchtests/bench-memmem.c (simple_memmem): Break lines before
170 rather than after operators.
171 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
172 * crypt/md5.c (md5_finish_ctx): Likewise.
173 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
174 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
175 * elf/cache.c (load_aux_cache): Likewise.
176 * elf/dl-load.c (open_verify): Likewise.
177 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
178 * elf/readelflib.c (process_elf_file): Likewise.
179 * elf/rtld.c (dl_main): Likewise.
180 * elf/sprof.c (generate_call_graph): Likewise.
181 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
182 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
183 * hurd/dtable.c (reauth_dtable): Likewise.
184 * hurd/getdport.c (__getdport): Likewise.
185 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
186 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
187 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
188 Likewise.
189 * hurd/hurdioctl.c (fioctl): Likewise.
190 * hurd/hurdselect.c (_hurd_select): Likewise.
191 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
192 (STOPSIGS): Likewise.
193 * hurd/hurdstartup.c (_hurd_startup): Likewise.
194 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
195 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
196 * hurd/msgportdemux.c (msgport_server): Likewise.
197 * hurd/setauth.c (_hurd_setauth): Likewise.
198 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
199 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
200 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
201 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
202 * login/tst-utmp.c (do_check): Likewise.
203 (simulate_login): Likewise.
204 * mach/lowlevellock.h (lll_lock): Likewise.
205 (lll_trylock): Likewise.
206 * math/test-fenv.c (ALL_EXC): Likewise.
207 * math/test-fenvinline.c (ALL_EXC): Likewise.
208 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
209 * nis/nis_call.c (__do_niscall3): Likewise.
210 * nis/nis_callback.c (cb_prog_1): Likewise.
211 * nis/nis_defaults.c (searchaccess): Likewise.
212 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
213 * nis/nis_ismember.c (internal_ismember): Likewise.
214 * nis/nis_local_names.c (nis_local_principal): Likewise.
215 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
216 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
217 Likewise.
218 * nis/ypclnt.c (yp_match): Likewise.
219 (yp_first): Likewise.
220 (yp_next): Likewise.
221 (yp_master): Likewise.
222 (yp_order): Likewise.
223 * nscd/hstcache.c (cache_addhst): Likewise.
224 * nscd/initgrcache.c (addinitgroupsX): Likewise.
225 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
226 (internal_getpwuid_r): Likewise.
227 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
228 * posix/glob.h (__GLOB_FLAGS): Likewise.
229 * posix/regcomp.c (peek_token): Likewise.
230 (peek_token_bracket): Likewise.
231 (parse_expression): Likewise.
232 * posix/regexec.c (sift_states_iter_mb): Likewise.
233 (check_node_accept_bytes): Likewise.
234 * posix/tst-spawn3.c (do_test): Likewise.
235 * posix/wordexp-test.c (testit): Likewise.
236 * posix/wordexp.c (parse_tilde): Likewise.
237 (exec_comm): Likewise.
238 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
239 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
240 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
241 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
242 * stdio-common/tst-fileno.c (do_test): Likewise.
243 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
244 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
245 * stdlib/strtod_l.c (round_and_return): Likewise.
246 (____STRTOF_INTERNAL): Likewise.
247 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
248 * string/strcspn.c (STRCSPN): Likewise.
249 * string/test-memmem.c (simple_memmem): Likewise.
250 * termios/tcsetattr.c (tcsetattr): Likewise.
251 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
252 * time/asctime.c (asctime_internal): Likewise.
253 * time/strptime_l.c (__strptime_internal): Likewise.
254 * time/sys/time.h (timercmp): Likewise.
255 * time/tzfile.c (__tzfile_compute): Likewise.
256
257 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
258
259 [BZ #21915]
260 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
261
262 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
263
264 * argp/argp-help.c (__argp_error_internal): New function,
265 renamed from __argp_error, but that takes a 'mode_flags'
266 parameter to control the format of long double parameters.
267 (__argp_error): Converted into a call __argp_error_internal.
268 (__argp_failure_internal): New function, renamed from
269 __argp_failure, but that takes a 'mode_flags' parameter.
270 (__argp_failure): Converted into a call __argp_failure_internal.
271 * misc/err.c (__vwarnx_internal): New function, renamed from
272 vwarnx, but that takes a 'mode_flags' parameter.
273 (vwarnx): Converted into a call to __vwarnx_internal.
274 (__vwarn_internal): New function, renamed from vwarn, but that
275 takes a 'mode_flags' parameter.
276 (vwarn): Converted into a call to __vwarn_internal.
277 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
278 call to __vfxprintf with 'mode_flags'.
279 (__error_internal): New function, renamed from error, but that
280 takes a 'mode_flags' parameter.
281 (error): Converted into a call to __error_internal.
282 (__error_at_line_internal): New function, renamed from
283 error_at_line, but that takes a 'mode_flags' parameter.
284 (error_at_line): Converted into a call to
285 __error_at_line_internal.
286 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
287 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
288 Likewise.
289
290 2019-02-20 Martin Liska <mliska@suse.cz>
291
292 * math/Makefile: Install math-vector-fortran.h.
293 * bits/math-vector-fortran.h: New file.
294 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
295
296 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
297
298 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
299 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
300
301 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
302
303 * nptl/pthread_mutex_trylock.c: Fix comment.
304
305 2019-02-19 Carlos O'Donell <carlos@redhat.com>
306
307 * nptl/pthread_tryjoin.c: Fix comment.
308
309 2019-02-18 Joseph Myers <joseph@codesourcery.com>
310
311 [BZ #24231]
312 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
313 after R_SPARC_H34 case.
314
315 2019-02-18 Florian Weimer <fweimer@redhat.com>
316
317 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
318 (getanswer): Do not call Dprintf.
319 (res_gethostbyname2_context): Likewise.
320 (res_gethostbyaddr_context): Likewise.
321
322 2019-02-18 Florian Weimer <fweimer@redhat.com>
323
324 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
325 declaration.
326 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
327 Remove definitions.
328 * libio/stdfiles.c: Update comment.
329 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
330 set _IO_stdin, _IO_stdout, _IO_stderr.
331 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
332 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
333 inline function.
334 (_IO_deallocate_file): New inline function.
335 * libio/iolibio.h (_IO_vprintf): Remove definition.
336 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
337 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
338 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
339 _IO_legacy_file.
340 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
341 __builtin_expect. Use _IO_legacy_file.
342
343 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
344
345 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
346 Initialize ctid with a known value and remove update of ctid
347 after clone.
348 (wait_tid): Adjust arguments and call futex_wait with ctid_val
349 as assumed current value of ctid_ptr.
350
351 2019-02-15 Florian Weimer <fweimer@redhat.com>
352
353 Check that non-sysdeps headers have wrapper headers.
354 * scripts/check-wrapper-headers.py: New file.
355 * Makefile (tests-special): Add check-wrapper-headers.out.
356 (check-wrapper-headers.out): New target.
357 * Rules (tests-special): Add check-wrapper-headers.out.
358 (check-wrapper-headers.out): New target.
359
360 2019-02-15 Florian Weimer <fweimer@redhat.com>
361
362 Add missing header wrappers under include/.
363 * include/ar.h: New file.
364 * include/bits/mqueue2.h: Likewise.
365 * include/bits/stdio.h: Likewise.
366 * include/bits/stdio2.h: Likewise.
367 * include/fstab.h: Likewise.
368 * include/fts.h: Likewise.
369 * include/lastlog.h: Likewise.
370 * include/netinet/icmp6.h: Likewise.
371 * include/netinet/igmp.h: Likewise.
372 * include/netinet/ip6.h: Likewise.
373 * include/re_comp.h: Likewise.
374 * include/regexp.h: Likewise.
375 * include/rpcsvc/bootparam.h: Likewise.
376 * include/rpcsvc/yp_prot.h: Likewise.
377 * include/sys/random.h: Likewise.
378 * include/sys/stropts.h: Likewise.
379 * include/sys/ttychars.h: Likewise.
380 * include/sys/vfs.h: Likewise.
381 * include/wait.h: Likewise.
382
383 2019-02-15 Florian Weimer <fweimer@redhat.com>
384
385 * nptl_db/proc_service.h: Move to ...
386 * sysdeps/nptl/proc_service.h: ... here.
387 * nptl_db/thread_db.h: Move to ...
388 * sysdeps/nptl/thread_db.h: ... here.
389 * nptl/descr.h: Include <thread_db.h>.
390
391 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
392
393 * io/Makefile (tests): Add tst-lockf.
394 * io/lockf.c (lockf): Use __fcntl and only define for
395 !__OFF_T_MATCHES_OFF64_T.
396 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
397 __OFF_T_MATCHES_OFF64_T case.
398 * io/tst-lockf.c: New file.
399 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
400 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
401 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
402 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
403 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
405 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
406 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
407 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
408
409 2019-02-15 Florian Weimer <fweimer@redhat.com>
410
411 [BZ #24211]
412 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
413 pd->result after the thread descriptor has been freed.
414
415 2019-02-15 Joseph Myers <joseph@codesourcery.com>
416
417 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
418 from function return type.
419
420 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
421
422 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * scripts/test_printers_common.py: Set TERM to a known harmless
425 value.
426
427 2019-02-14 Joseph Myers <joseph@codesourcery.com>
428
429 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
430 (xdr_u_int): Likewise.
431 (xdr_enum): Likewise.
432 (xdr_bytes): Reword fall-through comment.
433 (xdr_string): Likewise.
434
435 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
436
437 [BZ #2421]
438 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
439 (tests): Add tst-join8 tst-join9.
440 * nptl/lll_timedwait_tid.c: Remove file.
441 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
442 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
443 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
444 * nptl/pthread_join_common.c (timedwait_tid): New function.
445 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
446 is set.
447 * nptl/tst-join5.c (thread_join): New function.
448 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
449 check.
450 * nptl/tst-join8.c: New file.
451 * nptl/tst-join9.c: Likewise.
452 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
453 lll_futex_timed_wait_cancel): Add generic macros.
454 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
455 Remove definitions.
456 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
457 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
458 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
459 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
460 Remove function.
461 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
462 Likewise.
463 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
464 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
465 (lll_futex_timed_wait_cancel): New macro.
466
467 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
468
469 * benchtests/Makefile: Add malloc-simple benchmark.
470 * benchtests/bench-malloc-simple.c: New benchmark.
471
472 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
473
474 * benchtests/bench-memmove.c (do_one_test): Remove unused
475 ORIG_SRC.
476 (do_test): Adjust.
477 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
478 ORIG_SRC.
479 (do_test): Adjust.
480
481 2019-01-13 Jim Wilson <jimw@sifive.com>
482
483 [BZ #24040]
484 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
485 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
486 (func): New.
487 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
488 call func directly.
489 * nptl/Makefile (tests): Add tst-unwind-thread.
490 (CFLAGS-tst-unwind-thread.c): Define.
491 * nptl/tst-unwind-thread.c: New file.
492 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
493 as undefined.
494
495 2019-02-13 Joseph Myers <joseph@codesourcery.com>
496
497 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
498 comment wording.
499 * nis/nis_call.c (__do_niscall3): Likewise.
500
501 * catgets/gencat.c (normalize_line): Use braces around empty
502 'else' body.
503 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
504 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
505 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
506 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
507 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
508 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
509 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
510 definition.
511
512 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
513 execlp returns.
514
515 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
516
517 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
518 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
519 * benchtests/bench-strchr.c (stupid_strchr): Remove.
520 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
521 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
522 * benchtests/bench-strlen.c (builtin_strlen): Remove.
523 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
524 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
525 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
526 * benchtests/bench-strspn.c (stupid_strspn): Remove.
527 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
528 * benchtests/bench-bcopy.c: Delete file.
529 * benchtests/bench-bzero.c: Likewise.
530 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
531 (simple_memccpy): Remove.
532 (generic_memccpy): Add function.
533 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
534 * benchtests/bench-memmove.c (simple_bcopy): Remove.
535 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
536 (generic_mempcpy): Add new function.
537 * benchtests/bench-memset.c (simple_bzero): Remove.
538 (builtin_bzero): Remove.
539 (builtin_memset): Remove.
540 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
541 (generic_rawmemchr): Add new function.
542
543 2019-02-12 Florian Weimer <fweimer@redhat.com>
544
545 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
546
547 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
548
549 [BZ #24122]
550 * elf/Makefile (tests): Add tst-audit13.
551 (modules-names): Add tst-audit13mod1.
552 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
553 rule.
554 * elf/tst-audit13.c: New file.
555 * elf/tst-audit13mod1.c: Likewise.
556
557 2019-02-12 Florian Weimer <fweimer@redhat.com>
558
559 [BZ #24122]
560 * elf/rtld.c (unload_audit_module): New function.
561 (report_audit_module_load_error): Likewise.
562 (load_audit_module): Likewise. Extracted from dl_main. Call
563 _dl_close if the laversion symbol cannot be found. Use early
564 returns for error handling. Add malloc error check. Check for a
565 zero return value from la_version. Remove spurious comment about
566 static TLS initialization. Remove useless casts.
567 (notify_audit_modules_of_loaded_object): New function. Extracted
568 from dl_main.
569 (load_audit_module): Likewise.
570 (dl_main): Call load_audit_modules.
571
572 2019-02-12 Joseph Myers <joseph@codesourcery.com>
573
574 * elf/dl-exception.c (_dl_exception_create_format): Add
575 fall-through comments.
576 * elf/ldconfig.c (parse_conf_include): Likewise.
577 * elf/rtld.c (print_statistics): Likewise.
578 * locale/programs/charmap.c (parse_charmap): Likewise.
579 * misc/mntent_r.c (__getmntent_r): Likewise.
580 * posix/wordexp.c (parse_arith): Likewise.
581 (parse_backtick): Likewise.
582 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
583 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
584 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
585
586 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
587
588 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
589 Use float instead of double.
590
591 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
592
593 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
594
595 2019-02-08 Joseph Myers <joseph@codesourcery.com>
596
597 * sysdeps/powerpc/bits/mathinline.h: Remove.
598
599 2019-02-08 Florian Weimer <fweimer@redhat.com>
600
601 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
602 * math/bits/math-finite.h: Move to ...
603 * bits/math-finite.h: ... here.
604
605 2019-02-08 Florian Weimer <fweimer@redhat.com>
606
607 * sysdeps/generic/bits/unistd_ext.h: Move to ...
608 * bits/unistd_ext.h: here.
609
610 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
611
612 [BZ #21915]
613 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
614 * nss/tst-nss-files-hosts-long.c: New file.
615 * nss/tst-nss-files-hosts-long.root: New directory.
616 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
617 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
618
619 2019-02-08 Florian Weimer <fweimer@redhat.com>
620
621 * include/bits/unistd_ext.h: Remove file.
622 * posix/bits/unistd_ext.h: Move to ...
623 * sysdeps/generic/bits/unistd_ext.h: ... here.
624
625 2019-02-08 Florian Weimer <fweimer@redhat.com>
626
627 * include/bits/unistd_ext.h: New file.
628
629 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
630
631 * time/tst-strftime2.c: Use array_length macros instead of magic
632 numbers.
633
634 2019-02-08 Florian Weimer <fweimer@redhat.com>
635
636 [BZ #24161]
637 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
638 argument.
639 * nptl/register-atfork.c (__run_fork_handlers): Only perform
640 locking if the new do_locking argument is true.
641 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
642 __run_fork_handlers.
643
644 2019-02-08 Florian Weimer <fweimer@redhat.com>
645
646 [BZ #6399]
647 Linux: Add gettid system call wrapper.
648 * posix/Makefile (headers): Add bits/unistd_ext.h.
649 * posix/bits/unistd_ext.h: New file.
650 * posix/unistd.h: Include it.
651 * manual/process.texi (Process Identification): Document gettid.
652 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
653 tst-gettid, tst-gettid-kill.
654 (tst-gettid): Link with $(shared-thread-library).
655 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
656 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
657 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
658 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
659 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
660 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
661 Add gettid.
662 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
663 Likewise.
664 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
665 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
666 Likewise.
667 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
668 Likewise.
669 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
670 Likewise.
671 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
672 Likewise.
673 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
674 Likewise.
675 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
676 Likewise.
677 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
678 Likewise.
679 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
680 (GLIBC_2.30): Likewise.
681 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
682 (GLIBC_2.30): Likewise.
683 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
684 (GLIBC_2.30): Likewise.
685 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
686 (GLIBC_2.30): Likewise.
687 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
688 Likewise.
689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
690 (GLIBC_2.30): Likewise.
691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
692 (GLIBC_2.30): Likewise.
693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
694 (GLIBC_2.30): Likewise.
695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
696 (GLIBC_2.30): Likewise.
697 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
698 Likewise.
699 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
700 Likewise.
701 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
702 Likewise.
703 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
704 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
705 Likewise.
706 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
707 Likewise.
708 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
709 Likewise.
710 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
711 Likewise.
712 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
713
714 2019-02-07 Florian Weimer <fweimer@redhat.com>
715
716 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
717 compatibility symbols.
718
719 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
720
721 [BZ #24180]
722 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
723 Add compiler barriers and comments.
724
725 2019-02-07 Florian Weimer <fweimer@redhat.com>
726
727 * include/array_length.h (array_length): Do not use a statement
728 expression and _Static_assert, so that array_length can be used at
729 file scope and as a constant expression.
730
731 2019-02-07 Florian Weimer <fweimer@redhat.com>
732
733 * support/xdlfcn.h (xdlmopen): Declare.
734 * support/xdlmopen.c: New file.
735 * support/Makefile (libsupport-routines): Add xdlmopen.
736
737 2019-02-06 Joseph Myers <joseph@codesourcery.com>
738
739 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
740 before return type, without separate inline.
741 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
742 * elf/dl-tunables.h (tunable_is_name): Likewise.
743 * malloc/malloc.c (do_set_trim_threshold): Likewise.
744 (do_set_top_pad): Likewise.
745 (do_set_mmap_threshold): Likewise.
746 (do_set_mmaps_max): Likewise.
747 (do_set_mallopt_check): Likewise.
748 (do_set_perturb_byte): Likewise.
749 (do_set_arena_test): Likewise.
750 (do_set_arena_max): Likewise.
751 (do_set_tcache_max): Likewise.
752 (do_set_tcache_count): Likewise.
753 (do_set_tcache_unsorted_limit): Likewise.
754 * nis/nis_subr.c (count_dots): Likewise.
755 * nptl/allocatestack.c (advise_stack_range): Likewise.
756 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
757 (do_sin): Likewise.
758 (reduce_sincos): Likewise.
759 (do_sincos): Likewise.
760 * sysdeps/unix/sysv/linux/x86/elision-conf.c
761 (do_set_elision_enable): Likewise.
762 (TUNABLE_CALLBACK_FNDECL): Likewise.
763
764 2019-02-06 Florian Weimer <fweimer@redhat.com>
765
766 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
767 (xdlsym): Use dlerror to detect a NULL symbol.
768
769 2019-02-06 Florian Weimer <fweimer@redhat.com>
770
771 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
772 <stap-probe.h>.
773 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
774
775 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
776
777 * libio/tst-bz24153.c (wide): Use wide char format specifier.
778
779 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
780
781 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
782 __wmemcmp and weak alias to wmemcmp.
783
784 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
785
786 [BZ #23403]
787 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
788 TLS_TCB_AT_TP tls variant.
789 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
790 Add alignment checks.
791 * support/Makefile (libsupport-routines): Add xposix_memalign and
792 xpthread_setstack.
793 * support/support.h: Add xposix_memalign.
794 * support/xthread.h: Add xpthread_attr_setstack.
795 * support/xposix_memalign.c: New File.
796 * support/xpthread_attr_setstack.c: Likewise.
797
798 2019-02-05 Florian Weimer <fweimer@redhat.com>
799
800 [BZ #24164]
801 arm: Use "nr" constraint for Systemtap probes, to avoid the
802 compiler using memory operands for constants, due to the "o"
803 alternative in the default "nor" constraint.
804 * include/stap-probe.h [USE_STAP_PROBE]: Include
805 <stap-probe-machine.h>
806 * sysdeps/generic/stap-probe-machine.h: New file.
807 * sysdeps/arm/stap-probe-machine.h: Likewise.
808
809 2019-02-04 Joseph Myers <joseph@codesourcery.com>
810
811 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
812 with 0, not tcache->entries[tc_idx].
813
814 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
815 once.
816
817 2019-02-04 Andreas Schwab <schwab@suse.de>
818
819 [BZ #16976]
820 [BZ #17396]
821 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
822 looking up collating elements match against (wide) character
823 sequence instead of name. Correct alignment adjustment.
824 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
825 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
826 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
827 (LOCALES): Add cs_CZ.ISO-8859-2.
828 * posix/tst-fnmatch4.c: New file.
829 * posix/tst-fnmatch5.c: New file.
830 * include/wchar.h (__wmemcmp): Declare.
831 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
832 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
833 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
834 * sysdeps/s390/wmemcmp.c: Likewise.
835
836 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
837
838 [BZ #24155]
839 CVE-2019-7309
840 * NEWS: Updated for CVE-2019-7309.
841 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
842 upper 32 bits of RDX register for x32. Use unsigned Jcc
843 instructions, instead of signed.
844 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
845 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
846
847 2019-02-04 Florian Weimer <fweimer@redhat.com>
848
849 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
850 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
851 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
852 Likewise.
853 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
854 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
855 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
856 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
857 Likewise.
858 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
859 Likewise.
860 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
861 Likewise.
862 (posix_spawn_file_actions_addopen): Likewise.
863 (posix_spawn_file_actions_addclose): Likewise.
864 (posix_spawn_file_actions_adddup2): Likewise.
865 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
866 qualifiers.
867 (posix_spawn_file_actions_addfchdir_np): Likewise.
868
869 2019-02-04 David Newall <glibc@davidnewall.com>
870
871 elf: Implement --preload option for the dynamic linker.
872 * elf/rtld.c (preloadarg): New variable.
873 (handle_preload_list): Pass through “where” argument to
874 do_preload.
875 (dl_main): Handle "--preload" and add second call to
876 handle_preload_list.
877 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
878 (tst-rtld-preload-OBJS): Set variable.
879 (tst-rtld-preload.out): New target.
880 * elf/tst-rtld-preload.sh: New file.
881
882 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
883
884 * Makefile (testrun.sh): Exit in case of incorrect argument.
885
886 2019-02-04 Florian Weimer <fweimer@redhat.com>
887
888 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
889 alignment gaps.
890
891 2019-02-03 Florian Weimer <fweimer@redhat.com>
892
893 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
894 implicit overflow checks.
895
896 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
897
898 * stdlib/isomac.c: Include <unistd.h>.
899
900 2019-02-03 Florian Weimer <fweimer@redhat.com>
901
902 * include/time.h (__tzfile_default): Use int, not long int, for
903 the GMT offsets.
904 * time/tzfile.c (struct ttinfo): Change type of the offset member
905 to int.
906 (__tzfile_read): Remove useless cast.
907 (__tzfile_default): Adjust prototype.
908 * time/tzset.c (tz_rule): Change type of the offset member to int.
909 (parse_offset): Change the type of the sign variable to int.
910
911 2019-02-03 Florian Weimer <fweimer@redhat.com>
912
913 [BZ #24153]
914 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
915 * libio/getchar.c (getchar): Likewise.
916 * libio/getchar_u.c (getchar_unlocked): Likewise.
917 * libio/getwchar.c (getwchar): Likewise.
918 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
919 * libio/iogets.c (_IO_gets): Likewise.
920 * libio/vscanf.c (_IO_vscanf): Likewise.
921 * libio/vwscanf.c (__vwscanf): Likewise.
922 * libio/tst-bz24153.c: New file.
923 * libio/Makefile (tests): Add it.
924
925 2019-02-02 Florian Weimer <fweimer@redhat.com>
926
927 [BZ #14829]
928 * manual/resource.texi (Basic Scheduling Functions): Add
929 portability note. Change process to task throughout the section.
930 Remove incorrect comment about sched_yield as it affects
931 tasks/threads, not entire processes.
932 * sysdeps/unix/sysv/linux/bits/posix_opt.h
933 (_POSIX_PRIORITY_SCHEDULING): Update comment.
934
935 2019-02-01 Joseph Myers <joseph@codesourcery.com>
936
937 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
938 * configure: Regenerated.
939 * manual/install.texi (Tools for Compilation): Update minimum GCC
940 version.
941 * INSTALL: Regenerated.
942
943 2019-02-01 Florian Weimer <fweimer@redhat.com>
944
945 * support/support_test_compare_string.c
946 (support_test_compare_string): Use "string" in error message.
947 * support/tst-test_compare_string.c (do_test): Adjust.
948
949 2019-02-01 Florian Weimer <fweimer@redhat.com>
950
951 * support/support_format_address_family.c
952 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
953
954 2019-02-01 Florian Weimer <fweimer@redhat.com>
955
956 * manual/socket.texi (Internet Address Formats): Clarify the byte
957 order of struct sockaddr_in, struct sockaddr_in6. Document
958 sin6_flowinfo and sin6_scope_id.
959
960 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
961
962 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
963 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
964 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
965 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
966 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
967 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
968
969 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
970
971 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
972 [!MEMCHR](MEMCHR): Set to __memchr.
973 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
974 Add memchr_generic and memchr_nosimd.
975 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
976 (__libc_ifunc_impl_list): Add memchr ifuncs.
977 * sysdeps/aarch64/multiarch/memchr.c: New file.
978 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
979 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
980
981 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
982
983 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
984 Add memset_emag.
985 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
986 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
987 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
988 Add IS_EMAG check for ifunc dispatch.
989 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
990 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
991
992 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
993
994 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
995 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
996 Add emag.
997 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
998 New macro.
999
1000 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1001
1002 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1003
1004 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1005
1006 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1007 syscall-template file.
1008
1009 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1010 Torvald Riegel <triegel@redhat.com>
1011 Rik Prohaska <prohaska7@gmail.com>
1012
1013 [BZ# 23844]
1014 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1015 tst-rwlock-trywrlock-stall.
1016 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1017 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1018 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1019 Set __wrphase_fute to 1 only if we started the write phase.
1020 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1021 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1022 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1023 * support/xpthread_rwlock_destroy.c: New file.
1024 * support/xthread.h: Declare xpthread_rwlock_destroy.
1025
1026 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1027
1028 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1029 version to 4.0.2.
1030
1031 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1032
1033 [BZ #24051]
1034 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1035 * libio/fileops.c (_IO_new_file_underflow): Likewise
1036 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1037 * libio/putchar.c (putchar): Likewise.
1038 * libio/putchar_u.c (putchar_unlocked): Likewise.
1039 * libio/putwchar.c (putchar): Likewise.
1040 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1041 * libio/tst-bz24051.c: New test.
1042 * libio/Makefile (tests): Add tst-bz24051
1043
1044 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1045
1046 regex: fix read overrun [BZ #24114]
1047 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1048 https://debbugs.gnu.org/34140
1049 * posix/regexec.c (proceed_next_node):
1050 Do not read past end of input buffer.
1051
1052 2019-01-31 Florian Weimer <fweimer@redhat.com>
1053
1054 [BZ #24059]
1055 * nss/nss_files/files-alias.c (get_next_alias): Handle
1056 continuation line without newline at the end.
1057 * nss/tst-nss-files-alias-truncated.c: New file.
1058 * nss/Makefile [$(build-shared)] (tests): Add
1059 tst-nss-files-alias-truncated.
1060 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1061 * support/namespace.h (struct support_chroot_configuration): Add
1062 aliases member.
1063 (struct support_chroot): Add path_aliases member.
1064 * support/support_chroot.c (support_chroot_create): Handle
1065 aliases.
1066 (support_chroot_free): Free path_aliases.
1067
1068 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1069
1070 * version.h (RELEASE): Set to "development".
1071 (VERSION): Set to "2.29.9000".
1072 * NEWS: Add section for 2.30.
1073
1074 * version.h (RELEASE): Set to "stable".
1075 (VERSION): Set to "2.29".
1076 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1077
1078 * NEWS: Add the list of bugs fixed in 2.29.
1079 * manual/contrib.texi: Update contributors list with some more
1080 names.
1081 * manual/install.texi: Update latest versions of packages
1082 tested.
1083 * INSTALL: Regenerated.
1084
1085 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1086
1087 * po/be.po: Update translations.
1088 * po/bg.po: Likewise.
1089 * po/ca.po: Likewise.
1090 * po/cs.po: Likewise.
1091 * po/da.po: Likewise.
1092 * po/de.po: Likewise.
1093 * po/el.po: Likewise.
1094 * po/eo.po: Likewise.
1095 * po/es.po: Likewise.
1096 * po/fi.po: Likewise.
1097 * po/fr.po: Likewise.
1098 * po/gl.po: Likewise.
1099 * po/hr.po: Likewise.
1100 * po/hu.po: Likewise.
1101 * po/ia.po: Likewise.
1102 * po/id.po: Likewise.
1103 * po/it.po: Likewise.
1104 * po/ja.po: Likewise.
1105 * po/ko.po: Likewise.
1106 * po/lt.po: Likewise.
1107 * po/nb.po: Likewise.
1108 * po/nl.po: Likewise.
1109 * po/pl.po: Likewise.
1110 * po/pt_BR.po: Likewise.
1111 * po/ru.po: Likewise.
1112 * po/rw.po: Likewise.
1113 * po/sk.po: Likewise.
1114 * po/sl.po: Likewise.
1115 * po/sv.po: Likewise.
1116 * po/tr.po: Likewise.
1117 * po/uk.po: Likewise.
1118 * po/vi.po: Likewise.
1119 * po/zh_CN.po: Likewise.
1120 * po/zh_TW.po: Likewise.
1121
1122 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1123
1124 [BZ #24130]
1125 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1126 of $f3 register on $y_is_neg path.
1127
1128 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1129
1130 [BZ #24110]
1131 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1132 sigaltstack.ss_flags.
1133
1134 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1135
1136 [BZ #23758]
1137 * manual/time.texi (strftime): Document "%Ey".
1138 * time/strftime_l.c (__strftime_internal): Set the default width
1139 padding with zero of "%Ey" to 2.
1140
1141 [BZ #24096]
1142 * manual/time.texi (strftime): Document "%EC" and "%EY".
1143 * time/Makefile (tests): Add tst-strftime2.
1144 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1145 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1146 override padding for "%Ey".
1147 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1148 "%Ey" in the subformat as if decorated with that flag.
1149 * time/tst-strftime2.c: New file.
1150
1151 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1152
1153 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1154 are not defined.
1155
1156 [BZ #24122]
1157 * elf/Makefile (tests): Add tst-audit13.
1158 (modules-names): Add tst-audit13mod1.
1159 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1160 rule.
1161 * elf/rtld.c (dl_main): Handle invalid audit module version.
1162 * elf/tst-audit13.c: New file.
1163 * elf/tst-audit13mod1.c: Likewise.
1164
1165 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1166
1167 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1168 returned by __hurd_at_flags.
1169 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1170 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1171 directly instead of __hurd_file_name_lookup.
1172
1173 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1174
1175 * scripts/build-many-glibcs.py (Context.checkout): Default
1176 binutils version to 2.32 branch.
1177
1178 2019-01-21 Florian Weimer <fweimer@redhat.com>
1179
1180 [BZ #20018]
1181 CVE-2016-10739
1182 resolv: Reject trailing characters in host names
1183 * include/arpa/inet.h (__inet_aton_exact): Declare.
1184 (inet_aton): Remove hidden prototype. No longer used internally.
1185 * nscd/gai.c (__inet_aton): Do not define.
1186 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1187 * nss/digits_dots.c (__inet_aton): Likewise.
1188 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1189 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1190 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1191 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1192 (tst-resolv-trailing): Likewise.
1193 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1194 libc.
1195 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1196 Make static. Add endp parameter.
1197 (__inet_aton_exact): New function.
1198 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1199 (__inet_addr): Call inet_aton_end.
1200 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1201 not just IPv6. Call __inet_aton_exact.
1202 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1203 (tests): Make const. Add additional test cases with trailing
1204 characters.
1205 (do_test): Use array_length.
1206 * resolv/tst-inet_aton_exact.c: New file.
1207 * resolv/tst-resolv-trailing.c: Likewise.
1208 * resolv/tst-resolv-nondecimal.c: Likewise.
1209 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1210
1211 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 [BZ# 24097]
1214 CVE-2019-6488
1215 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1216 Clear the upper 32 bits of RSI register.
1217 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1218 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1219 and tst-size_t-wcsnlen.
1220 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1221 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1222
1223 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1224
1225 [BZ# 24097]
1226 CVE-2019-6488
1227 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1228 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1229 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1230 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1231 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1232
1233 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1234
1235 [BZ# 24097]
1236 CVE-2019-6488
1237 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1238 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1239 * sysdeps/x86_64/strcmp.S: Likewise.
1240 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1241 tst-size_t-strncmp and tst-size_t-wcsncmp.
1242 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1243 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1244 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1245
1246 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 [BZ# 24097]
1249 CVE-2019-6488
1250 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1251 RDX_LP for length. Clear the upper 32 bits of RDX register.
1252 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1253 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1254 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1255 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1256
1257 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1258
1259 [BZ# 24097]
1260 CVE-2019-6488
1261 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1262 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1263 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1264 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1265
1266 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1267
1268 [BZ# 24097]
1269 CVE-2019-6488
1270 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1271 length. Clear the upper 32 bits of RDX register.
1272 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1273 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1274 Likewise.
1275 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1276 Likewise.
1277 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1278 tst-size_t-wmemchr.
1279 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1280
1281 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 [BZ# 24097]
1284 CVE-2019-6488
1285 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1286 length. Clear the upper 32 bits of RDX register.
1287 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1288 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1289 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1290 tst-size_t-wmemcmp.
1291 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1292 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1293
1294 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 [BZ# 24097]
1297 CVE-2019-6488
1298 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1299 upper 32 bits of RDX register.
1300 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1301 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1302 tst-size_t-wmemchr.
1303 * sysdeps/x86_64/x32/test-size_t.h: New file.
1304 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1305 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1306
1307 2019-01-18 Florian Weimer <fweimer@redhat.com>
1308
1309 [BZ #24112]
1310 resolv: Do not send queries for non-host-names in nss_dns.
1311 * resolv/nss_dns/dns-host.c (check_name): New function.
1312 (_nss_dns_gethostbyname2_r): Use it.
1313 (_nss_dns_gethostbyname_r): Likewise.
1314 (_nss_dns_gethostbyname4_r): Likewise.
1315
1316 2019-01-21 Florian Weimer <fweimer@redhat.com>
1317
1318 * resolv/inet_addr.c: Reformat to GNU style.
1319 (__inet_addr, __inet_aton): Update comment.
1320
1321 2019-01-18 Florian Weimer <fweimer@redhat.com>
1322
1323 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1324 ("malloc: Use current (C11-style) atomics for fastbin access").
1325 This commit introduces a substantial performance regression on
1326 POWER and Aarch64.
1327 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1328 (REMOVE_FB): Define.
1329 (_int_malloc): Use it and reindent.
1330 (_int_free): Use CAS loop with
1331 catomic_compare_and_exchange_val_rel.
1332 (malloc_consolidate): Use atomic_exchange_acq.
1333
1334
1335 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1336
1337 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1338 -Wl,-z,now.
1339 (LDFLAGS-tst-minsigstksz-2): Likewise.
1340 (LDFLAGS-tst-minsigstksz-3): Likewise.
1341 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1342 (LDFLAGS-tst-minsigstksz-4): Likewise.
1343
1344 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1345
1346 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1347 than "alternate".
1348
1349 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1350
1351 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1352
1353 2019-01-16 Zack Weinberg <zackw@panix.com>
1354
1355 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1356 (xget_sigstack_location): New test support functions.
1357 * support/xsigstack.c: New file, implementing them.
1358 * support/tst-xsigstack.c: New test for them.
1359 * support/Makefile: Update.
1360
1361 * signal/tst-minsigstksz-1.c
1362 * signal/tst-minsigstksz-2.c
1363 * signal/tst-minsigstksz-3.c
1364 * signal/tst-minsigstksz-3a.c
1365 * signal/tst-minsigstksz-4.c: New tests.
1366 * signal/Makefile: Run them.
1367
1368 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1369
1370 * po/libc.pot: Regenerate.
1371
1372 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1373
1374 * math/libm-test-fma.inc (fma_test_data): Set
1375 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1376
1377 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1378
1379 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1380 (do_test): Changed __vector __int128_t to __vector unsigned int.
1381
1382 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1383
1384 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1385 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1386 stpcpy-avx2 and stpncpy-avx2.
1387 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1388 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1389 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1390 and __stpncpy_avx2.
1391 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1392 ifunc-strcpy.h}: rename header for a more generic name.
1393 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1394 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1395 AVX unaligned load is fast and vzeroupper is preferred.
1396 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1397 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1398 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1399 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1400 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1401 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1402
1403 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1404
1405 * argp/argp-help.c: Fix typo in comment.
1406 * misc/sys/cdefs.h: Likewise.
1407 * posix/regexec.c (sift_states_iter_mb): Likewise.
1408 * socket/sockatmark.c: Likewise.
1409 * socket/sys/socket.h: Likewise.
1410 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1411 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1412 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1413 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1414 * sysdeps/unix/sockatmark.c: Likewise.
1415 * time/strptime_l.c: Likewise.
1416
1417 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1418
1419 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1420 missing space after the cast of "_NL_CURRENT".
1421
1422 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1423
1424 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1425 ifdef to fix read of VSCR.
1426 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1427 tst-ucontext-ppc64-vscr.c to test list.
1428 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1429
1430 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1431
1432 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1433 fall-through.
1434
1435 2019-01-09 Jim Wilson <jimw@sifive.com>
1436
1437 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1438
1439 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1440
1441 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1442 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1443 __memcpy_falkor for ares.
1444 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1445 Add new define.
1446 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1447 Add ares cpu.
1448
1449 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1450
1451 [BZ #24066]
1452 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1453 4_FP_W_TYPEs are used for IEEE quad precision.
1454 * soft-fp/extendhftf2.c: Likewise.
1455 * soft-fp/extendsftf2.c: Likewise.
1456 * soft-fp/extendxftf2.c: Likewise.
1457 * soft-fp/trunctfdf2.c: Likewise.
1458 * soft-fp/trunctfhf2.c: Likewise.
1459 * soft-fp/trunctfsf2.c: Likewise.
1460 * soft-fp/trunctfxf2.c: Likewise.
1461 * sysdeps/alpha/ots_cvttx.c: Likewise.
1462 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1463 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1464 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1465 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1466 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1467 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1468 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1469 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1470 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1471 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1472 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1473 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1474 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1475 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1476 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1477 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1478 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1479
1480 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1481
1482 [BZ #24024]
1483 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1484 code with -fmath-errno.
1485 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1486 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1487 * string/test-strerror-errno.c: New file.
1488
1489 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1490
1491 [BZ #24046]
1492 * localedata/locales/en_US (date_fmt): Add, set to
1493 "%a %d %b %Y %r %Z".
1494
1495 2019-01-07 Florian Weimer <fweimer@redhat.com>
1496
1497 [BZ #24063]
1498 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1499 instead of @var{errno}.
1500 (Parsing of Integers): Likewise.
1501 (Parsing of Floats): Likewise.
1502 * manual/filesys.texi (Working with Directory Trees): Likewise.
1503 (Temporary Files): Likewise.
1504 * manual/job.texi (Terminal Access Functions): Likewise.
1505 * manual/llio.texi (Synchronizing I/O): Likewise.
1506 * manual/math.texi (SVID Random): Likewise.
1507 * manual/message.texi (The catgets Functions): Likewise.
1508 (Translation with gettext): Likewise.
1509 (Locating gettext catalog): Likewise.
1510 (Charset conversion in gettext): Likewise.
1511 * manual/nss.texi (NSS Module Function Internals): Likewise.
1512 * manual/search.texi (Hash Search Function): Likewise.
1513 * manual/setjmp.texi (System V contexts): Likewise.
1514 * manual/time.texi (Sleeping): Likewise.
1515 * manual/users.texi (Lookup User): Likewise.
1516 (Lookup Group): Likewise.
1517
1518 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1519
1520 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1521 fix typo.
1522
1523 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1524
1525 [BZ #19444]
1526 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1527 __builtin_unreachable for default case in switch.
1528 (__ieee754_yn): Likewise.
1529 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1530 (__ieee754_ynl): Likewise.
1531 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1532 (__ieee754_ynl): Likewise.
1533 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1534 (__ieee754_ynl): Likewise.
1535
1536 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1537
1538 * manual/maint.texi: Use @{ and @}.
1539
1540 2019-01-04 Florian Weimer <fweimer@redhat.com>
1541
1542 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1543 function.
1544 (do_in_chroot_1): Call it.
1545 (run_chroot_tests):
1546 Improve error reporting in case it is not possible to create a
1547 collision for the PTY name required by the test.
1548
1549 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1550
1551 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1552 lll_wait_tid with timeout.
1553 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1554 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1555 futex_reltimed_wait_cancelable for cancelabla mode.
1556 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1557 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1558 macros.
1559 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1560 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1561 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1562 SYSCALL_CANCEL_NCS): New macro.
1563 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1564 (lll_timedwait_tid): Remove macro.
1565 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1566 Likewise.
1567 (lll_timedwait_tid): Likewise.
1568 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1569 Likewise.
1570 (lll_timedwait_tid): Likewise.
1571 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1572 Likewise.
1573 (lll_timedwait_tid): Likewise.
1574 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1575 Use INTERNAL_SYSCALL_CANCEL.
1576 * sysdeps/unix/sysv/linux/futex-internal.h
1577 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1578 instead of __pthread_{enable,disable}_asynccancel.
1579 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1580 (lll_futex_wait_cancel): New macro.
1581
1582 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1583 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1584
1585 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1586 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1587
1588 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1589 in backtrace analysis.
1590 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1591 side-effects.
1592 (tf_send): Likewise.
1593
1594 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1595 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1596 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1597 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1598 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1599 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1600 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1601 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1602 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1603 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1604 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1605 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1606 Likewise.
1607 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1608 tst-cancel-wrappers.sh.
1609 (generated): Remove tst-cancel-wrappers.out.
1610 (tst-cancel-wrappers.out): Remove rule.
1611 * nptl/tst-cancel-wrappers.sh: Remove file.
1612
1613 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1614
1615 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1616 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1617 Update.
1618
1619 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1620
1621 [BZ #23640]
1622 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1623 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1624 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1625 close-on-exec reset for adddup2 file action.
1626 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1627
1628 2019-01-03 Zack Weinberg <zackw@panix.com>
1629
1630 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1631 parameter. Only use deprecated scanf when __USE_GNU is defined
1632 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1633 than 201103L, whichever is relevant for the language being compiled.
1634
1635 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1636 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1637 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1638 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1639 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1640
1641 * libio/iovsscanf.c
1642 * libio/fwscanf.c
1643 * libio/iovswscanf.c
1644 * libio/swscanf.c
1645 * libio/vscanf.c
1646 * libio/vwscanf.c
1647 * libio/wscanf.c
1648 * stdio-common/fscanf.c
1649 * stdio-common/scanf.c
1650 * stdio-common/vfscanf.c
1651 * stdio-common/vfwscanf.c
1652 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1653 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1654 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1655 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1656 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1657 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1658 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1659 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1660 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1661 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1662 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1663 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1664 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1665 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1666 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1667
1668 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1669 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1670 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1671 not sscanf.
1672 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1673 with a preprocessor macro.
1674
1675 * stdio-common/bug21.c, stdio-common/scanf14.c:
1676 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1677 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1678 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1679 to xscanf, xfscanf, xsscanf.
1680
1681 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1682 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1683 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1684 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1685 xfscanf, xsscanf.
1686 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1687 override feature selection macros or provide definitions of u_char etc.
1688 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1689 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1690 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1691 with -std=gnu89.
1692
1693 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1694
1695 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1696 bits/termios-misc.h.
1697 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1698 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1699 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1700 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1701 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1702 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1703
1704 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1705 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1706 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1707 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1708 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1709 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1710 termios-misc.h.
1711 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1712 (sysdep_headers): Add termios-misc.h.
1713
1714 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1715 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1716 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1717
1718 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1719 termios-tcflow.h.
1720 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1721 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1722 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1723 TCSAFLUSH): Move to termios-tcflow.h.
1724 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1725 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1726 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1727 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1728
1729 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1730 termios-c_lflag.h.
1731 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1732 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1733 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1734 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1735 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1736 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1737 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1738 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1739 Likewise.
1740 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1741 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1742 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1743 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1744
1745 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1746 termios-c_cflag.h.
1747 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1748 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1749 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1750 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1751 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1752 termios-c_cflag.h.
1753 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1754 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1755 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1756 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1757
1758 [BZ #23783]
1759 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1760 termios-baud.h.
1761 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1762 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1763 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1764 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1765 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1766 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1767 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1768 __MAX_BAUD): Move to termios-baud.h.
1769 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1770 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1771 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1772 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1773 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1774
1775 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1776 termios-c_oflag.h.
1777 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1778 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1779 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1780 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1781 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1782 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1783 termios-c_oflag.h.
1784 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1785 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1786 FFR1): Likewise.
1787 [USE_MISC] (XTABS): Likewise.
1788 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1789 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1790 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1791 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1792
1793 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1794 termios-c_iflag.h.
1795 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1796 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1797 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1798 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1799 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1800 IUTF8): Move to termios-c_iflag.h.
1801 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1802 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1803 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1804 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1805
1806 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1807 termios-cc.h.
1808 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1809 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1810 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1811 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1812 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1813 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1814 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1815 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1816 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1817 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1818 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1819 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1820
1821 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1822 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1823 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1824 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1825 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1826 termios-struct.h.
1827 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1828 termios-struct.h.
1829 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1830 Likewise.
1831 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1832 Likewise.
1833 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1834 Likewise.
1835 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1836 Likewise.
1837 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1838 _HAVE_C_OSPEED): Define.
1839 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1840 _HAVE_C_OSPEED): Likewise.
1841 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1842 _HAVE_C_OSPEED): Likewise.
1843 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1844 (cfsetospeed): Check for define value instead of existence.
1845 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1846 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1847 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1848 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1849 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1850
1851 [BZ #17783]
1852 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1853 Define.
1854 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1855 (TIOCSER_TEMT): Likewise.
1856 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1857 (TEOCSER_TEMT): Likewise.
1858
1859 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1860
1861 [BZ #24011]
1862 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1863
1864 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1865
1866 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1867
1868 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1869
1870 * sysdeps/htl/pt-barrierattr-setpshared.c
1871 (pthread_barrierattr_setpshared): Add stub warning.
1872 * sysdeps/htl/pt-condattr-setpshared.c
1873 (pthread_condattr_setpshared): Likewise.
1874 * sysdeps/htl/pt-mutexattr-setpshared.c
1875 (pthread_mutexattr_setpshared): Likewise.
1876 * sysdeps/htl/pt-rwlockattr-setpshared.c
1877 (pthread_rwlockattr_setpshared): Likewise.
1878 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1879 (pthread_mutexattr_setpshared): Likewise.
1880
1881 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1882
1883 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1884 constants to match with Linux 4.20.
1885
1886 * sysdeps/mips/mips32/libm-test-ulps: Update.
1887 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1888
1889 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1890
1891 [BZ #24034]
1892 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1893 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1894 than __typeof (...) for the a_ptr variable.
1895
1896 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1897
1898 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1899 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1900 * libio/Makefile (tests): Add tst-sprintf-ub and
1901 tst-sprintf-chk-ub.
1902 (CFLAGS-tst-sprintf-ub.c): New variable.
1903 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1904 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1905 destination buffer and check for overflows in fortified mode.
1906 * libio/libioP.h (PRINTF_CHK): New macro.
1907 * libio/tst-sprintf-chk-ub.c: New file.
1908 * libio/tst-sprintf-ub.c: Likewise.
1909
1910 2019-01-02 Florian Weimer <fweimer@redhat.com>
1911
1912 [BZ #24018]
1913 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1914 failure.
1915
1916 2019-01-02 Florian Weimer <fweimer@redhat.com>
1917
1918 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1919
1920 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1921
1922 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1923 macro.
1924
1925 * sysdeps/unix/sysv/linux/netpacket/packet.h
1926 (PACKET_IGNORE_OUTGOING): New macro.
1927
1928 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1929 macro.
1930
1931 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1932 version to 4.20.
1933 (riscv_flush_icache): New syscall.
1934
1935 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1936 trailing whitespace removed.
1937 * scripts/config.guess: Update to version 2019-01-01.
1938 * scripts/config.sub: Update to version 2019-01-01.
1939 * scripts/move-if-change: Update from gnulib.
1940
1941 * NEWS: Update copyright dates.
1942 * catgets/gencat.c (print_version): Likewise.
1943 * csu/version.c (banner): Likewise.
1944 * debug/catchsegv.sh: Likewise.
1945 * debug/pcprofiledump.c (print_version): Likewise.
1946 * debug/xtrace.sh (do_version): Likewise.
1947 * elf/ldconfig.c (print_version): Likewise.
1948 * elf/ldd.bash.in: Likewise.
1949 * elf/pldd.c (print_version): Likewise.
1950 * elf/sotruss.sh: Likewise.
1951 * elf/sprof.c (print_version): Likewise.
1952 * iconv/iconv_prog.c (print_version): Likewise.
1953 * iconv/iconvconfig.c (print_version): Likewise.
1954 * locale/programs/locale.c (print_version): Likewise.
1955 * locale/programs/localedef.c (print_version): Likewise.
1956 * login/programs/pt_chown.c (print_version): Likewise.
1957 * malloc/memusage.sh (do_version): Likewise.
1958 * malloc/memusagestat.c (print_version): Likewise.
1959 * malloc/mtrace.pl: Likewise.
1960 * manual/libc.texinfo: Likewise.
1961 * nptl/version.c (banner): Likewise.
1962 * nscd/nscd.c (print_version): Likewise.
1963 * nss/getent.c (print_version): Likewise.
1964 * nss/makedb.c (print_version): Likewise.
1965 * posix/getconf.c (main): Likewise.
1966 * scripts/test-installation.pl: Likewise.
1967 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1968
1969 * All files with FSF copyright notices: Update copyright dates
1970 using scripts/update-copyrights.
1971 * locale/programs/charmap-kw.h: Regenerated.
1972 * locale/programs/locfile-kw.h: Likewise.
1973
1974 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1975
1976 * timezone/zdump.c: Update from tzcode 2018i.
1977 * timezone/zic.c: Likewise.
1978
1979 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1980
1981 regex: improve Gnulib port to AIX
1982 From the glibc point of view, this removes duplicate macro
1983 definitions and is obviously safe.
1984 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1985 * posix/regex_internal.h:
1986 (__attribute__, __attribute_warn_unused_result__):
1987 Remove; already defined elsewhere.
1988
1989 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1990
1991 [BZ #24027]
1992 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1993 copying operation. (ncopies had the wrong type, resulting in an
1994 integer wraparound and too few elements being copied.)
1995
1996 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1997
1998 [BZ #24022]
1999 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2000 <asm/syscalls.h> exists with __has_include__ before including it.
2001
2002 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2003
2004 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2005 version to 4.20.
2006
2007 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2008
2009 * hurd/lookup-retry: Include <unistd.h>.
2010 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2011 Release it on return. Handle "pid" magical lookup retry.
2012
2013 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2014
2015 [BZ #10496]
2016 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2017 (t_fmt_ampm): Likewise.
2018 * localedata/locales/aa_ER (t_fmt): Likewise.
2019 (t_fmt_ampm): Likewise.
2020 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2021 (t_fmt_ampm): Likewise.
2022 * localedata/locales/aa_ET (t_fmt): Likewise.
2023 (t_fmt_ampm): Likewise.
2024 * localedata/locales/am_ET (t_fmt): Likewise.
2025 (t_fmt_ampm): Likewise.
2026 * localedata/locales/byn_ER (t_fmt): Likewise.
2027 (t_fmt_ampm): Likewise.
2028 * localedata/locales/om_ET (t_fmt): Likewise.
2029 (t_fmt_ampm): Likewise.
2030 * localedata/locales/sid_ET (t_fmt): Likewise.
2031 (t_fmt_ampm): Likewise.
2032 * localedata/locales/so_DJ (t_fmt): Likewise.
2033 (t_fmt_ampm): Likewise.
2034 * localedata/locales/so_ET (t_fmt): Likewise.
2035 (t_fmt_ampm): Likewise.
2036 * localedata/locales/so_SO (t_fmt): Likewise.
2037 (t_fmt_ampm): Likewise.
2038 * localedata/locales/ti_ER (t_fmt): Likewise.
2039 (t_fmt_ampm): Likewise.
2040 * localedata/locales/ti_ET (t_fmt): Likewise.
2041 (t_fmt_ampm): Likewise.
2042 * localedata/locales/tig_ER (t_fmt): Likewise.
2043 (t_fmt_ampm): Likewise.
2044 * localedata/locales/wal_ET (t_fmt): Likewise.
2045 (t_fmt_ampm): Likewise.
2046
2047 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2048 * localedata/locales/ar_IN (t_fmt): Likewise.
2049 * localedata/locales/bhb_IN (t_fmt): Likewise.
2050 * localedata/locales/bho_IN (t_fmt): Likewise.
2051 * localedata/locales/bi_VU (t_fmt): Likewise.
2052 * localedata/locales/bn_BD (t_fmt): Likewise.
2053 * localedata/locales/bn_IN (t_fmt): Likewise.
2054 * localedata/locales/brx_IN (t_fmt): Likewise.
2055 * localedata/locales/doi_IN (t_fmt): Likewise.
2056 * localedata/locales/en_HK (t_fmt): Likewise.
2057 (t_fmt_ampm): Likewise.
2058 * localedata/locales/en_IN (t_fmt): Likewise.
2059 * localedata/locales/en_PH (t_fmt): Likewise.
2060 * localedata/locales/gu_IN (t_fmt): Likewise.
2061 * localedata/locales/hi_IN (t_fmt): Likewise.
2062 * localedata/locales/hif_FJ (t_fmt): Likewise.
2063 * localedata/locales/hne_IN (t_fmt): Likewise.
2064 * localedata/locales/kn_IN (t_fmt): Likewise.
2065 * localedata/locales/kok_IN (t_fmt): Likewise.
2066 * localedata/locales/ks_IN (t_fmt): Likewise.
2067 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2068 * localedata/locales/mag_IN (t_fmt): Likewise.
2069 * localedata/locales/mai_IN (t_fmt): Likewise.
2070 * localedata/locales/mjw_IN (t_fmt): Likewise.
2071 * localedata/locales/ml_IN (t_fmt): Likewise.
2072 * localedata/locales/mni_IN (t_fmt): Likewise.
2073 * localedata/locales/mr_IN (t_fmt): Likewise.
2074 * localedata/locales/ms_MY (t_fmt): Likewise.
2075 * localedata/locales/pa_IN (t_fmt): Likewise.
2076 * localedata/locales/raj_IN (t_fmt): Likewise.
2077 * localedata/locales/sa_IN (t_fmt): Likewise.
2078 * localedata/locales/sat_IN (t_fmt): Likewise.
2079 * localedata/locales/sd_IN (t_fmt): Likewise.
2080 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2081 * localedata/locales/tcy_IN (t_fmt): Likewise.
2082 * localedata/locales/the_NP (t_fmt): Likewise.
2083 * localedata/locales/to_TO (t_fmt): Likewise.
2084 * localedata/locales/ur_IN (t_fmt): Likewise.
2085
2086 * localedata/locales/hif_FJ (d_t_fmt): Set to
2087 "%A %d %b %Y %I:%M:%S %p".
2088 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2089
2090 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2091 * localedata/locales/ar_BH (t_fmt): Likewise.
2092 * localedata/locales/ar_DZ (t_fmt): Likewise.
2093 * localedata/locales/ar_EG (t_fmt): Likewise.
2094 * localedata/locales/ar_IQ (t_fmt): Likewise.
2095 * localedata/locales/ar_JO (t_fmt): Likewise.
2096 * localedata/locales/ar_KW (t_fmt): Likewise.
2097 * localedata/locales/ar_LB (t_fmt): Likewise.
2098 * localedata/locales/ar_LY (t_fmt): Likewise.
2099 * localedata/locales/ar_OM (t_fmt): Likewise.
2100 * localedata/locales/ar_QA (t_fmt): Likewise.
2101 * localedata/locales/ar_SD (t_fmt): Likewise.
2102 * localedata/locales/ar_SS (t_fmt): Likewise.
2103 * localedata/locales/ar_SY (t_fmt): Likewise.
2104 * localedata/locales/ar_TN (t_fmt): Likewise.
2105 * localedata/locales/ar_YE (t_fmt): Likewise.
2106
2107 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2108 (t_fmt_ampm): Likewise.
2109 * localedata/locales/gez_ET (t_fmt): Likewise.
2110 (t_fmt_ampm): Likewise.
2111
2112 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2113 (t_fmt_ampm): Likewise.
2114 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2115
2116 * localedata/locales/zh_HK (t_fmt):
2117 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2118
2119 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2120 because this locale does not use the 12-hour clock.
2121 (t_fmt): Set to "%Z %H:%M:%S".
2122 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2123
2124 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2125 because this locale does not use the 12-hour clock.
2126 (t_fmt): Set to "%H:%M:%S %Z".
2127 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2128
2129 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2130 because this locale does not use the 12-hour clock.
2131 (t_fmt): Set to "%T".
2132 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2133 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2134
2135 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2136 because this locale does not use the 12-hour clock.
2137 (t_fmt): Set to "%H:%M:%S %Z".
2138 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2139
2140 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2141 because this locale does not use the 12-hour clock.
2142 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2143 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2144
2145 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2146
2147 [BZ #10496]
2148 [BZ #23724]
2149 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2150 (t_fmt_ampm): Likewise.
2151 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2152 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2153 (d_fmt): Set to "%-d.%-m.%y".
2154
2155 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2156
2157 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2158 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2159 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2160 Likewise.
2161 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2162 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2163 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2164 function.
2165 * support/blob_repeat.c (check_mul_overflow_size_t,
2166 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2167
2168 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2169
2170 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2171
2172 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2173
2174 regex: simplify Gnulib port
2175 This simplifies the code, by removing stuff intended for porting
2176 to Gnulib but no longer needed there.
2177 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2178 uses of libc_hidden_def, weak_alias.
2179 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2180 _Restrict_ except for public-facing headers.
2181 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2182 Remove; already defined elsewhere.
2183 * posix/regex.c, posix/regex_internal.h:
2184 Use __GNUC_PREREQ instead of rolling our own.
2185 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2186
2187 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2188
2189 * benchtests/bench-strlen.c (generic_strlen): New function.
2190 (memchr_strlen): New function.
2191
2192 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2193
2194 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2195 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2196 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2197
2198 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2201
2202 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2203
2204 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2205 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2206 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2207 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2208 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2209 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2210 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2211
2212 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2213
2214 [BZ #24023]
2215 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2216 PLT reference in libc.so.
2217 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2218 _Q_lltoq and _Q_qtod PLT references in libc.so.
2219
2220 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2221
2222 * benchtests/bench-memchr.c: Cleanup defines.
2223 * benchtests/bench-memcmp.c: Likewise.
2224 * benchtests/bench-memset.c: Likewise.
2225 * benchtests/bench-memset-large.c: Likewise.
2226 * benchtests/bench-memset-walk.c: Likewise.
2227 * benchtests/bench-stpcpy.c: Likewise.
2228 * benchtests/bench-stpncpy.c: Likewise.
2229 * benchtests/bench-strcat.c: Likewise.
2230 * benchtests/bench-strchr.c: Likewise.
2231 * benchtests/bench-strcmp.c: Likewise.
2232 * benchtests/bench-strcpy.c: Likewise.
2233 * benchtests/bench-strcspn.c: Likewise.
2234 * benchtests/bench-string.h: Likewise.
2235 * benchtests/bench-strlen.c: Likewise.
2236 * benchtests/bench-strncat.c: Likewise.
2237 * benchtests/bench-strncmp.c: Likewise.
2238 * benchtests/bench-strncpy.c: Likewise.
2239 * benchtests/bench-strnlen.c: Likewise.
2240 * benchtests/bench-strpbrk.c: Likewise.
2241 * benchtests/bench-strrchr.c: Likewise.
2242 * benchtests/bench-strspn.c: Likewise.
2243
2244 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2245
2246 * stdlib/longlong.h: Update from GCC.
2247
2248 [BZ #23993]
2249 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2250 * configure: Regenerated.
2251 * manual/install.texi (Tools for Compilation): Update minimum GCC
2252 version.
2253 * INSTALL: Regenerated.
2254
2255 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2256
2257 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2258
2259 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2260
2261 * malloc/malloc.c (mremap_chunk): Additional checks.
2262
2263 2018-12-21 Mao Han <han_mao@c-sky.com>
2264
2265 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2266 * scripts/build-many-glibcs.py: Add C-SKY targets.
2267 * sysdeps/csky/Implies: New file.
2268 * sysdeps/csky/Makefile: Likewise.
2269 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2270 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2271 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2272 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2273 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2274 * sysdeps/csky/abiv2/memmove.S: Likewise.
2275 * sysdeps/csky/abiv2/memset.S: Likewise.
2276 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2277 * sysdeps/csky/abiv2/start.S: Likewise.
2278 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2279 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2280 * sysdeps/csky/abiv2/strlen.S: Likewise.
2281 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2282 * sysdeps/csky/abort-instr.h: Likewise.
2283 * sysdeps/csky/atomic-machine.h: Likewise.
2284 * sysdeps/csky/bits/endian.h: Likewise.
2285 * sysdeps/csky/bits/fenv.h: Likewise.
2286 * sysdeps/csky/bits/link.h: Likewise.
2287 * sysdeps/csky/bits/setjmp.h: Likewise.
2288 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2289 * sysdeps/csky/bsd-setjmp.S: Likewise.
2290 * sysdeps/csky/configure: Likewise.
2291 * sysdeps/csky/configure.ac: Likewise.
2292 * sysdeps/csky/dl-machine.h: Likewise.
2293 * sysdeps/csky/dl-procinfo.c: Likewise.
2294 * sysdeps/csky/dl-procinfo.h: Likewise.
2295 * sysdeps/csky/dl-sysdep.h: Likewise.
2296 * sysdeps/csky/dl-tls.h: Likewise.
2297 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2298 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2299 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2300 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2301 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2302 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2303 * sysdeps/csky/fpu/fegetround.c: Likewise.
2304 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2305 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2306 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2307 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2308 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2309 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2310 * sysdeps/csky/fpu/fesetround.c: Likewise.
2311 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2312 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2313 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2314 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2315 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2316 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2317 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2318 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2319 * sysdeps/csky/fpu_control.h: Likewise.
2320 * sysdeps/csky/gccframe.h: Likewise.
2321 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2322 * sysdeps/csky/ldsodefs.h: Likewise.
2323 * sysdeps/csky/libc-tls.c: Likewise.
2324 * sysdeps/csky/linkmap.h: Likewise.
2325 * sysdeps/csky/machine-gmon.h: Likewise.
2326 * sysdeps/csky/memusage.h: Likewise.
2327 * sysdeps/csky/nofpu/Implies: Likewise.
2328 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2329 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2330 * sysdeps/csky/nptl/Makefile: Likewise.
2331 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2332 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2333 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2334 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2335 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2336 * sysdeps/csky/nptl/tls.h: Likewise.
2337 * sysdeps/csky/preconfigure: Likewise.
2338 * sysdeps/csky/sfp-machine.h: Likewise.
2339 * sysdeps/csky/sotruss-lib.c: Likewise.
2340 * sysdeps/csky/stackinfo.h: Likewise.
2341 * sysdeps/csky/sysdep.h: Likewise.
2342 * sysdeps/csky/tininess.h: Likewise.
2343 * sysdeps/csky/tst-audit.h: Likewise.
2344 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2345 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2346 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2347 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2348 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2349 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2350 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2351 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2352 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2353 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2354 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2355 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2356 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2357 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2358 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2359 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2360 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2361 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2362 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2363 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2364 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2365 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2366 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2367 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2368 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2369 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2370 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2371 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2372 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2373 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2374 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2375 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2376 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2377 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2378 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2379 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2380 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2381 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2382 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2383 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2384 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2385 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2386 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2387 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2388
2389 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2390
2391 * include/time.h (__difftime64): Add.
2392 * time/difftime.c (subtract): convert to 64-bit time.
2393 * time/difftime.c (__difftime64): Add.
2394 * time/difftime.c (__difftime): Wrap around __difftime64.
2395
2396 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2397
2398 * manual/examples/add.c: Remove redundant "if not".
2399 * manual/examples/argp-ex1.c: Likewise.
2400 * manual/examples/argp-ex2.c: Likewise.
2401 * manual/examples/argp-ex3.c: Likewise.
2402 * manual/examples/argp-ex4.c: Likewise.
2403 * manual/examples/atexit.c: Likewise.
2404 * manual/examples/db.c: Likewise.
2405 * manual/examples/dir.c: Likewise.
2406 * manual/examples/dir2.c: Likewise.
2407 * manual/examples/execinfo.c: Likewise.
2408 * manual/examples/filecli.c: Likewise.
2409 * manual/examples/filesrv.c: Likewise.
2410 * manual/examples/fmtmsgexpl.c: Likewise.
2411 * manual/examples/genpass.c: Likewise.
2412 * manual/examples/inetcli.c: Likewise.
2413 * manual/examples/inetsrv.c: Likewise.
2414 * manual/examples/isockad.c: Likewise.
2415 * manual/examples/longopt.c: Likewise.
2416 * manual/examples/memopen.c: Likewise.
2417 * manual/examples/memstrm.c: Likewise.
2418 * manual/examples/mkdirent.c: Likewise.
2419 * manual/examples/mkfsock.c: Likewise.
2420 * manual/examples/mkisock.c: Likewise.
2421 * manual/examples/mygetpass.c: Likewise.
2422 * manual/examples/pipe.c: Likewise.
2423 * manual/examples/popen.c: Likewise.
2424 * manual/examples/rprintf.c: Likewise.
2425 * manual/examples/search.c: Likewise.
2426 * manual/examples/select.c: Likewise.
2427 * manual/examples/setjmp.c: Likewise.
2428 * manual/examples/sigh1.c: Likewise.
2429 * manual/examples/sigusr.c: Likewise.
2430 * manual/examples/stpcpy.c: Likewise.
2431 * manual/examples/strdupa.c: Likewise.
2432 * manual/examples/strftim.c: Likewise.
2433 * manual/examples/subopt.c: Likewise.
2434 * manual/examples/swapcontext.c: Likewise.
2435 * manual/examples/termios.c: Likewise.
2436 * manual/examples/testopt.c: Likewise.
2437 * manual/examples/testpass.c: Likewise.
2438 * manual/examples/timeval_subtract.c: Likewise.
2439
2440 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2441
2442 * sysdeps/x86/fpu/math_private.h: New file.
2443 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2444
2445 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2446 definition.
2447 (cosh): Likewise.
2448 (tanh): Likewise.
2449
2450 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2451
2452 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2453 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2454 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2455 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2456 fields.
2457 (_dl_show_auxv): Give a special treatment to
2458 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2459 and AT_L3_CACHEGEOMETRY.
2460 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2461 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2462 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2463 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2464
2465 2018-12-19 Andreas Schwab <schwab@suse.de>
2466
2467 * nscd/connections.c (check_use): Don't abort on invalid len.
2468
2469 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2472 values in the 64bit value cases.
2473
2474 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2475
2476 * include/time.h
2477 (__ctime64_r): Add.
2478 * time/ctime_r.c
2479 (__ctime64_r): Add.
2480 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2481
2482 * include/time.h
2483 (__ctime64): Add.
2484 * time/gmtime.c
2485 (__ctime64): Add.
2486 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2487
2488 * include/time.h
2489 (__gmtime64_r): Add.
2490 * time/gmtime.c
2491 (__gmtime64_r): Add.
2492 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2493
2494 * include/time.h
2495 (__gmtime64): Add.
2496 * time/gmtime.c
2497 (__gmtime64): Add.
2498 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2499
2500 * include/time.h
2501 (__localtime64_r): Add.
2502 * time/localtime.c
2503 (__localtime64_r): Add.
2504 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2505
2506 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2507
2508 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2509 kernel_sigction definition.
2510
2511 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2512
2513 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2514
2515 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2516 __syscall_rt_sigaction.
2517 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2518 (kernel_sigaction): Use Linux generic defintion.
2519 (STUB): Define.
2520 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2521 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2522 (__syscall_rt_sigaction): Remove implementation.
2523 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2524 hidden.
2525 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2526 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2527 INTERNAL_SYSCALL): Remove definitions.
2528 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2529 action and signal set size.
2530 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2531 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2532
2533 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2534 James Clarke <jrtc27@jrtc27.com>
2535
2536 [BZ #23967]
2537 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2538 Define if SA_RESTORER is defined.
2539 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2540 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2541 already defined.
2542 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2543 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2544 definitions.
2545 (HAS_SA_RESTORER): Define.
2546 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2547 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2548 (HAS_SA_RESTORER): Define.
2549 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2550 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2551 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2552 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2553 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2554
2555 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2556
2557 * sysdeps/unix/sysv/linux/kernel-features.h
2558 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2559 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2560 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2561 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2562 (__ASSUME_ST_INO_64_BIT): Likewise.
2563 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2564 <kernel-features.h>.
2565 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2566 Remove conditional code.
2567 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2568 <kernel-features.h>.
2569 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2570 Remove conditional code.
2571 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2572 <kernel-features.h>.
2573 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2574 Remove conditional code.
2575 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2576 <kernel-features.h>.
2577 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2578 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2579
2580 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2581
2582 * sysdeps/s390/multiarch/ifunc-resolve.h
2583 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2584 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2585 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2586 Delete macro definition.
2587 (s390_libc_ifunc_init): Rename to
2588 s390_libc_ifunc_expr_stfle_init.
2589 * sysdeps/s390/bzero: Use
2590 s390_libc_ifunc_expr_stfle_init instead of
2591 s390_libc_ifunc_init.
2592 * sysdeps/s390/memcmp.c: Likewise.
2593 * sysdeps/s390/memcpy.c: Likewise.
2594 * sysdeps/s390/mempcpy.c: Likewise.
2595 * sysdeps/s390/memset.c: Likewise.
2596
2597 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2598
2599 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2600 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2601
2602 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2603
2604 * sysdeps/s390/multiarch/Makefile
2605 (sysdep_routines): Remove wmemcmp variants.
2606 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2607 * sysdeps/s390/multiarch/ifunc-impl-list.c
2608 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2609 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2610 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2611 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2612 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2613 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2614 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2615 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2616
2617 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2618
2619 * sysdeps/s390/multiarch/Makefile
2620 (sysdep_routines): Remove wmemset variants.
2621 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2622 * sysdeps/s390/multiarch/ifunc-impl-list.c
2623 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2624 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2625 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2626 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2627 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2628 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2629 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2630 * sysdeps/s390/ifunc-wmemset.h: New file.
2631
2632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2633
2634 * sysdeps/s390/multiarch/Makefile
2635 (sysdep_routines): Remove wmemchr variants.
2636 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2637 * sysdeps/s390/multiarch/ifunc-impl-list.c
2638 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2639 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2640 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2641 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2642 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2643 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2644 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2645 * sysdeps/s390/ifunc-wmemchr.h: New file.
2646
2647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2648
2649 * sysdeps/s390/multiarch/Makefile
2650 (sysdep_routines): Remove wcscspn variants.
2651 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2652 * sysdeps/s390/multiarch/ifunc-impl-list.c
2653 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2654 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2655 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2656 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2657 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2658 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2659 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2660 * sysdeps/s390/ifunc-wcscspn.h: New file.
2661
2662 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2663
2664 * sysdeps/s390/multiarch/Makefile
2665 (sysdep_routines): Remove wcspbrk variants.
2666 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2667 * sysdeps/s390/multiarch/ifunc-impl-list.c
2668 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2669 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2670 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2671 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2672 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2673 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2674 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2675 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2676
2677 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2678
2679 * sysdeps/s390/multiarch/Makefile
2680 (sysdep_routines): Remove wcsspn variants.
2681 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2682 * sysdeps/s390/multiarch/ifunc-impl-list.c
2683 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2684 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2685 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2686 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2687 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2688 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2689 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/ifunc-wcsspn.h: New file.
2691
2692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2693
2694 * sysdeps/s390/multiarch/Makefile
2695 (sysdep_routines): Remove wcsrchr variants.
2696 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2697 * sysdeps/s390/multiarch/ifunc-impl-list.c
2698 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2699 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2700 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2701 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2702 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2703 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2704 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2705 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2706
2707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2708
2709 * sysdeps/s390/multiarch/Makefile
2710 (sysdep_routines): Remove wcschrnul variants.
2711 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2712 * sysdeps/s390/multiarch/ifunc-impl-list.c
2713 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2714 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2715 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2716 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2717 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2718 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2719 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2720 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2721
2722 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2723
2724 * sysdeps/s390/multiarch/Makefile
2725 (sysdep_routines): Remove wcschr variants.
2726 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2727 * sysdeps/s390/multiarch/ifunc-impl-list.c
2728 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2729 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2730 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2731 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2732 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2734 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2735 * sysdeps/s390/ifunc-wcschr.h: New file.
2736
2737 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2738
2739 * sysdeps/s390/multiarch/Makefile
2740 (sysdep_routines): Remove wcsncmp variants.
2741 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2742 * sysdeps/s390/multiarch/ifunc-impl-list.c
2743 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2744 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2745 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2747 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2748 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2749 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2751
2752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2753
2754 * sysdeps/s390/multiarch/Makefile
2755 (sysdep_routines): Remove wcscmp variants.
2756 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2757 * sysdeps/s390/multiarch/ifunc-impl-list.c
2758 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2759 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2760 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2761 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2762 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2763 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2764 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2765 * sysdeps/s390/ifunc-wcscmp.h: New file.
2766
2767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2768
2769 * sysdeps/s390/multiarch/Makefile
2770 (sysdep_routines): Remove wcsncat variants.
2771 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2772 * sysdeps/s390/multiarch/ifunc-impl-list.c
2773 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2774 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2775 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2776 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2777 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2778 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2779 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2780 * sysdeps/s390/ifunc-wcsncat.h: New file.
2781
2782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * sysdeps/s390/multiarch/Makefile
2785 (sysdep_routines): Remove wcscat variants.
2786 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2787 * sysdeps/s390/multiarch/ifunc-impl-list.c
2788 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2789 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2790 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2791 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2792 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2793 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2794 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/ifunc-wcscat.h: New file.
2796
2797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2798
2799 * sysdeps/s390/multiarch/Makefile
2800 (sysdep_routines): Remove wcpncpy variants.
2801 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2802 * sysdeps/s390/multiarch/ifunc-impl-list.c
2803 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2804 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2805 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2806 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2807 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2808 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2809 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2810 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2811
2812 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2813
2814 * sysdeps/s390/multiarch/Makefile
2815 (sysdep_routines): Remove wcsncpy variants.
2816 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2817 * sysdeps/s390/multiarch/ifunc-impl-list.c
2818 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2819 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2820 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2821 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2822 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2823 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2824 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2825 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2826
2827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2828
2829 * sysdeps/s390/multiarch/Makefile
2830 (sysdep_routines): Remove wcpcpy variants.
2831 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2832 * sysdeps/s390/multiarch/ifunc-impl-list.c
2833 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2834 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2835 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2836 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2837 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2838 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2839 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2840 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2841
2842 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2843
2844 * sysdeps/s390/multiarch/Makefile
2845 (sysdep_routines): Remove wcscpy variants.
2846 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2847 * sysdeps/s390/multiarch/ifunc-impl-list.c
2848 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2849 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2850 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2851 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2852 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2853 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2854 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2855 * sysdeps/s390/ifunc-wcscpy.h: New file.
2856
2857 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2858
2859 * sysdeps/s390/multiarch/Makefile
2860 (sysdep_routines): Remove wcsnlen variants.
2861 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2862 * sysdeps/s390/multiarch/ifunc-impl-list.c
2863 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2864 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2865 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2866 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2867 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2868 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2869 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2870 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2871
2872 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2873
2874 * sysdeps/s390/multiarch/Makefile
2875 (sysdep_routines): Remove wcslen variants.
2876 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2877 * sysdeps/s390/multiarch/ifunc-impl-list.c
2878 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2879 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2880 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2881 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2882 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2883 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2884 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2885 * sysdeps/s390/ifunc-wcslen.h: New file.
2886
2887 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2888
2889 * sysdeps/s390/multiarch/Makefile
2890 (sysdep_routines): Remove memrchr variants.
2891 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2892 * sysdeps/s390/multiarch/ifunc-impl-list.c
2893 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2894 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2895 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2896 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2897 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2898 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2899 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2900 * sysdeps/s390/ifunc-memrchr.h: New file.
2901
2902 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2903
2904 * sysdeps/s390/multiarch/Makefile
2905 (sysdep_routines): Remove memccpy variants.
2906 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2907 * sysdeps/s390/multiarch/ifunc-impl-list.c
2908 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2909 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2910 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2911 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2912 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2913 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2914 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2915 * sysdeps/s390/ifunc-memccpy.h: New file.
2916
2917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2918
2919 * sysdeps/s390/multiarch/Makefile
2920 (sysdep_routines): Remove rawmemchr variants.
2921 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2922 * sysdeps/s390/multiarch/ifunc-impl-list.c
2923 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2924 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2925 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2926 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2927 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2928 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2929 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2930 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2931
2932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2933
2934 * sysdeps/s390/multiarch/Makefile
2935 (sysdep_routines): Remove memchr variants.
2936 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2937 * sysdeps/s390/multiarch/ifunc-impl-list.c
2938 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2939 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2940 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2941 * sysdeps/s390/multiarch/memchr.c: Move to ...
2942 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2943 * sysdeps/s390/ifunc-memchr.h: New file.
2944 * sysdeps/s390/s390-64/memchr.S: Move to ...
2945 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2946 for 31/64bit and ifunc handling.
2947 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2948 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2949 * sysdeps/s390/s390-32/memchr.S: Likewise.
2950
2951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2952
2953 * sysdeps/s390/multiarch/Makefile
2954 (sysdep_routines): Remove strcspn variants.
2955 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2956 * sysdeps/s390/multiarch/ifunc-impl-list.c
2957 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2958 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2959 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2960 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2961 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2962 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2963 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2964 * sysdeps/s390/ifunc-strcspn.h: New file.
2965
2966 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2967
2968 * sysdeps/s390/multiarch/Makefile
2969 (sysdep_routines): Remove strpbrk variants.
2970 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2971 * sysdeps/s390/multiarch/ifunc-impl-list.c
2972 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2973 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2974 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2975 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2976 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2977 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2978 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2979 * sysdeps/s390/ifunc-strpbrk.h: New file.
2980
2981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2982
2983 * sysdeps/s390/multiarch/Makefile
2984 (sysdep_routines): Remove strspn variants.
2985 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2986 * sysdeps/s390/multiarch/ifunc-impl-list.c
2987 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2988 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2989 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2990 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2991 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2992 * sysdeps/s390/multiarch/strspn.c: Move to ...
2993 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2994 * sysdeps/s390/ifunc-strspn.h: New file.
2995
2996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2997
2998 * sysdeps/s390/multiarch/Makefile
2999 (sysdep_routines): Remove strrchr variants.
3000 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3001 * sysdeps/s390/multiarch/ifunc-impl-list.c
3002 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3003 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3004 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3005 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3006 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3007 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3008 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3009 * sysdeps/s390/ifunc-strrchr.h: New file.
3010
3011 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3012
3013 * sysdeps/s390/multiarch/Makefile
3014 (sysdep_routines): Remove strchrnul variants.
3015 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3016 * sysdeps/s390/multiarch/ifunc-impl-list.c
3017 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3018 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3019 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3020 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3021 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3022 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3023 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3024 * sysdeps/s390/ifunc-strchrnul.h: New file.
3025
3026 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3027
3028 * sysdeps/s390/multiarch/Makefile
3029 (sysdep_routines): Remove strchr variants.
3030 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3031 * sysdeps/s390/multiarch/ifunc-impl-list.c
3032 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3033 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3034 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3035 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3036 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3037 * sysdeps/s390/multiarch/strchr.c: Move to ...
3038 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3039 * sysdeps/s390/ifunc-strchr.h: New file.
3040
3041 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3042
3043 * sysdeps/s390/multiarch/Makefile
3044 (sysdep_routines): Remove strncmp variants.
3045 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3046 * sysdeps/s390/multiarch/ifunc-impl-list.c
3047 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3048 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3049 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3050 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3051 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3052 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3053 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3054 * sysdeps/s390/ifunc-strncmp.h: New file.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/multiarch/Makefile
3059 (sysdep_routines): Remove strcmp variants.
3060 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3061 * sysdeps/s390/multiarch/ifunc-impl-list.c
3062 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3063 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3064 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3065 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3066 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3067 * sysdeps/s390/ifunc-strcmp.h: New file.
3068 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3069 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3070 for 31/64bit and ifunc handling.
3071 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3072 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3073 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3074
3075 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3076
3077 * sysdeps/s390/multiarch/Makefile
3078 (sysdep_routines): Remove strncat variants.
3079 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3080 * sysdeps/s390/multiarch/ifunc-impl-list.c
3081 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3082 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3083 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3084 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3085 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3086 * sysdeps/s390/multiarch/strncat.c: Move to ...
3087 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3088 * sysdeps/s390/ifunc-strncat.h: New file.
3089
3090 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3091
3092 * sysdeps/s390/multiarch/Makefile
3093 (sysdep_routines): Remove strcat variants.
3094 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3095 * sysdeps/s390/multiarch/ifunc-impl-list.c
3096 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3097 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3098 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3099 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3100 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3101 * sysdeps/s390/multiarch/strcat.c: Move to ...
3102 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3103 * sysdeps/s390/ifunc-strcat.h: New file.
3104
3105 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3106
3107 * sysdeps/s390/multiarch/Makefile
3108 (sysdep_routines): Remove stpncpy variants.
3109 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3110 * sysdeps/s390/multiarch/ifunc-impl-list.c
3111 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3112 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3113 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3114 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3115 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3116 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3117 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3118 * sysdeps/s390/ifunc-stpncpy.h: New file.
3119
3120 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3121
3122 * sysdeps/s390/multiarch/Makefile
3123 (sysdep_routines): Remove strncpy variants.
3124 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3125 * sysdeps/s390/multiarch/ifunc-impl-list.c
3126 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3127 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3128 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3129 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3130 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3131 * sysdeps/s390/ifunc-strncpy.h: New file.
3132 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3133 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3134 and adjust ifunc handling.
3135 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3136 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3137 and adjust ifunc handling.
3138 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3139 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3140
3141 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3142
3143 * sysdeps/s390/multiarch/Makefile
3144 (sysdep_routines): Remove stpcpy variants.
3145 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3146 * sysdeps/s390/multiarch/ifunc-impl-list.c
3147 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3148 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3149 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3150 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3151 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3152 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3153 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3154 * sysdeps/s390/ifunc-stpcpy.h: New file.
3155
3156 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3157
3158 * sysdeps/s390/multiarch/Makefile
3159 (sysdep_routines): Remove strcpy variants.
3160 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3161 * sysdeps/s390/multiarch/ifunc-impl-list.c
3162 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3163 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3164 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3165 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3166 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3167 * sysdeps/s390/ifunc-strcpy.h: New file.
3168 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3169 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3170 for 31/64bit and ifunc handling.
3171 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3172 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3173 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3174
3175 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3176
3177 * sysdeps/s390/multiarch/Makefile
3178 (sysdep_routines): Remove strnlen variants.
3179 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3180 * sysdeps/s390/multiarch/ifunc-impl-list.c
3181 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3182 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3183 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3184 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3185 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3186 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3187 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3188 * sysdeps/s390/ifunc-strnlen.h: New file.
3189
3190 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3191
3192 * sysdeps/s390/multiarch/Makefile
3193 (sysdep_routines): Remove strlen variants.
3194 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3195 * sysdeps/s390/multiarch/ifunc-impl-list.c
3196 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3197 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3198 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3199 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3200 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3201 * sysdeps/s390/multiarch/strlen.c: Move to ...
3202 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3203 * sysdeps/s390/ifunc-strlen.h: New file.
3204
3205 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3206
3207 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3208 * sysdeps/s390/multiarch/ifunc-impl-list.c
3209 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3210 * sysdeps/s390/ifunc-memmem.h: New file.
3211 * sysdeps/s390/memmem.c: Likewise.
3212 * sysdeps/s390/memmem-c.c: Likewise.
3213 * sysdeps/s390/memmem-vx.c: Likewise.
3214
3215 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3216
3217 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3218 * sysdeps/s390/multiarch/ifunc-impl-list.c
3219 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3220 * sysdeps/s390/ifunc-strstr.h: New file.
3221 * sysdeps/s390/strstr.c: Likewise.
3222 * sysdeps/s390/strstr-c.c: Likewise.
3223 * sysdeps/s390/strstr-vx.c: Likewise.
3224
3225 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3226
3227 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3228 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3229 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3230 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3231 New defines.
3232 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3233 * sysdeps/s390/memmove-c.c: New file.
3234 * sysdeps/s390/memmove.c: Likewise.
3235 * sysdeps/s390/multiarch/ifunc-impl-list.c
3236 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3237
3238 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3239
3240 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3241 * sysdeps/s390/configure.ac: Add check for z13 support.
3242 * sysdeps/s390/configure: Regenerated.
3243
3244 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3245
3246 * sysdeps/s390/memcopy.h: New file.
3247
3248 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3249
3250 * sysdeps/s390/s390-32/bcopy.S: Remove.
3251 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3252
3253 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3254
3255 * sysdeps/s390/ifunc-memcpy.h: New File.
3256 * sysdeps/s390/memcpy.S: Move to ...
3257 * sysdeps/s390/memcpy-z900.S ... here.
3258 Move implementations from memcpy-s390x.s to here.
3259 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3260 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3261 Remove memcpy/mempcpy variants.
3262 * sysdeps/s390/Makefile (sysdep_routines):
3263 Add memcpy/mempcpy variants.
3264 * sysdeps/s390/multiarch/ifunc-impl-list.c
3265 (__libc_ifunc_impl_list): Adjust ifunc variants for
3266 memcpy and mempcpy.
3267 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3268 to ...
3269 * sysdeps/s390/memcpy.c: ... here.
3270 Adjust ifunc variants for memcpy.
3271 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3272 * sysdeps/s390/mempcpy.c: ... here.
3273 Adjust ifunc variants for mempcpy.
3274 * sysdeps/s390/mempcpy.S: Delete file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3279 * sysdeps/s390/memcpy.S: ... here.
3280 Adjust to be usable for 31/64bit.
3281 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3282 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3283 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3284 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3285 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3286 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3287 Adjust to be usable for 31/64bit.
3288 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3289 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3290 * sysdeps/s390/multiarch/memcpy.c: ... here.
3291 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3292
3293 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3294
3295 * sysdeps/s390/ifunc-memcmp.h: New File.
3296 * sysdeps/s390/memcmp.S: Move to ...
3297 * sysdeps/s390/memcmp-z900.S ... here.
3298 Move implementations from memcmp-s390x.s to here.
3299 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3300 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3301 Remove memcmp variants.
3302 * sysdeps/s390/Makefile (sysdep_routines):
3303 Add memcmp variants.
3304 * sysdeps/s390/multiarch/ifunc-impl-list.c
3305 (__libc_ifunc_impl_list): Adjust ifunc variants for
3306 memcmp.
3307 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3308 to ...
3309 * sysdeps/s390/memcmp.c: ... here.
3310 Adjust ifunc variants for memcmp.
3311
3312 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3313
3314 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3315 * sysdeps/s390/memcmp.S: ... here.
3316 Adjust to be usable for 31/64bit.
3317 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3318 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3319 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3320 Remove memcmp.
3321 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3322 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3323 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3324 Adjust to be usable for 31/64bit.
3325 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3326 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3327 * sysdeps/s390/multiarch/memcmp.c: ... here.
3328 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3329
3330 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3331
3332 * sysdeps/s390/s390-32/bzero.S: Delete file.
3333 * sysdeps/s390/s390-64/bzero.S: Likewise.
3334 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3335 * sysdeps/s390/bzero.c: New file.
3336 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3337 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3338 * sysdeps/s390/multiarch/ifunc-impl-list.c
3339 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3340
3341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3342
3343 * sysdeps/s390/ifunc-memset.h: New File.
3344 * sysdeps/s390/memset.S: Move to ...
3345 * sysdeps/s390/memset-z900.S ... here.
3346 Move implementations from memset-s390x.s to here.
3347 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3348 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3349 Remove memset variants.
3350 * sysdeps/s390/Makefile (sysdep_routines):
3351 Add memset variants.
3352 * sysdeps/s390/multiarch/ifunc-impl-list.c
3353 (__libc_ifunc_impl_list): Adjust ifunc variants for
3354 memset.
3355 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3356 to ...
3357 * sysdeps/s390/memset.c: ... here.
3358 Adjust ifunc variants for memset.
3359
3360 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3361
3362 * sysdeps/s390/s390-64/memset.S: Move to ...
3363 * sysdeps/s390/memset.S: ... here.
3364 Adjust to be usable for 31/64bit.
3365 * sysdeps/s390/s390-32/memset.S: Delete File.
3366 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3367 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3368 Remove memset.
3369 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3370 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3371 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3372 Adjust to be usable for 31/64bit.
3373 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3374 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3375 * sysdeps/s390/multiarch/memset.c: ... here.
3376 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3377
3378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3379
3380 * sysdeps/s390/multiarch/ifunc-resolve.h
3381 (s390_libc_ifunc_init, s390_libc_ifunc,
3382 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3383
3384 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3385
3386 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3387 * sysdeps/s390/configure.ac: Add check for z10 support.
3388 * sysdeps/s390/configure: Regenerated.
3389
3390 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3391
3392 * sysdeps/i386/atomic-machine.h: Merged with ...
3393 * sysdeps/x86_64/atomic-machine.h: To ...
3394 * sysdeps/x86/atomic-machine.h: This. New file.
3395
3396 2018-12-18 Florian Weimer <fweimer@redhat.com>
3397
3398 Rewrite locale/gen-translit.pl in Python.
3399 * locale/Makefile (generated): Add C-translit.h.
3400 (before-compile): Add $(objpfx)C-translit.h.
3401 (C-translit.h): Move to $(objpfx). Create target directory.
3402 Build using Python script.
3403 * locale/gen-translit.py: New file.
3404 * locale/gen-translit.pl: Remove file.
3405 * locale/C-translit.h.in: Change comment character to '#' for
3406 easier parsing without a C preprocessor.
3407 * locale/C-translit.h: Remove generated file.
3408 * manual/install.texi (Tools for Compilation): Do not mention
3409 C-translit.h.
3410 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3411 Remove locale/C-translit.h.
3412 * scripts/update-copyrights: Likewise.
3413 * INSTALL: Regenerate.
3414
3415 2018-12-18 Florian Weimer <fweimer@redhat.com>
3416
3417 [BZ #23995]
3418 * localedata/locales/bi_VU: Remove executable bit from file.
3419
3420 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3421
3422 * include/time.h
3423 (__localtime64): Add.
3424 * manual/maint.texi: Document Y2038 symbol handling.
3425 * time/localtime.c
3426 (__localtime64): Add.
3427 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3428
3429 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3430
3431 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3432 Do not clobber r12.
3433
3434 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3435 to allow extra macros from first or second sources.
3436 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3437 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3438 (tests-special): Add $(objpfx)tst-mman-consts.out.
3439 ($(objpfx)tst-mman-consts.out): New makefile target.
3440
3441 2018-12-17 Mao Han <han_mao@c-sky.com>
3442
3443 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3444 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3445 without stat64 system call support.
3446 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3447 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3448 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3449 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3450 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3451 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3452 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3453 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3454 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3455 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3456 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3457
3458 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3459
3460 regex: fix storage-exhaustion error
3461 [BZ #18040]
3462 * posix/regexec.c (get_subexp):
3463 Do not continue if storage is exhausted.
3464
3465 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3466
3467 regex: fix heap-use-after-free error
3468 [BZ #18040]
3469 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3470 https://debbugs.gnu.org/32592
3471 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3472 call extend_buffers which reallocates the re_string_t internal buffer.
3473 Local variable 'buf' was not updated in such case, resulting in
3474 use-after-free.
3475 * posix/regexec.c (get_subexp): Update 'buf' after call to
3476 get_subexp_sub.
3477
3478 2018-12-15 Florian Weimer <fweimer@redhat.com>
3479
3480 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3481 (minimum_stride_size): Use it.
3482 (support_blob_repeat_allocate): Likewise.
3483
3484 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3485
3486 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3487 definition.
3488 (acosh): Likewise.
3489 (atanh): Likewise.
3490
3491 2018-12-14 Florian Weimer <fweimer@redhat.com>
3492
3493 * manual/process.texi (Process Creation Concepts): Remove
3494 documentation of process (ID) lifetime. List more process
3495 creation functions. Reference Process Identification section.
3496 (Process Identification): Add information about process ID
3497 lifetime. Describe Linux thread/task IDs.
3498 * manual/signal.texi (Signaling Another Process): Mention that the
3499 signal is always sent to the process.
3500
3501 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3502
3503 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3504 and tst-ldbl-efgcvt.
3505 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3506 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3507 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3508 (fcvt_tests, output_error, output_r_error, do_test): Use the
3509 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3510 select the type of floating-point variables and arguments; to
3511 produce extra tests for double and conversion specifiers for
3512 printf; and to set the names of called functions.
3513 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3514 in tst-efgcvt-template.c.
3515 * misc/tst-ldbl-efgcvt.c: Likewise.
3516
3517 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3518
3519 * nss/Makefile (tst-nss-test3.out): New rule.
3520
3521 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3522
3523 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3524 clobber sp.
3525
3526 2018-12-13 fanjinke <fanjinke@hygon.cn>
3527
3528 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3529 "HygonGenuine".
3530
3531 2018-12-13 Andreas Schwab <schwab@suse.de>
3532
3533 [BZ #23861]
3534 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3535 (__pthread_rwlock_rdlock_full): Update expected value for
3536 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3537 * nptl/tst-rwlock-pwn.c: New file.
3538 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3539
3540 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3541
3542 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3543 definition.
3544
3545 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3546
3547 * benchtests/scripts/compare_bench.py (do_compare): write to
3548 stderr in casestat is not present.
3549 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3550 stderr in case timings field is not present. Also string showing
3551 the output filename goes into the stderr.
3552
3553 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3554
3555 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3556 and ZeroDivisorError exceptions.
3557 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3558 argument to loop through user provided statistics.
3559 * benchtests/scripts/compare_bench.py (main): Include the --stats
3560 argument.
3561
3562 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3563
3564 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3565 instead of return.
3566
3567 2018-12-12 Florian Weimer <fweimer@redhat.com>
3568
3569 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3570 clause to copyright header.
3571
3572 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3573
3574 [BZ #23614]
3575 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3576 registers saved in the stack frame.
3577 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3578 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3579
3580 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3581
3582 * include/bits/monetary-ldbl.h: New file.
3583 * include/bits/printf-ldbl.h: Likewise.
3584 * include/bits/stdio-ldbl.h: Likewise.
3585 * include/bits/stdlib-ldbl.h: Likewise.
3586 * include/bits/syslog-ldbl.h: Likewise.
3587 * include/bits/wchar-ldbl.h: Likewise.
3588
3589 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3590
3591 * libio/libio.h: Remove redirection for _IO_vfprintf.
3592
3593 2018-12-11 Andreas Schwab <schwab@suse.de>
3594
3595 * Makerules: Remove all references to abilist-pattern.
3596 (update-all-abi): Simplify find expression.
3597
3598 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3599
3600 [BZ #23961]
3601 * math/auto-libm-test-in: Add new test case.
3602 * math/auto-libm-test-out-pow: Regenerated.
3603 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3604
3605 2018-12-10 DJ Delorie <dj@redhat.com>
3606
3607 [BZ #23948]
3608 * support/test-container.c: Move postclean step to before we
3609 change namespaces.
3610
3611 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3612
3613 * scripts/gen-as-const.py (main): Handle --python option.
3614 * scripts/gen-py-const.awk: Remove.
3615 * Makerules (py-const-script): Use gen-as-const.py.
3616 ($(py-const)): Likewise.
3617 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3618 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3619 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3620 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3621 ~PTHREAD_MUTEX_NO_ELISION_NP.
3622 * manual/README.pretty-printers: Update reference to
3623 gen-py-const.awk.
3624
3625 * scripts/glibcextract.py: New file.
3626 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3627 or tempfile. Import glibcexctract.
3628 (compute_c_consts): Remove. Moved to glibcextract.py.
3629 (gen_test): Update reference to compute_c_consts.
3630 (main): Likewise.
3631 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3632 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3633 * sysdeps/unix/sysv/linux/Makefile
3634 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3635 Redirect stderr as well as stdout.
3636
3637 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3638
3639 [BZ #19767]
3640 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3641 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3642 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3643 ALWAYS_USE_VSYSCALL.
3644 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3645 ALWAYS_USE_VSYSCALL.
3646 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3647 ALWAYS_USE_VSYSCALL.
3648
3649 2018-12-10 Florian Weimer <fweimer@redhat.com>
3650
3651 [BZ #23972]
3652 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3653 offset instead of count for clarity. Fix typo in comment.
3654 (__old_getdents64): Keep track of previous offset. Use it to call
3655 handle_overflow.
3656 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3657 that d_off is never zero.
3658
3659 2018-12-10 Andreas Schwab <schwab@suse.de>
3660
3661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3662 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3664 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3665 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3666
3667 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3668
3669 * timezone/private.h: Update from tzcode 2018g.
3670 * timezone/tzfile.h: Likewise.
3671 * timezone/tzselect.ksh: Likewise.
3672 * timezone/zdump.c: Likewise.
3673 * timezone/zic.c: Likewise.
3674
3675 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3676
3677 [BZ #23490]
3678 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3679 (do_test): Adjust buffer size and fix format.
3680
3681 2018-12-07 DJ Delorie <dj@redhat.com>
3682
3683 [BZ #23907]
3684 * malloc/tst-tcfree3.c: New.
3685 * malloc/Makefile: Add it.
3686
3687 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3688
3689 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3690
3691 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3692
3693 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3694 used as a mask for the mode argument of __vfscanf_internal and
3695 __vfwscanf_internal.
3696 * stdio-common/vfscanf-internal.c
3697 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3698 (__strtof128_internal): Define to __wcstof128_internal.
3699 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3700 __strtof128_internal or __wcstof128_internal when the format of
3701 long double is the same as _Float128.
3702
3703 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3704
3705 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3706 * posix/confstr.c (confstr): Rename to __confstr.
3707 (__confstr): Add hidden def.
3708 (confstr): Add weak alias for __confstr.
3709 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3710 confstr.
3711
3712 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3713
3714 * NEWS: Mention getcpu.
3715 * include/sched.h (__getcpu): New libc_hidden_proto.
3716 * manual/resource.texi: Document getcpu.
3717 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3718 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3719 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3720 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3721 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3722 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3723 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3724 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3725 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3726 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3727 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3728 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3729 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3730 Likewise.
3731 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3732 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3733 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3735 Likewise.
3736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3737 Likewise.
3738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3739 Likewise.
3740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3741 Likewise.
3742 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3743 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3744 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3745 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3746 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3747 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3748 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3749 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3750 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3751 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3752 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3753 Also check getcpu.
3754
3755 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3756
3757 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3758 functions.
3759 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3760
3761 2018-12-07 Florian Weimer <fweimer@redhat.com>
3762
3763 [BZ #17405]
3764 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3765 * posix/Versions (GLIBC_2.29): Export
3766 posix_spawn_file_actions_addfchdir_np.
3767 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3768 * posix/spawn_faction_destroy.c
3769 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3770 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3771 and the field action.fchdir_action.
3772 * posix/tst-spawn-chdir.c (add_chdir): New function.
3773 (do_test): Add do_fchdir loop. Call add_chdir.
3774 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3775 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3776 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3777 posix_spawn_file_actions_addfchdir_np.
3778 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3779 Likewise.
3780 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3781 Likewise.
3782 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3783 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3784 Likewise.
3785 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3786 Likewise.
3787 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3788 Likewise.
3789 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3790 Likewise.
3791 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3792 Likewise.
3793 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3794 Likewise.
3795 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3796 (GLIBC_2.29): Likewise.
3797 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3798 (GLIBC_2.29): Likewise.
3799 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3800 (GLIBC_2.29): Likewise.
3801 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3802 (GLIBC_2.29): Likewise.
3803 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3804 Likewise.
3805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3806 (GLIBC_2.29): Likewise.
3807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3808 (GLIBC_2.29): Likewise.
3809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3810 (GLIBC_2.29): Likewise.
3811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3812 (GLIBC_2.29): Likewise.
3813 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3814 Likewise.
3815 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3816 Likewise.
3817 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3818 Likewise.
3819 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3820 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3821 Likewise.
3822 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3823 Likewise.
3824 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3825 Likewise.
3826 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3827 Likewise.
3828
3829 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3830
3831 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3832 trailing whitespace removed.
3833 * scripts/config.guess: Update to version 2018-11-28.
3834 * scripts/config.sub: Update to version 2018-11-28.
3835 * scripts/install-sh: Update to version 2018-03-11.20.
3836 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3837 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3838
3839 2018-12-07 Florian Weimer <fweimer@redhat.com>
3840
3841 [BZ #23927]
3842 CVE-2018-19591
3843 * inet/tst-if_index-long.c: New file.
3844 * inet/Makefile (tests): Add tst-if_index-long.
3845
3846 2018-12-07 Florian Weimer <fweimer@redhat.com>
3847
3848 * support/check.h (support_record_failure_is_failed): Declare.
3849 * support/descriptors.h: New file.
3850 * support/support_descriptors.c: Likewise.
3851 * support/tst-support_descriptors.c: Likewise.
3852 * support/support_record_failure.c
3853 (support_record_failure_is_failed): New function.
3854 * support/Makefile (libsupport-routines): Add support_descriptors.
3855 (tests): Add tst-support_descriptors.
3856
3857 2018-12-05 Zack Weinberg <zackw@panix.com>
3858 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3859
3860 * stdio-common/vfprintf-internal.c
3861 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3862 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3863 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3864 and __no_long_double.
3865 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3866 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3867 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3868 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3869 and __nldbl_*syslog* functions.
3870 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3871 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3872 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3873 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3874 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3875 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3876 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3877 (__nldbl_vwprintf, __nldbl_wprintf):
3878 Directly call the appropriate __v*printf_internal routine, passing
3879 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3880 variable names.
3881 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3882 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3883 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3884 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3885 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3886 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3887 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3888 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3889 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3890 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3891 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3892 (__nldbl_syslog, __nldbl_vsyslog):
3893 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3894 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3895 appropriate.
3896 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3897 appropriate.
3898
3899 2018-12-05 Zack Weinberg <zackw@panix.com>
3900 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3901
3902 [BZ #11319]
3903 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3904 Moved here from debug/vsprintf_chk.c.
3905 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3906 and completion logic for the strfile to match exactly what
3907 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3908 _IO_str_init_static_internal instead of maxlen-1.
3909 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3910 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3911 __vsprintf_internal.
3912
3913 * debug/vsprintf_chk.c (__vsprintf_chk)
3914 * debug/sprintf_chk.c (__sprintf_chk):
3915 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3916 'flags' argument is positive, and slen as maxlen. No need to lock
3917 the FILE and/or construct a temporary FILE. Minimize and normalize
3918 header inclusions and variable names. Do not libc_hidden_def anything.
3919
3920 * debug/asprintf_chk.c (__asprintf_chk)
3921 * debug/dprintf_chk.c (__dprintf_chk)
3922 * debug/fprintf_chk.c (__fprintf_chk)
3923 * debug/fwprintf_chk.c (__fwprintf_chk)
3924 * debug/printf_chk.c (__printf_chk)
3925 * debug/snprintf_chk.c (__snprintf_chk)
3926 * debug/swprintf_chk.c (__swprintf_chk)
3927 * debug/vasprintf_chk.c (__vasprintf_chk)
3928 * debug/vdprintf_chk.c (__vdprintf_chk)
3929 * debug/vfprintf_chk.c (__vfprintf_chk)
3930 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3931 * debug/vprintf_chk.c (__vprintf_chk)
3932 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3933 * debug/vswprintf_chk.c (__vswprintf_chk)
3934 * debug/vwprintf_chk.c (__vwprintf_chk)
3935 * debug/wprintf_chk.c (__wprintf_chk):
3936 Directly call the corresponding vxxprintf_internal function, passing
3937 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3938 the FILE and/or construct a temporary FILE. Minimize and normalize
3939 header inclusions and variable names. Do not libc_hidden_def anything.
3940
3941 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3942 __obstack_vprintf_internal.
3943 (__obstack_vprintf_chk): Convert into a wrapper that calls
3944 __obstack_vprintf_internal (these two functions already had the
3945 same code) and move to new file...
3946 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3947 file.
3948 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3949 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3950 * debug/Makefile (routines): Add vobprintf_chk.
3951
3952 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3953 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3954 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3955 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3956 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3957 (__nldbl___obstack_vfprintf_chk):
3958 Directly call the corresponding vxxprintf_internal function,
3959 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3960 duplicate comparison of slen with 0 or maxlen from the corresponding
3961 non-__nldbl function.
3962
3963 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3964 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3965 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3966 Remove libc_hidden_proto.
3967
3968 * stdio-common/vfprintf-internal.c
3969 (__vfprintf_internal, __vfwprintf_internal):
3970 Do not check _IO_FLAGS2_FORTIFY.
3971 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3972 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3973 a comment explaining why it has the maxlen argument.
3974 (_IO_acquire_lock_clear_flags2_fct): Remove.
3975 (_IO_acquire_lock_clear_flags2): Remove.
3976 (_IO_release_lock): Remove conditional statement which will
3977 now never execute.
3978 (_IO_acquire_lock): Remove variable which is now unused.
3979 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3980 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3981
3982 * stdio-common/Makefile (tests): Add tst-bz11319 and
3983 tst-bz11319-fortify2.
3984 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3985 * stdio-common/tst-bz11319-fortify2.c: New file.
3986 * stdio-common/tst-bz11319.c: Likewise.
3987
3988 2018-12-05 Zack Weinberg <zackw@panix.com>
3989 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3990
3991 * misc/syslog.c: Include libioP.h, not iolibio.h.
3992 (__vsyslog_internal): New function with the former body of
3993 __vsyslog_chk; takes mode_flags argument same as
3994 __v*printf_internal. Call __vfprintf_internal directly.
3995
3996 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3997 Remove libc_hidden_def.
3998 (__syslog, __syslog_chk): Use __vsyslog_internal.
3999 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4000
4001 * include/sys/syslog.h: Add multiple inclusion guard.
4002 Add prototype for __vsyslog_internal.
4003 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4004
4005 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4006 Use __vsyslog_internal.
4007
4008 2018-12-05 Zack Weinberg <zackw@panix.com>
4009 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4010
4011 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4012 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4013 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4014 New functions.
4015 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4016 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4017
4018 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4019 Include wctype.h here if COMPILE_WPRINTF is defined.
4020 Define __vfprintf_internal or __vfwprintf_internal, depending
4021 on COMPILE_WPRINTF.
4022 Temporarily, on entry to this function, update mode_flags
4023 according to the environmental settings corresponding to
4024 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4025 Throughout, check mode_flags instead of __ldbl_is_dbl and
4026 _IO_FLAGS2_FORTIFY on the destination FILE.
4027 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4028 Include vfprintf-internal.c. Don't include wctype.h.
4029 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4030 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4031 and vfprintf.
4032 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4033 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4034 and vfwprintf.
4035 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4036
4037 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4038 and add mode_flags argument; use __vfprintf_internal.
4039 (__vdprintf): New function. Alias vdprintf to this.
4040 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4041 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4042 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4043 (__obstack_printf): Use __obstack_printf_internal.
4044 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4045 public aliases __vsnprintf and vsnprintf.
4046 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4047 called internally.
4048 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4049 public aliases _IO_vsprintf and vsprintf.
4050 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4051 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4052 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4053 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4054 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4055
4056 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4057 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4058 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4059 * stdio-common/printf.c: Use __vfprintf_internal.
4060
4061 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4062 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4063 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4064
4065 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4066 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4067 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4068 __vfwprintf_internal.
4069
4070 * libio/libio.h: Remove libc_hidden_proto and declaration for
4071 _IO_vfprintf.
4072 Remove declaration of _IO_vfwprintf.
4073 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4074 _IO_vsprintf.
4075 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4076 _IO_obstack_printf.
4077 * include/stdio.h: Add prototype for __vasprintf.
4078 (__vsnprintf): Remove declaration, because there are no more
4079 internal calls.
4080 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4081 declaration, because there are no more internal calls.
4082
4083 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4084 __vsnprintf_internal, instead of _IO_vsnprintf.
4085 * argp/argp-help.c (__argp_error, __argp_failure): Use
4086 __vasprintf_internal, instead of _IO_vasprintf.
4087 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4088 redefine, because there are no more internal calls.
4089
4090 2018-12-05 Zack Weinberg <zackw@panix.com>
4091 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4092
4093 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4094 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4095 Include libio/strfile.h instead of libioP.h.
4096 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4097 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4098 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4099 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4100 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4101 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4102 necessary. Do not set __no_long_double. Normalize variable names.
4103 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4104 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4105 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4106 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4107 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4108 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4109 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4110 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4111 Do not set __no_long_double. Normalize variable names.
4112
4113 2018-12-05 Zack Weinberg <zackw@panix.com>
4114 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4115
4116 * stdio-common/isoc99_scanf.c
4117 * stdio-common/isoc99_fscanf.c
4118 * stdio-common/isoc99_sscanf.c
4119 * stdio-common/isoc99_vscanf.c
4120 * stdio-common/isoc99_vfscanf.c
4121 * stdio-common/isoc99_vsscanf.c
4122 * wcsmbs/isoc99_wscanf.c
4123 * wcsmbs/isoc99_fwscanf.c
4124 * wcsmbs/isoc99_swscanf.c
4125 * wcsmbs/isoc99_vwscanf.c
4126 * wcsmbs/isoc99_vfwscanf.c
4127 * wcsmbs/isoc99_vswscanf.c:
4128 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4129 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4130 No need to lock and unlock the FILE passed to that function.
4131
4132 * stdio-common/vfscanf-internal.c
4133 (__vfscanf_internal, __vfwscanf_internal):
4134 Don't look at _IO_FLAGS2_SCANF_STD.
4135 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4136 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4137 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4138
4139 2018-12-05 Zack Weinberg <zackw@panix.com>
4140 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4141
4142 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4143 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4144 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4145 * libio/strfile.h: Add multiple inclusion guard.
4146 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4147
4148 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4149 consistency with the other version of this file.
4150 (ldbl_compat_symbol): New macro.
4151 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4152 New macro.
4153
4154 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4155 Define __vfscanf_internal or __vfwscanf_internal, depending on
4156 COMPILE_WSCANF; don't define any other public symbols.
4157 Remove errval and code to set errp.
4158 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4159 as the mode_flags argument.
4160 (encode_error, conv_error, input_error): Don't set errval.
4161 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4162 Include vfscanf-internal.c.
4163 * stdio-common/vfscanf.c: New file defining the public entry
4164 point vfscanf, which calls __vfscanf_internal.
4165 * stdio-common/vfwscanf.c: New file defining the public entry
4166 point vfwscanf, which calls __vfwscanf_internal.
4167
4168 * stdio-common/iovfscanf.c: New file.
4169 * stdio-common/iovfwscanf.c: Likewise.
4170
4171 * stdio-common/Makefile (routines): Add vfscanf-internal,
4172 vfwscanf-internal, iovfscanf, iovfwscanf.
4173 * stdio-common/Versions: Mention GLIBC_2.29, so that
4174 it can be used in SHLIB_COMPAT expressions.
4175 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4176 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4177 Call __vfscanf_internal, instead of _IO_vfscanf.
4178 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4179 _IO_vfscanf.
4180 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4181 _IO_vfwscanf.
4182
4183 * libio/iovsscanf.c: Clean up includes, when possible. Use
4184 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4185 __vfscanf_internal or __vfwscanf_internal directly.
4186 * libio/iovswscanf.c: Likewise.
4187 * libio/swscanf.c: Likewise.
4188 * libio/vscanf.c: Likewise.
4189 * libio/vwscanf.c: Likewise.
4190 * libio/wscanf.c: Likewise.
4191 * stdio-common/isoc99_fscanf.c: Likewise.
4192 * stdio-common/isoc99_scanf.c: Likewise.
4193 * stdio-common/isoc99_sscanf.c: Likewise.
4194 * stdio-common/isoc99_vfscanf.c: Likewise.
4195 * stdio-common/isoc99_vscanf.c: Likewise.
4196 * stdio-common/isoc99_vsscanf.c: Likewise.
4197 * stdio-common/scanf.c: Likewise.
4198 * stdio-common/sscanf.c: Likewise.
4199 * wcsmbs/isoc99_fwscanf.c: Likewise.
4200 * wcsmbs/isoc99_swscanf.c: Likewise.
4201 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4202 * wcsmbs/isoc99_vswscanf.c: Likewise.
4203 * wcsmbs/isoc99_vwscanf.c: Likewise.
4204 * wcsmbs/isoc99_wscanf.c: Likewise.
4205
4206 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4207
4208 * include/time.h
4209 (__tz_compute): Replace time_t with __time64_t.
4210 (__tz_convert): Replace time_t* with __time64_t.
4211 (__offtime): Replace time_t* with __time64_t.
4212 * time/gmtime.c
4213 (__gmtime_r): Adjust call to __tz_convert.
4214 (gmtime): Likewise.
4215 * time/localtime.c
4216 (__localtime_r): Likewise.
4217 (localtime): Likewise.
4218 * time/offtime.c: Replace time_t with __time64_t.
4219 * time/tzset.c: Likewise.
4220
4221 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4222
4223 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4224 dynamic linker unless [$(run-built-tests) = yes].
4225
4226 2018-12-03 DJ Delorie <dj@delorie.com>
4227
4228 * support/test-container.c (check_for_unshare_hints): New.
4229 (main): Call it if unshare fails. Add support for "su" scriptlet
4230 command.
4231
4232 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4233
4234 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4235 'START' to indicate that start text should be output.
4236 (gen_test): Likewise.
4237 (main): Generate 'START' for first symbol or '--' line, or at end
4238 of input if not previously generated.
4239
4240 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4241
4242 [BZ #19767]
4243 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4244 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4245 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4246 ALWAYS_USE_VSYSCALL.
4247
4248 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4249
4250 [BZ #23913]
4251 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4252 new_argv by one.
4253
4254 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4255
4256 [BZ #23923]
4257 * locale/programs/localedef.c: Declare boolean hard_links default true.
4258 (options): Add --no-hard-links option.
4259 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4260 * locale/programs/localedef.h: Declare prototype for hard_links.
4261 * locale/programs/locfile.c (write_locale_data): Don't use hard
4262 links if hard_links is false.
4263
4264 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4265
4266 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4267 cpu_features_basic.
4268 (__cache_sysconf): Likewise.
4269 (init_cacheinfo): Likewise.
4270 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4271 populate COMMON_CPUID_INDEX_80000007 and
4272 COMMON_CPUID_INDEX_80000008.
4273 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4274 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4275 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4276 (init_cpu_features): Use _Static_assert on
4277 index_arch_Fast_Unaligned_Load.
4278 __get_cpuid_registers and __get_arch_feature. Updated for
4279 cpu_features_basic. Set stepping in cpu_features.
4280 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4281 (FEATURE_INDEX_2): New.
4282 (FEATURE_INDEX_MAX): Changed to enum.
4283 (COMMON_CPUID_INDEX_D_ECX_1): New.
4284 (COMMON_CPUID_INDEX_80000007): Likewise.
4285 (COMMON_CPUID_INDEX_80000008): Likewise.
4286 (cpuid_registers): Likewise.
4287 (cpu_features_basic): Likewise.
4288 (CPU_FEATURE_USABLE): Likewise.
4289 (bit_arch_XXX_Usable): Likewise.
4290 (cpu_features): Use cpuid_registers and cpu_features_basic.
4291 (bit_arch_XXX): Reweritten.
4292 (bit_cpu_XXX): Likewise.
4293 (index_cpu_XXX): Likewise.
4294 (reg_XXX): Likewise.
4295 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4296 <support/check.h>.
4297 (CHECK_CPU_FEATURE): New.
4298 (CHECK_CPU_FEATURE_USABLE): Likewise.
4299 (cpu_kinds): Likewise.
4300 (do_test): Print vendor, family, model and stepping. Check
4301 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4302 (TEST_FUNCTION): Removed.
4303 Include <support/test-driver.c> instead of
4304 "../../test-skeleton.c".
4305 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4306 Check POPCNT instead of POPCOUNT.
4307 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4308
4309 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4310
4311 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4312 there is no element in `consts'.
4313
4314 2018-12-01 Florian Weimer <fweimer@redhat.com>
4315
4316 * support/support_capture_subprocess.c
4317 (support_capture_subprocess): Check that pipe descriptors have
4318 expected values. Close original pipe descriptors in subprocess.
4319
4320 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4321
4322 [BZ #23032]
4323 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4324 attr with __pthread_default_barrierattr.
4325 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4326 attr with __pthread_default_condattr.
4327 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4328 attr with __pthread_default_mutexattr.
4329 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4330 attr with __pthread_default_rwlockattr.
4331
4332 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4333
4334 * manual/tunables.texi (POSIX Thread Tunables): New node.
4335 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4336 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4337 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4338 __pthread_tunables_init.
4339 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4340 (max_adaptive_count): Define.
4341 * nptl/pthread_mutex_conf.c: New file.
4342 * nptl/pthread_mutex_conf.h: New file.
4343 * sysdeps/generic/adaptive_spin_count.h: New file.
4344 * sysdeps/nptl/dl-tunables.list: New file.
4345 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4346 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4347 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4348 Likewise.
4349
4350 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4351
4352 [BZ #20544]
4353 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4354 * stdlib/on_exit.c (__on_exit): Likewise.
4355 * stdlib/Makefile (tests): Add tst-bz20544.
4356 * stdlib/tst-bz20544.c: New test.
4357
4358 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4359
4360 [BZ #19767]
4361 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4362 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4363 New.
4364
4365 2018-11-30 Florian Weimer <fweimer@redhat.com>
4366
4367 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4368 Extend error logging.
4369 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4370 symbol.
4371
4372 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4373
4374 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4375 __sigismember instead of sigismember.
4376 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4377 cancel_handler): New definitions.
4378 (do_system): Use posix_spawn instead of fork and execl and remove
4379 reentracy code.
4380 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4381 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4382 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4383 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4384 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4385 * sysdeps/unix/sysv/linux/system.c: Likewise.
4386
4387 [BZ #22834]
4388 [BZ #17490]
4389 * NEWS: Add new semantic for atfork with popen and system.
4390 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4391 fork and execl.
4392
4393 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4394
4395 [BZ #23690]
4396 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4397 modification order when accessing reloc_result->addr.
4398 * include/link.h (reloc_result): Add field init.
4399 * nptl/Makefile (tests): Add tst-audit-threads.
4400 (modules-names): Add tst-audit-threads-mod1 and
4401 tst-audit-threads-mod2.
4402 Add rules to build tst-audit-threads.
4403 * nptl/tst-audit-threads-mod1.c: New file.
4404 * nptl/tst-audit-threads-mod2.c: Likewise.
4405 * nptl/tst-audit-threads.c: Likewise.
4406 * nptl/tst-audit-threads.h: Likewise.
4407
4408 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4409
4410 * scripts/gen-as-const.py: New file.
4411 * scripts/gen-as-const.awk: Remove.
4412 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4413 gen-as-const.py.
4414 ($(objpfx)test-as-const-%.c): Likewise.
4415
4416 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4417
4418 * elf/dl-exception.c: Include <_itoa.h>.
4419
4420 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4421
4422 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4423 returned by __f_setlk.
4424
4425 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4426 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4427
4428 * elf/Makefile (tests-internal): Add tst-create_format1.
4429 * elf/dl-exception.c (_dl_exception_create_format): Support
4430 %x, %lx and %zx.
4431 * elf/tst-create_format1.c: New file.
4432
4433 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4434
4435 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4436 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4437 gnulib.)
4438 * argp/argp-help.c (__argp_failure): Likewise.
4439
4440 2018-11-29 Mao Han <han_mao@c-sky.com>
4441
4442 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4443 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4444 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4445 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4446 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4447 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4448 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4449 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4450 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4451 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4452 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4453 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4454 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4455 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4456 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4457 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4458 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4459 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4460 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4461 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4462 (R_CKCORE_TLS_TPOFF32): New defines.
4463
4464 2018-11-29 Florian Weimer <fweimer@redhat.com>
4465
4466 * posix/Makefile (before-compile): Remove testcases.h and
4467 ptestcases.h.
4468 (generated): Add testcases.h and ptestcases.h.
4469 (testcases.h, ptestcases.h): Move to $(objpfx).
4470 (runtests.o): Add dependency on testcases.h.
4471 (runptests.o): Add dependency on ptestcases.h.
4472 * posix/testcases.h, posix/ptestcases.h: Remove files.
4473 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4474 not touch posix/testcases.h and posix/ptestcases.h.
4475
4476 2018-11-28 Florian Weimer <fweimer@redhat.com>
4477
4478 support: Add signal support to support_capture_subprocess_check.
4479 * support/capture_subprocess.h (support_capture_subprocess_check):
4480 Adjust comment and rename parameter.
4481 * support/support_capture_subprocess_check.c
4482 (print_actual_status): New function.
4483 (support_capture_subprocess_check): Support negative
4484 status_or_signal. Call print_actual_status.
4485 * support/tst-support_capture_subprocess.c (do_test): Call
4486 support_capture_subprocess_check.
4487 * libio/tst-vtables-common.c (termination_status)
4488 (init_termination_status): Remove.
4489 (check_for_termination): Adjust support_capture_subprocess_check
4490 call.
4491 (do_test): Remove call to init_termination_status.
4492
4493 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4494
4495 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4496 source directory instead of a copy.
4497 (CommandList.create_copy_dir): Remove.
4498
4499 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4500
4501 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4502
4503 2018-11-28 Florian Weimer <fweimer@redhat.com>
4504
4505 * support/support.h (support_quote_string): Do not use str
4506 parameter name.
4507
4508 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4509
4510 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4511 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4512
4513 2018-11-27 Florian Weimer <fweimer@redhat.com>
4514
4515 * support/support.h (support_quote_string): Declare.
4516 * support/support_quote_string.c: New file.
4517 * support/tst-support_quote_string.c: Likewise.
4518 * support/Makefile (libsupport-routines): Add
4519 support_quote_string.
4520 (tests): Add tst-support_quote_string.
4521
4522 2018-11-27 Florian Weimer <fweimer@redhat.com>
4523
4524 [BZ #23927]
4525 CVE-2018-19591
4526 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4527 descriptor leak in case of ENODEV error.
4528
4529 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4530
4531 [BZ #19767]
4532 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4533 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4534 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4535
4536 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4537
4538 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4539 Error for unknown lines.
4540
4541 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4542
4543 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4544 Touch additional files.
4545
4546 2018-11-26 Florian Weimer <fweimer@redhat.com>
4547
4548 [BZ #23907]
4549 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4550 double-frees.
4551
4552 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4553
4554 [BZ #19767]
4555 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4556 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4557 SHARED. Include sysdep.h.
4558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4559 ALWAYS_USE_VSYSCALL.
4560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4561 ALWAYS_USE_VSYSCALL.
4562
4563 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4564
4565 [BZ #19767]
4566 * nptl/Makefile (tests-static): Add tst-cond11-static.
4567 (tests): Likewise.
4568 * nptl/tst-cond11-static.c: New File.
4569 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4570 tst-affinity-static.
4571 (tests): Likewise.
4572 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4573 instead of SHARED.
4574 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4575 (USE_VSYSCALL): Likewise.
4576 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4577 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4578 instead of SHARED.
4579 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4580 SHARED.
4581 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4582 New.
4583
4584 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4585
4586 [BZ #23915]
4587 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4588 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4589 Undefine.
4590
4591 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4592
4593 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4594 (tst-cet-legacy-1a-ARGS): New.
4595 ($(objpfx)tst-cet-legacy-1a): New target.
4596 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4597
4598 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4599
4600 * conform/conformtest.py (CompileSubTest.__init__): Set
4601 self.run_early to False.
4602 (ExecuteSubTest.__init__): Likewise.
4603 (HeaderTests.run): Try running all non-optional, non-XFAILed
4604 compilation tests in a single execution of the compiler.
4605
4606 * conform/conformtest.py (CompileSubTest): New class.
4607 (ExecuteSubTest): Likewise.
4608 (ElementTest.run): Rename to gen_subtests. Append tests to
4609 self.subtests instead of running them.
4610 (ConstantTest.run): Likewise.
4611 (SymbolTest.run): Likewise.
4612 (TypeTest.run): Likewise.
4613 (TagTest.run): Likewise.
4614 (FunctionTest.run): Likewise.
4615 (VariableTest.run): Likewise.
4616 (MacroFunctionTest.run): Likewise.
4617 (MacroStrTest.run): Likewise.
4618 (HeaderTests.handle_test_line): Generate subtests for tests.
4619 (HeaderTests.run): Run subtests for tests.
4620
4621 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4622
4623 * math/Versions (GLIBC_2.29): Add pow.
4624 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4625 symbol.
4626 * math/w_pow.c: New file.
4627 * sysdeps/i386/fpu/w_pow.c: New file.
4628 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4629 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4630 and add necessary aliases.
4631 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4632 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4633 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4634 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4635 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4636 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4637 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4638 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4639 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4640 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4641 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4642 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4643 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4644 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4645 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4650 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4652 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4653 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4654 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4655 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4656 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4657 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4658 __pow.
4659 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4660 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4661 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4662
4663 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4664
4665 * math/Versions (GLIBC_2.29): Add log2.
4666 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4667 symbol.
4668 * math/w_log2.c: New file.
4669 * sysdeps/i386/fpu/w_log2.c: New file.
4670 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4671 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4672 and add necessary aliases.
4673 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4674 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4675 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4676 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4677 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4678 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4679 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4680 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4681 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4682 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4683 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4684 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4685 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4686 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4687 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4692 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4693 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4694 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4695 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4696 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4697 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4698 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4699
4700 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4701
4702 * math/Versions (GLIBC_2.29): Add log.
4703 * math/w_log_compat.c (__log_compat): Change to versioned compat
4704 symbol.
4705 * math/w_log.c: New file.
4706 * sysdeps/i386/fpu/w_log.c: New file.
4707 * sysdeps/ia64/fpu/e_log.S: Update.
4708 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4709 and add necessary aliases.
4710 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4711 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4712 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4713 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4714 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4715 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4716 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4717 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4718 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4719 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4720 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4721 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4722 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4723 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4724 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4729 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4730 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4731 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4732 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4733 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4734 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4735 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4736 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4737 __log.
4738 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4739 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4740 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4741 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4742
4743 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4744
4745 * math/Versions (GLIBC_2.29): Add exp and exp2.
4746 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4747 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4748 * math/w_exp_compat.c (__exp_compat): Likewise.
4749 * math/w_exp.c: New file.
4750 * math/w_exp2.c: New file.
4751 * sysdeps/i386/fpu/w_exp.c: New file.
4752 * sysdeps/i386/fpu/w_exp2.c: New file.
4753 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4754 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4755 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4756 and add necessary aliases.
4757 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4758 and add necessary aliases.
4759 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4760 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4761 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4762 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4763 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4764 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4765 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4766 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4767 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4768 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4769 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4770 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4771 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4772 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4773 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4774 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4775 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4780 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4781 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4782 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4783 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4784 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4785 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4786 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4787 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4788 (__ieee754_exp): Rename to __exp.
4789 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4790 (__ieee754_exp): Rename to __exp.
4791 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4792 (__ieee754_exp): Rename to __exp.
4793 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4794 __exp.
4795 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4796
4797 2018-11-20 DJ Delorie <dj@redhat.com>
4798
4799 * malloc/malloc.c (tcache_entry): Add key field.
4800 (tcache_put): Set it.
4801 (tcache_get): Likewise.
4802 (_int_free): Check for double free in tcache.
4803 * malloc/tst-tcfree1.c: New.
4804 * malloc/tst-tcfree2.c: New.
4805 * malloc/Makefile: Run the new tests.
4806 * manual/probes.texi: Document memory_tcache_double_free probe.
4807
4808 * dlfcn/dlerror.c (check_free): Prevent double frees.
4809
4810 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4811
4812 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4813
4814 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4815
4816 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4817 in tests. Use names for format arguments.
4818 (ConstantTest.run): Likewise.
4819 (SymbolTest.run): Likewise.
4820 (TypeTest.run): Likewise.
4821 (TagTest.run): Likewise.
4822 (FunctionTest.run): Likewise.
4823 (VariableTest.run): Likewise.
4824 (MacroFunctionTest.run): Likewise.
4825 (MacroStrTest.run): Likewise.
4826 (HeaderTests.__init__): Set self.num_tests.
4827 (HeaderTests.handle_test_line): Set test.num. Increment
4828 self.num_tests.
4829
4830 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4831
4832 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4833 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4834 SEEK_SET.
4835
4836 2018-11-19 Mao Han <han_mao@c-sky.com>
4837
4838 * scripts/config.guess: Update to version 2018-08-29.
4839 * scripts/config.sub: Update to version 2018-08-29.
4840
4841 2018-11-19 Florian Weimer <fweimer@redhat.com>
4842
4843 support: Print timestamps in timeout handler.
4844 * support/support_test_main.c (print_timestamp): New function.
4845 (signal_handler): Use it to print the termination time and the
4846 time of the last write to standard output.
4847
4848 2018-11-16 Zack Weinberg <zackw@panix.com>
4849 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4850
4851 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4852 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4853 argument.
4854 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4855 and add flags argument. Check flags instead of __ldbl_is_dbl when
4856 deciding whether to set is_long_double.
4857 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4858 passing zero for flags argument.
4859 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4860
4861 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4862 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4863 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4864 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4865 variable names. Remove libc_hidden_def/libc_hidden_proto from
4866 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4867 longer called from within the library.
4868 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4869 for __nldbl___vstrfmon_l, declare it explicitly.
4870
4871 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4872
4873 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4874
4875 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4876 macros
4877 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4878 F_SETLK64, F_SETLKW64, respectively.
4879 * sysdeps/mach/hurd/f_setlk.c: New file.
4880 * sysdeps/mach/hurd/f_setlk.h: New file.
4881 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4882 f_setlk.
4883 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4884 (__libc_fcntl): Move non-flock operations to...
4885 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4886 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4887
4888 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4889
4890 mktime: DEBUG_MKTIME cleanup
4891 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4892 And it’s no longer needed now that glibc and Gnulib both have
4893 their own testing mechanisms for mktime.
4894 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4895
4896 mktime: fix non-EOVERFLOW errno handling
4897 [BZ#23789]
4898 mktime was not properly reporting failures when the underlying
4899 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4900 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4901 The problem could happen on non-glibc platforms, with Gnulib.
4902 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4903 (tm_diff): ... this simpler function, which does not change errno.
4904 All callers changed to deal with errno themselves.
4905 (ranged_convert, __mktime_internal): Return failure immediately if
4906 the underlying function reports any failure other than EOVERFLOW.
4907 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4908 gap code fails.
4909
4910 mktime: fix bug with Y2038 DST transition
4911 [BZ#23789]
4912 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4913 mishandle a DST transition that jumps over the Y2038 boundary.
4914 No such DST transitions are known so this is only a theoretical
4915 bug, but we might as well do things right.
4916
4917 mktime: make more room for overflow
4918 [BZ#23789]
4919 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4920 This is so that we can add tm_diff results to a previous guess,
4921 which will be useful in a later patch.
4922
4923 mktime: simplify offset guess
4924 [BZ#23789]
4925 * time/mktime.c (__mktime_internal): Omit excess precision.
4926
4927 mktime: new test for mktime failure
4928 [BZ#23789]
4929 Based on a test suggested by Albert Aribaud in:
4930 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4931 * time/Makefile (tests): Add bug-mktime4.
4932 * time/bug-mktime4.c: New file.
4933
4934 mktime: fix EOVERFLOW bug
4935 [BZ#23789]
4936 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4937 Include libc-config.h, not config.h, for __set_errno.
4938 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4939
4940 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4941
4942 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4943 __attribute_copy__ to copy attributes from name. Drop static qualifier
4944 to avoid warnings about leaf attribute not having effect on static
4945 functions.
4946
4947 2018-11-13 Florian Weimer <fweimer@redhat.com>
4948
4949 * malloc/malloc.c (fastbin_push_entry): New function.
4950 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4951 (REMOVE_FB): Remove macro.
4952 (_int_malloc): Use fastbin_pop_entry and reindent.
4953 (_int_free): Use fastbin_push_entry.
4954 (malloc_consolidate): Use atomic_exchange_acquire.
4955
4956 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4957
4958 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4959 alias attribute, not with strong_alias.
4960
4961 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4962 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4963 with additional parameter thread.
4964 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4965 in terms of __hidden_ver2.
4966 (hidden_tls_def): New macro.
4967 (libc_hidden_tls_def): Likewise.
4968 (rtld_hidden_tls_def): Likewise.
4969 (libm_hidden_tls_def): Likewise.
4970 (libmvec_hidden_tls_def): Likewise.
4971 (libresolv_hidden_tls_def): Likewise.
4972 (librt_hidden_tls_def): Likewise.
4973 (libdl_hidden_tls_def): Likewise.
4974 (libnss_files_hidden_tls_def): Likewise.
4975 (libnsl_hidden_tls_def): Likewise.
4976 (libnss_nisplus_hidden_tls_def): Likewise.
4977 (libutil_hidden_tls_def): Likewise.
4978 (libutil_hidden_tls_def): Likweise.
4979 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4980 libc_hidden_tls_def.
4981 (__sim_disabled_exceptions_thread): Likewise.
4982 (__sim_round_mode_thread): Likewise.
4983
4984 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4985 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4986 copy attributes from name.
4987
4988 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4989
4990 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4991 Use __attribute_copy__ to copy attributes from name.
4992
4993 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4994 with __hidden_ver1 call.
4995 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4996 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4997 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4998 (__cosf): Do not declare here.
4999 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5000 (__sincosf): Do not declare here.
5001 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5002 (__sinf): Do not declare here.
5003
5004 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5005 (__BIG_ENDIAN): Likewise.
5006 (__BYTE_ORDER): Likewise.
5007 (strong_alias): Likewise.
5008 (_strong_alias): Likewise.
5009
5010 2018-11-12 Florian Weimer <fweimer@redhat.com>
5011
5012 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5013 function. Move after the definition of in_smallbin_range. Do not
5014 use __builtin_expect for paths that lead to a noreturn function.
5015 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5016 because it is unclear whether this is in fact an unlikely
5017 condition.
5018 (_int_malloc, _int_free): Adjust.
5019 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5020 variables.
5021 * malloc/arena.c (heap_trim): Likewise.
5022
5023 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5024
5025 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5026 it, free it if needed.
5027 (reauthenticate): Test and use ccwdir.
5028 (child_init_port): In non-resetids case, test and use ccwdir.
5029 (child_chdir): New nested function to set ccwdir.
5030 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5031 * hurd/hurd/port.h (_hurd_port_move): New function.
5032 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5033 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5034 * hurd/Versions (_hurd_port_move): Export function.
5035 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5036 symbol.
5037 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5038 of dtablesize for allocating dtable_cloexec.
5039
5040 2018-11-09 Martin Sebor <msebor@redhat.com>
5041
5042 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5043 it's already defined.
5044 (_strong_alias): Use __attribute_copy__.
5045 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5046 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5047 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5048 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5049 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5050 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5051 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5052 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5053 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5054 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5055 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5056 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5057 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5058 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5059 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5060 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5061 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5062 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5063 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5064
5065 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5066
5067 * misc/tst-efgcvt.c: Include support/check.h and
5068 support/test-driver.c. Do not include test-skeleton.c.
5069 (error_count): Remove.
5070 (output_error): Replace increments to error_count with calls to
5071 support_record_failure.
5072 (output_r_error): Likewise.
5073 (special): Likewise.
5074 (do_test): Unconditionally return zero.
5075 (TEST_FUNCTION): Remove.
5076
5077 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5078
5079 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5080 not $(@D)/scratch.
5081 ($(linknamespace-header-tests)): Likewise.
5082
5083 * conform/conformtest.py: New file.
5084 * conform/conformtest.pl: Remove.
5085 * conform/GlibcConform.pm: Likewise.
5086 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5087 (KEYWORDS_C99): Likewise.
5088 (KEYWORDS): Likewise.
5089 * conform/Makefile ($(conformtest-header-tests)): Use
5090 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5091 option. Use --header instead of --headers.
5092 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5093 function entries.
5094 * conform/data/spawn.h-data: Likewise.
5095 * conform/data/fcntl.h-data (openat): Add space after function
5096 name.
5097 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5098 (wcscasecmp_l): Likewise.
5099 * conform/data/termios.h-data (c_cc): Add space after element
5100 name.
5101
5102 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5103
5104 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5105 instead of manually comparing and reporting mismatching strings.
5106 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5107 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5108
5109 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5110
5111 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5112 __ASSUME_SOCKETCALL.
5113 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5114 (__ASSUME_SOCKETCALL): Remove.
5115 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5116 (__ASSUME_SOCKETCALL): Likewise.
5117 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5118 (__ASSUME_SOCKETCALL): Likewise.
5119 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5120 (__ASSUME_SOCKETCALL): Likewise.
5121 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5122 (__ASSUME_SOCKETCALL): Likewise.
5123 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5124 (__ASSUME_SOCKETCALL): Likewise.
5125 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5126 (__ASSUME_SOCKETCALL): Likewise.
5127
5128 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5129
5130 [BZ #23509]
5131 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5132 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5133 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5134 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5135 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5136 lc_unknown.
5137
5138 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5139
5140 [BZ #17630]
5141 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5142
5143 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5144
5145 [BZ #23867]
5146 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5147 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5148 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5149 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5150
5151 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5152
5153 * support/support_test_compare_string.c
5154 (support_test_compare_string): Fix printf format.
5155
5156 2018-11-07 Florian Weimer <fweimer@redhat.com>
5157
5158 Implement TEST_COMPARE_STRING.
5159 * support/check.h (TEST_COMPARE_STRING): Define.
5160 (support_test_compare_string): Declare.
5161 * support/Makefile (libsupport-routines): Add
5162 support_test_compare_string.
5163 (tests): Add tst-test_compare_string.
5164 * support/support_test_compare_string.c: New file.
5165 * support/tst-test_compare_string.c: Likewise.
5166
5167 2018-11-07 Andreas Schwab <schwab@suse.de>
5168
5169 [BZ #23864]
5170 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5171 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5172 Undef.
5173
5174 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5175
5176 [BZ #23862]
5177 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5178 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5179 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5180 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5181 Likewise.
5182
5183 2018-11-06 Florian Weimer <fweimer@redhat.com>
5184
5185 [BZ #17405]
5186 * posix/Makefile (routines): Add spawn_faction_addchdir.
5187 (tests): Add tst-spawn-chdir.
5188 * posix/Versions (GLIBC_2.29): Add
5189 posix_spawn_file_actions_addchdir_np.
5190 * posix/spawn_faction_addchdir.c: New file.
5191 * posix/spawn_faction_destroy.c
5192 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5193 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5194 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5195 chdir_action.
5196 * posix/tst-spawn-chdir.c: New file.
5197 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5198 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5199 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5200 posix_spawn_file_actions_addchdir_np.
5201 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5202 Likewise.
5203 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5204 Likewise.
5205 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5206 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5207 Likewise.
5208 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5209 Likewise.
5210 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5211 Likewise.
5212 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5213 Likewise.
5214 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5215 Likewise.
5216 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5217 Likewise.
5218 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5219 (GLIBC_2.29): Likewise.
5220 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5221 (GLIBC_2.29): Likewise.
5222 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5223 (GLIBC_2.29): Likewise.
5224 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5225 (GLIBC_2.29): Likewise.
5226 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5227 Likewise.
5228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5229 (GLIBC_2.29): Likewise.
5230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5231 (GLIBC_2.29): Likewise.
5232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5233 (GLIBC_2.29): Likewise.
5234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5235 (GLIBC_2.29): Likewise.
5236 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5237 Likewise.
5238 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5239 Likewise.
5240 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5241 Likewise.
5242 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5243 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5244 Likewise.
5245 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5246 Likewise.
5247 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5248 Likewise.
5249 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5250 Likewise.
5251
5252 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5253
5254 * misc/Makefile (tests): Add tst-ldbl-error.
5255 * misc/tst-ldbl-error.c: New file.
5256
5257 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5258
5259 * misc/Makefile (tests): Add tst-ldbl-warn.
5260 * misc/tst-ldbl-warn.c: New file.
5261
5262 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5263
5264 * argp/Makefile (tests): Add tst-ldbl-argp.
5265 * argp/tst-ldbl-argp.c: New file.
5266
5267 2018-11-05 Arjun Shankar <arjun@redhat.com>
5268
5269 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5270 __gconv_path_elem and call __gconv_get_path unconditionally.
5271
5272 2018-11-05 Andreas Schwab <schwab@suse.de>
5273
5274 [BZ #22927]
5275 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5276 creating the first helper thread failed.
5277
5278 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5279
5280 * sysdeps/mach/hurd/msync.c: New file.
5281
5282 2018-11-02 Florian Weimer <fweimer@redhat.com>
5283
5284 * support/shell-container.c (copy_func): Call
5285 support_copy_file_range instead of copy_file_range to support
5286 cross-device copies.
5287
5288 2018-11-02 Florian Weimer <fweimer@redhat.com>
5289
5290 * support/test-container.c: Include <libc-pointer-arith.h> for
5291 ALIGN_UP.
5292
5293 2018-11-01 Zong Li <zong@andestech.com>
5294
5295 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5296 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5297 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5298 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5299
5300 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5301 variable to avoid overlap arguments.
5302
5303 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5304
5305 * posix/bug-regex22.c (main): Use puts with distinct error
5306 messages for unexpected success of re_compile_pattern, not printf
5307 with NULL argument to %s.
5308
5309 * stdio-common/bug22.c: Include <libc-diag.h>.
5310 (do_test): Disable -Wformat-overflow= warnings around fprintf
5311 calls outputting more than INT_MAX characters.
5312 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5313 around printf call with NULL %s argument.
5314
5315 [BZ #23848]
5316 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5317 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5318 Undefine.
5319 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5320 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5321 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5322 (__ASSUME_SENDTO_SYSCALL): Likewise.
5323 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5324 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5325 [!__arch64__].
5326 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5327 (__ASSUME_CONNECT_SYSCALL): Likewise.
5328 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5329 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5330 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5331 Define.
5332 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5333 Likewise.
5334 [__LINUX_KERNEL_VERSION >= 0x040400]
5335 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5336 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5337 Remove.
5338 (listen): Likewise.
5339 (setsockopt): Likewise.
5340
5341 2018-11-01 Fredrik Noring <noring@nocrew.org>
5342
5343 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5344 with the ISA override.
5345
5346 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5347
5348 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5349 #endif.
5350
5351 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5352
5353 * manual/errno.texi (EIEIO): Document how translators should
5354 translate the error message.
5355 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5356 printing trailing whitespaces refused by git.
5357 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5358 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5359 * hurd/Makefile (user-interfaces): Add pci.
5360
5361 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5362
5363 * conform/linknamespace.py: New file.
5364 * conform/linknamespace.pl: Remove file.
5365 * conform/Makefile ($(linknamespace-header-tests)): Use
5366 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5367 option.
5368
5369 2018-10-30 Florian Weimer <fweimer@redhat.com>
5370
5371 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5372 memory leaks.
5373
5374 2018-10-30 Florian Weimer <fweimer@redhat.com>
5375
5376 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5377
5378 2018-10-30 Florian Weimer <fweimer@redhat.com>
5379
5380 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5381 support_blob_repeat.
5382
5383 2018-10-30 Florian Weimer <fweimer@redhat.com>
5384
5385 Avoid spurious test failures in stdlib/test-bz22786.
5386 * support/Makefile (libsupport-routines): Add blob_repeat.
5387 (tests): Add tst-support_blob_repeat.
5388 * support/blob_repeat.h: New file.
5389 * support/blob_repeat.c: Likewise.
5390 * support/tst-support_blob_repeat.c: Likewise.
5391 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5392 support_blob_repeat_allocate.
5393
5394 2018-10-30 Andreas Schwab <schwab@suse.de>
5395
5396 [BZ #23125]
5397 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5398 Don't use tail call.
5399 * elf/tst-unwind-main.c: New file.
5400 * elf/Makefile (tests): Add tst-unwind-main.
5401 (CFLAGS-tst-unwind-main.c): Define.
5402
5403 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5404
5405 [BZ #23791]
5406 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5407 n_cs_precedes to 0.
5408 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5409
5410 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5411
5412 * conform/glibcconform.py: Do not import shutil.
5413 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5414 of mkdtemp.
5415
5416 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5417 critic_missing for versions before 3.4.
5418 * configure: Regenerated.
5419 * manual/install.texi (Tools for Compilation): Document
5420 requirement for Python to build glibc.
5421 * INSTALL: Regenerated.
5422 * Rules [PYTHON]: Make code unconditional.
5423 * benchtests/Makefile [PYTHON]: Likewise.
5424 * conform/Makefile [PYTHON]: Likewise.
5425 * manual/Makefile [PYTHON]: Likewise.
5426 * math/Makefile [PYTHON]: Likewise.
5427
5428 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5429
5430 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5431 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5432 answer to interrupt_operation, return EIEIO instead of EINTR.
5433 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5434 _hurd_intr_rpc_msg_about_to global point to start of controlled
5435 assembly snippet. Make it check canceled flag.
5436 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5437 the _hurd_intr_rpc_msg_about_to point.
5438 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5439 issue, remove cancel flag check.
5440
5441 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5442
5443 * scripts/build-many-glibcs.py: Remove compatibility for missing
5444 os.cpu_count and re.fullmatch.
5445
5446 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5447
5448 [BZ #23822]
5449 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5450 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5451 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5452
5453 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5454
5455 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5456 macro.
5457
5458 2018-10-25 Florian Weimer <fweimer@redhat.com>
5459
5460 [BZ #23562]
5461 [BZ #23821]
5462 XFAIL siginfo_t si_band conform test on sparc64.
5463 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5464 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5465 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5466 (conformtest-xfail-conds): Add sparc64-linux.
5467 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5468 sparc64.
5469 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5470
5471 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5472
5473 * elf/elf.h (NT_MIPS_DSP): New macro.
5474 (NT_MIPS_FP_MODE): Likewise.
5475
5476 2018-10-25 Zong Li <zong@andestech.com>
5477
5478 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5479 name by adding the file extension (.so).
5480
5481 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5482
5483 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5484 (test-xfail-ISO11/threads.h/linknamespace,
5485 test-xfail-ISO11/threads.h/conform): Add.
5486
5487 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5488
5489 * math/gen-libm-test.py: Import os.
5490 (ALL_FLOATS_MANUAL): New constant.
5491 (ALL_FLOATS_SUFFIX): Likewise.
5492 (Ulps.all_functions): New function.
5493 (real_all_ulps): Likewise.
5494 (generate_err_table_sub): Likewise.
5495 (generate_err_table): Likewise.
5496 (main): Handle -s and -m options.
5497 * manual/libm-err-tab.pl: Remove.
5498 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5499 instead of libm-err-tab.pl.
5500 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5501 != no].
5502 * manual/install.texi (Tools for Compilation): Document
5503 requirement for Python to build manual.
5504 * INSTALL: Regenerated.
5505
5506 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5507
5508 * bits/time64.h: New file.
5509 * include/time.h: Replace internal_time_t with __time64_t.
5510 * posix/bits/types (__time64_t): Add.
5511 * stdlib/Makefile: Add bits/time64.h to includes.
5512 * time/tzfile.c: Replace internal_time_t with __time64_t.
5513
5514 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5515
5516 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5517 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5518 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5519 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5520 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5521 prototype.
5522 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5523 * posix/spawn_faction_addclose.c
5524 (__posix_spawn_file_actions_addclose): Add hidden definition.
5525 * posix/spawn_faction_adddup2.c
5526 (__posix_spawn_file_actions_adddup2): Likewise.
5527 * posix/spawn_faction_destroy.c
5528 (__posix_spawn_file_actions_destroy): Likewise.
5529 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5530 Likewise.
5531 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5532 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5533 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5534 Likewise.
5535 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5536 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5537 Likewise.
5538
5539 2018-10-24 Andreas Schwab <schwab@suse.de>
5540
5541 [BZ #18093]
5542 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5543 format cache.
5544 * elf/cache.c (print_cache): Likewise.
5545
5546 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5547
5548 * bits/timesize.h: New file.
5549 * stdlib/Makefile (headers): Add bits/timesize.h.
5550 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5551 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5552 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5553 (__SEM_PAD_AFTER_TIME): Likewise.
5554 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5555 (__SHM_PAD_AFTER_TIME): Likewise.
5556 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5557 (__MSQ_PAD_BEFORE_TIME): Likewise.
5558 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5559 (__SEM_PAD_BEFORE_TIME): Likewise.
5560 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5561 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5562 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5563 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5564 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5565 (__MSQ_PAD_BEFORE_TIME): Likewise.
5566 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5567 (__SEM_PAD_BEFORE_TIME): Likewise.
5568 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5569 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5570 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5571 (__MSQ_PAD_BEFORE_TIME): Likewise.
5572 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5573 (__SEM_PAD_BEFORE_TIME): Likewise.
5574 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5575 (__SHM_PAD_BEFORE_TIME): Likewise.
5576 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5577 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5578 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5579
5580 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5581
5582 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5583 USE_RDTSCP is defined.
5584 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5585 USE_RDTSCP is defined.
5586
5587 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5588
5589 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5590 defined.
5591
5592 [BZ #23709]
5593 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5594 independently of other flags.
5595
5596 2018-10-23 Florian Weimer <fweimer@redhat.com>
5597
5598 * time/tst-mktime2.c (N_STRINGS): Remove.
5599 (set_timezone): New function.
5600 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5601 (mktime_test1): Report localtime failure and check errno value.
5602 Use TEST_COMPARE.
5603 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5604 (do_test): Remove alarm call. Use set_timezone and array_length.
5605
5606 2018-10-23 Andreas Schwab <schwab@suse.de>
5607
5608 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5609 (__start_context): Use END instead of PSEUDO_END.
5610
5611 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5612
5613 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5614 version to 4.19.
5615
5616 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5617 version to 4.19.
5618
5619 [BZ #23793]
5620 * wcsmbs/c32rtomb.c: New file.
5621 * wcsmbs/mbrtoc32.c: Likewise.
5622 * wcsmbs/tst-c32-state.c: Likewise.
5623 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5624 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5625 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5626 (tests): Add tst-c32-state.
5627 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5628 $(gen-locales).
5629
5630 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5631
5632 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5633 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5634
5635 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5636
5637 [BZ #23794]
5638 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5639 pair and return 0 in that case, and use saved character to
5640 interpret following character.
5641 * wcsmbs/tst-c16-surrogate.c: New file.
5642 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5643 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5644 Depend on $(gen-locales)
5645
5646 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5647
5648 [BZ #23562]
5649 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5650 (struct siginfo_t): Use correct type for si_band.
5651
5652 2018-10-19 Florian Weimer <fweimer@redhat.com>
5653
5654 [BZ #23689]
5655 * resource/bits/types/struct_rusage.h (struct rusage): Update
5656 comment on struct. Remove extraneous field comment.
5657
5658 2018-10-18 David S. Miller <davem@davemloft.net>
5659
5660 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5661 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5662 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5663 sysdep_routines in subdir elf.
5664 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5665 version for __vdso_clock_gettime.
5666 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5667 Define.
5668 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5669 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5670
5671 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5672
5673 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5674
5675 * sysdeps/i386/init-arch.h: Removed.
5676 * sysdeps/i386/i586/init-arch.h: Likewise.
5677 * sysdeps/i386/i686/init-arch.h: Likewise.
5678 * sysdeps/i386/i686/hp-timing.h: Likewise.
5679 * sysdeps/x86_64/hp-timing.h: Likewise.
5680 * sysdeps/i386/isa.h: New file.
5681 * sysdeps/i386/i586/isa.h: Likewise.
5682 * sysdeps/i386/i686/isa.h: Likewise.
5683 * sysdeps/x86_64/isa.h: Likewise.
5684 * sysdeps/x86/hp-timing.h: New file.
5685 * sysdeps/x86/init-arch.h: Include <isa.h>.
5686
5687 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5688
5689 * math/libm-test-pow.inc (pow_test_data): Do not allow
5690 divide-by-zero exception for pow(+/- 0, -Inf).
5691
5692 2018-10-17 Zack Weinberg <zackw@panix.com>
5693
5694 * manual/job.texi (Job Control is Optional): Remove node, as
5695 job control has not been optional in quite some time.
5696 (Job Control): Mention briefly that systems older than
5697 POSIX.1-2001 might not support job control.
5698 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5699 defined on systems conforming to POSIX.1-2001.
5700
5701 2018-10-17 Arjun Shankar <arjun@redhat.com>
5702
5703 [BZ #22062]
5704 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5705 indentation.
5706 * (__gconv_read_conf): Mark function static.
5707 * (once): New static variable.
5708 * (__gconv_load_conf): New function.
5709 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5710 * iconv/gconv_db.c (once): Remove static variable.
5711 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5712 __gconv_read_conf.
5713 * (__gconv_find_transform): Likewise.
5714 * iconv/tst-iconv-mt.c: New test.
5715 * iconv/Makefile: Add tst-iconv_mt.
5716
5717 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5718
5719 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5720 bits/shm-pad.h.
5721 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5722 (shmatt_t): Define as __syscall_ulong_t.
5723 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5724 and [__SHM_PAD_AFTER_TIME].
5725 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5726 Define shm_segsz and associated padding based on
5727 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5728 Use __syscall_ulong_t instead of unsigned long int.
5729 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5730 unsigned long int.
5731 [__USE_MISC] (struct shm_info): Likewise.
5732 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5733 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5734 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5735 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5736 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5737 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5738 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5739 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5740 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5741 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5742 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5743
5744 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5745 bits/shmlba.h.
5746 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5747 (SHMLBA): Remove macro.
5748 (__getpagesize): Remove function declaration.
5749 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5750 <bits/shmlba.h>.
5751 (SHMLBA): Remove macro.
5752 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5753 <bits/shmlba.h>.
5754 (SHMLBA): Remove macro.
5755 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5756 <bits/shmlba.h>.
5757 (SHMLBA): Remove macro.
5758 (__getpagesize): Remove function declaration.
5759 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5760 <bits/shmlba.h>.
5761 (SHMLBA): Remove macro.
5762 (__getshmlba): Remove function declaration.
5763 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5764 (SHMLBA): Remove macro.
5765 (__getpagesize): Remove function declaration.
5766 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5767 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5768 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5769 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5770 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5771 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5772 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5773 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5774 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5775 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5776
5777 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5778
5779 [BZ #23275]
5780 * nptl/tst-mutex10.c: New File.
5781 * nptl/Makefile (tests): Add tst-mutex10.
5782 (tst-mutex10-ENV): New variable.
5783 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5784 Ensure that elision path is used if elision is available.
5785 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5786 Likewise.
5787 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5788 Likewise.
5789 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5790 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5791 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5792 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5793 Likewise.
5794 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5795 (__pthread_mutex_cond_lock_adjust): Likewise.
5796 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5797 Likewise.
5798 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5799 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5800 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5801 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5802 Add comments.
5803 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5804 Use atomic_load_relaxed and atomic_store_relaxed.
5805 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5806 Use atomic_store_relaxed.
5807
5808 2018-10-17 Andreas Schwab <schwab@suse.de>
5809
5810 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5811 * crypt/badsalttest.c (TIMEOUT): Likewise.
5812 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5813 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5814 * io/test-lfs.c (TIMEOUT): Likewise.
5815 * libio/tst-atime.c (TIMEOUT): Likewise.
5816 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5817 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5818 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5819 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5820 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5821 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5822 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5823 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5824 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5825 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5826 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5827 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5828 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5829 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5830 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5831 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5832 * nptl/tst-once2.c (TIMEOUT): Likewise.
5833 * nptl/tst-once3.c (TIMEOUT): Likewise.
5834 * nptl/tst-once4.c (TIMEOUT): Likewise.
5835 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5836 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5837 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5838 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5839 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5840 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5841 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5842 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5843 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5844 * posix/tst-chmod.c (TIMEOUT): Likewise.
5845 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5846 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5847 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5848 * posix/tst-regex2.c (TIMEOUT): Likewise.
5849 * posix/tst-waitid.c (TIMEOUT): Likewise.
5850 * rt/tst-aio.c (TIMEOUT): Likewise.
5851 * rt/tst-aio10.c (TIMEOUT): Likewise.
5852 * rt/tst-aio4.c (TIMEOUT): Likewise.
5853 * rt/tst-aio5.c (TIMEOUT): Likewise.
5854 * rt/tst-aio6.c (TIMEOUT): Likewise.
5855 * rt/tst-aio64.c (TIMEOUT): Likewise.
5856 * rt/tst-aio7.c (TIMEOUT): Likewise.
5857 * rt/tst-aio9.c (TIMEOUT): Likewise.
5858 * rt/tst-clock.c (TIMEOUT): Likewise.
5859 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5860 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5861 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5862 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5863 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5864 * rt/tst-timer4.c (TIMEOUT): Likewise.
5865 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5866 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5867 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5868 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5869 * time/tst-ftime.c (TIMEOUT): Likewise.
5870 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5871
5872 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5873
5874 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5875 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5876 for thunderX2.
5877
5878 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5879
5880 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5881 bits/sem-pad.h.
5882 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5883 instead of <bits/wordsize.h>.
5884 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5885 and [__SEM_PAD_AFTER_TIME].
5886 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5887 __syscall_ulong_t instead of unsigned long int.
5888 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5889 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5890 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5891 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5892 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5893 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5894 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5895 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5896 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5897 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5898 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5899
5900 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5901
5902 regex: simplify by using intprops.h
5903 [BZ#23744]
5904 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5905 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5906 intprops.h defines them.
5907
5908 regex: __builtin_expect → __glibc_unlikely
5909 [BZ#23744]
5910 This refactoring was prompted by a problem when the regex code is
5911 used as part of Gnulib and when the builder’s compiler does not grok
5912 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5913 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5914 Although this refactoring does not fix the problem directly,
5915 we might as well have Gawk use the now-preferred glibc style for when
5916 __builtin_expect is unavailable.
5917 * posix/regex_internal.h (BE): Remove.
5918 All uses replaced by __glibc_unlikely or __glibc_likely.
5919
5920 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5921
5922 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5923 bits/msq-pad.h.
5924 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5925 instead of <bits/wordsize.h>.
5926 (msgqnum_t): Define as __syscall_ulong_t.
5927 (msglen_t): Likewise.
5928 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5929 and [__MSQ_PAD_AFTER_TIME].
5930 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5931 __syscall_ulong_t instead of unsigned long int.
5932 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5933 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5934 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5935 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5936 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5937 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5938 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5939 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5940 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5941 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5942 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5943
5944 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5945
5946 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5947 (struct shmid_ds): Condition padding after time fields on
5948 [__WORDSIZE == 32].
5949 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5950 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5951 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5952
5953 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5954 (struct semid_ds): Condition padding after time fields on
5955 [__WORDSIZE == 32].
5956 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5957 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5958 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5959 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5960
5961 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5962 (struct msqid_ds): Condition padding after time fields on
5963 [__WORDSIZE == 32].
5964 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5965 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5966 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5967 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5968
5969 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5970
5971 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5972
5973 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5974
5975 * libio/tst-readline.c (TIMEOUT): Define.
5976
5977 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5978
5979 mktime fix for Gnulib + coreutils
5980 [BZ#23745]
5981 This fix affects only Gnulib. Problem discovered when
5982 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5983 * time/mktime.c:
5984 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5985 Do not define since it is not used. Defining an unused static
5986 function prompts a warning from GCC when Coreutils is configured
5987 with --enable-gcc-warnings.
5988
5989 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5990
5991 * benchtests/scripts/compare_bench.py (main): set float type on
5992 threshold argument.
5993
5994 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5995
5996 [BZ #23740]
5997 * localedata/locales/kl_GL (mon): Update, the relative case.
5998 (alt_mon): Add, fill with month names in the nominative case.
5999 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6000 (d_fmt): Set to "%b %d %Y".
6001
6002 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6003
6004 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6005 <bits/mman-linux.h>.
6006 (PROT_READ): Don't define here.
6007 (PROT_WRITE): Likewise.
6008 (PROT_EXEC): Likewise.
6009 (PROT_NONE): Likewise.
6010 (PROT_GROWSDOWN): Likewise.
6011 (PROT_GROWSUP): Likewise.
6012 (MAP_SHARED): Likewise.
6013 (MAP_PRIVATE): Likewise.
6014 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6015 [__USE_MISC] (MAP_FILE): Likewise.
6016 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6017 [__USE_MISC] (MAP_ANON): Likewise.
6018 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6019 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6020 (MCL_CURRENT): Likewise.
6021 (MCL_FUTURE): Likewise.
6022 (MCL_ONFAULT): Likewise.
6023 [__USE_MISC] (MADV_NORMAL): Likewise.
6024 [__USE_MISC] (MADV_RANDOM): Likewise.
6025 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6026 [__USE_MISC] (MADV_WILLNEED): Likewise.
6027 [__USE_MISC] (MADV_DONTNEED): Likewise.
6028 [__USE_MISC] (MADV_FREE): Likewise.
6029 [__USE_MISC] (MADV_REMOVE): Likewise.
6030 [__USE_MISC] (MADV_DONTFORK): Likewise.
6031 [__USE_MISC] (MADV_DOFORK): Likewise.
6032 [__USE_MISC] (MADV_HWPOISON): Likewise.
6033 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6034 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6035 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6036 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6037 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6038 (__MAP_ANONYMOUS): New macro.
6039 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6040 <bits/mman-linux.h> inclusion.
6041 (MAP_FIXED): Likewise.
6042 (MS_SYNC): Likewise.
6043 (MS_ASYNC): Likewise.
6044 (MS_INVALIDATE): Likewise.
6045 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6046 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6047 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6048 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6049 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6050 [__USE_MISC] (MADV_DODUMP): Likewise.
6051 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6052 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6053
6054 [BZ #23735]
6055 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6056 Define.
6057 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6058 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6059 Add test-nldbl-redirect.
6060 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6061 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6062 $(objpfx)libnldbl_nonshared.a.
6063
6064 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6065
6066 * support/support.h (support_objdir_elf_ldso): New variable.
6067 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6068 * support/Makefile (CFLAGS-support_paths.c): Add definition
6069 for OBJDIR_ELF_LDSO_PATH.
6070 * support/test-container.c (main): Search for the ld.so
6071 which is also used by the testsuite.
6072
6073 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6074
6075 [BZ #20209]
6076 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6077 should be "sap" rather than "sab".
6078 (day): Fix spelling of Sunday, should be "sapaat" rather than
6079 "sabaat".
6080
6081 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6082
6083 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6084
6085 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6086
6087 [BZ #19444]
6088 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6089 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6090 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6091
6092 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6093
6094 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6095
6096 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6097
6098 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6099 Add -mrtm.
6100 (CFLAGS-elision-unlock.c): Likewise.
6101 (CFLAGS-elision-timed.c): Likewise.
6102 (CFLAGS-elision-trylock.c): Likewise.
6103 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6104
6105 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6106
6107 [BZ #21037]
6108 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6109 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6110 new fd_to_filename interface.
6111 * libio/freopen64.c (freopen64): Likewise.
6112 * libio/tst-memstream.h: New file.
6113 * libio/tst-memstream4.c: Likewise.
6114 * libio/tst-wmemstream4.c: Likewise.
6115 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6116 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6117 and remove internal dynamic allocation.
6118
6119 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6120
6121 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6122 (MREMAP_MAYMOVE): Do not define here.
6123 [__USE_GNU] (MREMAP_FIXED): Likewise.
6124 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6125 (MREMAP_MAYMOVE): Define here instead.
6126 [__USE_GNU] (MREMAP_FIXED): Likewise.
6127 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6128 (MREMAP_MAYMOVE): Remove.
6129 [__USE_GNU] (MREMAP_FIXED): Likewise.
6130
6131 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6132
6133 * math/fromfp.h: Do not include <math_private.h>.
6134 * math/s_cacosh_template.c: Likewise.
6135 * math/s_casin_template.c: Likewise.
6136 * math/s_casinh_template.c: Likewise.
6137 * math/s_ccos_template.c: Likewise.
6138 * math/s_cproj_template.c: Likewise.
6139 * math/s_fdim_template.c: Likewise.
6140 * math/s_fmaxmag_template.c: Likewise.
6141 * math/s_fminmag_template.c: Likewise.
6142 * math/s_iseqsig_template.c: Likewise.
6143 * math/s_ldexp_template.c: Likewise.
6144 * math/s_nextdown_template.c: Likewise.
6145 * math/w_log1p_template.c: Likewise.
6146 * math/w_scalbln_template.c: Likewise.
6147 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6148 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6149 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6150 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6151 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6152 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6153 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6154 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6155 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6156 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6157 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6158 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6159 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6160 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6161 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6162 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6163 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6164 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6165 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6166 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6167 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6168 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6169 * sysdeps/ieee754/k_standardf.c: Likewise.
6170 * sysdeps/ieee754/k_standardl.c: Likewise.
6171 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6172 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6173 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6174 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6175 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6176 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6177 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6178 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6179 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6180 * sysdeps/ieee754/s_signgam.c: Likewise.
6181 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6182 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6183 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6184 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6185 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6186 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6187 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6188 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6189 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6190 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6191 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6192 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6193 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6194 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6195 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6196 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6197 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6198 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6199 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6200 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6201 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6202 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6203 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6204 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6205 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6206 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6207 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6208 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6209 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6210 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6211 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6212 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6213 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6214 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6215 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6216 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6217 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6218 <math_private.h>.
6219 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6220
6221 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6222
6223 [BZ #23716]
6224 * sysdeps/i386/dl-cet.c: Removed.
6225 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6226 prototype.
6227 (_dl_runtime_profile_shstk): Likewise.
6228 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6229 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6230
6231 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6232
6233 [BZ #23579]
6234 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6235 do_test_with_invalid_iov): New tests.
6236 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6237 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6238 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6239 errno is ENOSYS.
6240 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6241 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6242 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6243
6244 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6245
6246 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6247 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6248 (MATH_REDIRECT_BINARY_ARGS): New macro.
6249 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6250 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6251 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6252 header inclusion.
6253 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6254 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6255 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6256 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6257 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6258 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6259 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6261 Likewise.
6262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6263 Likewise.
6264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6266 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6267 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6269 Likewise.
6270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6271 Likewise.
6272 * sysdeps/generic/math_private_calls.h
6273 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6274 Do not declare and define as an inline function.
6275 * math/divtc3.c (__divtc3): Use copysign functions instead of
6276 __copysign variants.
6277 * math/multc3.c (__multc3): Likewise.
6278 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6279 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6280 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6281 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6282 Likewise.
6283 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6284 (__ieee754_yn): Likewise.
6285 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6286 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6287 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6288 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6289 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6290 (__sin): Likewise.
6291 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6292 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6293 Likewise.
6294 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6295 Likewise.
6296 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6297 Likewise.
6298 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6299 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6300 Likewise.
6301 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6302 (__ieee754_ynf): Likewise.
6303 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6304 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6305 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6306 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6307 Likewise.
6308 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6309 (__ieee754_ynl): Likewise.
6310 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6311 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6312 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6313 Likewise.
6314 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6315 (__ieee754_ynl): Likewise.
6316 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6317 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6318 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6319 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6320 Likewise.
6321 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6322 (__ieee754_ynl)
6323 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6324 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6325 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6326 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6327 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6328
6329 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6330 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6331 using MATH_REDIRECT.
6332 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6333 header inclusion.
6334 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6335 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6336 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6337 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6338 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6339 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6340 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6345 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6346 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6347 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6348 (round): Redirect to __round.
6349 (__roundl): Call round instead of __round.
6350 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6351 Remove macro.
6352 [_ARCH_PWR5X] (__roundf): Likewise.
6353 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6354 functions instead of __round variants.
6355 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6356 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6357 Likewise.
6358 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6359 Likewise.
6360 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6361 Likewise.
6362 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6363 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6364 __lroundl.
6365 (__ieee754_expl): Call roundl instead of __roundl.
6366
6367 2018-09-27 Andreas Schwab <schwab@suse.de>
6368
6369 [BZ #23717]
6370 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6371 (do_test): Make st1 static.
6372
6373 2018-09-26 Andreas Schwab <schwab@suse.de>
6374
6375 [BZ #23707]
6376 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6377 * elf/Makefile (tests): Add tst-unwind-ctor.
6378 (modules-names): Add tst-unwind-ctor-lib.
6379 ($(objpfx)tst-unwind-ctor): Depend on
6380 $(objpfx)tst-unwind-ctor-lib.so.
6381
6382 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6383
6384 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6385 file. Most contents moved from ....
6386 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6387 and include <bits/mman-map-flags-generic.h>.
6388 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6389 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6390 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6391 <bits/mman-map-flags-generic.h>.
6392 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6393 macros defined in <bits/mman-map-flags-generic.h>.
6394 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6395 <bits/mman-map-flags-generic.h>.
6396 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6397 defined in <bits/mman-map-flags-generic.h>.
6398
6399 2018-09-26 Andreas Schwab <schwab@suse.de>
6400
6401 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6402 output.
6403
6404 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6405 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6406 Fangrui Song <maskray@google.com>
6407
6408 [BZ #20480]
6409 * config.make.in (have-textrel_ifunc): New define.
6410 * configure.ac: Add check if linker supports textrel relocation with
6411 ifunc.
6412 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6413 tst-ifunc-textrel.
6414 (CFLAGS-tst-ifunc-textrel.c): New rule.
6415 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6416 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6417 * elf/tst-ifunc-textrel.c: New file.
6418
6419 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6420
6421 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6422 <bits/procfs-prregset.h>.
6423 (prgregset_t): Define using __prgregset_t.
6424 (prfpregset_t): Define using __prfpregset_t.
6425 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6426 (sysdep_headers): Add bits/procfs-prregset.h.
6427 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6428 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6429 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6430 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6431
6432 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6433 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6434 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6435 pr_uid and pr_gid.
6436 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6437 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6438 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6439 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6440 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6441 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6442 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6443 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6444 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6445 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6446 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6447 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6448 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6449 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6450 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6451 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6452 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6453 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6454 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6455 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6456 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6457 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6458 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6459 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6460
6461 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6462 AArch64 version. Include <bits/procfs.h>.
6463 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6464 (sysdep_headers): Add bits/procfs.h.
6465 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6466 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6467 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6468 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6469 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6470 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6471 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6472 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6473 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6474 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6475 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6476 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6477 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6478 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6479 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6480 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6481 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6482
6483 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6484
6485 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6486 Use libsupport.
6487
6488 2018-09-25 Arjun Shankar <arjun@redhat.com>
6489
6490 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6491 (__gconv_max_path_elem_len): Likewise.
6492 (__gconv_nmodules): Likewise.
6493 (__gconv_get_path): Likewise.
6494 (path_elem): Move to ...
6495 * iconv/gconv_conf.c: ... here.
6496 (__gconv_get_path): Mark function static.
6497 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6498 * iconv/gconv_open.c: ... here.
6499
6500 2018-09-24 Andreas Schwab <schwab@suse.de>
6501
6502 * scripts/haveversions.awk: New file.
6503 * Makerules ($(common-objpfx)Versions.def)
6504 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6505 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6506 Move rules ...
6507 * Makeconfig ($(common-objpfx)Versions.def)
6508 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6509 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6510 ... here.
6511 ($(common-objpfx)Versions.mk): New rule. Include it.
6512 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6513 Emit error if build-obsolete-nsl = yes.
6514 * manual/install.texi (Configuring and compiling): Describe
6515 --enable-obsolete-nsl as unavaiable after version 2.28.
6516 * INSTALL: Regenerate.
6517
6518 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6519
6520 * NEWS: Add note about new TLE support on powerpc64le.
6521 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6522 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6523 __ununsed1.
6524 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6525 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6526 * sysdeps/powerpc/powerpc32/sysdep.h,
6527 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6528 ABORT_TRANSACTION): Remove macros.
6529 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6530 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6531 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6533 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6534 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6535 usage.
6536 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6537
6538 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6539
6540 [BZ #10425]
6541 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6542 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6543 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6544 which is the same as in it_IT.
6545 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6546 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6547
6548 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6549
6550 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6551 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6552 using MATH_REDIRECT.
6553 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6554 header inclusion.
6555 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6556 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6557 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6558 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6559 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6560 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6565 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6566 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6567 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6568 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6569 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6570 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6571 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6572 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6573 (ceil): Redirect to __ceil.
6574 (floor): Redirect to __floor.
6575 (trunc): Redirect to __trunc.
6576 (__truncl): Call trunc instead of __trunc.
6577 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6578 Remove macro.
6579 [_ARCH_PWR5X] (__truncf): Likewise.
6580 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6581 trunc functions instead of __trunc variants.
6582 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6583 Likewise.
6584 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6585 Likewise.
6586 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6587 Likewise.
6588 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6589 Likewise.
6590
6591 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6592 [__i586__ || __pentium__].
6593 [__i486__]: Handle explicitly.
6594 (HAS_CPUID): Define to 1 if above macros are undefined.
6595 (HAS_I586): Likewise.
6596 (HAS_I686): Likewise.
6597
6598 2018-09-20 Florian Weimer <fweimer@redhat.com>
6599
6600 * misc/tst-gethostid.c: New file.
6601 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6602 (tst-gethostid): Link with -ldl.
6603
6604 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6605
6606 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6607 value from gethostbyname_r.
6608
6609 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6610
6611 * stdlib/tst-setcontext9.c (f1): Rename to...
6612 (f1a): ... this.
6613 (f1b): New function implementing lower half of f1 in alternate stack.
6614
6615 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6616
6617 Fix mktime localtime offset confusion
6618 [BZ #23603]
6619 * include/time.h (__mktime_internal): The localtime offset is now
6620 of type long int instead of time_t. This is the longstanding type
6621 in glibc, and it is more than enough to represent difference
6622 between localtime and gmtime even if it is 32 bits and time_t is
6623 64. Changing it now will let us avoid an unnecessary change when
6624 time_t is widened to 64 bits on 32-bit platforms.
6625 * time/mktime-internal.h (mktime_offset_t): Now long int.
6626
6627 Merge mktime, timegm from upstream Gnulib
6628 [BZ #23603][BZ #16346]
6629 This fixes some obscure problems with integer overflow.
6630 Although it looks scary, it is almost all a byte-for-byte copy
6631 from Gnulib, and the Gnulib code has been tested reasonably well.
6632 * include/intprops.h: New file, copied from Gnulib.
6633 * include/verify.h, time/mktime-internal.h:
6634 New tiny files, simplified from Gnulib.
6635 * time/mktime.c: Copy from Gnulib. This has the following changes:
6636 Do not include config.h if DEBUG_MKTIME is nonzero.
6637 Include stdbool.h, intprops.h, verify.h.
6638 Include string.h only if needed.
6639 Include stdlib.h on MS-Windows.
6640 Include mktime-internal.h.
6641 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6642 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6643 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6644 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6645 simplify later conditionals; default the others to zero. Use
6646 these conditionals to express only the code needed on the current
6647 platform. In uses of these conditionals, explicitly spell out how
6648 _LIBC affects things, so it’s easier to review from a glibc
6649 viewpoint.
6650 (WRAPV): Remove; no longer needed now that we have
6651 systematic overflow checking.
6652 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6653 compartmentalize tzset issues. Move system-dependent tzsettish
6654 code here from mktime.
6655 (verify): Remove; now done by verify.h. All uses changed.
6656 (long_int): Use a more-conservative definition, to avoid
6657 integer overflow.
6658 (SHR): Remove, replacing with ...
6659 (shr): New function, which means we needn’t worry about side
6660 effects in args, and conversion analysis is simpler.
6661 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6662 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6663 (time_t_avg, time_t_add_ok): Remove.
6664 (mktime_min, mktime_max): New constants.
6665 (leapyear, isdst_differ): Use bool for booleans.
6666 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6667 Use long_int, not time_t, for mktime differences.
6668 (long_int_avg): New function, replacing time_t_avg.
6669 INT_ADD_WRAPV replaces time_t_add_ok.
6670 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6671 All uses changed.
6672 (convert_time): New function.
6673 (ranged_convert): Use it.
6674 (__mktime_internal): Last arg now points to mktime_offset_t, not
6675 time_t. All uses changed. This is a no-op on glibc, where
6676 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6677 offset guess. Directly check for integer overflow instead of
6678 using a heuristic that works only 99.9...% of the time.
6679 Access *OFFSET only once, to avoid an unlikely race if the
6680 compiler delays a load and if this cascades into a signed integer
6681 overflow.
6682 (mktime): Move tzsettish code to my_tzset, and move
6683 localtime_offset to within mktime so that it doesn’t
6684 need a separate ifdef.
6685 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6686 instead of localtime.
6687 * time/timegm.c: Copy from Gnulib. This has the following changes:
6688 Include mktime-internal.h.
6689 [!_LIBC]: Include config.h and time.h. Do not include
6690 timegm.h or time_r.h. Make __mktime_internal a macro,
6691 and include mktime-internal.h to get its declaration.
6692 (timegm): Temporary is now mktime_offset_t, not time_t.
6693 This affects only Gnulib.
6694
6695 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6696
6697 [BZ #23637]
6698 * string/test-strstr.c (pr23637): New function.
6699 (test_main): Add tests with longer needles.
6700 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6701 * string/strstr.c (AVAILABLE): Likewise.
6702
6703 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6704
6705 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6706
6707 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6708
6709 * NEWS: Mention pow improvements.
6710 * math/Makefile (type-double-routines): Add e_pow_log_data.
6711 * sysdeps/generic/math_private.h (__exp1): Remove.
6712 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6713 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6714 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6715 contraction.
6716 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6717 (exp_inline): Remove.
6718 (__ieee754_exp): Only single double input is handled.
6719 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6720 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6721 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6722 (__pow_log_data): Define.
6723 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6724 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6725 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6726 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6727 contraction.
6728 (CFLAGS-e_pow-fma4.c): Likewise.
6729
6730 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6731
6732 Simplify tzfile fstat failure code
6733 [BZ #21716]
6734 * time/tzfile.c (__tzfile_read): Simplify slightly.
6735
6736 Fix tzfile low-memory assertion failure
6737 [BZ #21716]
6738 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6739 when registering time zone abbreviations.
6740
6741 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6742
6743 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6744 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6745 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6746 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6747 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6748 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6749 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6750 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6751 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6752
6753 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6754 __ceil.
6755 (__ceill): Call ceil instead of __ceil.
6756 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6757 __floor.
6758 (__floorl): Call floor instead of __floor.
6759
6760 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6761
6762 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6763 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6764 using MATH_REDIRECT.
6765 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6766 header inclusion.
6767 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6768 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6769 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6770 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6771 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6772 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6773 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6774 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6775 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6779 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6780 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6781 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6782 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6783 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6784 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6785 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6786 Remove macro.
6787 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6788 functions instead of __ceil variants.
6789 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6790 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6791 Likewise.
6792 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6793 Likewise.
6794 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6795 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6796 Likewise.
6797 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6798 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6799
6800 [BZ #21286]
6801 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6802 constant.
6803 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6804 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6805 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6806 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6807 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6808 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6809 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6810 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6811 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6812 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6813 (ILL_BADIADDR): Remove constant.
6814 (TRAP_BRANCH): Likewise.
6815 (TRAP_HWBKPT): Likewise.
6816
6817 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6818
6819 [BZ #23656]
6820 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6821 Remove [_MIPS_SIM = _ABIN32] conditional case.
6822 (struct elf_prpsinfo): Likewise.
6823
6824 [BZ #23649]
6825 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6826 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6827 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6828 Likewise.
6829 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6830 elf_prpsinfo): Likewise.
6831 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6832 elf_prpsinfo): Likewise.
6833 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6834 Likewise.
6835
6836 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6837 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6838 using MATH_REDIRECT.
6839 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6840 header inclusion.
6841 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6842 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6843 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6844 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6845 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6846 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6847 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6848 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6849 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6850 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6851 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6852 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6853 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6854 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6855 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6856 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6857 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6858 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6859 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6862 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6863 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6864 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6865 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6866 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6867 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6868 __rint variants.
6869 * math/e_scalbf.c (invalid_fn): Likewise.
6870 * math/e_scalbl.c (invalid_fn): Likewise.
6871 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6872 Likewise.
6873 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6874 Likewise.
6875 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6876 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6877 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6878 Likewise.
6879 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6880 Likewise.
6881 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6882 Likewise.
6883 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6884 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6885
6886 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6887 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6888 New macro.
6889 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6890 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6891 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6892 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6893 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6894 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6895 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6896 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6897 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6898 && !NO_MATH_REDIRECT] (floor): Likewise.
6899 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6900 header inclusion.
6901 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6902 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6903 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6904 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6905 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6906 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6907 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6908 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6913 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6914 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6915 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6916 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6917 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6918 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6919 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6920 Remove macro.
6921 [_ARCH_PWR5X] (__floorf): Likewise.
6922 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6923 inline function.
6924 [__SSE4_1__] (__floorf): Likewise.
6925 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6926 instead of __floor variants.
6927 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6928 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6929 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6930 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6931 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6932 * math/w_tgamma_compat.c (__tgamma): Likewise.
6933 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6934 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6935 * math/w_tgammal_compat.c (__tgammal): Likewise.
6936 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6937 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6938 Likewise.
6939 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6940 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6941 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6942 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6943 Likewise.
6944 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6945 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6946 Likewise.
6947 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6948 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6949 Likewise.
6950 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6951 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6952 Likewise.
6953 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6954 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6955 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6956 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6957 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6958 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6959
6960 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6961
6962 * elf/Makefile (modules-names-tests): New variable.
6963
6964 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6965
6966 * NEWS: Mention log2 improvements.
6967 * math/Makefile (type-double-routines): Add e_log2_data.
6968 * sysdeps/i386/fpu/e_log2_data.c: New file.
6969 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6970 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6971 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6972 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6973 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6974 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6975
6976 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6977
6978 * NEWS: Mention log improvement.
6979 * math/Makefile (type-double-routines): Add e_log_data.
6980 * sysdeps/i386/fpu/e_log_data.c: New file.
6981 * sysdeps/ia64/fpu/e_log_data.c: New file.
6982 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6983 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6984 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6985 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6986 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6987 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6988
6989 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6990 Xuepeng Guo <xuepeng.guo@intel.com>
6991
6992 [BZ #23606]
6993 * sysdeps/i386/start.S: Include <sysdep.h>
6994 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6995 enabled. Add cfi_undefined (eip).
6996
6997 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6998
6999 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7000 (MOVQ): Likewise.
7001 (EXTRACT_WORDS64): Likewise.
7002 (INSERT_WORDS64): Likewise.
7003 (GET_FLOAT_WORD): Likewise.
7004 (SET_FLOAT_WORD): Likewise.
7005
7006 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7007 argument.
7008 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7009 build, but not for second build if --full-gcc. Use
7010 --enable-languages=all for second build if --full-gcc.
7011 (get_parser): Add --full-gcc option.
7012 (main): Update call to Context.
7013
7014 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7015
7016 [BZ #10797]
7017 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7018 Single Quotation Mark).
7019 (thousands_sep): Likewise.
7020 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7021 * localedata/locales/it_IT (thousands_sep): Use ".".
7022 (grouping): Use "3;3".
7023
7024 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7025
7026 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7027 x86_64 and i686 configs using --enable-obsolete-rpc
7028 --enable-obsolete-nsl.
7029
7030 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7031
7032 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7033
7034 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7035
7036 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7037 Increment size of new_argv by one.
7038
7039 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7040
7041 [BZ #17426]
7042 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7043 * localedata/locales/ar_IN (d_fmt): Likewise.
7044 * localedata/locales/bhb_IN (d_fmt): Likewise.
7045 * localedata/locales/bho_IN (d_fmt): Likewise.
7046 * localedata/locales/bn_BD (d_fmt): Likewise.
7047 * localedata/locales/bn_IN (d_fmt): Likewise.
7048 * localedata/locales/doi_IN (d_fmt): Likewise.
7049 * localedata/locales/gu_IN (d_fmt): Likewise.
7050 * localedata/locales/hi_IN (d_fmt): Likewise.
7051 * localedata/locales/hne_IN (d_fmt): Likewise.
7052 * localedata/locales/kn_IN (d_fmt): Likewise.
7053 * localedata/locales/mag_IN (d_fmt): Likewise.
7054 * localedata/locales/mai_IN (d_fmt): Likewise.
7055 * localedata/locales/mjw_IN (d_fmt): Likewise.
7056 * localedata/locales/ml_IN (d_fmt): Likewise.
7057 * localedata/locales/mni_IN (d_fmt): Likewise.
7058 * localedata/locales/mr_IN (d_fmt): Likewise.
7059 * localedata/locales/pa_IN (d_fmt): Likewise.
7060 * localedata/locales/raj_IN (d_fmt): Likewise.
7061 * localedata/locales/sat_IN (d_fmt): Likewise.
7062 * localedata/locales/sd_IN (d_fmt): Likewise.
7063 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7064 * localedata/locales/ta_IN (d_fmt): Likewise.
7065 * localedata/locales/ta_LK (d_fmt): Likewise.
7066 * localedata/locales/tcy_IN (d_fmt): Likewise.
7067 * localedata/locales/ur_IN (d_fmt): Likewise.
7068
7069 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7070 * localedata/locales/ks_IN (d_fmt): Likewise.
7071 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7072
7073 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7074 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7075 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7076 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7077
7078 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7079
7080 * NEWS: Mention exp and exp2 improvements.
7081 * math/Makefile (libm-support): Remove t_exp.
7082 (type-double-routines): Add math_err and e_exp_data.
7083 * sysdeps/aarch64/libm-test-ulps: Update.
7084 * sysdeps/arm/libm-test-ulps: Update.
7085 * sysdeps/i386/fpu/e_exp_data.c: New file.
7086 * sysdeps/i386/fpu/math_err.c: New file.
7087 * sysdeps/i386/fpu/t_exp.c: Remove.
7088 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7089 * sysdeps/ia64/fpu/math_err.c: New file.
7090 * sysdeps/ia64/fpu/t_exp.c: Remove.
7091 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7092 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7093 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7094 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7095 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7096 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7097 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7098 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7099 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7100 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7101 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7102 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7103 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7104 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7105 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7106 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7107
7108 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7109
7110 * sysdeps/alpha/fpu/math_private.h: Remove.
7111
7112 * sysdeps/generic/math_private.h
7113 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7114 Move this inline function ....
7115 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7116 * include/math.h [!_ISOMAC]: To here....
7117
7118 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7119
7120 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7121 code ....
7122 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7123 * include/fenv.h [!_ISOMAC]: ... to here.
7124 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7125 (feraiseexcept): Likewise.
7126 * math/fromfp.h: Do not include <fenv_private.h>.
7127 * math/s_cexp_template.c: Likewise.
7128 * math/s_csin_template.c: Likewise.
7129 * math/s_csinh_template.c: Likewise.
7130 * math/s_ctan_template.c: Likewise.
7131 * math/s_ctanh_template.c: Likewise.
7132 * math/s_iseqsig_template.c: Likewise.
7133 * math/w_acos_compat.c: Likewise.
7134 * math/w_acosf_compat.c: Likewise.
7135 * math/w_acosl_compat.c: Likewise.
7136 * math/w_asin_compat.c: Likewise.
7137 * math/w_asinf_compat.c: Likewise.
7138 * math/w_asinl_compat.c: Likewise.
7139 * math/w_j0_compat.c: Likewise.
7140 * math/w_j0f_compat.c: Likewise.
7141 * math/w_j0l_compat.c: Likewise.
7142 * math/w_j1_compat.c: Likewise.
7143 * math/w_j1f_compat.c: Likewise.
7144 * math/w_j1l_compat.c: Likewise.
7145 * math/w_jn_compat.c: Likewise.
7146 * math/w_jnf_compat.c: Likewise.
7147 * math/w_log10_compat.c: Likewise.
7148 * math/w_log10f_compat.c: Likewise.
7149 * math/w_log10l_compat.c: Likewise.
7150 * math/w_log2_compat.c: Likewise.
7151 * math/w_log2f_compat.c: Likewise.
7152 * math/w_log2l_compat.c: Likewise.
7153 * math/w_log_compat.c: Likewise.
7154 * math/w_logf_compat.c: Likewise.
7155 * math/w_logl_compat.c: Likewise.
7156 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7157 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7158 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7159 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7160 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7161 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7162 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7163 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7164 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7165 * sysdeps/ieee754/k_standardl.c: Likewise.
7166 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7167 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7168 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7169 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7170 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7171 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7172 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7173 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7174 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7175 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7176 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7177 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7178 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7179 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7180 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7181 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7182 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7183 * math/w_ilogb_template.c: Include <fenv.h> instead of
7184 <fenv_private.h>.
7185 * math/w_llogb_template.c: Likewise.
7186 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7187 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7188
7189 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7190
7191 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7192 * math/fromfp.h: Include <fenv_private.h>.
7193 * math/math-narrow.h: Likewise.
7194 * math/s_cexp_template.c: Likewise.
7195 * math/s_csin_template.c: Likewise.
7196 * math/s_csinh_template.c: Likewise.
7197 * math/s_ctan_template.c: Likewise.
7198 * math/s_ctanh_template.c: Likewise.
7199 * math/s_iseqsig_template.c: Likewise.
7200 * math/w_acos_compat.c: Likewise.
7201 * math/w_acosf_compat.c: Likewise.
7202 * math/w_acosl_compat.c: Likewise.
7203 * math/w_asin_compat.c: Likewise.
7204 * math/w_asinf_compat.c: Likewise.
7205 * math/w_asinl_compat.c: Likewise.
7206 * math/w_ilogb_template.c: Likewise.
7207 * math/w_j0_compat.c: Likewise.
7208 * math/w_j0f_compat.c: Likewise.
7209 * math/w_j0l_compat.c: Likewise.
7210 * math/w_j1_compat.c: Likewise.
7211 * math/w_j1f_compat.c: Likewise.
7212 * math/w_j1l_compat.c: Likewise.
7213 * math/w_jn_compat.c: Likewise.
7214 * math/w_jnf_compat.c: Likewise.
7215 * math/w_llogb_template.c: Likewise.
7216 * math/w_log10_compat.c: Likewise.
7217 * math/w_log10f_compat.c: Likewise.
7218 * math/w_log10l_compat.c: Likewise.
7219 * math/w_log2_compat.c: Likewise.
7220 * math/w_log2f_compat.c: Likewise.
7221 * math/w_log2l_compat.c: Likewise.
7222 * math/w_log_compat.c: Likewise.
7223 * math/w_logf_compat.c: Likewise.
7224 * math/w_logl_compat.c: Likewise.
7225 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7226 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7227 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7228 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7229 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7230 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7231 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7232 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7233 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7234 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7235 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7236 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7237 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7238 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7239 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7240 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7241 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7242 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7243 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7244 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7245 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7246 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7247 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7248 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7249 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7250 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7251 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7252 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7253 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7254 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7255 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7256 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7257 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7258 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7259 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7260 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7261 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7262 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7263 * sysdeps/ieee754/k_standardl.c: Likewise.
7264 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7265 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7266 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7267 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7268 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7269 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7270 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7271 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7272 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7273 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7274 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7275 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7276 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7277 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7278 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7279 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7280 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7281 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7282 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7283 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7284 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7285 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7286 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7287 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7288 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7289 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7290 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7291 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7292 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7293 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7294 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7295 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7296 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7297 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7298 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7299 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7300 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7301 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7302 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7303 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7304 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7305 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7306 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7307 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7308 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7309 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7310 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7311 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7312 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7313 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7314 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7315 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7316 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7317 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7318 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7319 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7320 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7321 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7322 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7323 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7324 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7325 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7326 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7327 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7328 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7329 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7330 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7331 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7332 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7333 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7334 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7335
7336 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7337
7338 [BZ #20271]
7339 * include/stdio.h (__libc_fatal): Mention newline in comment.
7340 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7341 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7342 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7343 * nss/nsswitch.c (__nss_next2): Likewise.
7344 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7345 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7346 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7347 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7348 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7349 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7350 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7351 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7352 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7353 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7354 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7355 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7356 (__netlink_assert_response): Likewise.
7357
7358 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7359
7360 * conform/glibcconform.py: New file.
7361 * conform/list-header-symbols.py: Likewise.
7362 * conform/list-header-symbols.pl: Remove.
7363 * conform/Makefile (tests-special): Only add linknamespace tests
7364 if [PYTHON].
7365 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7366
7367 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7368
7369 [BZ #23597]
7370 * support/Makefile (libsupport-routines): Add
7371 support_copy_file_range and xcopy_file_range.
7372 * support/support.h: Include <sys/types.h>.
7373 (support_copy_file_range): New prototype.
7374 * support/support_copy_file_range.c: New file. Copied and
7375 modified from io/copy_file_range-compat.c.
7376 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7377 instead of copy_file_range.
7378 * support/xcopy_file_range.c: New file.
7379 * support/xunistd.h (xcopy_file_range): New prototype.
7380
7381 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7382
7383 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7384 xpthread_create and xpthread_join.
7385
7386 2018-08-30 Florian Weimer <fweimer@redhat.com>
7387
7388 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7389
7390 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7391
7392 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7393 if malloc fails.
7394
7395 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7396
7397 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7398 and minus_oflow as non-finite.
7399
7400 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7401
7402 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7403 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7404 moved to fenv_private.h except for ...
7405 (TOINT_INTRINSICS): Kept in math_private.h.
7406 (roundtoint): Likewise.
7407 (converttoint): Likewise.
7408 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7409 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7410 * sysdeps/arm/math_private.h: Remove.
7411 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7412 ....
7413 * sysdeps/generic/math_private.h: ... this file. Include
7414 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7415 Include <fenv_private.h>. Remove functions and macros moved to
7416 fenv_private.h.
7417 * sysdeps/i386/fpu/math_private.h: Remove.
7418 * sysdeps/mips/math_private.h: Move to ....
7419 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7420 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7421 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7422 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7423 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7424 * sysdeps/powerpc/fpu/math_private.h: Do not include
7425 <fenv_private.h>.
7426 * sysdeps/riscv/rvf/math_private.h: Move to ....
7427 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7428 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7429 <fenv_private.h>.
7430 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7431 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7432 * sysdeps/sparc/fpu/math_private.h: Remove.
7433 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7434 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7435 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7436 <fenv_private.h>.
7437 * sysdeps/x86_64/fpu/math_private.h: Do not include
7438 <sysdeps/i386/fpu/fenv_private.h>.
7439
7440 2018-08-28 Florian Weimer <fweimer@redhat.com>
7441
7442 [BZ #23578]
7443 * posix/tst-regcomp-truncated.c: New file.
7444 * posix/Makefile (tests): Add it.
7445 (tst-regcomp-truncated.out): Depend on generated locales.
7446
7447 2018-08-28 Florian Weimer <fweimer@redhat.com>
7448
7449 * support/test-container.c (main): Treat unshare failure with
7450 EPERM as an unsupported test.
7451
7452 2018-08-28 Florian Weimer <fweimer@redhat.com>
7453
7454 [BZ #23520]
7455 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7456 * nscd/netgroupcache.c
7457 (addgetnetgrentX): Add tofreep parameter. Do not free
7458 heap-allocated buffer.
7459 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7460 (addgetnetgrentX_ignore): New function.
7461 (addgetnetgrent): Call it.
7462 (readdgetnetgrent): Likewise.
7463
7464 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7465
7466 * string/memmem.c: Use memcmp for first match.
7467
7468 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7469
7470 [BZ #17426]
7471 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7472
7473 2018-08-27 DJ Delorie <dj@redhat.com>
7474
7475 * support/Makefile (others): Don't list programs explicitly as a
7476 dependency of "others".
7477
7478 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7479
7480 * sysdeps/generic/math-tests-trap-force.h: New file.
7481 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7482 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7483 * sysdeps/powerpc/math-tests.h: Remove file.
7484 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7485
7486 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7487 Torvald Riegel <triegel@redhat.com>
7488
7489 [BZ #23538]
7490 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7491 Update r to include the set wake-request flag if waiters are
7492 remaining after spinning.
7493
7494 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7495
7496 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7497
7498 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7499
7500 [BZ #23578]
7501 regex: fix uninitialized memory access
7502 I introduced this bug into gnulib in commit
7503 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7504 eventually it was merged into glibc. The bug was found by
7505 project-repo <bugs@feusi.co> and reported here:
7506 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7507 Diagnosis and draft fix reported by Assaf Gordon here:
7508 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7509 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7510 * posix/regex_internal.c (build_wcs_upper_buffer):
7511 Fix bug when mbrtowc returns 0.
7512
7513 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7514
7515 * po/be.po: Update translation.
7516
7517 2018-08-24 DJ Delorie <dj@delorie.com>
7518
7519 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7520 $(libunwind).
7521
7522 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7523
7524 [BZ #23400]
7525 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7526 create temporary files in source tree.
7527
7528 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7529
7530 * sysdeps/generic/math-tests-trap.h: New file.
7531 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7532 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7533 * sysdeps/aarch64/math-tests.h: Remove file.
7534 * sysdeps/arm/math-tests.h: Likewise.
7535 * sysdeps/riscv/math-tests.h: Likewise.
7536 * sysdeps/aarch64/math-tests-trap.h: New file.
7537 * sysdeps/arm/math-tests-trap.h: Likewise.
7538 * sysdeps/riscv/math-tests-trap.h: Likewise.
7539
7540 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7541
7542 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7543 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7544 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7545 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7546 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7547 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7548 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7549 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7550 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7551 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7552 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7553 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7554 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7555 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7556 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7557 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7558 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7559 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7560
7561 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7562
7563 * sysdeps/generic/math-tests-exceptions.h: New file.
7564 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7565 (EXCEPTION_TESTS_float): Do not define here.
7566 (EXCEPTION_TESTS_double): Likewise.
7567 (EXCEPTION_TESTS_long_double): Likewise.
7568 (EXCEPTION_TESTS_float128): Likewise.
7569 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7570 Likewise.
7571 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7572 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7573 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7574 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7575 * sysdeps/mips/math-tests.h: Likewise.
7576 * sysdeps/nios2/math-tests.h: Likewise.
7577 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7578 (EXCEPTION_TESTS_float): Do not define here.
7579 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7580 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7581 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7582
7583 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7584
7585 * NEWS: Move optimized sinf entry to 2.29.
7586
7587 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7588
7589 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7590
7591 2018-08-22 DJ Delorie <dj@redhat.com>
7592
7593 * Makefile (testroot.pristine): New rules to initialize the
7594 test-in-container "testroot".
7595 * Makerules (all-testsuite): Add tests-container.
7596 * Rules (tests-expected): Add tests-container.
7597 (binaries-all-tests): Likewise.
7598 (tests-container): New, run these tests in the testroot container.
7599 * support/Makefile (others): Add *-container, support_paths.c,
7600 xmkdirp, and links-dso-program.
7601 * support/links-dso-program-c.c: New.
7602 * support/links-dso-program.cc: New.
7603 * support/test-container.c: New.
7604 * support/shell-container.c: New.
7605 * support/echo-container.c: New.
7606 * support/true-container.c: New.
7607 * support/xmkdirp.c: New.
7608 * support/xsymlink.c: New.
7609 * support/support_paths.c: New.
7610 * support/support.h: Add support paths prototypes.
7611 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7612
7613 * nss/tst-nss-test3.c: Convert to test-in-container.
7614 * nss/tst-nss-test3.root/: New.
7615
7616 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7617
7618 regex: port Gnulib code to z/OS POSIX environment
7619 Problem reported by Arnold Robbins in:
7620 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7621 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7622 Undef.
7623
7624 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7625
7626 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7627 (ROUNDING_TESTS_double): Remove.
7628 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7629 (ROUNDING_TESTS_double): Remove.
7630 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7631 (ROUNDING_TESTS_double): Remove.
7632 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7633 (ROUNDING_TESTS_float): Remove.
7634 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7635 (ROUNDING_TESTS_float): Remove.
7636 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7637 (ROUNDING_TESTS_float): Remove.
7638 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7639 !TEST_MATHVEC here.
7640 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7641 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7642
7643 * sysdeps/generic/math-tests-rounding.h: New file.
7644 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7645 (ROUNDING_TESTS_float): Do not define here.
7646 (ROUNDING_TESTS_double): Likewise.
7647 (ROUNDING_TESTS_long_double): Likewise.
7648 (ROUNDING_TESTS_float128): Likewise.
7649 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7650 (ROUNDING_TESTS_double): Undefine before defining.
7651 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7652 (ROUNDING_TESTS_double): Undefine before defining.
7653 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7654 (ROUNDING_TESTS_double): Undefine before defining.
7655 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7656 (ROUNDING_TESTS_float): Undefine before defining.
7657 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7658 (ROUNDING_TESTS_float): Undefine before defining.
7659 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7660 (ROUNDING_TESTS_float): Undefine before defining.
7661 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7662 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7663 not define here.
7664 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7665 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7666 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7667 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7668 (ROUNDING_TESTS_float): Do not define here.
7669 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7670 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7671 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7672 (ROUNDING_TESTS_float): Likewise.
7673 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7674 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7675 * sysdeps/mips/math-tests.h [__mips_soft_float]
7676 (ROUNDING_TESTS_float): Likewise.
7677 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7678 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7679 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7680 (ROUNDING_TESTS_double): Likewise.
7681 (ROUNDING_TESTS_long_double): Likewise.
7682
7683 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7684
7685 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7686 (PF_XDP): New macro.
7687 (AF_XDP): New macro.
7688 (SOL_XDP): New macro.
7689
7690 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7691
7692 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7693 (TCP_INQ): Likewise.
7694 (TCP_CM_INQ): Likewise.
7695 (TCP_REPAIR_ON): Likewise.
7696 (TCP_REPAIR_OFF): Likewise.
7697 (TCP_REPAIR_OFF_NO_WP): Likewise.
7698 (struct tcp_zerocopy_receive): New type.
7699
7700 2018-08-21 Florian Weimer <fweimer@redhat.com>
7701
7702 * support/support.h (support_descriptor_supports_holes): Declare.
7703 * support/Makefile (libsupport-routines): Add
7704 support_descriptor_supports_holes.
7705 * support/support_descriptor_supports_holes.c: New file.
7706 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7707 and stop testing if holes are not supported.
7708 * io/test-lfs.c (do_prepare): Likewise.
7709 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7710 Likewise.
7711 * timezone/tst-tzset.c (create_tz_file): Likewise.
7712 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7713 variable.
7714 (do_prepare): Set it.
7715 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7716
7717 2018-08-21 Florian Weimer <fweimer@redhat.com>
7718
7719 [BZ #17248]
7720 * Makeconfig (+cflags): Do not sort (and deduplicate).
7721
7722 2018-08-21 Florian Weimer <fweimer@redhat.com>
7723
7724 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7725 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7726
7727 2018-08-20 Florian Weimer <fweimer@redhat.com>
7728
7729 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7730 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7731
7732 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7733
7734 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7735 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7736 and ssi_arch members.
7737
7738 * elf/elf.c (NT_VMCOREDD): New macro.
7739 (AT_MINSIGSTKSZ): Likewise.
7740
7741 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7742
7743 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7744 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7745 s_cosf-ppc64 and s_cosf-power8.
7746 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7747 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7748 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7749 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7756 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7757 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7758
7759 2018-08-17 Florian Weimer <fweimer@redhat.com>
7760
7761 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7762
7763 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7764
7765 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7766
7767 2018-08-16 Florian Weimer <fweimer@redhat.com>
7768
7769 * configure.ac: Add --with-nonshared-cflags option.
7770 * config.make.in (extra-nonshared-cflags): Set variable.
7771 * Makeconfig (CFLAGS-.oS): Use it.
7772 * manual/install.texi (Configuring and compiling): Document
7773 --with-nonshared-cflags.
7774 * configure: Regenerate.
7775 * INSTALL: Likewise.
7776
7777 2018-08-16 Florian Weimer <fweimer@redhat.com>
7778
7779 * Makeconfig (ASFLAGS): Always append required assembler flags.
7780
7781 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7782
7783 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7784 (malloc_consolidate): Likewise.
7785
7786 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7787
7788 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7789
7790 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7791
7792 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7793 every strlen call.
7794
7795 * benchtests/bench-strlen.c: Print performance numbers in json.
7796
7797 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7798
7799 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7800 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7801 only for little endian.
7802 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7803 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7804 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7805 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7806 Add check for little endian.
7807 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7808 (__strcmp_power9): Add check for little endian.
7809 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7810 Add check for little endian.
7811 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7812 (__strncmp_power9): Add check for little endian.
7813 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7814 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7815 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7816 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7817 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7818
7819 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7820
7821 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7822 [!STRLEN](STRLEN): Set to __strlen.
7823 * sysdeps/aarch64/multiarch/strlen.c: New file.
7824 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7825 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7826 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7827 (__libc_ifunc_impl_list): Add strlen.
7828 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7829 strlen_generic and strlen_asimd.
7830
7831 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7832
7833 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7834 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7835 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7836
7837 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7838
7839 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7840
7841 2018-08-14 Florian Weimer <fweimer@redhat.com>
7842
7843 [BZ #23519]
7844 * include/stdio.h (__vfxprintf): Declare.
7845 * stdio-common/fxprintf.c (__vfxprintf): New function.
7846 (__fxprintf): Call it.
7847 * misc/err.c (convert_and_print): Remove function.
7848 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7849 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7850 * misc/Makefile (tests): Add tst-warn-wide.
7851 * misc/tst-warn-wide.c: New file.
7852
7853 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7854 Szabolcs Nagy <szabolcs.nagy@arm.com>
7855
7856 * NEWS: Mention sinf, cosf, sincosf.
7857 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7858 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7859 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7860 constants rather than including generic sincosf.h.
7861 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7862 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7863 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7864 (reduced_cos): Remove.
7865 (sinf_poly): New function.
7866 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7867
7868 2018-08-14 Florian Weimer <fweimer@redhat.com>
7869
7870 [BZ #23521]
7871 [BZ #23522]
7872 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7873 processing, bail out if no room, and close the stream before
7874 returning ERANGE.
7875 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7876 (tst-nss-files-alias-leak): Link with libdl.
7877 (tst-nss-files-alias-leak.out): Depend on nss_files.
7878
7879 * nss/tst-nss-files-alias-leak.c: New file.
7880
7881 2018-08-14 Florian Weimer <fweimer@redhat.com>
7882
7883 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7884 server_user, stat_user.
7885
7886 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7887
7888 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7889 version to 4.18.
7890 (io_pgetevents): New syscall.
7891 (rseq): Likewise.
7892
7893 * manual/install.texi (Configuring and compiling): Do not list
7894 tools used for testing pretty printers here.
7895 (Tools for Compilation): List Python, PExpect and GDB here.
7896 Update descriptions of uses of Perl and Python.
7897 * INSTALL: Regenerate.
7898
7899 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7900 version to 4.18.
7901
7902 2018-08-13 Florian Weimer <fweimer@redhat.com>
7903
7904 * misc/error.c (error): Add missing va_end call.
7905 (error_at_line): Likewise.
7906
7907 2018-08-13 Florian Weimer <fweimer@redhat.com>
7908
7909 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7910
7911 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7912
7913 * benchtests/scripts/benchout.schema.json (properties): Add
7914 new properties.
7915
7916 * benchtests/bench-skeleton.c (main): Add duration and
7917 iterations attributes.
7918
7919 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7920
7921 regex: Gnulib unibyte RRI uses bytes not chars
7922 Adjust the non-glibc code to agree with what Gawk needs for
7923 rational range interpretation (RRI) for regular expression ranges.
7924 In unibyte locales, Gawk wants ranges to use the underlying byte
7925 rather than the character code point. This change does not affect
7926 glibc proper.
7927 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7928 In unibyte locales, use the byte value rather than
7929 running it through btowc.
7930
7931 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7932
7933 * sysdeps/generic/math-tests-snan.h: New file.
7934 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7935 (SNAN_TESTS_float): Do not define here.
7936 (SNAN_TESTS_double): Likewise.
7937 (SNAN_TESTS_long_double): Likewise.
7938 (SNAN_TESTS_float128): Likewise.
7939 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7940 * sysdeps/i386/fpu/math-tests.h: Remove file.
7941 * sysdeps/ia64/math-tests-snan.h: New file.
7942 * sysdeps/ia64/math-tests.h: Remove file.
7943 * sysdeps/x86/math-tests.h: Likewise.
7944 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7945
7946 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7947 Szabolcs Nagy <szabolcs.nagy@arm.com>
7948
7949 * math/Makefile: Add s_sincosf_data.c.
7950 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7951 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7952 (sincosf_poly): Likewise.
7953 (reduce_small): Likewise.
7954 (reduce_large): Likewise.
7955 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7956 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7957 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7958 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7959
7960 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7961 Szabolcs Nagy <szabolcs.nagy@arm.com>
7962
7963 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7964 (converttoint): Use lround.
7965 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7966 document the semantics when TOINT_INTRINSICS is set.
7967 (converttoint): Likewise.
7968 (TOINT_RINT): Remove.
7969 (TOINT_SHIFT): Remove.
7970 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7971 path.
7972
7973 2018-08-10 Florian Weimer <fweimer@redhat.com>
7974
7975 [BZ #23497]
7976 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7977 function.
7978 (__old_getdents64): Use getdents64. Convert entries without
7979 moving them.
7980 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7981 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7982 tst-readdir64-compat.
7983
7984 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7985
7986 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7987 Fix unwind.
7988
7989 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7990
7991 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7992 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7993 code to s390x-mcount.h and #include it.
7994 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7995 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7996 (__fentry__): Add.
7997
7998 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7999
8000 * stdlib/Versions: Remove __fentry__.
8001 * sysdeps/i386/Versions: Add __fentry__.
8002 * sysdeps/x86_64/Versions: Add __fentry__.
8003
8004 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8005
8006 * sysdeps/s390/Makefile: Register the new tests.
8007 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8008 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8009 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8010 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8011 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8012 * sysdeps/s390/tst-dl-runtime.c: New file.
8013
8014 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8015
8016 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8017 Do not clobber R0.
8018
8019 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8020
8021 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8022 Do not clobber R0.
8023
8024 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8025
8026 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8027 Do not clobber R0.
8028
8029 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8030
8031 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8032 Do not clobber R0.
8033
8034 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8035
8036 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8037 Use symbolic offsets for stack variables.
8038
8039 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8040
8041 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8042 Use symbolic offsets for stack variables.
8043
8044 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8045
8046 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8047 Use symbolic offsets for stack variables.
8048
8049 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8050
8051 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8052 Use symbolic offsets for stack variables.
8053
8054 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8055
8056 * math/gen-libm-test.py: New file.
8057 * math/gen-libm-test.pl: Remove.
8058 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8059 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8060 gen-libm-test.pl.
8061 ($(libm-test-c-noauto-obj)): Likewise.
8062 ($(libm-test-c-auto-obj)): Likewise.
8063 ($(libm-test-c-narrow-obj)): Likewise.
8064 (regen-ulps): Likewise.
8065 * math/README.libm-test: Update references to gen-libm-test.pl.
8066 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8067 referencing gen-libm-test.pl.
8068 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8069 * math/libm-test-support.c: Likewise.
8070 * math/libm-test-support.h: Likewise.
8071 * sysdeps/generic/libm-test-ulps: Likewise.
8072
8073 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8074
8075 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8076 Fix value.
8077
8078 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8079
8080 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8081 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8082
8083 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8084
8085 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8086 symbols.
8087 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8088 __pthread_setspecific): Add hidden proto.
8089 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8090 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8091
8092 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8093
8094 * benchtests/bench-string.h (buf1_size, buf2_size): New
8095 variables.
8096 (init_sizes): New function.
8097 (test_init): Use it.
8098 (alloc_buf, exit_error): New functions.
8099 (alloc_bufs): Use ALLOC_BUF.
8100 (realloc_bufs): Remove.
8101 * benchtests/bench-memcmp.c (do_test): Adjust.
8102 * benchtests/bench-memset-large.c (do_test): Likewise.
8103 * benchtests/bench-memset-walk.c (do_test): Likewise.
8104 * benchtests/bench-memset.c (do_test): Likewise.
8105 * benchtests/bench-strncmp.c (do_test): Likewise.
8106
8107 2018-08-06 Andreas Schwab <schwab@suse.de>
8108
8109 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8110 of CONST_THREAD_AREA.
8111
8112 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8113
8114 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8115 (STATE_SAVE_MASK): Likewise.
8116 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8117 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8118 (STATE_SAVE_MASK): Likewise.
8119 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8120 instead of <cpu-features.h>.
8121
8122 2018-08-03 DJ Delorie <dj@redhat.com>
8123
8124 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8125 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8126
8127 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8128
8129 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8130
8131 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8132 after TEST_* calls.
8133 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8134 * math/libm-test-logb.inc (logb_test_data): Likewise.
8135
8136 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8137
8138 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8139 * string/strstr.c (AVAILABLE): Likewise.
8140
8141 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8142
8143 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8144 <init-arch.h>.
8145 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8146 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8147 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8148
8149 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8150
8151 * po/be.po: Update translation.
8152
8153 * po/be.po: Update translation.
8154
8155 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8156
8157 * sysdeps/x86/cpu-features-offsets.sym
8158 (rtld_global_ro_offsetof): Removed.
8159 (CPU_FEATURES_SIZE): Likewise.
8160 (CPUID_OFFSET): Likewise.
8161 (CPUID_SIZE): Likewise.
8162 (CPUID_EAX_OFFSET): Likewise.
8163 (CPUID_EBX_OFFSET): Likewise.
8164 (CPUID_ECX_OFFSET): Likewise.
8165 (CPUID_EDX_OFFSET): Likewise.
8166 (FAMILY_OFFSET): Likewise.
8167 (MODEL_OFFSET): Likewise.
8168 (FEATURE_OFFSET): Likewise.
8169 (FEATURE_SIZ): Likewise.
8170 (COMMON_CPUID_INDEX_1): Likewise.
8171 (COMMON_CPUID_INDEX_7): Likewise.
8172 (FEATURE_INDEX_1): Likewise.
8173 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8174
8175 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8176
8177 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8178 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8179 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8180 (install-locales): Depend on install-locale-archive.
8181 (install-locale-archive): Define.
8182 (install-locale-files): Define.
8183 (build-one-locale): Define macro.
8184 * manual/install.texi (Running make install): Document.
8185 * manual/INSTALL: Regenerate.
8186
8187 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8188
8189 * benchtests/scripts/compare_strings.py: Import traceback.
8190 (parse_file): Pretty-print error.
8191
8192 * NEWS: Mention the change.
8193 * elf/dl-tunables.list: Rename tune namespace to cpu.
8194 * sysdeps/powerpc/dl-tunables.list: Likewise.
8195 * sysdeps/x86/dl-tunables.list: Likewise.
8196 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8197 cpu.name.
8198 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8199 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8200 * manual/README.tunables: Likewise.
8201 * manual/tunables.texi: Likewise.
8202 * sysdeps/powerpc/cpu-features.c: Likewise.
8203 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8204 (init_cpu_features): Likewise.
8205 * sysdeps/x86/cpu-features.c: Likewise.
8206 * sysdeps/x86/cpu-features.h: Likewise.
8207 * sysdeps/x86/cpu-tunables.c: Likewise.
8208 * sysdeps/x86_64/Makefile: Likewise.
8209 * sysdeps/x86/dl-cet.c: Likewise.
8210
8211 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8212
8213 [BZ #23479]
8214 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8215 [__mips_hard_float].
8216 (FE_UNDERFLOW): Likewise.
8217 (FE_OVERFLOW): Likewise.
8218 (FE_DIVBYZERO): Likewise.
8219 (FE_INVALID): Likewise.
8220 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8221 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8222 (FE_UPWARD): Likewise.
8223 (FE_DOWNWARD): Likewise.
8224 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8225 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8226 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8227 [__mips_hard_float].
8228 (FP_ROUNDMODE): Likewise.
8229 (FP_RND_NEAREST): Likewise.
8230 (FP_RND_ZERO): Likewise.
8231 (FP_RND_PINF): Likewise.
8232 (FP_RND_MINF): Likewise.
8233 (FP_EX_INVALID): Likewise.
8234 (FP_EX_OVERFLOW): Likewise.
8235 (FP_EX_UNDERFLOW): Likewise.
8236 (FP_EX_DIVZERO): Likewise.
8237 (FP_EX_INEXACT): Likewise.
8238 (FP_INIT_ROUNDMODE): Likewise.
8239 * sysdeps/mips/nofpu/fesetenv.c: New file.
8240 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8241
8242 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8243
8244 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8245 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8246 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8247 conditional on [FE_UPWARD].
8248
8249 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8250
8251 regex: fix memory leak in Gnulib
8252 Problem and fix reported by Assaf Gordon in:
8253 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8254 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8255 range_ends members too, as they are defined in 'struct
8256 re_charset_t' even if not _LIBC. This affects only Gnulib.
8257
8258 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8259
8260 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8261 ...
8262 (get_common_indices): This.
8263 (init_cpu_features): Updated.
8264
8265 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8266
8267 * sysdeps/generic/math-tests-snan-payload.h: New file.
8268 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8269 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8270 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8271 * sysdeps/generic/math-tests.h: Include
8272 <math-tests-snan-payload.h>.
8273 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8274 * sysdeps/hppa/math-tests.h: Remove file.
8275 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8276 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8277 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8278 Likewise.
8279
8280 * sysdeps/generic/math-tests-snan-cast.h: New file.
8281 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8282 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8283 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8284 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8285
8286 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8287
8288 * version.h (RELEASE): Set to "development".
8289 (VERSION): Set to "2.28.9000".
8290 * NEWS (2.29): New section.
8291
8292 * version.h (RELEASE): Set to "stable".
8293 (VERSION): Set to "2.28".
8294 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8295 * NEWS: Add the list of bugs fixed in 2.28.
8296
8297 * po/ca.po: Update to latest version.
8298 * po/cs.po: Likewise
8299 * po/da.po: Likewise
8300 * po/el.po: Likewise
8301 * po/eo.po: Likewise
8302 * po/es.po: Likewise
8303 * po/fi.po: Likewise
8304 * po/fr.po: Likewise
8305 * po/gl.po: Likewise
8306 * po/hu.po: Likewise
8307 * po/ia.po: Likewise
8308 * po/id.po: Likewise
8309 * po/it.po: Likewise
8310 * po/ja.po: Likewise
8311 * po/ko.po: Likewise
8312 * po/lt.po: Likewise
8313 * po/nb.po: Likewise
8314 * po/nl.po: Likewise
8315 * po/pt_BR.po: Likewise
8316 * po/ru.po: Likewise
8317 * po/rw.po: Likewise
8318 * po/sk.po: Likewise
8319 * po/sl.po: Likewise
8320 * po/tr.po: Likewise
8321 * po/zh_CN.po: Likewise
8322 * po/zh_TW.po: Likewise
8323
8324 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8325
8326 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8327 initialization...
8328 (init): ... before initializing libpthread.
8329
8330 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8331 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8332 (__mach_setup_tls): ... new function.
8333 (mach_setup_tls): New alias.
8334 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8335 __mach_setup_thread.
8336 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8337 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8338 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8339 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8340
8341 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8342
8343 * manual/install.texi: Update versions.
8344 * INSTALL: Regenerate.
8345
8346 * manual/contrib.texi (Contributors): Update contributions.
8347
8348 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8349
8350 * po/be.po: Update translations.
8351
8352 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8353
8354 * sysdeps/sh/libm-test-ulps: Update.
8355
8356 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8357
8358 * po/bg.po: Update translations.
8359 * po/de.po: Likewise.
8360 * po/hr.po: Likewise.
8361 * po/pt_BR.po: Likewise.
8362 * po/sv.po: Likewise.
8363 * po/vi.po: Likewise.
8364
8365 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8366
8367 [BZ #23467]
8368 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8369 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8370 (CFLAGS-tst-cet-property-1.o): New.
8371 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8372 ($(objpfx)tst-cet-property-2): Likewise.
8373 ($(objpfx)tst-cet-property-2.out): Likewise.
8374 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8375 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8376 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8377 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8378 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8379
8380 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8381
8382 [BZ #23458]
8383 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8384
8385 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8386
8387 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8388 __sbrk): Do not set attribute_hidden.
8389 * sysdeps/mach/hurd/not-errno.h: New file.
8390 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8391 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8392
8393 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8394
8395 * po/uk.po: Update translations.
8396 * po/cs.po: Likewise.
8397 * po/pl.po: Likewise.
8398
8399 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8400
8401 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8402 parse beyond the note end.
8403
8404 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8405
8406 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8407 kernel does not support OFD locks.
8408 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8409
8410 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8411
8412 * sysdeps/mach/hurd/Versions (libc): Make __access and
8413 __access_noerrno external so they can override the ld symbols.
8414 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8415 __writev, __open64, __access_noerrno extern so they can be overrided.
8416 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8417 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8418
8419 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8420
8421 * po/libc.pot: Regenerate.
8422
8423 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8424
8425 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8426
8427 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8428
8429 [BZ #23459]
8430 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8431 function.
8432 (init_cpu_features): Call get_extended_indices for both Intel
8433 and AMD CPUs.
8434 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8435 Remove "for AMD" comment.
8436
8437 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8438
8439 [BZ # 23456]
8440 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8441 COMMON_CPUID_INDEX_80000001.
8442
8443 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8444
8445 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8446 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8447
8448 2018-07-26 Florian Weimer <fweimer@redhat.com>
8449
8450 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8451 aliases for symbols not in the implementation namespace.
8452
8453 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8454
8455 [BZ #23393]
8456 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8457 lowercase in LATIN script.
8458 * localedata/Makefile (test-input): Add en_US.UTF-8.
8459 * localedata/en_US.UTF-8.in: New file.
8460 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8461 and restore old tests.
8462 * posix/tst-regexloc.c (do_test): Add back range expression test.
8463
8464 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8465
8466 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8467
8468 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8469
8470 * nptl/threads.h: Move to ...
8471 * sysdeps/nptl/threads.h: ... here.
8472 * sysdeps/hurd/stdc-predef.h: New file.
8473
8474 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8475
8476 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8477 tst-cet-setcontext-1 if CET is enabled.
8478 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8479 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8480
8481 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8482
8483 * include/threads.h: Move to ...
8484 * sysdeps/nptl/threads.h: ... here.
8485 * sysdeps/htl/threads.h: New file.
8486 * conform/Makefile (linknamespace-libs-ISO11): Use
8487 static-thread-library instead of linking libpthread.
8488 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8489
8490 2018-07-25 Florian Weimer <fweimer@redhat.com>
8491
8492 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8493 nanoseconds into seconds.
8494 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8495 (do_test): Likewise.
8496 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8497 (do_test): Likewise. Avoid nanosecond overflow and spurious
8498 timeouts due to system load.
8499 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8500 (child_wait): Increment it.
8501 (do_test): Wait as long as necessary until all expected threads
8502 have arrived.
8503
8504 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8505 H.J. Lu <hongjiu.lu@intel.com>
8506
8507 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8508 __ssp.
8509 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8510 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8511 (__push___start_context): New.
8512 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8513 <asm/prctl.h>.
8514 (__getcontext): Record the current shadow stack base. Save the
8515 caller's shadow stack pointer and base.
8516 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8517 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8518 (__push___start_context): New prototype.
8519 (__makecontext): Call __push___start_context to allocate a new
8520 shadow stack, push __start_context onto the new stack as well
8521 as the new shadow stack.
8522 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8523 <asm/prctl.h>.
8524 (__setcontext): Restore the target shadow stack.
8525 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8526 <asm/prctl.h>.
8527 (__swapcontext): Record the current shadow stack base. Save
8528 the caller's shadow stack pointer and base. Restore the target
8529 shadow stack.
8530 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8531 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8532 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8533
8534 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8535
8536 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8537 tst-setcontext8 and tst-setcontext9.
8538 * stdlib/tst-setcontext6.c: New file.
8539 * stdlib/tst-setcontext7.c: Likewise.
8540 * stdlib/tst-setcontext8.c: Likewise.
8541 * stdlib/tst-setcontext9.c: Likewise.
8542
8543 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8544
8545 * stdlib/Makefile ((tests): Add tst-setcontext5.
8546 * stdlib/tst-setcontext5.c: New file.
8547
8548 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8549
8550 * stdlib/Makefile (tests): Add tst-setcontext4.
8551 * stdlib/tst-setcontext4.c: New file.
8552
8553 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8554
8555 * stdlib/Makefile (tests): Add tst-swapcontext1.
8556 * stdlib/tst-swapcontext1.c: New test.
8557
8558 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8559
8560 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8561 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8562 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8563 and tst-cet-legacy-4c.
8564 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8565 and tst-cet-legacy-mod-4.
8566 (CFLAGS-tst-cet-legacy-2.c): New.
8567 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8568 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8569 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8570 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8571 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8572 ($(objpfx)tst-cet-legacy-1): Likewise.
8573 ($(objpfx)tst-cet-legacy-2): Likewise.
8574 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8575 ($(objpfx)tst-cet-legacy-2a): Likewise.
8576 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8577 ($(objpfx)tst-cet-legacy-4): Likewise.
8578 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8579 ($(objpfx)tst-cet-legacy-4a): Likewise.
8580 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8581 (tst-cet-legacy-4a-ENV): Likewise.
8582 ($(objpfx)tst-cet-legacy-4b): Likewise.
8583 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8584 (tst-cet-legacy-4b-ENV): Likewise.
8585 ($(objpfx)tst-cet-legacy-4c): Likewise.
8586 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8587 (tst-cet-legacy-4c-ENV): Likewise.
8588 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8589 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8590 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8591 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8592 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8593 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8594 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8595 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8596 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8597 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8598 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8599
8600 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8601
8602 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8603 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8604 with ssp_base.
8605 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8606 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8607 with ssp_base.
8608
8609 2018-07-25 Andreas Schwab <schwab@suse.de>
8610
8611 [BZ #23442]
8612 * locale/weightwc.h (findidx): Handle the case where usrc is a
8613 prefix of cp but one character too short.
8614
8615 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8616
8617 * NEWS: Add ISO C threads addition.
8618
8619 2018-07-24 Florian Weimer <fweimer@redhat.com>
8620
8621 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8622 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8623 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8624 4.13.
8625
8626 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8629 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8630 <sys/prctl.h> and <asm/prctl.h>.
8631 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8632 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8633 and <asm/prctl.h>.
8634 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8635 ARCH_CET_LEGACY_BITMAP.
8636 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8637 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8638 * sysdeps/x86/libc-start.c: Include <startup.h>.
8639
8640 2018-07-24 Florian Weimer <fweimer@redhat.com>
8641
8642 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8643 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8644
8645 2018-07-24 Rical Jasan <rj@2c3t.io>
8646 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8647 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8648
8649 [BZ #14092]
8650 * manual/debug.texi: Update adjacent chapter name.
8651 * manual/probes.texi: Likewise.
8652 * manual/threads.texi (ISO C Threads): New section.
8653 (POSIX Threads): Convert to a section.
8654
8655 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8656 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8657
8658 [BZ# 14092]
8659 * nptl/Makefile (tests): Add new test files.
8660 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8661 * nptl/tst-cnd-basic.c: Likewise.
8662 * nptl/tst-cnd-broadcast.c: Likewise.
8663 * nptl/tst-cnd-timedwait.c: Likewise.
8664 * nptl/tst-mtx-basic.c: Likewise.
8665 * nptl/tst-mtx-recursive.c: Likewise.
8666 * nptl/tst-mtx-timedlock.c: Likewise.
8667 * nptl/tst-mtx-trylock.c: Likewise.
8668 * nptl/tst-thrd-basic.c: Likewise.
8669 * nptl/tst-thrd-detach.c: Likewise.
8670 * nptl/tst-thrd-sleep.c: Likewise.
8671 * nptl/tst-tss-basic.c: Likewise.
8672
8673 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8674
8675 [BZ #14092]
8676 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8677 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8678 symbols.
8679 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8680 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8681 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8682 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8683 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8684 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8685 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8686 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8687 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8688 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8689 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8690 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8692 Likewise.
8693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8694 Likewise.
8695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8696 Likewise.
8697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8698 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8699 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8700 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8701 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8702 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8703 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8704 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8705 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8706 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8707 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8708 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8709 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8710 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8711 Likewise.
8712 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8713 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8714 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8715 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8716 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8717 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8718 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8719 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8720 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8721 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8722 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8723 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8724 ikewise.
8725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8727 Likewise.
8728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8729 Likewise.
8730 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8731 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8732 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8733 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8734 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8735 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8736 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8737 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8738
8739 [BZ #14092]
8740 * conform/data/threads.h-data (thread_local): New macro.
8741 (TSS_DTOR_ITERATIONS): Likewise.
8742 (tss_t): New type.
8743 (tss_dtor_t): Likewise.
8744 (tss_create): New function.
8745 (tss_get): Likewise.
8746 (tss_set): Likewise.
8747 (tss_delete): Likewise.
8748 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8749 tss_get, and tss_set objects.
8750 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8751 * nptl/tss_create.c: New file.
8752 * nptl/tss_delete.c: Likewise.
8753 * nptl/tss_get.c: Likewise.
8754 * nptl/tss_set.c: Likewise.
8755 * sysdeps/nptl/threads.h (thread_local): New define.
8756 (TSS_DTOR_ITERATIONS): Likewise.
8757 (tss_t): New typedef.
8758 (tss_dtor_t): Likewise.
8759 (tss_create): New prototype.
8760 (tss_get): Likewise.
8761 (tss_set): Likewise.
8762 (tss_delete): Likewise.
8763
8764 [BZ #14092]
8765 * conform/data/threads.h-data (cnd_t): New type.
8766 (cnd_init): New function.
8767 (cnd_signal): Likewise.
8768 (cnd_broadcast): Likewise.
8769 (cnd_wait): Likewise.
8770 (cnd_timedwait): Likewise.
8771 (cnd_destroy): Likewise.
8772 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8773 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8774 object.
8775 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8776 * nptl/cnd_broadcast.c: New file.
8777 * nptl/cnd_destroy.c: Likewise.
8778 * nptl/cnd_init.c: Likewise.
8779 * nptl/cnd_signal.c: Likewise.
8780 * nptl/cnd_timedwait.c: Likewise.
8781 * nptl/cnd_wait.c: Likewise.
8782 * sysdeps/nptl/threads.h (cnd_t): New type.
8783 (cnd_init): New prototype.
8784 (cnd_signa): Likewise.
8785 (cnd_broadcast): Likewise.
8786 (cnd_wait): Likewise.
8787 (cnd_timedwait): Likewise.
8788 (cnd_destroy): Likewise.
8789
8790 [BZ #14092]
8791 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8792 (once_flag): New type.
8793 (call_once): New function.
8794 * nptl/Makefile (libpthread-routines): Add call_once object.
8795 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8796 * nptl/call_once.c: New file.
8797 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8798 (once_flag): New type.
8799 (call_once): New prototype.
8800
8801 [BZ #14092]
8802 * conform/data/threads.h-data (mtx_plain): New constant.
8803 (mtx_recursive): Likewise.
8804 (mtx_timed): Likewise.
8805 (mtx_t): New type.
8806 (mtx_init): New function.
8807 (mtx_lock): Likewise.
8808 (mtx_timedlock): Likewise.
8809 (mtx_trylock): Likewise.
8810 (mtx_unlock): Likewise.
8811 (mtx_destroy): Likewise.
8812 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8813 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8814 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8815 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8816 * nptl/mtx_destroy.c: New file.
8817 * nptl/mtx_init.c: Likewise.
8818 * nptl/mtx_lock.c: Likewise.
8819 * nptl/mtx_timedlock.c: Likewise.
8820 * nptl/mtx_trylock.c: Likewise.
8821 * nptl/mtx_unlock.c: Likewise.
8822 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8823 (mtx_recursive): Likewise.
8824 (mtx_timed): Likewise.
8825 (mtx_t): New type.
8826 (mtx_init): New prototype.
8827 (mtx_lock): Likewise.
8828 (mtx_timedlock): Likewise.
8829 (mtx_trylock): Likewise.
8830 (mtx_unlock): Likewise.
8831 (mtx_destroy): Likewise.
8832
8833 [BZ #14092]
8834 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8835 (linknamespace-libs-ISO11): Add libpthread.a.
8836 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8837 functions.
8838 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8839 * nptl/Makefile (headers): Add threads.h.
8840 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8841 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8842 thrd_yield.
8843 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8844 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8845 thrd_join, thrd_sleep, and thrd_yield symbols.
8846 * nptl/descr.h (struct pthread): Add c11 field.
8847 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8848 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8849 routine with expected function prototype.
8850 (__pthread_create_2_1): Add C11 threads check based on attribute
8851 value.
8852 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8853 * nptl/thrd_create.c: New file.
8854 * nptl/thrd_current.c: Likewise.
8855 * nptl/thrd_detach.c: Likewise.
8856 * nptl/thrd_equal.c: Likewise.
8857 * nptl/thrd_exit.c: Likewise.
8858 * nptl/thrd_join.c: Likewise.
8859 * nptl/thrd_priv.h: Likewise.
8860 * nptl/thrd_sleep.c: Likewise.
8861 * nptl/thrd_yield.c: Likewise.
8862 * include/threads.h: Likewise.
8863
8864 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8865
8866 * bits/indirect-return.h: New file.
8867 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8868 * sysdeps/x86/bits/indirect-return.h: Likewise.
8869 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8870 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8871 (swapcontext): Add __INDIRECT_RETURN.
8872 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8873 (prepare_test_buffer): Use it.
8874
8875 2018-07-24 Andreas Schwab <schwab@suse.de>
8876
8877 [BZ #23448]
8878 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8879 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8880
8881 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8882
8883 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8884 Redefine if shadow stack is enabled.
8885 (SYSCALL_ERROR_LABEL): Likewise.
8886 (__vfork): Pop shadow stack and jump back to to caller directly
8887 when shadow stack is in use.
8888 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8889 Redefine if shadow stack is enabled.
8890 (SYSCALL_ERROR_LABEL): Likewise.
8891 (__vfork): Pop shadow stack and jump back to to caller directly
8892 when shadow stack is in use.
8893
8894 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8895
8896 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8897 enabled.
8898 (foo): Likewise.
8899 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8900 (foo): Likewise.
8901
8902 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8903
8904 * scripts/build-many-glibcs.py (Context.checkout): Default
8905 binutils version to 2.31 branch.
8906
8907 2018-07-20 Zong Li <zong@andestech.com>
8908
8909 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8910 URL of gcc's tarball.
8911
8912 2018-07-20 Florian Weimer <fweimer@redhat.com>
8913
8914 [BZ #23396]
8915 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8916 not compare an extra byte after the end of the weights.
8917
8918 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8919
8920 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8921 to 1.
8922 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8923 hidden prototypes.
8924 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8925 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8926 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8927 list of libraries whose stack executability is expected.
8928 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8929 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8930 variable.
8931 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8932 libc.so libpthread.so.
8933
8934 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8935
8936 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8937 SOCK_NONBLOCK.
8938 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8939 and SOCK_NONBLOCK.
8940 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8941 implement __pipe2.
8942 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8943
8944 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8945
8946 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8947 library to improve command line parsing.
8948 (__main__): make schema file as optional parameter (--schema),
8949 defaulting to benchtests/scripts/benchout.schema.json.
8950 (main): move out of the parsing stuff to __main_  and leave it
8951 only as caller of main comparison functions.
8952
8953 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8954
8955 * NEWS: Add a note for Intel CET status.
8956 * manual/install.texi: Likewise.
8957 * INSTALL: Regenerated.
8958
8959 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8960
8961 [BZ #23140]
8962 * localedata/locales/oc_FR (mon): Rename to...
8963 (alt_mon): This, then update October (typo fix).
8964 (mon): New content (genitive case, month names preceded by
8965 "de" or "d’").
8966
8967 [BZ #23422]
8968 * localedata/locales/oc_FR (abday): Update all items.
8969 (day): Update Wednesday and Saturday (typo fixes).
8970 (abmon): Update all items, except May.
8971 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8972 (LC_IDENTIFICATION): Bump the revision number and date.
8973 Keep the "category" entries in alphabetic order.
8974 (LC_ADDRESS): Remove no longer needed comment.
8975 (LC_COLLATE): Use “copy "ca_ES"”.
8976 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8977 "name_mrs".
8978
8979 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8980
8981 * grp/tst_fgetgrent.c: Include <unistd.h>.
8982 (main): Use mkstemp instead of tmpnam.
8983 * io/test-utime.c (main): Likewise.
8984 * posix/annexc.c (macrofile): Change to modifiable array.
8985 (main): Remove macrofile here.
8986 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8987 macrofile here.
8988 (check_header): Do not remove macrofile here.
8989 * posix/bug-getopt1.c: Include <stdlib.h>.
8990 (do_test): Use mkstemp instead of tmpnam.
8991 * posix/bug-getopt2.c: Include <stdlib.h>.
8992 (do_test): Use mkstemp instead of tmpnam.
8993 * posix/bug-getopt3.c: Include <stdlib.h>.
8994 (do_test): Use mkstemp instead of tmpnam.
8995 * posix/bug-getopt4.c: Include <stdlib.h>.
8996 (do_test): Use mkstemp instead of tmpnam.
8997 * posix/bug-getopt5.c: Include <stdlib.h>.
8998 (do_test): Use mkstemp instead of tmpnam.
8999 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9000 (main): Use mkstemp instead of tmpnam.
9001 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9002 (main): Use mkstemp instead of tmpnam.
9003 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9004 (main): use mkstemp instead of tmpnam.
9005 * stdlib/isomac.c (macrofile): Change to modifiable array.
9006 (main): Remove macrofile here.
9007 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9008 macrofile here.
9009 (check_header): Do not remove macrofile here.
9010
9011 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9012
9013 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9014 glibc.tune.x86_shstk.
9015
9016 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9017
9018 * NEWS: Mention --enable-cet.
9019 * manual/install.texi: Document --enable-cet.
9020 * INSTALL: Regenerated.
9021
9022 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9023
9024 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9025 Add _CET_NOTRACK before indirect jump to jump table.
9026
9027 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9028
9029 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9030 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9031 to jump table.
9032
9033 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9034
9035 * sysdeps/i386/i686/multiarch/strcat-sse2.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/strcpy-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/memcpy-ssse3.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-rep.S
9054 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9055 to jump table.
9056 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9057
9058 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9059
9060 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9061 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9062 to jump table.
9063
9064 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9065
9066 * sysdeps/i386/i686/multiarch/memset-sse2.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/memcmp.S (memcmp): Add _CET_NOTRACK before
9073 indirect jump to jump table.
9074
9075 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9076
9077 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9078 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9079 to jump table.
9080 (MEMCPY): Likewise.
9081
9082 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9083
9084 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9085 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9086 to jump table.
9087 (MEMCPY): Likewise.
9088
9089 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9090
9091 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9092 _CET_NOTRACK before indirect jump to jump table.
9093
9094 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9095
9096 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9097 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9098 to jump table.
9099
9100 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9101
9102 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9103 indirect jump to jump table.
9104
9105 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9106
9107 [BZ #22241]
9108 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9109 (LOCALES): Likewise.
9110 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9111 * localedata/locales/sah_RU: New file.
9112 * localedata/sah_RU.UTF-8.in: New file.
9113
9114 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9117 "sysdep.h".
9118 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9119 _CET_ENDBR to indirect jump targets and adjust jump destination
9120 for _CET_ENDBR.
9121 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9122 "sysdep.h".
9123 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9124 _CET_ENDBR to indirect jump targets and adjust jump destination
9125 for _CET_ENDBR.
9126 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9127 "sysdep.h".
9128 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9129 _CET_ENDBR to indirect jump targets and adjust jump destination
9130 for _CET_ENDBR.
9131
9132 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9133
9134 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9135 _CET_ENDBR.
9136
9137 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9138
9139 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9140 _CET_ENDBR.
9141 (_dl_tlsdesc_undefweak): Likewise.
9142 (_dl_tlsdesc_dynamic): Likewise.
9143 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9144 (_dl_tlsdesc_resolve_rel): Likewise.
9145 (_dl_tlsdesc_resolve_rela): Likewise.
9146 (_dl_tlsdesc_resolve_hold): Likewise.
9147 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9148 (_dl_tlsdesc_undefweak): Likewise.
9149 (_dl_tlsdesc_dynamic): Likewise.
9150 (_dl_tlsdesc_resolve_rela): Likewise.
9151 (_dl_tlsdesc_resolve_hold): Likewise.
9152
9153 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9154
9155 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9156 (_fini): Likewise.
9157 * sysdeps/x86_64/crti.S (_init): Likewise.
9158 (_fini): Likewise.
9159
9160 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9161
9162 [BZ #23140]
9163 * localedata/locales/os_RU (mon): Rename to...
9164 (alt_mon): This.
9165 (mon): Import from CLDR (genitive case).
9166
9167 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9168
9169 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9170 cet-tunables.h> when CET is enabled.
9171
9172 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9173
9174 [BZ #21598]
9175 * configure.ac: Add --enable-cet.
9176 * configure: Regenerated.
9177 * elf/Makefille (all-built-dso): Add a comment.
9178 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9179 Include <dl-prop.h>.
9180 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9181 segment.
9182 * elf/dl-open.c: Include <dl-prop.h>.
9183 (dl_open_worker): Call _dl_open_check.
9184 * elf/rtld.c: Include <dl-prop.h>.
9185 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9186 _rtld_main_check.
9187 * sysdeps/generic/dl-prop.h: New file.
9188 * sysdeps/i386/dl-cet.c: Likewise.
9189 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9190 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9191 * sysdeps/x86/cet-tunables.h: Likewise.
9192 * sysdeps/x86/check-cet.awk: Likewise.
9193 * sysdeps/x86/configure: Likewise.
9194 * sysdeps/x86/configure.ac: Likewise.
9195 * sysdeps/x86/dl-cet.c: Likewise.
9196 * sysdeps/x86/dl-procruntime.c: Likewise.
9197 * sysdeps/x86/dl-prop.h: Likewise.
9198 * sysdeps/x86/libc-start.h: Likewise.
9199 * sysdeps/x86/link_map.h: Likewise.
9200 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9201 _CET_ENDBR.
9202 (_dl_runtime_profile): Likewise.
9203 (_dl_runtime_resolve_shstk): New.
9204 (_dl_runtime_profile_shstk): Likewise.
9205 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9206 if CET is enabled.
9207 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9208 (CFLAGS-.os): Likewise.
9209 (CFLAGS-.op): Likewise.
9210 (CFLAGS-.oS): Likewise.
9211 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9212 is enabled.
9213 (tests-special): Add $(objpfx)check-cet.out.
9214 (cet-built-dso): New.
9215 (+$(cet-built-dso:=.note)): Likewise.
9216 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9217 ($(objpfx)check-cet.out): New.
9218 (generated): Add check-cet.out.
9219 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9220 <cet-tunables.h>.
9221 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9222 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9223 (init_cpu_features): Call get_cet_status to check CET status
9224 and update dl_x86_feature_1 with CET status. Call
9225 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9226 (set_x86_shstk). Disable and lock CET in libc.a.
9227 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9228 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9229 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9230 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9231 (_CET_ENDBR): Define if not defined.
9232 (ENTRY): Add _CET_ENDBR.
9233 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9234 x86_shstk.
9235 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9236 _CET_ENDBR.
9237 (_dl_runtime_profile): Likewise.
9238
9239 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9240
9241 [BZ #21895]
9242 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9243 restore r2 on longjmp.
9244 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9245 test list.
9246 Added rules to build test tst-setjmp-bug21895-static.
9247 Added module setjmp-bug21895 and rules to build a shared object from it.
9248 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9249 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9250
9251 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9252
9253 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9254 * benchtests/bench-strstr.c: Likewise.
9255 * string/memmem.c (FASTSEARCH): Define.
9256 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9257 Add support for FASTSEARCH.
9258 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9259 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9260 (FASTSEARCH): Define.
9261 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9262 * string/test-strstr.c: Likewise.
9263
9264 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9265
9266 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9267 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9268
9269 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9270 H.J. Lu <hongjiu.lu@intel.com>
9271
9272 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9273 (__longjmp): Restore shadow stack pointer if shadow stack is
9274 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9275 isn't defined for __longjmp_cancel.
9276 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9277 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9278 and SHADOW_STACK_POINTER_OFFSET is defined.
9279 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9280 (setjmp): Save shadow stack pointer if shadow stack is enabled
9281 and SHADOW_STACK_POINTER_OFFSET is defined.
9282 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9283 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9284 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9285 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9286 <jmp_buf-ssp.h>.
9287 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9288 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9289 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9290 Remove jmp_buf-ssp.sym.
9291 * sysdeps/unix/sysv/linux/x86_64/____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/x86/Makefile (gen-as-const-headers): Add
9296 jmp_buf-ssp.sym.
9297 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9298 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9299 (__longjmp): Restore shadow stack pointer if shadow stack is
9300 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9301 isn't defined for __longjmp_cancel.
9302 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9303 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9304 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9305
9306 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9307
9308 [BZ #22563]
9309 * nptl/pthread_create.c: Include <tls-setup.h>.
9310 (__pthread_create_2_1): Call tls_setup_tcbhead.
9311 * sysdeps/generic/tls-setup.h: New file.
9312 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9313 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9314 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9315 Likewise.
9316 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9317 to feature_1.
9318 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9319 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9320 (X86_FEATURE_1_SHSTK): Likewise.
9321 (CET_ENABLED): Likewise.
9322 (IBT_ENABLED): Likewise.
9323 (SHSTK_ENABLED): Likewise.
9324
9325 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9326
9327 [BZ #23208]
9328 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9329 (LOCALES): Likewise.
9330 * localedata/dsb_DE.UTF-8.in: New file.
9331 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9332
9333 2018-07-12 Florian Weimer <fweimer@redhat.com>
9334
9335 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9336 __mprotect, not mprotect.
9337
9338 2018-07-11 Florian Weimer <fweimer@redhat.com>
9339
9340 * io/Makefile (headers): Add bits/statx.h.
9341
9342 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9343
9344 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9345 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9346 and headers.
9347 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9348 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9349 for utf8_gen.py
9350
9351 2018-07-10 Florian Weimer <fweimer@redhat.com>
9352
9353 * io/Makefile (routines): Add statx.
9354 (tests-internal): Add tst-statx.
9355 * io/Versions (GLIBC_2.28): Export statx.
9356 * io/bits/statx.h: New file.
9357 * io/sys/stat.h [__USE_GNU]: Include it.
9358 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9359 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9360 Define.
9361 * io/statx.c: New file.
9362 * io/statx_generic.: Likewise.
9363 * io/tst-statx.: Likewise.
9364 * include/bits/statx.h: Likewise.
9365 * sysdeps/unix/sysv/linux/kernel-features.h
9366 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9367 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9368 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9369 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9370 Undefine.
9371 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9372 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9373 * sysdeps/unix/sysv/linux/statx.c: New file.
9374 * manual/filesys.texi: Note that statx is undocumented.
9375 * sysdeps/**/libc*.abilist: Update.
9376
9377 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9378
9379 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9380 a kernel issue which lead to test failure in some cases.
9381
9382 2018-07-10 Florian Weimer <fweimer@redhat.com>
9383
9384 [BZ #23036]
9385 * posix/regexec.c (check_node_accept_bytes): When comparing
9386 weights, do not compare an extra byte after the end of the
9387 weights.
9388
9389 2018-07-10 Florian Weimer <fweimer@redhat.com>
9390
9391 * libio/readline.c: Fix copyright year.
9392 * libio/tst-readline.c Likewise.
9393 * nss/tst-nss-files-hosts-getent.c: Likewise.
9394
9395 2018-07-06 Florian Weimer <fweimer@redhat.com>
9396
9397 [BZ #18991]
9398 * nss/nss_files/files-XXX.c (internal_getent): Use
9399 __libc_readline_unlocked. Seek back to the start of the line if
9400 parsing failes with ERANGE.
9401 (get_contents_ret, get_contents): Remove.
9402 * nss/tst-nss-files-hosts-getent.c: New file.
9403 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9404 (tst-nss-files-hosts-getent): Link with -ldl.
9405
9406 2018-07-06 Florian Weimer <fweimer@redhat.com>
9407
9408 * include/stdio.h (__libc_readline_unlocked): Declare.
9409 (__ftello64, __fseeko64): Declare aliases.
9410 * libio/readline.c: New file.
9411 * libio/tst-readline.c: Likewise.
9412 (routines): Add readline.
9413 (tests-internal): Add tst-readlime.
9414 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9415 __libc_readline_unlocked.
9416 * libio/fseeko.c (__fseeko): Rename from fseeko.
9417 (fseeko): Add alias.
9418 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9419 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9420 (fseeko64): Add alias.
9421 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9422 * libio/ftello64.c (__ftello64): Rename from ftello64.
9423 (ftello64): Add alias.
9424
9425 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9426
9427 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9428 HWCAP_ATOMICS.
9429
9430 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9431
9432 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9433 Use dl_hwcap without masking.
9434 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9435 Remove HWCAP_CPUID.
9436
9437 2018-07-06 Florian Weimer <fweimer@redhat.com>
9438
9439 * conform/conformtest.pl (checknamespace): Escape literal braces
9440 in regular expressions.
9441
9442 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9443
9444 * sysdeps/x86/cpu-features.c (get_common_indeces):
9445 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9446 * sysdeps/x86/cpu-features.c (init_cpu_features):
9447 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9448
9449 2018-07-05 Florian Weimer <fweimer@redhat.com>
9450
9451 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9452 protector.
9453 (CFLAGS-elf-init.oS): Likewise.
9454
9455 2018-07-05 Florian Weimer <fweimer@redhat.com>
9456 Carlos O'Donell <carlos@redhat.com>
9457
9458 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9459 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9460 with stack protector enabled because there is no risk of infinite
9461 recursion.
9462
9463 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9464
9465 [BZ #19818]
9466 [BZ #23307]
9467 * libc-abis (ABSOLUTE): New ABI.
9468 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9469 * NEWS: Mention the new ABI.
9470
9471 2018-07-05 Florian Weimer <fweimer@redhat.com>
9472
9473 [BZ # 17662]
9474 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9475 (RENAME_WHITEOUT): Define.
9476 [__USE_GNU] (renameat2): Declare.
9477 * stdio-common/Makefile (routines): Add renameat2.
9478 (tests): Add tst-renameat2.
9479 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9480 * stdio-common/renameat2.c: New file.
9481 * stdio-common/tst-renameat2.c: Likewise.
9482 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9483 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9484 undocumented.
9485 * sysdeps/unix/sysv/linux/kernel-features.h
9486 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9487 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9488 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9489 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9490 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9491 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9492 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9493 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9494 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9495 * include/stdio.h (__renameat): Add alias for renameat.
9496 * stdio-common/renameat.c (__renameat): Rename from renameat.
9497 Add hidden definition and alias.
9498 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9499 * sysdeps/mach/hurd/renameat.c: Likewise.
9500 * sysdeps/**/libc*.abilist: Add renameat2.
9501
9502 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9503
9504 * posix/bug-regex33.c: Fix build after regex sync.
9505
9506 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9507
9508 [BZ #23164]
9509 * localedata/tst-langinfo-setlocale.c: New file.
9510 * localedata/tst-langinfo-setlocale-static.c: New file.
9511 * localedata/tst-langinfo-newlocale.c: New file.
9512 * localedata/tst-langinfo-newlocale-static.c: New file.
9513 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9514 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9515 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9516 (tests-static): Remove tst-langinfo-static. Add
9517 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9518 (tests-special): Remove $(objpfx)tst-langinfo.out,
9519 $(objpfx)tst-langinfo-static.out. Add
9520 $(objpfx)tst-langinfo-setlocale.out,
9521 $(objpfx)tst-langinfo-newlocale.out,
9522 $(objpfx)tst-langinfo-setlocale-static.out,
9523 $(objpfx)tst-langinfo-newlocale-static.out.
9524 ($(objpfx)tst-langinfo.out): Remove.
9525 ($(objpfx)tst-langinfo-static.out): Remove.
9526 ($(objpfx)tst-langinfo-newlocale.out): New target.
9527 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9528 (test-xfail-tst-langinfo-newlocale-static): Add.
9529 ($(objpfx)tst-langinfo-setlocale.out): New target.
9530 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9531 * localedata/tst-langinfo.c: Call test_locale.
9532 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9533 data.
9534
9535 2018-07-04 Florian Weimer <fweimer@redhat.com>
9536
9537 testrun.sh: Implement --tool=strace, --tool=valgrind
9538 * Makefile (testrun-script): Define variable.
9539 (testrun.sh): Use variable.
9540 * manual/install.texi (Tools for Compilation): make 4.0 or later
9541 is required.
9542 * configure.ac: Check for make 4.0 or later.
9543 * INSTALL: Regenerate.
9544 * configure: Likewise.
9545
9546 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9547
9548 [BZ #23233]
9549 [BZ #21163]
9550 [BZ #18986]
9551 [BZ #13762]
9552 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9553 * posix/PCRE.tests: Remove invalid test.
9554 * posix/bug-regex28.c: Fix expected values for used syntax.
9555 * posix/bug-regex37.c: New file.
9556 * posix/bug-regex38.c: Likewise.
9557 * posix/regcomp.c: Sync with gnulib.
9558 * posix/regex.c: Likewise.
9559 * posix/regex.h: Likewise.
9560 * posix/regex_internal.c: Likewise.
9561 * posix/regex_internal.h: Likewise.
9562 * posix/regexec.c: Likewise.
9563
9564 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9565
9566 [BZ #23308]
9567 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9568 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9569 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9570 * localedata/unicode-gen/PropList.txt: likewise.
9571 * localedata/unicode-gen/UnicodeData.txt: likewise.
9572 * localedata/charmaps/UTF-8: Regenerate.
9573 * localedata/locales/i18n_ctype: likewise.
9574 * localedata/locales/tr_TR: likewise.
9575 * localedata/locales/translit_circle: likewise.
9576 * localedata/locales/translit_cjk_compat: likewise.
9577 * localedata/locales/translit_combining: likewise.
9578 * localedata/locales/translit_compat: likewise.
9579 * localedata/locales/translit_font: likewise.
9580 * localedata/locales/translit_fraction: likewise.
9581
9582 2018-07-03 Florian Weimer <fweimer@redhat.com>
9583
9584 [BZ #23363]
9585 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9586 * stdio-common/tst-printf.sh: Adjust expected output.
9587 * LICENSES: Update.
9588
9589 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9590
9591 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9592 symbol.
9593
9594 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9595
9596 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9597 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9598 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9599 * stdio-common/tst-printfsz-islongdouble.c: New file.
9600 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9601 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9602 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9603 [subdir == stdio-common] (tests-internal): Add
9604 test-printf-size-ieee128, and test-printf-size-ibm128.
9605 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9606 (CFLAGS-test-printf-size-ibm128.c): New variables.
9607 [subdir == stdio-common] (tests-special): Add
9608 $(objpfx)test-printf-size-ieee128.out and
9609 $(objpfx)test-printf-size-ibm128.out.
9610 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9611 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9612 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9613 __printf_sizeieee128.
9614 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9615 New file.
9616 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9617 Likewise.
9618 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9619 Likewise.
9620
9621 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9622
9623 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9624 (exp2f_inline): Likewise.
9625 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9626 (__math_uflowf): Likewise.
9627 (__math_may_uflowf): Likewise.
9628 (__math_divzerof): Likewise.
9629 (__math_invalidf): Likewise.
9630 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9631 (__math_oflowf): Likewise.
9632 (__math_uflowf): Likewise.
9633 (__math_may_uflowf): Likewise.
9634 (__math_divzerof): Likewise.
9635 (__math_invalidf): Likewise.
9636
9637 2018-06-29 DJ Delorie <dj@redhat.com>
9638 Carlos O'Donell <carlos@redhat.com>
9639
9640 [BZ #23329]
9641 * include/libc-symbols.h: Comment the freeres framework.
9642 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9643 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9644 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9645 * dlfcn/dlerror.c: Include libc-symbols.h
9646 (__dlerror_main_freeres): New function.
9647 * dlfcn/dlfreeres.c: New file.
9648 * dlfcn/sdlfreeres.c: New file.
9649 * include/dlfcn.h: Declare __dlerror_main_freeres.
9650 * malloc/set-freeres.c: Declare __libdl_freeres, and
9651 __libpthread_freeres.
9652 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9653 the releavant libraries are loaded.
9654 * malloc/thread-freeres.c: Add comments.
9655 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9656 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9657 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9658 (__free_stacks): Rename to...
9659 (free_stacks): ...this. Mark static.
9660 (queue_stack): Call free_stacks.
9661 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9662 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9663 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9664 ptr_freeres element from struct.
9665 (pthread_functions): Remove .ptr_freeres from struct initializer.
9666 [SHARED] (nptl_freeres): Remove.
9667 * nptl/nptlfreeres.c: New file.
9668 * nptl/pthreadP.h
9669 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9670 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9671 attribute_hidden.
9672 (__free_stacks): Rename to...
9673 (__nptl_stacks_freeres): ...this.
9674 (__shm_directory_freeres): Declare.
9675 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9676 (__nptl_unwind_freeres): ...this.
9677 * resolv/res-close.c: Add comment.
9678 * resolv/resolv_conf.c: Include libc-symbols.h.
9679 * string/strerror_l.c: Include libc-symbols.h.
9680 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9681 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9682 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9683 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9684
9685 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9686
9687 * stdlib/tst-strfmon_l.c: Add tests for long double.
9688
9689 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9690
9691 [BZ #23208]
9692 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9693 * localedata/locales/dsb_DE: New file.
9694
9695 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9696
9697 [BZ #23140]
9698 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9699 genitive case).
9700 (alt_mon): New entry, import from CLDR (nominative case).
9701
9702 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9703
9704 [BZ #22996]
9705 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9706
9707 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9708
9709 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9710 Use vector registers.
9711
9712 * sysdeps/aarch64/multiarch/memmove_falkor.S
9713 (__memcpy_falkor): Use vector registers.
9714
9715 2018-06-29 Martin Sebor <msebor@redhat.com>
9716
9717 * manual/stdio.texi (Customizing Printf): Mention interaction
9718 with GCC built-ins.
9719
9720 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9721
9722 [BZ #23307]
9723 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9724 `st_value' is 0 if `st_shndx' is SHN_ABS.
9725 * elf/tst-absolute-zero.c: New file.
9726 * elf/tst-absolute-zero-lib.c: New file.
9727 * elf/tst-absolute-zero-lib.lds: New file.
9728 * elf/Makefile (tests): Add `tst-absolute-zero'.
9729 (modules-names): Add `tst-absolute-zero-lib'.
9730 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9731 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9732 ($(objpfx)tst-absolute-zero: New dependency.
9733
9734 2018-06-29 Zack Weinberg <zackw@panix.com>
9735
9736 * configure.ac: New command-line option --disable-crypt.
9737 Force --disable-nss-crypt when --disable-crypt is given, with a
9738 warning if it was explicitly enabled.
9739 * configure: Regenerate.
9740 * config.make.in: New boolean substitution variable $(build-crypt).
9741 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9742 when $(build-crypt).
9743 * manual/install.texi: Document --disable-crypt.
9744 * INSTALL: Regenerate.
9745
9746 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9747 which is never set.
9748 * conform/Makefile: Only include libcrypt.a in
9749 linknamespace-libs-xsi and linknamespace-libs-XPG4
9750 when $(build-crypt).
9751 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9752 USE_CRYPT to 1 when $(build-crypt).
9753 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9754 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9755 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9756
9757 2018-06-29 Zack Weinberg <zackw@panix.com>
9758
9759 * crypt/crypt.h, posix/unistd.h: Update comments and
9760 prototypes for crypt and crypt_r.
9761
9762 * manual/crypt.texi (Cryptographic Functions): New initial
9763 exposition.
9764 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9765 (Unpredictable Bytes): Improve initial exposition. Clarify error
9766 behavior of getentropy and getrandom.
9767 * manual/examples/genpass.c: Generate a salt using getentropy
9768 instead of the current time. Use hash $5$ (SHA-2-256).
9769 * manual/examples/testpass.c: Demonstrate validation against
9770 hashes generated with three different one-way functions.
9771
9772 * manual/intro.texi: crypt.texi does not need an overview
9773 anymore.
9774
9775 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9776 * manual/terminal.texi: Consistently refer to "passphrases"
9777 * instead of "passwords", and to the "user database" instead
9778 * of the "password database".
9779 * manual/users.texi: Similarly. Add notes about how actual
9780 passphrase hashes are now stored in the shadow database.
9781 Remove 20-year-old junk todo note.
9782
9783 2018-06-29 Zack Weinberg <zackw@panix.com>
9784
9785 * manual/crypt.texi: Use a normal top-level @node declaration.
9786 Move most of the introductory text to the 'crypt' section.
9787 Move the example programs below the @deftypefun for 'crypt_r'.
9788 Move the 'getpass' section...
9789 * manual/terminal.texi: ...here.
9790
9791 2018-06-29 Zack Weinberg <zackw@panix.com>
9792 Florian Weimer <fweimer@redhat.com>
9793
9794 * posix/unistd.h: Do not declare encrypt.
9795 (_XOPEN_CRYPT): Remove macro definition.
9796 (crypt): Declare only for _USE_MISC.
9797 * stdlib/stdlib.h: Do not declare setkey.
9798 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9799 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9800
9801 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9802 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9803 into compat symbols. Don't define initial_perm if it's not
9804 going to be used.
9805 * crypt/cert.c: Link explicitly with the expected versions for
9806 setkey and encrypt. If they are not available at all, mark
9807 the test as unsupported.
9808
9809 * sunrpc/des_crypt.c: Unconditionally block linkage with
9810 cbc_crypt and ecb_crypt for new binaries.
9811 * sunrpc/des_soft.c: Unconditionally block linkage with
9812 des_setparity for new binaries.
9813
9814 * manual/crypt.texi: Remove the entire "DES Encryption"
9815 section. Also remove the paragraph talking about FIPS 140-2
9816 from the introduction.
9817 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9818 of libgcrypt for "real" encryption, not DES.
9819 * manual/conf.texi (Constants for Sysconf): Mention that
9820 _XOPEN_CRYPT is no longer impelemented.
9821
9822 * conform/data/unistd.h-data: Remove crypt function declaration.
9823
9824 2018-06-29 Florian Weimer <fweimer@redhat.com>
9825
9826 [BZ #23351]
9827 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9828 (disallow_malloc_check): Remove variable.
9829 (__malloc_check_init): Adjust.
9830 (malloc_set_state): Update comment.
9831 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9832 declarations.
9833
9834 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9835
9836 [BZ #23140]
9837 * localedata/locales/ast_ES (mon): Rename to...
9838 (alt_mon): This.
9839 (mon): Import from CLDR (genitive case).
9840
9841 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9842 Jakub Sitnicki <jkbs@redhat.com>
9843
9844 [BZ #21812]
9845 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9846 on NLM_F_DUMP_INTR.
9847
9848 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9849
9850 * manual/llio.texi: Remove spurious space.
9851
9852 2018-06-28 Florian Weimer <fweimer@redhat.com>
9853
9854 [BZ #23349]
9855 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9856 _STRUCT_TIMESPEC.
9857
9858 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9859
9860 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9861 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9862 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9863 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9864 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9865 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9866 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9867
9868 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9869
9870 [BZ #23266]
9871 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9872 Copy and null-terminate entries that are not terminated, in
9873 addition to empty ones.
9874
9875 2018-06-27 Florian Weimer <fweimer@redhat.com>
9876
9877 [BZ #18023]
9878 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9879 (extend_alloca_account): Remove.
9880 * manual/stdio.texi (Variable Arguments Output): Update comment.
9881
9882 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9883
9884 * nptl/sockperf.c: Remove file.
9885
9886 2018-06-27 Florian Weimer <fweimer@redhat.com>
9887
9888 [BZ #18023]
9889 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9890 scratch_buffer instead of extend_alloca.
9891
9892 2018-06-27 Florian Weimer <fweimer@redhat.com>
9893
9894 [BZ #18023]
9895 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9896 scratch_buffer instead of extend_alloca. Update comments.
9897
9898 2018-06-27 Florian Weimer <fweimer@redhat.com>
9899
9900 [BZ #18023]
9901 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9902 instead of extend_alloca.
9903
9904 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9905
9906 [BZ #13888]
9907 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9908 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9909 /tmp.
9910 * scripts/test-installation.pl: Put temporary files in build
9911 directory, not /tmp.
9912 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9913 (CFLAGS-bug4.c): Likewise.
9914 (CFLAGS-bug5.c): Likewise.
9915 (CFLAGS-test-fseek.c): Likewise.
9916 (CFLAGS-test-popen.c): Likewise.
9917 (CFLAGS-test_rdwr.c): Likewise.
9918 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9919 /tmp.
9920 * stdio-common/bug4.c (main): Likewise.
9921 * stdio-common/bug5.c (main): Likewise.
9922 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9923 * stdio-common/test-popen.c (do_test): Likewise.
9924 * stdio-common/test_rdwr.c (main): Likewise.
9925
9926 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9927
9928 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9929 (sem_open): Set sem.newsem.pad to zero for valgrind.
9930
9931 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9932
9933 [BZ #20251]
9934 * NEWS: Mention fcntl64 addition.
9935 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9936 * login/utmp_file.c: Likewise.
9937 * sysdeps/posix/fdopendir.c: Likewise.
9938 * sysdeps/posix/opendir.c: Likewise.
9939 * sysdeps/unix/pt-fcntl.c: Likewise.
9940 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9941 __fcntl64_nocancel_adjusted): New prototype.
9942 (__fcntl_nocancel_adjusted): Remove prototype.
9943 * io/Makefile (routines): Add fcntl64.
9944 (CFLAGS-fcntl64.c): New rule.
9945 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9946 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9947 * io/fcntl.h (fcntl64): Add prototype and redirect if
9948 __USE_FILE_OFFSET64 is defined.
9949 * io/fcntl64.c: New file.
9950 * manual/llio.text: Add a note for which commands fcntl acts a
9951 cancellation point.
9952 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9953 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9954 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9955 New symbols.
9956 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9957 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9958 non-LFS case.
9959 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9960 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9961 to __fcntl64_nocancel.
9962 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9963 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9964 to __fcntl64_nocancel.
9965 * sysdeps/generic/not-cancel.h: Likewise.
9966 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9967 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9968 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9969 (fcntl64): New symbol.
9970 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9971 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9972 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9975 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9976 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9977 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9978 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9979 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9980 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9981 fcntl64): Likewise.
9982 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9983 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9984 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9985 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9986 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9987 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9988 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9989 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9990 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9992 Likewise.
9993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9994 Likewise.
9995 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9996 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9997 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9998
9999 2018-06-26 Florian Weimer <fweimer@redhat.com>
10000
10001 Run thread shutdown functions in an explicit order.
10002 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10003 definition.
10004 (__libc_thread_freeres): Call thread shutdown functions
10005 explicitly.
10006 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10007 * include/string.h (__strerror_thread_freeres): Declare.
10008 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10009 arena_thread_freeres. No longer static. Remove thread shutdown
10010 hook registration.
10011 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10012 Declare.
10013 * resolv/res-close.c (__res_thread_freeres): Renamed from
10014 res_thread_freeres. No longer static. Remove thread shutdown
10015 hook registration.
10016 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10017 * resolv/resolv_conf.c (freeres): Remove incorrect section
10018 attribute and use libc_freeres_fn.
10019 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10020 strerror_thread_freeres. No longer static. Remove thread
10021 shutdown hook registration.
10022 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10023 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10024 shutdown hook registration.
10025 * Makerules (shlib.lds): Do not provide section boundary symbols
10026 for __libc_thread_subfreeres.
10027 * manual/memory.texi (Basic Allocation): Update comment.
10028
10029 2018-06-26 Florian Weimer <fweimer@redhat.com>
10030
10031 Remove always-defined _RPC_THREAD_SAFE_ macro.
10032 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10033 Do not define _RPC_THREAD_SAFE_.
10034 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10035 conditional.
10036 * sunrpc/clnt_perr.c: Likewise.
10037 * sunrpc/clnt_raw.c: Likewise.
10038 * sunrpc/clnt_simp.c: Likewise.
10039 * sunrpc/key_call.c: Likewise.
10040 * sunrpc/rpc_common.c: Likewise.
10041 * sunrpc/rpc_main.c: Likewise.
10042 * sunrpc/rpc_thread.c: Likewise.
10043 * sunrpc/svc.c: Likewise.
10044 * sunrpc/svc_raw.c: Likewise.
10045 * sunrpc/svc_simple.c: Likewise.
10046 * sumrpc/svcauth_des.c: Likewise.
10047
10048 2018-06-26 Florian Weimer <fweimer@redhat.com>
10049
10050 * libio/Makefile (tests-internal): Add tst-vtables,
10051 tst-vtables-interposed.
10052 * libio/tst-vtables.c: New file.
10053 * libio/tst-vtables-common.c: Likewise.
10054 * libio/tst-vtables-interposed.c: Likewise.
10055
10056 2018-06-26 Florian Weimer <fweimer@redhat.com>
10057
10058 * support/support_test_main.c (support_test_main): Only call
10059 setvbuf if not disables.
10060 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10061 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10062
10063 2018-06-26 Florian Weimer <fweimer@redhat.com>
10064
10065 [BZ #23313]
10066 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10067
10068 2018-06-25 Florian Weimer <fweimer@redhat.com>
10069
10070 [BZ #18023]
10071 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10072 Use struct scratch_buffer instead of extend_alloca.
10073
10074 2018-06-25 Florian Weimer <fweimer@redhat.com>
10075
10076 [BZ #18023]
10077 * nss/getent.c (initgroups_keys): Use dynarray instead of
10078 extend_alloca.
10079
10080 2018-06-25 Florian Weimer <fweimer@redhat.com>
10081
10082 [BZ #18023]
10083 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10084 Use struct scratch_buffer instead of extend_alloca.
10085
10086 2018-06-25 Florian Weimer <fweimer@redhat.com>
10087
10088 [BZ #18023]
10089 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10090 back to malloc directly, without stack allocations.
10091
10092 2018-06-25 Florian Weimer <fweimer@redhat.com>
10093
10094 [BZ #18023]
10095 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10096 of extend_alloca.
10097
10098 2018-06-25 Florian Weimer <fweimer@redhat.com>
10099
10100 [BZ #18023]
10101 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10102 of extend_alloca.
10103 * nscd/hstcache.c (addhstbyX): Likewise.
10104 * nscd/pwdcache.c (addpwbyX): Likewise.
10105 * nscd/servicescache.c (addservbyX): Likewise.
10106
10107 2018-06-25 Florian Weimer <fweimer@redhat.com>
10108
10109 [BZ #18023]
10110 * nscd/connections.c (read_cmdline): New function.
10111 (restart): Use it. Update comment.
10112
10113 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10114
10115 [BZ #23140]
10116 * localedata/locales/csb_PL (mon): Rename to...
10117 (alt_mon): This.
10118 (abmon): Rename to...
10119 (ab_alt_mon): This.
10120 (mon): Add with proper genitive forms, copy from Wikipedia.
10121 (abmon): Likewise.
10122
10123 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10124
10125 [BZ #19485]
10126 * localedata/locales/csb_PL (mon): Fix typos:
10127 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10128 (yesstr): Add, value is "jo".
10129 (nostr): Add, value is "nié".
10130
10131 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10132
10133 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10134 all log1p and significand functions on m680x0.
10135 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10136 of s_significand.c..
10137 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10138 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10139 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10140 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10141 s_log1p.c and include it..
10142
10143 2018-06-21 Vincent Chen <vincentc@andestech.com>
10144
10145 * elf/elf.h (R_NDS32_NONE): New define.
10146 (R_NDS32_32_RELA): Likewise.
10147 (R_NDS32_COPY): Likewise.
10148 (R_NDS32_GLOB_DAT): Likewise.
10149 (R_NDS32_JUMP_SLOT): Likewise.
10150 (R_NDS32_RELATIVE): Likewise.
10151 (R_NDS32_TLS_TPOFF): Likewise.
10152 (R_NDS32_TLS_DESC): Likewise.
10153
10154 2018-06-21 Mark Wielaard <mark@klomp.org>
10155
10156 * elf/elf.h (R_BPF_MAP_FD): Removed.
10157 (R_BPF_64_64, R_BPF_64_32): New.
10158
10159 2018-06-21 Florian Weimer <fweimer@redhat.com>
10160
10161 [BZ #23253]
10162 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10163 Renamed from libc_feholdsetround_ctx.
10164 (default_libc_feresetround_ctx): Renamed from
10165 libc_feresetround_ctx.
10166 (default_libc_feholdsetround_noex_ctx): Renamed from
10167 libc_feholdsetround_noex_ctx.
10168 (default_libc_feresetround_noex_ctx): Renamed from
10169 libc_feresetround_noex_ctx.
10170 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10171 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10172 forwardning to the old implementations under the new names.
10173 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10174 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10175 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10176 (libc_feresetround_ctx): Forward to default implements for i386
10177 and MATH_SET_BOTH_ROUNDING_MODES.
10178 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10179 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10180
10181 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10182
10183 * string/tst-cmp.c: Include <libc-diag.h>.
10184 (strncmp_max): Disable -Wstringop-overflow= around call to
10185 strncmp.
10186 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10187 strncasecmp.
10188
10189 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10190 (main): Disable -Wunused-value around call to strpbrk.
10191 * string/bug-strspn1.c: Include <libc-diag.h>.
10192 (main): Disable -Wunused-value around call to strspn.
10193
10194 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10195 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10196
10197 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10198 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10199
10200 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10201
10202 * math/Makefile (libm-calls): Move s_significandF to...
10203 (gen-libm-calls): ... here.
10204 * math/s_significand_template.c: New file.
10205 * math/s_significand.c: Removed.
10206 * math/s_significandf.c: Removed.
10207 * math/s_significandl.c: Removed.
10208 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10209 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10210
10211 * math/e_exp2_template.c (declare_mgen_finite_alias,
10212 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10213 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10214 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10215
10216 2018-06-20 Florian Weimer <fweimer@redhat.com>
10217
10218 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10219
10220 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10221
10222 [BZ #23280]
10223 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10224 floating-point number to strtod functions rather than possibly
10225 negating result of those functions.
10226 * stdio-common/tst-scanf-round.c: New file.
10227 * stdio-common/Makefile (tests): Add tst-scanf-round.
10228 ($(objpfx)tst-scanf-round): Depend on $(libm).
10229
10230 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10231
10232 * sysdeps/mach/hurd/localplt.data: Move to...
10233 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10234 R_386_GLOB_DAT like on Linux i386.
10235
10236 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10237
10238 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10239 (SHM_STAT_ANY): New macro.
10240 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10241 (SHM_STAT_ANY): Likewise.
10242 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10243 (SHM_STAT_ANY): Likewise.
10244 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10245 (SHM_STAT_ANY): Likewise.
10246 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10247 (SHM_STAT_ANY): Likewise.
10248 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10249 (SHM_STAT_ANY): Likewise.
10250 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10251 (SHM_STAT_ANY): Likewise.
10252 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10253 (SHM_STAT_ANY): Likewise.
10254 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10255 (SHM_STAT_ANY): Likewise.
10256 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10257 (SHM_STAT_ANY): Likewise.
10258 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10259 (SHM_STAT_ANY): Likewise.
10260 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10261 (SHM_STAT_ANY): Likewise.
10262
10263 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10264 (SEM_STAT_ANY): New macro.
10265 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10266 (SEM_STAT_ANY): Likewise.
10267 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10268 (SEM_STAT_ANY): Likewise.
10269 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10270 (SEM_STAT_ANY): Likewise.
10271 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10272 (SEM_STAT_ANY): Likewise.
10273 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10274 (SEM_STAT_ANY): Likewise.
10275 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10276 (SEM_STAT_ANY): Likewise.
10277 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10278 (SEM_STAT_ANY): Likewise.
10279 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10280 (SEM_STAT_ANY): Likewise.
10281 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10282 (SEM_STAT_ANY): Likewise.
10283
10284 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10285 (MSG_STAT_ANY): New macro.
10286 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10287 (MSG_STAT_ANY): Likewise.
10288 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10289 (MSG_STAT_ANY): Likewise.
10290 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10291 (MSG_STAT_ANY): Likewise.
10292 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10293 (MSG_STAT_ANY): Likewise.
10294 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10295 (MSG_STAT_ANY): Likewise.
10296 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10297 (MSG_STAT_ANY): Likewise.
10298 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10299 (MSG_STAT_ANY): Likewise.
10300 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10301 (MSG_STAT_ANY): Likewise.
10302 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10303 (MSG_STAT_ANY): Likewise.
10304
10305 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10306 (MAP_TYPE): Change value to 0x2b.
10307
10308 2018-06-18 Florian Weimer <fweimer@redhat.com>
10309
10310 [BZ #15722]
10311 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10312 socket with SOCK_CLOEXEC.
10313
10314 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10315
10316 [BZ #23303]
10317 * sysdeps/powerpc/powerpc64/le/Makefile
10318 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10319 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10320 (gnulib-tests): Also add $(f128-loader-link) for
10321 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10322
10323 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10324
10325 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10326 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10327 of sendfile.
10328 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10329 (sendfile64): New strong alias.
10330 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10331 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10332 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10333 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10334 attribute.
10335 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10336 ___pthread_get_cleanup_stack.
10337 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10338 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10339 * mach/shortcut.awk: Make syscall stubs include
10340 <mach-shortcuts-hidden.h> and add hidden definition.
10341 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10342 (__mach_msg): Add hidden prototype.
10343 * mach/msg.c: Include <mach.h>.
10344 (__mach_msg): Add hidden definition.
10345 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10346 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10347 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10348 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10349 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10350 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10351 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10352 prototype and definition.
10353 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10354 hidden target for _hurd_self_sigstate.
10355
10356 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10357
10358 [BZ #23007]
10359 * stdlib/tst-strtod-nan-sign-main.c: New file.
10360 * stdlib/tst-strtod-nan-sign.c: Likewise.
10361 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10362 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10363 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10364 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10365 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10366
10367 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10368
10369 [BZ #23007]
10370 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10371 appropriate sign.
10372
10373 2018-06-14 Florian Weimer <fweimer@redhat.com>
10374
10375 [BZ #23290]
10376 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10377 that the result stays within the ISO-8859-1 range.
10378 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10379 characters are defined in IBM273.
10380
10381 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10382
10383 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10384 __mach_task_self): Remove attribute_hidden.
10385
10386 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10387
10388 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10389 ignore -Wrestrict for one test.
10390
10391 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10392 Szabolcs Nagy <szabolcs.nagy@arm.com>
10393
10394 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10395
10396 2018-06-14 Florian Weimer <fweimer@redhat.com>
10397
10398 * scripts/update-abilist.sh: Accept empty list of files to patch.
10399
10400 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10401
10402 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10403 test-xfail-check-abi-libmachuser): Add.
10404 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10405 __libc_read and __libc_write to __read and __write.
10406 * sysdeps/hurd/include/hurd/port.h: New file.
10407 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10408 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10409 __thread_switch, __evc_wait): Move declarations to...
10410 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10411 attribute_hidden.
10412 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10413 use PLT to call _hurd_self_sigstate.
10414
10415 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10416
10417 [BZ #23279]
10418 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10419 MAX_EXP as overflowing.
10420 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10421 overflow flag.
10422 (round_str): Output also whether result overflows in each rounding
10423 mode.
10424 * stdlib/tst-strtod-round-data: Add more tests.
10425 * stdlib/tst-strtod-round-data.h: Regenerated.
10426 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10427 (TEST): Handle extra arguments for overflow flags.
10428 (struct test_overflow): New type.
10429 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10430 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10431 (test_in_one_mode): Take argument with overflow information.
10432 (do_test): Update calls to test_in_one_mode.
10433
10434 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10435
10436 * elf/dl-load (_dl_dst_substitute): Correct comment.
10437 (_dl_dst_count): Likewise.
10438
10439 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10440 lll_futex_timed_wait.
10441
10442 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10443
10444 [BZ #23277]
10445 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10446 attribute.
10447 * math/test-nan-const.c: New file.
10448 * math/Makefile (tests): Add test-nan-const.
10449 (CFLAGS-test-nan-const.c): New variable.
10450
10451 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10452
10453 * benchtests/scripts/compare_strings.py (process_results): Add
10454 funcs argument. Compare only functions which are selected.
10455 (main): Check if base function is among selected functions.
10456 Pass selected functions to process_results.
10457 (__main__): Add -f/--functions argument.
10458
10459 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10460 Hongbo Zhang <hongbo.zhang@linaro.org>
10461
10462 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10463 __memcpy_falkor for phecda core.
10464 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10465 __memmove_falkor for phecda core.
10466 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10467 __memset_falkor for phecda core.
10468 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10469 for phecda core.
10470 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10471 macro to identify phecda core.
10472
10473 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10474 Andreas Schwab <schwab@suse.de>
10475 Dmitry V. Levin <ldv@altlinux.org>
10476 Florian Weimer <fweimer@redhat.com>
10477
10478 [BZ #23102]
10479 [BZ #21942]
10480 [BZ #18018]
10481 [BZ #23259]
10482 CVE-2011-0536
10483 * elf/dl-dst.h: Remove DL_DST_COUNT.
10484 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10485 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10486 (is_dst): Comment. Support ELF gABI.
10487 (_dl_dst_count): Comment. Simplify and count DSTs.
10488 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10489 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10490 locals.
10491
10492 2018-06-12 Zack Weinberg <zackw@panix.com>
10493
10494 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10495 * sysdeps/unix/sysv/linux/dl-sysdep.c
10496 Include not-cancel.h. Use __close_nocancel instead of __close,
10497 __open64_nocancel instead of __open, __read_nocancel instead of
10498 __libc_read, and __write_nocancel instead of __libc_write.
10499
10500 * csu/check_fds.c (check_one_fd)
10501 * sysdeps/posix/fdopendir.c (__fdopendir)
10502 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10503 instead of __fcntl and/or __libc_fcntl.
10504
10505 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10506 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10507 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10508 Use __open64_nocancel instead of __open_nocancel.
10509
10510 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10511 hidden_proto declarations to the end and issue them if either
10512 IS_IN(libc) or IS_IN(rtld).
10513 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10514 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10515 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10516 read_nocancel, waitpid_nocancel, write_nocancel.
10517
10518 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10519 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10520 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10521
10522 * nptl/pt-fcntl.c: New file.
10523 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10524 (libpthread-routines): Add pt-fcntl.
10525 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10526 (__libc_fcntl): Remove attribute_hidden.
10527 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10528 __fcntl_nocancel_adjusted, not fcntl_common.
10529 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10530 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10531 to fcntl_nocancel.c.
10532 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10535 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10536
10537 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10538 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10539 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10540 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10541 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10542 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10543 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10544 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10545 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10546 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10547 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10548 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10549 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10550 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10551 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10552 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10553 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10554 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10555 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10556 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10557
10558 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10559 libpthread-routines.
10560 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10561 defines nothing.
10562
10563 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10564 __libc_read, and __write instead of __libc_write. Define
10565 __open64 in addition to __open.
10566
10567 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10568
10569 [BZ #23250]
10570 [BZ #10686]
10571 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10572 to _private_tm[3] and add __glibc_reserved2.
10573 Add _Static_assert of offset of __private_ss == 0x30.
10574 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10575 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10576
10577 2018-06-12 Florian Weimer <fweimer@redhat.com>
10578
10579 x86: Make strncmp usable from rtld.
10580 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10581 __strncmp_ia32 if in libc (and not in rtld).
10582 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10583 strncmp if not in libc (and not to __strncmp_sse2).
10584
10585 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10586
10587 [BZ #23140]
10588 * localedata/locales/gd_GB (mon): Rename to...
10589 (alt_mon): This.
10590 (mon): Import from CLDR (genitive case).
10591 * localedata/locales/hsb_DE (mon): Rename to...
10592 (alt_mon): This.
10593 (mon): Import from CLDR (genitive case).
10594 * localedata/locales/wa_BE (mon): Rename to...
10595 (alt_mon): This.
10596 (mon): Add, fill with the proper genitive forms, but CLDR data
10597 is incomplete; completed according to the comments in this file.
10598 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10599
10600 * localedata/locales/wa_BE (country_name): Reword
10601 "Beljike" -> "Beldjike".
10602
10603 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10604
10605 [BZ #23272]
10606 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10607 cases of non-finite arguments.
10608 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10609
10610 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10611
10612 [BZ #23174]
10613 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10614
10615 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10616
10617 [BZ #23264]
10618 * include/unistd.h (__execvpex): New prototype.
10619 * posix/Makefile (tests): Add tst-spawn4.
10620 (tests-internal): Add tst-spawn4-compat.
10621 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10622 * posix/tst-spawn4-compat.c: New file.
10623 * posix/tst-spawn4.c: Likewise.
10624 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10625 binaries as shell scripts.
10626 * sysdeps/posix/spawni.c (__spawni): Likewise.
10627
10628 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10629
10630 [BZ #23145]
10631 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10632 ($(all-built-dso:=.dynsym): New target.
10633 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10634 ($(objpfx)check-initfini.out): New target.
10635 (generated): Add check-initfini.out.
10636 * scripts/check-initfini.awk: New file.
10637 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10638 (_fini): Likewise.
10639 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10640 (_fini): Likewise.
10641 * sysdeps/arm/crti.S (_init): Mark as hidden.
10642 (_fini): Likewise.
10643 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10644 (_fini): Likewise.
10645 * sysdeps/i386/crti.S (_init): Mark as hidden.
10646 (_fini): Likewise.
10647 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10648 (_fini): Likewise.
10649 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10650 (_fini): Likewise.
10651 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10652 (_fini): Likewise.
10653 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10654 (_fini): Likewise.
10655 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10656 (_fini): Likewise.
10657 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10658 (_fini): Likewise.
10659 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10660 (_fini): Likewise.
10661 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10662 (_fini): Likewise.
10663 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10664 (_fini): Likewise.
10665 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10666 (_fini): Likewise.
10667 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10668 (_fini): Likewise.
10669 * sysdeps/sh/crti.S (_init): Mark as hidden.
10670 (_fini): Likewise.
10671 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10672 (_fini): Likewise.
10673 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10674 (_fini): Likewise.
10675
10676 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10677
10678 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10679 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10680 and TF redirection to KFtype and KF only when the default
10681 long double type is not the IEEE 128-bit floating point type.
10682
10683 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10684
10685 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10686 macro.
10687 (HWCAP_USCAT): Likewise.
10688 (HWCAP_ILRCPC): Likewise.
10689 (HWCAP_FLAGM): Likewise.
10690 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10691 Increase to 28.
10692 (_dl_aarch64_cap_flags): Add new flag names.
10693
10694 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10695 (MAP_FIXED_NOREPLACE): New macro.
10696 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10697 (MAP_FIXED_NOREPLACE): Likewise.
10698 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10699 (MAP_FIXED_NOREPLACE): Likewise.
10700 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10701 (MAP_FIXED_NOREPLACE): Likewise.
10702 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10703 (MAP_FIXED_NOREPLACE): Likewise.
10704 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10705 (MAP_FIXED_NOREPLACE): Likewise.
10706 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10707 (MAP_FIXED_NOREPLACE): Likewise.
10708 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10709 (MAP_FIXED_NOREPLACE): Likewise.
10710 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10711 (MAP_FIXED_NOREPLACE): Likewise.
10712 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10713 (MAP_FIXED_NOREPLACE): Likewise.
10714 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10715 (MAP_FIXED_NOREPLACE): Likewise.
10716 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10717 (MAP_FIXED_NOREPLACE): Likewise.
10718 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10719 (MAP_FIXED_NOREPLACE): Likewise.
10720 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10721 (MAP_FIXED_NOREPLACE): Likewise.
10722 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10723 (MAP_FIXED_NOREPLACE): Likewise.
10724
10725 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10726 version to 4.17.
10727
10728 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10729
10730 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10731 version to 4.17
10732
10733 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10734
10735 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10736 int.
10737 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10738
10739 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10740
10741 * benchtests/scripts/compare_string.py: (process_results) Catch
10742 exception in non-existent base_func and catch exception in
10743 non-existent attribute.
10744 (parse_file) Catch exception if input file does not exist.
10745
10746 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10747
10748 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10749 options to avoid diff calculation and omit header, respectively.
10750 (main): process --no-diff and --no-header
10751
10752 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10753 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10756 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10757 wcsncmp-sse2.
10758 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10759 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10760 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10761 and __wcsncmp_sse2.
10762 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10763 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10764 AVX unaligned load is fast and vzeroupper is preferred.
10765 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10766 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10767 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10768 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10769 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10770 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10771 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10772 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10773 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10774 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10775 is undefined.
10776
10777 2018-06-01 Florian Weimer <fweimer@redhat.com>
10778
10779 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10780 configuring with --disable-multi-arch, building with
10781 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10782 Haswell-era CPU.
10783
10784 2018-06-01 Florian Weimer <fweimer@redhat.com>
10785
10786 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10787 results from building with “-march=x86-64 -mtune=generic
10788 -mfpmath=sse” and running on a Haswell-era CPU.
10789
10790 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10791
10792 [BZ #18473]
10793 * soft-fp/sqrttf2.c: Remove file.
10794 * soft-fp/sqrtdf2.c: Move to ....
10795 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10796 <shlib-compat.h>.
10797 (__sqrtdf2): Make conditional on
10798 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10799 symbol.
10800 * soft-fp/sqrtsf2.c: Move to ....
10801 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10802 <shlib-compat.h>.
10803 (__sqrtsf2): Make conditional on
10804 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10805 symbol.
10806 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10807 (gcc-double-routines): Remove sqrtdf2.
10808 (gcc-quad-routines): Remove sqrttf2.
10809 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10810 Do not filter out sqrtsf2 and sqrtdf2.
10811 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10812 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10813
10814 2018-06-01 Florian Weimer <fweimer@redhat.com>
10815
10816 * sysdeps/generic/libcidn.abilist: Remove file.
10817
10818 2018-06-01 Florian Weimer <fweimer@redhat.com>
10819
10820 [BZ #23236]
10821 * libio/strfile.h (struct _IO_str_fields): Rename members to
10822 discourage their use and add comment.
10823 (_IO_STR_DYNAMIC): Remove unused macro.
10824 * libio/strops.c (_IO_str_init_static_internal): Do not use
10825 callback pointers. Call malloc and free.
10826 (_IO_str_overflow): Do not use callback pointers. Call malloc
10827 and free.
10828 (enlarge_userbuf): Likewise.
10829 (_IO_str_finish): Call free.
10830 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10831 _allocate_buffer_unused.
10832 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10833 and free.
10834 (enlarge_userbuf): Likewise.
10835 (_IO_wstr_finish): Call free.
10836 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10837 _allocate_buffer_unused, _free_buffer_unused.
10838 * libio/memstream.c (__open_memstream): Likewise.
10839 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10840 * libio/wmemstream.c (open_wmemstream): Likewise.
10841
10842 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10843
10844 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10845 AMD Ryzen 7 1800X.
10846
10847 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10848
10849 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10850 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10851 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10852 New file.
10853 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10854 Likewise.
10855 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10856
10857 2018-05-29 Florian Weimer <fweimer@redhat.com>
10858
10859 * support/Makefile (libsupport-routines): Add
10860 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10861 xpthread_barrierattr_setpshared.
10862 * support/xpthread_barrierattr_destroy.c: New file.
10863 * support/xpthread_barrierattr_init.c: Likewise.
10864 * support/xpthread_barrierattr_setpshared.c: Likewise.
10865
10866 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10867
10868 [BZ #23206]
10869 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10870 _r_debug and update DT_DEBUG for debugger.
10871
10872 2018-05-29 Florian Weimer <fweimer@redhat.com>
10873
10874 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10875 (tst-strtod5i.out): Likewise.
10876
10877 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10878
10879 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10880 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10881 (sparc64-quad-routines): New variable. Moved from ....
10882 [$(subdir) = soft-fp] (sysdep_routines): Add
10883 $(sparc64-quad-routines). Moved from ....
10884 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10885 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10886 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10887 moved from ....
10888 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10889 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10890 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10891 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10892 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10893 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10894 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10895 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10896 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10897 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10898 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10899 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10900 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10901 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10902 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10903 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10904 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10905 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10906 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10907 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10908 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10909 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10910 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10911 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10912 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10913 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10914 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10915 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10916 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10917 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10918 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10919 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10920 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10921 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10922 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10923 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10924 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10925 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10926 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10927 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10928 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10929 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10930 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10931 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10932 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10933 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10934 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10935 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10936 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10937 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10938 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10939 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10940 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10941 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10942 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10943 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10944 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10945 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10946
10947 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10948 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10949 (sparc32-quad-routines): New variable. Moved from ....
10950 [$(subdir) = soft-fp] (sysdep_routines): Add
10951 $(sparc32-quad-routines). Moved from ....
10952 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10953 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10954 moved from ....
10955 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10956 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10957 * sysdeps/sparc/sparc32/q_add.c: ... here.
10958 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10959 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10960 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10961 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10962 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10963 * sysdeps/sparc/sparc32/q_div.c: ... here.
10964 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10965 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10966 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10967 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10968 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10969 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10970 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10971 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10972 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10973 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10974 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10975 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10976 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10977 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10978 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10979 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10980 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10981 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10982 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10983 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10984 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10985 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10986 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10987 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10988 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10989 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10990 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10991 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10992 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10993 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10994 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10995 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10996 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10997 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10998 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10999 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11000 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11001 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11002 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11003 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11004 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11005 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11006 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11007 * sysdeps/sparc/sparc32/q_util.c: ... here.
11008 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11009 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11010 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11011 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11012
11013 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11014 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11015
11016 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11017 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11018 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11019 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11020
11021 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11022
11023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11024 powerpc/soft-fp.
11025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11026 Likewise.
11027 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11028 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11029
11030 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11031
11032 [BZ #23171]
11033 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11034 double version.
11035
11036 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11037
11038 * sysdeps/sh/Implies: Remove sh/soft-fp.
11039 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11040 * sysdeps/sh/sfp-machine.h: ... here.
11041
11042 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11043
11044 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11045 (__mempcpy_erms): Skip zero length.
11046 (__memmove_erms): Likewise.
11047 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11048 (__memset_erms): Likewise.
11049
11050 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11051
11052 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11053 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11054 Add functions moved from ....
11055 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11056 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11057 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11058 from ....
11059 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11060 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11061 * sysdeps/alpha/e_sqrtl.c: ... here.
11062 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11063 * sysdeps/alpha/local-soft-fp.h: ... here.
11064 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11065 * sysdeps/alpha/ots_add.c: ... here.
11066 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11067 * sysdeps/alpha/ots_cmp.c: ... here.
11068 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11069 * sysdeps/alpha/ots_cmpe.c: ... here.
11070 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11071 * sysdeps/alpha/ots_cvtqux.c: ... here.
11072 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11073 * sysdeps/alpha/ots_cvtqx.c: ... here.
11074 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11075 * sysdeps/alpha/ots_cvttx.c: ... here.
11076 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11077 * sysdeps/alpha/ots_cvtxq.c: ... here.
11078 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11079 * sysdeps/alpha/ots_cvtxt.c: ... here.
11080 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11081 * sysdeps/alpha/ots_div.c: ... here.
11082 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11083 * sysdeps/alpha/ots_mul.c: ... here.
11084 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11085 * sysdeps/alpha/ots_nintxq.c: ... here.
11086 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11087 * sysdeps/alpha/ots_sub.c: ... here.
11088 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11089 * sysdeps/alpha/sfp-machine.h: ... here.
11090
11091 2018-05-23 Florian Weimer <fweimer@redhat.com>
11092
11093 [BZ #19728]
11094 [BZ #19729]
11095 [BZ #22247]
11096 CVE-2016-6261
11097 CVE-2016-6263
11098 CVE-2017-14062
11099 Switch to extern IDNA implementation (libidn2).
11100 * libidn: Remove subdirectory.
11101 * LICENSES: Do not mention licensing conditions for the removed
11102 libidn code.
11103 * config.h.in (HAVE_LIBIDN): Remove.
11104 * include/dlfcn.h (__libc_dlopen): Update comment.
11105 * include/idna.h: Remove file.
11106 * inet/Makefile (routines): Add idna.
11107 (tests-static, tests-internal): Add tst-idna_name_classify.
11108 (LOCALES): Generate locales for tests.
11109 (tst-idna_name_classify.out): Depend on generated locales.
11110 * inet/idna_name_classify.c: New file.
11111 * inet/tst-idna_name_classify.c: Likewise.
11112 * inet/net-internal.h (__idna_to_dns_encoding)
11113 (__idna_from_dns_encoding): Declare.
11114 * inet/net-internal.h (enum idna_name_classification): Define.
11115 (__idna_name_classify): Declare.
11116 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11117 __idna_from_dns_encoding.
11118 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11119 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11120 name as a fallback in case of encoding errors.
11121 (getnameinfo): Use DEPRECATED_NI_IDN.
11122 * inet/idna.c: New file.
11123 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11124 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11125 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11126 (modules-names): Add tst-no-libidn2.
11127 (extra-test-objs): Add tst-no-libidn2.os.
11128 (LDFLAGS-tst-no-libidn2.so): Set soname.
11129 (LOCALES): Set, and generate locales.
11130 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11131 (tst-resolv-ai_idn-latin1): Likewise.
11132 (tst-resolv-ai_idn-nolibidn2): Likewise.
11133 (tst-resolv-ai_idn.out): Depend on locales.
11134 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11135 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11136 tst-no-libidn2.so.
11137 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11138 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11139 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11140 * resolv/tst-resolv-ai_idn.c: New file.
11141 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11142 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11143 * resolv/tst-no-libidn2.c: Likewise.
11144 * support/support_format_addrinfo.c (format_ai_flags): Do not
11145 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11146 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11147 (gaih_inet): Call __idna_to_dns_encoding and
11148 __idna_from_dns_encoding, and use the original (punycode) name if
11149 __idna_from_dns_encoding fails due to an encoding error.
11150 (getaddrinfo): Use DEPRECATED_AI_IDN.
11151 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11152 * sysdeps/unix/inet/configure: Remove file.
11153 * sysdeps/unix/inet/configure.ac: Likewise.
11154
11155 2018-05-23 Florian Weimer <fweimer@redhat.com>
11156
11157 Implement allocate_once.
11158 * include/allocate_once.h: New file.
11159 * misc/allocate_once.c: Likewise.
11160 * misc/tst-allocate_once.c: Likewise.
11161 * misc/Makefile (routines): Add allocate_once.
11162 (tests-internal): Add tst-allocate_once.
11163 (generated): Add tst-allocate_once.mtrace,
11164 tst-allocate_once-mem.out.
11165 (tests-special): Add tst-allocate_once-mem.out.
11166 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11167 (tst-allocate_once-mem.out): Call mtrace.
11168 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11169
11170 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11171
11172 [BZ #23196]
11173 * string/test-memcpy.c (do_test1): New function.
11174 (test_main): Call it.
11175
11176 2018-05-23 Andreas Schwab <schwab@suse.de>
11177
11178 [BZ #23196]
11179 CVE-2018-11237
11180 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11181 (L(preloop_large)): Save initial destination pointer in %r11 and
11182 use it instead of %rax after the loop.
11183 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11184
11185 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11186
11187 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11188 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11189 -I../soft-fp. Moved from ....
11190 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11191 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11192 * sysdeps/aarch64/e_sqrtl.c: ... here.
11193 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11194 * sysdeps/aarch64/sfp-machine.h: ... here.
11195
11196 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11197 -Wmaybe-uninitialized around access to fq[0].
11198 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11199 Likewise.
11200
11201 [BZ #18471]
11202 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11203 aliases for non-libc case of versioned symbols.
11204 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11205 (llseek): Define as compat symbol if
11206 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11207 with link warning.
11208 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11209 Make into a compat symbol, disabled for minimum symbol version
11210 GLIBC_2.28 and later.
11211 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11212
11213 2018-05-22 Florian Weimer <fweimer@redhat.com>
11214
11215 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11216 not add -mpreferred-stack-boundary=4.
11217 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11218 (stack-align-test-flags): Likewise.
11219 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11220 Likewise.
11221 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11222 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11223 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11224 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11225 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11226 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11227 (CFLAGS-tst-align2.c): Likewise.
11228
11229 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11230
11231 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11232 (index_arch_Prefer_FSRM): Likewise.
11233 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11234 Also check Prefer_FSRM.
11235 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11236 Also return OPTIMIZE (erms) for Prefer_FSRM.
11237
11238 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11239
11240 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11241 (index_cpu_FSRM): Likewise.
11242 (reg_FSRM): Likewise.
11243
11244 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11245
11246 * math/gen-tgmath-tests.py: Import sys.
11247 (Tests.__init__): Initialize macros_seen.
11248 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11249 if requested to do so for this macro.
11250 (Tests.add_all_tests): Take argument for macro for which to
11251 generate tests.
11252 (Tests.check_macro_list): New function.
11253 (main): Handle check-list argument and argument specifying macro
11254 for which to generate tests.
11255 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11256 [PYTHON] (tgmath3-macro-tests): Likewise.
11257 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11258 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11259 not test-tgmath3.c.
11260 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11261 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11262 to CFLAGS.
11263 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11264 [PYTHON] ($(foreach
11265 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11266 rule.
11267 [PYTHON] (tests-special): Add
11268 $(objpfx)test-tgmath3-macro-list.out.
11269 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11270
11271 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11272 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11273 later.
11274
11275 [BZ #22639]
11276 * time/tzset.c (SECSPERDAY): Cast to time_t.
11277 * time/tst-y2039.c: New file.
11278 * time/Makefile (tests): Add tst-y2039.
11279
11280 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11281
11282 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11283 (PREFETCH_ONE_SET): Remove duplicate line.
11284
11285 2018-05-17 Florian Weimer <fweimer@redhat.com>
11286
11287 * sysdeps/generic/math-type-macros-double.h: Include
11288 <math-nan-payload-double.h> after <libm-alias-double.h>.
11289 * sysdeps/generic/math-type-macros-float.h: Include
11290 <math-nan-payload-float.h> after <libm-alias-float.h>.
11291 * sysdeps/generic/math-type-macros-float128.h: Include
11292 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11293 * sysdeps/generic/math-type-macros-ldouble.h: Include
11294 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11295
11296 2018-05-17 Andreas Schwab <schwab@suse.de>
11297
11298 * resolv/res_send.c (__res_context_send): Don't set errno when
11299 returing error after malloc failure.
11300
11301 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11302
11303 * nptl/allocatestack.c (allocate_stack): Remove the
11304 !__ASSUME_PRIVATE_FUTEX paths.
11305 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11306 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11307 Likewise.
11308 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11309 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11310 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11311 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11312 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11313 !__ASSUME_PRIVATE_FUTEX path.
11314 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11315 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11316 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11317 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11318 !__ASSUME_PRIVATE_FUTEX macros.
11319 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11320 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11321 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11322 * sysdeps/unix/sysv/linux/kernel-features.h
11323 (__ASSUME_PRIVATE_FUTEX): Removed.
11324
11325 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11326
11327 * math/Makefile (libm-narrow-fns): Add div.
11328 (libm-test-funcs-narrow): Likewise.
11329 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11330 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11331 * math/gen-auto-libm-tests.c (test_functions): Add div.
11332 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11333 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11334 (NARROW_DIV_TRIVIAL): Likewise.
11335 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11336 macro.
11337 (__ddivl): Likewise.
11338 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11339 ddiv.
11340 (CFLAGS-nldbl-ddiv.c): New variable.
11341 (CFLAGS-nldbl-fdiv.c): Likewise.
11342 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11343 __nldbl_ddivl.
11344 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11345 prototype.
11346 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11347 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11348 * math/auto-libm-test-in: Add tests of div.
11349 * math/auto-libm-test-out-narrow-div: New generated file.
11350 * math/libm-test-narrow-div.inc: New file.
11351 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11352 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11353 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11354 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11355 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11356 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11362 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11364 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11365 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11366 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11367 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11368 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11369 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11370 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11371 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11372 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11373 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11374 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11375 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11376 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11377 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11378 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11379 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11380 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11381 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11382 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11387 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11388 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11389 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11390 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11391 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11392 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11393 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11394 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11395
11396 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11397
11398 [BZ #23178]
11399 * nscd/nscd-client.h (sendfileall): Remove prototype.
11400 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11401 (handle_request): Use writeall instead of sendfileall.
11402 * nscd/aicache.c (addhstaiX): Likewise.
11403 * nscd/grpcache.c (cache_addgr): Likewise.
11404 * nscd/hstcache.c (cache_addhst): Likewise.
11405 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11406 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11407 * nscd/pwdcache.c (cache_addpw): Likewise.
11408 * nscd/servicescache.c (cache_addserv): Likewise.
11409 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11410 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11411 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11412 Remove define.
11413
11414 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11415
11416 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11417 Include <string/strncat.c>.
11418 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11419 alias.
11420 (__GI___strncat): New hidden alias.
11421
11422 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11423
11424 * sysdeps/mips/mips32/libm-test-ulps: Update.
11425 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11426
11427 2018-05-16 Florian Weimer <fweimer@redhat.com>
11428
11429 * support/Makefile (libsupport-routines): Add support_quote_blob,
11430 support_test_compare_blob.
11431 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11432 * support/check.h (TEST_COMPARE_BLOB): Define.
11433 (support_test_compare_blob): Declare.
11434 * support/support.h (support_quote_blob): Declare.
11435 * support/support_quote_blob.c: New file.
11436 * support/support_test_compare_blob.c: Likewise.
11437 * support/tst-support_quote_blob.c: Likewise.
11438 * support/tst-test_compare_blob.c: Likewise.
11439
11440 2018-05-16 Florian Weimer <fweimer@redhat.com>
11441
11442 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11443 of <strtod_nan_double.h>.
11444 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11445 instead of SET_MANTISSA.
11446 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11447 of include <strtod_nan_float.h>.
11448 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11449 instead of <strtod_nan_ldouble.h>.
11450 * stdlib/strtod_nan_double.h: Move to ...
11451 * sysdeps/generic/math-nan-payload-double.h: ... here.
11452 (FLOAT): Remove definition.
11453 (SET_MANTISSA): Rename to ...
11454 (SET_NAN_PAYLOAD): ... this.
11455 * stdlib/strtod_nan_float.h: Move to ...
11456 * sysdeps/generic/math-nan-payload-float.h: ... here.
11457 (FLOAT): Remove definition.
11458 (SET_MANTISSA): Rename to ...
11459 (SET_NAN_PAYLOAD): ... this.
11460 * sysdeps/generic/math-type-macros-double.h: Include
11461 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11462 instead of <math-svid-compat.h>.
11463 * sysdeps/generic/math-type-macros-float.h: Include
11464 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11465 instead of <math-svid-compat.h>.
11466 * sysdeps/generic/math-type-macros-float128.h: Include
11467 <math-nan-payload-float128.h>.
11468 * sysdeps/generic/math-type-macros-ldouble.h: Include
11469 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11470 instead of <math-svid-compat.h>.
11471 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11472 check for definition.
11473 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11474 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11475 Include <ieee754_float128.h>.
11476 (FLOAT): Remove definition.
11477 (SET_MANTISSA): Rename to ...
11478 (SET_NAN_PAYLOAD): ... this.
11479 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11480 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11481 Do not include <float128_private.h>.
11482 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11484 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11485 (FLOAT): Remove definition.
11486 (SET_MANTISSA): Rename to ...
11487 (SET_NAN_PAYLOAD): ... this.
11488 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11489 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11490 (FLOAT): Remove definition.
11491 (SET_MANTISSA): Rename to ...
11492 (SET_NAN_PAYLOAD): ... this.
11493 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11494 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11495 (FLOAT): Remove definition.
11496 (SET_MANTISSA): Rename to ...
11497 (SET_NAN_PAYLOAD): ... this.
11498 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11499 of "../stdlib/strtod_nan_double.h".
11500 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11501 of "../stdlib/strtod_nan_float.h".
11502 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11503 instead of "../stdlib/strtod_nan_ldouble.h".
11504 * manual/arith.texi (Parsing of Floats): Adjust comment.
11505
11506 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11507
11508 * math/Makefile (libm-narrow-fns): Add mul.
11509 (libm-test-funcs-narrow): Likewise.
11510 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11511 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11512 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11513 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11514 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11515 (NARROW_MUL_TRIVIAL): Likewise.
11516 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11517 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11518 macro.
11519 (__dmull): Likewise.
11520 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11521 dmul.
11522 (CFLAGS-nldbl-dmul.c): New variable.
11523 (CFLAGS-nldbl-fmul.c): Likewise.
11524 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11525 __nldbl_dmull.
11526 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11527 prototype.
11528 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11529 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11530 * math/auto-libm-test-in: Add tests of mul.
11531 * math/auto-libm-test-out-narrow-mul: New generated file.
11532 * math/libm-test-narrow-mul.inc: New file.
11533 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11534 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11535 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11536 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11537 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11538 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11539 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11540 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11541 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11542 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11543 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11544 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11545 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11546 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11547 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11548 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11549 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11550 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11551 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11552 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11577
11578 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11579
11580 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11581 with *%eax in call.
11582
11583 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11584
11585 * sysdeps/i386/ldsodefs.h: Removed.
11586 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11587 * sysdeps/x86/ldsodefs.h: This.
11588 (La_i86_regs): New.
11589 (La_i86_retval): Likewise.
11590 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11591 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11592
11593 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11594
11595 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11596 unnecessary testl.
11597
11598 2018-05-13 Alan Modra <amodra@gmail.com>
11599
11600 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11601 R_PARISC_TLS_DTPOFF32 reloc addend.
11602
11603 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11604
11605 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11606 * math/math.h: Restrict the prototype definition for the functions
11607 issignaling(_Float128) and iszero(_Float128); and template
11608 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11609 __HAVE_FLOAT128_UNLIKE_LDBL.
11610 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11611 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11612 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11613 __f128() constants; define the type _Float128 as long double;
11614 and reuse long double in __CFLOAT128.
11615
11616 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11617
11618 * sysdeps/generic/math_private.h: Do not include
11619 <math-barriers.h>.
11620 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11621 <math_private.h>.
11622 * math/fromfp.h: Include <math-barriers.h>.
11623 * math/math-narrow.h: Likewise.
11624 * math/s_nextafter.c: Likewise.
11625 * math/s_nexttowardf.c: Likewise.
11626 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11627 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11628 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11629 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11630 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11631 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11632 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11633 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11634 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11635 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11636 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11637 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11638 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11639 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11640 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11641 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11642 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11643 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11644 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11645 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11646 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11647 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11648 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11649 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11650 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11651 * sysdeps/ieee754/k_standardl.c: Likewise.
11652 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11653 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11654 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11655 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11656 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11657 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11658 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11659 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11660 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11661 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11662 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11663 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11664 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11665 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11666 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11667 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11668 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11669 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11670 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11671 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11672 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11673 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11674
11675 2018-05-11 Florian Weimer <fweimer@redhat.com>
11676
11677 Use 64-bit epoch values in the time zone file parser.
11678 * include/time.h (internal_time_t): Define.
11679 (__tzfile_compute): Use it.
11680 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11681 member.
11682 (transitions): Switch to internal_time_t.
11683 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11684 types.
11685 (__tzfile_compute): Use internal_time_t for timer argument. Check
11686 for truncation before calling __offtime.
11687
11688 2018-05-11 Florian Weimer <fweimer@redhat.com>
11689
11690 [BZ #23166]
11691 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11692 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11693 Likewise.
11694 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11695 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11696 export without --enable-obsolete-rpc.
11697 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11698 symbol. This should not have been exported, ever.
11699
11700 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11701
11702 [BZ #23152]
11703 * localedata/locales/gd_GB (abmon): Fix typo in May:
11704 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11705
11706 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11707
11708 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11709 Use multiple registers to copy data in loop tail.
11710
11711 * sysdeps/aarch64/multiarch/memmove_falkor.S
11712 (__memmove_falkor): Use multiple registers to move data in
11713 loop tail.
11714
11715 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11716
11717 * math/math-underflow.h: New file.
11718 * sysdeps/generic/math_private.h: Do not include <float.h>.
11719 (fabs_tg): Remove macro. Moved to math-underflow.h.
11720 (min_of_type_f): Likewise.
11721 (min_of_type_): Likewise.
11722 (min_of_type_l): Likewise.
11723 (min_of_type_f128): Likewise.
11724 (min_of_type): Likewise.
11725 (math_check_force_underflow): Likewise.
11726 (math_check_force_underflow_nonneg): Likewise.
11727 (math_check_force_underflow_complex): Likewise.
11728 * math/e_exp2_template.c: Include <math-underflow.h>.
11729 * math/k_casinh_template.c: Likewise.
11730 * math/s_catan_template.c: Likewise.
11731 * math/s_catanh_template.c: Likewise.
11732 * math/s_ccosh_template.c: Likewise.
11733 * math/s_cexp_template.c: Likewise.
11734 * math/s_clog10_template.c: Likewise.
11735 * math/s_clog_template.c: Likewise.
11736 * math/s_csin_template.c: Likewise.
11737 * math/s_csinh_template.c: Likewise.
11738 * math/s_csqrt_template.c: Likewise.
11739 * math/s_ctan_template.c: Likewise.
11740 * math/s_ctanh_template.c: Likewise.
11741 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11742 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11743 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11744 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11745 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11746 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11747 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11748 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11749 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11750 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11751 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11752 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11753 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11754 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11755 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11756 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11757 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11758 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11759 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11760 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11761 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11762 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11763 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11764 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11765 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11766 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11767 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11768 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11769 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11770 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11771 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11772 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11773 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11774 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11775 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11776 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11777 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11778 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11779 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11780 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11781 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11782 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11783 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11784 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11785 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11786 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11787 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11788 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11789 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11790 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11791 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11792 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11793 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11794 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11795 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11796 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11797 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11798 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11799 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11800 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11801 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11802 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11803 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11804 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11805 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11806 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11807 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11808 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11809 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11810 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11811 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11812 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11813 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11814 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11815 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11816 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11817 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11818 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11819 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11820 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11821 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11822 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11823 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11824 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11825
11826 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11827
11828 * sysdeps/generic/math-barriers.h: New file.
11829 * sysdeps/generic/math_private.h [!math_opt_barrier]
11830 (math_opt_barrier): Move to math-barriers.h.
11831 [!math_opt_barrier] (math_force_eval): Likewise.
11832 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11833 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11834 math-barriers.h.
11835 (math_force_eval): Likewise.
11836 * sysdeps/alpha/fpu/math-barriers.h: New file.
11837 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11838 math-barriers.h.
11839 (math_force_eval): Likewise.
11840 * sysdeps/x86/fpu/math-barriers.h: New file.
11841 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11842 math-barriers.h.
11843 (math_force_eval): Likewise.
11844 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11845 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11846 multiple-include guard for rename.
11847 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11848 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11849 math-barriers.h.
11850 (math_force_eval): Likewise.
11851
11852 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11853
11854 [BZ #22786]
11855 CVE-2018-11236
11856 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11857 computation.
11858 * stdlib/Makefile (test-bz22786): New test.
11859 * stdlib/test-bz22786.c: New test.
11860
11861 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11862
11863 * include/math-narrow-eval.h: New file. Contents moved from ....
11864 * sysdeps/generic/math_private.h: ... here.
11865 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11866 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11867 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11868 * stdlib/strtod_l.c: Likewise.
11869 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11870 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11871 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11872 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11873 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11874 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11875 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11876 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11877 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11878 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11879 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11880 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11881 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11882 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11883 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11884 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11885 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11886 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11887 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11888 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11889 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11890 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11891 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11892 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11893 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11894 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11895 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11896 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11897 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11898
11899 2018-05-08 Andreas Schwab <schwab@suse.de>
11900
11901 * sysdeps/nptl/internaltypes.h: Fix comment.
11902
11903 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11904
11905 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11906 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11907 hidden.
11908
11909 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11910
11911 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11912 of I into loop header.
11913 * benchtests/bench-memmove-walk.c
11914 (test_main): Likewise.
11915
11916 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11917
11918 Revert:
11919 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11920 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11921
11922 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11923
11924 [BZ #20419]
11925 * elf/dl-load.c (open_verify): Fix stack overflow.
11926 * elf/Makefile (tst-big-note): New test.
11927 * elf/tst-big-note-lib.S: New.
11928 * elf/tst-big-note.c: New.
11929
11930 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11931
11932 * scripts/abilist.awk: Ignore absolute symbols.
11933 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11934 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11935 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11936 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11937 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11938 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11939 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11940 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11941 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11942 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11943 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11944 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11990 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11991 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11992 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11993 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11994 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11995 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11996 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11997 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11998 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11999 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12000 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12001 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12002 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12003 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12004 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12005 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12006 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12007 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12008 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12009 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12010 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12011 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12012 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12013 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12014 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12025 Likewise.
12026 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12029 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12030 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12031 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12032 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12033 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12034 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12035 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12036 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12039 Likewise.
12040 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12045 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12046 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12047 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12048 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12049 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12050 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12061 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12062 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12063 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12064 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12065 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12066 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12067 Likewise.
12068 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12069 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12070 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12071 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12072 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12073 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12074 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12075 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12076 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12077 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12078 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12079 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12080 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12081 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12082 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12083 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12084 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12085 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12086 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12087 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12088 Likewise.
12089 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12090 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12091 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12092 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12093 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12094 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12095 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12096 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12097 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12098 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12099 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12100 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12101 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12102 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12103 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12104 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12105 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12106 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12107 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12108 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12109 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12110 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12111 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12112 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12121 Likewise.
12122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12127 Likewise.
12128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12129 Likewise.
12130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12132 Likewise.
12133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12135 Likewise.
12136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12137 Likewise.
12138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12141 Likewise.
12142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12143 Likewise.
12144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12145 Likewise.
12146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12150 Likewise.
12151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12157 Likewise.
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12160 Likewise.
12161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12162 Likewise.
12163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12164 Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12166 Likewise.
12167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12170 Likewise.
12171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12172 Likewise.
12173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12174 Likewise.
12175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12178 Likewise.
12179 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12183 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12184 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12185 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12186 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12189 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12193 Likewise.
12194 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12202 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12203 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12204 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12205 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12206 Likewise.
12207 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12208 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12209 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12212 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12213 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12215 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12227 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12228 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12232 Likewise.
12233 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12246 Likewise.
12247 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12285
12286 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12287
12288 [BZ #23137]
12289 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12290 Use atomic_load_acquire to load __tid.
12291
12292 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12293
12294 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12295 Restore the pointer into %rdx, after syscall and use %rdx,
12296 instead of %rsi, to restore context.
12297
12298 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12299
12300 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12301 Pop the pointer into %rdx after syscall and use %rdx, instead
12302 of %rsi, to restore context.
12303
12304 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12305
12306 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12307 handlers after setjmp.
12308 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12309 defined.
12310 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12311 <libc-pointer-arith.h>.
12312 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12313 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12314 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12315 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12316 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12317 * sysdeps/x86/__longjmp_cancel.S: New file.
12318 * sysdeps/x86/longjmp.c: Likewise.
12319 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12320
12321 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12322
12323 * NEWS: Add ustat.h deprecation entry.
12324 * bits/ustat.h: Remove file.
12325 * misc/sys/ustat.h: Likewise.
12326 * misc/ustat.h: Likewise.
12327 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12328 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12329 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12330 compatibility mode.
12331 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12332 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12333 generic Linux implementation.
12334
12335 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12336
12337 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12338 * math/w_expl_compat.c: Likewise.
12339 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12340
12341 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12342
12343 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12344
12345 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12346
12347 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12348 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12349 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12350 Remove.
12351 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12353 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12354 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12355 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12356 and SYSCALL_LL64.
12357
12358 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12359
12360 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12361
12362 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12363 * math/w_asin_template.c: Likewise.
12364 * math/w_atanh_template.c: Likewise.
12365
12366 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12367
12368 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12369 to powerpc/powerpc64/be for big-endian.
12370 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12371 little-endian.
12372
12373 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12374 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12375 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12376 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12377 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12378 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12379 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12380 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12381 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12382 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12383 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12384 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12385 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12386 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12387 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12388 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12389 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12390 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12391 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12392 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12393 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12394 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12395 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12396 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12397 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12398 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12399 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12400 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12401 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12402 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12403 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12404 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12405
12406 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12407 adjusted to imply powerpc64 and older processors on powerpc64/be.
12408 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12409 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12410 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12411 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12412 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12413 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12414 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12415 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12416 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12417 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12418 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12419 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12420 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12421 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12422 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12423 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12424 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12425 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12426 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12427 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12428 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12429 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12430 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12431 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12432 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12433 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12434 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12435 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12436 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12437 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12438 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12439
12440 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12441 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12442 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12443 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12444
12445 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12446 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12447 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12448 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12449
12450 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12451 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12452 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12453 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12454 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12455 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12456 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12457 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12458 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12459 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12460 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12461
12462 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12463 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12464 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12465 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12466 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12467 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12468 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12469 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12470 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12471 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12472 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12473
12474 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12475 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12476 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12477 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12478 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12479 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12480 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12481 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12482 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12483 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12484 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12485 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12486
12487 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12488 and adjusted to imply olders processors.
12489 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12490 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12491 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12492 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12493 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12494 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12495 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12496 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12497 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12498 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12499 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12500
12501 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12502 powerpc64/le.
12503 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12504 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12505
12506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12507 powerpc64le.
12508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12510
12511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12512 powerpc64/be.
12513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12516
12517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12518 powerpc64 and adjusted.
12519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12522 Likewise.
12523
12524 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12525
12526 * sysdeps/tile: Remove.
12527 * sysdeps/unix/sysv/linux/tile: Likewise.
12528 * README (tilegx-*-linux-gnu): Remove from list of supported
12529 configurations.
12530 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12531 contribution of support for generic Linux kernel syscall
12532 interface.
12533 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12534 tilegx configurations.
12535 (Config.install_linux_headers): Do not handle tile.
12536 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12537 in comment.
12538 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12539 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12540 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12541 conditional undefine and redefine.
12542 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12543 in comment.
12544 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12545 conditional undefine and redefine.
12546
12547 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12548
12549 * signal/tst-sigaction.c: New file to test BZ #23069.
12550 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12551
12552 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12553
12554 [BZ #22766]
12555 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12556 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12557 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12558 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12559
12560 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12561
12562 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12563 _DIRENT_MATCHES_DIRENT64 is not defined.
12564 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12565 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12566 is defined.
12567 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12568 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12569
12570 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12571
12572 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12573 version to GCC 8 branch.
12574
12575 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12576
12577 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12578 (check_no_hidden): Use type of original function when declaring
12579 alias.
12580
12581 * sysdeps/unix/sysv/linux/sys/ptrace.h
12582 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12583 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12584 (struct __ptrace_seccomp_metadata): New type.
12585 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12586 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12587 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12588 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12589 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12590 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12591 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12592 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12593 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12594 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12595 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12596 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12597 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12598 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12599 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12600 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12601
12602 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12603
12604 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12605 defined.
12606 * dirent/versionsort.c (versionsort): Likewise.
12607 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12608 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12609 * dirent/versionsort64.c (versionsort64): Likewise.
12610 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12611 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12612 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12613 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12614 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12615 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12616 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12617 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12618 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12619 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12622 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12623 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12624
12625 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12626
12627 * elf/elf.h (NT_PPC_PKEY): New macro.
12628
12629 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12630
12631 [BZ #23094]
12632 * localedata/locales/hr_HR: fix thousands_sep and
12633 mon_thousands_sep
12634
12635 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12636
12637 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12638 (XTABS): Define to TAB3.
12639
12640 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12641
12642 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12643
12644 * dirent/scandir-tail-common.c: New file.
12645 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12646 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12647 * dirent/scandir.c: Use scandir-tail-common.c.
12648 * dirent/scandirat.c: Likewise.
12649 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12650 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12651 if _DIRENT_MATCHES_DIRENT64 is defined.
12652 * dirent/scandirat64.c (scandirat64): Likewise.
12653 * include/dirent.h (__scandir_tail): Only define iff
12654 _DIRENT_MATCHES_DIRENT64 is not defined.
12655 (__scandir64_tail): Define regardless.
12656 (__scandirat, scandirat64): Remove libc_hidden_proto.
12657 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12658 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12660 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12661 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12662 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12663 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12664
12665 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12666
12667 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12668 New macro.
12669 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12670 Increase to 24.
12671 (_dl_aarch64_cap_flags): Add asimdfhm.
12672
12673 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12674
12675 * sysdeps/nios2/libm-test-ulps: Update.
12676
12677 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12678
12679 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12680 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12681
12682 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12683 requirements.
12684 (_DIRENT_MATCHES_DIRENT64): Undef
12685 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12686 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12687 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12688 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12689 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12690 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12691 use getdents64 syscalls as base.
12692 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12693 symbol if required.
12694 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12695 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12696 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12697 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12698 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12699 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12700 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12701 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12702 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12703 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12704 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12705
12706 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12707
12708 * scripts/test_printers_common.py (init_test): Disable lock elision.
12709
12710 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12711
12712 * math/test-tgmath.c (count_double, count_float,
12713 count_ldouble, count_cdouble, count_cfloat,
12714 count_cldouble): Use volatile int.
12715
12716 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12717
12718 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12719 (conformtest-xfail-conds): Add i386-gnu.
12720 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12721 i386-gnu.
12722 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12723 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12724 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12725 msqid_ds.msg_lrpid): Likewise.
12726 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12727 Likewise.
12728 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12729 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12730 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12731 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12732 unsigned int.
12733 (struct statvfs64): Likewise.
12734 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12735 Likewise.
12736 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12737 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12738 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12739 instead of wait_queue.
12740 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12741 instead of vm_area_struct.
12742 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12743 struct sched_param definition to it.
12744 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12745 * bits/types/struct_sched_param.h: New file.
12746 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12747 <bits/types/struct_sched_param.h> instead of <sched.h>.
12748 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12749 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12750 generic version but include <bits/pthreadtypes.h> to make struct
12751 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12752 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12753 non-compliant.
12754 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12755 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12756 [__USE_XOPEN] (OFDEL): New macro.
12757 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12758 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12759 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12760 prototypes.
12761 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12762 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12763 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12764 non-compliant.
12765 * sysdeps/i386/sys/ucontext.h: Likewise.
12766 * sysdeps/m68k/sys/ucontext.h: Likewise.
12767 * sysdeps/mips/sys/ucontext.h: Likewise.
12768 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12769 * sysdeps/mach/hurd/i386/Makefile
12770 (test-xfail-POSIX/fcntl.h/conform): Add.
12771 (test-xfail-POSIX/signal.h/conform): Add.
12772 (test-xfail-POSIX/semaphore.h/conform): Add.
12773 (test-xfail-POSIX/regex.h/conform): Add.
12774 (test-xfail-POSIX/aio.h/conform): Add.
12775 (test-xfail-POSIX/mqueue.h/conform): Add.
12776 (test-xfail-POSIX/sys/types.h/conform): Add.
12777 (test-xfail-UNIX98/fcntl.h/conform): Add.
12778 (test-xfail-UNIX98/netdb.h/conform): Add.
12779 (test-xfail-UNIX98/signal.h/conform): Add.
12780 (test-xfail-UNIX98/semaphore.h/conform): Add.
12781 (test-xfail-UNIX98/regex.h/conform): Add.
12782 (test-xfail-UNIX98/aio.h/conform): Add.
12783 (test-xfail-UNIX98/ftw.h/conform): Add.
12784 (test-xfail-UNIX98/mqueue.h/conform): Add.
12785 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12786 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12787 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12788 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12789 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12790 (test-xfail-UNIX98/sys/types.h/conform): Add.
12791 (test-xfail-UNIX98/stdlib.h/conform): Add.
12792 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12793 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12794 (test-xfail-POSIX2008/netdb.h/conform): Add.
12795 (test-xfail-POSIX2008/signal.h/conform): Add.
12796 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12797 (test-xfail-POSIX2008/regex.h/conform): Add.
12798 (test-xfail-POSIX2008/aio.h/conform): Add.
12799 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12800 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12801 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12802 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12803 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12804 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12805 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12806 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12807 (test-xfail-XOPEN2K/signal.h/conform): Add.
12808 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12809 (test-xfail-XOPEN2K/regex.h/conform): Add.
12810 (test-xfail-XOPEN2K/aio.h/conform): Add.
12811 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12812 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12813 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12814 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12815 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12816 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12817 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12818 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12819 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12820 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12821 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12822 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12823 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12824 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12825 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12826 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12827 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12828 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12829 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12830 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12831 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12832 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12833 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12834 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12835 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12836 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12837 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12838 i386-gnu.
12839 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12840 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12841
12842 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12843
12844 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12845 --enable-obsolete for powerpc-linux-gnuspe.
12846
12847 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12848
12849 * conform/data/sys/un.h-data: Allow sun_ prefix.
12850 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12851 prototypes.
12852 * sysdeps/mach/include/mach.h: Likewise.
12853 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12854 * sysdeps/mach/include/mach_error.h: Likewise.
12855
12856 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12857
12858 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12859 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12860 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12861 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12862
12863 2018-04-16 Andreas Schwab <schwab@suse.de>
12864
12865 [BZ #19527]
12866 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12867
12868 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12869
12870 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12871 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12872
12873 2018-04-12 DJ Delorie <dj@redhat.com>
12874
12875 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12876 version to 4.16.
12877
12878 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12879
12880 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12881 (struct kernel_sigaction): Use the same definition on 31bit as is used
12882 on 64bit.
12883
12884 2018-04-09 Florian Weimer <fweimer@redhat.com>
12885
12886 [BZ #23037]
12887 * resolv/res_send.c (send_dg): Use designated initializers instead
12888 of assignment to zero-initialize other fields of struct mmsghdr.
12889
12890 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12891
12892 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12893 __READDIR_ALIAS): Undefine after usage.
12894 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12895 __READDIR_R_ALIAS): Likewise.
12896 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12897 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12898 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12899 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12900 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12901 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12902 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12903 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12904 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12905 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12906 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12907 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12908 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12909 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12910 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12911 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12912 * sysdeps/unix/sysv/linux/readdir.c: New file.
12913 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12914 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12915 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12916
12917 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12918
12919 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12920
12921 * manual/charset.texi (Converting a Character): Fix typo.
12922
12923 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12924
12925 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12926
12927 * sysdeps/arm/libm-test-ulps: Update.
12928
12929 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12930 as base implementation.
12931 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12932 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12933 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12934 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12935 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12936 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12937 remove unrequired definitions and update comments.
12938 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12939 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12940 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12941 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12942 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12943 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12944 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12945 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12946 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12947 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12948 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12949 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12950 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12951 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12952 and RESET_SA_RESTORER hooks.
12953
12954 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12955
12956 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12957
12958 2018-04-05 Florian Weimer <fweimer@redhat.com>
12959
12960 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12961 integer overflow, memory leak on error, and indeterminate errno
12962 value. Add a null wide character to terminate the result string.
12963 * manual/charset.texi (Converting a Character): Mention embedded
12964 null bytes in the mbrtowc input string. Explain what happens in
12965 the -2 result case. Do not claim that mbrtowc is simple or
12966 obvious to use. Adjust the description of the code example. Use
12967 @code, not @var, for concrete variables.
12968
12969 2018-04-05 Florian Weimer <fweimer@redhat.com>
12970
12971 * manual/examples/mbstouwcs.c: New file.
12972 * manual/charset.texi (Converting a Character): Include it.
12973
12974 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12975
12976 * include/dirent.h (dirfd): Add hidden proto.
12977 * dirent/dirfd.c (dirfd): Add hidden def.
12978 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12979 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12980
12981 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12982
12983 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12984 sin, cos and sincos to 1 ULP.
12985
12986 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12987
12988 [BZ #19818]
12989 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12990 symbols.
12991 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12992 * elf/tst-absolute-sym.c: New file.
12993 * elf/tst-absolute-sym-lib.c: New file.
12994 * elf/tst-absolute-sym-lib.lds: New file.
12995 * elf/Makefile (tests): Add `tst-absolute-sym'.
12996 (modules-names): Add `tst-absolute-sym-lib'.
12997 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12998 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12999 ($(objpfx)tst-absolute-sym): New dependency.
13000
13001 [BZ #19818]
13002 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13003 parameter.
13004 (SYMBOL_ADDRESS): New macro.
13005 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13006 SYMBOL_ADDRESS for symbol address calculation.
13007 * elf/dl-runtime.c (_dl_fixup): Likewise.
13008 (_dl_profile_fixup): Likewise.
13009 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13010 * elf/rtld.c (dl_main): Likewise.
13011 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13012 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13013 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13014 (elf_machine_rela): Likewise.
13015 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13016 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13017 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13018 (elf_machine_rela): Likewise.
13019 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13020 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13021 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13022 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13023 Likewise.
13024 (elf_machine_reloc): Likewise.
13025 (elf_machine_got_rel): Likewise.
13026 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13027 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13028 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13029 Likewise.
13030 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13031 Likewise.
13032 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13033 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13034 Likewise.
13035 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13036 Likewise.
13037 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13038 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13039 Likewise.
13040 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13041 Likewise.
13042 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13043 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13044
13045 2018-04-04 Zack Weinberg <zackw@panix.com>
13046
13047 * sysdeps/generic/internal-signals.h: Include signal.h,
13048 sigsetops.h, and stdbool.h.
13049 (__libc_signal_block_all): Actually block all signals.
13050 (__libc_signal_block_app): Likewise.
13051 (__libc_signal_restore_set): Actually restore the signal mask.
13052
13053 2018-04-04 Florian Weimer <fweimer@redhat.com>
13054
13055 inet: Actually build and run tst-deadline.
13056 * inet/Makefile (tests-internal): Add tst-deadline and do not
13057 overwrite the variable.
13058 (tests-static-internal): Remove variable.
13059
13060 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13061
13062 [BZ #22947]
13063 * bits/uio-ext.h (RWF_APPEND): New.
13064 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13065 * manual/llio.texi: Document RWF_APPEND.
13066 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13067 (RWF_SUPPORTED): Add RWF_APPEND.
13068
13069 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13070
13071 [BZ #22391]
13072 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13073 check for internal nptl signals.
13074 * nptl/sigaction.c (__sigaction): Likewise.
13075 * signal/sigaddset.c (sigaddset): Likewise.
13076 * signal/sigdelset.c (sigdelset): Likewise.
13077 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13078 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13079 value.
13080 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13081 to filter out internal nptl signals.
13082 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13083 also check realtime signals using standard macros.
13084 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13085 __is_internal_signal, __libc_signal_block_all,
13086 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13087 * sysdeps/nptl/sigfillset.c: Remove file.
13088 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13089 Change return to bool.
13090 (__clear_internal_signals): Remove SIGTIMER clean since it is
13091 equal to SIGCANEL on Linux.
13092 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13093 signal set was constructed using standard functions.
13094
13095 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13096
13097 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13098 ifname is too long.
13099 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13100 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13101 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13102 hidden def.
13103 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13104 * signal/sigaddset.c: Include <sigsetopts.h>.
13105 * signal/sigdelset.c: Likewise.
13106
13107 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13108
13109 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13110 (__cos): Likewise.
13111 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13112 logic as sin and cos.
13113
13114 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13115
13116 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13117 inputs. Return correct sign.
13118 (do_sincos): Remove small input check before do_sin, let do_sin set
13119 the sign.
13120 (__sin): Likewise.
13121 (__cos): Likewise.
13122
13123 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13124
13125 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13126 (do_cos_slow): Likewise.
13127 (do_sin_slow): Likewise.
13128 (reduce_and_compute): Likewise.
13129 (slow): Likewise.
13130 (slow1): Likewise.
13131 (slow2): Likewise.
13132 (sloww): Likewise.
13133 (sloww1): Likewise.
13134 (sloww2): Likewise.
13135 (bslow): Likewise.
13136 (bslow1): Likewise.
13137 (bslow2): Likewise.
13138 (cslow2): Likewise.
13139
13140 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13141
13142 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13143 (do_cos): Remove corp parameter and calculations.
13144 (do_sin): Likewise.
13145 (do_sincos): Remove cor variable.
13146 (__sin): Use do_sincos for huge inputs.
13147 (__cos): Likewise.
13148 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13149 (reduce_and_compute_sincos): Remove unused function.
13150
13151 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13152
13153 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13154 reduce_sincos, improve accuracy to 136 bits.
13155 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13156 (__sin): Use improved reduction and simplified do_sincos calculation.
13157 (__cos): Likewise.
13158 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13159
13160 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13161
13162 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13163 (do_sincos_2): Likewise.
13164 (__sin): Remove middle range reduction case.
13165 (__cos): Likewise.
13166 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13167 reduction case.
13168
13169 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13170
13171 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13172 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13173 inputs.
13174 (__cos): Likewise.
13175 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13176
13177 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13178
13179 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13180 version to 4.16
13181
13182 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13183
13184 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13185 Remove definitions.
13186 (opendir_oflags): Use O_DIRECTORY regardless.
13187 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13188 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13189
13190 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13191
13192 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13193 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13194 macros.
13195 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13196 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13197 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13198 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13199 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13200 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13201
13202 * htl/Makefile: Bump licence to LGPL 2.1+.
13203 * htl/alloca_cutoff.c: Likewise.
13204 * htl/cthreads-compat.c: Likewise.
13205 * htl/lockfile.c: Likewise.
13206 * htl/pt-alloc.c: Likewise.
13207 * htl/pt-cancel.c: Likewise.
13208 * htl/pt-cleanup.c: Likewise.
13209 * htl/pt-create.c: Likewise.
13210 * htl/pt-dealloc.c: Likewise.
13211 * htl/pt-detach.c: Likewise.
13212 * htl/pt-exit.c: Likewise.
13213 * htl/pt-getattr.c: Likewise.
13214 * htl/pt-initialize.c: Likewise.
13215 * htl/pt-internal.h: Likewise.
13216 * htl/pt-join.c: Likewise.
13217 * htl/pt-self.c: Likewise.
13218 * htl/pt-setcancelstate.c: Likewise.
13219 * htl/pt-setcanceltype.c: Likewise.
13220 * htl/pt-sigmask.c: Likewise.
13221 * htl/pt-spin-inlines.c: Likewise.
13222 * htl/pt-testcancel.c: Likewise.
13223 * htl/pt-yield.c: Likewise.
13224 * htl/tests/test-1.c: Likewise.
13225 * htl/tests/test-10.c: Likewise.
13226 * htl/tests/test-11.c: Likewise.
13227 * htl/tests/test-12.c: Likewise.
13228 * htl/tests/test-13.c: Likewise.
13229 * htl/tests/test-14.c: Likewise.
13230 * htl/tests/test-15.c: Likewise.
13231 * htl/tests/test-16.c: Likewise.
13232 * htl/tests/test-17.c: Likewise.
13233 * htl/tests/test-2.c: Likewise.
13234 * htl/tests/test-3.c: Likewise.
13235 * htl/tests/test-4.c: Likewise.
13236 * htl/tests/test-5.c: Likewise.
13237 * htl/tests/test-6.c: Likewise.
13238 * htl/tests/test-7.c: Likewise.
13239 * htl/tests/test-8.c: Likewise.
13240 * htl/tests/test-9.c: Likewise.
13241 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13242 * sysdeps/htl/bits/cancelation.h: Likewise.
13243 * sysdeps/htl/bits/pthread-np.h: Likewise.
13244 * sysdeps/htl/bits/pthread.h: Likewise.
13245 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13246 * sysdeps/htl/bits/semaphore.h: Likewise.
13247 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13248 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13249 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13250 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13251 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13252 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13253 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13254 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13255 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13256 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13257 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13258 * sysdeps/htl/old_pt-atfork.c: Likewise.
13259 * sysdeps/htl/pt-atfork.c: Likewise.
13260 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13261 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13262 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13263 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13264 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13265 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13266 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13267 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13268 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13269 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13270 * sysdeps/htl/pt-attr-init.c: Likewise.
13271 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13272 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13273 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13274 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13275 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13276 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13277 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13278 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13279 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13280 * sysdeps/htl/pt-attr.c: Likewise.
13281 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13282 * sysdeps/htl/pt-barrier-init.c: Likewise.
13283 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13284 * sysdeps/htl/pt-barrier.c: Likewise.
13285 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13286 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13287 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13288 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13289 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13290 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13291 * sysdeps/htl/pt-cond-init.c: Likewise.
13292 * sysdeps/htl/pt-cond-signal.c: Likewise.
13293 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13294 * sysdeps/htl/pt-cond-wait.c: Likewise.
13295 * sysdeps/htl/pt-cond.c: Likewise.
13296 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13297 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13298 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13299 * sysdeps/htl/pt-condattr-init.c: Likewise.
13300 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13301 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13302 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13303 * sysdeps/htl/pt-equal.c: Likewise.
13304 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13305 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13306 * sysdeps/htl/pt-getschedparam.c: Likewise.
13307 * sysdeps/htl/pt-getspecific.c: Likewise.
13308 * sysdeps/htl/pt-init-specific.c: Likewise.
13309 * sysdeps/htl/pt-key-create.c: Likewise.
13310 * sysdeps/htl/pt-key-delete.c: Likewise.
13311 * sysdeps/htl/pt-key.h: Likewise.
13312 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13313 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13314 * sysdeps/htl/pt-mutex-init.c: Likewise.
13315 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13316 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13317 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13318 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13319 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13320 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13321 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13322 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13323 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13324 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13325 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13326 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13327 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13328 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13329 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13330 * sysdeps/htl/pt-mutexattr.c: Likewise.
13331 * sysdeps/htl/pt-once.c: Likewise.
13332 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13333 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13334 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13335 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13336 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13337 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13338 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13339 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13340 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13341 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13342 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13343 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13344 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13345 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13346 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13347 * sysdeps/htl/pt-setschedparam.c: Likewise.
13348 * sysdeps/htl/pt-setschedprio.c: Likewise.
13349 * sysdeps/htl/pt-setspecific.c: Likewise.
13350 * sysdeps/htl/pt-spin.c: Likewise.
13351 * sysdeps/htl/pt-startup.c: Likewise.
13352 * sysdeps/htl/pthread.h: Likewise.
13353 * sysdeps/htl/sem-close.c: Likewise.
13354 * sysdeps/htl/sem-destroy.c: Likewise.
13355 * sysdeps/htl/sem-getvalue.c: Likewise.
13356 * sysdeps/htl/sem-init.c: Likewise.
13357 * sysdeps/htl/sem-open.c: Likewise.
13358 * sysdeps/htl/sem-post.c: Likewise.
13359 * sysdeps/htl/sem-timedwait.c: Likewise.
13360 * sysdeps/htl/sem-trywait.c: Likewise.
13361 * sysdeps/htl/sem-unlink.c: Likewise.
13362 * sysdeps/htl/sem-wait.c: Likewise.
13363 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13364 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13365 * sysdeps/mach/htl/pt-block.c: Likewise.
13366 * sysdeps/mach/htl/pt-spin.c: Likewise.
13367 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13368 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13369 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13370 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13371 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13372 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13373 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13374 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13375 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13376 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13377 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13378 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13379 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13380 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13381 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13382 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13383 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13384 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13385 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13386 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13387 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13388 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13389 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13390 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13391 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13392 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13393 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13394 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13395 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13396 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13397 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13398 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13399 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13400 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13401 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13402 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13403 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13404 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13405 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13406 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13407 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13408 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13409 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13410
13411 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13412 * README: Remove the mention of out-of-tree patches needed for
13413 GNU/Hurd.
13414
13415 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13416 (UTIME_NOW, UTIME_OMIT): Define macros.
13417
13418 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13419 instead of pthread_detach.
13420 (__cthread_fork): Call __pthread_create instead of pthread_create.
13421 (__cthread_keycreate): Call __pthread_key_create instead of
13422 pthread_key_create.
13423 (__cthread_getspecific): Call __pthread_getspecific instead of
13424 pthread_getspecific.
13425 (__cthread_setspecific): Call __pthread_setspecific instead of
13426 pthread_setspecific.
13427 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13428 __pthread_mutex_unlock instead of pthread_mutex_lock and
13429 pthread_mutex_unlock.
13430 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13431 ___pthread_get_cleanup_stack.
13432 (__pthread_get_cleanup_stack): New strong alias.
13433 * htl/pt-create.c: Include <pthreadP.h>.
13434 (entry_point): Call __pthread_exit instead of pthread_exit.
13435 (pthread_create): Rename to __pthread_create.
13436 (pthread_create): New strong alias.
13437 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13438 (pthread_detach): New strong alias.
13439 (__pthread_detach): Call __pthread_cond_broadcast instead of
13440 pthread_cond_broadcast.
13441 * htl/pt-exit.c: Include <pthreadP.h>.
13442 (__pthread_exit): Call __pthread_setcancelstate and
13443 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13444 __pthread_get_cleanup_stack.
13445 * htl/pt-testcancel.c: Include <pthreadP.h>.
13446 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13447 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13448 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13449 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13450 pthread_attr_getstacksize.
13451 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13452 Rename to __pthread_attr_getstackaddr.
13453 (pthread_attr_getstackaddr): New strong alias.
13454 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13455 Rename to __pthread_attr_getstacksize.
13456 (pthread_attr_getstacksize): New strong alias.
13457 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13458 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13459 (pthread_attr_setstack): New strong alias.
13460 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13461 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13462 pthread_attr_getstacksize, pthread_attr_setstacksize and
13463 pthread_attr_setstackaddr.
13464 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13465 Rename to __pthread_attr_setstackaddr.
13466 (pthread_attr_setstackaddr): New strong alias.
13467 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13468 Rename to __pthread_attr_setstacksize.
13469 (pthread_attr_setstacksize): New strong alias.
13470 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13471 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13472 pthread_exit.
13473 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13474 (__pthread_key_create): New hidden def.
13475 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13476 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13477 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13478 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13479 __pthread_setspecific, __pthread_setcancelstate,
13480 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13481 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13482 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13483 declarations.
13484 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13485 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13486 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13487 (pthread_attr_setstackaddr): New strong alias.
13488 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13489 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13490 (pthread_attr_setstacksize): New strong alias.
13491 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13492 (call_exit): Call __pthread_exit instead of pthread_exit.
13493 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13494 (_pthread_mutex_init): New hidden definition.
13495 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13496 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13497 instead of pthread_attr_init and pthread_attr_setstack.
13498
13499 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13500 __vm_deallocate instead of vm_allocate and vm_deallocate.
13501 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13502 setenv.
13503 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13504 of geteuid.
13505 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13506 strdup.
13507 * hurd/siginfo.c: Include <libioP.h>.
13508 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13509 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13510 munmap.
13511 * mach/devstream.c: Include <libioP.h>.
13512 (dealloc_ref): Call __mach_port_deallocate instead of
13513 mach_port_deallocate.
13514 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13515 Call __mach_port_deallocate instead of mach_port_deallocate.
13516 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13517 pathconf.
13518 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13519 munmap.
13520 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13521 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13522 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13523 of munmap.
13524 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13525 of close.
13526 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13527 instead of sysconf.
13528 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13529 __clock_gettime instead of clock_gettime.
13530 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13531 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13532 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13533 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13534 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13535 tcgetattr.
13536 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13537 __clock_gettime and __nanosleep instead of clock_gettime and
13538 nanosleep.
13539 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13540 __hurd_catch_signal.
13541 (hurd_catch_signal): New strong alias.
13542 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13543 __hurd_catch_signal instead of hurd_catch_signal.
13544 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13545 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13546 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13547 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13548 (_hurd_thread_sigstate): Add hidden def.
13549 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13550 mutex_unlock.
13551 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13552 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13553 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13554 __hurd_file_name_path_lookup.
13555 (hurd_file_name_path_lookup): New strong alias.
13556 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13557 hurd_file_name_path_lookup.
13558 * mach/errstring.c (mach_error_type): Add hidden def.
13559 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13560 * mach/mutex-init.c (__mutex_init): Add hidden def.
13561 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13562 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13563 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13564 * sysdeps/mach/hurd/getcwd.c
13565 (_hurd_canonicalize_directory_name_internal): Rename to
13566 __hurd_canonicalize_directory_name_internal.
13567 (_hurd_canonicalize_directory_name_internal): New strong alias.
13568 (__canonicalize_directory_name_internal, __getcwd): Call
13569 __hurd_canonicalize_directory_name_internal instead of
13570 _hurd_canonicalize_directory_name_internal.
13571 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13572 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13573 hidden defs.
13574 * sysdeps/hurd/include/hurd.h: New file.
13575 * sysdeps/hurd/include/hurd/fd.h: New file.
13576 * sysdeps/hurd/include/hurd/signal.h: New file.
13577 * sysdeps/mach/include/lock-intern.h: New file.
13578 * sysdeps/mach/include/mach.h: New file.
13579 * sysdeps/mach/include/mach/mig_support.h: New file.
13580 * sysdeps/mach/include/mach_error.h: New file.
13581 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13582 prototype.
13583 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13584 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13585 _HEADER_H_HIDDEN_DEF macro.
13586 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13587 _hurd_fd_error_signal): Add hidden prototype.
13588 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13589 hidden def.
13590 * libio/iolibio.h (_IO_puts): New hidden prototype.
13591 * libio/ioputs.c (_IO_puts): New hidden def.
13592 * sysdeps/mach/hurd/localplt.data: New file.
13593
13594 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13595 Amos Jeffries <squid3@treenet.co.nz>
13596 David Michael <fedora.dm0@gmail.com>
13597 Marco Gerards <marco@gnu.org>
13598 Marcus Brinkmann <marcus@gnu.org>
13599 Neal H. Walfield <neal@gnu.org>
13600 Pino Toscano <toscano.pino@tiscali.it>
13601 Richard Braun <rbraun@sceen.net>
13602 Roland McGrath <roland@gnu.org>
13603 Samuel Thibault <samuel.thibault@ens-lyon.org>
13604 Thomas DiModica <ricinwich@yahoo.com>
13605 Thomas Schwinge <tschwinge@gnu.org>
13606
13607 * htl: New directory.
13608 * sysdeps/htl: New directory.
13609 * sysdeps/hurd/htl: New directory.
13610 * sysdeps/i386/htl: New directory.
13611 * sysdeps/mach/htl: New directory.
13612 * sysdeps/mach/hurd/htl: New directory.
13613 * sysdeps/mach/hurd/i386/htl: New directory.
13614 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13615 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13616 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13617
13618 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13619
13620 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13621 signals in thread created for runing timers.
13622
13623 2018-04-01 Florian Weimer <fweimer@redhat.com>
13624
13625 * support/support_format_addrinfo.c (support_format_addrinfo):
13626 Include unknown error number in formatted result.
13627
13628 2018-03-29 Florian Weimer <fweimer@redhat.com>
13629
13630 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13631 capture SIGBUS.
13632
13633 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13634
13635 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13636 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13637 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13638 (__ASSUME_CLONE_BACKWARDS): Define.
13639
13640 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13641
13642 [BZ #23024]
13643 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13644 early when linux sentinel value is set.
13645
13646 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13647
13648 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13649
13650 2018-03-27 Andreas Schwab <schwab@suse.de>
13651
13652 [BZ #23005]
13653 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13654 allocation of private copy of nsaddr_list fails.
13655
13656 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13657
13658 [BZ #16552]
13659 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13660 * sysdeps/unix/sysv/linux/umount.c: ... here.
13661 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13662 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13663 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13664 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13666 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13667 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13668
13669 2018-03-26 Andreas Schwab <schwab@suse.de>
13670
13671 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13672 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13673 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13674 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13675 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13676 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13677 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13678 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13679 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13680 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13681 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13682 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13683 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13684 (R_RISCV_NUM): Define.
13685
13686 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13687
13688 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13689 TLS declaration of errno.
13690 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13691 __libc_setup_tls.
13692 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13693 (ARCH_SETUP_TLS): Likewise.
13694 * sysdeps/mach/hurd/libc-start.h: New file copied from
13695 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13696 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13697 instead of __libc_setup_tls.
13698 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13699 __libc_setup_tls before initializing libpthread and running _hurd_init
13700 which starts the signal thread.
13701 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13702 Declare function.
13703 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13704
13705 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13706
13707 [BZ #22998]
13708 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13709 after it is defined.
13710
13711 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13712 Max Horn <max@quendi.de>
13713
13714 [BZ #22644]
13715 CVE-2017-18269
13716 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13717 branch conditions.
13718 * string/test-memmove.c (do_test2): New testcase.
13719
13720 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13721
13722 * sysdeps/generic/frame.h: Remove file.
13723 * sysdeps/arm/frame.h: Likewise.
13724 * sysdeps/hppa/frame.h: Likewise.
13725 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13726 macro.
13727 (GET_FRAME): Likewise.
13728 (GET_STACK): Likewise.
13729 (CALL_SIGHANDLER): Likewise.
13730 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13731 Likewise.
13732 (GET_FRAME): Likewise.
13733 (GET_STACK): Likewise.
13734 (CALL_SIGHANDLER): Likewise.
13735 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13736 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13737 (GET_FRAME): Likewise.
13738 (GET_STACK): Likewise.
13739 (CALL_SIGHANDLER): Likewise.
13740 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13741 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13742 (GET_FRAME): Likewise.
13743 (GET_STACK): Likewise.
13744 (ADVANCE_STACK_FRAME): Likewise.
13745 (CALL_SIGHANDLER): Likewise.
13746 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13747 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13748 (GET_FRAME): Likewise.
13749 (GET_STACK): Likewise.
13750 (CALL_SIGHANDLER): Likewise.
13751 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13752 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13753 (GET_FRAME): Likewise.
13754 (GET_STACK): Likewise.
13755 (CALL_SIGHANDLER): Likewise.
13756 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13757 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13758 (GET_FRAME): Likewise.
13759 (GET_STACK): Likewise.
13760 (CALL_SIGHANDLER): Likewise.
13761 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13762 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13763 (GET_FRAME): Likewise.
13764 (GET_STACK): Likewise.
13765 (CALL_SIGHANDLER): Likewise.
13766 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13767 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13768 (GET_FRAME): Likewise.
13769 (GET_STACK): Likewise.
13770 (CALL_SIGHANDLER): Likewise.
13771 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13772 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13773 (GET_FRAME): Likewise.
13774 (GET_STACK): Likewise.
13775 (CALL_SIGHANDLER): Likewise.
13776 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13777 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13778 (GET_FRAME): Likewise.
13779 (GET_STACK): Likewise.
13780 (CALL_SIGHANDLER): Likewise.
13781 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13782 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13783 (GET_FRAME): Likewise.
13784 (GET_STACK): Likewise.
13785 (CALL_SIGHANDLER): Likewise.
13786 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13787 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13788 (GET_FRAME): Likewise.
13789 (GET_STACK): Likewise.
13790 (CALL_SIGHANDLER): Likewise.
13791 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13792 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13793 (FIRST_FRAME_POINTER): Likewise.
13794 (ADVANCE_STACK_FRAME): Likewise.
13795 (GET_STACK): Likewise.
13796 (GET_FRAME): Likewise.
13797 (CALL_SIGHANDLER): Likewise.
13798 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13799 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13800 (ADVANCE_STACK_FRAME): Likewise.
13801 (GET_STACK): Likewise.
13802 (GET_FRAME): Likewise.
13803 (CALL_SIGHANDLER): Likewise.
13804 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13805 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13806 (GET_FRAME): Likewise.
13807 (GET_STACK): Likewise.
13808 (CALL_SIGHANDLER): Likewise.
13809 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13810 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13811 (GET_FRAME): Likewise.
13812 (GET_STACK): Likewise.
13813 (CALL_SIGHANDLER): Likewise.
13814
13815 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13816
13817 * sysdeps/x86_64/backtrace.c: Move to ....
13818 * debug/backtrace.c: ... here.
13819 * sysdeps/aarch64/backtrace.c: Remove file.
13820 * sysdeps/alpha/backtrace.c: Likewise.
13821 * sysdeps/hppa/backtrace.c: Likewise.
13822 * sysdeps/ia64/backtrace.c: Likewise.
13823 * sysdeps/mips/backtrace.c: Likewise.
13824 * sysdeps/nios2/backtrace.c: Likewise.
13825 * sysdeps/riscv/backtrace.c: Likewise.
13826 * sysdeps/sh/backtrace.c: Likewise.
13827 * sysdeps/tile/backtrace.c: Likewise.
13828
13829 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13830
13831 [BZ #22987]
13832 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13833 function.
13834 (fdimf): Likewise.
13835 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13836
13837 [BZ #17343]
13838 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13839 possibly overflowing computations.
13840
13841 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13842
13843 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13844 values from Linux-specific section now that it is in the GNU section.
13845 * sysdeps/gnu/errlist.c: Regenerate.
13846
13847 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13848
13849 * math/Makefile (libm-narrow-fns): Add sub.
13850 (libm-test-funcs-narrow): Likewise.
13851 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13852 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13853 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13854 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13855 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13856 (NARROW_SUB_TRIVIAL): Likewise.
13857 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13858 macro.
13859 (__dsubl): Likewise.
13860 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13861 dsub.
13862 (CFLAGS-nldbl-dsub.c): New variable.
13863 (CFLAGS-nldbl-fsub.c): Likewise.
13864 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13865 __nldbl_dsubl.
13866 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13867 prototype.
13868 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13869 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13870 * math/auto-libm-test-in: Add tests of sub.
13871 * math/auto-libm-test-out-narrow-sub: New generated file.
13872 * math/libm-test-narrow-sub.inc: New file.
13873 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13874 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13875 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13876 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13877 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13878 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13879 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13880 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13881 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13882 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13883 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13884 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13885 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13886 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13887 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13888 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13889 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13890 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13891 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13892 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13893 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13894 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13895 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13896 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13897 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13898 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13899 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13900 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13901 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13902 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13903 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13904 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13905 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13909 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13910 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13911 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13912 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13913 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13914 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13915 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13916 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13917 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13918 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13919
13920 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13921
13922 [BZ #20079]
13923 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13924
13925 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13926
13927 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13928
13929 2018-03-18 Richard Braun <rbraun@sceen.net>
13930
13931 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13932 thread reference.
13933
13934 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13935
13936 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13937 (__libc_cleanup_fct): Define function.
13938 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13939 __libc_cleanup_end): Rewrite implementation using
13940 __attribute__ ((__cleanup__)).
13941 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13942 * hurd/Makefile (routines): Add hurdlock.
13943 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13944 interface.
13945 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13946 * hurd/hurdpid.c: Include <lowlevellock.h>
13947 (_S_msg_proc_newids): Use lll_wait to synchronize.
13948 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13949 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13950 * mach/Makefile (lock-headers): Remove machine-lock.h.
13951 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13952 <machine-lock.h>.
13953 (__spin_lock_t): New type.
13954 (__SPIN_LOCK_INITIALIZER): New macro.
13955 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13956 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13957 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13958 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13959 (__mutex_init): Initialize with lll.
13960 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13961 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13962 needing lll.
13963 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13964 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13965 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13966 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13967 (__setpgid): Use lll for synchronization.
13968 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13969 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13970 instead of <cthreads.h>.
13971 (_IO_lock_inexpensive): New macro
13972 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13973 (__libc_lock_self0): New declaration.
13974 (__libc_lock_owner_self): New macro.
13975 (__libc_key_t): Remove type.
13976 (_LIBC_LOCK_INITIALIZER): New macro.
13977 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13978 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13979 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13980 __libc_lock_define_initialized_recursive,
13981 __rtld_lock_define_initialized_recursive,
13982 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13983 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13984 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13985 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13986 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13987 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13988 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13989 New macros.
13990 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13991 * hurd/hurdlock.c: New file.
13992 * hurd/hurdlock.h: New file.
13993 * mach/lowlevellock.h: New file
13994
13995 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13996
13997 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13998 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13999 when opening a symlink with O_NOFOLLOW.
14000 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14001 path when flags contains O_NOFOLLOW.
14002 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14003 if flags contains O_DIRECTORY and the result is a directory.
14004 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14005 oneself when the pointer given in D is nul (as set by ext2fs).
14006 * sysdeps/mach/hurd/mlockall.c: New file.
14007 * sysdeps/mach/hurd/munlockall.c: New file.
14008
14009 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14010
14011 * hurd/hurdsig.c: Include <pthread.h>.
14012 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14013 get the signal thread stack layout.
14014 * hurd/Makefile (headers): Remove threadvar.h.
14015 (inline-headers): Remove threadvar.h.
14016 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14017 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14018 __hurd_threadvar_max, __hurd_errno_location.
14019 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14020 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14021 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14022 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14023 unless TLS is not initialized yet, in which case we do not need a
14024 critical section yet anyway.
14025 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14026 <machine-sp.h>.
14027 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14028 declarations.
14029 (__hurd_threadvar_index): Remove enum.
14030 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14031 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14032 inlines.
14033 (__hurd_reply_port0): New variable declaration.
14034 (__hurd_local_reply_port): New macro.
14035 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14036 (interrupted_reply_port_location): Add thread_t parameter. Use it
14037 with THREAD_TCB to access thread-local variables.
14038 (_hurdsig_abort_rpcs): Pass ss->thread to
14039 interrupted_reply_port_location.
14040 (_hurd_internal_post_signal): Likewise.
14041 (_hurdsig_init): Use presence of cthread_fork instead of
14042 __hurd_threadvar_stack_mask to start signal thread by hand.
14043 Remove signal thread threadvar initialization.
14044 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14045 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14046 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14047 of threadvar.
14048 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14049 __libc_lock_self0.
14050 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14051 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14052 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14053 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14054 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14055 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14056 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14057 define variables.
14058 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14059 <hurd/threadvar.h>.
14060 [IS_IN(rtld)] (rtld_errno): New variable.
14061 [IS_IN(rtld)] (__errno_location): New weak function.
14062 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14063 * sysdeps/mach/hurd/errno.c: Remove file.
14064 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14065 (__fork): Remove THREADVAR_SPACE macro and its use.
14066 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14067 variable.
14068 (init): Do not initialize threadvar.
14069 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14070 symbol.
14071 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14072 __hurd_local_reply_port instead of threadvar.
14073 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14074 _hurd_sigstate fields.
14075 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14076 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14077 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14078 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14079 instead of threadvar.
14080 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14081 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14082 (use_threadvar, global_reply_port): Remove variables.
14083 (__hurd_reply_port0): New variable.
14084 (__mig_get_reply_port): Use __hurd_local_reply_port and
14085 __hurd_reply_port0 instead of threadvar.
14086 (__mig_dealloc_reply_port): Likewise.
14087 (__mig_init): Do not initialize threadvar.
14088 * sysdeps/mach/hurd/profil.c: Fix comment.
14089 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14090 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14091 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14092 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14093 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14094 __cthread_setspecific.
14095 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14096 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14097 __cthread_t instead of cthread_fork, cthread_detach,
14098 pthread_getattr_np, pthread_attr_getstack.
14099 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14100 __cthread_keycreate.
14101 (cthread_getspecific): Rename to __cthread_getspecific.
14102 (cthread_setspecific): Rename to __cthread_setspecific.
14103 (__libc_getspecific): Use __cthread_getspecific instead of
14104 cthread_getspecific.
14105 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14106 __cthread_keycreate instead of cthread_keycreate.
14107 (__libc_setspecific): Use __cthread_setspecific instead of
14108 cthread_setspecific.
14109 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14110 Likewise.
14111 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14112 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14113 testing whether it is defined.
14114
14115 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14116
14117 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14118 Define macro.
14119 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14120 * sysdeps/mach/i386/thread_state.h
14121 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14122 i386_THREAD_STATE.
14123 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14124 i386_THREAD_STATE.
14125 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14126
14127 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14128 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14129
14130 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14131 macros.
14132 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14133 descriptor instead of creating a new one.
14134 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14135
14136 * mach/setup-thread.c: Include <ldsodefs.h>.
14137 (__mach_setup_thread): Call _dl_allocate_tls, pass
14138 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14139 MACHINE_THREAD_STATE_FLAVOR, before getting
14140 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14141 MACHINE_THREAD_STATE_FLAVOR with the result.
14142 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14143 MACHINE_THREAD_STATE_FIX_NEW.
14144 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14145 too. Add original thread parameter.
14146
14147 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14148
14149 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14150 Remove inline function.
14151
14152 * sysdeps/i386/fpu/libm-test-ulps: Update.
14153 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14154
14155 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14156
14157 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14158 commit.
14159
14160 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14161
14162 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14163 (__sincos_code): Remove define and undefine.
14164 [__FAST_MATH__] (__sincos): Remove inline function.
14165 [__FAST_MATH__] (__sincosf): Remove inline function.
14166 [__FAST_MATH__] (__sincosl): Remove inline function.
14167 (__atan2l): Remove inline functions.
14168 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14169 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14170 function.
14171 (floor): Remove inline function.
14172 (ceil): Likewise.
14173 [__FAST_MATH__] (__ldexp_code): Remove macro.
14174 [__FAST_MATH__] (ldexp): Remove inline function.
14175 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14176 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14177 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14178 [__USE_ISOC99] (__lrint_code): Remove macro.
14179 [__USE_ISOC99] (__llrint_code): Likewise.
14180 [__USE_ISOC99] (lrintf): Remove inline function.
14181 [__USE_ISOC99] (lrint): Likewise.
14182 [__USE_ISOC99] (lrintl): Likewise.
14183 [__USE_ISOC99] (llrint): Likewise.
14184 [__USE_ISOC99] (llrintf): Likewise.
14185 [__USE_ISOC99] (llrintl): Likewise.
14186
14187 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14188
14189 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14190 (__ieee754_sqrtf): Remove.
14191 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14192 (__ieee754_sqrtf): Remove.
14193 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14194 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14195 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14196 (__ieee754_sqrtf): Remove.
14197 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14198 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14199 (sqrtf): Remove.
14200 (sqrtl): Remove.
14201 (__ieee754_sqrt): Remove.
14202 (__ieee754_sqrtf): Remove.
14203 (__ieee754_sqrtl): Remove.
14204 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14205 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14206 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14207 (__ieee754_sqrtf): Remove.
14208 (__ieee754_sqrtl): Remove.
14209
14210 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14211
14212 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14213 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14214 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14215 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14216 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14217 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14218 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14219 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14220 Likewise.
14221 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14222 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14223 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14224 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14225 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14226 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14227 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14228 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14229 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14230 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14231 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14232 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14233 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14234 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14235 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14236 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14237 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14238 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14239 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14240 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14241 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14242 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14243 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14244 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14245 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14246 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14247 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14248 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14249 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14250 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14251 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14252 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14253 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14254 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14255 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14256 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14257 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14258 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14259 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14260 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14261
14262 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14263
14264 * include/math.h (sqrt): Declare with asm redirect.
14265 (sqrtf): Likewise.
14266 (sqrtl): Likewise.
14267 (sqrtf128): Likewise.
14268 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14269 nonlib and libnldbl with -fmath-errno.
14270 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14271 * math/w_sqrt_template.c: Likewise.
14272 * math/w_sqrtf_compat.c: Likewise.
14273 * math/w_sqrtl_compat.c: Likewise.
14274 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14275 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14276 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14277 complex.h.
14278
14279 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14280
14281 * benchtests/Makefile: Define _ISOMAC.
14282 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14283 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14284 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14285 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14286 * benchtests/bench-timing.h: Define attribute_hidden.
14287
14288 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14289
14290 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14291 mov + lsr.
14292
14293 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14294
14295 [BZ #22963]
14296 * localedata/locales/cs_CZ (mon): Rename to...
14297 (alt_mon): This.
14298 (mon): Import from CLDR (genitive case).
14299
14300 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14301
14302 [BZ #22937]
14303 * localedata/locales/el_CY (abmon): Rename to...
14304 (ab_alt_mon): This.
14305 (abmon): Import from CLDR (abbreviated genitive case).
14306 * localedata/locales/el_GR (abmon): Rename to...
14307 (ab_alt_mon): This.
14308 (abmon): Import from CLDR (abbreviated genitive case).
14309
14310 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14311
14312 [BZ #22932]
14313 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14314
14315 2018-03-15 Robert Buj <robert.buj@gmail.com>
14316
14317 [BZ #22848]
14318 * localedata/locales/ca_ES (abmon): Rename to...
14319 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14320 (mon): Rename to...
14321 (alt_mon): This.
14322 (abmon): Import from CLDR (genitive case, month names preceded by
14323 "de" or "d’").
14324 (mon): Likewise.
14325 (abday): Synchronize with CLDR.
14326 (d_t_fmt): Likewise.
14327 (d_fmt): Likewise.
14328 (am_pm): Likewise.
14329
14330 (LC_TIME): Improve indentation.
14331 (LC_TELEPHONE): Likewise.
14332 (LC_NAME): Likewise.
14333 (LC_ADDRESS): Likewise.
14334
14335 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14336
14337 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14338 (lrintf): Remove definitions used only with old GCC.
14339 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14340 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14341 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14342 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14343 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14344 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14345 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14346 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14347 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14348 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14349 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14350 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14351 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14352 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14353 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14354 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14355 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14356 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14357 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14358 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14359 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14360 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14361 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14362 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14363 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14364 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14365 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14366 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14367
14368 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14369
14370 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14371 instruction to unbreak builds with binutils 2.26 and older.
14372
14373 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14374
14375 * sysdeps/aarch64/strncmp.S (count): New macro.
14376 (strncmp): Store misaligned length in SRC1 in COUNT.
14377 (mutual_align): Adjust.
14378 (misaligned8): Load dword at a time when it is safe.
14379
14380 2018-03-12 Zack Weinberg <zackw@panix.com>
14381
14382 [BZ #1190]
14383 [BZ #19476]
14384 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14385 if the _IO_EOF_SEEN bit is already set; update commentary.
14386 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14387 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14388
14389 * support/support_openpty.c, support/tty.h: New files.
14390 * support/Makefile (libsupport-routines): Add support_openpty.
14391
14392 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14393 New test cases.
14394 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14395 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14396
14397 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14398
14399 * po/pt_BR.po: Update translations.
14400
14401 2018-03-12 David Michael <fedora.dm0@gmail.com>
14402
14403 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14404 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14405 get a port to the startup server.
14406
14407 2018-03-11 Zack Weinberg <zackw@panix.com>
14408
14409 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14410 before nldbl-compat.h.
14411
14412 2018-03-10 Zack Weinberg <zackw@panix.com>
14413
14414 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14415 math.h or math_private.h.
14416
14417 * sysdeps/alpha/fpu/s_isnan.c
14418 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14419 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14420 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14421 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14422 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14423 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14424 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14425 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14426 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14428 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14429 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14430 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14431 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14432 Include math_private.h.
14433
14434 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14435 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14436 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14437 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14438 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14439 * sysdeps/powerpc/power7/fpu/s_logb.c:
14440 Include math.h and math_private.h.
14441
14442 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14443 uses of $at in .set noat / .set at.
14444
14445 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14446
14447 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14448 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14449 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14450 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14451 Likewise.
14452
14453 2018-03-09 Florian Weimer <fweimer@redhat.com>
14454
14455 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14456 in comment.
14457
14458 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14459
14460 [BZ #22919]
14461 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14462 Add nop before __startcontext, add explaining comments.
14463
14464 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14465
14466 [BZ #22926]
14467 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14468 empty for __SPE__.
14469 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14470 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14471 Do not build hardware transactional code for __SPE__.
14472 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14473 (__lll_trylock_elision): Likewise.
14474 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14475 (__lll_unlock_elision): Likewise.
14476
14477 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14478 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14479 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14480 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14481 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14482 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14483 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14484 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14485 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14486 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14487 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14488 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14489 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14490 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14491 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14492 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14493 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14494 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14495 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14496 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14497 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14498 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14499 (__ASSUME_CLONE_BACKWARDS): Define.
14500 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14501 __clone2 if __NR_clone2 is defined.
14502 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14503 (__ASSUME_CLONE_BACKWARDS): Likewise.
14504 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14505 (__ASSUME_CLONE_BACKWARDS): Likewise.
14506 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14507 (__ASSUME_CLONE2): Likewise.
14508 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14509 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14510 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14511 variants and the define architecture can use.
14512 (__ASSUME_CLONE_DEFAULT): Define as default.
14513 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14514 (__ASSUME_CLONE_BACKWARDS): Likewise.
14515 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14516 (__ASSUME_CLONE_BACKWARDS): Likewise.
14517 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14518 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14519
14520 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14521
14522 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14523
14524 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14525 time.
14526
14527 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14528 (do_test_limit): Likewise.
14529
14530 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14531 for every implementation.
14532 (do_test): Likewise.
14533
14534 * benchtests/bench-strncmp.c: Convert output to json.
14535
14536 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14537
14538 * io/futimens.c: Add missing start-of-file descriptive comment.
14539 * io/utime.c: Likewise.
14540 * misc/futimesat.c: Likewise.
14541 * misc/utimes.c: Likewise.
14542 * sysdeps/mach/hurd/futimesat.c: Likewise.
14543 * sysdeps/mach/hurd/utimes.c: Likewise.
14544 * sysdeps/posix/utime.c: Likewise.
14545 * sysdeps/posix/utimes.c: Likewise.
14546 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14547 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14548 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14549 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14550
14551 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14552
14553 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14554 hurd_futimes.
14555 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14556 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14557 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14558 (__futimens): Move implementation to...
14559 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14560 utime_tvalue_from_tspec): ... new helper functions.
14561 (hurd_futimens): New function.
14562 * sysdeps/mach/hurd/futimesat.c: New file.
14563 * sysdeps/mach/hurd/utimensat.c: New file.
14564
14565 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14566
14567 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14568 UTIME_OMIT): New macros.
14569 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14570 before reverting to converting time spec to time value and calling
14571 __file_utimes.
14572 * sysdeps/mach/hurd/utime-helper.c: New file.
14573 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14574 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14575 reverting to utime_tvalue_from_tval and __file_utimes.
14576 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14577 (__lutimes): Just call hurd_futimens after lookup.
14578 * sysdeps/mach/hurd/utimes.c: Likewise.
14579
14580 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14581
14582 * bits/sigaction.h: Add include guard.
14583 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14584 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14585 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14586 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14587 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14588 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14589 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14590 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14591 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14592
14593 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14594
14595 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14596 -Wmaybe-uninitialized for -Os.
14597 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14598 this disabling.
14599
14600 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14601
14602 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14603 __INO_T_MATCHES_INO64_T is defined.
14604 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14605 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14606 of definition.
14607 * dirent/alphasort64.c: Likewise.
14608 * dirent/scandir.c: Likewise.
14609 * dirent/scandir64-tail.c: Likewise.
14610 * dirent/scandir64.c: Likewise.
14611 * dirent/scandirat.c: Likewise.
14612 * dirent/scandirat64.c: Likewise.
14613 * dirent/versionsort.c: Likewise.
14614 * dirent/versionsort64.c: Likewise.
14615 * include/dirent.h: Likewise.
14616
14617 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14618 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14619 for socketpair endpoint.
14620 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14621 WRITE_BUFFER_SIZE as buffer size for sending socket.
14622 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14623 issue on system where send is implemented with sendto syscall.
14624 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14625 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14626 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14627 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14628
14629 [BZ #21269]
14630 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14631 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14632 sa_restorer for vDSO case.
14633 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14634
14635 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14636
14637 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14638 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14639 * hurd/hurd/ioctl.h: Include <mach/port.h>
14640 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14641 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14642 <mach/mach_types.h> and <mach/message.h>.
14643 (headers): Move mach/param.h to bits/mach/param.h.
14644 * sysdeps/mach/i386/mach/param.h: Move file to ...
14645 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14646 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14647 of <mach/param.h>.
14648 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14649 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14650 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14651 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14652 trivial, for C++ conformity.
14653 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14654 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14655 Process mig output through $(migheadersed).
14656 * hurd/Makefile (migheadersed): Define variable.
14657 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14658 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14659 headers.
14660 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14661 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14662 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14663 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14664 <bits/types/sigset_t.h>.
14665 [!defined __USE_GNU]: Do not #error out.
14666 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14667 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14668 Include <stddef.h> and <bits/types/sigset_t.h>
14669 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14670 instead of sighandler_t.
14671 * stdlib/errno.h (error_t): Move definition to...
14672 * bits/types/error_t.h: ... new header.
14673 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14674 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14675 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14676 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14677 * hurd/hurd.h: Include <bits/types/error_t.h>
14678 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14679 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14680 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14681 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14682 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14683 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14684 * sysdeps/mach/hurd/futimens.c: New file.
14685
14686 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14687
14688 [BZ #22918]
14689 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14690 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14691 * nscd/gai.c (__nss_hosts_database): Readd definition.
14692 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14693 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14694 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14695
14696 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14697
14698 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14699 (ifunc_one): Likewise.
14700
14701 2018-03-01 DJ Delorie <dj@delorie.com>
14702
14703 [BZ #22342]
14704 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14705 key value.
14706
14707 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14708
14709 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14710 `match_pid' parameter.
14711 (td_ta_thr_iter): Update accordingly.
14712
14713 2018-03-01 Florian Weimer <fweimer@redhat.com>
14714
14715 * nptl/Makefile (install-lib-ldscripts): Remove.
14716 (install): Remove rule.
14717 ($(inst_libdir)/libpthread.so): Likewise.
14718
14719 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14720
14721 [BZ #22896]
14722 * localedata/locales/an_ES: update month and day names,
14723 improve d_fmt, improve postal_fmt, add country_post,
14724 add country_isbn
14725
14726 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14727
14728 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14729 Ukrainian instead of Bulgarian.
14730
14731 2018-03-01 Florian Weimer <fweimer@redhat.com>
14732
14733 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14734 reference.
14735
14736 2018-03-01 Florian Weimer <fweimer@redhat.com>
14737
14738 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14739 * nptl/Makefile (routines): Add pthread_atfork.
14740 (static-only-routines): Set to pthread_atfork.
14741 (libpthread-routines): Remove pthread_atfork.
14742 (libpthread-static-only-routines): Remove.
14743 (install): Update comment.
14744 (libpthread.so): Do not install libpthread_nonshared.a.
14745 (tests): Do not link with libpthread_nonshared.a.
14746 (generated): Remove libpthread_nonshared.a.
14747 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14748 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14749 with libpthread_nonshared.a.
14750
14751 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14752
14753 [BZ #22902]
14754 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14755 (libc_feholdexcept_setroundf128): New macro.
14756 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14757
14758 [BZ #15105]
14759 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14760 libc_hidden_def.
14761 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14762 * include/inttypes.h: New file.
14763
14764 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14765
14766 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14767 -Os in two more places.
14768
14769 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14770
14771 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14772 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14773 be sorted correctly at the moment because of a bug.
14774
14775 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14776
14777 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14778 treat ñ as a primary different character, sync the collation
14779 for Spanish with CLDR.
14780 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14781 * localedata/Makefile: Add new test files.
14782 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14783 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14784 collation order.
14785 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14786 * localedata/am_ET.UTF-8.in: New test file.
14787 * localedata/az_AZ.UTF-8.in: Likewise.
14788 * localedata/be_BY.UTF-8.in: Likewise.
14789 * localedata/ber_DZ.UTF-8.in: Likewise.
14790 * localedata/ber_MA.UTF-8.in: Likewise.
14791 * localedata/bg_BG.UTF-8.in: Likewise.
14792 * localedata/br_FR.UTF-8.in: Likewise.
14793 * localedata/cmn_TW.UTF-8.in: Likewise.
14794 * localedata/crh_UA.UTF-8.in: Likewise.
14795 * localedata/csb_PL.UTF-8.in: Likewise.
14796 * localedata/cv_RU.UTF-8.in: Likewise.
14797 * localedata/cy_GB.UTF-8.in: Likewise.
14798 * localedata/dz_BT.UTF-8.in: Likewise.
14799 * localedata/eo.UTF-8.in: Likewise.
14800 * localedata/es_ES.UTF-8.in: Likewise.
14801 * localedata/fa_IR.UTF-8.in: Likewise.
14802 * localedata/fi_FI.UTF-8.in: Likewise.
14803 * localedata/fil_PH.UTF-8.in: Likewise.
14804 * localedata/fur_IT.UTF-8.in: Likewise.
14805 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14806 * localedata/ha_NG.UTF-8.in: Likewise.
14807 * localedata/ig_NG.UTF-8.in: Likewise.
14808 * localedata/ik_CA.UTF-8.in: Likewise.
14809 * localedata/kk_KZ.UTF-8.in: Likewise.
14810 * localedata/ku_TR.UTF-8.in: Likewise.
14811 * localedata/ky_KG.UTF-8.in: Likewise.
14812 * localedata/ln_CD.UTF-8.in: Likewise.
14813 * localedata/mi_NZ.UTF-8.in: Likewise.
14814 * localedata/ml_IN.UTF-8.in: Likewise.
14815 * localedata/mn_MN.UTF-8.in: Likewise.
14816 * localedata/mr_IN.UTF-8.in: Likewise.
14817 * localedata/mt_MT.UTF-8.in: Likewise.
14818 * localedata/nb_NO.UTF-8.in: Likewise.
14819 * localedata/om_KE.UTF-8.in: Likewise.
14820 * localedata/os_RU.UTF-8.in: Likewise.
14821 * localedata/ps_AF.UTF-8.in: Likewise.
14822 * localedata/ro_RO.UTF-8.in: Likewise.
14823 * localedata/ru_RU.UTF-8.in: Likewise.
14824 * localedata/sc_IT.UTF-8.in: Likewise.
14825 * localedata/se_NO.UTF-8.in: Likewise.
14826 * localedata/sq_AL.UTF-8.in: Likewise.
14827 * localedata/sv_SE.UTF-8.in: Likewise.
14828 * localedata/szl_PL.UTF-8.in: Likewise.
14829 * localedata/tg_TJ.UTF-8.in: Likewise.
14830 * localedata/tk_TM.UTF-8.in: Likewise.
14831 * localedata/tt_RU.UTF-8.in: Likewise.
14832 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14833 * localedata/ug_CN.UTF-8.in: Likewise.
14834 * localedata/uz_UZ.UTF-8.in: Likewise.
14835 * localedata/vi_VN.UTF-8.in: Likewise.
14836 * localedata/yi_US.UTF-8.in: Likewise.
14837 * localedata/yo_NG.UTF-8.in: Likewise.
14838 * localedata/zh_CN.UTF-8.in: Likewise.
14839 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14840 file and fix bugs in the collation.
14841 * localedata/locales/az_AZ: Likewise.
14842 * localedata/locales/be_BY: Likewise.
14843 * localedata/locales/ber_DZ: Likewise.
14844 * localedata/locales/ber_MA: Likewise.
14845 * localedata/locales/bg_BG: Likewise.
14846 * localedata/locales/br_FR: Likewise.
14847 * localedata/locales/br_FR@euro: Likewise.
14848 * localedata/locales/ca_ES: Likewise.
14849 * localedata/locales/cns11643_stroke: Likewise.
14850 * localedata/locales/crh_UA: Likewise.
14851 * localedata/locales/cs_CZ: Likewise.
14852 * localedata/locales/csb_PL: Likewise.
14853 * localedata/locales/cv_RU: Likewise.
14854 * localedata/locales/cy_GB: Likewise.
14855 * localedata/locales/da_DK: Likewise.
14856 * localedata/locales/dz_BT: Likewise.
14857 * localedata/locales/en_CA: Likewise.
14858 * localedata/locales/eo: Likewise.
14859 * localedata/locales/es_CU: Likewise.
14860 * localedata/locales/es_EC: Likewise.
14861 * localedata/locales/es_ES: Likewise.
14862 * localedata/locales/es_US: Likewise.
14863 * localedata/locales/et_EE: Likewise.
14864 * localedata/locales/fa_IR: Likewise.
14865 * localedata/locales/fi_FI: Likewise.
14866 * localedata/locales/fil_PH: Likewise.
14867 * localedata/locales/fur_IT: Likewise.
14868 * localedata/locales/gez_ER@abegede: Likewise.
14869 * localedata/locales/ha_NG: Likewise.
14870 * localedata/locales/hr_HR: Likewise.
14871 * localedata/locales/hsb_DE: Likewise.
14872 * localedata/locales/hu_HU: Likewise.
14873 * localedata/locales/ig_NG: Likewise.
14874 * localedata/locales/ik_CA: Likewise.
14875 * localedata/locales/is_IS: Likewise.
14876 * localedata/locales/iso14651_t1_pinyin: Likewise.
14877 * localedata/locales/kk_KZ: Likewise.
14878 * localedata/locales/ku_TR: Likewise.
14879 * localedata/locales/ky_KG: Likewise.
14880 * localedata/locales/ln_CD: Likewise.
14881 * localedata/locales/lt_LT: Likewise.
14882 * localedata/locales/lv_LV: Likewise.
14883 * localedata/locales/mi_NZ: Likewise.
14884 * localedata/locales/ml_IN: Likewise.
14885 * localedata/locales/mn_MN: Likewise.
14886 * localedata/locales/mr_IN: Likewise.
14887 * localedata/locales/mt_MT: Likewise.
14888 * localedata/locales/nb_NO: Likewise.
14889 * localedata/locales/om_KE: Likewise.
14890 * localedata/locales/os_RU: Likewise.
14891 * localedata/locales/pl_PL: Likewise.
14892 * localedata/locales/ps_AF: Likewise.
14893 * localedata/locales/ro_RO: Likewise.
14894 * localedata/locales/ru_RU: Likewise.
14895 * localedata/locales/ru_UA: Likewise.
14896 * localedata/locales/sc_IT: Likewise.
14897 * localedata/locales/se_NO: Likewise.
14898 * localedata/locales/si_LK: Likewise.
14899 * localedata/locales/sq_AL: Likewise.
14900 * localedata/locales/sv_FI: Likewise.
14901 * localedata/locales/sv_FI@euro: Likewise.
14902 * localedata/locales/sv_SE: Likewise.
14903 * localedata/locales/szl_PL: Likewise.
14904 * localedata/locales/tg_TJ: Likewise.
14905 * localedata/locales/ti_ER: Likewise.
14906 * localedata/locales/tk_TM: Likewise.
14907 * localedata/locales/tl_PH: Likewise.
14908 * localedata/locales/tr_TR: Likewise.
14909 * localedata/locales/tt_RU: Likewise.
14910 * localedata/locales/tt_RU@iqtelif: Likewise.
14911 * localedata/locales/ug_CN: Likewise.
14912 * localedata/locales/uk_UA: Likewise.
14913 * localedata/locales/uz_UZ: Likewise.
14914 * localedata/locales/uz_UZ@cyrillic: Likewise.
14915 * localedata/locales/vi_VN: Likewise.
14916 * localedata/locales/yi_US: Likewise.
14917 * localedata/locales/yo_NG: Likewise.
14918
14919 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14920
14921 * gen-locales.mk: Make test files which contain @ modifiers in their
14922 name work.
14923 * localedata/gen-locale.sh: Likewise.
14924
14925 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14926
14927 * posix/tst-fnmatch.input: Fix results for range expressions
14928 for non C locales.
14929 * posix/tst-regexloc.c: Do not use a range expression for
14930 de_DE.ISO-8859-1 locale.
14931
14932 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14933
14934 * posix/bug-regex5.c: Fix test case because with the new
14935 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14936 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14937 file.
14938
14939 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14940
14941 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14942 downloaded from ISO, the collation order of @-. and space has changed.
14943 Therefore, this test file needed to be adapted.
14944 * localedata/fr_CA.UTF-8.in: Likewise.
14945 * localedata/fr_FR.UTF-8.in: Likewise.
14946 * localedata/uk_UA.UTF-8.in: Likewise.
14947
14948 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14949
14950 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14951 order of ȥ in the new iso14651_t1_common file.
14952 * localedata/pl_PL.UTF-8.in: Likewise.
14953
14954 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14955
14956 * localedata/locales/iso14651_t1_common: Add sections for various
14957 scripts to the iso14651_t1_common file.
14958
14959 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14960
14961 * localedata/locales/iso14651_t1_common: Use the code point of a
14962 character in the fourth collation level instead of IGNORE for all
14963 entries which have IGNORE on all 4 levels.
14964
14965 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14966
14967 * localedata/locales/iso14651_t1_common: Add some convenient collation
14968 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14969 rules similar to those in CLDR.
14970
14971 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14972
14973 * localedata/locales/iso14651_t1_common: The new version of this
14974 file downloaded from ISO contained several syntax errors which
14975 are fixed by this patch.
14976
14977 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14978
14979 * localedata/locales/iso14651_t1_common: replace all <U.....>
14980 with <U000.....> because glibc understands only 4 digit or 8 digit
14981
14982 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14983
14984 * localedata/locales/iso14651_t1_common: Necessary changes
14985 to make the file downloaded from ISO usable by glibc.
14986
14987 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14988
14989 [BZ #14095]
14990 * localedata/locales/iso14651_t1_common: Update file to
14991 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14992
14993 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14994
14995 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14996 of <nptl/pthreadP.h>
14997 (thread_attr_compare): Move function to...
14998 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14999 * sysdeps/nptl/timer_routines.h: ... new header.
15000 * sysdeps/mach/hurd/gai_misc.h: New file.
15001
15002 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15003
15004 * string/strcoll_l.c: Include <libc-diag.h>.
15005 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15006 declarations of seq1 and seq2.
15007
15008 [BZ #15105]
15009 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15010 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15011
15012 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15013
15014 [BZ #22433]
15015 [BZ #22807]
15016 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15017 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15018 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15019 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15020 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15021 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15022
15023 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15024
15025 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15026 macros used in __ptrace_request.
15027
15028 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15029
15030 [BZ #22792]
15031 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15032 to $(CC).
15033 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15034 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15035 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15036 <tcb-offsets.h>.
15037
15038 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15039
15040 [BZ #15105]
15041 * ctype/ctype.c (tolower): Use libc_hidden_def.
15042 (toupper): Likewise.
15043 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15044 [!_ISOMAC] (toupper): Likewise.
15045
15046 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15047
15048 * localedata/Makefile: Remove --quiet argument when
15049 installing locales
15050
15051 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15052
15053 [BZ #17438]
15054 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15055 in d_fmt.
15056 * localedata/locales/pt_PT (LC_TIME): likewise
15057
15058 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15059
15060 [BZ #22646]
15061 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15062 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15063 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15064
15065 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15066
15067 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15068
15069 * nptl/Makefile (routines): Remove unregister-atfork.
15070 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15071 (fork_handler_alloc): Remove function.
15072 (fork_handlers, fork_handler_init): New variables.
15073 (__fork_lock): Rename to atfork_lock.
15074 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15075 to use a dynamic array to add/remove atfork handlers.
15076 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15077 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15078 Remove declaration.
15079 (fork_handler): Remove next, refcntr, and need_signal member.
15080 (__run_fork_handler_type): New enum.
15081 (__run_fork_handlers): New prototype.
15082 * nptl/register-atfork.c: Remove file.
15083 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15084
15085 * sysdeps/nptl/nptl-signals.h: Move to ...
15086 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15087 comments.
15088 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15089 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15090 unnecessary check for SIGTIMER.
15091 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15092 remove unnecessary removal of SIGTIMER.
15093 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15094 include-signals.h rename.
15095 * nptl/pthreadP.h: Likewise.
15096 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15097 __is_internal_signal instead of __nptl_is_internal_signal.
15098
15099 2018-02-22 Andrew Waterman <andrew@sifive.com>
15100
15101 [BZ # 22884]
15102 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15103 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15104 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15105 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15106
15107 2018-02-22 DJ Delorie <dj@delorie.com>
15108
15109 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15110
15111 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15112
15113 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15114 do_misaligned, not misaligned8.
15115
15116 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15117
15118 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15119 Add memcpy_thunderx2.
15120 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15121 Increment to 4.
15122 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15123 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15124 and IS_THUNDERX2PA checks.
15125 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15126 Use macro to set name appropriately.
15127 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15128 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15129 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15130 New macro.
15131 (IS_THUNDERX2): New macro.
15132
15133 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15134
15135 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15136
15137 2018-02-21 Zack Weinberg <zackw@panix.com>
15138
15139 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15140 Define here, unconditionally.
15141 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15142 * libio/libioP.h: Remove #if 0 blocks.
15143 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15144 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15145 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15146
15147 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15148 Assume weak_alias is always defined.
15149
15150 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15151 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15152 Remove #if 0 and #ifdef TODO blocks.
15153 Assume text_set_element is always defined.
15154
15155 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15156 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15157 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15158
15159 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15160 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15161 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15162 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15163 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15164 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15165 Reformat bit flags for _flags field to make occupancy clearer.
15166 Update commentary.
15167 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15168 Keep definitions consistent with those in libio/libio.h.
15169
15170 * libio/libio.h (_IO_file_flags): Remove macro.
15171 All uses changed to _flags.
15172
15173 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15174 (__HAVE_COLUMN, _IO_BE): Don't define.
15175 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15176 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15177 * libio/libioP.h (EOF): Don't define.
15178 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15179 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15180 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15181 testing _IO_UNIFIED_JUMPTABLES.
15182
15183 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15184 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15185 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15186 (_IO_size_t): Delete; all uses changed to size_t.
15187 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15188 (_IO_off_t): Delete; all uses changed to off_t.
15189 (_IO_off64_t): Delete; all uses changed to off64_t.
15190 (_IO_pid_t): Delete; all uses changed to pid_t.
15191 (_IO_uid_t): Delete; all uses changed to uid_t.
15192 (_IO_wint_t): Delete; all uses changed to wint_t.
15193 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15194 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15195 (_IO_cookie_io_functions_t): Delete; all uses changed to
15196 cookie_io_functions_t.
15197 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15198 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15199 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15200 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15201
15202 * libio/iofopncook.c: Remove unnecessary forward declarations.
15203 * libio/iolibio.h: Correct outdated commentary.
15204 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15205 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15206 Remove unnecessary casts.
15207 * stdio-common/getline.c: Use _IO_getdelim directly.
15208 Don't redefine ssize_t.
15209 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15210 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15211 Remove outdated comments.
15212 * stdio-common/vfscanf.c: Don't redefine va_list.
15213
15214 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15215 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15216 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15217 which are always true, and __cplusplus, which is always false.
15218
15219 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15220
15221 [BZ #15105]
15222 [BZ #19463]
15223 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15224 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15225 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15226 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15227 libc_hidden_proto.
15228 [!_ISOMAC] (putc_unlocked): Likewise.
15229 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15230 define inline if [__USE_EXTERN_INLINES].
15231 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15232 putc_unlocked.
15233
15234 [BZ #15105]
15235 [BZ #19463]
15236 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15237 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15238 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15239 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15240 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15241 getc_unlocked.
15242 * time/tzfile.c (__tzfile_read): Likewise.
15243
15244 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15245
15246 [BZ #22517]
15247 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15248
15249 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15250
15251 * io/fcntl.h: Fix a typo in a comment.
15252
15253 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15254
15255 [BZ #22862]
15256 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15257 define _DEFAULT_SOURCE.
15258 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15259
15260 2018-02-21 Florian Weimer <fweimer@redhat.com>
15261
15262 [BZ #20890]
15263 * elf/cache.c (save_cache): Call fsync on temporary file before
15264 renaming it.
15265 (save_aux_cache): Call fdatasync on temporary file before renaming
15266 it.
15267
15268 2018-02-21 Florian Weimer <fweimer@redhat.com>
15269
15270 [BZ #22787]
15271 * include/caller.h: Remove file.
15272 * elf/dl-caller.c: Likewise.
15273 * elf/Makefile (dl-routines): Remove dl-caller.
15274 (shared-only-routines): Do not add dl-caller.
15275 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15276 __check_caller.
15277 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15278 member.
15279 (dl_open_worker): Do not call __check_caller.
15280 (_dl_open): Do not set caller_dl_open member.
15281 * elf/rtld.c (_rtld_global_ro): Do not initialize
15282 _dl_check_caller member.
15283 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15284 _dl_check_caller member.
15285 (_dl_check_caller): Remove declaration.
15286 * sysdeps/unix/sysv/linux/dl-execstack.c
15287 (_dl_make_stack_executable): Do not call __check_caller.
15288
15289 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15290
15291 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15292 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15293
15294 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15295
15296 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15297 description.
15298
15299 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15300
15301 [BZ #16335]
15302 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15303 of 199606L, 200112L, and 200809L.
15304 (_XOPEN_SOURCE): Document special values of 600 and 700.
15305 (_ISOC11_SOURCE): Document macro.
15306 (_ATFILE_SOURCE): Likewise.
15307 (_FORTIFY_SOURCE): Likewise.
15308
15309 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15310
15311 [BZ #15105]
15312 [BZ #19463]
15313 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15314 and define as weak alias of __ferror_unlocked. Use
15315 libc_hidden_weak.
15316 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15317 libc_hidden_proto.
15318 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15319 function if [__USE_EXTERN_INLINES].
15320 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15321 ferror_unlocked.
15322
15323 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15324
15325 [BZ #6889]
15326 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15327
15328 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15329
15330 [BZ #22818]
15331 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15332 the GLIBC_2.1 version.
15333
15334 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15335
15336 [BZ #21508]
15337 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15338 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15339 intl/tst-gettext-de.po from po/de.po by removing the
15340 POT-Creation-Date line.
15341 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15342 ../po/de.po.
15343 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15344 ../po/de.po.
15345
15346 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15347
15348 * mach/Makefile (headers): Add mach/param.h.
15349 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15350 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15351 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15352 (__ptsname_r): Move implementation to...
15353 (__ptsname_internal): ... new function. Add filling the STP
15354 structure.
15355
15356 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15357
15358 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15359 idouble to 1 ULP.
15360
15361 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15362
15363 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15364 syntax.
15365
15366 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15367
15368 * nptl/Makefile (tst-mutex8-ENV): Delete.
15369 * nptl/tst-mutex8.c (check_type):
15370 Add runtime check if mutex will be elided.
15371
15372 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15373
15374 [BZ #20980]
15375 [BZ #21234]
15376 * manual/install.texi (Configuring and compiling): Describe
15377 passing CC and CFLAGS on configure command line, not as
15378 environment variables. Use @code markup on those variables.
15379 Specify what options go in CC and what go in CFLAGS. Note the
15380 requirement to compile with optimization.
15381 * INSTALL: Regenerated.
15382
15383 [BZ #18124]
15384 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15385 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15386 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15387 __sigprocmask instead of sigprocmask.
15388 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15389 Likewise.
15390 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15391 __sigsetjmp and sigprocmask.
15392
15393 [BZ #15105]
15394 * include/argz.h (argz_next): Use libc_hidden_proto.
15395 (__argz_next): Likewise.
15396 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15397 (argz_next): Use libc_hidden_weak.
15398
15399 [BZ #15105]
15400 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15401 libc_hidden_proto.
15402 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15403 libc_hidden_def.
15404
15405 [BZ #15105]
15406 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15407 libc_hidden_proto.
15408 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15409
15410 [BZ #15105]
15411 [BZ #19463]
15412 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15413 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15414 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15415 (__feof_unlocked): New declaration, and inline function if
15416 [__USE_EXTERN_INLINES].
15417 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15418 instead of feof_unlocked.
15419 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15420 * nss/nsswitch.c (nss_parse_file): Likewise.
15421 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15422 Likewise.
15423 * time/getdate.c (__getdate_r): Likewise.
15424 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15425 Define as macro to call __feof_unlocked.
15426
15427 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15428
15429 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15430
15431 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15432
15433 * math/Makefile: Remove mpexp.c and mplog.c
15434 * sysdeps/i386/fpu/mpexp.c: Delete file.
15435 * sysdeps/i386/fpu/mplog.c: Likewise.
15436 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15437 * sysdeps/ia64/fpu/mplog.c: Likewise.
15438 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15439 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15440 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15441 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15442 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15443 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15444 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15445 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15446 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15447 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15448 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15449 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15450 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15451 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15452 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15453 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15454
15455 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15456
15457 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15458
15459 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15460
15461 * sysdeps/sh/libm-test-ulps: Update.
15462
15463 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15464
15465 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15466 idouble to 1 ULP.
15467
15468 2018-02-12 Zack Weinberg <zackw@panix.com>
15469
15470 [BZ #19239]
15471 * posix/sys/types.h: Don't include sys/sysmacros.h.
15472 * misc/sys/sysmacros.h: Remove the conditional deprecation
15473 warnings for the macros defined by this header.
15474
15475 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15476
15477 * manual/probes.texi: Remove slowexp probes.
15478 * math/Makefile: Remove slowexp.
15479 * sysdeps/generic/math_private.h (__slowexp): Remove.
15480 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15481 document error bounds.
15482 * sysdeps/i386/fpu/slowexp.c: Remove.
15483 * sysdeps/ia64/fpu/slowexp.c: Remove.
15484 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15485 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15486 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15487 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15488 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15489 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15490 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15491 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15492 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15493 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15494 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15495
15496 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15497
15498 [BZ #13932]
15499 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15500 * benchtests/pow-inputs: Update comment for slow path cases.
15501 * manual/probes.texi (slowpow_p10): Delete removed probe.
15502 (slowpow_p10): Likewise.
15503 * math/Makefile: Remove halfulp.c and slowpow.c.
15504 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15505 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15506 (__halfulp): Remove.
15507 (__slowpow): Remove.
15508 * sysdeps/i386/fpu/halfulp.c: Delete file.
15509 * sysdeps/i386/fpu/slowpow.c: Likewise.
15510 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15511 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15512 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15513 improve comments and add error analysis.
15514 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15515 (power1): Remove function:
15516 (log1): Remove error argument, add error analysis.
15517 (my_log2): Remove function.
15518 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15519 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15520 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15521 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15522 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15523 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15524 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15525 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15526 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15527 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15528 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15529 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15530 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15531 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15532
15533 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15534
15535 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15536 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15537
15538 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15539
15540 [BZ #22433]
15541 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15542 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15543 and PTRACE_SETHBPREGS.
15544
15545 2018-02-10 Zack Weinberg <zackw@panix.com>
15546
15547 [BZ #22830]
15548 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15549 correctly.
15550 * malloc/tst-malloc-stats-cancellation.c: New test case.
15551 * malloc/Makefile: Add new test case.
15552
15553 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15554
15555 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15556
15557 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15558
15559 * math/Makefile (libm-narrow-fns): Add add.
15560 (libm-test-funcs-narrow): Likewise.
15561 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15562 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15563 * math/gen-auto-libm-tests.c (test_functions): Add add.
15564 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15565 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15566 (NARROW_ADD_TRIVIAL): Likewise.
15567 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15568 macro.
15569 (__daddl): Likewise.
15570 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15571 dadd.
15572 (CFLAGS-nldbl-dadd.c): New variable.
15573 (CFLAGS-nldbl-fadd.c): Likewise.
15574 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15575 __nldbl_daddl.
15576 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15577 prototype.
15578 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15579 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15580 * math/auto-libm-test-in: Add tests of add.
15581 * math/auto-libm-test-out-narrow-add: New generated file.
15582 * math/libm-test-narrow-add.inc: New file.
15583 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15584 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15585 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15586 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15587 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15588 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15589 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15590 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15591 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15592 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15593 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15594 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15595 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15596 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15597 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15598 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15599 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15600 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15601 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15602 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15603 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15604 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15605 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15606 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15607 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15608 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15609 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15610 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15611 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15612 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15613 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15614 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15619 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15620 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15621 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15622 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15623 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15624 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15625 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15626 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15627 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15628 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15629
15630 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15631 (f128-pairs): New variable.
15632 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15633 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15634 to CFLAGS.
15635 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15636 Also make tests add $(f128-loader-link) to gnulib-tests.
15637
15638 2018-02-09 DJ Delorie <dj@redhat.com>
15639
15640 [BZ #22827]
15641 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15642 64-bit ELF type for 64-bit ELF objects.
15643
15644 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15645
15646 * math/libm-test-driver.c (snan_tests_arg): New variable.
15647 * math/libm-test-support.h (snan_tests_arg): New declaration.
15648 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15649
15650 * math/Makefile (test-type-pairs): New variable.
15651 (test-type-pairs-f64xf128-yes): Likewise.
15652 (tests): Add test-narrow-macros.
15653 (libm-test-funcs-narrow): New variable.
15654 (libm-test-c-narrow): Likewise.
15655 (generated): Add $(libm-test-c-narrow).
15656 (libm-tests-base-narrow): New variable.
15657 (libm-tests-narrow): Likewise.
15658 (libm-tests): Add $(libm-tests-narrow).
15659 (libm-tests-for-type): Handle $(libm-tests-narrow).
15660 (libm-test-c-narrow-obj): New variable.
15661 ($(libm-test-c-narrow-obj)): New rule.
15662 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15663 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15664 $(o-iterator) to set dependencies and CFLAGS.
15665 * math/gen-auto-libm-tests.c: Document use for narrowing
15666 functions.
15667 (output_for_one_input_case): Take argument NARROW.
15668 (generate_output): Likewise. Update call to
15669 output_for_one_input_case.
15670 (main): Take --narrow option. Update call to generate_output.
15671 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15672 (apply_lit): Update call to _apply_lit.
15673 (apply_arglit): New function.
15674 (parse_args): Handle "a" arguments.
15675 (parse_auto_input): Handle format names using ":".
15676 * math/README.libm-test: Document "a" parameter type.
15677 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15678 (ARG_TYPE_TRUE_MIN): Likewise.
15679 (ARG_TYPE_MAX): Likwise.
15680 (ARG_MIN_EXP): Likewise.
15681 (ARG_MAX_EXP): Likewise.
15682 (ARG_MANT_DIG): Likewise.
15683 (TEST_COND_arg_ibm128): Likewise.
15684 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15685 (TEST_COND_arg_fmt): New macro.
15686 (init_max_error): Update prototype.
15687 * math/libm-test-support.c (test_ibm128): New variable.
15688 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15689 instead of using [TEST_COND_ibm128] conditional.
15690 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15691 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15692 [TEST_NARROW] (TEST_MSG): New definition.
15693 (arg_plus_zero): New macro.
15694 (arg_minus_zero): Likewise.
15695 (arg_plus_infty): Likewise.
15696 (arg_minus_infty): Likewise.
15697 (arg_qnan_value_pl): Likewise.
15698 (arg_qnan_value): Likewise.
15699 (arg_snan_value_pl): Likewise.
15700 (arg_snan_value): Likewise.
15701 (arg_max_value): Likewise.
15702 (arg_min_value): Likewise.
15703 (arg_min_subnorm_value): Likewise.
15704 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15705 (RUN_TEST_LOOP_aa_f): New macro.
15706 (TEST_SUFF): New macro.
15707 (TEST_SUFF_STR): Likewise.
15708 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15709 (TEST_COND_any_ibm128): New macro.
15710 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15711 this_func. Update call to init_max_error.
15712 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15713 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15714 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15715 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15716 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15717 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15718 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15719 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15720 * math/test-math-vector.h (TEST_NARROW): Likewise.
15721 * math/test-arg-double.h: New file.
15722 * math/test-arg-float128.h: Likewise.
15723 * math/test-arg-float32x.h: Likewise.
15724 * math/test-arg-float64.h: Likewise.
15725 * math/test-arg-float64x.h: Likewise.
15726 * math/test-arg-ldouble.h: Likewise.
15727 * math/test-math-narrow.h: Likewise.
15728 * math/test-narrow-macros.c: Likewise.
15729 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15730 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15731 test-narrow-macros-ldbl-64.
15732 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15733
15734 * math/bits/mathcalls-narrow.h: New file.
15735 * include/bits/mathcalls-narrow.h: Likewise.
15736 * math/math-narrow.h: Likewise.
15737 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15738 (__MATHCALL_NARROW_ARGS_2): Likewise.
15739 (__MATHCALL_NARROW_ARGS_3): Likewise.
15740 (__MATHCALL_NARROW_NORMAL): Likewise.
15741 (__MATHCALL_NARROW_REDIR): Likewise.
15742 (__MATHCALL_NARROW): Likewise.
15743 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15744 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15745 defined.
15746 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15747 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15748 (libm-narrow-fns): New variable.
15749 (libm-narrow-types-basic): Likewise.
15750 (libm-narrow-types-ldouble-yes): Likewise.
15751 (libm-narrow-types-float128-yes): Likewise.
15752 (libm-narrow-types-float128-alias-yes): Likewise.
15753 (libm-narrow-types): Likewise.
15754 (libm-routines): Add narrowing functions.
15755 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15756 (libc_feholdexcept_setroundf128): New macro.
15757 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15758 * sysdeps/ieee754/float128/float128_private.h: Include
15759 <math/math-narrow.h>.
15760 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15761 Undefine and redefine.
15762 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15763 (libm_alias_float_ldouble): Undefine and redefine.
15764 (libm_alias_double_ldouble): Likewise.
15765
15766 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15767
15768 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15769
15770 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15771 FPCR/FPSR.
15772
15773 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15774
15775 * manual/creature.texi: Convert references to gcc.info to gcc.
15776 * manual/stdio.texi: Likewise.
15777 * manual/string.texi: Likewise.
15778
15779 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15780
15781 [BZ #17979]
15782 * posix/bits/types.h (__int_least8_t): New typedef.
15783 (__uint_least8_t): Likewise.
15784 (__int_least16_t): Likewise.
15785 (__uint_least16_t): Likewise.
15786 (__int_least32_t): Likewise.
15787 (__uint_least32_t): Likewise.
15788 (__int_least64_t): Likewise.
15789 (__uint_least64_t): Likewise.
15790 * sysdeps/generic/stdint.h (int_least8_t): Define using
15791 __int_least8_t.
15792 (int_least16_t): Define using __int_least16_t.
15793 (int_least32_t): Define using __int_least32_t.
15794 (int_least64_t): Define using __int_least64_t.
15795 (uint_least8_t): Define using __uint_least8_t.
15796 (uint_least16_t): Define using __uint_least16_t.
15797 (uint_least32_t): Define using __uint_least32_t.
15798 (uint_least64_t): Define using __uint_least64_t.
15799 * wcsmbs/uchar.h: Include <bits/types.h>.
15800 (char16_t): Define using __uint_least16_t conditional only on
15801 [!__USE_ISOCXX11].
15802 (char32_t): Define using __uint_least32_t conditional only on
15803 [!__USE_ISOCXX11].
15804 * wcsmbs/test-char-types.c: New file.
15805 * wcsmbs/Makefile (tests): Add test-char-types.
15806
15807 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15808 version to 4.0.1.
15809
15810 2018-02-07 Zack Weinberg <zackw@panix.com>
15811
15812 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15813 Delete all contents except for definitions of _G_HAVE_MMAP and
15814 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15815 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15816 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15817 change as above.
15818
15819 * libio/libio.h: Don't include bits/_G_config.h here.
15820 Include stddef.h with __need_wchar_t defined. Include
15821 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15822 Define _IO_iconv_t here, directly.
15823 Don't define _IO_HAVE_ST_BLKSIZE.
15824 * libio/libioP.h: Include _G_config.h here. Move include of
15825 shlib-compat.h up with rest of includes. Simplify conditionals
15826 controlling definition of _IO_JUMPS_OFFSET.
15827
15828 * csu/init.c: Remove always-true #if around entire file.
15829 Don't include stdio.h. Set _IO_stdin_used to hardwired
15830 constant 0x20001, and update commentary.
15831 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15832 Replace all uses of _G_va_list with __gnuc_va_list.
15833 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15834 instead of #if _IO_HAVE_ST_BLKSIZE.
15835 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15836 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15837 not #ifdef.
15838
15839 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15840 multiple-include guard to match.
15841 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15842 into this file.
15843 Remove preprocessor conditionals that are always true and/or
15844 redundant to other preprocessor conditionals in the same nest.
15845 Include shlib-compat.h unconditionally.
15846 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15847 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15848 defined after including stdio.h.
15849 Use __BEGIN_DECLS/__END_DECLS.
15850
15851 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15852 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15853 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15854
15855 2018-02-07 Zack Weinberg <zackw@panix.com>
15856
15857 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15858 New single-type headers split from _G_config.h.
15859 * libio/bits/types/cookie_io_functions_t.h
15860 * libio/bits/types/struct_FILE.h
15861 New single-type headers split from libio.h.
15862
15863 * libio/Makefile: Install the above new headers. Don't install
15864 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15865 bits/libio-ldbl.h.
15866 * libio/_G_config.h, libio/libio.h: Delete file.
15867
15868 * libio/bits/libio.h: Remove improper-inclusion guard.
15869 Include stdio.h and don't repeat anything that it does.
15870 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15871 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15872 __io_read_fn as cookie_read_function_t,
15873 __io_write_fn as cookie_write_function_t,
15874 __io_seek_fn as cookie_seek_function_t,
15875 __io_close_fn as cookie_close_function_t,
15876 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15877 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15878 here, in the "compatibility defines" section. Remove an #if 0
15879 block. Use the "body" macros from bits/types/struct_FILE.h to
15880 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15881 and _IO_ferror_unlocked.
15882 Move prototypes of __uflow and __overflow...
15883
15884 * libio/stdio.h: ...here. Don't include bits/libio.h.
15885 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15886 directly from stdarg.h. Include bits/types/__fpos_t.h,
15887 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15888 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15889 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15890 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15891 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15892 __ssize_t, not _IO_ssize_t. Unconditionally define
15893 BUFSIZ as 8192 and EOF as (-1).
15894
15895 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15896 macros from bits/types/struct_FILE.h instead of _IO_* macros
15897 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15898 instead of _IO_ssize_t.
15899 * libio/bits/stdio2.h: Similarly.
15900
15901 * libio/iolibio.h: Add multiple-include guard.
15902 Include bits/libio.h after stdio.h.
15903 * libio/libioP.h: Add multiple-include guard.
15904 Include stdio.h and bits/libio.h before iolibio.h.
15905
15906 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15907 * include/bits/types/cookie_io_functions_t.h
15908 * include/bits/types/struct_FILE.h: New wrappers.
15909
15910 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15911 Get definitions of _G_fpos_t and _G_fpos64_t from
15912 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15913 respectively. Remove improper-inclusion guards.
15914
15915 * conform/data/stdio.h-data: Update expectations of va_list.
15916 * scripts/check-installed-headers.sh: Remove special case for
15917 libio.h and _G_config.h.
15918
15919 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15920
15921 [BZ #15105]
15922 [BZ #19463]
15923 * include/sys/sysmacros.h [!_ISOMAC]
15924 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15925 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15926 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15927 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15928 libc_hidden_proto.
15929 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15930 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15931 Likewise.
15932 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15933 Undefine and redefine to add use __gnu_dev_ prefix.
15934 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15935 Likewise.
15936 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15937 and define as hidden inline function.
15938 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15939 Likewise.
15940 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15941 Likewise.
15942 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15943 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15944 (gnu_dev_minor): Likewise.
15945 (gnu_dev_makedev): Likewise.
15946 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15947 makedev.
15948 * posix/wordexp.c (exec_comm_child): Likewise.
15949 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15950 instead of minor and __gnu_dev_major instead of major.
15951 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15952 __gnu_dev_major instead of major.
15953 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15954 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15955 instead of gnu_dev_minor.
15956 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15957 (SLAVE_P): Likewise.
15958 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15959 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15960 instead of major.
15961
15962 [BZ #21313]
15963 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15964 in another place.
15965 * locale/weightwc.h (findidx): Likewise.
15966
15967 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15968
15969 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15970 (slowlog_inexact): Likewise
15971 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15972 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15973
15974 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15975
15976 [BZ #22797]
15977 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15978 missing second underscore to parameter name.
15979
15980 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15981
15982 [BZ #14508]
15983 [BZ #15512]
15984 [BZ #17082]
15985 [BZ #20530]
15986 * bits/byteswap.h: Update file comment. Do not include
15987 <bits/byteswap-16.h>.
15988 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15989 constant.
15990 (__bswap_16): Define as inline function.
15991 (__bswap_constant_32): Reformat definition.
15992 (__bswap_32): Always define as inline function, not macro, using
15993 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15994 otherwise __bswap_constant_32.
15995 (__bswap_constant_64): Reformat definition. Do not use
15996 __extension__ here.
15997 (__bswap_64): Always define as inline function, not macro. Use
15998 __extension__ on function definition. Use __builtin_bswap64 if
15999 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16000 * string/test-endian-file-scope.c: New file.
16001 * string/test-endian-sign-conversion.c: Likewise.
16002 * string/Makefile (headers): Remove bits/byteswap-16.h.
16003 (tests): Add test-endian-file-scope and
16004 test-endian-sign-conversion.
16005 (CFLAGS-test-endian-sign-conversion.c): New variable.
16006 * bits/byteswap-16.h: Remove file.
16007 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16008 * sysdeps/ia64/bits/byteswap.h: Likewise.
16009 * sysdeps/m68k/bits/byteswap.h: Likewise.
16010 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16011 * sysdeps/s390/bits/byteswap.h: Likewise.
16012 * sysdeps/tile/bits/byteswap.h: Likewise.
16013 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16014 * sysdeps/x86/bits/byteswap.h: Likewise.
16015
16016 [BZ #17721]
16017 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16018 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16019 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16020 199901L] (__restrict): Define to restrict.
16021
16022 [BZ #19667]
16023 * string/testcopy.c: Include <support/support.h>. Do not include
16024 <malloc.h>. Use <support/test-driver.c>.
16025 (main): Rename to do_test. Make static. Use xmalloc instead of
16026 malloc.
16027
16028 [BZ #13575]
16029 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16030 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16031 (SSIZE_MAX): Define to INT_MAX.
16032 * posix/test-ssize-max.c: New file.
16033 * posix/Makefile (tests): Add test-ssize-max.
16034
16035 [BZ #19668]
16036 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16037 <support/support.h>. Do not include <malloc.h>.
16038 (query_auxv): Use xmalloc instead of malloc.
16039
16040 [BZ #14553]
16041 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16042 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16043 instead of loff_t.
16044
16045 2018-02-06 Florian Weimer <fweimer@redhat.com>
16046
16047 [BZ #18023]
16048 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16049 Use scratch_buffer instead of extend_alloca.
16050
16051 2018-02-06 Zack Weinberg <zackw@panix.com>
16052
16053 * libio/stdio.h: Don't define getc or putc as macros.
16054 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16055 not _IO_getc and _IO_putc.
16056
16057 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16058 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16059
16060 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16061
16062 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16063 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16064
16065 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16066
16067 [BZ #14890]
16068 * elf/elf.h (NT_PRFPREG): New macro.
16069 (NT_S390_VXRS_LOW): Likewise.
16070 (NT_S390_VXRS_HIGH): Likewise.
16071 (NT_S390_GS_CB): Likewise.
16072 (NT_S390_GS_BC): Likewise.
16073 (NT_S390_RI_CB): Likewise.
16074
16075 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16076 (MAP_SYNC): New macro.
16077 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16078 Likewise.
16079 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16080 (MAP_SYNC): Likewise.
16081 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16082 (MAP_SYNC): Likewise.
16083 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16084 (MAP_SYNC): Likewise.
16085 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16086 (MAP_SYNC): Likewise.
16087 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16088 (MAP_SYNC): Likewise.
16089 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16090 (MAP_SYNC): Likewise.
16091 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16092 Likewise.
16093 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16094 Likewise.
16095
16096 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16097 (MAP_SHARED_VALIDATE): New macro.
16098 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16099 (MAP_SHARED_VALIDATE): Likewise.
16100
16101 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16102
16103 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16104 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16105 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16106
16107 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16108
16109 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16110 (DT_NUM): Updated to 35.
16111
16112 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16113
16114 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16115 __builtin_expect with __glibc_likely and __glibc_unlikely.
16116 (elf_machine_rela): Likewise.
16117 (elf_machine_lazy_rel): Likewise.
16118
16119 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16120
16121 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16122 __builtin_expect with __glibc_likely and __glibc_unlikely.
16123 (elf_machine_lazy_rel): Likewise.
16124
16125 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16126
16127 [BZ #22638]
16128 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16129 SHARED.
16130 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16131
16132 2018-02-05 Andreas Schwab <schwab@suse.de>
16133
16134 [BZ #22761]
16135 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16136 string.
16137
16138 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16139
16140 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16141 not check against PTHREAD_STACK_MIN.
16142
16143 2018-02-02 Sean McKean <smckean83@gmail.com>
16144
16145 [BZ #22735]
16146 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16147
16148 2018-02-02 Florian Weimer <fweimer@redhat.com>
16149
16150 [BZ #22753]
16151 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16152 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16153 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16154 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16155 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16156 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16157 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16158 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16159 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16160 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16161 * misc/tst-preadvwritev2.c (do_test): Call it.
16162 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16163
16164 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16165
16166 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16167
16168 * benchtests/bench-memcmp.c: Print json instead of plain text.
16169
16170 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16171 every test run.
16172
16173 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16174
16175 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16176 version to 4.15.
16177 (s390_sthyi): New syscall.
16178
16179 * sysdeps/generic/ldbl-classify-compat.h: New file.
16180 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16181 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16182 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16183 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16184 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16185 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16186 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16187 <ldbl-classify-compat.h>.
16188 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16189 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16190 <ldbl-classify-compat.h>.
16191 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16192 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16193 <ldbl-classify-compat.h>.
16194 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16195 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16196 <ldbl-classify-compat.h>.
16197 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16198 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16199 <ldbl-classify-compat.h>.
16200 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16201 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16202 <ldbl-classify-compat.h>.
16203 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16204 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16205 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16206 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16207 * sysdeps/microblaze/math_private.h: Likewise.
16208 * sysdeps/nios2/math_private.h: Likewise.
16209 * sysdeps/sh/math_private.h: Likewise.
16210
16211 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16212 * sysdeps/m68k/coldfire/math_private.h: ... here.
16213 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16214 * sysdeps/tile/math_private.h: Likewise.
16215 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16216 Remove macro.
16217 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16218 Likewise.
16219
16220 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16221 Remove macro.
16222 (libc_fetestexcept): Likewise.
16223 (libc_feupdateenv_test): Likewise.
16224 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16225 (libc_fetestexcept): Likewise.
16226 (libc_feupdateenv_test): Likewise.
16227 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16228 (libc_fetestexcept): Likewise.
16229 (libc_feupdateenv_test): Likewise.
16230 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16231 (libc_fetestexcept): Likewise.
16232 (libc_feupdateenv_test): Likewise.
16233
16234 * sysdeps/generic/math_private.h
16235 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16236 New inline function.
16237 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16238 Likewise.
16239
16240 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16241 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16242 * sysdeps/generic/math_private.h
16243 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16244 inline function.
16245 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16246 Likewise.
16247 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16248 Likewise.
16249 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16250 Likewise.
16251 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16252 Likewise.
16253 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16254 Likewise.
16255 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16256 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16257 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16258 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16259 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16260 (__fegetenv): Likewise.
16261 (fesetenv): Likewise.
16262 (__fesetenv): Likewise.
16263 (feupdateenv): Likewise.
16264 (__feupdateenv): Likewise.
16265 (fegetround): Likewise.
16266 (__fegetround): Likewise.
16267 (fesetround): Likewise.
16268 (__fesetround): Likewise.
16269
16270 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16271 (feraiseexcept): New macro.
16272 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16273 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16274 Remove macro.
16275 (__feraiseexcept): Likewise.
16276 (feclearexcept): Likewise.
16277 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16278 (__feraiseexcept): Likewise.
16279 (feclearexcept): Likewise.
16280 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16281 (__feraiseexcept): Likewise.
16282 (feclearexcept): Likewise.
16283 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16284 (__feraiseexcept): Likewise.
16285 (feclearexcept): Likewise.
16286 (fetestexcept): Likewise.
16287
16288 * sysdeps/m68k/coldfire/math-tests.h: New file.
16289
16290 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16291 * sysdeps/m68k/bits/fenv.h: ... here.
16292 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16293 not define.
16294 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16295 Likewise.
16296 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16297 Likewise.
16298 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16299 Likewise.
16300 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16301 Likewise.
16302 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16303 Define to 0.
16304 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16305 (__FE_UNDEFINED): New enum constant.
16306 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16307 Do not define.
16308 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16309 Likewise.
16310 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16311 Likewise.
16312 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16313 to match generic bits/fenv.h.
16314 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16315 Do not define.
16316
16317 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16318 packed on bits.
16319 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16320 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16321 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16322 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16323
16324 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16325 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16326 Joseph Myers <joseph@codesourcery.com>
16327
16328 [BZ #21314]
16329 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16330 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16331 computation using c.
16332 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16333 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16334 computation using c.
16335
16336 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16337
16338 * version.h (RELEASE): Set to "development".
16339 (VERSION): Set to "2.27.9000".
16340 * NEWS (2.28): New section.
16341
16342 * version.h (RELEASE): Set to "stable".
16343 (VERSION): Set to "2.27".
16344 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16345
16346 * NEWS: Add the list of bugs fixed in 2.27.
16347
16348 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16349
16350 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16351 against PTHREAD_STACK_MIN.
16352
16353 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16354
16355 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16356 New entries.
16357 (Rafal Luzynski, Andreas Schwab): Update.
16358
16359 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16360
16361 [BZ #10871]
16362 * NEWS: List the languages which actually use the alternative
16363 months feature in this release. Also explain that "alt_mon" and
16364 "ab_alt_mon" are optional.
16365
16366 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16367
16368 [BZ #22765]
16369 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16370
16371 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16372
16373 * manual/install.texi (Tools for Compilation): Update the newest
16374 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16375 * INSTALL: Regenerated.
16376
16377 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16378
16379 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16380 instead of __builtin_expect.
16381
16382 2018-01-30 Florian Weimer <fweimer@redhat.com>
16383
16384 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16385 data.
16386 * nss/tst-nss-getpwent.c (do_test): Likewise.
16387
16388 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16389
16390 [BZ #10871]
16391 * localedata/locales/hr_HR (mon): Rename to...
16392 (alt_mon): This.
16393 (mon): Import from CLDR (genitive case).
16394 (d_t_fmt): Update the comment.
16395
16396 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16397
16398 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16399 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16400 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16401
16402 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16403
16404 * mach/Versions: Fix version when __mach_host_self_ was added.
16405 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16406 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16407 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16408 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16409 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16410 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16411 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16412 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16413 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16414 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16415 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16416 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16417 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16418 || to respect codestyle.
16419 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16420 (do_test_bz20181): Rename accordingly.
16421 * malloc/malloc.c: Include <assert.h>.
16422 (assert): Do not define.
16423 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16424 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16425 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16426 * sysdeps/mach/hurd/hp-timing.h: New file.
16427 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16428
16429 2018-01-29 Darius Rad <darius@bluespec.com>
16430
16431 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16432
16433 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16434
16435 * sysdeps/init_array/crti.S (.section .init_array): Add
16436 PREINIT_FUNCTION when defined.
16437 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16438 * config.h.in: Regenerate.
16439 * manual/platform.texi: Add RISC-V documenation for
16440 __riscv_flush_icache.
16441 * sysdeps/riscv/__longjmp.S: New file.
16442 * sysdeps/riscv/backtrace.c: Likewise.
16443 * sysdeps/riscv/bits/endian.h: Likewise.
16444 * sysdeps/riscv/bits/setjmp.h: Likewise.
16445 * sysdeps/riscv/bits/wordsize.h: Likewise.
16446 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16447 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16448 * sysdeps/riscv/dl-trampoline.S: Likewise.
16449 * sysdeps/riscv/gccframe.h: Likewise.
16450 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16451 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16452 * sysdeps/riscv/machine-gmon.h: Likewise.
16453 * sysdeps/riscv/memusage.h: Likewise.
16454 * sysdeps/riscv/setjmp.S: Likewise.
16455 * sysdeps/riscv/sys/asm.h: Likewise.
16456 * sysdeps/riscv/tls-macros.h: Likewise.
16457 * sysdeps/riscv/dl-tls.h: New file.
16458 * sysdeps/riscv/libc-tls.c: Likewise.
16459 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16460 * sysdeps/riscv/nptl/tls.h: Likewise.
16461 * sysdeps/riscv/stackinfo.h: Likewise.
16462 * sysdeps/riscv/bits/fenv.h: New file.
16463 * sysdeps/riscv/e_sqrtl.c: Likewise.
16464 * sysdeps/riscv/fpu_control.h: Likewise.
16465 * sysdeps/riscv/math-tests.h: Likewise.
16466 * sysdeps/riscv/nofpu/Implies: Likewise.
16467 * sysdeps/riscv/sfp-machine.h: Likewise.
16468 * sysdeps/riscv/tininess.h: Likewise.
16469 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16470 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16471 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16472 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16473 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16474 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16475 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16476 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16477 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16478 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16479 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16480 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16481 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16482 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16483 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16484 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16485 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16486 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16487 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16488 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16489 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16490 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16491 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16492 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16493 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16494 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16495 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16496 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16497 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16498 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16499 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16500 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16501 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16502 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16503 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16504 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16505 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16506 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16507 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16508 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16509 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16510 * sysdeps/riscv/rvf/math_private.h: Likewise.
16511 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16512 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16513 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16514 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16515 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16516 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16517 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16518 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16519 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16520 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16521 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16522 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16523 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16524 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16525 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16526 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16527 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16528 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16529 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16530 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16531 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16532 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16533 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16534 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16535 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16536 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16537 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16538 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16539 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16540 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16541 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16542 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16543 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16544 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16545 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16546 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16547 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16548 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16549 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16550 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16551 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16552 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16553 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16554 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16555 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16556 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16557 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16558 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16559 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16560 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16561 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16562 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16563 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16564 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16565 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16566 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16567 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16568 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16569 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16570 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16571 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16572 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16573 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16574 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16575 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16576 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16577 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16578 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16579 * sysdeps/riscv/Implies: New file.
16580 * sysdeps/riscv/Makefile: Likewise.
16581 * sysdeps/riscv/configure: Likewise.
16582 * sysdeps/riscv/configure.ac: Likewise.
16583 * sysdeps/riscv/nptl/Makefile: Likewise.
16584 * sysdeps/riscv/preconfigure: Likewise.
16585 * sysdeps/riscv/rv64/Implies-after: Likewise.
16586 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16587 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16588 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16589 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16590 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16591 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16592 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16593 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16594 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16595 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16596 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16597 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16598 (Config): Likewise.
16599
16600 2018-01-29 Florian Weimer <fweimer@redhat.com>
16601
16602 [BZ #22701]
16603 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16604 libnsl_hidden_proto.
16605 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16606 libnsl_hidden_proto.
16607 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16608 * nis/Makefile (libnsl-routines): Add nss-default only for
16609 build-obsolete-nsl.
16610 * nis/nis_defaults.c (__nis_default_ttl): Add
16611 libnsl_hidden_nolink_def.
16612 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16613 declaration.
16614 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16615 * nis/ypclnt.c (yp_maplist): Likewise.
16616
16617 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16618
16619 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16620 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16621
16622 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16623
16624 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16625 clean -dxfq for git updates when replacing sources.
16626
16627 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16628 --disable-libcilkrts unconditionally, not just for the final GCC
16629 build for Hurd.
16630
16631 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16632 version to 4.15.
16633
16634 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16635
16636 [BZ #10871]
16637 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16638 case).
16639
16640 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16641
16642 [BZ #10871]
16643 * localedata/locales/be_BY (mon): Rename to...
16644 (alt_mon): This, then synchronize with CLDR (nominative case).
16645 (abmon): Rename to...
16646 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16647 (mon): Import from CLDR (genitive case).
16648 (abmon): Likewise.
16649 * localedata/locales/be_BY@latin (mon): Rename to...
16650 (alt_mon): This.
16651 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16652
16653 * localedata/locales/be_BY@latin (lang_name): Reworded to
16654 "biełaruskaja mova".
16655
16656 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16657
16658 [BZ #10871]
16659 * localedata/locales/el_CY (mon): Renamed to...
16660 (alt_mon): This.
16661 (mon): Import from CLDR (genitive case).
16662 * localedata/locales/el_GR: Likewise.
16663
16664 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16665
16666 [BZ #10871]
16667 * localedata/locales/ru_RU (mon): Rename to...
16668 (alt_mon): This.
16669 (abmon): Rename to...
16670 (ab_alt_mon): This.
16671 (mon): Import from CLDR (genitive case).
16672 (abmon): Copy from the old content except the 5th month which is
16673 now in the genitive case, even when abbreviated.
16674 * localedata/locales/ru_UA: Likewise.
16675 * time/tst-strptime.c (day_tests): Add an actual example of
16676 a difference between %b and %Ob in Russian.
16677
16678 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16679
16680 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16681 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16682 a `c' variable.
16683 * resolv/res-close.c: Include <stdlib.h>.
16684 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16685 <sys/wait.h>, <time.h>, <sys/uio.h>.
16686 (NOT_CANCEL_H): Add inclusion guard.
16687 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16688 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16689 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16690 return 0.
16691 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16692 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16693 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16694 instead of void *.
16695 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16696 timer_ptr2id to cast struct timer_node * to void *.
16697 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16698 --disable-libcilkrts to gcc configure.
16699 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16700 and make them the default for now.
16701 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16702 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16703 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16704 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16705 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16706 MACH_IPC_COMPAT.
16707 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16708 __task_terminate would ever return successfully.
16709 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16710 to global scope.
16711 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16712 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16713 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16714 critical section to make code simpler and avoid warning.
16715 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16716 critical section to make code simpler and avoid warning.
16717 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16718 const char * instead of char *.
16719 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16720 __hurd_file_name_split, hurd_file_name_split,
16721 __hurd_directory_name_split, hurd_directory_name_split,
16722 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16723 hurd_file_name_path_lookup): Make lookup function parameter take a
16724 const char *name instead of char *name.
16725 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16726 __hurd_directory_name_split): Likewise.
16727 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16728 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16729 * sysdeps/mach/hurd/check_native.c: New file.
16730 * sysdeps/mach/hurd/check_pf.c: New file.
16731 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16732 (__freeifaddrs): Define macro to freeifaddrs.
16733 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16734 * sysdeps/mach/libmachuser.abilist: New file.
16735 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16736 (do_test_bz20181): Rename accordingly.
16737 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16738 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16739 <sys/mount.h>.
16740 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16741 version only if __USE_EXTERN_INLINES is defined.
16742 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16743 __hurd_sockfail): Likewise.
16744 (_hurd_fd_get): Always declare functions, and provide inline versions
16745 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16746 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16747 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16748 _hurd_port_set): Always declare functions, and provide inline versions
16749 only if __USE_EXTERN_INLINES and _LIBC are defined and
16750 IS_IN(libc).
16751 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16752 _hurd_critical_section_unlock): Likewise.
16753 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16754 * __hurd_threadvar_location): Likewise.
16755 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16756 _hurd_userlink_clear): Likewise.
16757 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16758 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16759 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16760 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16761 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16762 __spin_lock_locked): Likewise.
16763 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16764 __spin_lock_locked): Likewise.
16765 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16766 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16767 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16768 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16769 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16770 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16771 _POSIX_NO_TRUNC): Define to 0.
16772 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16773 check size against PTHREAD_STACK_MIN.
16774 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16775 IS_IN(libpthread)]: Include <sigsetops.h>.
16776 * mach/Makefile (user-interfaces): Add mach/gnumach.
16777 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16778 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16779 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16780 instead of invalid -1.
16781 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16782 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16783 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16784 <net/ppp_defs.h>.
16785
16786 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16787
16788 * hurd/fcntl-internal.h: New file.
16789
16790 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16791
16792 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16793
16794 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16795
16796 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16797
16798 [BZ #22701]
16799 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16800 Build only shared objects.
16801
16802 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16803
16804 * README: Update for hppa.
16805
16806 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16807
16808 * sysdeps/sparc/fpu/libm-test-ulps: Update
16809 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16810
16811 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16812
16813 Revert:
16814
16815 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16816
16817 [BZ #22563]
16818 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16819 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16820 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16821 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16822 to feature_1.
16823
16824 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16825
16826 [BZ #22563]
16827 * bits/types/__cancel_jmp_buf_tag.h: New file.
16828 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16829 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16830 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16831 * nptl/Makefile (headers): Add
16832 bits/types/__cancel_jmp_buf_tag.h.
16833 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16834 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16835 * sysdeps/nptl/pthread.h: Include
16836 <bits/types/__cancel_jmp_buf_tag.h>.
16837 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16838 __cancel_jmp_buf.
16839 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16840
16841 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16842
16843 [BZ #10871]
16844 * localedata/locales/uk_UA (mon): Renamed to...
16845 (alt_mon): This.
16846 (alt_digits): "0" removed and then renamed to...
16847 (mon): This.
16848 (date_fmt): Definition changed not to use the alternative
16849 digits hack.
16850
16851 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16852
16853 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16854 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16855 * elf/elf.h (EF_RISCV_RVC): New define.
16856 (EF_RISCV_FLOAT_ABI): Likewise.
16857 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16858 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16859 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16860 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16861 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16862 define.
16863 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16864
16865 2018-01-25 Andreas Schwab <schwab@suse.de>
16866
16867 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16868 single quotes.
16869 * sysdeps/gnu/configure: Regenerate.
16870 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16871 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16873 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16874 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16875 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16876 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16877 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16878
16879 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16880
16881 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16882 URL, and run autoconf, make it the default for now.
16883
16884 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16885
16886 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16887 soft-float ColdFire configuration.
16888
16889 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16890 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16891 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16892
16893 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16894 MicroBlaze file.
16895
16896 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16897 ....
16898 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16899 ... here.
16900 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16901 New file.
16902
16903 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16904 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16905 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16906 file.
16907
16908 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16909
16910 [BZ #22742]
16911 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16912 Rename to __reserved and add comment.
16913 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16914 Rename to __reserved.
16915
16916 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16917
16918 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16919 i686-gnu configurations.
16920 (Context.run_builds): Include mig, gnumach and hurd in components
16921 considered.
16922 (Context.checkout): Add mig, gnumach and hurd to components.
16923 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16924 hurd.
16925 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16926 (Config.build): Install gnumach headers, build mig and install
16927 hurd headers for 'gnu' OS.
16928 (Config.install_gnumach_headers): New function.
16929 (Config.install_hurd_headers): Likewise.
16930 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16931 when building for 'gnu' OS.
16932
16933 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16934
16935 * manual/tunables.texi (Hardware Capability Tunables): Fix
16936 spelling.
16937
16938 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16939
16940 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16941 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16942 (ALTMON_11, ALTMON_12): Improve documentation.
16943 * manual/time.texi (strftime): Likewise.
16944
16945 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16946
16947 [BZ #10871]
16948 * localedata/locales/pl_PL: Alternative month names added,
16949 primary month names are genitive now.
16950 * time/tst-strptime.c (day_tests): Actually use a genitive case
16951 of a month name in Polish language.
16952
16953 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16954
16955 [BZ #10871]
16956 * manual/locale.texi: Document ALTMON_1..12 constants for
16957 nl_langinfo. Specify when to use ALTMON instead of MON.
16958 * manual/time.texi (strftime, strptime): Document GNU extension
16959 permitting O modifier with %B and %b. Specify when to use
16960 %OB instead of %B.
16961
16962 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16963
16964 [BZ #10871]
16965 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16966 names, define them as the same as abbreviated month names explicitly.
16967 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16968 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16969 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16970 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16971 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16972 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16973 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16974 _NL_WABALTMON_12): New enum constants.
16975 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16976 wab_alt_mon, and ab_alt_mon_defined members.
16977 (time_output): Output ab_alt_mon and wab_alt_mon members.
16978 (time_read): Read them, initialize them as copies of abmon and wabmon
16979 respectively if they are missing, initialize ab_alt_mon_defined.
16980 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16981 * locale/programs/locfile-kw.h: Regenerate.
16982 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16983 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16984 and ru_RU.UTF-8.
16985 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16986 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16987 (__strftime_internal): Handle %Ob and %Oh formats.
16988 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16989 (__strptime_internal): Handle %Ob and %Oh formats.
16990 * time/tst-strptime.c (day_tests): Add more tests to parse different
16991 forms of month names including the new %Ob format specifier.
16992
16993 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16994
16995 [BZ #10871]
16996 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16997 define them as the same as primary full month names explicitly.
16998 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16999 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17000 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17001 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17002 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17003 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17004 _NL_WALTMON_12): New enum constants.
17005 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17006 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17007 macros.
17008 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17009 walt_mon, and alt_mon_defined members.
17010 (time_output): Output alt_mon and walt_mon members.
17011 (time_read): Read them, initialize them as copies of mon and wmon
17012 respectively if they are missing, initialize alt_mon_defined.
17013 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17014 * locale/programs/locfile-kw.h: Regenerate.
17015 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17016 * localedata/tst-langinfo.c (map): Add tests for the new constants
17017 ALTMON_1 .. ALTMON_12.
17018 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17019 and pl_PL.UTF-8.
17020 * time/strftime_l.c (f_altmonth): New macro.
17021 (__strftime_internal): Handle %OB format.
17022 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17023 (__strptime_internal): Handle %OB format.
17024 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17025 of month names including the new %OB format specifier.
17026
17027 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17028
17029 [BZ #22685]
17030 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17031 from ABORT_TRANSACTION.
17032 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17033 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17034 ABORT_TRANSACTION_IMPL): Likewise.
17035 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17036 Linux code, but remove the code that aborts transactions.
17037
17038 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17039
17040 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17041
17042 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17043
17044 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17045 in date: "2004-14-09" should be "2004-09-14".
17046 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17047 "2003-15-09" should be "2003-09-15".
17048
17049 2018-01-18 Arjun Shankar <arjun@redhat.com>
17050
17051 [BZ #22343]
17052 [BZ #22774]
17053 CVE-2018-6485
17054 CVE-2018-6551
17055 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17056 after padding.
17057 (_int_memalign): check for integer overflow before calling
17058 _int_malloc.
17059 * malloc/tst-malloc-too-large.c: New test.
17060 * malloc/Makefile: Add tst-malloc-too-large.
17061
17062 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17063
17064 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17065 in date: "2017-24-07" should be "2017-07-24".
17066 * localedata/locales/mai_IN: Likewise.
17067 * localedata/locales/mai_NP: Likewise.
17068
17069 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17070
17071 * po/ru.po: Update translations.
17072
17073 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17074
17075 [BZ #22719]
17076 * sysdeps/hppa/backtrace.c: New file.
17077
17078 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17079
17080 [BZ #22715]
17081 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17082 align La_x86_64_retval to VEC_SIZE.
17083
17084 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17085
17086 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17087 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17088
17089 2018-01-16 Florian Weimer <fweimer@redhat.com>
17090
17091 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17092 Move tst-thread-exit-clobber ...
17093 [$(CXX)] (tests-unsupported): ... to here.
17094
17095 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17096
17097 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17098 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17099 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17100 (_dl_aarch64_cap_flags): Update.
17101 (_DL_HWCAP_COUNT): Update.
17102
17103 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17104
17105 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17106 (_DL_HWCAP_LAST): Remove.
17107 (_DL_HWCAP_COUNT): Move to ...
17108 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17109 (_DL_HWCAP_COUNT): ... here.
17110
17111 2018-01-16 Florian Weimer <fweimer@redhat.com>
17112
17113 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17114 mode with GNU extensions.
17115
17116 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17117
17118 * elf/elf.h (NT_ARM_SVE): Define.
17119
17120 2018-01-15 Florian Weimer <fweimer@redhat.com>
17121
17122 [BZ #22636]
17123 * nptl/tst-minstack-throw.cc: New file.
17124 * nptl/Makefile (tests): Add tst-minstack-throw.
17125 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17126 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17127
17128 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17129
17130 * scripts/build-many-glibcs.py (Context.checkout): Default
17131 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17132 version to 1.1.0.
17133
17134 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17135
17136 [BZ #22707]
17137 * elf/elf.h (DF_1_STUB): Define.
17138 (DF_1_PIE): Define.
17139
17140 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17141
17142 [BZ #22697]
17143 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17144 Do not add 0.5 to integer or out-of-range arguments.
17145
17146 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17147
17148 * po/bg.po: Update translations.
17149 * po/cs.po: Likewise.
17150 * po/de.po: Likewise.
17151 * po/ko.po: Likewise.
17152 * po/pl.po: Likewise.
17153 * po/sv.po: Likewise.
17154 * po/uk.po: Likewise.
17155 * po/vi.po: Likewise.
17156
17157 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17158
17159 * aarch64/start.S (_start): Use __wrap_main.
17160 (__wrap_main): New local symbol.
17161
17162 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17163
17164 [BZ #22679]
17165 CVE-2018-1000001
17166 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17167 generic_getcwd if the path returned by getcwd syscall is not absolute.
17168 * io/tst-getcwd-abspath.c: New test.
17169 * io/Makefile (tests): Add tst-getcwd-abspath.
17170
17171 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17172
17173 * malloc/malloc.c (malloc_consolidate): Add size check.
17174
17175 2018-01-12 Florian Weimer <fweimer@redhat.com>
17176
17177 * support/write_message.c (write_message): Preserve errno.
17178 * support/check.c (print_failure): Likewise.
17179 * support/support_test_verify_impl.c (support_test_verify_impl):
17180 Likewise.
17181 * support/support_test_compare_failure.c
17182 (support_test_compare_failure): Likewise.
17183
17184 2018-01-12 Florian Weimer <fweimer@redhat.com>
17185
17186 [BZ #22701]
17187 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17188 Prevent installation of libnsl.so.
17189 (libnsl-inhibit-o): Do not build (or install) static libraries.
17190
17191 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17192
17193 [BZ #22657]
17194 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17195 before the day number which may produce a double space.
17196 (date_fmt): Likewise.
17197
17198 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17199
17200 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17201 instead of fegetenv.
17202
17203 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17204
17205 [BZ #22702]
17206 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17207 comment to say exceptions are discarded.
17208 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17209 __fegetenv.
17210 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17211 be enabled.
17212
17213 2018-01-11 Florian Weimer <fweimer@redhat.com>
17214
17215 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17216 and error message.
17217
17218 2018-01-11 Florian Weimer <fweimer@redhat.com>
17219
17220 [BZ #22636]
17221 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17222 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17223
17224 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17225
17226 [BZ #22693]
17227 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17228 negative arguments in test for NaN or infinity argument.
17229
17230 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17231
17232 * po/libc.pot: Regenerate.
17233
17234 2018-01-10 Florian Weimer <fweimer@redhat.com>
17235
17236 [BZ #22636]
17237 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17238 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17239
17240 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17241
17242 * hurd/hurd/fd.h: Include <fcntl.h>
17243 (__hurd_at_flags): New function.
17244 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17245 with call to __hurd_at_flags.
17246 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17247 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17248 __faccessat
17249 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17250 (__access_noerrno): Use __faccessat_common instead of access_common.
17251 (__access): Likewise.
17252 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17253 with a call to __faccessat.
17254 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17255 (__faccessat_common): ... this. Move implementation of __access into it when
17256 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17257 reauthenticate_cwdir_at helper to implement AT mechanism.
17258 (__faccessat_noerrno): New function, just calls __faccessat_common.
17259 (__faccessat): New function, just calls __faccessat_common.
17260 (faccessat): Define weak alias.
17261
17262 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17263
17264 [BZ #22691]
17265 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17266 (CFLAGS-s_fmaxmagl.c): New variable.
17267 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17268
17269 [BZ #22690]
17270 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17271 long int for arguments of possibly overflowing addition or
17272 subtraction.
17273 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17274
17275 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17276
17277 [BZ #22688]
17278 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17279 (CFLAGS-e_remainderl.c): New variable.
17280
17281 [BZ #22687]
17282 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17283 variable.
17284 (CFLAGS-s_cacoshl.c): Likewise.
17285 (CFLAGS-s_casinhl.c): Likewise.
17286 (CFLAGS-s_catanl.c): Likewise.
17287 (CFLAGS-s_catanhl.c): Likewise.
17288 (CFLAGS-s_cexpl.c): Likewise.
17289 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17290 (CFLAGS-s_csinhl.c): Likewise.
17291 (CFLAGS-s_clogl.c): Likewise.
17292 (CFLAGS-s_clog10l.c): Likewise.
17293 (CFLAGS-s_csinl.c): Likewise.
17294 (CFLAGS-s_csqrtl.c): Likewise.
17295
17296 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17297 2017-01-09 Svante Signell <svante.signell@gmail.com>
17298
17299 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17300 (_hurd_exec_paths): New function.
17301 * hurd/hurd.h (_hurd_exec): Deprecate function.
17302 (_hurd_exec_paths): Declare function.
17303 * hurd/Versions: Export _hurd_exec_paths.
17304 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17305 (__execve): Use __getcwd to build absolute path, and use
17306 _hurd_exec_paths instead of _hurd_exec.
17307 * sysdeps/mach/hurd/spawni.c: Likewise.
17308 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17309 _hurd_exec.
17310
17311 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17312
17313 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17314 test instead of failing in case of ENOENT returned by posix_openpt.
17315
17316 2018-01-08 Florian Weimer <fweimer@redhat.com>
17317
17318 resolv: Support binary labels in test framework.
17319 * support/resolv_test.c (struct to_be_freed): Remove.
17320 (struct compressed_name): New.
17321 (allocate_compressed_name, ascii_tolower)
17322 (compare_compressed_name): New functions.
17323 (struct resolv_response_builder): Update type of
17324 compression_offsets for use with tsearch. Rempve to_be_freed.
17325 (response_push_pointer_to_free): Remove function.
17326 (resolv_response_add_name): Rewrite using struct compressed_name
17327 and tsearch instead of hsearch_r.
17328 (response_builder_allocate): Remove initialization of
17329 compression_offsets.
17330 (response_builder_free): Update for removal of to_be_freed. Use
17331 tdestroy instead of hdestroy_r.
17332 * resolv/Makefile (tests): Add tst-resolv-binary.
17333 (tst-resolv-binary): Link with -lresolv -lpthread.
17334
17335 2018-01-08 Florian Weimer <fweimer@redhat.com>
17336
17337 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17338 time. Pass positive flag instead of negative flag to
17339 support_test_compare_failure.
17340 (support_test_compare_failure): Change negative parameter to
17341 positive.
17342 * support/support_test_compare_failure.c (report)
17343 (support_test_compare_failure): Likewise.
17344 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17345 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17346
17347 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17348
17349 [BZ #22637]
17350 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17351 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17352 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17353 stacksize.
17354 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17355
17356 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17357
17358 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17359 Add s_sincosf-sse2 and s_sincosf-fma.
17360 (CFLAGS-s_sincosf-fma.c): New.
17361 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17362 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17363 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17364 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17365 __sincosf is defined.
17366
17367 2018-01-08 Florian Weimer <fweimer@redhat.com>
17368
17369 * nptl/tst-thread-exit-clobber.cc: New file.
17370 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17371 C++11 mode.
17372 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17373 (tests): Add tst-thread-exit-clobber.
17374 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17375
17376 2018-01-08 Florian Weimer <fweimer@redhat.com>
17377
17378 * support/check.h (support_static_assert): Define.
17379 (TEST_COMPARE): Use it.
17380
17381 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17382
17383 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17384 [!__RLIM_T_MATCHES_RLIM64_T]
17385 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17386 __getrlimit64. Add libc_hidden_weak.
17387
17388 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17389
17390 * elf/elf.h (R_RISCV_NONE): New define.
17391 (R_RISCV_32): Likewise.
17392 (R_RISCV_64): Likewise.
17393 (R_RISCV_RELATIVE): Likewise.
17394 (R_RISCV_COPY): Likewise.
17395 (R_RISCV_JUMP_SLOT): Likewise.
17396 (R_RISCV_TLS_DTPMOD32): Likewise.
17397 (R_RISCV_TLS_DTPMOD64): Likewise.
17398 (R_RISCV_TLS_DTPREL32): Likewise.
17399 (R_RISCV_TLS_DTPREL64): Likewise.
17400 (R_RISCV_TLS_TPREL32): Likewise.
17401 (R_RISCV_TLS_TPREL64): Likewise.
17402 * Makerules (make-link-multidir): Make directories before linking into
17403 them.
17404 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17405 define.
17406 (VDSO_HASH_LINUX_4_15): Likewise.
17407 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17408 in subdirectories of lib.
17409 * nptl/Makefile (/librt.so): Always depend on
17410 "$(shared-thread-library)".
17411
17412 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17413
17414 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17415 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17416 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17417 (___tls_get_addr).
17418 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17419 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17420 "-O2 -march=i686".
17421 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17422 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17423 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17424 * sysdeps/gnu/glob-lstat-compat.c: New file.
17425 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17426 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17427
17428 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17429
17430 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17431 Reserve 16 chars to reloc_addr before calling _itoa_word.
17432
17433 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17434
17435 [BZ #22678]
17436 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17437 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17438
17439 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17440 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17441
17442 * resource/tst-getrlimit.c: Add copyright header.
17443
17444 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17445 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17446
17447 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17448 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17449 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17450 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17451 instead.
17452 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17453 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17454 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17455 RLIM64_INFINITY): Fix values to match the kernel ones.
17456 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17457 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17458 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17459 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17460 getrlimit64@@GLIBC_2_27.
17461 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17462 and setrlimit64.
17463 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17464 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17465 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17466 setrlimit, getrlimit64 and setrlimit64.
17467
17468 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17469
17470 [BZ #22648]
17471 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17472 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17473
17474 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17475
17476 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17477 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17478 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17479
17480 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17481
17482 [BZ #15479]
17483 [BZ #22666]
17484 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17485 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17486
17487 [BZ #15479]
17488 [BZ #22665]
17489 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17490 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17491 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17492 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17493
17494 2018-01-04 Florian Weimer <fweimer@redhat.com>
17495
17496 [BZ #22667]
17497 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17498 Align the stack before calling exit.
17499 * stdlib/tst-makecontext-align.c: New file.
17500 * stdlib/Makefile (tests): Add tst-makecontext-align.
17501
17502 2018-01-04 Florian Weimer <fweimer@redhat.com>
17503
17504 Add support for calling dlvsym from libc.so.
17505 * include/dlfcn.h (__libc_dlvsym): Declare.
17506 * elf/Makefile (tests-static-internal): Add
17507 tst-libc_dlvsym-static.
17508 (tests-internal): Add tst-libc_dlvsym.
17509 (modules-names): Add tst-libc_dlvsym-dso.
17510 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17511 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17512 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17513 object tst-libc_dlvsym-dso.so needs to be built before running
17514 these tests.
17515 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17516 * elf/Versions: Export __libc_dlvsym.
17517 * elf/dl-libc.c (struct do_dlvsym_args): New.
17518 (do_dlvsym, __libc_dlvsym): New functions.
17519 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17520 (_dl_open_hook2): New variable.
17521 (__libc_register_dl_open_hook): Set it.
17522 * elf/tst-libc_dlvsym-dso.c: New file.
17523 * elf/tst-libc_dlvsym-static.c: Likewise.
17524 * elf/tst-libc_dlvsym.c: Likewise.
17525 * elf/tst-libc_dlvsym.h: Likewise.
17526
17527 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17528
17529 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17530 include <sys/mount.h>.
17531
17532 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17533
17534 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17535 Add __NO_MATH_ERRNO__ check.
17536
17537 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17538
17539 * sysdeps/mips/mips32/libm-test-ulps: Update.
17540 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17541
17542 2018-01-02 Florian Weimer <fweimer@redhat.com>
17543
17544 * misc/tst-pselect.c: Add copyright header.
17545
17546 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17547
17548 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17549 comment.
17550 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17551 comment.
17552 (settrlimit): Rename into setrlimit.
17553 (__sttrlimit): Rename into __setrlimit.
17554
17555 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17556 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17557 never defined in that case.
17558
17559 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17560
17561 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17562
17563 * sysdeps/arm/libm-test-ulps: Update.
17564
17565 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17566 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17567
17568 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17569
17570 * NEWS: Add cosf and sincosf to list of optimized functions.
17571
17572 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17573
17574 [BZ #22660]
17575 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17576 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17577 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17578 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17579
17580 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17581
17582 [BZ #22433]
17583 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17584
17585 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17586 making a copy of it.
17587
17588 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17589
17590 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17591 trailing whitespace removed.
17592 * scripts/config.guess: Update to version 2018-01-01.
17593 * scripts/config.sub: Update to version 2018-01-01.
17594 * scripts/move-if-change: Update from gnulib.
17595
17596 * NEWS: Update copyright dates.
17597 * catgets/gencat.c (print_version): Likewise.
17598 * csu/version.c (banner): Likewise.
17599 * debug/catchsegv.sh: Likewise.
17600 * debug/pcprofiledump.c (print_version): Likewise.
17601 * debug/xtrace.sh (do_version): Likewise.
17602 * elf/ldconfig.c (print_version): Likewise.
17603 * elf/ldd.bash.in: Likewise.
17604 * elf/pldd.c (print_version): Likewise.
17605 * elf/sotruss.sh: Likewise.
17606 * elf/sprof.c (print_version): Likewise.
17607 * iconv/iconv_prog.c (print_version): Likewise.
17608 * iconv/iconvconfig.c (print_version): Likewise.
17609 * locale/programs/locale.c (print_version): Likewise.
17610 * locale/programs/localedef.c (print_version): Likewise.
17611 * login/programs/pt_chown.c (print_version): Likewise.
17612 * malloc/memusage.sh (do_version): Likewise.
17613 * malloc/memusagestat.c (print_version): Likewise.
17614 * malloc/mtrace.pl: Likewise.
17615 * manual/libc.texinfo: Likewise.
17616 * nptl/version.c (banner): Likewise.
17617 * nscd/nscd.c (print_version): Likewise.
17618 * nss/getent.c (print_version): Likewise.
17619 * nss/makedb.c (print_version): Likewise.
17620 * posix/getconf.c (main): Likewise.
17621 * scripts/test-installation.pl: Likewise.
17622 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17623
17624 * All files with FSF copyright notices: Update copyright dates
17625 using scripts/update-copyrights.
17626 * locale/programs/charmap-kw.h: Regenerated.
17627 * locale/programs/locfile-kw.h: Likewise.
17628
17629 2017-12-31 Zack Weinberg <zackw@panix.com>
17630
17631 * libio/bits/libio-ldbl.h: Correct check for improper
17632 inclusion. Add own multiple include guard.
17633
17634 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17635 Dmitry V. Levin <ldv@altlinux.org>
17636
17637 [BZ #22625]
17638 CVE-2017-16997
17639 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17640 string token expansion. Check for NULL pointer or empty string possibly
17641 returned by expand_dynamic_string_token.
17642 (decompose_rpath): Check for empty path after dynamic string
17643 token expansion.
17644
17645 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17646
17647 [BZ #22433]
17648 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17649
17650 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17651 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17652 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17653 and PTRACE_SYSCALL.
17654 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17655 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17656 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17657 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17658 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17659 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17660
17661 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17662 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17663 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17664 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17665 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17666 bits/ptrace-shared.h.
17667 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17668 <bits/ptrace-shared.h>.
17669 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17670 __ptrace_peeksiginfo_flags, ptrace): Remove.
17671 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17672 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17673 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17674 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17675 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17676
17677 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17678
17679 [BZ #17804]
17680 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17681 end of the loop. Improve comments.
17682
17683 2017-12-29 Zack Weinberg <zackw@panix.com>
17684
17685 [BZ #22615]
17686 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17687 might be set on success.
17688
17689 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17690
17691 [BZ #22611]
17692 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17693 is unchanged on success.
17694
17695 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17696
17697 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17698 updated.
17699 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17700 expand_dynamic_string_token): Likewise.
17701 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17702 is_path argument.
17703
17704 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17705 contains ':'.
17706
17707 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17708 is set and name contains ':', and all code depending on these checks.
17709
17710 2017-12-24 Zack Weinberg <zackw@panix.com>
17711
17712 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17713 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17714 respectively.
17715 * libio/libio.h: Rename the original version of this file to
17716 libio/bits/libio.h. Error out if not included by stdio.h or the
17717 stub libio.h.
17718 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17719 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17720 if not included by bits/libio.h or the stub _G_config.h.
17721 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17722 sysdeps/unix/sysv/linux/bits. Error out if not included by
17723 bits/libio.h or the stub _G_config.h.
17724 * libio/stdio.h: Include bits/libio.h, not libio.h.
17725 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17726 well as libio.h and _G_config.h.
17727
17728 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17729 * libio/strfile.h, stdio-common/vfscanf.c
17730 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17731 Include stdio.h, not _G_config.h nor libio.h.
17732 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17733 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17734
17735 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17736
17737 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17738
17739 [BZ #22347]
17740 * stdlib/getrandom.c (getrandom): Fix comment.
17741 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17742
17743 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17744
17745 [BZ #21161]
17746 * manual/arith.texi (strtoul): Fix a typo.
17747
17748 [BZ #22596]
17749 * manual/arith.texi (finite): Fix the description of the return
17750 value.
17751
17752 2017-12-22 Eric Blake <ebb9@byu.net>
17753
17754 Avoid gcc warnings on cygwin
17755 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17756 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17757 Avoid unused variable.
17758
17759 2017-12-22 Florian Weimer <fweimer@redhat.com>
17760
17761 * io/Makefile (routines): Add copy_file_range.
17762 (tests): Add tst-copy_file_range.
17763 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17764 * io/Versions (GLIBC_2.27): Export copy_file_range.
17765 * io/copy_file_range-compat.c: New file.
17766 * io/copy_file_range.c: Likewise.
17767 * io/tst-copy_file_range-compat.c: Likewise.
17768 * io/tst-copy_file_range.c: Likewise.
17769 * manual/llio.texi (Copying File Data): New section.
17770 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17771 * support/Makefile (libsupport-routines): Add support-xfstat,
17772 xftruncate, xlseek.
17773 * support/support-xfstat.c: New file.
17774 * support/xftruncate.c: Likewise.
17775 * support/xlseek.c: Likewise.
17776 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17777 * sysdeps/unix/sysv/linux/**.abilist: Update.
17778 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17779
17780 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17781
17782 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17783 disable-multi-arch variant to aarch64-linux-gnu.
17784
17785 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17786
17787 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17788 trailing whitespace removed.
17789 * scripts/config.guess: Update to version 2017-12-17.
17790 * scripts/config.sub: Update to version 2017-11-23.
17791 * scripts/install-sh: Update to version 2017-09-23.17.
17792 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17793
17794 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17795
17796 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17797 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17798 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17799 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17800 * sysdeps/tile/crtn.S: Likewise.
17801 * sysdeps/tile/dl-start.S (_start): Likewise.
17802 * sysdeps/tile/dl-trampoline.S: Likewise.
17803 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17804 * sysdeps/tile/start.S (_start): Likewise.
17805 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17806 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17807 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17808 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17809 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17810 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17811 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17812
17813 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17814 comment.
17815 * sysdeps/tile/preconfigure: Remove tilegx folder.
17816 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17817 * sysdeps/tile/Implies: ... here.
17818 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17819 * sysdeps/tile/Makefile: ... here.
17820 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17821 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17822 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17823 * sysdeps/tile/bits/wordsize.h: ... here.
17824 * sysdeps/tile/tilegx/*: Move to ...
17825 * sysdeps/tile/*: ... here.
17826 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17827 * sysdeps/tile/tilegx32/Implies: ... here.
17828 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17829 * sysdeps/tile/tilegx64/Implies: ... here.
17830 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17831 to ...
17832 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17833 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17834 * sysdeps/unix/sysv/linux/tile/*: ... here.
17835 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17836 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17837 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17838 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17839
17840 * README: Remove tilepro-*-linux-gnu from supported architecture.
17841 * scripts/build-many-glibcs.py: Likewise.
17842 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17843 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17844 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17845 elf_machine_matches_host, elf_machine_dynamic,
17846 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17847 howto, elf_machine_rela): Likewise.
17848 * sysdeps/tile/dl-start.S (_start): Likewise.
17849 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17850 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17851 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17852 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17853 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17854 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17855 Likewise.
17856 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17857 * sysdeps/tile/preconfigure: Likewise.
17858 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17859 POINTER_CHK_GUARD): Likewise.
17860 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17861 * sysdeps/tile/start.S (_start): Likewise.
17862 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17863 Likewise.
17864 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17865 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17866 CMOVNEZ): Remove.
17867 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17868 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17869 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17870 Likewise.
17871 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17872 * sysdeps/tile/tilepro/Implies: Remove file.
17873 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17874 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17875 * sysdeps/tile/tilepro/memchr.c: Likewise.
17876 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17877 * sysdeps/tile/tilepro/memset.c: Likewise.
17878 * sysdeps/tile/tilepro/memusage.h: Likewise.
17879 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17880 * sysdeps/tile/tilepro/strchr.c: Likewise.
17881 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17882 * sysdeps/tile/tilepro/strlen.c: Likewise.
17883 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17884 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17885 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17886 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17887 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17889 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17890 Likewise.
17891 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17903 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17904 tilepro mention in comment.
17905
17906 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17907 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17908 * nptl/pthread_join_common.c: New file: common function used on
17909 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17910 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17911 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17912 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17913 (cleanup): Move definition to pthread_join_common.c.
17914 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17915 Remove superflous checks.
17916 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17917 Likewise.
17918
17919 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17920
17921 * sysdeps/aarch64/libm-test-ulps: Update.
17922
17923 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17924
17925 * sysdeps/aarch64/memset.S (MEMSET): Define.
17926
17927 2017-12-20 Florian Weimer <fweimer@redhat.com>
17928
17929 [BZ #22635]
17930 nptl: Provide full implementation of pthread_self in libc.so.
17931 * nptl/Makefile (routines): Add pthread_self.
17932 (libpthread-routines): Replace pthread_self with
17933 compat-pthread_self.
17934 * nptl/forward.c (pthread_self): Remove.
17935 * nptl/nptl-init.c (pthread_functions): Do not initialize
17936 ptr_pthread_self.
17937 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17938 * nptl/compat-pthread_self.c: New file.
17939 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17940 Remove ptr_pthread_self.
17941
17942 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17943
17944 * posix/regcomp.c: Fix spelling in comments.
17945 * posix/regex.h: Likewise.
17946 * posix/regex_internal.c: Likewise.
17947 * posix/regexec.c: Likewise.
17948
17949 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17950
17951 [BZ #22377]
17952 * math/Makefile [C++] (tests): Add test for iseqsig.
17953 * math/math.h [C++] (iseqsig): New implementation, which does
17954 not rely on __MATH_TG/__builtin_types_compatible_p.
17955 * math/test-math-iseqsig.cc: New file.
17956 * sysdeps/powerpc/powerpc64le/Makefile
17957 (CFLAGS-test-math-iseqsig.cc): New variable.
17958
17959 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17960
17961 * elf/dl-load.c (is_trusted_path): Remove.
17962 (fillin_rpath): Remove check_trusted argument and its use,
17963 all callers changed.
17964
17965 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17966
17967 [BZ #22630]
17968 * Makeconfig (link-pie-before-libc): Replace -pie with
17969 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17970 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17971 (tst-dlopen-aout-no-pie): New.
17972 (LDFLAGS-tst-prelink): Removed.
17973 (tst-prelink-no-pie): New.
17974 (LDFLAGS-tst-main1): Removed.
17975 (tst-main1-no-pie): New.
17976 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17977 (tst-gmon-no-pie): New.
17978
17979 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17980
17981 * manual/install.texi: Document that --enable-static-pie
17982 implies PIE.
17983 * INSTALL: Regenerated.
17984
17985 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17986
17987 [BZ #21309]
17988 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17989 unsigned.
17990
17991 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17992
17993 Revert:
17994
17995 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17996
17997 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17998
17999 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18000
18001 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18002 <errno.h>. Include "eexp.tbl".
18003 (half): New constant.
18004 (one): Likewise.
18005 (__ieee754_exp): Rewrite.
18006 (__slowexp): Remove prototype.
18007 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18008 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18009 * sysdeps/i386/fpu/slowexp.c: Likewise.
18010 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18011 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18012 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18013 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18014 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18015 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18016 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18017 comment.
18018 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18019 (CPPFLAGS-slowexp.c): Remove variable.
18020 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18021 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18022 (CFLAGS-slowexp-fma.c): Remove variable.
18023 (CFLAGS-slowexp-fma4.c): Likewise.
18024 (CFLAGS-slowexp-avx.c): Likewise.
18025 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18026 define as macro.
18027 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18028 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18029 * math/Makefile (type-double-routines): Remove slowexp.
18030 * manual/probes.texi (slowexp_p6): Remove.
18031 (slowexp_p32): Likewise.
18032
18033 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18034
18035 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18036 arithmetic.
18037
18038 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18039
18040 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18041
18042 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18043
18044 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18045
18046 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18047 <errno.h>. Include "eexp.tbl".
18048 (half): New constant.
18049 (one): Likewise.
18050 (__ieee754_exp): Rewrite.
18051 (__slowexp): Remove prototype.
18052 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18053 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18054 * sysdeps/i386/fpu/slowexp.c: Likewise.
18055 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18056 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18057 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18058 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18059 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18060 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18061 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18062 comment.
18063 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18064 (CPPFLAGS-slowexp.c): Remove variable.
18065 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18066 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18067 (CFLAGS-slowexp-fma.c): Remove variable.
18068 (CFLAGS-slowexp-fma4.c): Likewise.
18069 (CFLAGS-slowexp-avx.c): Likewise.
18070 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18071 define as macro.
18072 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18073 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18074 * math/Makefile (type-double-routines): Remove slowexp.
18075 * manual/probes.texi (slowexp_p6): Remove.
18076 (slowexp_p32): Likewise.
18077
18078 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18079 James Clarke <jrtc27@jrtc27.com>
18080
18081 [BZ #22603]
18082 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18083 addition.
18084
18085 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18086
18087 [BZ #22605]
18088 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18089 code.
18090
18091 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18092
18093 [BZ #22563]
18094 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18095 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18096 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18097 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18098 to feature_1.
18099
18100 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18101
18102 [BZ #22563]
18103 * bits/types/__cancel_jmp_buf_tag.h: New file.
18104 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18105 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18106 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18107 * nptl/Makefile (headers): Add
18108 bits/types/__cancel_jmp_buf_tag.h.
18109 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18110 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18111 * sysdeps/nptl/pthread.h: Include
18112 <bits/types/__cancel_jmp_buf_tag.h>.
18113 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18114 __cancel_jmp_buf.
18115 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18116
18117 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18118
18119 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18120 --enable-static-pie variants to x86_64, x32 and i686.
18121
18122 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18123
18124 [BZ #22631]
18125 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18126 argument for attrubutes. All callers changed.
18127 (__inline_mathop1): Likewise. All callers changed.
18128 (__inline_mathop): Likewise. All callers changed.
18129 [__USE_MISC] (scalbn): Use __inline_forward instead of
18130 __inline_forward_c.
18131 [__USE_ISOC99] (scalbln): Likewise.
18132 [__USE_ISOC99] (nearbyint): Likewise.
18133 [__USE_ISOC99] (lrint): Likewise.
18134 [__USE_MISC] (scalbnf): Likewise.
18135 [__USE_ISOC99] (scalblnf): Likewise.
18136 [__USE_ISOC99] (nearbyintf): Likewise.
18137 [__USE_ISOC99] (lrintf): Likewise.
18138 [__USE_MISC] (scalbnl): Likewise.
18139 [__USE_ISOC99] (scalblnl): Likewise.
18140 [__USE_ISOC99] (nearbyintl): Likewise.
18141 [__USE_ISOC99] (lrintl): Likewise.
18142 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18143 __inline_mathop and __m81_defun changed.
18144
18145 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18146 CPU or FPU for ARM hard-float configurations.
18147
18148 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18149
18150 * nptl/tst-attr3.c: Include <libc-diag.h>.
18151 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18152
18153 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18154
18155 * string/tester.c (test_strncat): Also disable -Warray-bounds
18156 warnings for two tests.
18157
18158 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18159
18160 [BZ #22614]
18161 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18162 $(cc-pie-default) == yes.
18163 * config.make.in (cc-pie-default): New.
18164 * configure.ac (libc_cv_pie_default): Renamed to ...
18165 (libc_cv_cc_pie_default): This.
18166 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18167 * configure: Regenerated.
18168
18169 2017-12-18 Florian Weimer <fweimer@redhat.com>
18170
18171 [BZ #20204]
18172 ld.so: Harden dl-libc/libdl hooks.
18173 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18174 (rtld_active): New function.
18175 * dlfcn/dladdr.c (__dladdr): Call it.
18176 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18177 * dlfcn/dlclose.c (__dlcose): Likewise.
18178 * dlfcn/dlerror.c (__dlerror): Likewise.
18179 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18180 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18181 * dlfcn/dlopen.c (__dlopen): Likewise.
18182 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18183 * dlfcn/dlsym.c (__dlsym): Likewise.
18184 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18185 * libio/vtables.c (_IO_vtable_check): Likewise.
18186 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18187 (__libc_dlclose): Likewise.
18188 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18189 assignment.
18190
18191 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18192
18193 [BZ #22446]
18194 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18195 buffers for readlink input and output.
18196
18197 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18198
18199 [BZ #22624]
18200 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18201 inhibit_stack_protector.
18202
18203 [BZ #22624]
18204 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18205 inhibit_stack_protector.
18206
18207 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18208
18209 [BZ #22627]
18210 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18211 code and invocation.
18212
18213 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18214
18215 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18216
18217 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18218
18219 [BZ #22505]
18220 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18221
18222 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18223
18224 * sysdeps/s390/fpu/libm-test-ulps: Update.
18225
18226 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18227
18228 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18229
18230 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18231
18232 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18233 constants to s_sincosf.h file.
18234 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18235 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18236 implementation.
18237 * sysdeps/ieee754/flt-32/s_sincosf.h:
18238 New file.
18239
18240 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18241
18242 [BZ #14681]
18243 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18244 before mtrace.
18245
18246 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18247
18248 [BZ #19574]
18249 * INSTALL: Regenerated.
18250 * Makeconfig (real-static-start-installed-name): New.
18251 (pic-default): Updated for --enable-static-pie.
18252 (pie-default): New for --enable-static-pie.
18253 (default-pie-ldflag): Likewise.
18254 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18255 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18256 Replace $(static-start-installed-name) with
18257 $(real-static-start-installed-name).
18258 (+prectorT): Updated for --enable-static-pie.
18259 (+postctorT): Likewise.
18260 (CFLAGS-.o): Add $(pie-default).
18261 (CFLAGS-.op): Likewise.
18262 * NEWS: Mention --enable-static-pie.
18263 * config.h.in (ENABLE_STATIC_PIE): New.
18264 * configure.ac (--enable-static-pie): New configure option.
18265 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18266 (have-static-pie): Likewise.
18267 Enable static PIE if linker supports --no-dynamic-linker.
18268 (ENABLE_STATIC_PIE): New AC_DEFINE.
18269 (enable-static-pie): New LIBC_CONFIG_VAR.
18270 * configure: Regenerated.
18271 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18272 gr$(start-installed-name) for --enable-static-pie.
18273 (extra-objs): Likewise.
18274 (install-lib): Likewise.
18275 (extra-objs): Add static-reloc.o and static-reloc.os
18276 ($(objpfx)$(start-installed-name)): Also depend on
18277 $(objpfx)static-reloc.o.
18278 ($(objpfx)r$(start-installed-name)): New.
18279 ($(objpfx)g$(start-installed-name)): Also depend on
18280 $(objpfx)static-reloc.os.
18281 ($(objpfx)gr$(start-installed-name)): New.
18282 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18283 in libc.a.
18284 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18285 initimage.
18286 * csu/static-reloc.c: New file.
18287 * elf/Makefile (routines): Add dl-reloc-static-pie.
18288 (elide-routines.os): Likewise.
18289 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18290 (tst-tls1-static-non-pie-no-pie): New.
18291 * elf/dl-reloc-static-pie.c: New file.
18292 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18293 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18294 STATIC_PIE_BOOTSTRAP.
18295 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18296 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18297 (tests-static): Likewise.
18298 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18299 (tst-gmon-static-no-pie): New.
18300 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18301 (CRT-tst-gmon-static-pie): Likewise.
18302 (tst-gmon-static-pie-ENV): Likewise.
18303 (tests-special): Likewise.
18304 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18305 (clean-tst-gmon-static-pie-data): Likewise.
18306 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18307 * gmon/tst-gmon-static-pie.c: New file.
18308 * manual/install.texi: Document --enable-static-pie.
18309 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18310 (_dl_get_dl_main_map): Likewise.
18311 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18312 * sysdeps/x86_64/configure.ac: Likewise.
18313 * sysdeps/i386/configure: Regenerated.
18314 * sysdeps/x86_64/configure: Likewise.
18315 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18316 (ASFLAGS-.op): Likewise.
18317
18318 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18319
18320 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18321 * posix/tst-mmap-offset.c (fname): Use /tmp.
18322 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18323
18324 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18325
18326 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18327
18328 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18329
18330 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18331 errno.
18332
18333 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18334
18335 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18336 --with-float=hard for arm-linux-gnueabihf configurations.
18337
18338 [BZ #14121]
18339 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18340 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18341 ($(mo-installed)): Use $(objpfx)%.mo.
18342 (realclean): Remove rule.
18343
18344 * po/Makefile (linguas): Remove rule and dependencies.
18345 (linguas.mo): Likewise.
18346 (.PHONY): Do not depend on linguas and linguas.mo.
18347 (podir): Remove variable.
18348 (pofiles): Likewise.
18349 [$(pofiles)] (%.po): Remove rule.
18350
18351 * sysdeps/sparc/sparc32/Makefile
18352 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18353 start-of-line whitespace in argument of echo.
18354 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18355 with whitespace. Generate __wrap_.udiv alias.
18356 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18357 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18358 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18359 * sysdeps/sparc/sparc32/urem.S: Likewise.
18360
18361 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18362
18363 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18364 for aligned inputs.
18365
18366 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18367
18368 * benchtests/bench-strcmp.c: Print output in JSON format.
18369
18370 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18371
18372 2017-12-14 Florian Weimer <fweimer@redhat.com>
18373
18374 [BZ #22607]
18375 CVE-2017-1000409
18376 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18377 the expanded path string.
18378
18379 2017-12-14 Florian Weimer <fweimer@redhat.com>
18380
18381 [BZ #22606]
18382 CVE-2017-1000408
18383 * elf/dl-load.c (system_dirs): Update comment.
18384 (nsystem_dirs_len): Use array_length.
18385 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18386
18387 2017-12-14 Florian Weimer <fweimer@redhat.com>
18388
18389 Simplify compiling most of support/ outside of glibc.
18390 * support/check_addrinfo.c: Include <string.h>.
18391 * support/check_dns_packet.c: Likewise.
18392 * support/check_hostent.c: Likewise.
18393 * support/support_can_chroot.c: Include <support/xunistd.h>.
18394 * support/support_format_addrinfo.c: Include <stdlib.h>
18395 * support/support_format_dns_packet.c: Include <stdbool.h>.
18396 * support/support_format_hostent.c: Include <stdlib.h>.
18397 * support/support_format_netent.c: Likewise.
18398 * support/support_write_string.c: Include <support/xunistd.h>.
18399 * support/xdlfcn.c: Include <stddef.h>.
18400
18401 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18402
18403 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18404
18405 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18406 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18407
18408 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18409 (sysdeps_routines): Add memset-niagara7.
18410 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18411 Likewise.
18412 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18413 file.
18414 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18415 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18416 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18417 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18418 Add niagara7 option.
18419 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18420 memset.
18421
18422 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18423 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18424 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18425 Likewise.
18426 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18427 New file.
18428 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18429 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18430 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18431 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18432 and __memmove_niagara7.
18433 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18434 Add niagara7 option.
18435 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18436 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18437 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18438 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18439 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18440
18441 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18442
18443 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18444 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18445 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18446 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18447
18448 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18449 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18450 _dl_sparc_cap_flags array.
18451 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18452
18453 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18454
18455 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18456 time whenever possible.
18457
18458 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18459
18460 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18461 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18462
18463 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18464
18465 * soft-fp/fmadf4.c: Move to ....
18466 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18467 * soft-fp/fmasf4.c: Move to ....
18468 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18469 * soft-fp/fmatf4.c: Move to ....
18470 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18471 * sysdeps/ieee754/soft-fp/Makefile: New file.
18472 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18473 * sysdeps/arm/preconfigure: Regenerated.
18474 * sysdeps/arm/nofpu/Implies: New file.
18475 * sysdeps/arm/s_fma.c: Remove file.
18476 * sysdeps/arm/s_fmaf.c: Likewise.
18477 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18478 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18479 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18480 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18481 * sysdeps/microblaze/s_fma.c: Remove file.
18482 * sysdeps/microblaze/s_fmaf.c: Likewise.
18483 * sysdeps/mips/mips32/nofpu/Implies: New file.
18484 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18485 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18486 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18487 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18488 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18489 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18490 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18491 implementation.
18492 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18493 * sysdeps/nios2/s_fma.c: Remove file.
18494 * sysdeps/nios2/s_fmaf.c: Likewise.
18495 * sysdeps/sh/nofpu/Implies: New file.
18496 * sysdeps/sh/s_fma.c: Remove file.
18497 * sysdeps/sh/s_fmaf.c: Likewise.
18498 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18499 * sysdeps/tile/s_fma.c: Remove file.
18500 * sysdeps/tile/s_fmaf.c: Likewise.
18501
18502 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18503
18504 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18505 Add s_cosf-sse2 and s_cosf-fma.
18506 (CFLAGS-s_cosf-fma.c): New.
18507 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18508 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18509 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18510
18511 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18512
18513 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18514
18515 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18516
18517 * libio/Makefile (tests): Add tst-bz22415.
18518 (tst-bz22415-ENV): New rule.
18519 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18520 (tests-special): Add tst-bz22415-mem.out.
18521 ($(objpfx)tst-bz22415-mem.out): New rule.
18522 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18523 in case of a successful seek operation.
18524 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18525 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18526 buffer is required.
18527 * libio/tst-bz22415.c: New test.
18528
18529 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18530
18531 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18532
18533 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18534 __IPC_64 to 0 to avoid IPC_64 being set.
18535
18536 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18537
18538 [BZ #22593]
18539 * math/bits/mathcalls.h (nextafter): Remove const.
18540 (nexttoward): Likewise.
18541
18542 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18543
18544 * configure.ac (--with-fp): Remove configure option.
18545 (with_fp_cond): New variable.
18546 (libc_cv_with_fp): New configure test. Use this variable instead
18547 of with_fp.
18548 * configure: Regenerated.
18549 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18550 * manual/install.texi (Configuring and compiling): Remove
18551 --without-fp.
18552 * INSTALL: Regenerated.
18553 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18554 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18555 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18556 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18557 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18558 use --without-fp to configure glibc.
18559
18560 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18561
18562 * manual/locale.texi (nl_langinfo): Fix a typo.
18563
18564 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18565
18566 [BZ #22588]
18567 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18568
18569 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18570
18571 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18572 (CFLAGS-argp-parse.c): Likewise.
18573 (CFLAGS-argp-fmtstream.c): Likewise.
18574 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18575 (CPPFLAGS-sha512-crypt.c): Likewise.
18576 (CPPFLAGS-md5-crypt.c): Likewise.
18577 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18578 (CFLAGS-stack_chk_fail_local.c): Likewise.
18579 (CFLAGS-backtrace.c): Likewise.
18580 (CFLAGS-sprintf_chk.c): Likewise.
18581 (CFLAGS-snprintf_chk.c): Likewise.
18582 (CFLAGS-vsprintf_chk.c): Likewise.
18583 (CFLAGS-vsnprintf_chk.c): Likewise.
18584 (CFLAGS-asprintf_chk.c): Likewise.
18585 (CFLAGS-vasprintf_chk.c): Likewise.
18586 (CFLAGS-obprintf_chk.c): Likewise.
18587 (CFLAGS-dprintf_chk.c): Likewise.
18588 (CFLAGS-vdprintf_chk.c): Likewise.
18589 (CFLAGS-printf_chk.c): Likewise.
18590 (CFLAGS-fprintf_chk.c): Likewise.
18591 (CFLAGS-vprintf_chk.c): Likewise.
18592 (CFLAGS-vfprintf_chk.c): Likewise.
18593 (CFLAGS-gets_chk.c): Likewise.
18594 (CFLAGS-fgets_chk.c): Likewise.
18595 (CFLAGS-fgets_u_chk.c): Likewise.
18596 (CFLAGS-fread_chk.c): Likewise.
18597 (CFLAGS-fread_u_chk.c): Likewise.
18598 (CFLAGS-swprintf_chk.c): Likewise.
18599 (CFLAGS-vswprintf_chk.c): Likewise.
18600 (CFLAGS-wprintf_chk.c): Likewise.
18601 (CFLAGS-fwprintf_chk.c): Likewise.
18602 (CFLAGS-vwprintf_chk.c): Likewise.
18603 (CFLAGS-vfwprintf_chk.c): Likewise.
18604 (CFLAGS-fgetws_chk.c): Likewise.
18605 (CFLAGS-fgetws_u_chk.c): Likewise.
18606 (CFLAGS-read_chk.c): Likewise.
18607 (CFLAGS-pread_chk.c): Likewise.
18608 (CFLAGS-pread64_chk.c): Likewise.
18609 (CFLAGS-recv_chk.c): Likewise.
18610 (CFLAGS-recvfrom_chk.c): Likewise.
18611 (CFLAGS-tst-longjmp_chk.c): Likewise.
18612 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18613 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18614 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18615 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18616 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18617 (CFLAGS-tst-chk1.c): Likewise.
18618 (CFLAGS-tst-chk2.c): Likewise.
18619 (CFLAGS-tst-chk3.c): Likewise.
18620 (CFLAGS-tst-chk4.cc): Likewise.
18621 (CFLAGS-tst-chk5.cc): Likewise.
18622 (CFLAGS-tst-chk6.cc): Likewise.
18623 (CFLAGS-tst-lfschk1.c): Likewise.
18624 (CFLAGS-tst-lfschk2.c): Likewise.
18625 (CFLAGS-tst-lfschk3.c): Likewise.
18626 (CFLAGS-tst-lfschk4.cc): Likewise.
18627 (CFLAGS-tst-lfschk5.cc): Likewise.
18628 (CFLAGS-tst-lfschk6.cc): Likewise.
18629 (CFLAGS-tst-ssp-1.c): Likewise.
18630 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18631 (CFLAGS-scandir64.c): Likewise.
18632 (CFLAGS-scandir-tail.c): Likewise.
18633 (CFLAGS-scandir64-tail.c): Likewise.
18634 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18635 (CFLAGS-dl-tunables.c): Likewise.
18636 (CFLAGS-dl-runtime.c): Likewise.
18637 (CFLAGS-dl-lookup.c): Likewise.
18638 (CFLAGS-dl-iterate-phdr.c): Likewise.
18639 (CFLAGS-vismain.c): Likewise.
18640 (CFLAGS-tst-linkall-static.c): Likewise.
18641 (CFLAGS-tst-linkall-static.c): Likewise.
18642 (CPPFLAGS-dl-load.c): Likewise.
18643 (CFLAGS-ldconfig.c): Likewise.
18644 (CFLAGS-dl-cache.c): Likewise.
18645 (CFLAGS-cache.c): Likewise.
18646 (CFLAGS-rtld.c): Likewise.
18647 (CFLAGS-multiload.c): Likewise.
18648 (CFLAGS-filtmod1.c): Likewise.
18649 (CFLAGS-tst-align.c): Likewise.
18650 (CFLAGS-tst-align2.c): Likewise.
18651 (CFLAGS-tst-alignmod.c): Likewise.
18652 (CFLAGS-tst-alignmod2.c): Likewise.
18653 (CPPFLAGS-tst-execstack.c): Likewise.
18654 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18655 (CFLAGS-tst-latepthreadmod.c): Likewise.
18656 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18657 (CFLAGS-getgrnam_r.c): Likewise.
18658 (CFLAGS-getgrent_r.c): Likewise.
18659 (CFLAGS-getgrent.c): Likewise.
18660 (CFLAGS-fgetgrent.c): Likewise.
18661 (CFLAGS-fgetgrent_r.c): Likewise.
18662 (CFLAGS-putgrent.c): Likewise.
18663 (CFLAGS-initgroups.c): Likewise.
18664 (CFLAGS-getgrgid.c): Likewise.
18665 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18666 (CFLAGS-getsgent.c): Likewise.
18667 (CFLAGS-fgetsgent.c): Likewise.
18668 (CFLAGS-fgetsgent_r.c): Likewise.
18669 (CFLAGS-putsgent.c): Likewise.
18670 (CFLAGS-getsgnam.c): Likewise.
18671 (CFLAGS-getsgnam_r.c): Likewise.
18672 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18673 (CFLAGS-iconv_charmap.c): Likewise.
18674 (CFLAGS-dummy-repertoire.c): Likewise.
18675 (CFLAGS-charmap.c): Likewise.
18676 (CFLAGS-linereader.c): Likewise.
18677 (CFLAGS-simple-hash.c): Likewise.
18678 (CFLAGS-gconv_conf.c): Likewise.
18679 (CFLAGS-iconvconfig.c): Likewise.
18680 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18681 (CFLAGS-gethstbyad.c): Likewise.
18682 (CFLAGS-gethstbynm_r.c): Likewise.
18683 (CFLAGS-gethstbynm.c): Likewise.
18684 (CFLAGS-gethstbynm2_r.c): Likewise.
18685 (CFLAGS-gethstbynm2.c): Likewise.
18686 (CFLAGS-gethstent_r.c): Likewise.
18687 (CFLAGS-gethstent.c): Likewise.
18688 (CFLAGS-rcmd.c): Likewise.
18689 (CFLAGS-getnetbynm_r.c): Likewise.
18690 (CFLAGS-getnetbynm.c): Likewise.
18691 (CFLAGS-getnetbyad_r.c): Likewise.
18692 (CFLAGS-getnetbyad.c): Likewise.
18693 (CFLAGS-getnetent_r.c): Likewise.
18694 (CFLAGS-getnetent.c): Likewise.
18695 (CFLAGS-getaliasent_r.c): Likewise.
18696 (CFLAGS-getaliasent.c): Likewise.
18697 (CFLAGS-getrpcent_r.c): Likewise.
18698 (CFLAGS-getrpcent.c): Likewise.
18699 (CFLAGS-getservent_r.c): Likewise.
18700 (CFLAGS-getservent.c): Likewise.
18701 (CFLAGS-getprtent_r.c): Likewise.
18702 (CFLAGS-getprtent.c): Likewise.
18703 (CFLAGS-either_ntoh.c): Likewise.
18704 (CFLAGS-either_hton.c): Likewise.
18705 (CFLAGS-getnetgrent.c): Likewise.
18706 (CFLAGS-getnetgrent_r.c): Likewise.
18707 (CFLAGS-tst-checks-posix.c): Likewise.
18708 (CFLAGS-tst-sockaddr.c): Likewise.
18709 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18710 (CFLAGS-tst-translit.c): Likewise.
18711 (CFLAGS-tst-gettext2.c): Likewise.
18712 (CFLAGS-tst-codeset.c): Likewise.
18713 (CFLAGS-tst-gettext3.c): Likewise.
18714 (CFLAGS-tst-gettext4.c): Likewise.
18715 (CFLAGS-tst-gettext5.c): Likewise.
18716 (CFLAGS-tst-gettext6.c): Likewise.
18717 * io/Makefile (CFLAGS-open.c): Likewise.
18718 (CFLAGS-open64.c): Likewise.
18719 (CFLAGS-creat.c): Likewise.
18720 (CFLAGS-creat64.c): Likewise.
18721 (CFLAGS-fcntl.c): Likewise.
18722 (CFLAGS-poll.c): Likewise.
18723 (CFLAGS-ppoll.c): Likewise.
18724 (CFLAGS-lockf.c): Likewise.
18725 (CFLAGS-statfs.c): Likewise.
18726 (CFLAGS-fstatfs.c): Likewise.
18727 (CFLAGS-statvfs.c): Likewise.
18728 (CFLAGS-fstatvfs.c): Likewise.
18729 (CFLAGS-fts.c): Likewise.
18730 (CFLAGS-fts64.c): Likewise.
18731 (CFLAGS-ftw.c): Likewise.
18732 (CFLAGS-ftw64.c): Likewise.
18733 (CFLAGS-lockf.c): Likewise.
18734 (CFLAGS-posix_fallocate.c): Likewise.
18735 (CFLAGS-posix_fallocate64.c): Likewise.
18736 (CFLAGS-fallocate.c): Likewise.
18737 (CFLAGS-fallocate64.c): Likewise.
18738 (CFLAGS-read.c): Likewise.
18739 (CFLAGS-write.c): Likewise.
18740 (CFLAGS-test-stat.c): Likewise.
18741 (CFLAGS-test-lfs.c): Likewise.
18742 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18743 (CFLAGS-fputc.c): Likewise.
18744 (CFLAGS-fputwc.c): Likewise.
18745 (CFLAGS-freopen64.c): Likewise.
18746 (CFLAGS-freopen.c): Likewise.
18747 (CFLAGS-fseek.c): Likewise.
18748 (CFLAGS-fseeko64.c): Likewise.
18749 (CFLAGS-fseeko.c): Likewise.
18750 (CFLAGS-ftello64.c): Likewise.
18751 (CFLAGS-ftello.c): Likewise.
18752 (CFLAGS-fwide.c): Likewise.
18753 (CFLAGS-genops.c): Likewise.
18754 (CFLAGS-getc.c): Likewise.
18755 (CFLAGS-getchar.c): Likewise.
18756 (CFLAGS-getwc.c): Likewise.
18757 (CFLAGS-getwchar.c): Likewise.
18758 (CFLAGS-iofclose.c): Likewise.
18759 (CFLAGS-iofflush.c): Likewise.
18760 (CFLAGS-iofgetpos64.c): Likewise.
18761 (CFLAGS-iofgetpos.c): Likewise.
18762 (CFLAGS-iofgets.c): Likewise.
18763 (CFLAGS-iofgetws.c): Likewise.
18764 (CFLAGS-iofputs.c): Likewise.
18765 (CFLAGS-iofputws.c): Likewise.
18766 (CFLAGS-iofread.c): Likewise.
18767 (CFLAGS-iofsetpos64.c): Likewise.
18768 (CFLAGS-iofsetpos.c): Likewise.
18769 (CFLAGS-ioftell.c): Likewise.
18770 (CFLAGS-iofwrite.c): Likewise.
18771 (CFLAGS-iogetdelim.c): Likewise.
18772 (CFLAGS-iogetline.c): Likewise.
18773 (CFLAGS-iogets.c): Likewise.
18774 (CFLAGS-iogetwline.c): Likewise.
18775 (CFLAGS-ioputs.c): Likewise.
18776 (CFLAGS-ioseekoff.c): Likewise.
18777 (CFLAGS-ioseekpos.c): Likewise.
18778 (CFLAGS-iosetbuffer.c): Likewise.
18779 (CFLAGS-iosetvbuf.c): Likewise.
18780 (CFLAGS-ioungetc.c): Likewise.
18781 (CFLAGS-ioungetwc.c): Likewise.
18782 (CFLAGS-oldfileops.c): Likewise.
18783 (CFLAGS-oldiofclose.c): Likewise.
18784 (CFLAGS-oldiofgetpos64.c): Likewise.
18785 (CFLAGS-oldiofgetpos.c): Likewise.
18786 (CFLAGS-oldiofsetpos64.c): Likewise.
18787 (CFLAGS-oldiofsetpos.c): Likewise.
18788 (CFLAGS-peekc.c): Likewise.
18789 (CFLAGS-putc.c): Likewise.
18790 (CFLAGS-putchar.c): Likewise.
18791 (CFLAGS-putwc.c): Likewise.
18792 (CFLAGS-putwchar.c): Likewise.
18793 (CFLAGS-rewind.c): Likewise.
18794 (CFLAGS-wfileops.c): Likewise.
18795 (CFLAGS-wgenops.c): Likewise.
18796 (CFLAGS-oldiofopen.c): Likewise.
18797 (CFLAGS-iofopen.c): Likewise.
18798 (CFLAGS-iofopen64.c): Likewise.
18799 (CFLAGS-oldtmpfile.c): Likewise.
18800 (CFLAGS-tst_putwc.c): Likewise.
18801 * locale/Makefile (CFLAGS-md5.c): Likewise.
18802 (CFLAGS-charmap.c): Likewise.
18803 (CFLAGS-locfile.c): Likewise.
18804 (CFLAGS-charmap-dir.c): Likewise.
18805 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18806 (CFLAGS-getpt.c): Likewise.
18807 (CFLAGS-pt_chown.c): Likewise.
18808 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18809 (CFLAGS-obstack.c): Likewise.
18810 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18811 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18812 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18813 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18814 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18815 (CFLAGS-test-tgmath.c): Likewise.
18816 (CFLAGS-test-tgmath2.c): Likewise.
18817 (CFLAGS-test-tgmath-ret.c): Likewise.
18818 (CFLAGS-test-powl.c): Likewise.
18819 (CFLAGS-test-snan.c): Likewise.
18820 (CFLAGS-test-signgam-finite.c): Likewise.
18821 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18822 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18823 (CFLAGS-test-signgam-uchar.c): Likewise.
18824 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18825 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18826 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18827 (CFLAGS-test-signgam-uint.c): Likewise.
18828 (CFLAGS-test-signgam-uint-init.c): Likewise.
18829 (CFLAGS-test-signgam-uint-static.c): Likewise.
18830 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18831 (CFLAGS-test-signgam-ullong.c): Likewise.
18832 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18833 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18834 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18835 (CFLAGS-test-math-cxx11.cc): Likewise.
18836 (CFLAGS-test-math-isinff.cc): Likewise.
18837 (CFLAGS-test-math-iszero.cc): Likewise.
18838 (CFLAGS-test-math-issignaling.cc): Likewise.
18839 (CFLAGS-test-math-iscanonical.cc): Likewise.
18840 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18841 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18842 (CFLAGS-test-flt-eval-method.c): Likewise.
18843 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18844 (CFLAGS-test-finite-macros.c): Likewise.
18845 * misc/Makefile (CFLAGS-select.c): Likewise.
18846 (CFLAGS-tsearch.c): Likewise.
18847 (CFLAGS-lsearch.c): Likewise.
18848 (CFLAGS-pselect.c): Likewise.
18849 (CFLAGS-readv.c): Likewise.
18850 (CFLAGS-writev.c): Likewise.
18851 (CFLAGS-preadv.c): Likewise.
18852 (CFLAGS-preadv64.c): Likewise.
18853 (CFLAGS-pwritev.c): Likewise.
18854 (CFLAGS-pwritev64.c): Likewise.
18855 (CFLAGS-preadv2.c): Likewise.
18856 (CFLAGS-preadv64v2.c): Likewise.
18857 (CFLAGS-pwritev2.c): Likewise.
18858 (CFLAGS-pwritev64v2.c): Likewise.
18859 (CFLAGS-usleep.c): Likewise.
18860 (CFLAGS-syslog.c): Likewise.
18861 (CFLAGS-error.c): Likewise.
18862 (CFLAGS-getpass.c): Likewise.
18863 (CFLAGS-mkstemp.c): Likewise.
18864 (CFLAGS-mkstemp64.c): Likewise.
18865 (CFLAGS-getsysstats.c): Likewise.
18866 (CFLAGS-getusershell.c): Likewise.
18867 (CFLAGS-err.c): Likewise.
18868 (CFLAGS-tst-tsearch.c): Likewise.
18869 (CFLAGS-msync.c): Likewise.
18870 (CFLAGS-fdatasync.c): Likewise.
18871 (CFLAGS-fsync.c): Likewise.
18872 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18873 (CFLAGS-unwind.c): Likewise.
18874 (CFLAGS-unwind-forcedunwind.c): Likewise.
18875 (CFLAGS-pthread_cancel.c): Likewise.
18876 (CFLAGS-pthread_setcancelstate.c): Likewise.
18877 (CFLAGS-pthread_setcanceltype.c): Likewise.
18878 (CFLAGS-cancellation.c): Likewise.
18879 (CFLAGS-libc-cancellation.c): Likewise.
18880 (CFLAGS-pthread_exit.c): Likewise.
18881 (CFLAGS-forward.c): Likewise.
18882 (CFLAGS-pthread_testcancel.c): Likewise.
18883 (CFLAGS-pthread_join.c): Likewise.
18884 (CFLAGS-pthread_timedjoin.c): Likewise.
18885 (CFLAGS-pthread_once.c): Likewise.
18886 (CFLAGS-pthread_cond_wait.c): Likewise.
18887 (CFLAGS-sem_wait.c): Likewise.
18888 (CFLAGS-sem_timedwait.c): Likewise.
18889 (CFLAGS-fcntl.c): Likewise.
18890 (CFLAGS-lockf.c): Likewise.
18891 (CFLAGS-pread.c): Likewise.
18892 (CFLAGS-pread64.c): Likewise.
18893 (CFLAGS-pwrite.c): Likewise.
18894 (CFLAGS-pwrite64.c): Likewise.
18895 (CFLAGS-wait.c): Likewise.
18896 (CFLAGS-waitpid.c): Likewise.
18897 (CFLAGS-sigwait.c): Likewise.
18898 (CFLAGS-msgrcv.c): Likewise.
18899 (CFLAGS-msgsnd.c): Likewise.
18900 (CFLAGS-tcdrain.c): Likewise.
18901 (CFLAGS-open.c): Likewise.
18902 (CFLAGS-open64.c): Likewise.
18903 (CFLAGS-pause.c): Likewise.
18904 (CFLAGS-recv.c): Likewise.
18905 (CFLAGS-send.c): Likewise.
18906 (CFLAGS-accept.c): Likewise.
18907 (CFLAGS-sendto.c): Likewise.
18908 (CFLAGS-connect.c): Likewise.
18909 (CFLAGS-recvfrom.c): Likewise.
18910 (CFLAGS-recvmsg.c): Likewise.
18911 (CFLAGS-sendmsg.c): Likewise.
18912 (CFLAGS-close.c): Likewise.
18913 (CFLAGS-read.c): Likewise.
18914 (CFLAGS-write.c): Likewise.
18915 (CFLAGS-nanosleep.c): Likewise.
18916 (CFLAGS-sigsuspend.c): Likewise.
18917 (CFLAGS-msync.c): Likewise.
18918 (CFLAGS-fdatasync.c): Likewise.
18919 (CFLAGS-fsync.c): Likewise.
18920 (CFLAGS-pt-system.c): Likewise.
18921 (CFLAGS-tst-cleanup2.c): Likewise.
18922 (CFLAGS-tst-cleanupx2.c): Likewise.
18923 (CFLAGS-flockfile.c): Likewise.
18924 (CFLAGS-ftrylockfile.c): Likewise.
18925 (CFLAGS-funlockfile.c): Likewise.
18926 (CFLAGS-tst-initializers1.c): Likewise.
18927 (CFLAGS-tst-initializers1-c89.c): Likewise.
18928 (CFLAGS-tst-initializers1-c99.c): Likewise.
18929 (CFLAGS-tst-initializers1-c11.c): Likewise.
18930 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18931 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18932 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18933 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18934 (CFLAGS-nscd_getgr_r.c): Likewise.
18935 (CFLAGS-nscd_gethst_r.c): Likewise.
18936 (CFLAGS-nscd_getai.c): Likewise.
18937 (CFLAGS-nscd_initgroups.c): Likewise.
18938 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18939 (CFLAGS-pause.c): Likewise.
18940 (CFLAGS-pread.c): Likewise.
18941 (CFLAGS-pread64.c): Likewise.
18942 (CFLAGS-pwrite.c): Likewise.
18943 (CFLAGS-pwrite64.c): Likewise.
18944 (CFLAGS-sleep.c): Likewise.
18945 (CFLAGS-wait.c): Likewise.
18946 (CFLAGS-waitid.c): Likewise.
18947 (CFLAGS-waitpid.c): Likewise.
18948 (CFLAGS-getopt.c): Likewise.
18949 (CFLAGS-wordexp.c): Likewise.
18950 (CFLAGS-sysconf.c): Likewise.
18951 (CFLAGS-pathconf.c): Likewise.
18952 (CFLAGS-fpathconf.c): Likewise.
18953 (CFLAGS-spawn.c): Likewise.
18954 (CFLAGS-spawnp.c): Likewise.
18955 (CFLAGS-spawni.c): Likewise.
18956 (CFLAGS-glob.c): Likewise.
18957 (CFLAGS-glob64.c): Likewise.
18958 (CFLAGS-getconf.c): Likewise.
18959 (CFLAGS-nanosleep.c): Likewise.
18960 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18961 (CFLAGS-getpwent.c): Likewise.
18962 (CFLAGS-getpw.c): Likewise.
18963 (CFLAGS-fgetpwent_r.c): Likewise.
18964 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18965 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18966 (CFLAGS-mq_timedreceive.c): Likewise.
18967 (CFLAGS-mq_timedsend.c): Likewise.
18968 (CFLAGS-clock_nanosleep.c): Likewise.
18969 (CFLAGS-librt-cancellation.c): Likewise.
18970 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18971 (CFLAGS-getspent.c): Likewise.
18972 (CFLAGS-fgetspent.c): Likewise.
18973 (CFLAGS-fgetspent_r.c): Likewise.
18974 (CFLAGS-putspent.c): Likewise.
18975 (CFLAGS-getspnam.c): Likewise.
18976 (CFLAGS-getspnam_r.c): Likewise.
18977 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18978 (CFLAGS-sigsuspend.c): Likewise.
18979 (CFLAGS-sigtimedwait.c): Likewise.
18980 (CFLAGS-sigwait.c): Likewise.
18981 (CFLAGS-sigwaitinfo.c): Likewise.
18982 (CFLAGS-sigreturn.c): Likewise.
18983 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18984 (CFLAGS-vfwprintf.c): Likewise.
18985 (CFLAGS-tmpfile.c): Likewise.
18986 (CFLAGS-tmpfile64.c): Likewise.
18987 (CFLAGS-tempname.c): Likewise.
18988 (CFLAGS-psignal.c): Likewise.
18989 (CFLAGS-vprintf.c): Likewise.
18990 (CFLAGS-cuserid.c): Likewise.
18991 (CFLAGS-errlist.c): Likewise.
18992 (CFLAGS-siglist.c): Likewise.
18993 (CFLAGS-scanf15.c): Likewise.
18994 (CFLAGS-scanf17.c): Likewise.
18995 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18996 (CFLAGS-msort.c): Likewise.
18997 (CFLAGS-qsort.c): Likewise.
18998 (CFLAGS-system.c): Likewise.
18999 (CFLAGS-fmtmsg.c): Likewise.
19000 (CFLAGS-strfmon.c): Likewise.
19001 (CFLAGS-strfmon_l.c): Likewise.
19002 (CFLAGS-strfromd.c): Likewise.
19003 (CFLAGS-strfromf.c): Likewise.
19004 (CFLAGS-strfroml.c): Likewise.
19005 (CFLAGS-tst-bsearch.c): Likewise.
19006 (CFLAGS-tst-qsort.c): Likewise.
19007 (CFLAGS-tst-makecontext2.c): Likewise.
19008 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19009 (CFLAGS-xnlm_prot.c): Likewise.
19010 (CFLAGS-xrstat.c): Likewise.
19011 (CFLAGS-xyppasswd.c): Likewise.
19012 (CFLAGS-xklm_prot.c): Likewise.
19013 (CFLAGS-xrex.c): Likewise.
19014 (CFLAGS-xsm_inter.c): Likewise.
19015 (CFLAGS-xmount.c): Likewise.
19016 (CFLAGS-xrusers.c): Likewise.
19017 (CFLAGS-xspray.c): Likewise.
19018 (CFLAGS-xnfs_prot.c): Likewise.
19019 (CFLAGS-xrquota.c): Likewise.
19020 (CFLAGS-xkey_prot.c): Likewise.
19021 (CFLAGS-auth_unix.c): Likewise.
19022 (CFLAGS-key_call.c): Likewise.
19023 (CFLAGS-pmap_rmt.c): Likewise.
19024 (CFLAGS-clnt_perr.c): Likewise.
19025 (CFLAGS-openchild.c): Likewise.
19026 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19027 (CFLAGS-msgsnd.c): Likewise.
19028 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19029 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19030 (CFLAGS-tzset.c): Likewise.
19031 (CFLAGS-getdate.c): Likewise.
19032 (CFLAGS-test_time.c): Likewise.
19033 (CPPFLAGS-tst-tzname.c): Likewise.
19034 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19035 (CFLAGS-zic.c): Likewise.
19036 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19037 (CFLAGS-wcswidth.c): Likewise.
19038 (CFLAGS-wcstol.c): Likewise.
19039 (CFLAGS-wcstoul.c): Likewise.
19040 (CFLAGS-wcstoll.c): Likewise.
19041 (CFLAGS-wcstoull.c): Likewise.
19042 (CFLAGS-wcstod.c): Likewise.
19043 (CFLAGS-wcstold.c): Likewise.
19044 (CFLAGS-wcstof128.c): Likewise.
19045 (CFLAGS-wcstof.c): Likewise.
19046 (CFLAGS-wcstol_l.c): Likewise.
19047 (CFLAGS-wcstoul_l.c): Likewise.
19048 (CFLAGS-wcstoll_l.c): Likewise.
19049 (CFLAGS-wcstoull_l.c): Likewise.
19050 (CFLAGS-wcstod_l.c): Likewise.
19051 (CFLAGS-wcstold_l.c): Likewise.
19052 (CFLAGS-wcstof128_l.c): Likewise.
19053 (CFLAGS-wcstof_l.c): Likewise.
19054 (CPPFLAGS-tst-wchar-h.c): Likewise.
19055 (CPPFLAGS-wcstold_l.c): Likewise.
19056
19057 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19058
19059 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19060
19061 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19062 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19063
19064 * manual/tunables.texi (Hardware Capability Tunables): Document
19065 glibc.tune.cached_memopt.
19066 * sysdeps/powerpc/cpu-features.c: New file.
19067 * sysdeps/powerpc/cpu-features.h: New file.
19068 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19069 _dl_powerpc_cpu_features.
19070 * sysdeps/powerpc/dl-tunables.list: New file.
19071 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19072 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19073 (INIT_ARCH): Initialize use_aligned_memopt.
19074 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19075 IS_IN(rtld))]: Restrict dl_platform_init availability and
19076 initialize CPU features used by tunables.
19077 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19078 Add memcpy-power8-cached.
19079 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19080 __memcpy_power8_cached.
19081 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19082 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19083 New file.
19084
19085 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19088 (CFLAGS-noinl-tester.c): Likewise.
19089 (CFLAGS-tst-strlen.c): Likewise.
19090 (CFLAGS-stratcliff.c): Likewise.
19091 (CFLAGS-test-ffs.c): Likewise.
19092 (CFLAGS-tst-inlcall.c): Likewise.
19093 (CFLAGS-tst-xbzero-opt.c): Likewise.
19094 (CFLAGS-memcpy.c): Likewise.
19095 (CFLAGS-wordcopy.c): Likewise.
19096
19097 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19098
19099 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19100 Store r15 on stack and add cfi rule.
19101 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19102 Likewise.
19103
19104 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19105
19106 [BZ #22577]
19107 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19108 call.
19109
19110 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19111
19112 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19113 Add s_sinf-sse2 and s_sinf-fma.
19114 (CFLAGS-s_sinf-fma.c): New.
19115 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19116 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19117 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19118
19119 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19120
19121 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19122
19123 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19124
19125 [BZ #22568]
19126 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19127 part of result to imaginary part of argument if it is zero and the
19128 real part of the argument is not finite.
19129 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19130 of result to real part of argument if it is zero and the imaginary
19131 part of the argument is not finite.
19132
19133 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19134
19135 [BZ #22524]
19136 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19137 and to the list of locales to be built for testing.
19138 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19139 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19140 and build the collation rules upon that.
19141
19142 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19143
19144 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19145 * manual/math.texi (Mathematics): Document support for _Float32.
19146 * math/Makefile (test-types): Add float32.
19147 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19148 * stdlib/Versions (GLIBC_2.27): Likewise.
19149 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19150 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19151 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19152 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19153 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19154 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19155 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19156 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19157 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19158 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19159 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19160 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19161 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19162 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19163 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19164 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19165 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19166 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19167 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19168 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19169 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19170 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19171 Likewise.
19172 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19173 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19174 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19175 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19176 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19178 Likewise.
19179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19180 Likewise.
19181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19182 Likewise.
19183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19184 Likewise.
19185
19186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19187 Likewise.
19188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19189 Likewise.
19190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19191 Likewise.
19192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19193 Likewise.
19194 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19195 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19196 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19197 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19198 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19199 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19200 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19201 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19202 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19203 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19204 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19205 Likewise.
19206 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19207 Likewise.
19208 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19209 Likewise.
19210 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19211 Likewise.
19212 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19213 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19214 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19215 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19216 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19217 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19218 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19219 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19220
19221 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19222
19223 * stdlib/strtof.c: Include <bits/floatn.h>
19224 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19225 and later undefine as macro. Define as weak alias if
19226 [!USE_WIDE_CHAR].
19227 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19228 and later undefine as macro. Define as weak alias if
19229 [USE_WIDE_CHAR].
19230 * stdlib/strtof_l.c: Include <bits/floatn.h>
19231 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19232 and later undefine as macro. Define as weak alias if
19233 [!USE_WIDE_CHAR].
19234 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19235 and later undefine as macro. Define as weak alias if
19236 [USE_WIDE_CHAR].
19237
19238 * stdlib/strfromf.c: Include <bits/floatn.h>.
19239 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19240 and later undefine as macro and define as weak alias.
19241
19242 * math/test-float32.h: New file.
19243
19244 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19245 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19246 (libm_alias_float_other_r): Create f32 alias.
19247 (libm_alias_float_r): Use semicolon before call to
19248 libm_alias_float_other_r.
19249
19250 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19251 second argument to libm_alias_float_other.
19252 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19253 second argument to libm_alias_float_other.
19254 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19255 argument to libm_alias_float_other.
19256
19257 [BZ #22561]
19258 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19259 real part of result for argument 0 + i * NaN.
19260 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19261 results for tests of 0 + i * NaN.
19262
19263 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19264
19265 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19266
19267 2017-12-06 David S. Miller <davem@davemloft.net>
19268
19269 * sysdeps/sparc/fpu/libm-test-ulps: Update
19270 exp_{downward,towardzero,upward} ulps.
19271
19272 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19273
19274 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19275 variables static.
19276
19277 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19278 (Y0_2D): Likewise.
19279 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19280 (Y0_2D): Likewise.
19281 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19282 (Y0_2D): Likewise.
19283 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19284 (Y0_2D): Likewise.
19285
19286 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19287
19288 [BZ #22515]
19289 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19290 and to the list of locales to be built for testing.
19291 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19292 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19293 and build the collation rules upon that.
19294
19295 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19296
19297 * NEWS: Add sinf to list of optimized functions.
19298
19299 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19300
19301 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19302 (__HAVE_FLOAT32X): Likewise.
19303 * manual/math.texi (Mathematics): Document support for _Float64
19304 and _Float32x.
19305 * math/Makefile (test-types): Add float64 and float32x.
19306 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19307 functions.
19308 * stdlib/Versions (GLIBC_2.27): Likewise.
19309 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19310 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19311 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19312 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19313 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19314 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19315 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19316 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19317 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19318 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19319 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19320 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19321 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19322 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19323 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19324 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19325 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19326 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19327 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19328 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19329 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19330 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19331 Likewise.
19332 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19333 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19334 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19335 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19336 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19338 Likewise.
19339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19340 Likewise.
19341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19342 Likewise.
19343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19344 Likewise.
19345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19346 Likewise.
19347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19348 Likewise.
19349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19350 Likewise.
19351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19352 Likewise.
19353 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19354 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19355 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19356 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19357 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19358 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19359 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19360 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19361 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19362 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19363 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19364 Likewise.
19365 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19366 Likewise.
19367 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19368 Likewise.
19369 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19370 Likewise.
19371 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19372 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19373 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19374 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19375 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19376 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19377 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19378 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19379
19380 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19381
19382 * bits/floatn-common.h: Include <bits/long-double.h>.
19383 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19384 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19385 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19386 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19387 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19388 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19389 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19390 (__builtin_huge_valf64): Use __builtin_huge_vall.
19391 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19392 (__builtin_inff64): Use __builtin_infl.
19393 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19394 (__builtin_nanf64): Use __builtin_nanl.
19395 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19396 (__builtin_nansf64): Use __builtin_nansl.
19397
19398 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19399 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19400 Carlos O'Donnell <carlos@redhat.com>
19401
19402 * elf/dl-tunables.list: Add elision parameters.
19403 * manual/tunables.texi: Add entries about elision tunable.
19404 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19405 Add callback functions to dynamically enable/disable elision.
19406 Add multiple callbacks functions to set elision parameters.
19407 Deleted __libc_enable_secure check.
19408 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19409 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19410 * configure: Regenerated.
19411 * configure.ac: Option enable_lock_elision was deleted.
19412 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19413 * config.make.in: Remove references to enable_lock_elision.
19414 * manual/install.texi: Elision configure option was removed.
19415 * INSTALL: Regenerated to remove enable_lock_elision.
19416 * nptl/Makefile:
19417 Disable elision so it can verify error case for destroying a mutex.
19418 * sysdeps/powerpc/nptl/elide.h:
19419 Cleanup ENABLE_LOCK_ELISION check.
19420 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19421 * sysdeps/s390/configure: Regenerated.
19422 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19423 * nptl/tst-mutex8.c:
19424 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19425 * sysdeps/powerpc/powerpc32/sysdep.h:
19426 Deleted all ENABLE_LOCK_ELISION checks.
19427 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19428 * sysdeps/powerpc/sysdep.h: Likewise.
19429 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19430 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19431 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19432 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19433 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19434 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19435 enable-lock-elision.
19436
19437 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19438
19439 * stdlib/strtod.c: Include <bits/floatn.h>.
19440 (BUILD_DOUBLE): New macro.
19441 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19442 (strtof64): Define and later undefine as macro. Define as weak
19443 alias if [!USE_WIDE_CHAR].
19444 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19445 (wcstof64): Define and later undefine as macro. Define as weak
19446 alias if [USE_WIDE_CHAR].
19447 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19448 (strtof32x): Define and later undefine as macro. Define as weak
19449 alias if [!USE_WIDE_CHAR].
19450 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19451 (wcstof32x): Define and later undefine as macro. Define as weak
19452 alias if [USE_WIDE_CHAR].
19453 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19454 (BUILD_DOUBLE): New macro.
19455 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19456 (strtof64_l): Define and later undefine as macro. Define as weak
19457 alias if [!USE_WIDE_CHAR].
19458 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19459 (wcstof64_l): Define and later undefine as macro. Define as weak
19460 alias if [USE_WIDE_CHAR].
19461 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19462 (strtof32x_l): Define and later undefine as macro. Define as weak
19463 alias if [!USE_WIDE_CHAR].
19464 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19465 (wcstof32x_l): Define and later undefine as macro. Define as weak
19466 alias if [USE_WIDE_CHAR].
19467
19468 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19469
19470 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19471 (reduced): Use ones as double instead of integer.
19472
19473 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19474
19475 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19476
19477 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19478
19479 * stdlib/strfromd.c: Include <bits/floatn.h>.
19480 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19481 and later undefine as macro and define as weak alias.
19482 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19483 Likewise.
19484
19485 * math/test-float32x.h: New file.
19486 * math/test-float64.h: Likewise.
19487
19488 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19489 (libm_alias_double_other_r_f64): New macro.
19490 (libm_alias_double_other_r_f32x): Likewise.
19491 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19492 libm_alias_double_other_r_f32x.
19493 (libm_alias_double_r): Use semicolon before call to
19494 libm_alias_double_other_r.
19495 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19496 <bits/floatn.h>.
19497 (libm_alias_double_other_r_f64): New macro.
19498 (libm_alias_double_other_r_f32x): Likewise.
19499 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19500 libm_alias_double_other_r_f32x.
19501
19502 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19503
19504 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19505 int.
19506 (SINF_FUNC): Likewise. Replace floor with simple casts.
19507
19508 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19509
19510 [BZ #22517]
19511 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19512 and to the list of locales to be built for testing.
19513 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19514 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19515 and build the collation rules upon that.
19516
19517 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19518
19519 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19520 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19521 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19522 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19523 instead of __insn__xxx.
19524 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19525 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19526 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19527 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19528 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19529 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19530
19531 2017-12-05 Florian Weimer <fweimer@redhat.com>
19532
19533 Linux: Implement interfaces for memory protection keys
19534 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19535 xsignal, xsysconf.
19536 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19537 * support/xunistd.h (xsysconf): Declare.
19538 * support/xraise.c: New file.
19539 * support/xsigaction.c: Likewise.
19540 * support/xsignal.c: Likewise.
19541 * support/xsysconf.c: Likewise.
19542 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19543 pkey_set, pkey_get, pkey_mprotect.
19544 [misc] (tests): Add tst-pkey.
19545 (tst-pkey): Link with -lpthread.
19546 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19547 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19548 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19549 (PKEY_DISABLE_WRITE): Define.
19550 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19551 Declare.
19552 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19553 (SEGV_PKUERR): Add.
19554 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19555 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19556 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19557 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19558 Add.
19559 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19560 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19561 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19562 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19563 * sysdeps/unix/sysv/linux/**.abilist: Update.
19564
19565 2017-12-05 Florian Weimer <fweimer@redhat.com>
19566
19567 * support/tst-test_compare.c (subprocess): Use long long instead
19568 of long argument for consistent type width across 32-bit and
19569 64-bit architectures.
19570 (do_test): Adjust expected output.
19571
19572 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19573
19574 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19575 (cosf): Define using libm_alias_float.
19576 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19577 (fabsf): Define using libm_alias_float.
19578 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19579 (fmaf): Define using libm_alias_float.
19580 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19581 (rintf): Define using libm_alias_float.
19582 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19583 (sinf): Define using libm_alias_float.
19584 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19585 <libm-alias-float.h>.
19586 (modff): Define using libm_alias_float.
19587 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19588 <libm-alias-float.h>.
19589 (logbf): Define using libm_alias_float.
19590 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19591 <libm-alias-float.h>.
19592 (ceilf): Define using libm_alias_float.
19593 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19594 <libm-alias-float.h>.
19595 (copysignf): Define using libm_alias_float.
19596 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19597 <libm-alias-float.h>.
19598 (floorf): Define using libm_alias_float.
19599 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19600 <libm-alias-float.h>.
19601 (llrintf): Define using libm_alias_float.
19602 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19603 <libm-alias-float.h>.
19604 (llroundf): Define using libm_alias_float.
19605 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19606 <libm-alias-float.h>.
19607 (lrintf): Define using libm_alias_float.
19608 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19609 <libm-alias-float.h>.
19610 (lroundf): Define using libm_alias_float.
19611 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19612 <libm-alias-float.h>.
19613 (nearbyintf): Define using libm_alias_float.
19614 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19615 <libm-alias-float.h>.
19616 (rintf): Define using libm_alias_float.
19617 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19618 <libm-alias-float.h>.
19619 (roundf): Define using libm_alias_float.
19620 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19621 <libm-alias-float.h>.
19622 (truncf): Define using libm_alias_float.
19623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19624 Include <libm-alias-float.h>.
19625 (ceilf): Define using libm_alias_float.
19626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19627 Include <libm-alias-float.h>.
19628 (copysignf): Define using libm_alias_float.
19629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19630 Include <libm-alias-float.h>.
19631 (floorf): Define using libm_alias_float.
19632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19633 Include <libm-alias-float.h>.
19634 (llrintf): Define using libm_alias_float.
19635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19636 Include <libm-alias-float.h>.
19637 (llroundf): Define using libm_alias_float.
19638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19639 Include <libm-alias-float.h>.
19640 (logbf): Define using libm_alias_float.
19641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19642 Include <libm-alias-float.h>.
19643 (lrintf): Define using libm_alias_float.
19644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19645 Include <libm-alias-float.h>.
19646 (lroundf): Define using libm_alias_float.
19647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19648 Include <libm-alias-float.h>.
19649 (modff): Define using libm_alias_float.
19650 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19651 Include <libm-alias-float.h>.
19652 (roundf): Define using libm_alias_float.
19653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19654 Include <libm-alias-float.h>.
19655 (truncf): Define using libm_alias_float.
19656 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19657 <libm-alias-float.h>.
19658 (llrintf): Define using libm_alias_float.
19659 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19660 <libm-alias-float.h>.
19661 (llroundf): Define using libm_alias_float.
19662 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19663 <libm-alias-float.h>.
19664 (ceilf): Define using libm_alias_float.
19665 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19666 <libm-alias-float.h>.
19667 (floorf): Define using libm_alias_float.
19668 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19669 <libm-alias-float.h>.
19670 (llroundf): Define using libm_alias_float.
19671 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19672 <libm-alias-float.h>.
19673 (lroundf): Define using libm_alias_float.
19674 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19675 <libm-alias-float.h>.
19676 (roundf): Define using libm_alias_float.
19677 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19678 <libm-alias-float.h>.
19679 (truncf): Define using libm_alias_float.
19680 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19681 <libm-alias-float.h>.
19682 (copysignf): Define using libm_alias_float.
19683 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19684 <libm-alias-float.h>.
19685 (llrintf): Define using libm_alias_float.
19686 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19687 <libm-alias-float.h>.
19688 (llroundf): Define using libm_alias_float.
19689 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19690 <libm-alias-float.h>.
19691 (lrintf): Define using libm_alias_float.
19692 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19693 <libm-alias-float.h>.
19694 (lroundf): Define using libm_alias_float.
19695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19696 <libm-alias-float.h>.
19697 (ceilf): Define using libm_alias_float.
19698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19699 <libm-alias-float.h>.
19700 (copysignf): Define using libm_alias_float.
19701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19702 <libm-alias-float.h>.
19703 (cosf): Define using libm_alias_float.
19704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19705 <libm-alias-float.h>.
19706 (floorf): Define using libm_alias_float.
19707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19708 <libm-alias-float.h>.
19709 (llrintf): Define using libm_alias_float.
19710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19711 <libm-alias-float.h>.
19712 (llroundf): Define using libm_alias_float.
19713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19714 <libm-alias-float.h>.
19715 (logbf): Define using libm_alias_float.
19716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19717 <libm-alias-float.h>.
19718 (modff): Define using libm_alias_float.
19719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19720 <libm-alias-float.h>.
19721 (roundf): Define using libm_alias_float.
19722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19723 <libm-alias-float.h>.
19724 (sinf): Define using libm_alias_float.
19725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19726 <libm-alias-float.h>.
19727 (truncf): Define using libm_alias_float.
19728 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19729 <libm-alias-float.h>.
19730 (ceilf): Define using libm_alias_float.
19731 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19732 <libm-alias-float.h>.
19733 (copysignf): Define using libm_alias_float.
19734 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19735 <libm-alias-float.h>.
19736 (floorf): Define using libm_alias_float.
19737 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19738 <libm-alias-float.h>.
19739 (llrintf): Define using libm_alias_float.
19740 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19741 <libm-alias-float.h>.
19742 (llroundf): Define using libm_alias_float.
19743 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19744 <libm-alias-float.h>.
19745 (nearbyintf): Define using libm_alias_float.
19746 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19747 <libm-alias-float.h>.
19748 (rintf): Define using libm_alias_float.
19749 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19750 <libm-alias-float.h>.
19751 (roundf): Define using libm_alias_float.
19752 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19753 <libm-alias-float.h>.
19754 (truncf): Define using libm_alias_float.
19755 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19756 <libm-alias-float.h>.
19757 (ceilf): Define using libm_alias_float.
19758 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19759 <libm-alias-float.h>.
19760 (floorf): Define using libm_alias_float.
19761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19762 <libm-alias-float.h>.
19763 (llroundf): Define using libm_alias_float.
19764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19765 <libm-alias-float.h>.
19766 (roundf): Define using libm_alias_float.
19767 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19768 <libm-alias-float.h>.
19769 (truncf): Define using libm_alias_float.
19770 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19771 <libm-alias-float.h>.
19772 (copysignf): Define using libm_alias_float.
19773 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19774 <libm-alias-float.h>.
19775 (llrintf): Define using libm_alias_float.
19776 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19777 <libm-alias-float.h>.
19778 (llroundf): Define using libm_alias_float.
19779 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19780 <libm-alias-float.h>.
19781 (cosf): Define using libm_alias_float.
19782 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19783 <libm-alias-float.h>.
19784 (llrintf): Define using libm_alias_float.
19785 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19786 <libm-alias-float.h>.
19787 (llroundf): Define using libm_alias_float.
19788 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19789 <libm-alias-float.h>.
19790 (sinf): Define using libm_alias_float.
19791
19792 2017-12-04 Florian Weimer <fweimer@redhat.com>
19793
19794 * support/check.h (TEST_COMPARE): Define.
19795 (support_test_compare_failure): Declare.
19796 * support/Makefile (libsupport-routines): Add
19797 support_test_compare_failure.
19798 (tests): Add tst-test_compare.
19799 * support /support_test_compare_failure.c: New file.
19800 * support/tst-test_compare.c: Likewise.
19801
19802 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19803
19804 [BZ #22527]
19805 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19806 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19807 available, this rewrite of the collation rules does reproduce
19808 the test file in the same order.
19809
19810 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19811
19812 [BZ #10580]
19813 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19814 digraphs in the month and day names. Using single code points for
19815 digraphs is deprecated. While there are dedicated Unicode
19816 codepoints, for the digraphs, these are included for backwards
19817 compatibility and modern texts use a sequence of Basic Latin
19818 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19819 This makes the month and day names agree exactly with CLDR now,
19820 CLDR does not use the single code points for the digraphs either.
19821
19822 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19823
19824 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19825
19826 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19827
19828 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19829 of floor.
19830
19831 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19832
19833 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19834 Define only for libc.so.
19835
19836 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19837
19838 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19839 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19840 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19841 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19842 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19843
19844 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19845
19846 [BZ #5997]
19847 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19848
19849 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19850
19851 [BZ libc/19170]
19852 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19853 PREINIT_FUNCTION_WEAK is nonzero.
19854 (gmon_initializer): New function. Put procedure label for it in
19855 .init_array section.
19856 (_init): Don't call PREINIT_FUNCTION.
19857 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19858 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19859 value when map argument is null.
19860
19861 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19862 depi instruction from PIC pc-relative sequence.
19863 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19864 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19865 (elf_machine_load_address): Likewise.
19866 (elf_machine_runtime_setup): Likewise.
19867
19868 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19869
19870 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19871 <libm-alias-double.h>.
19872 (logb): Define using libm_alias_double.
19873 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19874 <libm-alias-double.h>.
19875 (copysign): Define using libm_alias_double.
19876 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19877 <libm-alias-double.h>.
19878 (llrint): Define using libm_alias_double.
19879 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19880 <libm-alias-double.h>.
19881 (llround): Define using libm_alias_double.
19882 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19883 <libm-alias-double.h>.
19884 (lrint): Define using libm_alias_double.
19885 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19886 <libm-alias-double.h>.
19887 (lround): Define using libm_alias_double.
19888 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19889 Include <libm-alias-double.h>.
19890 (copysign): Define using libm_alias_double.
19891 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19892 Include <libm-alias-double.h>.
19893 (llrint): Define using libm_alias_double.
19894 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19895 Include <libm-alias-double.h>.
19896 (llround): Define using libm_alias_double.
19897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19898 <libm-alias-double.h>.
19899 (logb): Define using libm_alias_double.
19900 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19901 Include <libm-alias-double.h>.
19902 (lrint): Define using libm_alias_double.
19903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19904 Include <libm-alias-double.h>.
19905 (lround): Define using libm_alias_double.
19906 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19907 <libm-alias-double.h>.
19908 (llrint): Define using libm_alias_double.
19909 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19910 <libm-alias-double.h>.
19911 (llround): Define using libm_alias_double.
19912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19913 <libm-alias-double.h>.
19914 (llround): Define using libm_alias_double.
19915 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19916 <libm-alias-double.h>.
19917 (lround): Define using libm_alias_double.
19918 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19919 <libm-alias-double.h>.
19920 (copysign): Define using libm_alias_double.
19921 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19922 <libm-alias-double.h>.
19923 (llrint): Define using libm_alias_double.
19924 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19925 <libm-alias-double.h>.
19926 (llround): Define using libm_alias_double.
19927 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19928 <libm-alias-double.h>.
19929 (lrint): Define using libm_alias_double.
19930 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19931 <libm-alias-double.h>.
19932 (lround): Define using libm_alias_double.
19933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19934 <libm-alias-double.h>.
19935 (copysign): Define using libm_alias_double.
19936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19937 <libm-alias-double.h>.
19938 (llrint): Define using libm_alias_double.
19939 (lrint): Likewise.
19940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19941 <libm-alias-double.h>.
19942 (llround): Define using libm_alias_double.
19943 (lround): Likewise.
19944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19945 <libm-alias-double.h>.
19946 (logb): Define using libm_alias_double.
19947 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19948 <libm-alias-double.h>.
19949 (copysign): Define using libm_alias_double.
19950 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19951 <libm-alias-double.h>.
19952 (llrint): Define using libm_alias_double.
19953 (lrint): Likewise.
19954 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19955 <libm-alias-double.h>.
19956 (llround): Define using libm_alias_double.
19957 (lround): Likewise.
19958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19959 <libm-alias-double.h>.
19960 (llround): Define using libm_alias_double.
19961 (lround): Likewise.
19962 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19963 <libm-alias-double.h>.
19964 (copysign): Define using libm_alias_double.
19965 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19966 <libm-alias-double.h>.
19967 (llrint): Define using libm_alias_double.
19968 (lrint): Likewise.
19969 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19970 <libm-alias-double.h>.
19971 (llround): Define using libm_alias_double.
19972 (lround): Likewise.
19973 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19974 <libm-alias-double.h>.
19975 (llrint): Define using libm_alias_double.
19976 (lrint): Likewise.
19977 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19978 <libm-alias-double.h>.
19979 (llround): Define using libm_alias_double.
19980 (lround): Likewise.
19981
19982 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19983
19984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19985 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19986 compat symbol based on llround.
19987
19988 * sysdeps/powerpc/power7/fpu/s_logb.c
19989 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19990 symbol based on __logb, not on logb.
19991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19992 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19994 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19995
19996 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19997 (rint): Define using libm_alias_double.
19998 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19999 <libm-alias-double.h>.
20000 (modf): Define using libm_alias_double.
20001 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20002 <libm-alias-double.h>.
20003 (ceil): Define using libm_alias_double.
20004 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20005 <libm-alias-double.h>.
20006 (floor): Define using libm_alias_double.
20007 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20008 <libm-alias-double.h>.
20009 (nearbyint): Define using libm_alias_double.
20010 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20011 <libm-alias-double.h>.
20012 (rint): Define using libm_alias_double.
20013 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20014 <libm-alias-double.h>.
20015 (round): Define using libm_alias_double.
20016 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20017 <libm-alias-double.h>.
20018 (trunc): Define using libm_alias_double.
20019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20020 <libm-alias-double.h>.
20021 (ceil): Define using libm_alias_double.
20022 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20023 Include <libm-alias-double.h>.
20024 (floor): Define using libm_alias_double.
20025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20026 <libm-alias-double.h>.
20027 (modf): Define using libm_alias_double.
20028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20029 Include <libm-alias-double.h>.
20030 (round): Define using libm_alias_double.
20031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20032 Include <libm-alias-double.h>.
20033 (trunc): Define using libm_alias_double.
20034 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20035 <libm-alias-double.h>.
20036 (ceil): Define using libm_alias_double.
20037 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20038 <libm-alias-double.h>.
20039 (floor): Define using libm_alias_double.
20040 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20041 <libm-alias-double.h>.
20042 (round): Define using libm_alias_double.
20043 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20044 <libm-alias-double.h>.
20045 (trunc): Define using libm_alias_double.
20046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20047 <libm-alias-double.h>.
20048 (ceil): Define using libm_alias_double.
20049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20050 <libm-alias-double.h>.
20051 (floor): Define using libm_alias_double.
20052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20053 <libm-alias-double.h>.
20054 (modf): Define using libm_alias_double.
20055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20056 <libm-alias-double.h>.
20057 (round): Define using libm_alias_double.
20058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20059 <libm-alias-double.h>.
20060 (trunc): Define using libm_alias_double.
20061 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20062 <libm-alias-double.h>.
20063 (ceil): Define using libm_alias_double.
20064 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20065 <libm-alias-double.h>.
20066 (floor): Define using libm_alias_double.
20067 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20068 <libm-alias-double.h>.
20069 (nearbyint): Define using libm_alias_double.
20070 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20071 <libm-alias-double.h>.
20072 (rint): Define using libm_alias_double.
20073 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20074 <libm-alias-double.h>.
20075 (round): Define using libm_alias_double.
20076 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20077 <libm-alias-double.h>.
20078 (trunc): Define using libm_alias_double.
20079 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20080 <libm-alias-double.h>.
20081 (ceil): Define using libm_alias_double.
20082 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20083 <libm-alias-double.h>.
20084 (floor): Define using libm_alias_double.
20085 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20086 <libm-alias-double.h>.
20087 (round): Define using libm_alias_double.
20088 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20089 <libm-alias-double.h>.
20090 (trunc): Define using libm_alias_double.
20091
20092 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20093 (fabs): Define using libm_alias_double.
20094 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20095 (fma): Define using libm_alias_double.
20096 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20097 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20098 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20099 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20100
20101 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20102
20103 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20104
20105 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20106 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20107 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20108
20109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20110 due redirect macro.
20111
20112 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20113
20114 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20115
20116 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20117
20118 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20119 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20120 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20121 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20122
20123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20124 (libm-sysdep_routines): Add s_nearbyintf-generic and
20125 s_nearbyint-generic.
20126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20127 New file.
20128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20130 Likewise.
20131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20132 Likewise.
20133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20134 file.
20135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20136 Likewise.
20137
20138 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20139 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20141 file.
20142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20143 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20144 Likewise.
20145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20147 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20148
20149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20150 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20151 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20152 file.
20153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20155 Likewise.
20156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20158 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20159
20160 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20161 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20162 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20163 file.
20164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20165 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20166 Likewise.
20167 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20169 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20170
20171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20172 (sysdep_calls): New rule.
20173 (sysdep_routines): Use sysdep_calls as base.
20174 (libm-sysdep_routines): Add generic rule for symbols shared with
20175 libc. Add s_copysign-generic and s_copysign-generic objects.
20176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20177 New file.
20178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20180 Likewise.
20181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20183 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20184
20185 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20186
20187 [BZ #22519]
20188 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20189 the list of locales to be built for testing.
20190 * localedata/is_IS.UTF-8.in: New file.
20191 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20192 on iso14651_t1.
20193
20194 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20195
20196 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20197 <libm-alias-float.h>.
20198 (fabsf): Define using libm_alias_float.
20199
20200 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20201
20202 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20203
20204 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20205
20206 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20207 <libm-alias-float.h>.
20208 (fabsf): Define using libm_alias_float.
20209 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20210 <libm-alias-float.h>.
20211 (lrintf): Define using libm_alias_float.
20212 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20213 <libm-alias-float.h>.
20214 (rintf): Define using libm_alias_float.
20215
20216 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20217 <libm-alias-double.h>.
20218 (fabs): Define using libm_alias_double.
20219 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20220 <libm-alias-double.h>.
20221 (lrint): Define using libm_alias_double.
20222 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20223 <libm-alias-double.h>.
20224 (rint): Define using libm_alias_double.
20225
20226 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20227 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20228 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20229 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20230 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20231 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20232 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20233 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20234 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20235 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20236 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20237 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20238 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20239 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20240 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20241 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20242 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20243 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20244 s_atan_template.c.
20245 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20246 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20247 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20248 s_ceil_template.c.
20249 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20250 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20251 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20252 s_cos_template.c.
20253 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20254 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20255 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20256 s_expm1_template.c.
20257 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20258 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20259 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20260 s_fabs_template.c.
20261 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20262 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20263 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20264 s_floor_template.c.
20265 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20266 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20267 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20268 s_frexp_template.c.
20269 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20270 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20271 s_lrint_template.c.
20272 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20273 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20274 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20275 s_modf_template.c.
20276 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20277 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20278 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20279 s_nearbyint_template.c.
20280 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20281 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20282 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20283 s_remquo_template.c.
20284 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20285 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20286 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20287 s_rint_template.c.
20288 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20289 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20290 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20291 s_sin_template.c.
20292 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20293 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20294 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20295 s_sincos_template.c.
20296 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20297 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20298 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20299 s_tan_template.c.
20300 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20301 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20302 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20303 s_tanh_template.c.
20304 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20305 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20306 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20307 s_trunc_template.c.
20308 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20309 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20310 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20311 s_atan.c instead of including s_atan.c.
20312 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20313 s_atanf.c instead of including s_atanf.c.
20314 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20315 s_atanl.c instead of including s_atanl.c.
20316 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20317 instead of s_atan.c.
20318 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20319 instead of s_atanf.c.
20320 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20321 instead of s_atanl.c.
20322
20323 * scripts/update-copyrights: Do not handle intl/plural.c
20324 specially.
20325
20326 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20327
20328 [BZ #22432]
20329 * configure.ac (BISON): Require to be present.
20330 * configure: Regenerated.
20331 * intl/Makefile (generated): Add plural.c.
20332 [$(BISON) != no]: Make code unconditional.
20333 (plural.c): Change rule to $(objpfx)plural.c.
20334 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20335 * intl/plural.c: Remove.
20336 * manual/install.texi (Tools for Compilation): Document bison as
20337 required.
20338 * INSTALL: Regenerated.
20339
20340 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20341
20342 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20343 <libm-alias-double.h>.
20344 (llrint): Define using libm_alias_double.
20345 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20346 <libm-alias-float.h>.
20347 (llrintf): Define using libm_alias_float.
20348 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20349 <libm-alias-ldouble.h>.
20350 (llrintl): Define using libm_alias_ldouble.
20351
20352 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20353 declare_mgen_alias instead of weak_alias.
20354 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20355 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20356 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20357
20358 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20359
20360 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20361 Add add_n-generic.
20362 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20363 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20364 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20365
20366 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20367 Add submul_1-generic.
20368 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20369 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20370 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20371
20372 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20373 Add addmul_1-generic.
20374 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20375 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20376 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20377
20378 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20379 Add sub_n-generic.
20380 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20381 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20382 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20383
20384 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20385 Add mul_1-generic.
20386 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20387 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20388 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20389
20390 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20391
20392 According to CLDR, collation rules for Serbian and Bosnian
20393 should be the same as for Croatian.
20394
20395 [BZ #22534]
20396 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20397 and to the list of locales to be built for testing.
20398 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20399 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20400 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20401 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20402
20403 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20404
20405 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20406 to make test case pass.
20407 * localedata/hr_HR.UTF-8.in: Add more test strings.
20408
20409 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20410
20411 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20412
20413 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20414
20415 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20416 the list of locales to built for testing.
20417 * localedata/hr_HR.UTF-8.in: New file.
20418
20419 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20420
20421 [BZ #10580]
20422 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20423 iso14651_t1.
20424 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20425 CLDR (except use ligatures for the digraphs, CLDR does not use
20426 the ligatures), add first_workday, some fixes in the date and time
20427 formats.
20428 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20429 for Đ and đ.
20430 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20431 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20432 Add int_p_cs_precedes and int_n_cs_precedes.
20433 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20434 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20435 LC_MONETARY now).
20436 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20437 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20438 name_miss.
20439 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20440 and lang_lib. Change postal_fmt.
20441
20442 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20443
20444 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20445 <setjmp.h>.
20446 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20447 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20448 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20449 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20450 * sysdeps/generic/setjmpP.h: New file.
20451 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20452 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20453 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20454 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20455 Add jmp_buf-ssp.sym.
20456 (tests): Add tst-saved_mask-1.
20457
20458 2017-11-30 Arjun Shankar <arjun@redhat.com>
20459
20460 [BZ #22375]
20461 CVE-2017-17426
20462 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20463 instead of request2size.
20464
20465 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20466
20467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20468 (__lllrint): Remove alias.
20469 (lllrint): Likewise.
20470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20471 (__lllrintf): Likewise.
20472 (lllrintf): Likewise.
20473
20474 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20475 <libm-alias-float.h>.
20476 (copysignf): Define using libm_alias_float.
20477 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20478 <libm-alias-float.h>.
20479 (fabsf): Define using libm_alias_float.
20480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20481 Include <libm-alias-float.h>.
20482 (copysignf): Define using libm_alias_float.
20483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20484 <libm-alias-float.h>.
20485 (fabsf): Define using libm_alias_float.
20486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20487 <libm-alias-float.h>.
20488 (fdimf): Define using libm_alias_float.
20489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20490 <libm-alias-float.h>.
20491 (fmaf): Define using libm_alias_float.
20492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20493 <libm-alias-float.h>.
20494 (llrintf): Define using libm_alias_float.
20495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20496 Include <libm-alias-float.h>.
20497 (nearbyintf): Define using libm_alias_float.
20498 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20499 <libm-alias-float.h>.
20500 (rintf): Define using libm_alias_float.
20501 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20502 <libm-alias-float.h>.
20503 (llrintf): Define using libm_alias_float.
20504 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20505 <libm-alias-float.h>.
20506 (lrintf): Define using libm_alias_float.
20507 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20508 <libm-alias-float.h>.
20509 (nearbyintf): Define using libm_alias_float.
20510 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20511 <libm-alias-float.h>.
20512 (rintf): Define using libm_alias_float.
20513 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20514 <libm-alias-float.h>.
20515 (ceilf): Define using libm_alias_float.
20516 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20517 <libm-alias-float.h>.
20518 (floorf): Define using libm_alias_float.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20520 <libm-alias-float.h>.
20521 (fmaf): Define using libm_alias_float.
20522 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20523 <libm-alias-float.h>.
20524 (lrintf): Define using libm_alias_float.
20525 (llrintf): Likewise.
20526 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20527 <libm-alias-float.h>.
20528 (nearbyintf): Define using libm_alias_float.
20529 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20530 <libm-alias-float.h>.
20531 (rintf): Define using libm_alias_float.
20532 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20533 <libm-alias-float.h>.
20534 (truncf): Define using libm_alias_float.
20535 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20536 <libm-alias-float.h>.
20537 (copysignf): Define using libm_alias_float.
20538 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20539 <libm-alias-float.h>.
20540 (fabsf): Define using libm_alias_float.
20541 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20542 <libm-alias-float.h>.
20543 (lrintf): Define using libm_alias_float.
20544 (llrintf): Likewise.
20545 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20546 <libm-alias-float.h>.
20547 (nearbyintf): Define using libm_alias_float.
20548 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20549 <libm-alias-float.h>.
20550 (rintf): Define using libm_alias_float.
20551
20552 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20553
20554 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20555 <libm-alias-double.h>.
20556 (copysign): Define using libm_alias_double.
20557 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20558 <libm-alias-double.h>.
20559 (fabs): Define using libm_alias_double.
20560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20561 Include <libm-alias-double.h>.
20562 (copysign): Define using libm_alias_double.
20563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20564 <libm-alias-double.h>.
20565 (fabs): Define using libm_alias_double.
20566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20567 <libm-alias-double.h>.
20568 (fdim): Define using libm_alias_double.
20569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20570 <libm-alias-double.h>.
20571 (fma): Define using libm_alias_double.
20572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20573 <libm-alias-double.h>.
20574 (llrint): Define using libm_alias_double.
20575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20576 Include <libm-alias-double.h>.
20577 (nearbyint): Define using libm_alias_double.
20578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20579 <libm-alias-double.h>.
20580 (rint): Define using libm_alias_double.
20581 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20582 <libm-alias-double.h>.
20583 (fabs): Define using libm_alias_double.
20584 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20585 <libm-alias-double.h>.
20586 (llrint): Define using libm_alias_double.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20588 <libm-alias-double.h>.
20589 (nearbyint): Define using libm_alias_double.
20590 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20591 <libm-alias-double.h>.
20592 (rint): Define using libm_alias_double.
20593 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20594 <libm-alias-double.h>.
20595 (ceil): Define using libm_alias_double.
20596 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20597 <libm-alias-double.h>.
20598 (floor): Define using libm_alias_double.
20599 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20600 <libm-alias-double.h>.
20601 (fma): Define using libm_alias_double.
20602 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20603 <libm-alias-double.h>.
20604 (lrint): Define using libm_alias_double.
20605 (llrint): Likewise.
20606 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20607 <libm-alias-double.h>.
20608 (nearbyint): Define using libm_alias_double.
20609 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20610 <libm-alias-double.h>.
20611 (rint): Define using libm_alias_double.
20612 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20613 <libm-alias-double.h>.
20614 (trunc): Define using libm_alias_double.
20615 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20616 <libm-alias-double.h>.
20617 (copysign): Define using libm_alias_double.
20618 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20619 <libm-alias-double.h>.
20620 (fabs): Define using libm_alias_double.
20621 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20622 <libm-alias-double.h>.
20623 (lrint): Define using libm_alias_double.
20624 (llrint): Likewise.
20625 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20626 <libm-alias-double.h>.
20627 (nearbyint): Define using libm_alias_double.
20628 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20629 <libm-alias-double.h>.
20630 (rint): Define using libm_alias_double.
20631
20632 [BZ #22229]
20633 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20634 <math_ldbl_opt.h>.
20635 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20636
20637 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20638 SPARC --disable-multi-arch glibc variants.
20639
20640 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20641 <libm-alias-float.h>.
20642 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20643 if [SHARED].
20644 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20645 <libm-alias-float.h>.
20646 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20647 if [SHARED].
20648 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20649 <libm-alias-float.h>.
20650 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20651 if [SHARED].
20652 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20653 <libm-alias-float.h>.
20654 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20655 if [SHARED].
20656 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20657 <libm-alias-float.h>.
20658 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20659 if [SHARED].
20660 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20661 <libm-alias-float.h>.
20662 (ceilf): Define using libm_alias_float.
20663 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20664 <libm-alias-float.h>.
20665 (floorf): Define using libm_alias_float.
20666 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20667 <libm-alias-float.h>.
20668 (fmaf): Define using libm_alias_float.
20669 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20670 <libm-alias-float.h>.
20671 (nearbyintf): Define using libm_alias_float.
20672 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20673 <libm-alias-float.h>.
20674 (rintf): Define using libm_alias_float.
20675 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20676 <libm-alias-float.h>.
20677 (truncf): Define using libm_alias_float.
20678 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20679 (copysignf): Define using libm_alias_float.
20680 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20681 (cosf): Define using libm_alias_float.
20682 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20683 (fabsf): Define using libm_alias_float.
20684 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20685 (fmaxf): Define using libm_alias_float.
20686 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20687 (fminf): Define using libm_alias_float.
20688 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20689 (llrintf): Define using libm_alias_float.
20690 [!__ILP32__] (lrintf): Likewise.
20691 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20692 (sincosf): Define using libm_alias_float.
20693 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20694 (sinf): Define using libm_alias_float.
20695 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20696 (lrintf): Define using libm_alias_float.
20697
20698 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20699 <libm-alias-double.h>.
20700 (atan): Define using libm_alias_double.
20701 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20702 <libm-alias-double.h>.
20703 (ceil): Define using libm_alias_double.
20704 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20705 <libm-alias-double.h>.
20706 (floor): Define using libm_alias_double.
20707 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20708 <libm-alias-double.h>.
20709 (fma): Define using libm_alias_double.
20710 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20711 <libm-alias-double.h>.
20712 (nearbyint): Define using libm_alias_double.
20713 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20714 <libm-alias-double.h>.
20715 (rint): Define using libm_alias_double.
20716 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20717 <libm-alias-double.h>.
20718 (sin): Define using libm_alias_double.
20719 (cos): Likewise.
20720 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20721 <libm-alias-double.h>.
20722 (tan): Define using libm_alias_double.
20723 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20724 <libm-alias-double.h>.
20725 (trunc): Define using libm_alias_double.
20726 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20727 (copysign): Define using libm_alias_double.
20728 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20729 (fabs): Define using libm_alias_double.
20730 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20731 (fmax): Define using libm_alias_double.
20732 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20733 (fmin): Define using libm_alias_double.
20734 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20735 (llrint): Define using libm_alias_double.
20736 [!__ILP32__] (lrint): Likewise.
20737 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20738 (lrint): Define using libm_alias_double.
20739
20740 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20741
20742 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20743 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20744 objects.
20745 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20746 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20747 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20748 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20749 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20750 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20751
20752 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20753 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20754 objects.
20755 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20756 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20757 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20758 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20759 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20760 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20761
20762 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20763 (libm-sysdep_routines): Add s_nearbyint-generic and
20764 s_nearbyintf-generic objects.
20765 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20766 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20767 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20768 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20769 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20770 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20771
20772 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20773 Add s_finitef-generic and s_finite-generic objects.
20774 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20775 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20776 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20777 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20778 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20779 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20780
20781 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20782 Add s_isinff-generic and s_isinf-generic objects.
20783 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20784 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20785 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20786 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20787 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20788 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20789
20790 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20791 Add s_isnanf-generic and s_isnan-generic objects.
20792 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20793 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20794 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20795 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20796 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20797 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20798
20799 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20800 macro.
20801 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20802 rule.
20803 (sysdep_routines): Use sysdep_calls as base.
20804 (libm-sysdep_routines): Add generic rule for symbols shared with
20805 libc. Add s_signbit-generic and s_signbitf-generic objects.
20806 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20807 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20808 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20809 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20810 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20811 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20812
20813 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20814
20815 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20816 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20817 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20818 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20819 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20820 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20821 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20822 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20823 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20824 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20825 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20826 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20827 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20828 libm_alias_float_r.
20829 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20830 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20831 (logf): Likewise.
20832 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20833 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20834 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20835 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20836 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20837 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20838 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20839 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20840 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20841 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20842 libm_alias_float.
20843 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20844 (cosf): Likewise.
20845 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20846 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20847 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20848 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20849 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20850 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20851 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20852 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20853 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20854 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20855 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20856 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20857 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20858 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20859 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20860 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20861 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20862 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20863 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20864 libm_alias_float.
20865 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20866 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20867 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20868 * sysdeps/ia64/fpu/w_lgammaf_main.c
20869 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20870 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20871
20872 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20873 Alexandre Oliva <aoliva@redhat.com>
20874
20875 [BZ #17750]
20876 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20877 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20878 accents sorting.
20879 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20880 sorting.
20881 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20882 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20883 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20884 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20885 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20886 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20887 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20888 instead of “ifdef DIACRIT_BACKWARD”.
20889
20890 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20891
20892 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20893 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20894 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20895 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20896 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20897 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20898 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20899 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20900 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20901 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20902 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20903 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20904 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20905 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20906 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20907 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20908 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20909 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20911 ($(have-as-vis3) == yes): Remove conditional.
20912 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20913 Likewise.
20914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20915 file.
20916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20917 file.
20918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20919 file.
20920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20921 file.
20922 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20923 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20924 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20925 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20926 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20927 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20928 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20929 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20930
20931 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20932
20933 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20934 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20935 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20936 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20937 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20938 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20939 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20940 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20941 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20942 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20943 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20944 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20945 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20946 libm_alias_double_r.
20947 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20948 (log): Likewise.
20949 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20950 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20951 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20952 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20953 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20954 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20955 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20956 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20957 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20958 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20959 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20960 libm_alias_double.
20961 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20962 (cos): Likewise.
20963 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20964 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20965 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20966 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20967 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20968 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20969 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20970 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20971 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20972 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20973 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20974 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20975 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20976 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20977 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20978 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20979 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20980 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20981 libm_alias_double.
20982 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20983 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20984 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20985 * sysdeps/ia64/fpu/w_lgamma_main.c
20986 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20987 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20988
20989 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20990
20991 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20992 address of $global$ into %dp register earlier. Use pc-relative
20993 instruction sequence for PIC case.
20994
20995 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20996
20997 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20998 (asinhf): Define using libm_alias_float.
20999 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21000 (atanf): Define using libm_alias_float.
21001 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21002 (cbrtf): Define using libm_alias_float.
21003 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21004 (ceilf): Define using libm_alias_float.
21005 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21006 (copysignf): Define using libm_alias_float.
21007 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21008 (expm1f): Define using libm_alias_float.
21009 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21010 (fabsf): Define using libm_alias_float.
21011 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21012 (floorf): Define using libm_alias_float.
21013 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21014 (fmaxf): Define using libm_alias_float.
21015 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21016 (fminf): Define using libm_alias_float.
21017 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21018 (frexpf): Define using libm_alias_float.
21019 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21020 (llrintf): Define using libm_alias_float.
21021 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21022 (logbf): Define using libm_alias_float.
21023 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21024 (lrintf): Define using libm_alias_float.
21025 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21026 (nearbyintf): Define using libm_alias_float.
21027 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21028 (remquof): Define using libm_alias_float.
21029 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21030 (rintf): Define using libm_alias_float.
21031 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21032 (truncf): Define using libm_alias_float.
21033 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21034 <libm-alias-float.h>.
21035 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21036 if [SHARED].
21037 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21038 <libm-alias-float.h>.
21039 (expf): Define using libm_alias_float, or libm_alias_float_other
21040 if [SHARED].
21041 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21042 <libm-alias-float.h>.
21043 (log2f): Define using libm_alias_float, or libm_alias_float_other
21044 if [SHARED].
21045 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21046 <libm-alias-float.h>.
21047 (logf): Define using libm_alias_float, or libm_alias_float_other
21048 if [SHARED].
21049 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21050 <libm-alias-float.h>.
21051 (powf): Define using libm_alias_float, or libm_alias_float_other
21052 if [SHARED].
21053 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21054 <libm-alias-float.h>.
21055 (cosf): Define using libm_alias_float.
21056 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21057 <libm-alias-float.h>.
21058 (sincosf): Define using libm_alias_float.
21059 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21060 <libm-alias-float.h>.
21061 (sinf): Define using libm_alias_float.
21062 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21063 (fmaxf): Define using libm_alias_float.
21064 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21065 (fminf): Define using libm_alias_float.
21066 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21067 <libm-alias-float.h>.
21068 (fmaf): Define using libm_alias_float.
21069
21070 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21071 (asinh): Define using libm_alias_double.
21072 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21073 (atan): Define using libm_alias_double.
21074 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21075 (cbrt): Define using libm_alias_double.
21076 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21077 (ceil): Define using libm_alias_double.
21078 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21079 (copysign): Define using libm_alias_double.
21080 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21081 (expm1): Define using libm_alias_double.
21082 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21083 (fabs): Define using libm_alias_double.
21084 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21085 (fdim): Define using libm_alias_double.
21086 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21087 (floor): Define using libm_alias_double.
21088 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21089 (fmax): Define using libm_alias_double.
21090 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21091 (fmin): Define using libm_alias_double.
21092 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21093 (frexp): Define using libm_alias_double.
21094 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21095 (llrint): Define using libm_alias_double.
21096 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21097 (logb): Define using libm_alias_double.
21098 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21099 (lrint): Define using libm_alias_double.
21100 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21101 (nearbyint): Define using libm_alias_double.
21102 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21103 (remquo): Define using libm_alias_double.
21104 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21105 (rint): Define using libm_alias_double.
21106 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21107 (trunc): Define using libm_alias_double.
21108 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21109 (fmax): Define using libm_alias_double.
21110 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21111 (fmin): Define using libm_alias_double.
21112 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21113 (fma): Define using libm_alias_double.
21114
21115 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21116
21117 [BZ #22370]
21118 * elf/dl-hwcaps.c (ROUND): Removed.
21119 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21120 and ELF_NOTE_NEXT_OFFSET.
21121 * elf/dl-load.c (ROUND): Removed.
21122 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21123 * elf/readelflib.c (ROUND): Removed.
21124 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21125 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21126 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21127 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21128
21129 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21130
21131 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21132 [!__fmaf] (fmaf): Define using libm_alias_float.
21133
21134 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21135 [!__fma] (fma): Define using libm_alias_double.
21136 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21137
21138 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21139
21140 [BZ #22336]
21141 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21142 and implement the collation rules for cs from CLDR on top of that.
21143 * Makefile: Add cs_CZ.UTF-8 to test-input.
21144 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21145
21146 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21147
21148 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21149
21150 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21151 Icarus Sparry <icarus.w.sparry@intel.com>
21152
21153 * benchtests/Makefile:Add BENCHSET to allow subsets of
21154 benchmarks to be run.
21155 * benchtests/README: Add documentation for: Running subsets of
21156 benchmarks.
21157
21158 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21159
21160 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21161 range of tests names.
21162
21163 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21164 result from property and remove "max", min" and "mean" from
21165 required properties based on benchtests/bench-skeleton.c.
21166
21167 2017-11-28 Florian Weimer <fweimer@redhat.com>
21168
21169 [BZ #20826]
21170 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21171 due to Internet requirement.
21172 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21173 tst-getaddrinfo5.
21174 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21175
21176 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21177
21178 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21179 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21180 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21181 (sysdep_routines): Add memset-ultra1.
21182 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21183 file.
21184 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21185 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21186 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21187 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21188 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21189 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21190 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21191 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21192
21193 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21194 file.
21195 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21196 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21197 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21198 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21199 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21200 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21201 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21202 macro.
21203 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21204 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21205 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21206 (sysdep_routines): Add memcpy-ultra1.
21207 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21208 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21209
21210 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21211
21212 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21213 (cfloat_versions): Take function argument without trailing 'f'.
21214 Call libm_alias_float_other.
21215 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21216 * sysdeps/alpha/fpu/cargf.c: Likewise.
21217 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21218 * sysdeps/alpha/fpu/conjf.c: Likewise.
21219 * sysdeps/alpha/fpu/crealf.c: Likewise.
21220 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21221 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21222 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21223 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21224 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21225 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21226 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21227 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21228 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21229 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21230 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21231 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21232 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21233 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21234 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21235 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21236 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21237 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21238 (clog10f): Use libm_alias_float_other.
21239 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21240 (ceilf): Define using libm_alias_float.
21241 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21242 (copysignf): Define using libm_alias_float.
21243 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21244 (fabsf): Define using libm_alias_float.
21245 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21246 (floorf): Define using libm_alias_float.
21247 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21248 (fmaxf): Define using libm_alias_float.
21249 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21250 (fminf): Define using libm_alias_float.
21251 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21252 (lrintf): Define using libm_alias_float.
21253 (llrintf): Likewise.
21254 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21255 (lroundf): Define using libm_alias_float.
21256 (llroundf): Likewise.
21257 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21258 (rintf): Define using libm_alias_float.
21259 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21260 (truncf): Define using libm_alias_float.
21261
21262 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21263 (ceilf): Define using libm_alias_float.
21264 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21265 (floorf): Define using libm_alias_float.
21266 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21267 (fmaf): Define using libm_alias_float.
21268 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21269 (fmaxf): Define using libm_alias_float.
21270 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21271 (fminf): Define using libm_alias_float.
21272 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21273 (llrintf): Define using libm_alias_float.
21274 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21275 (llroundf): Define using libm_alias_float.
21276 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21277 (lrintf): Define using libm_alias_float.
21278 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21279 (lroundf): Define using libm_alias_float.
21280 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21281 <libm-alias-float.h>.
21282 (nearbyintf): Define using libm_alias_float.
21283 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21284 (rintf): Define using libm_alias_float.
21285 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21286 (roundf): Define using libm_alias_float.
21287 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21288 (truncf): Define using libm_alias_float.
21289
21290 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21291 (ceil): Define using libm_alias_double.
21292 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21293 (copysign): Define using libm_alias_double.
21294 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21295 (fabs): Define using libm_alias_double.
21296 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21297 (floor): Define using libm_alias_double.
21298 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21299 (fmax): Define using libm_alias_double.
21300 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21301 (fmin): Define using libm_alias_double.
21302 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21303 (lrint): Define using libm_alias_double.
21304 (llrint): Likewise.
21305 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21306 (lround): Define using libm_alias_double.
21307 (llround): Likewise.
21308 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21309 (rint): Define using libm_alias_double.
21310 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21311 (trunc): Define using libm_alias_double.
21312
21313 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21314 (libm_alias_double_r): Add semicolon after weak_alias call.
21315
21316 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21317
21318 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21319 (ceil): Define using libm_alias_double.
21320 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21321 (floor): Define using libm_alias_double.
21322 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21323 (fma): Define using libm_alias_double.
21324 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21325 (fmax): Define using libm_alias_double.
21326 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21327 (fmin): Define using libm_alias_double.
21328 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21329 (llrint): Define using libm_alias_double.
21330 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21331 (llround): Define using libm_alias_double.
21332 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21333 (lrint): Define using libm_alias_double.
21334 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21335 (lround): Define using libm_alias_double.
21336 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21337 (nearbyint): Define using libm_alias_double.
21338 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21339 (rint): Define using libm_alias_double.
21340 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21341 (round): Define using libm_alias_double.
21342 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21343 (trunc): Define using libm_alias_double.
21344
21345 2017-11-27 Florian Weimer <fweimer@redhat.com>
21346
21347 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21348 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21349 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21350 (tests): Add tst-mlock2.
21351 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21352 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21353 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21354 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21355 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21356 for mlock. Document mlock2.
21357
21358 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21359
21360 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21361 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21362 Likewise.
21363 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21364 Likewise.
21365 * sysdeps/x86/Makeconfig: New file.
21366 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21367 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21368 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21369 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21370 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21371 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21372 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21373 Likewise.
21374 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21375 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21376 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21377 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21378 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21379 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21380 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21381 * manual/math.texi (Mathematics): Document support for _Float64x.
21382 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21383 * stdlib/Versions (GLIBC_2.27): Likewise.
21384 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21385 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21386 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21387 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21388 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21389 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21390 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21391 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21392 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21393 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21394 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21395 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21397 Likewise.
21398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21399 Likewise.
21400 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21401 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21402 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21403 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21404 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21405 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21406 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21407 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21408 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21409 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21410 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21411 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21412 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21413 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21414
21415 2017-11-27 Andreas Schwab <schwab@suse.de>
21416
21417 * elf/Makefile (dl-routines): Add dl-sort-maps.
21418 * elf/dl-sort-maps.c: New file.
21419 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21420 (_dl_sort_maps): Declare.
21421 * elf/dl-fini.c (_dl_sort_fini): Remove.
21422 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21423 * elf/dl-close.c (_dl_close_worker): Likewise.
21424 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21425 open-coding it.
21426 * elf/dl-open.c (dl_open_worker): Likewise.
21427
21428 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21429
21430 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21431 using libm_alias_float128.
21432 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21433 Likewise.
21434 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21435 Likewise.
21436 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21437 (setpayloadsigf128): Likewise.
21438 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21439 Likewise.
21440 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21441 Likewise.
21442
21443 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21444 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21445 -mfloat128 to CFLAGS.
21446 ($(foreach
21447 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21448 Likewise.
21449 (CFLAGS-libm-test-support-float64x.c): New variable.
21450 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21451 $(f128-loader-link) to gnulib-tests.
21452
21453 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21454 (libm_alias_float128_other_r): If
21455 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21456 alias.
21457 (libm_alias_float128_r): Add semicolon after weak_alias call.
21458 * sysdeps/generic/libm-alias-ldouble.h
21459 (libm_alias_ldouble_other_r_f128): New macro.
21460 (libm_alias_ldouble_other_r_f64x): Likewise.
21461 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21462 and libm_alias_ldouble_other_r_f64x.
21463 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21464 * sysdeps/ieee754/ldbl-opt/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
21470 * stdlib/strfroml.c: Always include <stdlib.h>.
21471 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21472 undefine as macro and define as weak alias.
21473 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21474 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21475 <stdlib.h>.
21476 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21477 Define and later undefine as macro and define as weak alias.
21478
21479 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21480 Define and later undefine as macro. Define as weak alias if
21481 [!USE_WIDE_CHAR].
21482 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21483 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21484 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21485 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21486 Define and later undefine as macro. Define as weak alias if
21487 [!USE_WIDE_CHAR].
21488 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21489 Define and later undefine as macro. Define as weak alias if
21490 [USE_WIDE_CHAR].
21491 * sysdeps/ieee754/float128/strtof128_l.c
21492 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21493 Define and later undefine as macro. Define as weak alias if
21494 [!USE_WIDE_CHAR].
21495 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21496 Define and later undefine as macro. Define as weak alias if
21497 [USE_WIDE_CHAR].
21498 * sysdeps/ieee754/ldbl-128/strtold_l.c
21499 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21500 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21501 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21502 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21503 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21504 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21505 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21506 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21507 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21508 * sysdeps/ieee754/ldbl-96/strtold_l.c
21509 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21510 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21511 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21512 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21513
21514 * math/test-float64x.h: New file.
21515 * math/Makefile (type-float64x-yes): New variable.
21516 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21517
21518 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21519 function-like macro.
21520 (min_of_type_): Likewise.
21521 (min_of_type_l): Likewise.
21522 (min_of_type_f128): Likewise.
21523 (min_of_type): Pass () as last argument of __MATH_TG.
21524
21525 * stdlib/tst-strtod-round-skeleton.c
21526 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21527 headers.
21528
21529 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21530 for combinations of long double with _Float64 and _Float64x.
21531
21532 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21533 (__DECL_SIMD_cosf32): Likewise.
21534 (__DECL_SIMD_cosf64): Likewise.
21535 (__DECL_SIMD_cosf32x): Likewise.
21536 (__DECL_SIMD_cosf64x): Likewise.
21537 (__DECL_SIMD_cosf128x): Likewise.
21538 (__DECL_SIMD_sinf16): Likewise.
21539 (__DECL_SIMD_sinf32): Likewise.
21540 (__DECL_SIMD_sinf64): Likewise.
21541 (__DECL_SIMD_sinf32x): Likewise.
21542 (__DECL_SIMD_sinf64x): Likewise.
21543 (__DECL_SIMD_sinf128x): Likewise.
21544 (__DECL_SIMD_sincosf16): Likewise.
21545 (__DECL_SIMD_sincosf32): Likewise.
21546 (__DECL_SIMD_sincosf64): Likewise.
21547 (__DECL_SIMD_sincosf32x): Likewise.
21548 (__DECL_SIMD_sincosf64x): Likewise.
21549 (__DECL_SIMD_sincosf128x): Likewise.
21550 (__DECL_SIMD_logf16): Likewise.
21551 (__DECL_SIMD_logf32): Likewise.
21552 (__DECL_SIMD_logf64): Likewise.
21553 (__DECL_SIMD_logf32x): Likewise.
21554 (__DECL_SIMD_logf64x): Likewise.
21555 (__DECL_SIMD_logf128x): Likewise.
21556 (__DECL_SIMD_expf16): Likewise.
21557 (__DECL_SIMD_expf32): Likewise.
21558 (__DECL_SIMD_expf64): Likewise.
21559 (__DECL_SIMD_expf32x): Likewise.
21560 (__DECL_SIMD_expf64x): Likewise.
21561 (__DECL_SIMD_expf128x): Likewise.
21562 (__DECL_SIMD_powf16): Likewise.
21563 (__DECL_SIMD_powf32): Likewise.
21564 (__DECL_SIMD_powf64): Likewise.
21565 (__DECL_SIMD_powf32x): Likewise.
21566 (__DECL_SIMD_powf64x): Likewise.
21567 (__DECL_SIMD_powf128x): Likewise.
21568
21569 * stdlib/Versions (libc): Move entries for wcstof128 and
21570 wcstof128_l to ....
21571 * wcsmbs/Versions (libc): ... here.
21572 Include <float128-abi.h>.
21573
21574 2017-11-24 Florian Weimer <fweimer@redhat.com>
21575
21576 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21577 bits/mman-shared.h.
21578 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21579 <bits/mman-shared.h>.
21580 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21581 to ...
21582 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21583 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21584 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21585 <bits/mman-shared.h>.
21586
21587 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21588
21589 [BZ #22457]
21590 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21591 posix_memalign/free.
21592 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21593
21594 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21595
21596 [BZ #22469]
21597 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21598 and implement the collation rules for pl from CLDR on top of that.
21599 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21600 of locales to be built for testing.
21601 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21602
21603 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21604
21605 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21606 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21607 libm_alias_ldouble_other.
21608 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21609 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21610 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21611 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21612 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21613 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21614 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21615 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21616 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21617 libm_alias_ldouble_r.
21618 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21619 libm_alias_ldouble_other.
21620 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21621 (log10l): Likewise.
21622 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21623 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21624 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21625 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21626 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21627 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21628 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21629 (atan2l): Likewise.
21630 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21631 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21632 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21633 libm_alias_ldouble.
21634 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21635 (cosl): Likewise.
21636 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21637 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21638 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21639 (expl): Likewise.
21640 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21641 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21642 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21643 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21644 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21645 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21646 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21647 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21648 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21649 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21650 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21651 libm_alias_ldouble.
21652 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21653 libm_alias_ldouble_other.
21654 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21655 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21656 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21657 libm_alias_ldouble.
21658 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21659 libm_alias_ldouble_other.
21660 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21661 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21662 * sysdeps/ia64/fpu/w_lgammal_main.c
21663 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21664 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21665
21666 2017-11-23 Florian Weimer <fweimer@redhat.com>
21667
21668 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21669 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21670 alike. Remove freeres marker.
21671 * malloc/arena.c (arena_thread_freeres): Call
21672 tcache_thread_shutdown.
21673
21674 2017-11-23 Florian Weimer <fweimer@redhat.com>
21675
21676 [BZ #22459]
21677 Export nscd hash function as __nss_hash.
21678 * include/nss.h (__nss_hash): Declare.
21679 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21680 symbol.
21681 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21682 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21683 of __nscd_hash.
21684 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21685 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21686 * nss/Makefiles (routines): Add nss_hash.
21687 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21688 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21689 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21690 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21691
21692 2017-11-23 Florian Weimer <fweimer@redhat.com>
21693
21694 [BZ #22478]
21695 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21696 Return error code, not -1.
21697 * signal/tst-sigwait-eintr.c: New file.
21698 * signal/Makefile (tests): Add tst-sigwait-eintr.
21699
21700 2017-11-23 Florian Weimer <fweimer@redhat.com>
21701
21702 Linux: Add memfd_create system call wrapper
21703 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21704 tst-memfd_create.
21705 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21706 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21707 [__USE_GNU] (memfd_create): Declare.
21708 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21709 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21710 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21711 * sysdeps/unix/sysv/linux/**.abilist: Update.
21712 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21713
21714 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21715
21716 * localedata/gen-locale.sh: Fix typo in variable name.
21717
21718 * resolv/res_debug.c (p_secstodate): Condition definition on
21719 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21720 directly as __p_secstodate, and as a compat symbol. Do not use
21721 libresolv_hidden_def.
21722 * resolv/resolv.h (p_secstodate): Remove macro and function
21723 declaration.
21724 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21725 using p_secstodate.
21726 * include/resolv.h (__p_secstodate): Do not use
21727 libresolv_hidden_proto.
21728 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21729 (tests-internal): ... here.
21730 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21731 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21732 and declare and use __p_secstodate and use compat_symbol_reference
21733 in that case.
21734 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21735 implementation returning 77.
21736
21737 [BZ #22463]
21738 * resolv/res_debug.c: Include <libc-diag.h>.
21739 (p_secstodate): Assert time_t at least as wide as u_long. On
21740 overflow, use integer seconds since the epoch as output, or use
21741 "<overflow>" as output and set errno to EOVERFLOW if integer
21742 seconds since the epoch would be 14 or more characters.
21743 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21744 for sprintf call.
21745 * resolv/tst-p_secstodate.c: New file.
21746 * resolv/Makefile (tests): Add tst-p_secstodate.
21747 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21748
21749 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21750 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21751 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21752
21753 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21754
21755 * posix/regcomp.c (init_word_char): Add comments.
21756
21757 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21758
21759 [BZ #22447]
21760 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21761 strlen to compute length of ut_user and set trailing NUL byte of
21762 result explicitly.
21763
21764 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21765
21766 [BZ #15537]
21767 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21768 using “copy "iso14651_t1"” and then implementing the
21769 collation rules for lv from CLDR on top of that.
21770 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21771 of locales to be built for testing.
21772 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21773 sorting.
21774
21775 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21776
21777 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21778 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21779 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21780 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21781 [__USE_MISC] (MADV_HWPOISON): New macro.
21782 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21783
21784 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21785
21786 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21787 -Wmissing-braces on GCC 4.9.
21788
21789 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21790
21791 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21792 * sysdeps/s390/s390-32/start.S (_start): Likewise
21793 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21794 (thread_start): Likewise.
21795 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21796 (thread_start): Likewise.
21797 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21798 (__makecontext_ret): Likewise.
21799 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21800 (__makecontext_ret): Likewise.
21801
21802 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21803
21804 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21805 __wcschrnul): Remove attribute_hidden.
21806
21807 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21808
21809 regex: don't assume uint64_t or uint32_t
21810 This avoids -Werror=overflow errors for 32-bit systems in
21811 the 64-bit case. Problem reported by Joseph Myers in:
21812 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21813 Also, when this code is used in Gnulib it ports to platforms
21814 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21815 them, and on some 32-bit compilers there is no uint64_t.
21816 Problem reported by Gianluigi Tiesi in:
21817 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21818 * posix/regcomp.c (init_word_char): Don't assume that the types
21819 uint64_t and uint32_t exist. Adapted from Gnulib patch
21820 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21821 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21822
21823 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21824
21825 * sysdeps/aarch64/memset-reg.h: New file.
21826 * sysdeps/aarch64/memset.S: Use it.
21827 (__memset): Rename to MEMSET macro.
21828 [ZVA_MACRO]: Use zva_macro.
21829 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21830 Add memset_generic and memset_falkor.
21831 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21832 (__libc_ifunc_impl_list): Add memset ifuncs.
21833 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21834 local variable zva_size.
21835 * sysdeps/aarch64/multiarch/memset.c: New file.
21836 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21837 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21838 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21839 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21840 (DCZID_DZP_MASK): New macro.
21841 (DCZID_BS_MASK): Likewise.
21842 (init_cpu_features): Read and set zva_size.
21843 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21844 (struct cpu_features): New member zva_size.
21845
21846 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21847 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21848 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21849
21850 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21851 backwards. Fix timing computation.
21852 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21853 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21854 on memset by N at a time. Fix timing computation.
21855
21856 2017-11-20 Florian Weimer <fweimer@redhat.com>
21857
21858 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21859 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21860
21861 2017-11-19 Florian Weimer <fweimer@redhat.com>
21862
21863 manual: Document mprotect
21864 * manual/memory.texi (Memory Protection): New section.
21865 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21866 documentation of PROT_* flags and reference the Memory Protection
21867 section instead.
21868
21869 2017-11-19 Florian Weimer <fweimer@redhat.com>
21870
21871 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21872 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21873 (Scatter-Gather): ... to here. Remove misleading comment.
21874
21875 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21876
21877 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21878 style.
21879
21880 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21881 when /proc/<pid>/setgroups does not exist.
21882
21883 2017-11-18 Florian Weimer <fweimer@redhat.com>
21884
21885 * sysdeps/unix/sysv/linux/tst-ttyname.c
21886 (become_root_in_mount_ns): Remove.
21887 (do_in_chroot_1): Call support_enter_mount_namespace.
21888 (do_in_chroot_2): Likewise.
21889 (do_test): Call support_become_root early.
21890
21891 2017-11-18 Florian Weimer <fweimer@redhat.com>
21892
21893 * support/namespace.h (support_enter_mount_namespace): Declare.
21894 * support/support_enter_mount_namespace.c: New file.
21895 * support/Makefile (libsupport-routines): Add
21896 support_enter_mount_namespace.
21897
21898 2017-11-18 Florian Weimer <fweimer@redhat.com>
21899
21900 * support/temp_file.c (support_create_temp_directory): Use
21901 test_dir and do not rely on the presence of the XXXXXX suffix.
21902 * support/temp_file.h (support_create_temp_directory): Update
21903 comment.
21904 * support/tst-xreadlink.c (do_test): Adjust.
21905 * support/support_chroot.c (support_chroot_create): Likewise.
21906
21907 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21908
21909 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21910 macro.
21911 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21912 htm-no-suspend.
21913
21914 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21915
21916 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21917 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21918 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21919 (ceill): Define using libm_alias_ldouble.
21920 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21921 <libm-alias-ldouble.h>.
21922 (copysignl): Define using libm_alias_ldouble.
21923 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21924 (fabsl): Define using libm_alias_ldouble.
21925 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21926 (floorl): Define using libm_alias_ldouble.
21927 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21928 (fmaxl): Define using libm_alias_ldouble.
21929 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21930 (fminl): Define using libm_alias_ldouble.
21931 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21932 (llrintl): Define using libm_alias_ldouble.
21933 (lrintl): Likewise.
21934 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21935 <libm-alias-ldouble.h>.
21936 (nearbyintl): Define using libm_alias_ldouble.
21937 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21938 (truncl): Define using libm_alias_ldouble.
21939 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21940 <libm-alias-ldouble.h>.
21941 (lrintl): Define using libm_alias_ldouble.
21942
21943 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21944 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21945 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21946 (asinhl): Define using libm_alias_ldouble.
21947 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21948 (atanl): Define using libm_alias_ldouble.
21949 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21950 (cbrtl): Define using libm_alias_ldouble.
21951 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21952 (ceill): Define using libm_alias_ldouble.
21953 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21954 (copysignl): Define using libm_alias_ldouble.
21955 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21956 (fabsl): Define using libm_alias_ldouble.
21957 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21958 (floorl): Define using libm_alias_ldouble.
21959 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21960 (fmaxl): Define using libm_alias_ldouble.
21961 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21962 (fminl): Define using libm_alias_ldouble.
21963 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21964 (frexpl): Define using libm_alias_ldouble.
21965 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21966 (llrintl): Define using libm_alias_ldouble.
21967 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21968 (logbl): Define using libm_alias_ldouble.
21969 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21970 (lrintl): Define using libm_alias_ldouble.
21971 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21972 (nearbyintl): Define using libm_alias_ldouble.
21973 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21974 (nextafterl): Define using libm_alias_ldouble.
21975 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21976 (remquol): Define using libm_alias_ldouble.
21977 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21978 (rintl): Define using libm_alias_ldouble.
21979 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21980 (truncl): Define using libm_alias_ldouble.
21981 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21982 (fmaxl): Define using libm_alias_ldouble.
21983 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21984 (fminl): Define using libm_alias_ldouble.
21985
21986 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21987 to C syntax instead of availability and properties of types.
21988 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21989 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21990 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21991 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21992 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21993 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21994
21995 2017-11-17 Florian Weimer <fweimer@redhat.com>
21996
21997 support_become_root: Enable file creation in namespaces.
21998 * support/support_become_root.c (setup_mapping): New function.
21999 (support_become_root): Call it.
22000
22001 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22002
22003 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22004 macro.
22005
22006 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22007
22008 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22009 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22010
22011 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22012
22013 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22014
22015 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22016 version to 4.14.
22017
22018 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22019
22020 * INSTALL: Fix botched up regeneration.
22021
22022 * NEWS: Update sourceare link to https.
22023 * configure.ac: Likewise.
22024 * crypt/md5test-giant.c: Likewise.
22025 * dlfcn/bug-atexit1.c: Likewise.
22026 * dlfcn/bug-atexit2.c: Likewise.
22027 * localedata/README: Likewise.
22028 * malloc/tst-mallocfork.c: Likewise.
22029 * manual/install.texi: Likewise.
22030 * nptl/tst-pthread-getattr.c: Likewise.
22031 * stdio-common/tst-fgets.c: Likewise.
22032 * stdio-common/tst-fwrite.c: Likewise.
22033 * sunrpc/Makefile: Likewise.
22034 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22035 * wcsmbs/tst-mbrtowc2.c: Likewise.
22036 * configure: Regenerate.
22037 * INSTALL: Regenerate.
22038
22039 2017-11-15 Martin Sebor <msebor@redhat.com>
22040
22041 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22042 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22043 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22044
22045 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22046
22047 [BZ #22145]
22048 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22049 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22050
22051 [BZ #22145]
22052 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22053 Defer is_pty check until end of the function.
22054 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22055
22056 [BZ #22145]
22057 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22058 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22059 (ttyname): Likewise.
22060 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22061 (__ttyname_r): Likewise.
22062
22063 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22064 int to bool.
22065
22066 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22067
22068 * manual/terminal.texi (Is It a Terminal):
22069 Mention ENODEV for ttyname and ttyname_r.
22070
22071 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22072
22073 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22074 constant and macro.
22075
22076 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22077 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22078 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22079 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22080 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22081 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22082
22083 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22084
22085 * signal/sigrelse.c (sigrelse): Optimize implementation.
22086
22087 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22088 (__sigpause): Rely on __sigsuspend to implement single thread
22089 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22090
22091 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22092
22093 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22094 kernel version to 4.14.
22095
22096 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22097
22098 [BZ #22442]
22099 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22100 Check if ifname is too long.
22101
22102 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22103
22104 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22105
22106 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22107
22108 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22109 was accidentally lost.
22110
22111 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22112
22113 * localedata/locales/az_IR: Add standard copyright header.
22114
22115 2017-11-15 Florian Weimer <fweimer@redhat.com>
22116
22117 [BZ #22439]
22118 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22119 not just the top one. Output a new "subheaps" statistic.
22120
22121 2017-11-15 Florian Weimer <fweimer@redhat.com>
22122
22123 [BZ #22408]
22124 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22125 under the per-arena lock.
22126 * malloc/Makefile (tests): Add tst-malloc_info.
22127 (tst-malloc_info): Link with libpthread.
22128 * malloc/tst-malloc_info.c: New file.
22129
22130 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22131
22132 [BZ #21660]
22133 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22134 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22135 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22136 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22137 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22138 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22139 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22140 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22141 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22142 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22143 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22144 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22145 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22146 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22147 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22148 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22149 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22150 (__floating_type): Likewise.
22151 (__real_integer_type): Likewise.
22152 (__complex_integer_type): Likewise.
22153 (__expr_is_real): Likewise.
22154 (__tgmath_real_type_sub): Likewise.
22155 (__tgmath_real_type): Likewise.
22156 (__tgmath_complex_type_sub): Likewise.
22157 (__tgmath_complex_type): Likewise.
22158 (__TGMATH_F128): Likewise.
22159 (__TGMATH_CF128): Likewise.
22160 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22161 new macros.
22162 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22163 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22164 Likewise.
22165 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22166 Likewise.
22167 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22168 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22169 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22170 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22171 Likewise.
22172 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22173 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22174 Likewise.
22175 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22176 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22177 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22178 Likewise.
22179 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22180 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22181 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22182 (cimag): Likewise.
22183 (creal): Likewise.
22184
22185 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22186
22187 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22188 for stpncpy calls for GCC 8.
22189 (test_strncat): Disable -Wstringop-truncation warning for strncat
22190 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22191 strncat call for GCC 7.
22192 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22193 calls for GCC 8.
22194 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22195 trailing NUL.
22196
22197 * string/bug-strncat1.c: Include <libc-diag.h>.
22198 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22199
22200 2017-11-13 Claude Paroz <claude@2xlibre.net>
22201
22202 [BZ #22387]
22203 * localedata/locales/aa_DJ: Improved readibility by replacing
22204 <Uxxxx> sequences in the ASCII printable range by their ASCII
22205 character equivalents.
22206 * localedata/locales/aa_ER: Likewise.
22207 * localedata/locales/aa_ER@saaho: Likewise.
22208 * localedata/locales/aa_ET: Likewise.
22209 * localedata/locales/af_ZA: Likewise.
22210 * localedata/locales/agr_PE: Likewise.
22211 * localedata/locales/ak_GH: Likewise.
22212 * localedata/locales/am_ET: Likewise.
22213 * localedata/locales/anp_IN: Likewise.
22214 * localedata/locales/ar_AE: Likewise.
22215 * localedata/locales/ar_BH: Likewise.
22216 * localedata/locales/ar_DZ: Likewise.
22217 * localedata/locales/ar_EG: Likewise.
22218 * localedata/locales/ar_IN: Likewise.
22219 * localedata/locales/ar_IQ: Likewise.
22220 * localedata/locales/ar_JO: Likewise.
22221 * localedata/locales/ar_KW: Likewise.
22222 * localedata/locales/ar_LB: Likewise.
22223 * localedata/locales/ar_LY: Likewise.
22224 * localedata/locales/ar_MA: Likewise.
22225 * localedata/locales/ar_OM: Likewise.
22226 * localedata/locales/ar_QA: Likewise.
22227 * localedata/locales/ar_SA: Likewise.
22228 * localedata/locales/ar_SD: Likewise.
22229 * localedata/locales/ar_SS: Likewise.
22230 * localedata/locales/ar_SY: Likewise.
22231 * localedata/locales/ar_TN: Likewise.
22232 * localedata/locales/ar_YE: Likewise.
22233 * localedata/locales/as_IN: Likewise.
22234 * localedata/locales/ast_ES: Likewise.
22235 * localedata/locales/ayc_PE: Likewise.
22236 * localedata/locales/az_AZ: Likewise.
22237 * localedata/locales/az_IR: Likewise.
22238 * localedata/locales/be_BY: Likewise.
22239 * localedata/locales/be_BY@latin: Likewise.
22240 * localedata/locales/bem_ZM: Likewise.
22241 * localedata/locales/ber_DZ: Likewise.
22242 * localedata/locales/ber_MA: Likewise.
22243 * localedata/locales/bg_BG: Likewise.
22244 * localedata/locales/bhb_IN: Likewise.
22245 * localedata/locales/bho_IN: Likewise.
22246 * localedata/locales/bi_VU: Likewise.
22247 * localedata/locales/bn_BD: Likewise.
22248 * localedata/locales/bn_IN: Likewise.
22249 * localedata/locales/bo_CN: Likewise.
22250 * localedata/locales/bo_IN: Likewise.
22251 * localedata/locales/br_FR: Likewise.
22252 * localedata/locales/brx_IN: Likewise.
22253 * localedata/locales/bs_BA: Likewise.
22254 * localedata/locales/byn_ER: Likewise.
22255 * localedata/locales/ca_AD: Likewise.
22256 * localedata/locales/ca_ES: Likewise.
22257 * localedata/locales/ca_FR: Likewise.
22258 * localedata/locales/ca_IT: Likewise.
22259 * localedata/locales/ce_RU: Likewise.
22260 * localedata/locales/chr_US: Likewise.
22261 * localedata/locales/cmn_TW: Likewise.
22262 * localedata/locales/crh_UA: Likewise.
22263 * localedata/locales/cs_CZ: Likewise.
22264 * localedata/locales/csb_PL: Likewise.
22265 * localedata/locales/cv_RU: Likewise.
22266 * localedata/locales/cy_GB: Likewise.
22267 * localedata/locales/da_DK: Likewise.
22268 * localedata/locales/de_AT: Likewise.
22269 * localedata/locales/de_BE: Likewise.
22270 * localedata/locales/de_CH: Likewise.
22271 * localedata/locales/de_DE: Likewise.
22272 * localedata/locales/de_IT: Likewise.
22273 * localedata/locales/de_LI: Likewise.
22274 * localedata/locales/de_LU: Likewise.
22275 * localedata/locales/doi_IN: Likewise.
22276 * localedata/locales/dv_MV: Likewise.
22277 * localedata/locales/dz_BT: Likewise.
22278 * localedata/locales/el_CY: Likewise.
22279 * localedata/locales/el_GR: Likewise.
22280 * localedata/locales/en_AG: Likewise.
22281 * localedata/locales/en_AU: Likewise.
22282 * localedata/locales/en_BW: Likewise.
22283 * localedata/locales/en_CA: Likewise.
22284 * localedata/locales/en_DK: Likewise.
22285 * localedata/locales/en_GB: Likewise.
22286 * localedata/locales/en_HK: Likewise.
22287 * localedata/locales/en_IE: Likewise.
22288 * localedata/locales/en_IL: Likewise.
22289 * localedata/locales/en_IN: Likewise.
22290 * localedata/locales/en_NG: Likewise.
22291 * localedata/locales/en_NZ: Likewise.
22292 * localedata/locales/en_PH: Likewise.
22293 * localedata/locales/en_SG: Likewise.
22294 * localedata/locales/en_US: Likewise.
22295 * localedata/locales/en_ZA: Likewise.
22296 * localedata/locales/en_ZM: Likewise.
22297 * localedata/locales/en_ZW: Likewise.
22298 * localedata/locales/eo: Likewise.
22299 * localedata/locales/es_AR: Likewise.
22300 * localedata/locales/es_BO: Likewise.
22301 * localedata/locales/es_CL: Likewise.
22302 * localedata/locales/es_CO: Likewise.
22303 * localedata/locales/es_CR: Likewise.
22304 * localedata/locales/es_CU: Likewise.
22305 * localedata/locales/es_DO: Likewise.
22306 * localedata/locales/es_EC: Likewise.
22307 * localedata/locales/es_ES: Likewise.
22308 * localedata/locales/es_GT: Likewise.
22309 * localedata/locales/es_HN: Likewise.
22310 * localedata/locales/es_MX: Likewise.
22311 * localedata/locales/es_NI: Likewise.
22312 * localedata/locales/es_PA: Likewise.
22313 * localedata/locales/es_PE: Likewise.
22314 * localedata/locales/es_PR: Likewise.
22315 * localedata/locales/es_PY: Likewise.
22316 * localedata/locales/es_SV: Likewise.
22317 * localedata/locales/es_US: Likewise.
22318 * localedata/locales/es_UY: Likewise.
22319 * localedata/locales/es_VE: Likewise.
22320 * localedata/locales/et_EE: Likewise.
22321 * localedata/locales/eu_ES: Likewise.
22322 * localedata/locales/eu_ES@euro: Likewise.
22323 * localedata/locales/fa_IR: Likewise.
22324 * localedata/locales/ff_SN: Likewise.
22325 * localedata/locales/fi_FI: Likewise.
22326 * localedata/locales/fil_PH: Likewise.
22327 * localedata/locales/fo_FO: Likewise.
22328 * localedata/locales/fr_BE: Likewise.
22329 * localedata/locales/fr_CA: Likewise.
22330 * localedata/locales/fr_CH: Likewise.
22331 * localedata/locales/fr_FR: Likewise.
22332 * localedata/locales/fr_LU: Likewise.
22333 * localedata/locales/fur_IT: Likewise.
22334 * localedata/locales/fy_DE: Likewise.
22335 * localedata/locales/fy_NL: Likewise.
22336 * localedata/locales/ga_IE: Likewise.
22337 * localedata/locales/gd_GB: Likewise.
22338 * localedata/locales/gez_ER: Likewise.
22339 * localedata/locales/gez_ET: Likewise.
22340 * localedata/locales/gl_ES: Likewise.
22341 * localedata/locales/gu_IN: Likewise.
22342 * localedata/locales/gv_GB: Likewise.
22343 * localedata/locales/ha_NG: Likewise.
22344 * localedata/locales/hak_TW: Likewise.
22345 * localedata/locales/he_IL: Likewise.
22346 * localedata/locales/hi_IN: Likewise.
22347 * localedata/locales/hif_FJ: Likewise.
22348 * localedata/locales/hne_IN: Likewise.
22349 * localedata/locales/hr_HR: Likewise.
22350 * localedata/locales/hsb_DE: Likewise.
22351 * localedata/locales/ht_HT: Likewise.
22352 * localedata/locales/hu_HU: Likewise.
22353 * localedata/locales/hy_AM: Likewise.
22354 * localedata/locales/i18n: Likewise.
22355 * localedata/locales/ia_FR: Likewise.
22356 * localedata/locales/id_ID: Likewise.
22357 * localedata/locales/ig_NG: Likewise.
22358 * localedata/locales/ik_CA: Likewise.
22359 * localedata/locales/is_IS: Likewise.
22360 * localedata/locales/it_CH: Likewise.
22361 * localedata/locales/it_IT: Likewise.
22362 * localedata/locales/iu_CA: Likewise.
22363 * localedata/locales/ja_JP: Likewise.
22364 * localedata/locales/ka_GE: Likewise.
22365 * localedata/locales/kk_KZ: Likewise.
22366 * localedata/locales/kl_GL: Likewise.
22367 * localedata/locales/kn_IN: Likewise.
22368 * localedata/locales/ko_KR: Likewise.
22369 * localedata/locales/kok_IN: Likewise.
22370 * localedata/locales/ks_IN: Likewise.
22371 * localedata/locales/ks_IN@devanagari: Likewise.
22372 * localedata/locales/ku_TR: Likewise.
22373 * localedata/locales/kw_GB: Likewise.
22374 * localedata/locales/ky_KG: Likewise.
22375 * localedata/locales/lb_LU: Likewise.
22376 * localedata/locales/lg_UG: Likewise.
22377 * localedata/locales/li_BE: Likewise.
22378 * localedata/locales/li_NL: Likewise.
22379 * localedata/locales/lij_IT: Likewise.
22380 * localedata/locales/ln_CD: Likewise.
22381 * localedata/locales/lo_LA: Likewise.
22382 * localedata/locales/lt_LT: Likewise.
22383 * localedata/locales/lv_LV: Likewise.
22384 * localedata/locales/lzh_TW: Likewise.
22385 * localedata/locales/mag_IN: Likewise.
22386 * localedata/locales/mai_IN: Likewise.
22387 * localedata/locales/mg_MG: Likewise.
22388 * localedata/locales/mhr_RU: Likewise.
22389 * localedata/locales/mi_NZ: Likewise.
22390 * localedata/locales/mk_MK: Likewise.
22391 * localedata/locales/ml_IN: Likewise.
22392 * localedata/locales/mn_MN: Likewise.
22393 * localedata/locales/mni_IN: Likewise.
22394 * localedata/locales/mr_IN: Likewise.
22395 * localedata/locales/ms_MY: Likewise.
22396 * localedata/locales/mt_MT: Likewise.
22397 * localedata/locales/my_MM: Likewise.
22398 * localedata/locales/nan_TW: Likewise.
22399 * localedata/locales/nan_TW@latin: Likewise.
22400 * localedata/locales/nb_NO: Likewise.
22401 * localedata/locales/nds_DE: Likewise.
22402 * localedata/locales/nds_NL: Likewise.
22403 * localedata/locales/ne_NP: Likewise.
22404 * localedata/locales/nhn_MX: Likewise.
22405 * localedata/locales/niu_NU: Likewise.
22406 * localedata/locales/niu_NZ: Likewise.
22407 * localedata/locales/nl_AW: Likewise.
22408 * localedata/locales/nl_BE: Likewise.
22409 * localedata/locales/nl_NL: Likewise.
22410 * localedata/locales/nn_NO: Likewise.
22411 * localedata/locales/nr_ZA: Likewise.
22412 * localedata/locales/nso_ZA: Likewise.
22413 * localedata/locales/oc_FR: Likewise.
22414 * localedata/locales/om_ET: Likewise.
22415 * localedata/locales/om_KE: Likewise.
22416 * localedata/locales/or_IN: Likewise.
22417 * localedata/locales/os_RU: Likewise.
22418 * localedata/locales/pa_IN: Likewise.
22419 * localedata/locales/pa_PK: Likewise.
22420 * localedata/locales/pap_AW: Likewise.
22421 * localedata/locales/pap_CW: Likewise.
22422 * localedata/locales/pl_PL: Likewise.
22423 * localedata/locales/ps_AF: Likewise.
22424 * localedata/locales/pt_BR: Likewise.
22425 * localedata/locales/pt_PT: Likewise.
22426 * localedata/locales/quz_PE: Likewise.
22427 * localedata/locales/raj_IN: Likewise.
22428 * localedata/locales/ro_RO: Likewise.
22429 * localedata/locales/ru_RU: Likewise.
22430 * localedata/locales/ru_UA: Likewise.
22431 * localedata/locales/rw_RW: Likewise.
22432 * localedata/locales/sa_IN: Likewise.
22433 * localedata/locales/sat_IN: Likewise.
22434 * localedata/locales/sc_IT: Likewise.
22435 * localedata/locales/sd_IN: Likewise.
22436 * localedata/locales/sd_IN@devanagari: Likewise.
22437 * localedata/locales/se_NO: Likewise.
22438 * localedata/locales/sgs_LT: Likewise.
22439 * localedata/locales/shs_CA: Likewise.
22440 * localedata/locales/si_LK: Likewise.
22441 * localedata/locales/sid_ET: Likewise.
22442 * localedata/locales/sk_SK: Likewise.
22443 * localedata/locales/sl_SI: Likewise.
22444 * localedata/locales/sm_WS: Likewise.
22445 * localedata/locales/so_DJ: Likewise.
22446 * localedata/locales/so_ET: Likewise.
22447 * localedata/locales/so_KE: Likewise.
22448 * localedata/locales/so_SO: Likewise.
22449 * localedata/locales/sq_AL: Likewise.
22450 * localedata/locales/sq_MK: Likewise.
22451 * localedata/locales/sr_ME: Likewise.
22452 * localedata/locales/sr_RS: Likewise.
22453 * localedata/locales/sr_RS@latin: Likewise.
22454 * localedata/locales/ss_ZA: Likewise.
22455 * localedata/locales/st_ZA: Likewise.
22456 * localedata/locales/sv_FI: Likewise.
22457 * localedata/locales/sv_SE: Likewise.
22458 * localedata/locales/sw_KE: Likewise.
22459 * localedata/locales/sw_TZ: Likewise.
22460 * localedata/locales/szl_PL: Likewise.
22461 * localedata/locales/ta_IN: Likewise.
22462 * localedata/locales/ta_LK: Likewise.
22463 * localedata/locales/tcy_IN: Likewise.
22464 * localedata/locales/te_IN: Likewise.
22465 * localedata/locales/tg_TJ: Likewise.
22466 * localedata/locales/th_TH: Likewise.
22467 * localedata/locales/the_NP: Likewise.
22468 * localedata/locales/ti_ER: Likewise.
22469 * localedata/locales/ti_ET: Likewise.
22470 * localedata/locales/tig_ER: Likewise.
22471 * localedata/locales/tk_TM: Likewise.
22472 * localedata/locales/tl_PH: Likewise.
22473 * localedata/locales/tn_ZA: Likewise.
22474 * localedata/locales/to_TO: Likewise.
22475 * localedata/locales/tpi_PG: Likewise.
22476 * localedata/locales/tr_CY: Likewise.
22477 * localedata/locales/tr_TR: Likewise.
22478 * localedata/locales/ts_ZA: Likewise.
22479 * localedata/locales/tt_RU: Likewise.
22480 * localedata/locales/tt_RU@iqtelif: Likewise.
22481 * localedata/locales/ug_CN: Likewise.
22482 * localedata/locales/uk_UA: Likewise.
22483 * localedata/locales/unm_US: Likewise.
22484 * localedata/locales/ur_IN: Likewise.
22485 * localedata/locales/ur_PK: Likewise.
22486 * localedata/locales/uz_UZ: Likewise.
22487 * localedata/locales/uz_UZ@cyrillic: Likewise.
22488 * localedata/locales/ve_ZA: Likewise.
22489 * localedata/locales/vi_VN: Likewise.
22490 * localedata/locales/wa_BE: Likewise.
22491 * localedata/locales/wae_CH: Likewise.
22492 * localedata/locales/wal_ET: Likewise.
22493 * localedata/locales/wo_SN: Likewise.
22494 * localedata/locales/xh_ZA: Likewise.
22495 * localedata/locales/yi_US: Likewise.
22496 * localedata/locales/yo_NG: Likewise.
22497 * localedata/locales/yue_HK: Likewise.
22498 * localedata/locales/yuw_PG: Likewise.
22499 * localedata/locales/zh_CN: Likewise.
22500 * localedata/locales/zh_HK: Likewise.
22501 * localedata/locales/zh_SG: Likewise.
22502 * localedata/locales/zh_TW: Likewise.
22503 * localedata/locales/zu_ZA: Likewise.
22504
22505 2017-11-13 Florian Weimer <fweimer@redhat.com>
22506
22507 * support/next_to_fault.h, support/next_to_fault.c: New files.
22508 * support/Makefile (libsupport-routines): Add next_to_fault.
22509 * resolv/tst-inet_pton.c (struct next_to_fault)
22510 (next_to_fault_allocate, next_to_fault_free): Remove.
22511 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22512
22513 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22514
22515 * elf/dl-support.c: Include <dl-procruntime.c>.
22516 * include/link.h: Include <link_map.h>.
22517 * sysdeps/generic/dl-procruntime.c: New file.
22518 * sysdeps/generic/link_map.h: Likewise.
22519 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22520 the writable ld.so namespace.
22521
22522 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22523
22524 timezone: pacify GCC -Wstringop-truncation
22525 Problem reported by Martin Sebor in:
22526 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22527 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22528
22529 2017-11-12 Florian Weimer <fweimer@redhat.com>
22530
22531 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22532 tst-xreadlink.
22533 (tests): Add tst-xreadlink.
22534 * support/support.h (xstrndup): Declare.
22535 * support/xunistd.h (xunlink, xreadlink): Declare.
22536 * support/temp_file.h (support_create_temp_directory): Declare.
22537 * support/temp_file.c (support_create_temp_directory): New function.
22538 * support/support_chroot.c (support_chroot_create): Use it.
22539 * support/xreadlink.c: New file.
22540 * support/xstrndup.c: Likewise.
22541 * support/xunlink.c: Likewise.
22542 * support/tst-xreadlink.c: Likewise.
22543
22544 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22545
22546 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22547
22548 2017-11-11 Florian Weimer <fweimer@redhat.com>
22549
22550 [BZ #22409]
22551 [BZ #22412]
22552 * resolv/res_comp.c (printable_string, binary_hnok)
22553 (binary_leading_dash): New functions.
22554 (res_hnok): Reimplement using these functions and ns_name_pton.
22555 (res_ownok): Likewise.
22556 (res_mailok): Reimplement using printable_string, ns_name_pton and
22557 binary_hnok.
22558 (res_dnok): Reimplement using printable_string and ns_name_pton.
22559 * resolv/tst-res_hnok.c (tests): Add additional tests.
22560 (LETTERDIGITS, PRINTABLE): Define.
22561 (do_test): Adjust one_char results.
22562
22563 2017-11-11 Florian Weimer <fweimer@redhat.com>
22564
22565 [BZ #22413]
22566 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22567 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22568
22569 2017-11-11 Florian Weimer <fweimer@redhat.com>
22570
22571 * resolv/tst-ns_name_pton.c: New file.
22572 * resolv/Makefile (tests): Add tst-ns_name_pton.
22573 (tst-ns_name_pton): Link against libresolv.
22574
22575 2017-11-11 Florian Weimer <fweimer@redhat.com>
22576
22577 * resolv/tst-res_hnok.c: New file.
22578 * resolv/Makefile (tests): Add tst-res_hnok.
22579 (tst-res_hnok): Link against libresolv.
22580
22581 2017-11-11 Florian Weimer <fweimer@redhat.com>
22582
22583 * resolv/tst-resolv-network.c: Use test framework instead explicit
22584 main function.
22585
22586 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22587
22588 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22589 <jmp_buf-macros.h>.
22590 [!_ISOMAC] (STR_HELPER): New.
22591 [!_ISOMAC] (STR): Likewise.
22592 [!_ISOMAC] (TEST_SIZE): Likewise.
22593 [!_ISOMAC] (TEST_ALIGN): Likewise.
22594 [!_ISOMAC] (TEST_OFFSET): Likewise.
22595 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22596 field offsets of jmp_buf as well as sigjmp_buf.
22597 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22598 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22599 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22600 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22601 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22602 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22603 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22604 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22605 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22606 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22607 Likewise.
22608 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22609 Likewise.
22610 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22612 Likewise.
22613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22614 Likewise.
22615 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22616 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22617 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22618 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22619 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22620 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22621 Likewise.
22622 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22623 Likewise.
22624 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22625 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22626 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22627
22628 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22629
22630 * include/float.h
22631 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22632 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22633 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22634 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22635 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22636 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22637 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22638 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22639 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22640 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22641 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22642 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22643 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22644 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22645 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22646 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22647 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22648 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22649 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22650 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22651 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22652 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22653 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22654 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22655 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22656 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22657 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22658 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22659 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22660 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22661 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22662 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22663 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22664 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22665 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22666 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22667 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22668 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22669 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22670 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22671 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22672 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22673 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22674 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22675 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22676 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22677 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22678 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22679 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22680 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22681 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22682 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22683 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22684 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22685 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22686 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22687 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22688 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22689 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22690 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22691 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22692 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22693 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22694 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22695 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22696 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22697 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22698 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22699 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22700 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22701 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22702 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22703 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22704 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22705 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22706 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22707 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22708 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22709 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22710 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22711 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22712 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22713 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22714 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22715 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22716 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22717 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22718 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22719
22720 * stdlib/tst-strtod.h (F16): New macro.
22721 (F32): Likewise.
22722 (F64): Likewise.
22723 (F32X): Likewise.
22724 (F64X): Likewise.
22725 (F128X): Likewise.
22726 (IF_FLOAT16): Likewise.
22727 (IF_FLOAT32): Likewise.
22728 (IF_FLOAT64): Likewise.
22729 (IF_FLOAT32X): Likewise.
22730 (IF_FLOAT64X): Likewise.
22731 (IF_FLOAT128X): Likewise.
22732 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22733 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22734 (STRTOD_TEST_FOREACH): Likewise.
22735 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22736 (CHOOSE_f64): Likewise.
22737 (CHOOSE_f32x): Likewise.
22738 (CHOOSE_f64x): Likewise.
22739
22740 2017-11-07 Andreas Schwab <schwab@suse.de>
22741
22742 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22743
22744 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22745
22746 [BZ #22403]
22747 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22748 to be escaped.
22749 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22750 to be escaped.
22751
22752 2017-11-07 Claude Paroz <claude@2xlibre.net>
22753
22754 [BZ #22403]
22755 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22756 to be escaped.
22757 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22758 to be escaped.
22759 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22760 to be escaped.
22761
22762 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22763
22764 [BZ #22298]
22765 * nptl/allocatestack.c (allocate_stack): Check if
22766 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22767 __PTHREAD_MUTEX_HAVE_PREV is defined.
22768 * nptl/descr.h (pthread): Likewise.
22769 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22770 Likewise.
22771 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22772 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22773 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22774 * sysdeps/nptl/bits/thread-shared-types.h
22775 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22776 defines.
22777 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22778 of __WORDSIZE for internal layout.
22779 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22780 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22781 instead of __WORDSIZE whether to use an union for __spins and __list
22782 fields.
22783 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22784 case.
22785 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22786 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22787 defines.
22788 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22789 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22790 Likewise.
22791 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22792 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22793 Likewise.
22794 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22795 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22796 Likewise.
22797 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22798 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22799 Likewise.
22800 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22801 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22802 Likewise.
22803 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22804 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22805 Likewise.
22806 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22807 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22808 Likewise.
22809 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22810 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22811 Likewise.
22812 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22813 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22814 Likewise.
22815 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22816 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22817 Likewise.
22818 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22819 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22820 Likewise.
22821 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22822 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22823 Likewise.
22824 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22825 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22826 Likewise.
22827 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22828 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22829 Likewise.
22830
22831 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22832 New macros.
22833 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22834 checks for expected input type size.
22835 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22836 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22837 Likewise.
22838 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22839 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22840 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22841 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22842 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22843 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22844 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22845 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22846 superflous runtime assert check.
22847 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22848 Likewise.
22849 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22850 Likewise.
22851 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22852 Likewise.
22853 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22854 Likewise.
22855 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22856 Likewise.
22857 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22858 Likewise.
22859 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22860 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22861 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22862 Likewise.
22863 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22864 Likewise.
22865 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22866 Likewise.
22867 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22868 Likewise.
22869 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22870 Likewise.
22871 * nptl/pthread_attr_setinheritsched.c
22872 (__pthread_attr_setinheritsched): Likewise.
22873 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22874 Likewise.
22875 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22876 Likewise.
22877 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22878 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22879 __old_pthread_attr_setstack): Likewise.
22880 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22881 Likewise.
22882 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22883 Likewise.
22884 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22885 Likewise.
22886 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22887 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22888 Likewise.
22889 * nptl/tst-typesizes.c: Remove file.
22890
22891 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22892 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22893 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22894 checks for internal pthread_mutex_t offsets.
22895 * sysdeps/aarch64/nptl/pthread-offsets.h
22896 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22897 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22898 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22899 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22900 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22901 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22902 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22903 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22904 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22905 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22906 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22907 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22908 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22909 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22910 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22911 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22912 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22913 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22914
22915 2017-11-07 Florian Weimer <fweimer@redhat.com>
22916
22917 * bits/mman-linux.h: Move ...
22918 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22919 comment.
22920 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22921 outdated comment.
22922
22923 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22924
22925 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22926 Redefine STRNLEN as __strnlen_power8.
22927
22928 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22929
22930 * signal/sighold.c (sighold): Optimize implementation.
22931
22932 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22933 __NR_rt_sigqueueinfo.
22934
22935 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22936 __sigtimedwait.
22937 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22938 assume __NR_rt_sigtimedwait.
22939 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22940 and add LIBC_CANCEL_HANDLED for cancellation marking.
22941 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22942
22943 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22944 (sysdeps_routines): Add memchr_noneon.
22945 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22946 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22947 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22948 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22949 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22950 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22951 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22952
22953 * sysdeps/arm/arm-ifunc.h: New file.
22954 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22955 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22956 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22957 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22958 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22959 (__memcpy_neon): Avoid create hidden alias.
22960 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22961 (__memcpy_vfp): Likewise.
22962 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22963 (sysdep_routines): Add memcpy_arm.
22964 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22965
22966 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22967
22968 [BZ #22362]
22969 * Makerules (make-link-multidir): New.
22970 * config.make.in (multidir): New.
22971 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22972 * configure: Regenerated.
22973 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22974 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22975 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22976 New target.
22977
22978 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22979
22980 [BZ #22402]
22981 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22982 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22983
22984 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22985
22986 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22987 to be escaped.
22988
22989 2017-11-04 Florian Weimer <fweimer@redhat.com>
22990
22991 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22992
22993 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22994
22995 * math/math.h [__HAVE_DISTINCT_FLOAT16
22996 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22997 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22998 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22999 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23000 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23001 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23002 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23003 (__MATH_TG_F32): New macro.
23004 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23005 (__MATH_TG_F64X): Likewise.
23006 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23007 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23008
23009 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23010
23011 * po/de.po: Update translations.
23012 * po/ru.po: Likewise.
23013
23014 2017-11-03 Florian Weimer <fweimer@redhat.com>
23015
23016 * manual/filesys.texi (Hard Links): Document linkat.
23017
23018 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23019
23020 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23021 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23022 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23023 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23024 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23025 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23026 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23027 the same as _Float128.
23028 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23029 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23030 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23031
23032 * stdlib/stdlib.h
23033 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23034 Declare.
23035 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23036 Likewise.
23037 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23038 Likewise.
23039 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23040 (strtof32x): Likewise.
23041 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23042 (strtof64x): Likewise.
23043 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23044 (strtof128x): Likewise.
23045 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23046 (strfromf16): Likewise.
23047 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23048 (strfromf32): Likewise.
23049 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23050 (strfromf64): Likewise.
23051 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23052 (strfromf32x): Likewise.
23053 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23054 (strfromf64x): Likewise.
23055 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23056 (strfromf128x): Likewise.
23057 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23058 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23059 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23060 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23061 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23062 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23063
23064 2017-11-03 Richard Henderson <rth@twiddle.net>
23065
23066 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23067
23068 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23069
23070 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23071
23072 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23073
23074 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23075 DT_TLSDESC_GOT initialization.
23076 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23077 (_dl_tlsdesc_resolve_hold): Likewise.
23078 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23079 (_dl_tlsdesc_resolve_hold): Likewise.
23080 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23081 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23082
23083 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23084
23085 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23086
23087 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23088
23089 [BZ #18572]
23090 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23091 non-lazily for R_ARM_TLS_DESC.
23092
23093 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23094
23095 [BZ #17078]
23096 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23097 R_ARM_TLS_DESC case.
23098 (elf_machine_lazy_rel): Remove the prelink check.
23099
23100 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23101
23102 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23103 DT_TLSDESC_GOT initialization.
23104 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23105 (_dl_tlsdesc_resolve_rela): Likewise.
23106 (_dl_tlsdesc_resolve_hold): Likewise.
23107 (_dl_tlsdesc_undefweak): Remove ldar.
23108 (_dl_tlsdesc_dynamic): Likewise.
23109 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23110 (_dl_tlsdesc_resolve_rela): Likewise.
23111 (_dl_tlsdesc_resolve_hold): Likewise.
23112 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23113 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23114 (_dl_tlsdesc_resolve_rela): Likewise.
23115 (_dl_tlsdesc_resolve_hold): Likewise.
23116
23117 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23118
23119 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23120 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23121
23122 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23123
23124 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23125 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23126
23127 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23128
23129 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23130 Declare.
23131 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23132 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23133 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23134 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23135 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23136 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23137 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23138 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23139 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23140 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23141 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23142
23143 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23144
23145 [BZ #22382]
23146 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23147 * localedata/locales/tpi_PG: Add standard header.
23148
23149 2017-11-02 Florian Weimer <fweimer@redhat.com>
23150
23151 test-errno-linux: quotactl can fail with EPERM in containers.
23152 * sysdeps/unix/sysv/linux/test-errno-linux.c
23153 (LIST, LIST_FORWARD): New macros.
23154 (check_error_in_list): New function.
23155 (test_wrp_rv): Accept list of permitted error codes.
23156 (test_wrp_rv2): Remove.
23157 (test_wrp): Call test_wrp_rv with list of error codes.
23158 (test_wrp2): Accept list of error codes.
23159 (do_test): Adjust. Allow EPERM for quotactl.
23160
23161 2017-11-02 Florian Weimer <fweimer@redhat.com>
23162
23163 * stdio-common/bug16.c (do_test): Use array_length.
23164 * stdio-common/errlist.c (_sys_nerr): Likewise.
23165 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23166 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23167 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23168 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23169 (do_test): Use array_length.
23170 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23171 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23172 * stdio-common/tst-printf-round.c (do_test): Likewise.
23173 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23174 (CHECK): Use array_length.
23175 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23176 * stdio-common/tstscanf.c (main): Likewise.
23177 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23178
23179 2017-11-02 Florian Weimer <fweimer@redhat.com>
23180
23181 Add array_length and array_end macros.
23182 * include/array_length.h: New file.
23183
23184 2017-11-02 Florian Weimer <fweimer@redhat.com>
23185
23186 [BZ #22332]
23187 * posix/tst-glob-tilde.c (do_noescape): New variable.
23188 (one_test): Process it.
23189 (do_test): Set do_noescape. Add unescaping test case.
23190
23191 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23192
23193 * math/complex.h
23194 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23195 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23196 with appropriate macros defined and undefined.
23197 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23198 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23199 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23200 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23201 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23202 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23203 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23204 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23205 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23206 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23207
23208 * math/complex.h
23209 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23210 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23211 that for long double. Do not condition define and undefine of
23212 _Mdouble_complex_ on [__CFLOAT128].
23213
23214 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23215
23216 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23217 of <sysdeps/generic/sysdep.h>.
23218 (ALIGNARG): Removed.
23219 (ASM_SIZE_DIRECTIVE): Likewise.
23220 (ENTRY): Likewise.
23221 (END): Likewise.
23222 (ENTRY_CHK): Likewise.
23223 (END_CHK): Likewise.
23224 (syscall_error): Likewise.
23225 (mcount): Likewise.
23226 (PSEUDO_END): Likewise.
23227 (L): Likewise.
23228 (atom_text_section): Likewise.
23229 * sysdeps/x86/sysdep.h: New file.
23230 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23231 of <sysdeps/generic/sysdep.h>.
23232 (ALIGNARG): Removed.
23233 (ASM_SIZE_DIRECTIVE): Likewise.
23234 (ENTRY): Likewise.
23235 (END): Likewise.
23236 (ENTRY_CHK): Likewise.
23237 (END_CHK): Likewise.
23238 (syscall_error): Likewise.
23239 (mcount): Likewise.
23240 (PSEUDO_END): Likewise.
23241 (L): Likewise.
23242 (atom_text_section): Likewise.
23243
23244 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23245
23246 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23247 category of LC_CTYPE set to "i18n:2012".
23248 * localedata/locales/i18n_ctype: Regenerate.
23249
23250 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23251
23252 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23253 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23254 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23255 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23256
23257 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23258 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23259 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23260 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23261
23262 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23263
23264 * math/complex.h
23265 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23266 New macro.
23267 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23268 Likewise.
23269 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23270 Likewise.
23271 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23272 (CMPLXF32X): Likewise.
23273 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23274 (CMPLXF64X): Likewise.
23275 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23276 (CMPLXF128X): Likewise.
23277
23278 * math/math.h
23279 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23280 (__MATH_EVAL_FMT2): Define to add 0.0f.
23281
23282 2017-10-31 Alan Modra <amodra@gmail.com>
23283
23284 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23285 include sysdep.h.
23286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23300 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23301 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23302 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23303 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23304 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23305 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23306 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23307 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23308 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23309 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23310 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23311 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23312 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23313 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23314 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23315 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23316 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23317 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23318 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23319 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23320 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23321 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23322 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23323 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23324 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23325 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23326 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23327 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23328 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23329 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23330 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23331 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23332 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23333 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23334 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23335 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23336 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23337 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23338 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23339 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23340 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23341 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23342 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23343 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23344 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23345 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23346 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23347 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23348 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23349 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23350 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23351 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23352 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23353 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23354 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23355
23356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23357 include sysdep.h and math_ldbl_opt.h.
23358
23359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23360 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23385
23386 2017-10-31 Alan Modra <amodra@gmail.com>
23387
23388 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23389 string/strncase_l.c, not string/strncase.c.
23390 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23391 (libc_hidden_def): Redefine.
23392
23393 2017-10-31 Alan Modra <amodra@gmail.com>
23394
23395 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23396 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23397 (__strcasecmp): Don't define.
23398
23399 2017-10-31 Alan Modra <amodra@gmail.com>
23400
23401 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23402 IS_IN (libc).
23403 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23404 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23405 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23406
23407 2017-10-31 Alan Modra <amodra@gmail.com>
23408
23409 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23410 USE_AS_STPNCPY.
23411
23412 2017-10-31 Alan Modra <amodra@gmail.com>
23413
23414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23415 Redefine only when SHARED.
23416
23417 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23418
23419 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23420 Include <bits/math-finite.h> with appropriate macros defined and
23421 undefined.
23422 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23423 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23424 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23425 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23426 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23427
23428 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23429 [!_Mlong_double_] (_Mlong_double_): Likewise.
23430 [!_Mfloat16_] (_Mfloat16_): Likewise.
23431 [!_Mfloat32_] (_Mfloat32_): Likewise.
23432 [!_Mfloat64_] (_Mfloat64_): Likewise.
23433 [!_Mfloat128_] (_Mfloat128_): Likewise.
23434 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23435 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23436 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23437 (_Mdouble_): Define without indirection through those macros.
23438 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23439 [!_Mfloat128_] (_Mfloat128_): Likewise.
23440 [_Mlong_double_] (_Mlong_double_): Likewise.
23441 (_Mdouble_): Define without indirection through those macros.
23442 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23443 not add -D_Mlong_double_=double.
23444 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23445 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23446
23447 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23448
23449 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23450
23451 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23452
23453 * sysdeps/x86/libc-start.c: Reformat.
23454
23455 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23456
23457 [BZ #22353]
23458 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23459 (1): Renamed to ...
23460 (L(Src0)): This.
23461 (L(Src1)): New.
23462 (L(Src2)): Likewise.
23463 (L(1)): Renamed to ...
23464 (L(Src3)): This.
23465
23466 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23467
23468 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23469 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23470 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23471 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23472 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23473 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23474 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23475 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23476 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23477 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23478 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23479 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23480 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23481 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23482 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23483 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23484 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23485 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23486 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23487 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23488 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23489 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23490 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23491 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23492 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23493 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23494 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23495 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23496 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23497 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23498 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23499 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23500 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23501 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23502 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23503 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23504 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23505 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23506 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23507 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23508 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23509 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23510 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23511 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23512 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23513 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23514 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23515 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23516 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23517 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23518 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23519 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23520 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23521 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23522 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23523 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23524 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23525 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23526 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23527 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23528 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23529 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23530 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23531 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23532 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23533 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23534
23535 2017-10-30 Florian Weimer <fweimer@redhat.com>
23536
23537 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23538 always defined.
23539 * io/tst-mkdirat.c (do_test): Likewise.
23540 * io/tst-mkfifoat.c (do_test): Likewise.
23541 * io/tst-mknodat.c (do_test): Likewise.
23542 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23543 * locale/programs/locale.c (select_dirs): Likewise.
23544 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23545 * posix/bug-glob2.c (my_readdir): Likewise.
23546 * posix/tst-dir.c (main): Likewise.
23547 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23548 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23549
23550 2017-10-30 Florian Weimer <fweimer@redhat.com>
23551
23552 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23553 just __USE_GNU.
23554
23555 2017-10-30 Florian Weimer <fweimer@redhat.com>
23556
23557 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23558 Convert to support/test-driver.c.
23559 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23560 New macro parameters.
23561 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23562 * posix/tst-gnuglob.c: New file.
23563 * posix/tst-gnuglob64.c: Likewise.
23564 * posix/Makefile (tests): Add tst-gnuglob64.
23565
23566 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23567
23568 [BZ #19485]
23569 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23570 and use a better translation for March in “mon”.
23571 * localedata/locales/csb_PL: Use more ASCII to improve the
23572 readability of the source.
23573
23574 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23575
23576 [BZ #13953]
23577 * localedata/locales/km_KH: Use ASCII as much
23578 as possible for better readability of the source and
23579 remove useless comments.
23580 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23581 was commented out and apparently wrong anyway because it was
23582 using Lao characters. If Buddhist era should be used
23583 for km_KH, a native speaker should write the correct formaat
23584 for Khmer.
23585 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23586 (According to CLDR, the first weekday for Cambodia is Sunday).
23587 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23588 (These were using Lao characters which must be wrong. If we get
23589 the correct data from a native speaker, we could add it back, until
23590 then it is better not to have name_mr and name_mrs at all than
23591 having it wrong).
23592
23593 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23594
23595 * locale/loadlocale.c: Correct size of
23596 _nl_value_type_LC_<category> arrays.
23597
23598 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23599
23600 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23601 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23602 with appropriate macros defined and undefined.
23603 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23604 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23605 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23606 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23607 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23608
23609 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23610
23611 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23612 "-O2 -march=i586".
23613
23614 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23615
23616 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23617 with lowercase letters to make it agree with CLDR.
23618
23619 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23620
23621 [BZ #15260]
23622 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23623 first letters of yesstr and nostr in yesexpr and noexpr,
23624 not for the full words.
23625 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23626 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23627 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23628 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23629 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23630 first letters of yesstr and nostr in yesexpr and noexpr,
23631 until now only English was matched in yesexpr and noexpr.
23632 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23633 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23634 fil but not for tl. As tl and fil are very similar, using fil
23635 is probably better than using English.
23636
23637 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23638
23639 [BZ #21706]
23640 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23641 in yesstr and nostr.
23642
23643 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23644
23645 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23646 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23647 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23648 Likewise.
23649 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23650 Likewise.
23651 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23652 Likewise.
23653 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23654 Likewise.
23655 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23656 (SNANF128X): Likewise.
23657
23658 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23659 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23660 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23661 (HUGE_VAL_F32): Likewise.
23662 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23663 (HUGE_VAL_F64): Likewise.
23664 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23665 (HUGE_VAL_F32X): Likewise.
23666 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23667 (HUGE_VAL_F64X): Likewise.
23668 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23669 (HUGE_VAL_F128X): Likewise.
23670
23671 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23672
23673 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23674 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23675 for the br_FR locale.
23676
23677 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23678
23679 [BZ #21706]
23680 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23681
23682 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23683
23684 * locale/programs/record-status.h: Define globals, and function
23685 prototypes. Move function bodies...
23686 * locale/programs/record-status.c: ... to here. New file.
23687 * iconv/Makefile (iconv_prog-modules): Add record-status.
23688 * locale/Makefile (lib-modules): Likewise.
23689 * iconv/iconv_prog.c: Remove verbose.
23690 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23691 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23692 record a warning about ASCII compatibility.
23693 * locale/programs/ld-monetary.c (monetary_finish): If
23694 warn_int_curr_symbol is true then record a warning about the symbol
23695 not being in our ISO 4217 list.
23696 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23697 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23698 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23699 (OPT_NO_WARN): Define.
23700 (OPT_WARN): Define.
23701 (options): Add entry for --no-warnings, and --warnings.
23702 (set_warnings): New function to enable/disable warnings.
23703 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23704 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23705 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23706 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23707 Pass flags to generate_locale.
23708 (generate_locale): Accept new flag argument and pass it to localedef
23709 invocation.
23710 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23711 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23712
23713 * localedata/Makefile (test-input-data): Use full file name.
23714 * localedata/da_DK.in: Rename to...
23715 * localedata/da_DK.ISO-8859-1.in: ...this.
23716 * localedata/de_DE.in: Rename to...
23717 * localedata/de_DE.ISO-8859-1.in: ...this.
23718 * localedata/en_US.in: Rename to...
23719 * localedata/en_US.ISO-8859-1.in: ...this.
23720 * localedata/fr_FR.in: Rename to...
23721 * localedata/fr_FR.UTF-8.in: ... this.
23722 * localedata/hr_HR.in: Rename to...
23723 * localedata/hr_HR.ISO-8859-2.in: ...this.
23724 * localedata/hu_HU.in: Rename to...
23725 * localedata/hu_HU.UTF-8.in: ...this.
23726 * localedata/si_LK.in: Rename to...
23727 * localedata/si_LK.UTF-8.in: ...this.
23728 * localedata/sv_SE.in: Rename to...
23729 * localedata/sv_SE.ISO-8859-1.in: ...this.
23730 * localedata/tr_TR.in: Rename to...
23731 * localedata/tr_TR.UTF-8.in: ...this.
23732 * localedata/uk_UA.in: Rename to...
23733 * localedata/uk_UA.UTF-8.in: ...this.
23734 * localedata/sort-test.sh: Test file is locale name with the
23735 suffix.
23736
23737 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23738 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23739 file.
23740 * localedata/locales/i18n_ctype: Regenerate.
23741 * localedata/locales/tr_TR: Likewise.
23742 * localedata/locales/translit_circle: Likewise.
23743 * localedata/locales/translit_cjk_compat: Likewise.
23744 * localedata/locales/translit_combining: Likewise.
23745 * localedata/locales/translit_compat: Likewise.
23746 * localedata/locales/translit_font: Likewise.
23747 * localedata/locales/translit_fraction: Likewise.
23748
23749 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23750
23751 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23752 lxvd2x/stxvd2x with lvx/stvx.
23753 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23754
23755 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23756
23757 * include/alloc_buffer.h: Replace "if if " with "if " in
23758 comments.
23759 * sysdeps/mips/memcpy.S: Likkewise.
23760 * sysdeps/mips/memset.S: Likewise.
23761 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23762 Likewise.
23763 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23764 Likewise.
23765 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23766 Likewise.
23767
23768 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23769
23770 [BZ #15261]
23771 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23772 yesexpr and noexpr.
23773 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23774 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23775 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23776 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23777 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23778 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23779 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23780
23781 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23782
23783 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23784 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23785 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23786 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23787 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23788 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23789 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23790 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23791 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23792 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23793 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23794 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23795
23796 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23797
23798 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23799 as possible for better readability of the source.
23800 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23801 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23802 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23803 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23804 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23805 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23806 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23807 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23808 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23809 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23810 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23811 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23812 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23813 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23814 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23815 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23816 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23817 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23818 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23819 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23820 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23821 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23822 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23823 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23824 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23825 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23826 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23827 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23828 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23829 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23830 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23831 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23832 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23833 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23834 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23835 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23836 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23837 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23838 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23839 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23840 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23841 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23842 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23843 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23844 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23845 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23846 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23847 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23848 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23849 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23850 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23851 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23852 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23853 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23854 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23855 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23856 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23857 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23858 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23859 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23860 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23861 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23862 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23863 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23864 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23865 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23866 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23867 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23868 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23869 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23870 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23871 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23872 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23873 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23874 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23875 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23876 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23877 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23878 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23879 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23880 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23881 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23882 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23883 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23884 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23885 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23886 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23887 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23888 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23889 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23890 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23891 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23892 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23893 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23894 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23895 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23896 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23897 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23898 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23899 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23900 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23901 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23902 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23903 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23904 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23905 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23906 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23907 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23908 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23909 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23910 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23911 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23912 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23913 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23914 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23915 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23916 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23917 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23918 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23919 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23920 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23921 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23922 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23923 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23924 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23925 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23926 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23927 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23928 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23929 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23930 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23931 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23932 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23933 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23934 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23935 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23936 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23937 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23938 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23939 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23940 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23941 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23942 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23943 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23944 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23945 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23946 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23947 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23948 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23949 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23950 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23951 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23952 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23953 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23954 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23955 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23956 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23957 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23958 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23959 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23960 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23961 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23962 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23963 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23964 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23965 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23966 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23967 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23968 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23969 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23970 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23971 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23972 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23973 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23974
23975 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23976
23977 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23978 (Use first letters of yesstr and nostr correctly instead of using
23979 full words).
23980
23981 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23982
23983 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23984 (Use first letters of yesstr and nostr correctly).
23985
23986 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23987
23988 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23989 also check for the first characters of yesstr and nostr.
23990 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23991 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23992
23993 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23994
23995 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23996 also check for Chinese characters.
23997
23998 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23999
24000 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24001 match also for the contents of yesstr and nostr. As the first letter
24002 of yesstr and nostr is equal, checking only for the first letter
24003 is not enough.
24004
24005 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24006
24007 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24008 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24009
24010 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24011
24012 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24013 of main contributor.
24014
24015 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24016
24017 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24018 instead of using English.
24019
24020 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24021
24022 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24023 by including the first letters of nostr and yesexpr in the regexp.
24024 Also make it more readable by using ASCII where possible.
24025
24026 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24027
24028 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24029 the first letter of nostr in the regexp. It agrees with CLDR now.
24030 Also make it more readable by using ASCII where possible.
24031
24032 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24033
24034 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24035 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24036 these strings contain a U+17D6 (which somewhat looks like a colon)
24037 instead of a real colon to separate the full words for “yes”
24038 and “no” from the single letter responses.
24039
24040 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24041
24042 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24043 it agree with CLDR (include the first letter of yesstr).
24044 Also make it more readable by using ASCII where possible.
24045
24046 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24047
24048 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24049 and improve yesexpr and noexpr. The yesstr and nostr apparently
24050 came from CLDR. And CLDR has a bug there: these strings contain
24051 a U+0903 (which looks like a colon) instead of a real colon
24052 to separate the full words for “yes” and “no” from the single
24053 letter responses.
24054
24055 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24056
24057 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24058 letters of the full yesstr and nostr in yesexpr and noexpr.
24059
24060 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24061
24062 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24063 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24064 * localedata/locales/an_ES: Make source more readable by using ASCII
24065 where possible.
24066
24067 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24068
24069 [BZ #20952]
24070 * localedata/locales/yuw_PG: New file.
24071 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24072 * locale/iso-639.def: Add Yau (Uruwa).
24073
24074 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24075
24076 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24077
24078 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24079
24080 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24081 (__libc_realloc): Likewise.
24082 (_mid_memalign): Likewise.
24083 (__libc_calloc): Likewise.
24084
24085 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24086
24087 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24088 by adding the generic +1 and -0 as in all other locales.
24089 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24090 day names and make it more readable by using ASCII where possible.
24091
24092 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24093
24094 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24095 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24096
24097 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24098
24099 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24100 WNOHANG in waitpid call.
24101
24102 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24103
24104 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24105 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24106
24107 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24108 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24109 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24110 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24111 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24112 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24113 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24114 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24115 variables.
24116
24117 2017-10-23 Michael Collison <michael.collison@arm.com>
24118
24119 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24120 with __builtin_sqrt.
24121 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24122 with __builtin_sqrtf.
24123 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24124 with __builtin_ceil.
24125 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24126 with __builtin_ceilf.
24127 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24128 with __builtin_floor.
24129 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24130 with __builtin_floorf.
24131 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24132 with __builtin_fma.
24133 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24134 with __builtin_fmaf.
24135 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24136 with __builtin_fmax.
24137 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24138 with __builtin_fmaxf.
24139 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24140 with __builtin_fmin.
24141 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24142 with __builtin_fminf.
24143 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24144 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24145 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24146 with builtin_rint and conversion to int.
24147 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24148 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24149 with builtin_llround.
24150 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24151 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24152 with builtin_rint and conversion to long int.
24153 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24154 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24155 with builtin_lround.
24156 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24157 with builtin_lroundf.
24158 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24159 statements with __builtin_nearbyint.
24160 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24161 statements with __builtin_nearbyintf.
24162 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24163 with __builtin_rint.
24164 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24165 with __builtin_rintf.
24166 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24167 with __builtin_round.
24168 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24169 with __builtin_roundf.
24170 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24171 with __builtin_trunc.
24172 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24173 with __builtin_truncf.
24174 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24175 and s_l[l]round[f].c too.
24176
24177 2017-10-23 Alan Modra <amodra@gmail.com>
24178
24179 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24180 Adjust stack after restoring regs. Add missing LR cfi_restore.
24181
24182 2017-10-23 Alan Modra <amodra@gmail.com>
24183
24184 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24185 Move LR save and frame setup/teardown and LR restore to
24186 immediately around memset call. Provide cfi.
24187
24188 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24189
24190 * sysdeps/i386/fpu/e_powf.S: Removed.
24191 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24192 * sysdeps/i386/fpu/w_powf.c: Likewise.
24193 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24194 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24195 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24196 Add e_powf-sse2.
24197 (CFLAGS-e_powf-sse2.c): New.
24198 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24199 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24200
24201 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24202
24203 * sysdeps/i386/fpu/e_log2f.S: Removed.
24204 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24205 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24206 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24207 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24208 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24209 Add e_log2f-sse2.
24210 (CFLAGS-e_log2f-sse2.c): New.
24211 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24212 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24213
24214 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24215
24216 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24217 Add e_powf-fma.
24218 (CFLAGS-e_powf-fma.c): New.
24219 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24220 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24221
24222 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24223
24224 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24225 Add e_log2f-fma.
24226 (CFLAGS-e_log2f-fma.c): New.
24227 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24228 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24229
24230 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24231
24232 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24233 Add e_logf-fma.
24234 (CFLAGS-e_logf-fma.c): New.
24235 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24236 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24237
24238 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24239
24240 * sysdeps/i386/fpu/e_logf.S: Removed.
24241 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24242 * sysdeps/i386/fpu/w_logf.c: Likewise.
24243 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24244 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24245 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24246 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24247 Add e_logf-sse2.
24248 (CFLAGS-e_logf-sse2.c): New.
24249 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24250 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24251
24252 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24253
24254 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24255 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24256 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24257 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24258 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24259 Add e_exp2f-sse2.
24260 (CFLAGS-e_exp2f-sse2.c): New.
24261 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24262 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24263
24264 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24265
24266 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24267 Add e_exp2f-fma.
24268 (CFLAGS-e_exp2f-fma.c): New.
24269 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24270 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24271
24272 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24273
24274 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24275 * sysdeps/i386/fpu/e_expf.S: Likewise.
24276 * sysdeps/i386/fpu/math_errf.c: Likewise.
24277 * sysdeps/i386/fpu/w_expf.c: Likewise.
24278 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24279 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24280 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24281 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24282 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24283 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24284 Remove e_expf-ia32.
24285 (CFLAGS-e_expf-sse2.c): New.
24286 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24287 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24288
24289 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24290
24291 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24292 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24293 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24294 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24295 e_expf.c.
24296 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24297 New.
24298 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24299 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24300 Renamed to ...
24301 (__redirect_expf): This.
24302 (SYMBOL_NAME): Changed to expf.
24303 (__ieee754_expf): Renamed to ...
24304 (__expf): This.
24305 (__GI___expf): This.
24306 (__ieee754_expf): Add strong_alias.
24307 (__expf_finite): Likewise.
24308 (__expf): New.
24309 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24310
24311 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24312
24313 [BZ #22332]
24314 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24315 unescaping.
24316
24317 2017-10-21 Florian Weimer <fweimer@redhat.com>
24318
24319 * posix/Makefile (tests): Add tst-glob-tilde.
24320 (tests-special): Add tst-glob-tilde-mem.out
24321 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24322 (tst-glob-tilde-mem.out): Add mtrace check.
24323 * posix/tst-glob-tilde.c: New file.
24324
24325 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24326
24327 * bits/floatn-common.h: New file.
24328 * math/Makefile (headers): Add bits/floatn-common.h.
24329 * bits/floatn.h: Include <bits/floatn-common.h>.
24330 * sysdeps/ia64/bits/floatn.h: Likewise.
24331 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24332 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24333 * sysdeps/powerpc/bits/floatn.h: Likewise.
24334 * sysdeps/x86/bits/floatn.h: Likewise.
24335
24336 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24337
24338 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24339 indicates whether compiler emits an warning for alias for
24340 functions with incompatible types.
24341
24342 [BZ #22273]
24343 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24344 the auxiliary process is terminated by a signal before calling _exit
24345 or execve.
24346
24347 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24348
24349 [BZ #21265]
24350 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24351 New.
24352 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24353 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24354 and bit_arch_XSAVEC_Usable if needed.
24355 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24356 and bit_arch_Use_dl_runtime_resolve_opt.
24357 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24358 Removed.
24359 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24360 (bit_arch_Prefer_No_AVX512): Updated.
24361 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24362 (bit_arch_XSAVEC_Usable): New.
24363 (STATE_SAVE_OFFSET): Likewise.
24364 (STATE_SAVE_MASK): Likewise.
24365 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24366 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24367 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24368 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24369 (index_arch_XSAVEC_Usable): New.
24370 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24371 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24372 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24373 is enabled.
24374 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24375 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24376 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24377 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24378 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24379 _dl_runtime_resolve_xsavec.
24380 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24381 Removed.
24382 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24383 instead of VEC_SIZE.
24384 (REGISTER_SAVE_BND0): Removed.
24385 (REGISTER_SAVE_BND1): Likewise.
24386 (REGISTER_SAVE_BND3): Likewise.
24387 (REGISTER_SAVE_RAX): Always defined to 0.
24388 (VMOV): Removed.
24389 (_dl_runtime_resolve_avx): Likewise.
24390 (_dl_runtime_resolve_avx_slow): Likewise.
24391 (_dl_runtime_resolve_avx_opt): Likewise.
24392 (_dl_runtime_resolve_avx512): Likewise.
24393 (_dl_runtime_resolve_avx512_opt): Likewise.
24394 (_dl_runtime_resolve_sse): Likewise.
24395 (_dl_runtime_resolve_sse_vex): Likewise.
24396 (USE_FXSAVE): New.
24397 (_dl_runtime_resolve_fxsave): Likewise.
24398 (USE_XSAVE): Likewise.
24399 (_dl_runtime_resolve_xsave): Likewise.
24400 (USE_XSAVEC): Likewise.
24401 (_dl_runtime_resolve_xsavec): Likewise.
24402 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24403 Removed.
24404 (_dl_runtime_resolve_avx512_opt): Likewise.
24405 (_dl_runtime_resolve_avx): Likewise.
24406 (_dl_runtime_resolve_avx_opt): Likewise.
24407 (_dl_runtime_resolve_sse): Likewise.
24408 (_dl_runtime_resolve_sse_vex): Likewise.
24409 (_dl_runtime_resolve_fxsave): New.
24410 (_dl_runtime_resolve_xsave): Likewise.
24411 (_dl_runtime_resolve_xsavec): Likewise.
24412
24413 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24414
24415 [BZ #22320]
24416 CVE-2017-15670
24417 * posix/glob.c (__glob): Fix one-byte overflow.
24418
24419 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24420
24421 * malloc/malloc.c (sysdep-cancel.h): Add include.
24422
24423 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24424
24425 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24426
24427 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24428
24429 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24430 (tests): Remove $(objpfx)ga_test depdendency.
24431 * resolv/ga_test.c: Remove file.
24432
24433 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24434
24435 [BZ #18812]
24436 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24437 * localedata/locales/kab_DZ: New file.
24438
24439 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24440
24441 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24442 _dl_relocate_static_pie instead of _dl_start to compute load
24443 address in static PIE.
24444
24445 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24446
24447 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24448
24449 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24450
24451 [BZ #13605]
24452 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24453 * localedata/locales/shn_MM: New file.
24454
24455 2017-10-20 Florian Weimer <fweimer@redhat.com>
24456
24457 [BZ #22321]
24458 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24459 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24460 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24461 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24462 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24463 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24464
24465 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24466
24467 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24468
24469 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24470
24471 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24472
24473 [BZ #22322]
24474 * sysdeps/mips/bits/long-double.h: Move to ....
24475 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24476
24477 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24478
24479 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24480
24481 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24482 H.J. Lu <hongjiu.lu@intel.com>
24483
24484 [BZ #22299]
24485 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24486 GLRO(dl_platform) to NULL.
24487 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24488 (modules-names): Add tst-platformmod-1 and
24489 x86_64/tst-platformmod-2.
24490 (CFLAGS-tst-platform-1.c): New.
24491 (CFLAGS-tst-platformmod-1.c): Likewise.
24492 (CFLAGS-tst-platformmod-2.c): Likewise.
24493 (LDFLAGS-tst-platformmod-2.so): Likewise.
24494 ($(objpfx)tst-platform-1): Likewise.
24495 ($(objpfx)tst-platform-1.out): Likewise.
24496 (tst-platform-1-ENV): Likewise.
24497 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24498 * sysdeps/x86_64/tst-platform-1.c: New file.
24499 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24500 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24501
24502 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24503
24504 [BZ #13994]
24505 * locale/iso-639.def: Add Karbi.
24506 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24507 * localedata/locales/mjw_IN: New file.
24508
24509 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24510
24511 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24512 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24513 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24514 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24515 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24516 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24517 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24518 <bits/floatn.h>.
24519 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24520 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24521 * manual/math.texi (Mathematics): Document additional architecture
24522 support for _Float128.
24523 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24524 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24525 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24526 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24527 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24528 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24529 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24530 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24531 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24532 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24533 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24534 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24535 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24536 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24537 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24538
24539 2017-10-18 Renlin Li <renlin.li@arm.com>
24540
24541 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24542 _DYNAMIC symbol to calculate load address.
24543
24544 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24545
24546 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24547 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24548 summary bits.
24549 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24550 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24551
24552 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24553
24554 [BZ #16777]
24555 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24556 and improve readability by using more ASCII.
24557 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24558 and improve readability by using more ASCII.
24559
24560 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24561
24562 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24563 not all targets support atomics on bool.
24564
24565 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24566
24567 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24568 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24569 __f128.
24570 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24571 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24572 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24573 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24574 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24575 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24576
24577 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24578
24579 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24580 defines.
24581
24582 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24583
24584 [BZ #22159]
24585 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24586 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24587 (do_check_remalloced_chunk): Fix build bug.
24588 (do_check_malloc_state): Add assert that checks arena->top.
24589 (malloc_consolidate): Remove initialization.
24590 (int_mallinfo): Remove call to malloc_consolidate.
24591 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24592
24593 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24594
24595 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24596 (have_fastchunks): Remove.
24597 (clear_fastchunks): Remove.
24598 (set_fastchunks): Remove.
24599 (malloc_state): Add have_fastchunks.
24600 (malloc_init_state): Use have_fastchunks.
24601 (do_check_malloc_state): Remove incorrect invariant checks.
24602 (_int_malloc): Use have_fastchunks.
24603 (_int_free): Likewise.
24604 (malloc_consolidate): Likewise.
24605
24606 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24607
24608 * malloc/malloc.c (tcache_put): Inline.
24609 (tcache_get): Inline.
24610
24611 2017-10-17 Jordi Mallach <jordi@gnu.org>
24612
24613 Aurelien Jarno <aurelien@aurel32.net>
24614 [BZ #2522]
24615 * localedata/locales/ca_ES@valencia: New file.
24616 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24617
24618 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24619
24620 [BZ #22296]
24621 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24622 < 6.x
24623
24624 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24625
24626 * scripts/build-many-glibcs.py (Context.add_all_configs):
24627 Add arm-linux-gnueabihf multiarch extra_glibcs.
24628
24629 * sysdeps/generic/ifunc-init.h: New file.
24630 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24631
24632 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24633
24634 [BZ #22019]
24635 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24636 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24637 * stdlib/tst-strfmon_l.c: adapt test case.
24638
24639 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24640
24641 * sysdeps/generic/float128-abi.h: New file.
24642 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24643 non-__prefixed symbols to ....
24644 * math/Versions: ... here. Include <float128-abi.h>.
24645 * stdlib/Versions ... and here. Include <float128-abi.h>
24646
24647 2017-10-16 Florian Weimer <fweimer@redhat.com>
24648
24649 * version.h (VERSION): Switch to ".9000" as the development
24650 version suffix.
24651
24652 2017-10-16 Florian Weimer <fweimer@redhat.com>
24653
24654 [BZ #22050]
24655 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24656 compat_symbol_reference to access non-default version.
24657
24658 2017-10-16 Florian Weimer <fweimer@redhat.com>
24659
24660 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24661
24662 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24663
24664 * include/shlib-compat.h (compat_symbol_reference): Update
24665 comment.
24666
24667 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24668
24669 * math/Makefile (test-types): Add
24670 $(type-float128-$(float128-alias-fcts)).
24671 * math/test-float128.h (TYPE_STR): Define conditional on
24672 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24673 (ULP_IDX): Likewise.
24674 (ULP_I_IDX): Likewise.
24675
24676 * stdlib/strtold.c: Include <bits/floatn.h>
24677 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24678 and later undefine as macro. Define as weak alias if
24679 [!USE_WIDE_CHAR].
24680 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24681 and later undefine as macro. Define as weak alias if
24682 [USE_WIDE_CHAR].
24683 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24684 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24685 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24686 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24687 Define and later undefine as macro. Define as weak alias if
24688 [USE_WIDE_CHAR].
24689 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24690 <bits/floatn.h>.
24691 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24692 Define and later undefine as macro. Define as weak alias if
24693 [!USE_WIDE_CHAR].
24694 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24695 Define and later undefine as macro. Define as weak alias if
24696 [USE_WIDE_CHAR].
24697
24698 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24699
24700 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24701 record_verbose messages.
24702
24703 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24704
24705 [BZ #22052]
24706 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24707 to silence -O3 -Wall warning with GCC 7.
24708
24709 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24710
24711 * Makeconfig (+link-static-before-libc): Use the first of
24712 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24713 * gmon/Makefile (tests): Add tst-gmon-static.
24714 (tests-static): Likewise.
24715 (CFLAGS-tst-gmon-static.c): New.
24716 (CRT-tst-gmon-static): Likewise.
24717 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24718 (tst-gmon-static-ENV): Likewise.
24719 (tests-special): Likewise.
24720 ($(objpfx)tst-gmon-static.out): Likewise.
24721 (clean-tst-gmon-static-data): Likewise.
24722 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24723 * gmon/tst-gmon-static-gprof.sh: New file.
24724 * gmon/tst-gmon-static.c: Likewise.
24725
24726 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24727
24728 [BZ #22295]
24729 * locale/programs/linereader.c (get_string): Don't warn on
24730 non-symbolic character.
24731
24732 [BZ #22294]
24733 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24734 int_curr_symbol.
24735
24736 [BZ #22292]
24737 * locale/programs/record-status.h: New file
24738 * locale/programs/locale.c: Add comment.
24739 * locale/programs/charmap-dir.c: Don't include error.h.
24740 (charmap_opendir): Use record_error.
24741 * locale/programs/charmap.c: Don't include error.h.
24742 (charmap_read): Use record_error, and record_warning.
24743 (parse_charmap): Likewise.
24744 * locale/programs/ld-address.c: Don't include error.h.
24745 (address_finish): Use record_error, and record_warning.
24746 * locale/programs/ld-collate.c: Don't include error.h.
24747 (collate_finish): Use record_error, and record_error_at_line.
24748 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24749 (ctype_class_new): Likewise.
24750 (ctype_map_new): Likewise.
24751 (set_one_default): Likewise.
24752 (set_class_defaults): Likewise.
24753 (translit_flatten): Likewise.
24754 (allocate_arrays): Use record_error, and record_verbose.
24755 * locale/programs/ld-identification.c: Don't include error.h.
24756 (indentation_finish): Use record_error and record_warning.
24757 * locale/programs/ld-measurement.c: Don't include error.h.
24758 (measurement_finish): Use record_error.
24759 * locale/programs/ld-messages.c
24760 (message_finish): Likewise.
24761 * locale/programs/ld-monetary.c
24762 (monetary_finish): Likewise.
24763 * locale/programs/ld-name.c (name_finish): Use record_error
24764 and record_warning.
24765 * locale/programs/ld-numeric.c
24766 (numeric_finish): Use record_error.
24767 * locale/programs/ld-paper.c: Don't include error.h.
24768 (paper_finish): Use record_error.
24769 * locale/programs/ld-telephone.c: Don't include error.h.
24770 (telephone_finish): Use record_error.
24771 * locale/programs/ld-time.c (time_finish): Likewise.
24772 * locale/programs/linereader.h (lr_error): Make inline func.
24773 * locale/programs/localedef.c: Define recorded_warning_count,
24774 and recorded_error_count.
24775 (main): Use record_error. Use recorded_error_count and
24776 recorded_warning_count to issue correct error returns.
24777 (add_to_readlist): Use record_error.
24778 (find_locale): Likewise.
24779 (load_locale): Likewise.
24780 * locale/programs/localedef.h: Remove be_quiet
24781 and WITH_CUR_LOCALE.
24782 * locale/programs/locarchive.c (compare_from_file): Use
24783 record_error.
24784 * locale/programs/locfile.c (write_locale_data): Use
24785 record_error.
24786 * locale/programs/repertoire.c: Dont include error.h.
24787 (repertoire_complain): Use record_error.
24788 * localedata/tst-fmon.sh: Expect failures from localedef.
24789 * localedata/tst-locale.sh: Likewise.
24790 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24791
24792 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24793 (REPORTS): Likewise.
24794 (check): Likewise.
24795 (i18n): Rename to...
24796 (i18n_ctype): ...this.
24797 (i18n-report): Rename to...
24798 (i18n_ctype-report): ...this.
24799 * localedata/locales/i18n_ctype: Regenerate.
24800 * localedata/locales/i18n: copy i18n_ctype.
24801
24802 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24803
24804 * stdlib/strfroml.c: Include <bits/floatn.h>.
24805 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24806 Define before include of <stdlib.h> and undefine afterwards, then
24807 define as weak alias.
24808
24809 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24810 Undefine and restore default definition. Use
24811 libm_alias_ldouble_other.
24812
24813 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24814
24815 [BZ #22153]
24816 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24817 in coredumps.
24818
24819 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24820
24821 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24822 Assign sym_map to be map for local symbols, as TLS relocations
24823 use sym_map to determine whether the symbol is defined and to
24824 extract the TLS information.
24825 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24826 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24827
24828 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24829
24830 [BZ #22189]
24831 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24832 (math_force_eval): Add powerpc version.
24833
24834 [BZ #22142]
24835 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24836 -DBL_MAX.
24837 (do_test): Likewise.
24838 * stdio-common/tst-printf.sh: Likewise.
24839 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24840 ifdef clause in order to set the carry bit right. Replace r0 by
24841 0 without changing the behavior.
24842
24843 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24844
24845 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24846 <libm-alias-ldouble.h>.
24847 (fabsl): Define using libm_alias_ldouble.
24848 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24849 <libm-alias-ldouble.h>.
24850 (fabsl): Define using libm_alias_ldouble.
24851
24852 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24853 Remove conditional code.
24854
24855 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24856 Rename to __clog10_internal_l.
24857 (__clog10_internal_l): Define aliases using
24858 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24859 with __clog10.
24860
24861 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24862
24863 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24864 * benchtests/sincosf-inputs: New file.
24865 * benchtests/cosf-inputs: New file.
24866 * benchtests/sinf-inputs: New file.
24867
24868 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24869
24870 * posix/tst-spawn.c (do_test): Wait for both children.
24871
24872 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24873
24874 [BZ #22284]
24875 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24876 tests-pie): Add tst-gmon-pie.
24877 (CFLAGS-tst-gmon-pie.c): New.
24878 (CRT-tst-gmon-pie): Likewise.
24879 (tst-gmon-pie-ENV): Likewise.
24880 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24881 ($(objpfx)tst-gmon-pie.out): Likewise.
24882 (clean-tst-gmon-pie-data): Likewise.
24883 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24884 * gmon/gmon.c [PIC]: Include <link.h>.
24885 [PIC] (callback): New function.
24886 (write_hist): Add an argument for load address. Subtract load
24887 address from PCs.
24888 (write_call_graph): Likewise.
24889 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24890 it to write_hist and write_call_graph.
24891 * gmon/tst-gmon-pie.c: New file.
24892
24893 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24894
24895 * math/Makefile (test-types-basic): New variable.
24896 (test-types): Likewise.
24897 (libm-test-support): Use $(test-types) instead of $(types).
24898 (libm-tests-base-normal): Likewise.
24899 (libm-tests-base-finite): Likewise.
24900 (libm-tests-base-inline): Likewise.
24901 (generated): Likewise.
24902 ($(objpfx)libm-test-support-$(t).c): Likewise.
24903 (libm-tests-for-type iterator): Likewise.
24904 (libm-test-support iterator): Likewise.
24905 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24906 (ulp_idx): Use ULP_IDX.
24907 * math/test-ldouble.h: Include <float.h>.
24908 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24909 (ULP_IDX): New macro.
24910 (ULP_I_IDX): Likewise.
24911 * math/test-double.h (ULP_IDX): Likewise.
24912 (ULP_I_IDX): Likewise.
24913 * math/test-float.h (ULP_IDX): Likewise.
24914 (ULP_I_IDX): Likewise.
24915 * math/test-float128.h (ULP_IDX): Likewise.
24916 (ULP_I_IDX): Likewise.
24917
24918 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24919
24920 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24921 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24922 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24923 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24924 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24925 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24926 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24927 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24928 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24929 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24930 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24931 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24932 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24933 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24934 (SINGLE_THREAD_BY_GLOBAL): Define.
24935 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24936 Likewise.
24937 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24938 Likewise.
24939 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24940 Likewise.
24941 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24942 Likewise.
24943 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24944 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24945 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24946 Likewise.
24947
24948 2017-10-11 Andreas Schwab <schwab@suse.de>
24949
24950 * nis/Makefile (aux): Remove.
24951 * nscd/Makefile (aux): Add nscd_hash.
24952 (nscd-modules): Likewise.
24953 ($(objpfx)nscd): Don't depend on libnsl.
24954 * nscd/nscd_hash.c: New file.
24955 * nscd/nscd_hash.h: Likewise.
24956 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24957 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24958 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24959 instead of <nis/rpcsvc/nis.h>.
24960 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24961
24962 2017-10-11 Florian Weimer <fweimer@redhat.com>
24963
24964 [BZ #22078]
24965 Avoid large NSS buffers with many addresses, aliases.
24966 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24967 using dynarrays and struct alloc_buffer.
24968 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24969 (tst-nss-files-hosts-multi): Link with -ldl.
24970 * nss/tst-nss-files-hosts-multi.c: New file.
24971
24972 2017-10-11 Florian Weimer <fweimer@redhat.com>
24973
24974 [BZ #18023]
24975 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24976 scratch_buffer. Eliminate gotos.
24977
24978 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24979
24980 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24981 libm_alias_ldouble_other.
24982 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24983 undefine and redefine.
24984 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24985 (exp10l): Do not define here.
24986 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24987 (weak_alias): Undefine and redefine.
24988 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24989 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24990 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24991 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24992
24993 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24994 [!__fma] (fma): Define using libm_alias_double.
24995 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24996 [!__fmaf] (fmaf): Define using libm_alias_float.
24997 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24998 (fmal): Define using libm_alias_ldouble.
24999
25000 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25001
25002 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25003 New macro.
25004 (libm_alias_double_other): Likewise.
25005 (libm_alias_double_r): Use libm_alias_double_other_r.
25006 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25007 New macro.
25008 (libm_alias_float_other): Likewise.
25009 (libm_alias_float_r): Use libm_alias_float_other_r.
25010 * sysdeps/generic/libm-alias-float128.h
25011 (libm_alias_float128_other_r): New macro.
25012 (libm_alias_float128_other): Likewise.
25013 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25014 * sysdeps/generic/libm-alias-ldouble.h
25015 (libm_alias_ldouble_other_r): New macro.
25016 (libm_alias_ldouble_other): Likewise.
25017 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25018 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25019 (libm_alias_double_other_r): New macro.
25020 (libm_alias_double_other): Likewise.
25021 (libm_alias_double_r): Use libm_alias_double_other_r.
25022 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25023 (libm_alias_ldouble_other_r): New macro.
25024 (libm_alias_ldouble_other): Likewise.
25025 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25026 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25027 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25028 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25029 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25030 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25031 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25032 * math/w_exp2f.c: Use libm_alias_float_other.
25033 * math/w_expf.c: Likewise.
25034 * math/w_log2f.c: Likewise.
25035 * math/w_logf.c: Likewise.
25036 * math/w_powf.c: Likewise.
25037 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25038 [!__exp2f]: Use libm_alias_float_other.
25039 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25040 [!__expf]: Use libm_alias_float_other.
25041 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25042 [!__log2f]: Use libm_alias_float_other.
25043 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25044 [!__logf]: Use libm_alias_float_other.
25045 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25046 [!__powf]: Use libm_alias_float_other.
25047
25048 2017-10-10 Florian Weimer <fweimer@redhat.com>
25049
25050 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25051 function.
25052 (_nss_files_gethostbyname3_r): Call it.
25053
25054 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25055
25056 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25057 error. Remove default definition of declare_mgen_alias.
25058 [!declare_mgen_alias_r]: Likewise.
25059 * sysdeps/generic/math-type-macros-double.h
25060 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25061 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25062 (declare_mgen_alias_r): Likewise.
25063 * sysdeps/generic/math-type-macros-float128.h
25064 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25065 * sysdeps/generic/math-type-macros-ldouble.h
25066 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25067 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25068 macro.
25069 (declare_mgen_alias_r_s): Likewise.
25070 (declare_mgen_alias_r): Likewise.
25071 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25072 (lgamma_r): Define using libm_alias_double_r.
25073 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25074 (lgammaf_r): Define using libm_alias_float_r.
25075 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25076 (lgammal_r): Define using libm_alias_ldouble_r.
25077 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25078 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25079
25080 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25081
25082 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25083 extern declaration.
25084
25085 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25086
25087 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25088
25089 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25090
25091 [BZ #21326]
25092 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25093 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25094 * math/Makefile (test-math-cxx11): New test.
25095 * math/test-math-cxx11.cc: New file.
25096
25097 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25098
25099 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25100
25101 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25102 call to allocate the slave pty file descriptor.
25103
25104 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25105
25106 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25107 [!__fma] (fma): Define using libm_alias_double.
25108 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25109 [!__fma] (fma): Define using libm_alias_double.
25110
25111 * sysdeps/ieee754/float128/float128_private.h: Include
25112 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25113 (libm_alias_ldouble_r): Undefine and redefine.
25114 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25115 <libm-alias-ldouble.h>.
25116 (asinhl): Define using libm_alias_ldouble.
25117 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25118 <libm-alias-ldouble.h>.
25119 (atanl): Define using libm_alias_ldouble.
25120 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25121 <libm-alias-ldouble.h>.
25122 (cbrtl): Define using libm_alias_ldouble.
25123 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25124 <libm-alias-ldouble.h>.
25125 (ceill): Define using libm_alias_ldouble.
25126 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25127 <libm-alias-ldouble.h>.
25128 (copysignl): Define using libm_alias_ldouble.
25129 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25130 <libm-alias-ldouble.h>.
25131 (cosl): Define using libm_alias_ldouble.
25132 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25133 <libm-alias-ldouble.h>.
25134 (erfl): Define using libm_alias_ldouble.
25135 (erfcl): Likewise.
25136 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25137 <libm-alias-ldouble.h>.
25138 (expm1l): Define using libm_alias_ldouble.
25139 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25140 <libm-alias-ldouble.h>.
25141 (fabsl): Define using libm_alias_ldouble.
25142 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25143 <libm-alias-ldouble.h>.
25144 (floorl): Define using libm_alias_ldouble.
25145 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25146 <libm-alias-ldouble.h>.
25147 (fmal): Define using libm_alias_ldouble.
25148 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25149 <libm-alias-ldouble.h>.
25150 (frexpl): Define using libm_alias_ldouble.
25151 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25152 libm_alias_ldouble.
25153 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25154 <libm-alias-ldouble.h>.
25155 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25156 libm_alias_ldouble.
25157 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25158 <libm-alias-ldouble.h>.
25159 (getpayloadl): Define using libm_alias_ldouble.
25160 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25161 <libm-alias-ldouble.h>.
25162 (llrintl): Define using libm_alias_ldouble.
25163 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25164 <libm-alias-ldouble.h>.
25165 (llroundl): Define using libm_alias_ldouble.
25166 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25167 <libm-alias-ldouble.h>.
25168 (logbl): Define using libm_alias_ldouble.
25169 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25170 <libm-alias-ldouble.h>.
25171 (lrintl): Define using libm_alias_ldouble.
25172 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25173 <libm-alias-ldouble.h>.
25174 (lroundl): Define using libm_alias_ldouble.
25175 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25176 <libm-alias-ldouble.h>.
25177 (modfl): Define using libm_alias_ldouble.
25178 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25179 <libm-alias-ldouble.h>.
25180 (nearbyintl): Define using libm_alias_ldouble.
25181 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25182 <libm-alias-ldouble.h>.
25183 (nextafterl): Define using libm_alias_ldouble.
25184 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25185 <libm-alias-ldouble.h>.
25186 (nextupl): Define using libm_alias_ldouble.
25187 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25188 <libm-alias-ldouble.h>.
25189 (remquol): Define using libm_alias_ldouble.
25190 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25191 <libm-alias-ldouble.h>.
25192 (rintl): Define using libm_alias_ldouble.
25193 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25194 <libm-alias-ldouble.h>.
25195 (roundevenl): Define using libm_alias_ldouble.
25196 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25197 <libm-alias-ldouble.h>.
25198 (roundl): Define using libm_alias_ldouble.
25199 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25200 using libm_alias_ldouble.
25201 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25202 <libm-alias-ldouble.h>.
25203 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25204 Define using libm_alias_ldouble.
25205 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25206 <libm-alias-ldouble.h>.
25207 (sincosl): Define using libm_alias_ldouble.
25208 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25209 <libm-alias-ldouble.h>.
25210 (sinl): Define using libm_alias_ldouble.
25211 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25212 <libm-alias-ldouble.h>.
25213 (tanhl): Define using libm_alias_ldouble.
25214 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25215 <libm-alias-ldouble.h>.
25216 (tanl): Define using libm_alias_ldouble.
25217 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25218 <libm-alias-ldouble.h>.
25219 (totalorderl): Define using libm_alias_ldouble.
25220 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25221 <libm-alias-ldouble.h>.
25222 (totalordermagl): Define using libm_alias_ldouble.
25223 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25224 <libm-alias-ldouble.h>.
25225 (truncl): Define using libm_alias_ldouble.
25226 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25227 libm_alias_ldouble.
25228 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25229 libm_alias_ldouble.
25230 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25231 <libm-alias-ldouble.h>.
25232 (weak_alias): Do not undefine and redefine.
25233 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25234 (copysignl): Define with long_double_symbol only if [IS_IN
25235 (libc)].
25236 * sysdeps/ieee754/ldbl-64-128/s_frexpl.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 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25241 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25242 <libm-alias-ldouble.h>.
25243 (weak_alias): Do not undefine and redefine.
25244 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25245 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25246 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25247 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25248 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25249 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25250 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25251 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25252 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25253 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25254 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25255 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25256 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25257 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25258 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25259 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25260 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25261 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25262 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25263 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25264 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25265 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25266 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25267 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25268 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25269 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25270
25271 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25272
25273 [BZ #22111]
25274 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25275 (tcache_thread_freeres): Set tcache_shutting_down before
25276 freeing the tcache.
25277 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25278 * malloc/tst-malloc-tcache-leak.c: New file.
25279
25280 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25281
25282 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25283 back to powerpc32 file.
25284 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25285 (memrchr): Add __memrchr_power8 to ifunc list.
25286 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25287 extra bytes for unaligned inputs.
25288
25289 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25290
25291 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25292 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25293 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25294 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25295 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25296
25297 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25298
25299 * sysdeps/arm/libm-test-ulps: Update.
25300
25301 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25302 <libm-alias-ldouble.h>.
25303 (asinhl): Define using libm_alias_ldouble.
25304 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25305 <libm-alias-ldouble.h>.
25306 (cbrtl): Define using libm_alias_ldouble.
25307 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25308 <libm-alias-ldouble.h>.
25309 (copysignl): Define using libm_alias_ldouble.
25310 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25311 <libm-alias-ldouble.h>.
25312 (cosl): Define using libm_alias_ldouble.
25313 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25314 <libm-alias-ldouble.h>.
25315 (erfl): Define using libm_alias_ldouble.
25316 (erfcl): Likewise.
25317 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25318 <libm-alias-ldouble.h>.
25319 (fmal): Define using libm_alias_ldouble.
25320 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25321 <libm-alias-ldouble.h>.
25322 (frexpl): Define using libm_alias_ldouble.
25323 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25324 libm_alias_ldouble.
25325 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25326 <libm-alias-ldouble.h>.
25327 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25328 libm_alias_ldouble.
25329 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25330 <libm-alias-ldouble.h>.
25331 (getpayloadl): Define using libm_alias_ldouble.
25332 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25333 <libm-alias-ldouble.h>.
25334 (llrintl): Define using libm_alias_ldouble.
25335 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25336 <libm-alias-ldouble.h>.
25337 (llroundl): Define using libm_alias_ldouble.
25338 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25339 <libm-alias-ldouble.h>.
25340 (lrintl): Define using libm_alias_ldouble.
25341 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25342 <libm-alias-ldouble.h>.
25343 (lroundl): Define using libm_alias_ldouble.
25344 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25345 <libm-alias-ldouble.h>.
25346 (modfl): Define using libm_alias_ldouble.
25347 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25348 <libm-alias-ldouble.h>.
25349 (nextupl): Define using libm_alias_ldouble.
25350 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25351 <libm-alias-ldouble.h>.
25352 (remquol): Define using libm_alias_ldouble.
25353 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25354 <libm-alias-ldouble.h>.
25355 (roundevenl): Define using libm_alias_ldouble.
25356 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25357 <libm-alias-ldouble.h>.
25358 (roundl): Define using libm_alias_ldouble.
25359 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25360 using libm_alias_ldouble.
25361 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25362 <libm-alias-ldouble.h>.
25363 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25364 <libm-alias-ldouble.h>.
25365 (setpayloadsigl): Define using libm_alias_ldouble.
25366 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25367 <libm-alias-ldouble.h>.
25368 (sincosl): Define using libm_alias_ldouble.
25369 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25370 <libm-alias-ldouble.h>.
25371 (sinl): Define using libm_alias_ldouble.
25372 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25373 <libm-alias-ldouble.h>.
25374 (tanhl): Define using libm_alias_ldouble.
25375 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25376 <libm-alias-ldouble.h>.
25377 (tanl): Define using libm_alias_ldouble.
25378 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25379 <libm-alias-ldouble.h>.
25380 (totalorderl): Define using libm_alias_ldouble.
25381 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25382 <libm-alias-ldouble.h>.
25383 (totalordermagl): Define using libm_alias_ldouble.
25384 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25385 libm_alias_ldouble.
25386 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25387 libm_alias_ldouble.
25388
25389 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25390
25391 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25392 memmove_falkor.
25393 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25394 (__libc_ifunc_impl_list): Likewise.
25395 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25396 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25397
25398 * benchtests/bench-memmove-walk.c: New file.
25399 * benchtests/Makefile (string-benchset): Add it.
25400
25401 * benchtests/bench-memset-walk.c: New file.
25402 * benchtests/Makefile (string-benchset): Add it.
25403
25404 * benchtests/bench-memcpy-walk.c: New file.
25405 * benchtests/Makefile (string-benchset): Add it.
25406
25407 2017-10-05 Florian Weimer <fweimer@redhat.com>
25408
25409 nscd: Eliminate compilation time dependency in the build output.
25410 * nscd/nscd_stat.c (STATDATA_VERSION)
25411 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25412 (STATDATA_VERSION_FULL): New macro definitions.
25413 (compilation): Remove.
25414 (struct statdata): Adjust version member.
25415 (send_stats): Set version from STATDATA_VERSION_FULL.
25416 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25417
25418 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25419
25420 * configure.ac (--enable-add-ons): Remove option.
25421 (machine): Do not mention add-ons in comment.
25422 (LIBC_PRECONFIGURE): Likewise.
25423 (add_ons): Remove variable and sanity checks and logic to locate
25424 add-ons.
25425 (add_ons_automatic): Remove variable.
25426 (configured_add_ons): Likewise.
25427 (add_ons_sfx): Likewise.
25428 (add_ons_pfx): Likewise.
25429 (add_on_subdirs): Likewise.
25430 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25431 consideration of add-ons in Implies handling.
25432 (sysdeps_add_ons): Likewise.
25433 * configure: Regenerated.
25434 * libidn/configure.ac: Remove.
25435 * libidn/configure: Likewise.
25436 * sysdeps/unix/inet/configure.ac: New file.
25437 * sysdeps/unix/inet/configure: New generated file.
25438 * sysdeps/unix/inet/Subdirs: Add libidn.
25439 * Makeconfig (sysdeps-srcdirs): Remove variable.
25440 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25441 ($(common-objpfx)config.status): Do not depend on add-on files.
25442 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25443 comment.
25444 (all-subdirs): Do not include $(add-on-subdirs).
25445 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25446 * config.make.in (add-ons): Remove variable.
25447 (add-on-subdirs): Likewise.
25448 (sysdeps-add-ons): Likewise.
25449 * manual/Makefile (add-chapters): Remove.
25450 ($(objpfx)texis): Do not depend on $(add-chapters).
25451 (nonexamples): Do not handle $(add-chapters).
25452 (examples): Do not handle $(add-ons).
25453 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25454 libc-texinfo.sh.
25455 * manual/install.texi (Installation): Do not mention add-ons.
25456 (--enable-add-ons): Do not document configure option.
25457 * INSTALL: Regenerated.
25458 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25459 * manual/maint.texi (Hierarchy Conventions): Do not mention
25460 add-ons.
25461 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25462 --enable-add-ons.
25463 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25464 add-ons.
25465 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25466 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25467
25468 2017-10-05 Andreas Schwab <schwab@suse.de>
25469
25470 [BZ #15142]
25471 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25472 (_IO_flush_all_lockp): Always lock list_all_lock.
25473 (_IO_flush_all_linebuffered): Likewise.
25474 (_IO_unbuffer_all): Likewise.
25475
25476 2017-10-05 Florian Weimer <fweimer@redhat.com>
25477
25478 [BZ #15436]
25479 Do not flush stdio streams on abort.
25480 * stdlib/abort.c (fflush): Remove macro definition.
25481 (abort): Remove stages related to stdio flushing.
25482
25483 2017-10-05 Florian Weimer <fweimer@redhat.com>
25484
25485 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25486
25487 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25488
25489 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25490
25491 2017-10-05 Florian Weimer <fweimer@redhat.com>
25492
25493 * support/support_format_hostent.c (support_format_hostent): Add
25494 more error information for NETDB_INTERNAL.
25495
25496 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25497
25498 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25499 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25500 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25501 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25502 AC_DEFINE if multi-arch is enabled.
25503 * sysdeps/i386/configure: Regenerated.
25504
25505 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25506
25507 * Makeconfig (+link-static-before-libc): Use
25508 $(DEFAULT-LDFLAGS-$(@F)).
25509 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25510 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25511 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25512
25513 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25514
25515 * elf/Makefile (tests): Add tst-main1.
25516 (modules-names): Add tst-main1mod.
25517 ($(objpfx)tst-main1): New.
25518 (CRT-tst-main1): Likewise.
25519 (LDFLAGS-tst-main1): Likewise.
25520 (LDLIBS-tst-main1): Likewise.
25521 (tst-main1mod.so-no-z-defs): Likewise.
25522 * elf/tst-main1.c: New file.
25523 * elf/tst-main1mod.c: Likewise.
25524
25525 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25526
25527 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25528
25529 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25530
25531 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25532 (fma): Define using libm_alias_double.
25533 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25534 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25535 <math_ldbl_opt.h>.
25536 (fmal): Do not define as compat symbol here.
25537 * sysdeps/alpha/fpu/s_fma.c: New file.
25538
25539 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25540
25541 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25542
25543 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25544
25545 [BZ #22229]
25546 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25547 <math_ldbl_opt.h>
25548 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25549 and libc.
25550 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25551 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25552 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25553 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25554 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25555 Include <math_ldbl_opt.h>
25556 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25557 and libc.
25558 (compat_symbol): Undefine and redefine.
25559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25560 <math_ldbl_opt.h>
25561 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25562 (compat_symbol): Undefine and redefine.
25563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25564 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25565 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25566 GLIBC_2_1 for libm.
25567 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25568 GLIBC_2.0 copysignl symbol.
25569 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25570 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25571
25572 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25573
25574 2017-10-04 Florian Weimer <fweimer@redhat.com>
25575
25576 * scripts/check-local-headers.sh: Ignore nspr4 header file
25577 directory in addition to nspr.
25578
25579 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25580
25581 [BZ #17956]
25582 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25583 * configure: Regenerate.
25584 * crypt/Makefile (nss-cpp-flags): New variable.
25585 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25586 (CPPFLAGS-md5-crypt.c): Use it.
25587 * scripts/check-local-headers.sh: Ignore nspr header file
25588 directory.
25589
25590 2017-10-04 Andreas Schwab <schwab@suse.de>
25591
25592 * nis/Makefile (services): Remove compat.
25593 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25594 ($(objpfx)libnss_compat.so): Remove rule.
25595 * nis/Versions (libnss_compat): Remove.
25596 * nss/Makefile (services): Add compat.
25597 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25598 * nss/Versions (libnss_compat): Define.
25599 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25600 Don't include <rpc/types.h>. Replace bool_t by bool.
25601 * nss/nss_compat/compat-initgroups.c: Likewise.
25602 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25603 instead of <rpcsrv/ypclnt.h>.
25604 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25605 yp_get_default_domain.
25606 * nss/nss_compat/compat-pwd.c: Likewise.
25607 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25608 yp_get_default_domain.
25609 * nss/nss_compat/nisdomain.c: New file.
25610 * nss/nss_compat/nisdomain.h: Likewise.
25611
25612 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25613
25614 [BZ #22244]
25615 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25616 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25617
25618 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25619
25620 [BZ #22243]
25621 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25622 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25623
25624 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25625
25626 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25627 "movl main@GOTOFF(%ebx), %eax".
25628
25629 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25630
25631 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25632 allow undefined _DYNAMIC in PIE libc.a.
25633 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25634 Likewse.
25635
25636 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25637
25638 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25639 check _DYNAMIC.
25640
25641 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25642
25643 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25644 check _DYNAMIC.
25645
25646 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25647
25648 * math/test-math-iscanonical.cc (error): Replace bool with int.
25649
25650 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25651
25652 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25653 (modf): Define using libm_alias_double, only if [!__modf].
25654 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25655 <libm-alias-double.h>.
25656 (modf): Define using libm_alias_double, only if [!__modf].
25657 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25658 compat symbol here.
25659 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25660 (weak_alias): Do not undefine and redefine.
25661 (strong_alias): Likewise.
25662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25663 (weak_alias): Likewise.
25664 (strong_alias): Likewise.
25665
25666 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25667 (logb): Define using libm_alias_double, only if [!__logb].
25668 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25669 <libm-alias-double.h>.
25670 (logb): Define using libm_alias_double, only if [!__logb].
25671 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25672 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25673 (weak_alias): Do not undefine and redefine.
25674 (strong_alias): Likewise.
25675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25676 (weak_alias): Likewise.
25677 (strong_alias): Likewise.
25678
25679 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25680
25681 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25682 Check SHARED instead PIC.
25683
25684 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25685
25686 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25687 [!__fmaf] (fmaf): Define using libm_alias_float.
25688
25689 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25690 (frexp): Define using libm_alias_double.
25691 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25692 <libm-alias-double.h>.
25693 (frexp): Define using libm_alias_double.
25694 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25695 compat symbol here.
25696
25697 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25698
25699 [BZ #22235]
25700 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25701 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25702 (CFLAGS-test-math-iscanonical.cc): New variable.
25703 * math/test-math-iscanonical.cc: New file.
25704 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25705 Provide a C++ implementation based on function overloading,
25706 rather than using __MATH_TG, which uses C-only builtins.
25707 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25708 Likewise.
25709 * sysdeps/powerpc/powerpc64le/Makefile
25710 (CFLAGS-test-math-iscanonical.cc): New variable.
25711
25712 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25713
25714 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25715 (ceil): Define using libm_alias_double.
25716 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25717 (floor): Define using libm_alias_double.
25718 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25719 <libm-alias-double.h>.
25720 (llround): Define using libm_alias_double.
25721 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25722 <libm-alias-double.h>.
25723 (lround): Define using libm_alias_double.
25724 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25725 <libm-alias-double.h>.
25726 (nearbyint): Define using libm_alias_double.
25727 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25728 <libm-alias-double.h>.
25729 (remquo): Define using libm_alias_double.
25730 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25731 (rint): Define using libm_alias_double.
25732 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25733 (round): Define using libm_alias_double.
25734 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25735 (trunc): Define using libm_alias_double.
25736 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25737 <libm-alias-double.h>.
25738 (ceil): Define using libm_alias_double.
25739 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25740 <libm-alias-double.h>.
25741 (floor): Define using libm_alias_double.
25742 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25743 <libm-alias-double.h>.
25744 (llround): Define using libm_alias_double.
25745 [_LP64] (lround): Likewise.
25746 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25747 <libm-alias-double.h>.
25748 [!_LP64] (lround): Define using libm_alias_double.
25749 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25750 <libm-alias-double.h>.
25751 (nearbyint): Define using libm_alias_double.
25752 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25753 <libm-alias-double.h>.
25754 (remquo): Define using libm_alias_double.
25755 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25756 <libm-alias-double.h>.
25757 (rint): Define using libm_alias_double.
25758 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25759 <libm-alias-double.h>.
25760 (round): Define using libm_alias_double.
25761 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25762 <libm-alias-double.h>.
25763 (trunc): Define using libm_alias_double.
25764 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25765 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25766 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25767 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25768 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25769 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25770 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25771 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25772 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25773
25774 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25775
25776 * math/w_remainder.c: New file.
25777 * math/w_remainderf.c: New file.
25778 * math/w_remainderl.c: New file.
25779
25780 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25781
25782 * elf/rtld.c (BOOTSTRAP_MAP): New.
25783 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25784 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25785 Likewise.
25786 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25787 Likewise.
25788 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25789 Likewise.
25790
25791 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25792
25793 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25794 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25795 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25796 rtld_hidden_data_ver): Define to empty.
25797 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25798 __assert_perror_fail): Likewise.
25799 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25800 (__rewinddir): Likewise.
25801 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25802 (__profile_frequency): Likewise.
25803 * include/setjmp.h (__sigsetjmp): Likewise.
25804 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25805 __libc_sigaction): Likewise.
25806 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25807 not set hidden attribute.
25808 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25809 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25810 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25811 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25812 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25813 __fxstatat64): Likewise.
25814 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25815 (__uname): Likewise.
25816 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25817 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25818 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25819 (NO_RTLD_HIDDEN): Set.
25820 * sysdeps/mach/hurd/configure: Refresh.
25821 * config.h.in: Refresh.
25822
25823 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25824
25825 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25826 (atan): Define using libm_alias_double.
25827 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25828 (tan): Define using libm_alias_double.
25829 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25830 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25831
25832 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25833 define as weak alias of __atan. Do not define any aliases if
25834 [__atan].
25835 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25836 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25837 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25838 as weak alias of __tan. Do not define any aliases if [__tan].
25839 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25840 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25841 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25842 __atan.
25843 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25844 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25845 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25846 and define as weak alias of __atan.
25847 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25848 __atan.
25849 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25850 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25851 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25852 define as weak alias of __tan.
25853
25854 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25855
25856 * math/w_lgamma.c: New file.
25857 * math/w_lgammaf.c: New file.
25858 * math/w_lgammal.c: New file.
25859
25860 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25861
25862 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25863 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25864 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25865 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25866 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25867 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25868 * sysdeps/i386/fpu/w_log2f.c: New file.
25869 * sysdeps/i386/fpu/w_logf.c: New file.
25870 * sysdeps/i386/fpu/w_powf.c: New file.
25871 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25872 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25873 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25874
25875 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25876 H.J. Lu <hongjiu.lu@intel.com>
25877
25878 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25879 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25880 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25881 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25882 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25883 the new expf code.
25884 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25885 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25886 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25887 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25888 * sysdeps/i386/fpu/w_exp2f.c: New file.
25889 * sysdeps/i386/fpu/w_expf.c: New file.
25890 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25891 * sysdeps/x86_64/fpu/w_expf.c: New file.
25892
25893 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25894
25895 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25896 (log2f): Likewise.
25897 (powf): Likewise.
25898 * math/w_log2f.c: New file.
25899 * math/w_logf.c: New file.
25900 * math/w_powf.c: New file.
25901 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25902 * math/w_logf_compat.c (__logf_compat): Likewise.
25903 * math/w_powf_compat.c (__powf_compat): Likewise.
25904 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25905 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25906 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25907 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25908 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25909 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25910 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25911 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25912 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25913 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25914 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25915 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25916 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25917 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25918 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25920 Likewise.
25921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25922 Likewise.
25923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25924 Likewise.
25925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25926 Likewise.
25927 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25928 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25929 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25930 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25931 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25932 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25933 Likewise.
25934 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25935 Likewise.
25936 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25937 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25938 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25939
25940 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25941
25942 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25943 (sysdep_routines): Add memrchr_power8.
25944 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25945 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25946 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25947 New file.
25948 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25949 (memrchr): Add __memrchr_power8 to ifunc list.
25950 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25951
25952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25953
25954 [BZ #18822]
25955 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25956 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25957 libc_hidden_def.
25958 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25959 (__posix_fallocate64_l64): Likewise.
25960
25961 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25962
25963 [BZ #18822]
25964 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25965 (__sched_setaffinity_new): Add libc_hidden_proto and
25966 libc_hidden_def.
25967
25968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 [BZ #18822]
25971 * include/glob.h (__glob64): Add libc_hidden_proto.
25972 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25973 libc_hidden_def.
25974
25975 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25976
25977 [BZ #18822]
25978 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25979 attribute_hidden.
25980
25981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25982
25983 [BZ #18822]
25984 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25985
25986 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25987
25988 [BZ #18822]
25989 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25990 libc_hidden_def.
25991
25992 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25993
25994 [BZ #18822]
25995 * csu/version.c (__libc_print_version): Add attribute_hidden.
25996
25997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25998
25999 [BZ #18822]
26000 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26001
26002 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26003
26004 [BZ #18822]
26005 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26006
26007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26008
26009 [BZ #18822]
26010 * nscd/nscd_helper.c (__nis_hash): New prototype.
26011
26012 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26013
26014 [BZ #18822]
26015 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26016 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26017 libc_hidden_def.
26018 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26019 * termios/tcgetattr.c (__tcgetattr): Likewise.
26020
26021 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26022
26023 [BZ #18822]
26024 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26025 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26026 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26027 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26028 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26029
26030 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26031
26032 [BZ #18822]
26033 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26034
26035 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26036
26037 [BZ #18822]
26038 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26039 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26040
26041 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26042
26043 [BZ #18822]
26044 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26045
26046 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26047
26048 [BZ #18822]
26049 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26050 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26051
26052 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26053
26054 [BZ #18822]
26055 * include/ifreq.h: New file.
26056 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26057 (__ifreq): Likewise.
26058 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26059 (__ifreq): Likewise.
26060
26061 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26062
26063 [BZ #18822]
26064 * include/idna.h: New file.
26065 * inet/getnameinfo.c: Include <idna.h> instead of
26066 <libidn/idna.h>.
26067 (__idna_to_unicode_lzlz): Removed.
26068 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26069 <libidn/idna.h>.
26070 (__idna_to_ascii_lz): Removed.
26071 (__idna_to_unicode_lzlz): Likewise.
26072
26073 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26074
26075 [BZ #18822]
26076 * include/plural-exp.h: New file.
26077 * intl/plural-exp.c: Include <plural-exp.h> instead of
26078 "plural-exp.h".
26079
26080 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26081
26082 [BZ #18822]
26083 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26084 "getsourcefilter.h".
26085 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26086 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26087 "getsourcefilter.h".
26088 (__get_sol): Removed.
26089
26090 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 [BZ #18822]
26093 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26094 to ...
26095 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26096
26097 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26098
26099 [BZ #18822]
26100 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26101 attribute_hidden.
26102
26103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26104
26105 [BZ #18822]
26106 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26107
26108 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26109
26110 [BZ #18822]
26111 * include/search.h (__tdestroy): Add libc_hidden_proto.
26112 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26113
26114 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26115
26116 [BZ #18822]
26117 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26118
26119 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26120
26121 [BZ #18822]
26122 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26123 attribute_hidden.
26124
26125 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26126
26127 [BZ #18822]
26128 * include/signal.h (__kill): Add libc_hidden_proto.
26129 (__sigblock): Likewise.
26130 (__sigprocmask): Likewise.
26131 (__sigaltstack): Likewise.
26132 * signal/kill.c (__kill): Add libc_hidden_def.
26133 * signal/sigblock.c (__sigblock): Likewise.
26134 * signal/sigprocmask.c (__sigprocmask): Likewise.
26135 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26136 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26137 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26138 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26139 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26140 Likewise.
26141 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26142 Likewise.
26143 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26144 (__sigprocmask): Likewise.
26145 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26146 Likewise.
26147 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26148 (__sigprocmask): Likewise.
26149 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26150 Likewise.
26151
26152 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26153
26154 [BZ #18822]
26155 * include/string.h (__strsep): Add libc_hidden_proto.
26156 * string/strsep.c (__strsep): Add libc_hidden_def.
26157
26158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26159
26160 [BZ #18822]
26161 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26162 attribute_hidden.
26163 (__spawni): Likewise.
26164
26165 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26166
26167 [BZ #18822]
26168 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26169 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26170 libc_hidden_def.
26171
26172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26173
26174 [BZ #18822]
26175 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26176
26177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26178
26179 [BZ #18822]
26180 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26181 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26182 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26183 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26184 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26185 Likewise.
26186 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26187 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26188
26189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 [BZ #18822]
26192 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26193 (__dcigettext): Likewise.
26194
26195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26196
26197 [BZ #18822]
26198 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26199 libc_hidden_proto.
26200 (__get_nprocs): Likewise.
26201 (__get_phys_pages): Likewise.
26202 (__get_avphys_pages): Likewise.
26203 (__get_child_max): Add attribute_hidden.
26204 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26205 (__get_nprocs): Likewise.
26206 (__get_phys_pages): Likewise.
26207 (__get_avphys_pages): Likewise.
26208 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26209 libc_hidden_def.
26210 (__get_nprocs): Likewise.
26211 (__get_phys_pages): Likewise.
26212 (__get_avphys_pages): Likewise.
26213 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26214 libc_hidden_def.
26215 (__get_nprocs_conf): Likewise.
26216 (__get_phys_pages): Likewise.
26217 (__get_avphys_pages): Likewise.
26218
26219 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26220
26221 [BZ #18822]
26222 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26223 attribute_hidden.
26224 (__netlink_close): Likewise.
26225 (__netlink_free_handle): Likewise.
26226 (__netlink_request): Likewise.
26227
26228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 [BZ #18822]
26231 * include/rpc/rpc.h (__rpc_thread_variables): Add
26232 attribute_hidden.
26233 (__rpc_thread_svc_cleanup): Likewise.
26234 (__rpc_thread_clnt_cleanup): Likewise.
26235 (__rpc_thread_key_cleanup): Likewise.
26236
26237 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26238
26239 [BZ #18822]
26240 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26241 (__writev): Likewise.
26242 * misc/readv.c (__readv): Add libc_hidden_def.
26243 * misc/writev.c (__writev): Likewise.
26244 * sysdeps/posix/readv.c (__readv): Likewise.
26245 * sysdeps/posix/writev.c (__writev): Likewise.
26246 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26247 (__readv): Likewise.
26248 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26249 (__writev): Likewise.
26250
26251 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26252
26253 [BZ #18822]
26254 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26255 (__regcomp): Add libc_hidden_proto.
26256 (__regexec): Likewise.
26257 (__regfree): Likewise.
26258 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26259 (__regfree): Likewise.
26260 * posix/regexec.c (__regexec): Likewise.
26261
26262 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26263
26264 [BZ #18822]
26265 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26266 (__getutent): Likewise.
26267 (__getutid): Likewise.
26268 (__getutline): Likewise.
26269 (__pututline): Likewise.
26270 (__getutent_r): Likewise.
26271 (__getutid_r): Likewise.
26272 (__getutline_r): Likewise.
26273 (__utmpname): Add attribute_hidden.
26274 (__setutent): Likewise.
26275 (__endutent): Likewise.
26276 * login/getutent.c (__getutent): Add libc_hidden_def.
26277 * login/getutent_r.c (__getutent_r): Likewise.
26278 (__pututline): Likewise.
26279 * login/getutid.c (__getutid): Likewise.
26280 * login/getutid_r.c (__getutid_r): Likewise.
26281 * login/getutline.c (__getutline): Likewise.
26282 * login/getutline_r.c (__getutline_r): Likewise.
26283 * login/updwtmp.c (__updwtmp): Likewise.
26284
26285 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26286
26287 [BZ #18822]
26288 * include/dirent.h (__opendir): Always add attribute_hidden.
26289 (__fdopendir): Likewise.
26290 (__closedir): Likewise.
26291 (__readdir): Likewise.
26292 (__readdir64): Add libc_hidden_proto.
26293 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26294 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26295 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26296 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26297 New alias.
26298
26299 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26300
26301 [BZ #18822]
26302 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26303 * include/netdb.h (__gethostbyaddr_r): Likewise.
26304 (__gethostbyname_r): Likewise.
26305 (__gethostbyname2_r): Likewise.
26306 (__getnetbyaddr_r): Likewise.
26307 (__getnetbyname_r): Likewise.
26308 (__getservbyname_r): Likewise.
26309 (__getservbyport_r): Likewise.
26310 (__getprotobyname_r): Likewise.
26311 (__getprotobynumber_r): Likewise.
26312 (__getnetgrent_r): Likewise.
26313 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26314 (__getrpcbynumber_r): Likewise.
26315 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26316
26317 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26318
26319 [BZ #18822]
26320 * include/stdio.h (__fcloseall): Add attribute_hidden.
26321 (__getline): Likewise.
26322 (__path_search): Likewise.
26323 (__gen_tempname): Likewise.
26324 (__libc_message): Likewise.
26325 (__flockfile): Likewise.
26326 (__funlockfile): Likewise.
26327 (__fxprintf): Likewise.
26328 (__fxprintf_nocancel): Likewise.
26329
26330 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 [BZ #18822]
26333 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26334 (__sgetsgent_r): Likewise.
26335
26336 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26337
26338 [BZ #18822]
26339 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26340 (__statfs64): Likewise.
26341 (__fstatfs64): Likewise.
26342 * include/sys/statvfs.h (__statvfs64): Likewise.
26343 (__fstatvfs64): Likewise.
26344 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26345 (__statfs_filesize_max): Likewise.
26346 (__statfs_symlinks): Likewise.
26347 (__statfs_chown_restricted): Likewise.
26348
26349 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26350
26351 [BZ #18822]
26352 * include/time.h (__tzstring): Add attribute_hidden.
26353 (__tzfile_read): Likewise.
26354 (__tzfile_compute): Likewise.
26355 (__tzfile_default): Likewise.
26356 (__tzset_parse_tz): Likewise.
26357 (__offtime): Likewise.
26358 (__asctime_r): Likewise.
26359 (__tzset): Likewise.
26360 (__tz_convert): Likewise.
26361 (__getdate_r): Likewise.
26362 (__getclktck): Likewise.
26363
26364 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26365
26366 [BZ #18822]
26367 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26368 (__nscd_unmap): Likewise.
26369 (__nscd_cache_search): Likewise.
26370 (__nscd_get_nl_timestamp): Likewise.
26371 (__nscd_getpwnam_r): Likewise.
26372 (__nscd_getpwuid_r): Likewise.
26373 (__nscd_getgrnam_r): Likewise.
26374 (__nscd_getgrgid_r): Likewise.
26375 (__nscd_gethostbyname_r): Likewise.
26376 (__nscd_gethostbyname2_r): Likewise.
26377 (__nscd_gethostbyaddr_r): Likewise.
26378 (__nscd_getai): Likewise.
26379 (__nscd_getgrouplist): Likewise.
26380 (__nscd_getservbyname_r): Likewise.
26381 (__nscd_getservbyport_r): Likewise.
26382 (__nscd_innetgr): Likewise.
26383 (__nscd_setnetgrent): Likewise.
26384
26385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 [BZ #18822]
26388 * include/gmp.h: Declare internal functions only if _ISOMAC is
26389 undefined.
26390 (__mpn_extract_double): Add attribute_hidden.
26391 (__mpn_extract_long_double): Likewise.
26392 (__mpn_extract_float128): Likewise.
26393 (__mpn_construct_float): Likewise.
26394 (__mpn_construct_double): Likewise.
26395 (__mpn_construct_long_double): Likewise.
26396 (__mpn_construct_float128): Likewise.
26397 (mpn_add_1): Likewise.
26398 (mpn_addmul_1): Likewise.
26399 (mpn_add_n): Likewise.
26400 (mpn_cmp): Likewise.
26401 (mpn_divrem): Likewise.
26402 (mpn_lshift): Likewise.
26403 (mpn_mul): Likewise.
26404 (mpn_mul_1): Likewise.
26405 (mpn_rshift): Likewise.
26406 (mpn_sub_1): Likewise.
26407 (mpn_submul_1): Likewise.
26408 (mpn_sub_n): Likewise.
26409
26410 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26411
26412 [BZ #18822]
26413 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26414 (__wcscat): Likewise.
26415 (__btowc): Likewise.
26416 (__wcrtomb): Likewise.
26417 (__mbsrtowcs): Likewise.
26418 (__wcsrtombs): Likewise.
26419 (__mbsnrtowcs): Likewise.
26420 (__wcsnrtombs): Likewise.
26421 (__wcsncpy): Likewise.
26422 (__wcpncpy): Likewise.
26423 (__wmemcpy): Likewise.
26424 (__wmempcpy): Likewise.
26425 (__wmemmove): Likewise.
26426 (__wcschrnul): Likewise.
26427 (__vfwscanf): Likewise.
26428 (__vswprintf): Likewise.
26429 (__fwprintf): Likewise.
26430 (__vfwprintf): Likewise.
26431
26432 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26433
26434 [BZ #18822]
26435 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26436 (__getgrgid_r): Likewise.
26437 (__getgrnam_r): Likewise.
26438 * include/pwd.h (__getpwuid_r): Likewise.
26439 (__getpwnam_r): Likewise.
26440 (__fgetpwent_r): Likewise.
26441 * include/shadow.h (__getspnam_r): Likewise.
26442 (__sgetspent_r): Likewise.
26443 (__fgetspent_r): Likewise.
26444
26445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26446
26447 [BZ #18822]
26448 * include/unistd.h (__access): Add attribute_hidden.
26449 (__lseek64): Likewise.
26450 (__libc_pread64): Likewise.
26451 (__pipe2): Likewise.
26452 (__sleep): Likewise.
26453 (__chdir): Likewise.
26454 (__fchdir): Likewise.
26455 (__getcwd): Likewise.
26456 (__rmdir): Likewise.
26457 (__execvpe): Likewise.
26458 (__execve): Likewise.
26459 (__setsid): Likewise.
26460 (__getuid): Likewise.
26461 (__geteuid): Likewise.
26462 (__getgid): Likewise.
26463 (__getegid): Likewise.
26464 (__getgroups): Likewise.
26465 (__group_member): Likewise.
26466 (__ttyname_r): Likewise.
26467 (__isatty): Likewise.
26468 (__readlink): Likewise.
26469 (__unlink): Likewise.
26470 (__gethostname): Likewise.
26471 (__profil): Likewise.
26472 (__getdtablesize): Likewise.
26473 (__brk): Likewise.
26474 (__ftruncate): Likewise.
26475 (__ftruncate64): Likewise.
26476
26477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26478
26479 [BZ #18822]
26480 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26481 * argp/argp-fs-xinl.c: Likewise.
26482 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26483 * argp/argp-parse.c: Include <argp.h>.
26484 * argp/argp-xinl.c: Likewise.
26485 * include/argp-fmtstream.h: New file.
26486 * include/argp.h (__argp_error): Add attribute_hidden.
26487 (__argp_failure): Likewise.
26488 (__argp_input): Likewise.
26489 (__argp_state_help): Likewise.
26490
26491 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26492
26493 [BZ #18822]
26494 * include/wchar.h (____wcstof_l_internal): New prototype.
26495 (____wcstod_l_internal): Likewise.
26496 (____wcstold_l_internal): Likewise.
26497 (____wcstol_l_internal): Likewise.
26498 (____wcstoul_l_internal): Likewise.
26499 (____wcstoll_l_internal): Likewise.
26500 (____wcstoull_l_internal): Likewise.
26501 (____wcstof128_l_internal): Likewise.
26502 * sysdeps/ieee754/float128/wcstof128.c
26503 (____wcstof128_l_internal): Removed.
26504 * sysdeps/ieee754/float128/wcstof128_l.c
26505 (____wcstof128_l_internal): Likewise.
26506 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26507 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26508 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26509 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26510 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26511 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26512 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26513 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26514 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26515 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26516
26517 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26518
26519 [BZ #18822]
26520 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26521 instead of <sys/statvfs.h>.
26522 (__internal_statvfs): Removed.
26523 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26524 instead of <sys/statvfs.h>.
26525 (__internal_statvfs64): Removed.
26526 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26527 "internal_statvfs.h" instead of <sys/statvfs.h>.
26528 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26529 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26530 instead of <sys/statvfs.h>.
26531 (__internal_statvfs): Removed.
26532 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26533 instead of <sys/statvfs.h>.
26534 (__internal_statvfs64): Removed.
26535
26536 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26537
26538 [BZ #18822]
26539 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26540 (__gconv_close): Likewise.
26541 (__gconv): Likewise.
26542 (__gconv_find_transform): Likewise.
26543 (__gconv_lookup_cache): Likewise.
26544 (__gconv_compare_alias_cache): Likewise.
26545 (__gconv_load_cache): Likewise.
26546 (__gconv_get_path): Likewise.
26547 (__gconv_close_transform): Likewise.
26548 (__gconv_release_cache): Likewise.
26549 (__gconv_find_shlib): Likewise.
26550 (__gconv_release_shlib): Likewise.
26551 (__gconv_get_builtin_trans): Likewise.
26552 (__gconv_compare_alias): Likewise.
26553 * include/dlfcn.h (_dlerror_run): Likewise.
26554 * include/stdio.h (__fortify_fail_abort): Likewise.
26555 * include/time.h (__tz_compute): Likewise.
26556 (__strptime_internal): Likewise.
26557 * intl/gettextP.h (_nl_find_domain): Likewise.
26558 (_nl_load_domain): Likewise.
26559 (_nl_find_msg): Likewise.
26560 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26561 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26562 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26563 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26564 (__gai_find_request): Likewise.
26565 (__gai_remove_request): Likewise.
26566 (__gai_notify): Likewise.
26567 (__gai_notify_only): Likewise.
26568 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26569 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26570 (_dl_non_dynamic_init): Likewise.
26571 (_dl_aux_init): Likewise.
26572 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26573 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26574 Likewise.
26575 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26576 (__wcsmbs_clone_conv): Likewise.
26577 (__wcsmbs_named_conv): Likewise.
26578
26579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26580
26581 [BZ #18822]
26582 * include/stdlib.h (__random): Add attribute_hidden.
26583 (__random_r): Likewise.
26584 (__srandom_r): Likewise.
26585 (__initstate_r): Likewise.
26586 (__setstate_r): Likewise.
26587 (__erand48_r): Likewise.
26588 (__nrand48_r): Likewise.
26589 (__jrand48_r): Likewise.
26590 (__srand48_r): Likewise.
26591 (__seed48_r): Likewise.
26592 (__lcong48_r): Likewise.
26593 (__drand48_iterate): Likewise.
26594 (__setenv): Likewise.
26595 (__unsetenv): Likewise.
26596 (__clearenv): Likewise.
26597 (__ptsname_r): Likewise.
26598 (__posix_openpt): Likewise.
26599 (__add_to_environ): Likewise.
26600 (__realpath): Add libc_hidden_proto.
26601 (__ecvt_r): Likewise.
26602 (__fcvt_r): Likewise.
26603 (__qecvt_r): Likewise.
26604 (__qfcvt_r): Likewise.
26605 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26606 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26607
26608 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26609
26610 [BZ #18822]
26611 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26612 * include/time.h (__mktime_internal): Likewise.
26613 * libio/iolibio.h (__fopen_internal): Likewise.
26614
26615 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26616
26617 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26618 pointer in frame.
26619 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26620 Correct offset used to restore PIC register.
26621
26622 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26623
26624 [BZ libc/22165]
26625 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26626 code to load address of __getcontext_ret when generating PIC code.
26627
26628 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26629
26630 * elf/Makefile (tests-static-internal): Add
26631 tst-tls1-static-non-pie.
26632 (LDFLAGS-tst-tls1-static-non-pie): New.
26633 * elf/tst-tls1-static-non-pie.c: New file.
26634
26635 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26636
26637 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26638 (asinh): Define using libm_alias_double.
26639 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26640 (cbrt): Define using libm_alias_double.
26641 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26642 <libm-alias-double.h>.
26643 (copysign): Define using libm_alias_double.
26644 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26645 (erf): Define using libm_alias_double.
26646 (erfc): Likewise.
26647 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26648 (expm1): Define using libm_alias_double.
26649 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26650 (fabs): Define using libm_alias_double.
26651 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26652 libm_alias_double.
26653 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26654 <libm-alias-double.h>.
26655 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26656 libm_alias_double.
26657 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26658 <libm-alias-double.h>.
26659 (getpayload): Define using libm_alias_double.
26660 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26661 <libm-alias-double.h>.
26662 (llrint): Define using libm_alias_double.
26663 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26664 (lrint): Define using libm_alias_double.
26665 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26666 <libm-alias-double.h>.
26667 (nextup): Define using libm_alias_double.
26668 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26669 <libm-alias-double.h>.
26670 (roundeven): Define using libm_alias_double.
26671 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26672 libm_alias_double.
26673 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26674 <libm-alias-double.h>.
26675 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26676 using libm_alias_double.
26677 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26678 (cos): Define using libm_alias_double.
26679 (sin): Likewise.
26680 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26681 <libm-alias-double.h>.
26682 (sincos): Define using libm_alias_double.
26683 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26684 (tanh): Define using libm_alias_double.
26685 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26686 <libm-alias-double.h>.
26687 (totalorder): Define using libm_alias_double.
26688 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26689 <libm-alias-double.h>.
26690 (totalordermag): Define using libm_alias_double.
26691 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26692 libm_alias_double.
26693 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26694 libm_alias_double.
26695 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26696 <libm-alias-double.h>.
26697 (getpayload): Define using libm_alias_double.
26698 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26699 <libm-alias-double.h>.
26700 (roundeven): Define using libm_alias_double.
26701 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26702 <libm-alias-double.h>.
26703 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26704 <libm-alias-double.h>.
26705 (totalorder): Define using libm_alias_double.
26706 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26707 <libm-alias-double.h>.
26708 (totalordermag): Define using libm_alias_double.
26709 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26710 libc compat symbol here.
26711 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26712 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26713 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26714 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26715 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26716 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26717 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26718 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26719 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26720 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26721
26722 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26723
26724 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26725 _dl_relocate_static_pie instead of _dl_start to compute load
26726 address in static PIE. Return 0 if _DYNAMIC is undefined for
26727 static executable.
26728
26729 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26730
26731 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26732 _DYNAMIC is undefined for static executable.
26733
26734 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26735
26736 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26737
26738 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26739
26740 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26741
26742 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26743
26744 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26745 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26746 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26747 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26748 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26749 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26750 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26751 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26752 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26753 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26754 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26755 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26756 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26757 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26758 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26759 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26760 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26761
26762 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26763
26764 * math/bits/cmathcalls.h (cimag): Remove inline.
26765 (creal): Remove inline.
26766 (conj): Remove inline.
26767
26768 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26769
26770 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26771 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26772 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26773 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26774 (issignalingf_inline): Likewise.
26775 (POWF_LOG2_TABLE_BITS): Likewise.
26776 (POWF_LOG2_POLY_ORDER): Likewise.
26777 (POWF_SCALE_BITS): Likewise.
26778 (POWF_SCALE): Likewise.
26779 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26780 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26781 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26782
26783 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26784
26785 * math/Makefile (type-float-routines): Add e_log2f_data.
26786 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26787 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26788 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26789 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26790 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26791 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26792 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26793
26794 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26795
26796 * math/Makefile (type-float-routines): Add e_logf_data.
26797 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26798 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26799 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26800 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26801 * sysdeps/i386/fpu/e_logf_data.c: New file.
26802 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26803 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26804
26805 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26808 undefined _DYNAMIC in PIE libc.a.
26809 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26810 Likewse.
26811
26812 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26813
26814 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26815 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26816 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26817 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26818 (__signbit): Remove.
26819 (__signbitl): Remove.
26820 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26821 (__signbit): Remove.
26822 (__signbitl): Remove.
26823 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26824 (__signbit): Remove.
26825 (__signbitl): Remove.
26826 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26827 (__signbit): Remove.
26828 (__signbitl): Remove.
26829 * sysdeps/tile/bits/mathinline.h: Delete file.
26830 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26831 (__signbit): Remove.
26832 (__signbitl): Remove.
26833
26834 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26835
26836 * math/math.h: Improve handling of C99 isgreater macros.
26837 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26838 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26839 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26840 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26841 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26842
26843 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26844
26845 * sysdeps/aarch64/libm-test-ulps: Update.
26846
26847 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26848
26849 [BZ #22225]
26850 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26851 math_opt_barrier on argument when doing arithmetic on it.
26852 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26853 Likewise. Use math_force_eval not math_opt_barrier after
26854 arithmetic.
26855 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26856 math_opt_barrier on argument when doing arithmetic on it.
26857 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26858 Likewise.
26859
26860 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26861
26862 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26863 libc_hidden_def.
26864 (__freeifaddrs): Likewise.
26865
26866 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26867
26868 * include/dirent.h (__dirfd): New declaration.
26869 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26870 alias.
26871 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26872 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26873 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26874 * include/unistd.h (__revoke): New declaration.
26875 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26876 alias.
26877 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26878 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26879 revoke.
26880 * include/dirent.h (__seekdir): New declaration.
26881 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26882 redefine as weak alias.
26883 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26884 of seekdir.
26885 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26886 and use libc_hidden_def on them.
26887 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26888 them.
26889 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26890 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26891 instead of getifaddrs and freeifaddrs.
26892
26893 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26894
26895 [BZ #18822]
26896 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26897 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26898 (__dso_handle): Remove declaration.
26899 * dlfcn/tstatexit.c (__dso_handle): Removed.
26900 (main): Don't check __dso_handle.
26901 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26902 (main): Don't check __dso_handle.
26903 * include/dso_handle.h: New file.
26904 * malloc/mtrace.c: Include <dso_handle.h>.
26905 (mtrace): Pass __dso_handle directly.
26906 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26907 (__dso_handle): Remove declaration.
26908 (__pthread_atfork): Pass __dso_handle directly.
26909 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26910 (__dso_handle): Removed.
26911 * posix/wordexp-test.c: Include <dso_handle.h>.
26912 (__dso_handle): Remove declaration.
26913 (__app_register_atfork): Pass __dso_handle directly.
26914 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26915 (__dso_handle): Remove declaration.
26916 (at_quick_exit): Pass __dso_handle directly.
26917 * stdlib/atexit.c: Include <dso_handle.h>.
26918 (__dso_handle): Remove declaration.
26919 (atexit): Pass __dso_handle directly.
26920 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26921 (__dso_handle): Removed.
26922
26923 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26924
26925 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26926 using VDSO.
26927
26928 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26929
26930 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26931 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26932 values to correct default value for given type.
26933
26934 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 [BZ #22101]
26937 * elf/Makefile (tests): Add tst-debug1.
26938 ($(objpfx)tst-debug1): New.
26939 ($(objpfx)tst-debug1.out): Likewise.
26940 ($(objpfx)tst-debug1mod1.so): Likewise.
26941 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26942 with p_filesz == 0.
26943 * elf/tst-debug1.c: New file.
26944
26945 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26946
26947 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26948 Define using __ifunc.
26949
26950 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26951
26952 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26953 exp2f() values.
26954
26955 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26956
26957 [BZ #22156]
26958 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26959
26960 2017-09-26 Florian Weimer <fweimer@redhat.com>
26961
26962 * resolv/Makefile (tests-internal): Fix typo in comment.
26963
26964 2017-09-26 Florian Weimer <fweimer@redhat.com>
26965
26966 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26967
26968 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26969
26970 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26971 Use an union instead of a max_align_t array for __space,
26972 so that __space is the same size on all platforms.
26973 * malloc/scratch_buffer_grow_preserve.c
26974 (__libc_scratch_buffer_grow_preserve): Likewise.
26975
26976 [BZ #22183]
26977 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26978 version to 2.
26979 * posix/Makefile (routines): Add glob-lstat-compat and
26980 glob64-lstat-compat.
26981 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26982 * posix/glob-lstat-compat.c: New file.
26983 * posix/glob64-lstat-compat.c: Likewise.
26984 * posix/tst-glob_lstat_compat.c: Likewise.
26985 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26986 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26987 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26988 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26989 Likewise.
26990 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26991 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26992 * posix/glob.c (glob_lstat): New function.
26993 (glob): Rename to __glob and add versioned symbol to 2.27.
26994 (glob_in_dir): Use glob_lstat.
26995 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26996 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26997 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26998 2.27.
26999 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27000 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27001 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27002 gl_lstat on glob call.
27003 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27004 and glob64 symbols.
27005 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27006 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27007 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27008 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27009 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27010 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27011 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27012 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27013 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27014 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27015 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27016 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27018 Likewise.
27019 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27021 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27022 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27023 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27024 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27025 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27026 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27027 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27028 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27029 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27030 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27031
27032 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 * configure.ac (AS): Require binutils 2.25 or later.
27035 * configure: Regenerated.
27036
27037 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27038
27039 [BZ #22207]
27040 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27041 VM size.
27042
27043 2017-09-25 DJ Delorie <dj@redhat.com>
27044
27045 [BZ #22161]
27046 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27047 resetting timeout.
27048
27049 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27050
27051 * sysdeps/ieee754/dbl-64/sincos32.h
27052 [SINCCOS32_H]: Remove define.
27053 [SINCOS32_H]: Define.
27054
27055 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27056
27057 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27058 (exp2f): Likewise.
27059 * math/w_exp2f.c: New file.
27060 * math/w_expf.c: New file.
27061 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27062 * math/w_expf_compat.c (__expf_compat): Likewise.
27063 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27064 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27065 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27066 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27067 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27068 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27069 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27070 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27071 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27072 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27073 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27074 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27075 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27076 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27078 Likewise.
27079 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27080 Likewise.
27081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27082 Likewise.
27083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27084 Likewise.
27085 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27086 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27087 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27088 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27089 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27090 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27091 Likewise.
27092 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27093 Likewise.
27094 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27095 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27096 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27097
27098 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27099
27100 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27101 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27102 (roundtoint, converttoint): Likewise.
27103 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27104 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27105 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27106 * sysdeps/ieee754/flt-32/math_config.h: New file.
27107 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27108 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27109 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27110 * sysdeps/i386/fpu/math_errf.c: New file.
27111 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27112 * sysdeps/ia64/fpu/math_errf.c: New file.
27113 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27114 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27115
27116 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27117
27118 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27119 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27120 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27121 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27122 to make sure that these symbols are defined.
27123 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27124 of <limits.h>
27125 (__need_NULL): Do not define.
27126 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27127 alignment.
27128 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27129 CMGROUP_MAX, cmsgcred): Do not define.
27130 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27131 NULL.
27132 * bits/socket.h: Likewise.
27133 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27134 __gettimeofday instead of gettimeofday.
27135 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27136 instead of settimeofday.
27137
27138 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27139
27140 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27141 (asinhf): Define using libm_alias_float.
27142 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27143 (atanf): Define using libm_alias_float.
27144 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27145 (cbrtf): Define using libm_alias_float.
27146 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27147 (ceilf): Define using libm_alias_float.
27148 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27149 <libm-alias-float.h>.
27150 (copysignf): Define using libm_alias_float.
27151 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27152 (cosf): Define using libm_alias_float.
27153 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27154 (erff): Define using libm_alias_float.
27155 (erfcf): Likewise.
27156 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27157 (expm1f): Define using libm_alias_float.
27158 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27159 (fabsf): Define using libm_alias_float.
27160 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27161 (floorf): Define using libm_alias_float.
27162 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27163 (frexpf): Define using libm_alias_float.
27164 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27165 libm_alias_float.
27166 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27167 <libm-alias-float.h>.
27168 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27169 libm_alias_float.
27170 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27171 <libm-alias-float.h>.
27172 (getpayloadf): Define using libm_alias_float.
27173 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27174 <libm-alias-float.h>.
27175 (llrintf): Define using libm_alias_float.
27176 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27177 <libm-alias-float.h>.
27178 (llroundf): Define using libm_alias_float.
27179 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27180 (logbf): Define using libm_alias_float.
27181 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27182 (lrintf): Define using libm_alias_float.
27183 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27184 (lroundf): Define using libm_alias_float.
27185 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27186 (modff): Define using libm_alias_float.
27187 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27188 <libm-alias-float.h>.
27189 (nearbyintf): Define using libm_alias_float.
27190 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27191 <libm-alias-float.h>.
27192 (nextafterf): Define using libm_alias_float.
27193 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27194 <libm-alias-float.h>.
27195 (nextupf): Define using libm_alias_float.
27196 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27197 <libm-alias-float.h>.
27198 (remquof): Define using libm_alias_float.
27199 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27200 (rintf): Define using libm_alias_float.
27201 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27202 <libm-alias-float.h>.
27203 (roundevenf): Define using libm_alias_float.
27204 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27205 (roundf): Define using libm_alias_float.
27206 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27207 using libm_alias_float.
27208 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27209 <libm-alias-float.h>.
27210 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27211 Define using libm_alias_float.
27212 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27213 <libm-alias-float.h>.
27214 (sincosf): Define using libm_alias_float.
27215 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27216 (sinf): Define using libm_alias_float.
27217 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27218 (tanf): Define using libm_alias_float.
27219 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27220 (tanhf): Define using libm_alias_float.
27221 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27222 <libm-alias-float.h>.
27223 (totalorderf): Define using libm_alias_float.
27224 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27225 <libm-alias-float.h>.
27226 (totalordermagf): Define using libm_alias_float.
27227 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27228 (truncf): Define using libm_alias_float.
27229 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27230 libm_alias_float.
27231 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27232 libm_alias_float.
27233
27234 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27235
27236 [BZ #22146]
27237 math/math.h: Let fpclassify use the builtin in C++ mode, even
27238 when optimazing for size.
27239
27240 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27241
27242 * csu/Makefile (generated): Do not add version-info.h.
27243 (before-compile): Likewise.
27244 (all-Banner-files): Remove variable.
27245 ($(objpfx)version-info.h): Remove rule.
27246 * csu/version.c (banner): Do not include "version-info.h".
27247 * libidn/Banner: Remove.
27248 * manual/contrib.texi (Simon Josefsson): New entry.
27249
27250 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27251
27252 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27253 Remove conditionals on LDBL_MANT_DIG.
27254 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27255 (__ieee754_lgammal_r): Likewise.
27256
27257 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27258
27259 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27260 _Float128 and L().
27261 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27262 _Float128 and L(). Replace _Float128 with long double and L(x)
27263 with xL, throughout the file.
27264 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27265 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27266 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27267 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27268
27269 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27270
27271 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27272 sysdeps/ieee754/ldbl-128ibm.
27273 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27274 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27275 of including it. Keep _Float128 and L() intact. These will be
27276 reviewed by a separate patch.
27277 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27278 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27279 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27280 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27281
27282 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27283
27284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27285 (__finitef128): Define to __redirect___finitef128.
27286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27287 (__isinff128): Define to __redirect___isinff128.
27288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27289 (__isnanf128): Define to __redirect___isnanf128.
27290
27291 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27292
27293 * sysdeps/powerpc/powerpc64le/Makefile
27294 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27295 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27296
27297 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27298 Carlos O'Donell <carlos@redhat.com>
27299
27300 [BZ #22180]
27301 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27302 * stdlib/test-dlclose-exit-race.c: New file.
27303 * stdlib/test-dlclose-exit-race-helper.c: New file.
27304 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27305
27306 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27307
27308 * crypt/Banner: Remove file.
27309 * nptl/Banner: Likewise.
27310 * resolv/Banner: Likewise.
27311 * soft-fp/Banner: Likewise.
27312 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27313 ($(objpfx)version.d): Remove dependency on banner.h.
27314 ($(objpfx)version.os): Likewise.
27315 * nptl/version.c (banner): Do not include banner.h.
27316 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27317 Jelinek and BIND code.
27318
27319 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27320 Carlos O'Donell <carlos@redhat.com>
27321
27322 * support/xdlfcn.h: New file.
27323 * support/xdlfcn.c: New file.
27324 * support/Makefile (libsupport-routines): Add xdlfcn.
27325 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27326
27327 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27328
27329 [BZ #20142]
27330 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27331 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27332 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27333 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27334 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27335 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27336 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27337 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27338
27339 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27340 Ricky Zhou <rickyz@google.com>
27341 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27342
27343 [BZ #14333]
27344 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27345 Remove atomics.
27346 (__new_exitfn): Fail registration when we finished at_exit processing.
27347 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27348 * stdlib/on_exit.c (__on_exit): Likewise.
27349 * stdlib/exit.c (__exit_funcs_done): New variable.
27350 (__run_exit_handlers): Use __exit_funcs_lock.
27351 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27352 declarations.
27353 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27354 (test-cxa_atexit-race, test-on_exit-race): New tests.
27355 * stdlib/test-atexit-race-common.c: New file.
27356 * stdlib/test-atexit-race.c: New file.
27357 * stdlib/test-at_quick_exit-race.c: New file.
27358 * stdlib/test-cxa_atexit-race.c: New file.
27359 * stdlib/test-on_exit-race.c: New file.
27360
27361 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27362
27363 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27364 * benchtests/exp2f-inputs: Copy of expf-inputs.
27365 * benchtests/log2f-inputs: Copy of logf-inputs.
27366
27367 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27368
27369 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27370 Explicitly take address of first element of array arguments in
27371 call to INLINE_SYSCALL.
27372
27373 2017-09-19 Andreas Schwab <schwab@suse.de>
27374
27375 [BZ #22134]
27376 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27377 execveat first.
27378 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27379 unimplemented.
27380 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27381 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27382 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27383 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27384 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27385 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27386 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27387 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27388 * posix/Makefile (tests): Add tst-fexecve.
27389 * posix/tst-fexecve.c: New file.
27390
27391 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27392
27393 * benchtests/Makefile: Add logf benchmark.
27394 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27395
27396 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27397
27398 * benchtests/Makefile: Add expf benchmark.
27399 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27400
27401 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27402
27403 * csu/Makefile: Add -funwind-tables to libc-start.c.
27404 * debug/Makefile: Add -funwind-tables to backtrace.c.
27405 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27406 * sysdeps/arm/Makefile: Likewise.
27407 * sysdeps/i386/Makefile: Likewise.
27408 * sysdeps/m68k/Makefile: Likewise.
27409 * sysdeps/mips/Makefile: Likewise.
27410 * sysdeps/nios2/Makefile: Likewise.
27411 * sysdeps/sh/Makefile: Likewise.
27412 * sysdeps/sparc/Makefile: Likewise.
27413
27414 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27415
27416 * benchtests/Makefile (bench-math): Add trunc and truncf.
27417 (CFLAGS-bench-trunc.c): New variable.
27418 (CFLAGS-bench-truncf.c): Likewise.
27419 * benchtests/trunc-inputs: New file.
27420 * benchtests/truncf-inputs: Likewise.
27421
27422 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27423
27424 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27425
27426 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27427
27428 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27429 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27430 redefine.
27431 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27432 (exp10l): Define as weak alias.
27433 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27434 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27435 and redefine.
27436 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27437 (remainderl): Define as weak alias.
27438
27439 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27440 (fmal): Define using libm_alias_ldouble.
27441 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27442 (acoshl): Define using libm_alias_ldouble.
27443 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27444 (acosl): Define using libm_alias_ldouble.
27445 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27446 (asinl): Define using libm_alias_ldouble.
27447 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27448 (atan2l): Define using libm_alias_ldouble.
27449 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27450 (atanhl): Define using libm_alias_ldouble.
27451 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27452 (coshl): Define using libm_alias_ldouble.
27453 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27454 (exp10l): Define using libm_alias_ldouble.
27455 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27456 (exp2l): Define using libm_alias_ldouble.
27457 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27458 (expl): Define using libm_alias_ldouble.
27459 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27460 (fmodl): Define using libm_alias_ldouble.
27461 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27462 (hypotl): Define using libm_alias_ldouble.
27463 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27464 (j0l): Define using libm_alias_ldouble.
27465 (y0l): Likewise.
27466 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27467 (j1l): Define using libm_alias_ldouble.
27468 (y1l): Likewise.
27469 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27470 (jnl): Define using libm_alias_ldouble.
27471 (ynl): Likewise.
27472 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27473 (log10l): Define using libm_alias_ldouble.
27474 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27475 (log2l): Define using libm_alias_ldouble.
27476 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27477 (logl): Define using libm_alias_ldouble.
27478 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27479 (powl): Define using libm_alias_ldouble.
27480 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27481 (remainderl): Define using libm_alias_ldouble.
27482 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27483 (sinhl): Define using libm_alias_ldouble.
27484 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27485 (sqrtl): Define using libm_alias_ldouble.
27486 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27487 (tgammal): Define using libm_alias_ldouble.
27488 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27489 (exp10l): Do not use long_double_symbol here.
27490 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27491 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27492 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27493 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27494 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27495 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27496 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27497 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27498 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27499 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27500 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27501 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27502 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27503 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27504 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27505 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27506 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27507 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27508 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27509 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27510 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27511 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27512
27513 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27514
27515 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27516 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27517
27518 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27519
27520 * io/read.c (read): Add libc_hidden_weak.
27521 * sysdeps/mach/hurd/read.c (read): Likewise.
27522 * io/write.c (write): Likewise.
27523 * sysdeps/mach/hurd/write.c (write): Likewise.
27524 * io/pread64.c (__pread64): Likewise.
27525 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27526 * posix/pread64.c (__pread64): Add libc_hidden_def.
27527
27528 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27529
27530 * benchtests/scripts/compare_strings.py: New option -g.
27531 (draw_graph): Print a message that a graph is being generated.
27532 (process_results): Generate graph only if -g is passed.
27533 (main): Process option -g.
27534
27535 * benchtests/scripts/compare_strings.py (process_results):
27536 Better spacing for output.
27537
27538 * benchtests/scripts/compare_strings.py: Use argparse.
27539 * benchtests/README: Document existence of compare_strings.py.
27540
27541 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27542
27543 * math/s_fma.c: Include <libm-alias-double.h>.
27544 (fma): Define using libm_alias_double.
27545 * math/s_nextafter.c: Include <libm-alias-double.h>.
27546 (nextafter): Define using libm_alias_double.
27547 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27548 (acos): Define using libm_alias_double.
27549 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27550 (aocsh): Define using libm_alias_double.
27551 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27552 (asin): Define using libm_alias_double.
27553 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27554 (atan2): Define using libm_alias_double.
27555 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27556 (atanh): Define using libm_alias_double.
27557 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27558 (cosh): Define using libm_alias_double.
27559 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27560 (exp10): Define using libm_alias_double.
27561 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27562 (exp2): Define using libm_alias_double.
27563 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27564 (exp): Define using libm_alias_double.
27565 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27566 (fmod): Define using libm_alias_double.
27567 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27568 (hypot): Define using libm_alias_double.
27569 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27570 (j0): Define using libm_alias_double.
27571 (y0): Likewise.
27572 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27573 (j1): Define using libm_alias_double.
27574 (y1): Likewise.
27575 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27576 (jn): Define using libm_alias_double.
27577 (yn): Likewise.
27578 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27579 (log10): Define using libm_alias_double.
27580 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27581 (log2): Define using libm_alias_double.
27582 * math/w_log_compat.c: Include <libm-alias-double.h>.
27583 (log): Define using libm_alias_double.
27584 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27585 (pow): Define using libm_alias_double.
27586 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27587 (remainder): Define using libm_alias_double.
27588 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27589 (sinh): Define using libm_alias_double.
27590 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27591 (sqrt): Define using libm_alias_double.
27592 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27593 (tgamma): Define using libm_alias_double.
27594 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27595 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27596 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27597 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27598 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27599 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27600 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27601 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27602 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27603 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27604 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27605 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27606 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27607 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27608 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27609 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27610 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27611 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27612 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27613 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27614 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27615 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27616 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27617 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27618 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27619
27620 * math/e_acoshl.c: Remove.
27621 * math/e_acosl.c: Likewise.
27622 * math/e_asinl.c: Likewise.
27623 * math/e_atan2l.c: Likewise.
27624 * math/e_atanhl.c: Likewise.
27625 * math/e_coshl.c: Likewise.
27626 * math/e_expl.c: Likewise.
27627 * math/e_fmodl.c: Likewise.
27628 * math/e_gammal_r.c: Likewise.
27629 * math/e_hypotl.c: Likewise.
27630 * math/e_j0l.c: Likewise.
27631 * math/e_j1l.c: Likewise.
27632 * math/e_jnl.c: Likewise.
27633 * math/e_lgammal_r.c: Likewise.
27634 * math/e_log10l.c: Likewise.
27635 * math/e_log2l.c: Likewise.
27636 * math/e_logl.c: Likewise.
27637 * math/e_powl.c: Likewise.
27638 * math/e_rem_pio2l.c: Likewise.
27639 * math/e_sinhl.c: Likewise.
27640 * math/e_sqrtf128.c: Likewise.
27641 * math/e_sqrtl.c: Likewise.
27642 * math/k_cosl.c: Likewise.
27643 * math/k_sinl.c: Likewise.
27644 * math/k_tanl.c: Likewise.
27645 * math/s_asinhl.c: Likewise.
27646 * math/s_atanl.c: Likewise.
27647 * math/s_cbrtl.c: Likewise.
27648 * math/s_erfl.c: Likewise.
27649 * math/s_expm1l.c: Likewise.
27650 * math/s_log1pl.c: Likewise.
27651 * math/s_tanhl.c: Likewise.
27652
27653 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27654
27655 [BZ #21745]
27656 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27657 [$(subdir) = math] (sysdep_calls): New variable. Has the
27658 previous contents of sysdep_routines, but re-sorted..
27659 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27660 sysdep_calls.
27661 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27662 defined in sysdep_calls and replace by the respective m_* names.
27663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27664 (compat_symbol): Undefine to avoid duplicated compat symbols in
27665 libc.
27666
27667 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27668
27669 * math/s_fmaf.c: Include <libm-alias-float.h>.
27670 (fmaf): Define using libm_alias_float.
27671 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27672 (acosf): Define using libm_alias_float.
27673 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27674 (acoshf): Define using libm_alias_float.
27675 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27676 (asinf): Define using libm_alias_float.
27677 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27678 (atan2f): Define using libm_alias_float.
27679 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27680 (atanhf): Define using libm_alias_float.
27681 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27682 (coshf): Define using libm_alias_float.
27683 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27684 (exp10f): Define using libm_alias_float.
27685 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27686 (fmodf): Define using libm_alias_float.
27687 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27688 (hypotf): Define using libm_alias_float.
27689 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27690 (j0f): Define using libm_alias_float.
27691 (y0f): Likewise.
27692 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27693 (j1f): Define using libm_alias_float.
27694 (y1f): Likewise.
27695 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27696 (jnf): Define using libm_alias_float.
27697 (ynf): Likewise.
27698 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27699 (log10f): Define using libm_alias_float.
27700 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27701 (log2f): Define using libm_alias_float.
27702 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27703 (logf): Define using libm_alias_float.
27704 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27705 (powf): Define using libm_alias_float.
27706 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27707 (remainderf): Define using libm_alias_float.
27708 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27709 (sinhf): Define using libm_alias_float.
27710 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27711 (sqrtf): Define using libm_alias_float.
27712 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27713 (tgammaf): Define using libm_alias_float.
27714
27715 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27716
27717 * include/math.h (roundeven): Change hidden_proto call to
27718 __roundeven.
27719 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27720 alias.
27721 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27722 (y0): Rename to __y0 and define as weak alias.
27723 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27724 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27725 alias.
27726 (y0f): Rename to __y0f and define as weak alias.
27727 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27728 alias.
27729 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27730 (y1): Rename to __y1 and define as weak alias.
27731 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27732 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27733 alias.
27734 (y1f): Rename to __y1f and define as weak alias.
27735 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27736 alias.
27737 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27738 (yn): Rename to __yn and define as weak alias.
27739 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27740 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27741 alias.
27742 (ynf): Rename to __ynf and define as weak alias.
27743 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27744 (fromfp): Define as weak alias.
27745 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27746 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27747 (fromfpx): Define as weak alias.
27748 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27749 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27750 __getpayload and define as weak alias.
27751 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27752 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27753 __roundeven and define as weak alias.
27754 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27755 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27756 __setpayload.
27757 (setpayload): Define as weak alias.
27758 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27759 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27760 __setpayloadsig.
27761 (setpayloadsig): Define as weak alias.
27762 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27763 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27764 __totalorder and define as weak alias.
27765 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27766 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27767 to __totalordermag and define as weak alias.
27768 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27769 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27770 (ufromfp): Define as weak alias.
27771 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27772 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27773 __ufromfpx.
27774 (ufromfpx): Define as weak alias.
27775 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27776 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27777 Rename to __getpayload and define as weak alias.
27778 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27779 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27780 Rename to __roundeven and define as weak alias.
27781 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27782 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27783 Rename to __totalorder and define as weak alias.
27784 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27785 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27786 (totalordermag): Rename to __totalordermag and define as weak
27787 alias.
27788 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27789 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27790 macro.
27791 (__roundevenl): Likewise.
27792 (__totalorderl): Likewise.
27793 (__totalordermagl): Likewise
27794 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27795 __fromfpf128.
27796 (fromfpf128): Define as weak alias.
27797 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27798 __fromfpxf128.
27799 (fromfpxf128): Define as weak alias.
27800 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27801 __setpayloadf128.
27802 (setpayloadf128): Define as weak alias.
27803 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27804 __setpayloadsigf128.
27805 (setpayloadsigf128): Define as weak alias.
27806 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27807 __ufromfpf128.
27808 (ufromfpf128): Define as weak alias.
27809 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27810 __ufromfpxf128.
27811 (ufromfpxf128): Define as weak alias.
27812 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27813 (fromfpf): Define as weak alias.
27814 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27815 __fromfpxf.
27816 (fromfpxf): Define as weak alias.
27817 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27818 __getpayloadf and define as weak alias.
27819 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27820 __roundevenf and define as weak alias.
27821 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27822 __setpayloadf.
27823 (setpayloadf): Define as weak alias.
27824 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27825 __setpayloadsigf.
27826 (setpayloadsigf): Define as weak alias.
27827 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27828 __totalorderf and define as weak alias.
27829 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27830 Rename to __totalordermagf and define as weak alias.
27831 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27832 __ufromfpf.
27833 (ufromfpf): Define as weak alias.
27834 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27835 __ufromfpxf.
27836 (ufromfpxf): Define as weak alias.
27837 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27838 __fromfpl.
27839 (fromfpl): Define as weak alias.
27840 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27841 __fromfpxl.
27842 (fromfpxl): Define as weak alias.
27843 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27844 to __getpayloadl and define as weak alias.
27845 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27846 __roundevenl and define as weak alias.
27847 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27848 __setpayloadl.
27849 (setpayloadl): Define as weak alias.
27850 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27851 __setpayloadsigl.
27852 (setpayloadsigl): Define as weak alias.
27853 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27854 to __totalorderl and define as weak alias.
27855 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27856 Rename to __totalordermagl and define as weak alias.
27857 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27858 __ufromfpl.
27859 (ufromfpl): Define as weak alias.
27860 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27861 __ufromfpxl.
27862 (ufromfpxl): Define as weak alias.
27863 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27864 __fromfpl.
27865 (fromfpl): Define as weak alias.
27866 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27867 __fromfpxl.
27868 (fromfpxl): Define as weak alias.
27869 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27870 Rename to __getpayloadl and define as weak alias.
27871 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27872 to __roundevenl and define as weak alias. Call __roundeven
27873 instead of roundeven.
27874 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27875 __setpayloadl.
27876 (setpayloadl): Define as weak alias.
27877 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27878 __setpayloadsigl.
27879 (setpayloadsigl): Define as weak alias.
27880 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27881 Rename to __totalorderl and define as weak alias.
27882 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27883 Rename to __totalordermagl and define as weak alias.
27884 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27885 __ufromfpl.
27886 (ufromfpl): Define as weak alias.
27887 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27888 __ufromfpxl.
27889 (ufromfpxl): Define as weak alias.
27890 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27891 __fromfpl.
27892 (fromfpl): Define as weak alias.
27893 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27894 __fromfpxl.
27895 (fromfpxl): Define as weak alias.
27896 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27897 __getpayloadl and define as weak alias.
27898 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27899 __roundevenl and define as weak alias.
27900 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27901 __setpayloadl.
27902 (setpayloadl): Define as weak alias.
27903 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27904 __setpayloadsigl.
27905 (setpayloadsigl): Define as weak alias.
27906 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27907 __totalorderl and define as weak alias.
27908 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27909 Rename to __totalordermagl and define as weak alias.
27910 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27911 __ufromfpl.
27912 (ufromfpl): Define as weak alias.
27913 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27914 __ufromfpxl.
27915 (ufromfpxl): Define as weak alias.
27916
27917 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27918
27919 * benchtests/bench-string.h (realloc_bufs): New function.
27920 (test_init): Call it.
27921 * benchtests/bench-memset-large.c (do_test): Likewise.
27922 * benchtests/bench-memset.c (do_test): Likewise.
27923
27924 * benchtests/bench-memset-large.c: Print output in JSON
27925 format.
27926 * benchtests/bench-memset.c: Likewise.
27927
27928 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27929
27930 [BZ #21084]
27931 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27932 * iconvdata/Makefile: Add IBM858.
27933 * iconvdata/gconv-modules: Likewise.
27934 * iconvdata/tst-tables.sh: Likewise.
27935 * iconvdata/ibm858.c: New file.
27936 * localedata/charmaps/IBM858: Likewise.
27937
27938 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27939
27940 [BZ #22023]
27941 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27942 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27943
27944 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27945
27946 [BZ #22112]
27947 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27948 and add tel_int_fmt.
27949
27950 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27951
27952 * sysdeps/generic/libm-alias-float128.h: New file.
27953 * sysdeps/generic/math-type-macros-float128.h: Include
27954 <libm-alias-float128.h>.
27955 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27956
27957 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27958
27959 * sysdeps/generic/libm-alias-ldouble.h: New file.
27960 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27961 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27962 * sysdeps/generic/math-type-macros-ldouble.h: Include
27963 <libm-alias-ldouble.h>.
27964 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27965 libm_alias_ldouble.
27966
27967 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27968
27969 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27970 * math/w_exp_compat.c: ... here.
27971 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27972 * math/w_expf_compat.c: ... here.
27973 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27974 * math/w_expl_compat.c: ... here.
27975 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27976 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27977 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27978 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27979
27980 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27981
27982 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27983 redefine.
27984 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27985 macro.
27986 (ldexpl): Only define as compat symbol for libc, not libm.
27987 (scalbnl): Define as compat symbol for libc here.
27988 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27989 define for [IS_IN (libc)].
27990 (__ldexpl_2): Remove alias.
27991 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27992 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27993 name in long_double_symbol call.
27994 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27995 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27996 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27997 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27998 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27999 Remove macro.
28000 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28001 Define as compat symbol.
28002
28003 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28004
28005 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28006 * sysdeps/unix/sysv/linux/alpha/Makefile
28007 [$(subdir) = csu] (sysdep_routines): Remove rule.
28008
28009 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28010
28011 * sysdeps/generic/libm-alias-double.h: New file.
28012 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28013 * sysdeps/generic/math-type-macros-double.h: Include
28014 <libm-alias-double.h>.
28015 [declare_mgen_alias] (declare_mgen_alias): Define to use
28016 libm_alias_double.
28017 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28018 (M_LIBM_NEED_COMPAT): Remove macro.
28019 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28020 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28021 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28022 code.
28023 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28024 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28025 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28026 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28027 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28028 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28029 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28030 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28031 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28032 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28033 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28034 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28035 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28036 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28037 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28038 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28039 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28040 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28041 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28042 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28043 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28044 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28045 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28046 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28047 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28048 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28049 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28050 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28051 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28052 macro.
28053 (declare_mgen_alias): New macro.
28054 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28055 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28056 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28057 (M_LIBM_NEED_COMPAT): Remove macro.
28058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28059 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28060 <first-versions.h>.
28061 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28062 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28063
28064 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28065
28066 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28067 (declare_mgen_alias_2): Remove.
28068 * sysdeps/generic/math-type-macros-double.h
28069 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28070 Likewise.
28071 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28072 alias.
28073 (ldexp): Define with declare_mgen_alias.
28074 (scalbn): Likewise.
28075
28076 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28077
28078 * grp/initgroups.c: Include config.h.
28079 (DEFAULT_CONFIG): New macro.
28080 (internal_getgrouplist): Use DEFAULT_CONFIG.
28081 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28082 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28083 (DEFAULT_DEFCONFIG): New macro.
28084 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28085 * nss/grp-lookup.c: Include config.h
28086 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28087 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28088 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28089 * manual/nss.texi: Update default values section.
28090
28091 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28092
28093 [BZ #21967]
28094 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28095 New.
28096 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28097 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28098 Handle MathVec_Prefer_No_AVX512.
28099 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28100 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28101 is set.
28102
28103 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28104
28105 * posix/sched_primax.c (__sched_get_priority_max): Add
28106 libc_hidden_def.
28107 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28108 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28109 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28110 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28111 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28112 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28113 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28114 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28115 Add aliases.
28116
28117 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28118
28119 * sysdeps/generic/libm-alias-float.h: New file.
28120 * sysdeps/generic/math-type-macros-float.h: Include
28121 <libm-alias-float.h>.
28122 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28123
28124 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28125
28126 [BZ #22093]
28127 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28128 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28129 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28130 (HWCAP_IMPORTANT): Likewise.
28131 (HWCAP_X86_64): New enum.
28132 (HWCAP_X86_AVX512_1): Updated.
28133 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28134 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28135 (modules-names): Add x86_64/tst-x86_64mod-1.
28136 (LDFLAGS-tst-x86_64mod-1.so): New.
28137 ($(objpfx)tst-x86_64-1): Likewise.
28138 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28139 (tst-x86_64-1-clean): Likewise.
28140 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28141 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28142
28143 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28144
28145 * po/sv.po: Update translations.
28146 * po/fr.po: Likewise.
28147
28148 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28149
28150 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28151 seconds.
28152 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28153 seconds.
28154 * elf/rtld-Rules: Fix $(error) use.
28155
28156 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28157
28158 [BZ #14925]
28159 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28160 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28161 * localedata/locales/bn_BD: “Bengali” was still used in some
28162 comments. Change it to “Bangla”.
28163
28164 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28165
28166 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28167
28168 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28169
28170 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28171 thunderx2t99p1 to list of cpu names.
28172 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28173 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28174
28175 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28176
28177 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28178 Use strcmp instead of tunable_is_name.
28179
28180 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28181
28182 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28183 (F_GET_RW_HINT): New macro.
28184 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28185 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28186 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28187 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28188 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28189 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28190 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28191 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28192 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28193
28194 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28195 (F_ADD_SEALS): New macro.
28196 [__USE_GNU] (F_GET_SEALS): Likewise.
28197 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28198 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28199 [__USE_GNU] (F_SEAL_GROW): Likewise.
28200 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28201
28202 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28203
28204 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28205 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28206 * posix/glob_internal.h (__glob_pattern_type):
28207 * posix/glob.c (glob):
28208 * posix/glob_pattern_p.c (__glob_pattern_p):
28209 Use them.
28210
28211 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28212 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28213 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28214 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28215 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28217 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28218 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28219 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28220 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28221 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28222 * sysdeps/wordsize-64/glob.c: Likewise.
28223 * sysdeps/wordsize-64/glob64.c: Likewise.
28224 * sysdeps/wordsize-64/globfree.c: Likewise.
28225 * sysdeps/wordsize-64/globfree64.c: Likewise.
28226 * sysdeps/unix/sysv/linux/glob.c: New file.
28227 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28228 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28229 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28230 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28231 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28232 adds !GLOB_NO_OLD_VERSION as an extra condition.
28233 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28234 using relative path instead of absolute one.
28235 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28236 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28237 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28238 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28239 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28240 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28241
28242 [BZ #1062]
28243 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28244 (glob): Use the same scratch buffer for both getlogin_r and
28245 getpwnam_r. Don’t require preallocation of the login name. This
28246 simplifies storage allocation, and corrects the handling of
28247 long login names.
28248
28249 [BZ #1062]
28250 * posix/glob.c (glob): Port recent patches to platforms
28251 lacking getpwnam_r.
28252 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28253 returns an error number rather than setting errno.
28254
28255 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28256 instead of GCC extension.
28257 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28258 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28259 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28260
28261 [BZ #866]
28262 [BZ #1062]
28263 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28264 * posix/bug-glob1.c: Remove file.
28265 * posix/tst-glob_symlinks.c: New file.
28266 * posix/glob.c (__lstat64): New macro.
28267 (is_dir): New function.
28268 (glob, glob_in_dir): Match symlinks even if they are dangling.
28269 (link_stat, link_exists_p): Remove. All uses removed.
28270
28271 [BZ #1062]
28272 [BZ #19971]
28273 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28274 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28275 All uses removed.
28276
28277 [BZ #1062]
28278 CVE-2017-15671
28279 * posix/Makefile (routines): Add globfree, globfree64, and
28280 glob_pattern_p.
28281 * posix/flexmember.h: New file.
28282 * posix/glob_internal.h: Likewise.
28283 * posix/glob_pattern_p.c: Likewise.
28284 * posix/globfree.c: Likewise.
28285 * posix/globfree64.c: Likewise.
28286 * sysdeps/gnu/globfree64.c: Likewise.
28287 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28288 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28289 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28290 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28291 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28292 * sysdeps/wordsize-64/globfree.c: Likewise.
28293 * sysdeps/wordsize-64/globfree64.c: Likewise.
28294 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28295 [NDEBUG): Remove comments.
28296 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28297 (dirent_type): New type. Use uint_fast8_t not
28298 uint8_t, as C99 does not require uint8_t.
28299 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28300 (struct readdir_result): Use dirent_type. Do not define skip_entry
28301 unless it is needed; this saves a byte on platforms lacking d_ino.
28302 (readdir_result_type, readdir_result_skip_entry):
28303 New functions, replacing ...
28304 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28305 these functions, which were removed. This makes the callers
28306 easier to read. All callers changed.
28307 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28308 (size_add_wrapv, glob_use_alloca): New static functions.
28309 (glob, glob_in_dir): Check for size_t overflow in several places,
28310 and fix some size_t checks that were not quite right.
28311 Remove old code using SHELL since Bash no longer
28312 uses this.
28313 (glob, prefix_array): Separate MS code better.
28314 (glob_in_dir): Remove old Amiga and VMS code.
28315 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28316 separate files.
28317 (glob_in_dir): Do not rely on undefined behavior in accessing
28318 struct members beyond their bounds. Use a flexible array member
28319 instead
28320 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28321 0/1. Caller changed.
28322 (glob): Fix memory leaks.
28323 * posix/glob64 (globfree64): Move to separate file.
28324 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28325 (globfree64): Remove hidden alias.
28326 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28327 oldglob.
28328 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28329 separate file.
28330 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28331 define.
28332 Move compat code to separate file.
28333 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28334 separate file.
28335
28336 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28337
28338 * resolv/tst-resolv-qtypes.c (domain): Changed to
28339 "const char domain[] =".
28340
28341 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28342
28343 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28344 version to 3.1.6.
28345
28346 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28347 (TCP_MD5SIG_EXT): Likewise.
28348 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28349 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28350 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28351
28352 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28353
28354 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28355
28356 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28357
28358 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28359
28360 [BZ #22100]
28361 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28362
28363 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28364
28365 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28366 before assuming that the file is empty. Avoid testing buffer content
28367 when nread == 0.
28368
28369 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28370
28371 [BZ #18858]
28372 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28373 Remove define.
28374 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28375 Likewise.
28376 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28377 Likewise.
28378 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28379 Likewise.
28380 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28381 Likewise.
28382 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28383 Likewise.
28384 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28385 Likewise.
28386
28387 2017-09-06 Florian Weimer <fweimer@redhat.com>
28388
28389 * malloc/dynarray_emplace_enlarge.c
28390 (__libc_dynarray_emplace_enlarge): Add missing else.
28391
28392 2017-09-06 Florian Weimer <fweimer@redhat.com>
28393
28394 [BZ #22096]
28395 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28396 case of failure to obtain the global conf object.
28397
28398 2017-09-06 Florian Weimer <fweimer@redhat.com>
28399
28400 [BZ #22095]
28401 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28402 dynarray allocation failure.
28403
28404 2017-09-06 Florian Weimer <fweimer@redhat.com>
28405
28406 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28407 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28408 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28409 New functions.
28410 (response): Call them. Add 'p', '6' flag processing.
28411 (test_reverse): New function.
28412 (test_get2_any): Call it.
28413 (test_no_inet6): Add 'p' test.
28414 (test_inet6): Likewise.
28415
28416 2017-09-06 Florian Weimer <fweimer@redhat.com>
28417
28418 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28419 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28420 the QNAME.
28421 (test_gai): Adjust query names. Add additional tests.
28422 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28423 test_get2. Adjust query names. Add additional tests.
28424 (test_no_inet6): New function, extracted from threadfunc.
28425 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28426 Add additional tests.
28427
28428 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28429
28430 [BZ #22070]
28431 * localedata/unicode-gen/utf8_gen.py: Set the width for
28432 characters with Prepended_Concatenation_Mark property to 1
28433 * localedata/charmaps/UTF-8: Updated using the improved script.
28434
28435 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28436
28437 [BZ #21750]
28438 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28439 use the range notation for all ranges of neighbouring characters
28440 with the same width.
28441
28442 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28443
28444 * sysdeps/generic/math-type-macros-double.h: Include
28445 <math-svid-compat.h>.
28446 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28447 * sysdeps/generic/math-type-macros-float.h: Include
28448 <math-svid-compat.h>.
28449 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28450 * sysdeps/generic/math-type-macros-ldouble.h: Include
28451 <math-svid-compat.h>.
28452 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28453 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28454 condition.
28455 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28456 * math/w_acosf_compat.c: Likewise.
28457 * math/w_acosh_compat.c: Likewise.
28458 * math/w_acoshf_compat.c: Likewise.
28459 * math/w_acoshl_compat.c: Likewise.
28460 * math/w_acosl_compat.c: Likewise.
28461 * math/w_asin_compat.c: Likewise.
28462 * math/w_asinf_compat.c: Likewise.
28463 * math/w_asinl_compat.c: Likewise.
28464 * math/w_atan2_compat.c: Likewise.
28465 * math/w_atan2f_compat.c: Likewise.
28466 * math/w_atan2l_compat.c: Likewise.
28467 * math/w_atanh_compat.c: Likewise.
28468 * math/w_atanhf_compat.c: Likewise.
28469 * math/w_atanhl_compat.c: Likewise.
28470 * math/w_cosh_compat.c: Likewise.
28471 * math/w_coshf_compat.c: Likewise.
28472 * math/w_coshl_compat.c: Likewise.
28473 * math/w_exp10_compat.c: Likewise.
28474 * math/w_exp10f_compat.c: Likewise.
28475 * math/w_exp10l_compat.c: Likewise.
28476 * math/w_exp2_compat.c: Likewise.
28477 * math/w_exp2f_compat.c: Likewise.
28478 * math/w_exp2l_compat.c: Likewise.
28479 * math/w_fmod_compat.c: Likewise.
28480 * math/w_fmodf_compat.c: Likewise.
28481 * math/w_fmodl_compat.c: Likewise.
28482 * math/w_hypot_compat.c: Likewise.
28483 * math/w_hypotf_compat.c: Likewise.
28484 * math/w_hypotl_compat.c: Likewise.
28485 * math/w_j0_compat.c: Likewise.
28486 * math/w_j0f_compat.c: Likewise.
28487 * math/w_j0l_compat.c: Likewise.
28488 * math/w_j1_compat.c: Likewise.
28489 * math/w_j1f_compat.c: Likewise.
28490 * math/w_j1l_compat.c: Likewise.
28491 * math/w_jn_compat.c: Likewise.
28492 * math/w_jnf_compat.c: Likewise.
28493 * math/w_jnl_compat.c: Likewise.
28494 * math/w_lgamma_r_compat.c: Likewise.
28495 * math/w_lgammaf_r_compat.c: Likewise.
28496 * math/w_lgammal_r_compat.c: Likewise.
28497 * math/w_log10_compat.c: Likewise.
28498 * math/w_log10f_compat.c: Likewise.
28499 * math/w_log10l_compat.c: Likewise.
28500 * math/w_log2_compat.c: Likewise.
28501 * math/w_log2f_compat.c: Likewise.
28502 * math/w_log2l_compat.c: Likewise.
28503 * math/w_log_compat.c: Likewise.
28504 * math/w_logf_compat.c: Likewise.
28505 * math/w_logl_compat.c: Likewise.
28506 * math/w_pow_compat.c: Likewise.
28507 * math/w_powf_compat.c: Likewise.
28508 * math/w_powl_compat.c: Likewise.
28509 * math/w_remainder_compat.c: Likewise.
28510 * math/w_remainderf_compat.c: Likewise.
28511 * math/w_remainderl_compat.c: Likewise.
28512 * math/w_sinh_compat.c: Likewise.
28513 * math/w_sinhf_compat.c: Likewise.
28514 * math/w_sinhl_compat.c: Likewise.
28515 * math/w_sqrt_compat.c: Likewise.
28516 * math/w_sqrtf_compat.c: Likewise.
28517 * math/w_sqrtl_compat.c: Likewise.
28518 * math/w_tgamma_compat.c: Likewise.
28519 * math/w_tgammaf_compat.c: Likewise.
28520 * math/w_tgammal_compat.c: Likewise.
28521 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28522 [LIBM_SVID_COMPAT].
28523 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28524 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28525 [LIBM_SVID_COMPAT].
28526 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28527 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28528 [LIBM_SVID_COMPAT].
28529 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28530 * sysdeps/i386/fpu/w_sqrt.c: New file.
28531 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28532 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28533 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28534 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28535 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28536 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28537 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28538 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28539 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28540 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28541 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28542 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28543 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28544 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28545 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28546 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28547 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28548 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28549 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28550 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28551 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28552 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28553 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28554 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28555 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28556 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28557 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28558 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28559 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28560 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28561 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28562 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28563 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28564 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28565 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28566 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28567 * sysdeps/ia64/fpu/w_log.c: Likewise.
28568 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28569 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28570 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28571 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28572 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28573 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28574 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28575 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28576 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28577 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28578 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28579 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28580 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28581 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28582 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28583 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28584 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28585 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28586 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28587 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28588 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28589 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28590 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28591 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28592 [LIBM_SVID_COMPAT].
28593 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28594 * sysdeps/ieee754/k_standard.c: Likewise.
28595 * sysdeps/ieee754/k_standardf.c: Likewise.
28596 * sysdeps/ieee754/k_standardl.c: Likewise.
28597 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28598 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28599 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28600 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28601 long_double_symbol call on [LIBM_SVID_COMPAT].
28602 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28603 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28604 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28605 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28606 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28607 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28608 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28609 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28610 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28611 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28612 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28613 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28614 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28615 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28616 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28617 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28618 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28619 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28620 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28621 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28622 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28623 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28624
28625 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28626
28627 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28628 * malloc/tst-mallocstate.c: Convert from test-skeleton
28629 to test-driver. Ifdef code using TEST_COMPAT macro.
28630 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28631 * math/test-matherr.c: Likewise.
28632
28633 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28634
28635 [BZ #22086]
28636 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28637 comparing word with byte-swapped constant.
28638
28639 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28640
28641 [BZ #20498]
28642 * locale/iso-639.def: add Miskito.
28643 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28644 * localedata/locales/miq_NI: New file.
28645
28646 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28647
28648 [BZ #18822]
28649 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28650 (__mkdir): Likewise.
28651 * io/chmod.c (__chmod): Add libc_hidden_def.
28652 * io/mkdir.c (__mkdir): Likewise.
28653 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28654 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28655 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28656 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28657
28658 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28659
28660 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28661 version to 4.13.
28662
28663 [BZ #22082]
28664 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28665 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28666
28667 2017-09-04 Florian Weimer <fweimer@redhat.com>
28668
28669 * math/math.h: Issue warning if log is defined.
28670
28671 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28672
28673 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28674 kernel version to 4.13.
28675
28676 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28677
28678 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28679 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28680 parameter.
28681 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28682 just <bits/types.h>.
28683 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28684 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28685 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28686 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28687 * misc/preadv2.c: Include <errno.h>.
28688 * misc/preadv64v2.c: Include <errno.h>.
28689 * misc/pwritev2.c: Include <errno.h>.
28690 * misc/pwritev64v2.c: Include <errno.h>.
28691 * sysdeps/posix/preadv2.c: Include <errno.h>.
28692 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28693 Fix <unistd.h> inclusion.
28694 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28695 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28696 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28697 __strtoul_internal): New functions.
28698 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28699 * sysdeps/posix/system.c: Include <sigsetops.h>.
28700 * sysdeps/mach/hurd/i386/Makefile
28701 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28702 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28703 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28704 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28705 __feraiseexcept_renamed to feraiseexcept instead of
28706 __GI_feraiseexcept.
28707 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28708 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28709 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28710 RWF_NOWAIT): Define to 0 if undefined already.
28711 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28712 boils down to 0.
28713 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28714 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28715
28716 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28717
28718 * manual/math.texi (pow10): Do not document.
28719 (pow10f): Likewise.
28720 (pow10l): Likewise.
28721 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28722 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28723 * math/libm-test-exp10.inc (pow10_test): Remove.
28724 (do_test): Do not call pow10.
28725 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28726 [NO_LONG_DOUBLE] (pow10l): Likewise.
28727 * math/w_exp10f_compat.c (pow10f): Likewise.
28728 * math/w_exp10l_compat.c (pow10l): Likewise.
28729 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28730 (pow10): Make into compat symbol.
28731 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28732 (pow10f): Make into compat symbol.
28733 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28734 (pow10l): Make into compat symbol.
28735 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28736 pow10.
28737 (CFLAGS-nldbl-pow10.c): Remove variable..
28738 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28739 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28740 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28741 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28742 Undefine and redefine.
28743 (pow10l): Make into compat symbol.
28744 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28745 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28746 * sysdeps/arm/libm-test-ulps: Likewise.
28747 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28748 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28749 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28750 * sysdeps/microblaze/libm-test-ulps: Likewise.
28751 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28752 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28753 * sysdeps/nios2/libm-test-ulps: Likewise.
28754 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28755 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28756 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28757 * sysdeps/sh/libm-test-ulps: Likewise.
28758 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28759 * sysdeps/tile/libm-test-ulps: Likewise.
28760 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28761
28762 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28763
28764 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28765
28766 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28767
28768 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28769 "../ChangeLog.old/ChangeLog.8".
28770 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28771 "../ChangeLog.old/ChangeLog.14".
28772
28773 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28774
28775 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28776 Threads Library.
28777
28778 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28779
28780 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28781
28782 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28783
28784 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28785 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28786
28787 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28788
28789 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28790 32 atexit handlers.
28791
28792 2017-09-01 Zack Weinberg <zackw@panix.com>
28793
28794 * math/math.h (HUGE_VAL): Improve commentary.
28795
28796 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28797 Andreas Schwab <schwab@suse.de>
28798
28799 [BZ #21530]
28800 * include/stdio.h (__gen_tempfd): New function.
28801 * stdio-common/Makefile (routines): Add gentempfd.
28802 * stdio-common/gentempfd.c: New file.
28803 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28804 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28805 unnamed file first.
28806
28807 2017-09-01 Florian Weimer <fweimer@redhat.com>
28808
28809 [BZ #21915]
28810 [BZ #21922]
28811 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28812 result to determine success or failure, not the errno value.
28813 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28814 (tst-nss-files-hosts-erange): Link with -ldl.
28815 * nss/tst-nss-files-hosts-erange.c: New file.
28816 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28817 (do_test): Add NO_DATA tests.
28818 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28819 (do_test): Call it.
28820
28821 2017-09-01 Florian Weimer <fweimer@redhat.com>
28822
28823 [BZ #21922]
28824 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28825 coming from gethostbyname2_r.
28826
28827 2017-09-01 Florian Weimer <fweimer@redhat.com>
28828
28829 * support/namespace.h (struct support_chroot_configuration): Add
28830 hosts, host_conf.
28831 (struct support_chroot): Add path_hosts, path_host_conf.
28832 * support/support_chroot.c (write_file): New function.
28833 (support_chroot_create): Call it to process /etc/resolv.conf,
28834 /etc/hosts, /etc/host.conf.
28835 (support_chroot_free): Update.
28836
28837 2017-09-01 Florian Weimer <fweimer@redhat.com>
28838
28839 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28840 status indicates it is set.
28841
28842 2017-09-01 Florian Weimer <fweimer@redhat.com>
28843
28844 [BZ #20532]
28845 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28846 function lookup failures more reliable.
28847
28848 2017-09-01 Florian Weimer <fweimer@redhat.com>
28849
28850 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28851 (getcanonname): Likewise.
28852 (gaih_inet): Likewise.
28853
28854 2017-09-01 Florian Weimer <fweimer@redhat.com>
28855
28856 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28857 (getcanonname): Likewise.
28858 (gaih_inet): Likewise.
28859
28860 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28861 Richard Henderson <rth@twiddle.net>
28862
28863 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28864 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28865 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28866 (IREG_SIZE, OREG_SIZE): New macros.
28867 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28868 (IREG_SIZE, OREG_SIZE): New macros.
28869 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28870 (IREG_SIZE): New macro.
28871 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28872 (IREG_SIZE): New macro.
28873 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28874 New includes.
28875 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28876 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28877 (__CONCATX): Handle exceptions correctly on large values that may
28878 set FE_INVALID.
28879 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28880 Initialize if not already set.
28881 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28882
28883 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28884
28885 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28886 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28887 Likewise.
28888 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28889 Likewise.
28890 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28891 Likewise.
28892 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28893 Likewise.
28894 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28895 Likewise.
28896 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28897 Likewise.
28898 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28899 Likewise.
28900 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28901 (NO_CANCELLATION): Likewise.
28902 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28903 Likewise.
28904 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28905 Likewise.
28906 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28907 Likewise.
28908 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28909 (NO_CANCELLATION): Likewise.
28910 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28911 (NO_CANCELLATION): Likewise.
28912 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28913 Likewise
28914 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28915 Likewise.
28916 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28917 Likewise.
28918 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28919 Likewise.
28920 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28921 hidden prototype.
28922 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28923 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28924
28925 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28926
28927 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28928 in resolver call.
28929
28930 2017-08-31 Florian Weimer <fweimer@redhat.com>
28931
28932 * include/libc-symbols.h (internal_function): Remove.
28933
28934 2017-08-31 Florian Weimer <fweimer@redhat.com>
28935
28936 * stdlib/fmtmsg.c (internal_addseverity): Remove
28937 internal_function.
28938
28939 2017-08-31 Florian Weimer <fweimer@redhat.com>
28940
28941 * stdio-common/printf_fp.c (group_number): Remove
28942 internal_function.
28943 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28944
28945 2017-08-31 Florian Weimer <fweimer@redhat.com>
28946
28947 * posix/fnmatch.c (internal_function): Remove definition.
28948 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28949 * posix/regcomp.c (peek_token, init_word_char)
28950 (duplicate_node_closure, fetch_token, peek_token)
28951 (peek_token_bracket, build_range_exp, build_collating_symbol):
28952 Likewise.
28953 * posix/regex_internal.c (re_string_construct_common)
28954 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28955 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28956 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28957 (re_string_translate_buffer, re_string_reconstruct)
28958 (re_string_peek_byte_case, re_string_fetch_byte_case)
28959 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28960 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28961 (re_node_set_add_intersect, re_node_set_init_union)
28962 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28963 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28964 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28965 (re_acquire_state_context): Likewise.
28966 * posix/regex_internal.h (internal_function): Remove definition.
28967 (re_string_realloc_buffers, build_wcs_buffer)
28968 (build_wcs_upper_buffer, build_upper_buffer)
28969 (re_string_translate_buffer, re_string_context_at)
28970 (re_string_char_size_at, re_string_wchar_at)
28971 (re_string_elem_size_at): Likewise.
28972 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28973 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28974 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28975 (re_search_internal, re_search_2_stub, re_search_stub)
28976 (re_copy_regs, prune_impossible_nodes, check_matching)
28977 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28978 (free_fail_stack_return, sift_states_iter_mb)
28979 (sift_states_backward, build_sifted_states)
28980 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28981 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28982 (check_subexp_limits, sift_states_bkref, merge_state_array)
28983 (find_recover_state, transit_state, merge_state_with_log)
28984 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28985 (transit_state_mb, transit_state_bkref, get_subexp)
28986 (get_subexp_sub, find_subexp_node, check_arrival)
28987 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28988 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28989 (check_node_accept_bytes, find_collation_sequence_value)
28990 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28991 (acquire_init_state_context, check_halt_node_context)
28992 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28993 (sub_epsilon_src_nodes): Likewise.
28994 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28995 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28996 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28997 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28998 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28999 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29000 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29001 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29002 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29003 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29004 (PREADV): Likewise.
29005 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29006 (PREADV): Likewise.
29007 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29008 (PWRITEV): Likewise.
29009 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29010 (PWRITEV): Likewise.
29011 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29012 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29013
29014 2017-08-31 Florian Weimer <fweimer@redhat.com>
29015
29016 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29017 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29018 Remove internal_function.
29019 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29020 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29021 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29022 (__deallocate_stack, __libc_pthread_init)
29023 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29024 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29025 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29026 Likewise.
29027 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29028 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29029 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29030 Likewise.
29031 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29032 (__pthread_mutex_unlock_usercnt): Likewise.
29033
29034 2017-08-31 Florian Weimer <fweimer@redhat.com>
29035
29036 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29037 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29038 (fts_safe_changedir): Remove internal_function.
29039 * io/ftw.c (internal_function): Remove definition.
29040 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29041
29042 2017-08-31 Florian Weimer <fweimer@redhat.com>
29043
29044 * inet/deadline.c (__deadline_current_time)
29045 (__deadline_from_timeval, __deadline_to_ms): Remove
29046 internal_function.
29047 * inet/getnameinfo.c (nrl_domainname): Likewise.
29048 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29049 * inet/inet6_option.c (add_pad): Likewise.
29050 * inet/net-internal.h (__deadline_current_time)
29051 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29052 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29053 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29054 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29055
29056 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29057
29058 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29059 include <bits/nan.h>.
29060 * math/Makefile (headers): Remove bits/nan.h.
29061 * bits/nan.h: Remove.
29062 * sysdeps/ieee754/bits/nan.h: Likewise.
29063 * sysdeps/mips/bits/nan.h: Likewise.
29064
29065 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29066 not include <bits/inf.h>.
29067 * math/Makefile (headers): Remove bits/inf.h.
29068 * bits/inf.h: Remove.
29069 * sysdeps/ieee754/bits/inf.h: Likewise.
29070
29071 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29072 bits/huge_vall.h or bits/huge_val_flt128.h.
29073 (HUGE_VAL): Define directly here.
29074 [__USE_ISOC99] (HUGE_VALF): Likewise.
29075 [__USE_ISOC99] (HUGE_VALL): Likewise.
29076 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29077 (HUGE_VAL_F128): Likewise.
29078 * math/Makefile (headers): Remove bits/huge_val.h,
29079 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29080 * bits/huge_val.h: Remove.
29081 * bits/huge_val_flt128.h: Likewise.
29082 * bits/huge_valf.h: Likewise.
29083 * bits/huge_vall.h: Likewise.
29084 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29085 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29086 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29087 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29088 * sysdeps/sh/bits/huge_val.h: Likewise.
29089 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29090 * sysdeps/x86/bits/huge_vall.h: Likewise.
29091
29092 2017-08-31 Florian Weimer <fweimer@redhat.com>
29093
29094 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29095 internal_function.
29096 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29097 Likewise.
29098 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29099 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29100 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29101 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29102 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29103 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29104 * elf/dl-libc.c (dlerror_run): Likewise.
29105 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29106 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29107 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29108 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29109 Likewise.
29110 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29111 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29112 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29113 * elf/dl-profile.c (_dl_start_profile): Likewise.
29114 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29115 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29116 Likewise.
29117 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29118 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29119 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29120 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29121 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29122 (_dl_allocate_tls_storage): Likewise.
29123 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29124 (_dl_check_all_versions): Likewise.
29125 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29126 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29127 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29128 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29129 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29130 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29131 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29132 internal_function from __dl_start.
29133 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29134 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29135 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29136 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29137 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29138 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29139 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29140 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29141 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29142 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29143 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29144 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29145 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29146 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29147 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29148 Likewise.
29149 (struct rtld_global_ro): Remove internal_function from the
29150 _dl_lookup_symbol_x member.
29151 (_dl_symbol_value): Remove. No longer defined anywhere.
29152 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29153 internal_function.
29154 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29155 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29156 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29157 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29158 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29159 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29160 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29161 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29162 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29163 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29164 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29165 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29166
29167 2017-08-31 Florian Weimer <fweimer@redhat.com>
29168
29169 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29170 Remove internal_function.
29171 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29172 Likewise.
29173 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29174 Likewise.
29175
29176 2017-08-31 Florian Weimer <fweimer@redhat.com>
29177
29178 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29179 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29180 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29181
29182 2017-08-31 Florian Weimer <fweimer@redhat.com>
29183
29184 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29185 (__gai_enqueue_request): Remove internal_function.
29186 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29187 (__gai_remove_request, __gai_notify, __gai_notify_only)
29188 (__gai_sigqueue): Likewise.
29189 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29190 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29191 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29192 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29193 Likewise.
29194
29195 2017-08-31 Florian Weimer <fweimer@redhat.com>
29196
29197 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29198 * include/dirent.h (__opendirat, __getdents, __getdents64)
29199 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29200 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29201 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29202 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29203 Likewise.
29204 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29205
29206 2017-08-31 Florian Weimer <fweimer@redhat.com>
29207
29208 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29209 internal_function.
29210 (GETCWD_RETURN_TYPE): Likewise.
29211
29212 2017-08-31 Florian Weimer <fweimer@redhat.com>
29213
29214 * include/time.h (__tz_compute, __strptime_internal): Remove
29215 internal_function.
29216 * time/strptime_l.c (__strptime_internal): Likewise.
29217 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29218
29219 2017-08-31 Florian Weimer <fweimer@redhat.com>
29220
29221 * iconv/gconv.c (__gconv): Remove internal_function.
29222 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29223 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29224 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29225 (__gconv_release_cache): Likewise.
29226 * iconv/gconv_close.c (__gconv_close): Likewise.
29227 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29228 (read_conf_file, __gconv_get_path): Likewise.
29229 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29230 (__gconv_release_step, gen_steps, increment_counter)
29231 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29232 (__gconv_close_transform, free_modules_db): Likewise.
29233 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29234 Likewise.
29235 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29236 (__gconv_find_transform, __gconv_lookup_cache)
29237 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29238 (__gconv_close_transform, __gconv_release_cache)
29239 (__gconv_loaded_object, __gconv_release_shlib)
29240 (__gconv_compare_alias): Likewise.
29241 * iconv/gconv_open.c (__gconv_open): Likewise.
29242 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29243 * iconv/iconvconfig.c (add_module): Likewise.
29244 * intl/dcigettext.c (plural_lookup, guess_category_value)
29245 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29246 * intl/eval-plural.h (plural_eval): Likewise.
29247 * intl/finddomain.c (_nl_find_domain): Likewise.
29248 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29249 (_nl_load_domain, _nl_find_msg): Likewise.
29250 (internal_function): Remove definition.
29251 * intl/loadinfo.h (internal_function): Likewise.
29252 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29253 internal_function.
29254 * intl/localealias.c (internal_function): Remove definition.
29255 (read_alias_file): Remove internal_function.
29256 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29257 * intl/plural-exp.h (internal_function): Remove definition.
29258 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29259 internal_function.
29260 * intl/plural.c: Regenerate.
29261 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29262 * locale/coll-lookup.c (__collidx_table_lookup)
29263 (__collseq_table_lookup): Likewise.
29264 * locale/coll-lookup.h (__collidx_table_lookup)
29265 (__collseq_table_lookup): Likewise.
29266 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29267 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29268 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29269 (_nl_unload_locale): Likewise.
29270 * locale/localeinfo.h (struct __locale_data): Remove
29271 internal_function from cleanup member.
29272 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29273 (_nl_remove_locale, _nl_load_locale_from_archive)
29274 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29275 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29276 (_nl_cleanup_time): Remove internal_function.
29277 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29278 (_nl_parse_alt_digit): Likewise.
29279 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29280 (_nl_select_era_entry): Likewise.
29281 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29282 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29283 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29284 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29285 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29286
29287 2017-08-31 Florian Weimer <fweimer@redhat.com>
29288
29289 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29290 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29291 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29292 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29293 Likewise.
29294 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29295 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29296 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29297 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29298 Likewise.
29299 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29300
29301 2017-08-31 Florian Weimer <fweimer@redhat.com>
29302
29303 * misc/getttyent.c (skip, value): Remove internal_function.
29304 * misc/syslog.c (openlog_internal): Likewise.
29305 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29306
29307 2017-08-31 Florian Weimer <fweimer@redhat.com>
29308
29309 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29310 (__nss_rewrite_field): Remove internal_function.
29311 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29312 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29313 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29314 * nss/nsswitch.c (nss_parse_file, nss_getline)
29315 (nss_parse_service_list, nss_new_service): Likewise.
29316 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29317 * nss/valid_field.c (__nss_valid_field): Likewise.
29318 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29319
29320 2017-08-31 Florian Weimer <fweimer@redhat.com>
29321
29322 * malloc/arena.c (__malloc_fork_lock_parent)
29323 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29324 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29325 internal_function from defintions.
29326 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29327 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29328 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29329 internal_function from declarations.
29330 * malloc/malloc.c (internal_function): Do not define.
29331 (mem2mem_check): Remove internal_function from declaration.
29332 (munmap_chunk, mremap_chunk): Remove internal_function.
29333 * malloc/mtrace.c (tr_where): Likewise.
29334
29335 2017-08-31 Florian Weimer <fweimer@redhat.com>
29336
29337 * include/rpc/pmap_clnt.h (__get_socket): Remove
29338 internal_function.
29339 * sunrpc/auth_des.c (synchronize): Likewise.
29340 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29341 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29342 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29343 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29344 (key_call): Likewise.
29345 * sunrpc/pm_getport.c (__get_socket): Likewise.
29346 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29347 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29348 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29349 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29350 (invalidate): Likewise.
29351 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29352 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29353 (set_input_fragment, get_input_bytes): Likewise.
29354
29355 2017-08-31 Florian Weimer <fweimer@redhat.com>
29356
29357 * malloc/malloc.c (_int_free): Remove locked variable and related
29358 asserts.
29359
29360 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29361
29362 [BZ #22051]
29363 * Makerules (build-module-helper-objlist): Filter out
29364 $(elf-objpfx)sofini.os.
29365 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29366 needed.
29367
29368 2017-08-31 Florian Weimer <fweimer@redhat.com>
29369
29370 * libio/fcloseall.c: Assume weak_alias is defined.
29371 * libio/feof.c: Likewise.
29372 * libio/fileno.c: Likewise.
29373 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29374 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29375 definitions.
29376 (_IO_file_open): Call __open directly.
29377 (_IO_new_file_sync): Assume ESPIPE is defined.
29378 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29379 (_IO_new_file_write): Call __write directly.
29380 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29381 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29382 * libio/genops.c: Assume _LIBC is defined.
29383 (save_for_backup): Remove internal_function.
29384 * libio/getc.c: Assume weak_alias is defined.
29385 * libio/getwc.c: Likewise.
29386 * libio/iofclose.c: Assume _LIBC is defined.
29387 * libio/iofdopen.c: Likewise.
29388 (_IO_fcntl): Remove macro definition.
29389 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29390 Call __fcntl directly.
29391 * libio/iofflush.c: Assume weak_alias is defined.
29392 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29393 defined.
29394 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29395 * libio/iofgets.c: Likewise.
29396 * libio/iofopen.c: Assume _LIBC is defined.
29397 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29398 * libio/iofputs.c: Assume weak_alias is defined.
29399 * libio/iofread.c: Likewise.
29400 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29401 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29402 * libio/ioftell.c: Assume weak_alias is defined.
29403 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29404 * libio/iofwide.c: Assume _LIBC is defined.
29405 (_IO_fwide): Drop SHARED conditional because it is implied by
29406 SHLIB_COMPAT.
29407 * libio/iofwrite.c: Assume weak_alias is defined.
29408 * libio/iogetdelim.c: Likewise.
29409 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29410 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29411 (_IO_getwline): Call __wmemcpy directly.
29412 * libio/iopopen.c: Assume _LIBC is defined.
29413 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29414 (_IO_close): Remove macro definitions.
29415 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29416 _exit directly.
29417 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29418 directly.
29419 * libio/ioputs.c: Assume weak_alias is defined.
29420 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29421 * libio/iosetbuffer.c: Assume weak_alias is defined.
29422 * libio/iosetvbuf.c: Likewise.
29423 * libio/ioungetc.c: Likewise.
29424 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29425 libc_hidden_def, libc_hidden_weak, NULL are defined.
29426 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29427 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29428 defined.
29429 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29430 definitions.
29431 (_IO_old_file_init_internal): Drop SHARED conditional because it
29432 is implied by SHLIB_COMPAT.
29433 (_IO_old_file_fopen): Call __open directly.
29434 (_IO_old_file_sync): Assume ESPIPE is defined.
29435 (_IO_old_file_write): Call __write directly.
29436 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29437 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29438 Call __fcntl directly.
29439 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29440 (_IO_old_fgetpos): Assume EIO is defined.
29441 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29442 (_IO_old_fgetpos64): Assume EIO is defined.
29443 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29444 (_IO_old_fsetpos): Assume EIO is defined.
29445 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29446 (_IO_old_fsetpos64): Assume EIO is defined.
29447 * libio/oldiopopen.c: Assume _LIBC is defined.
29448 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29449 (_IO_close): Remove macro definitions.
29450 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29451 directly.
29452 (_IO_old_proc_close): Call __close, __waitpid directly.
29453 * libio/put.c: Assume weak_alias is defined.
29454 * libio/stdfiles.c: Assume _LIBC is defined.
29455 * libio/stdio.c: Likewise.
29456 * libio/wfileops.c: Likewise.
29457 (_IO_wfile_sync): Assume ESPIPE is defined.
29458 * libio/wgenops.c: Assume _LIBC is defined.
29459 (save_for_wbackup): Remove internal_function.
29460
29461 2017-08-31 Florian Weimer <fweimer@redhat.com>
29462
29463 * malloc/malloc.c (top_check): Change return type to void. Remove
29464 internal_function.
29465 * malloc/hooks.c (top_check): Likewise.
29466 (malloc_check, realloc_check, memalign_check): Adjust.
29467
29468 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29469
29470 [BZ #21457]
29471 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29472 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29473 sigcontext and namespace requirements.
29474 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29475 * sysdeps/m68k/sys/ucontext.h: Likewise.
29476 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29477 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29478 <bits/sigcontext.h>.
29479 (__ctx): Define earlier.
29480 (mcontext_t): Define structure contents rather than using struct
29481 sigcontext.
29482 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29483 __glibc_reserved1 instead of __reserved.
29484 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29485 <bits/sigcontext.h>.
29486 (__ctx): Define earlier.
29487 (mcontext_t): Define structure contents rather than using struct
29488 sigcontext.
29489 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29490 mcontext_t instead of struct sigcontext.
29491 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29492 <bits/sigcontext.h>.
29493 (__ctx): Define earlier.
29494 (mcontext_t): Define structure contents rather than using struct
29495 sigcontext.
29496 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29497 <bits/sigcontext.h>.
29498 (__ctx): Define earlier.
29499 (mcontext_t): Define structure contents rather than using struct
29500 sigcontext.
29501 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29502 mcontext_t instead of struct sigcontext.
29503 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29504 mcontext_t instead of struct sigcontext.
29505 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29506 <bits/sigcontext.h>.
29507 (__ctx): New macro.
29508 (struct __ia64_fpreg_mcontext): New type.
29509 (mcontext_t): Define structure contents rather than using struct
29510 sigcontext.
29511 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29512 (uc_sigmask): Define using __ctx.
29513 (uc_stack): Likewise.
29514 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29515 <bits/sigcontext.h>.
29516 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29517 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29518 <bits/sigcontext.h>.
29519 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29520 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29521 <bits/sigcontext.h>.
29522 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29523 <bits/sigcontext.h>.
29524 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29525 <bits/sigcontext.h>.
29526 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29527 <bits/sigcontext.h>.
29528 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29529 <bits/sigcontext.h>.
29530 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29531 <bits/sigcontext.h>.
29532 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29533 <bits/sigcontext.h>.
29534 (__ctx): Define earlier.
29535 (mcontext_t): Define structure contents rather than using struct
29536 sigcontext.
29537 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29538 <bits/sigcontext.h>. Include <bits/types.h>.
29539 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29540 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29541 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29542 (test-xfail-UNIX98/signal.h/conform): Likewise.
29543 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29544 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29545 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29546 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29547 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29548 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29549 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29550 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29551 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29552
29553 2017-08-30 Florian Weimer <fweimer@redhat.com>
29554
29555 * malloc/dynarray_emplace_enlarge.c
29556 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29557 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29558 * malloc/tst-dynarray.c (test_long_overflow): New function.
29559 (do_test): Call it.
29560
29561 2017-08-30 Florian Weimer <fweimer@redhat.com>
29562
29563 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29564 (set_arena_corrupt): Remove definitions.
29565 (mtrim): Do not check for corrupt arena.
29566 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29567 Likewise.
29568
29569 2017-08-30 Florian Weimer <fweimer@redhat.com>
29570
29571 [BZ #21754]
29572 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29573 check_action.
29574 (ptmalloc_init): Do not set or use check_action.
29575 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29576 call to malloc_printerr. Remove return statement.
29577 (free_check): Likewise. Remove arena unlock.
29578 (top_check): Update comment. Adjust call to malloc_printerr.
29579 Remove heap repair code.
29580 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29581 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29582 (sysmalloc): Adjust call to malloc_printerr.
29583 (munmap_chunk, __libc_realloc): Likewise. Remove return
29584 statement.
29585 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29586 Remove errout label and corresponding gotos.
29587 (_int_free): Likewise. Remove arena unlock.
29588 (do_set_mallopt_check): Do not set check_action.
29589 (malloc_printerr): Adjust parameter list. Do not mark arena as
29590 corrupt.
29591 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29592 comment.
29593 * manual/probes.texi (Memory Allocation Probes): Remove
29594 memory_mallopt_check_action.
29595
29596 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29597
29598 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29599 Use pointer to uint64_t instead of long int for sp.
29600
29601 2017-08-30 Florian Weimer <fweimer@redhat.com>
29602
29603 [BZ #21754]
29604 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29605 without printing a backtrace. Do not leak any information in the
29606 error message.
29607 * manual/memory.texi (Heap Consistency Checking): Update.
29608 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29609
29610 2017-08-30 Florian Weimer <fweimer@redhat.com>
29611
29612 Do not scale NPTL tests with available number of CPUs.
29613 * nptl/tst-cond16.c (count): Set to constant value of 8.
29614 * nptl/tst-cond18.c (count): Likewise.
29615
29616 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29617
29618 [BZ #22035]
29619 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29620 Define to take a second argument that is a macro that
29621 concatentates a suffix, not the suffix itself.
29622 (__CONCAT_d): New macro.
29623 (__CONCAT_f): Likewise.
29624 (__CONCAT_l): Likewise.
29625
29626 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29627
29628 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29629 by child.
29630
29631 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29632 Aurelien Jarno <aurelien@aurel32.net>
29633 Maciej W. Rozycki <macro@imgtec.com>
29634
29635 [BZ #21956]
29636 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29637 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29638 `mips16-syscall6' and `mips16-syscall7'.
29639 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29640 (CFLAGS-mips16-syscall7.c): Remove.
29641 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29642 Remove `__mips16_syscall5', `__mips16_syscall6' and
29643 `__mips16_syscall7'.
29644 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29645 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29646 `__mips_syscall_return'.
29647 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29648 (__mips16_syscall1): Likewise.
29649 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29650 (__mips16_syscall2): Likewise.
29651 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29652 (__mips16_syscall3): Likewise.
29653 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29654 (__mips16_syscall4): Likewise.
29655 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29656 Remove.
29657 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29658 Remove.
29659 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29660 Remove.
29661 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29662 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29663 `__mips16_syscall5'. Remove prototype.
29664 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29665 `__mips16_syscall6'. Remove prototype.
29666 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29667 `__mips16_syscall7'. Remove prototype.
29668 (__nomips16, __mips16_syscall_return): Move to...
29669 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29670 (__nomips16, __mips_syscall_return): ... here.
29671 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29672 `__mips16_syscall_return' to `__mips_syscall_return'.
29673 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29674 `internal_syscall##nr'.
29675 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29676 `internal_syscall##nr'.
29677 (FORCE_FRAME_POINTER): Remove.
29678 (__mips_syscall5): New prototype.
29679 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29680 (__mips_syscall6): New prototype.
29681 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29682 (__mips_syscall7): New prototype.
29683 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29684 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29685 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29686 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29687 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29688 (sysdep_routines): Add libc-do-syscall.
29689 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29690 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29691
29692 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29693
29694 [BZ #21672]
29695 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29696 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29697 (advise_stack_range): New function.
29698 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29699 stack non required to advise_stack_range at allocatestack.c
29700
29701 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29702
29703 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29704
29705 2017-08-29 Florian Weimer <fweimer@redhat.com>
29706
29707 [BZ #22026]
29708 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29709 __end_fct. Mangle __end_fct after setting it to NULL.
29710 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29711 (modules-names, modules-names-tests): Add
29712 tst-gconv-init-failure-mod.
29713 (gconv-modules): New target.
29714 (tst-gconv-init-failure-mod.so): Link against libsupport.
29715 (tst-gconv-init-failure): Depend on gconv-modules,
29716 tst-gconv-init-failure-mod.so.
29717 * iconv/tst-gconv-init-failure-mod.c: New file.
29718 * iconv/tst-gconv-init-failure.c: Likewise.
29719 * iconv/test-gconv-modules: Likewise.
29720
29721 2017-08-29 Florian Weimer <fweimer@redhat.com>
29722
29723 [BZ #22025]
29724 * iconv/gconv_db.c (free_derivation): Remove redundant
29725 parentheses.
29726 (gen_steps): Unconditionally mangle __btowc_fct after
29727 initialization.
29728 (increment_counter): Likewise. Do not call init_fct for internal
29729 modules.
29730
29731 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29732
29733 [BZ #22028]
29734 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29735 (_MSUF_): Remove macro.
29736 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29737 Likewise.
29738 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29739 (__REDIRFROM_X): New macro.
29740 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29741 Likewise.
29742 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29743 (__REDIRTO_X): Likewise.
29744 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29745 arguments.
29746 (__MATH_REDIRCALL_2): Likewise.
29747 (__MATH_REDIRCALL_INTERNAL): Likewise.
29748 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29749 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29750 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29751 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29752 * math/test-finite-macros.c: New file.
29753 * math/Makefile (tests): Add test-finite-macros.
29754 (CFLAGS-test-finite-macros.c): New variable.
29755
29756 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29757 Jeff Law <law@redhat.com>
29758
29759 [BZ #22025]
29760 Mangle NULL pointers in iconv/gconv.
29761 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29762 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29763 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29764 is non-NULL before demangling the end_fct. Check for NULL
29765 end_fct after demangling.
29766 (__gconv_release_step): Demangle the end_fct before checking
29767 it for NULL. Remove assert on __shlibc_handle != NULL.
29768 (gen_steps): Don't check btowc_fct for NULL before mangling.
29769 Demangle init_fct before checking for NULL.
29770 (increment_counter): Likewise.
29771 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29772 end_fct for NULL before mangling.
29773 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29774 for NULL.
29775
29776 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29777
29778 [BZ #21971]
29779 * locale/iso-639.def: add Morisyen.
29780
29781 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29782
29783 [BZ #21930]
29784 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29785 (iszero): New C++ implementation that does not use
29786 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29787 signaling nans are enabled, since __builtin_types_compatible_p
29788 is a C-only feature.
29789 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29790 defined, include ieee754_float128.h for access to the union and
29791 member ieee854_float128.ieee.
29792 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29793 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29794 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29795 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29796 options of test-math-zero on powerpc64le.
29797
29798 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29799
29800 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29801 Change double to float.
29802
29803 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29804
29805 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29806 unconditional.
29807 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29808 conditional code; define contents only for [LIBM_SVID_COMPAT].
29809
29810 2017-08-28 Florian Weimer <fweimer@redhat.com>
29811
29812 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29813 (abi-lp64_be-options): Remove.
29814 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29815 (abi-hard-options): Likewise.
29816 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29817 (abi-o32_hard-options, abi-o32_soft_2008-options)
29818 (abi-o32_hard_2008-options, abi-n32_soft-options)
29819 (abi-n32_hard-options, abi-n32_soft_2008-options)
29820 (abi-n32_hard_2008-options, abi-n64_soft-options)
29821 (abi-n64_hard-options, abi-n64_soft_2008-options)
29822 (abi-n64_hard_2008-options): Likewise.
29823 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29824 (abi-64-v1-options, abi-64-v2-options): Likewise.
29825 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29826 (abi-64-options): Likewise.
29827 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29828 (abi-64-options): Likewise.
29829 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29830 (abi-64-options): Likewise.
29831 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29832 (abi-64-options, abi-x32-options): Likewise.
29833
29834 2017-08-28 Florian Weimer <fweimer@redhat.com>
29835
29836 Store supported list of SYS_* system calls in the source tree.
29837 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29838 (bits/syscall.h): Generate from list file.
29839 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29840 [$(subdir) = misc] (tests): Add tst-syscall-list.
29841 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29842 [$(subdir) = misc] (tst-syscall-list-macros.list)
29843 [$(subdir) = misc] (tst-syscall-list-nr.list)
29844 (tst-syscall-list-sys.list): Helper targets for new
29845 tst-syscall-list test.
29846 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29847 tst-syscall-list.sh.
29848 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29849 target. Do not include bits/syscall.d.
29850 [$(subdir) = misc] (generated): Do not update.
29851 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29852 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29853 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29854 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29855
29856 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29857
29858 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29859 (tst-cxa_atexit, tst-on_exit): Likewise.
29860 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29861 tst-cxa_atexit, and tst-on_exit.
29862 * stdlib/tst-atexit-common.c: New file.
29863 * stdlib/tst-atexit.c: New file.
29864 * stdlib/tst-at_quick_exit.c: New file.
29865 * stdlib/tst-cxa_atexit.c: New file.
29866 * stdlib/tst-on_exit.c: New file.
29867
29868 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29869
29870 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29871 * mach/stack_chk_fail_local.c: New file.
29872 * hurd/stack_chk_fail_local.c: New file.
29873 * mach/Machrules ($(interface-library)-routines): Add
29874 stack_chk_fail_local.
29875 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29876 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29877 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29878 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29879 * hurd/Makefile (CFLAGS-hurdstartup.o,
29880 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29881
29882 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29883
29884 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29885 (index_cpu_*, index_arch_*): Removed.
29886
29887 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29888
29889 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29890 Use uint64_t instead of unsigned long.
29891
29892 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29893
29894 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29895 [__HAVE_DISTINCT_FLOAT128].
29896
29897 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29898 of <bits/math-finite.h>.
29899 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29900 inclusion of <bits/math-finite.h>.
29901 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29902 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29903 __NO_LONG_DOUBLE_MATH].
29904 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29905 (__MATH_REDIRCALL_2): Likewise.
29906 (__MATH_REDIRCALL_INTERNAL): Likewise.
29907 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29908 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29909 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29910
29911 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29912 Remove file.
29913 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29914 Likewise.
29915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29916 Likewise.
29917 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29918 Likewise.
29919 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29920 Likewise.
29921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29922 Likewise.
29923 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29924 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29925 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29926 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29928 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29929 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29930 w_sqrtf_compat-ppc32.
29931
29932 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29933
29934 * math/math.h [defined __cplusplus] (issignaling): In the long
29935 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29936 is not defined. Call __issignaling, otherwise.
29937
29938 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29939
29940 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29941 syscall definitions and replace __builtin_expect with __glibc_likely.
29942 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29943 syscall.
29944 (SYSCALL_CANCELLABLE): Removedefinition
29945 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29946 definition.
29947 (PSEUDO_END): Likewise.
29948 [IS_IN (libpthread)] (CENABLE): Likewise.
29949 [IS_IN (libpthread)] (CDISABLE): Likewise.
29950 [IS_IN (libc)] (CENABLE): Likewise.
29951 [IS_IN (libc)] (CENABLE): Likewise.
29952 [IS_IN (librt)] (CDISABLE): Likewise.
29953 [IS_IN (librt)] (CDISABLE): Likewise.
29954 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29955 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29956 definition.
29957 (PSEUDO_END): Likewise.
29958 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29959 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29960 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29961 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29962 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29963 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29964 (CENABLE): Likewise.
29965 (CDISABLE): Likewise.
29966 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29967 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29968 defintion.
29969 (PSEUDO_END): Likewise.
29970 [IS_IN (libpthread)] (CENABLE): Likewise.
29971 [IS_IN (libpthread)] (CDISABLE): Likewise.
29972 [IS_IN (libc)] (CENABLE): Likewise.
29973 [IS_IN (libc)] (CENABLE): Likewise.
29974 [IS_IN (librt)] (CDISABLE): Likewise.
29975 [IS_IN (librt)] (CDISABLE): Likewise.
29976 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29977 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29978 definition.
29979 (PSEUDO_END): Likewise.
29980 [IS_IN (libpthread)] (CENABLE): Likewise.
29981 [IS_IN (libpthread)] (CDISABLE): Likewise.
29982 [IS_IN (libc)] (CENABLE): Likewise.
29983 [IS_IN (libc)] (CENABLE): Likewise.
29984 [IS_IN (librt)] (CDISABLE): Likewise.
29985 [IS_IN (librt)] (CDISABLE): Likewise.
29986 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29987 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29988 definition.
29989 (PSEUDO_END): Likewise.
29990 [IS_IN (libpthread)] (CENABLE): Likewise.
29991 [IS_IN (libpthread)] (CDISABLE): Likewise.
29992 [IS_IN (libc)] (CENABLE): Likewise.
29993 [IS_IN (libc)] (CENABLE): Likewise.
29994 [IS_IN (librt)] (CDISABLE): Likewise.
29995 [IS_IN (librt)] (CDISABLE): Likewise.
29996 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29997 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29998 definition.
29999 (PSEUDO_END): Likewise.
30000 [IS_IN (libpthread)] (CENABLE): Likewise.
30001 [IS_IN (libpthread)] (CDISABLE): Likewise.
30002 [IS_IN (libc)] (CENABLE): Likewise.
30003 [IS_IN (libc)] (CENABLE): Likewise.
30004 [IS_IN (librt)] (CDISABLE): Likewise.
30005 [IS_IN (librt)] (CDISABLE): Likewise.
30006 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30007 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30008 definition.
30009 (PSEUDO_END): Likewise.
30010 [IS_IN (libpthread)] (CENABLE): Likewise.
30011 [IS_IN (libpthread)] (CDISABLE): Likewise.
30012 [IS_IN (libc)] (CENABLE): Likewise.
30013 [IS_IN (libc)] (CENABLE): Likewise.
30014 [IS_IN (librt)] (CDISABLE): Likewise.
30015 [IS_IN (librt)] (CDISABLE): Likewise.
30016 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30017 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30018 definition.
30019 (PSEUDO_END): Likewise.
30020 [IS_IN (libpthread)] (CENABLE): Likewise.
30021 [IS_IN (libpthread)] (CDISABLE): Likewise.
30022 [IS_IN (libc)] (CENABLE): Likewise.
30023 [IS_IN (libc)] (CENABLE): Likewise.
30024 [IS_IN (librt)] (CDISABLE): Likewise.
30025 [IS_IN (librt)] (CDISABLE): Likewise.
30026 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30027 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30028 Remove definition.
30029 (PSEUDO_END): Likewise.
30030 [IS_IN (libpthread)] (CENABLE): Likewise.
30031 [IS_IN (libpthread)] (CDISABLE): Likewise.
30032 [IS_IN (libc)] (CENABLE): Likewise.
30033 [IS_IN (libc)] (CENABLE): Likewise.
30034 [IS_IN (librt)] (CDISABLE): Likewise.
30035 [IS_IN (librt)] (CDISABLE): Likewise.
30036 (SINGLE_THREAD_P): Likewise.
30037 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30038 definition.
30039 (PSEUDO_END): Likewise.
30040 [IS_IN (libpthread)] (CENABLE): Likewise.
30041 [IS_IN (libpthread)] (CDISABLE): Likewise.
30042 [IS_IN (libc)] (CENABLE): Likewise.
30043 [IS_IN (libc)] (CENABLE): Likewise.
30044 [IS_IN (librt)] (CDISABLE): Likewise.
30045 [IS_IN (librt)] (CDISABLE): Likewise.
30046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30047 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30048 definition.
30049 (PSEUDO_END): Likewise.
30050 [IS_IN (libpthread)] (CENABLE): Likewise.
30051 [IS_IN (libpthread)] (CDISABLE): Likewise.
30052 [IS_IN (libc)] (CENABLE): Likewise.
30053 [IS_IN (libc)] (CENABLE): Likewise.
30054 [IS_IN (librt)] (CDISABLE): Likewise.
30055 [IS_IN (librt)] (CDISABLE): Likewise.
30056 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30057 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30058 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30059 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30060 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30061 definition.
30062 (PSEUDO_END): Likewise.
30063 [IS_IN (libpthread)] (CENABLE): Likewise.
30064 [IS_IN (libpthread)] (CDISABLE): Likewise.
30065 [IS_IN (libc)] (CENABLE): Likewise.
30066 [IS_IN (libc)] (CENABLE): Likewise.
30067 [IS_IN (librt)] (CDISABLE): Likewise.
30068 [IS_IN (librt)] (CDISABLE): Likewise.
30069 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30070 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30071 definition.
30072 (PSEUDO_END): Likewise.
30073 [IS_IN (libpthread)] (CENABLE): Likewise.
30074 [IS_IN (libpthread)] (CDISABLE): Likewise.
30075 [IS_IN (libc)] (CENABLE): Likewise.
30076 [IS_IN (libc)] (CENABLE): Likewise.
30077 [IS_IN (librt)] (CDISABLE): Likewise.
30078 [IS_IN (librt)] (CDISABLE): Likewise.
30079 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30080 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30081 definition.
30082 (PSEUDO_END): Likewise.
30083 [IS_IN (libpthread)] (CENABLE): Likewise.
30084 [IS_IN (libpthread)] (CDISABLE): Likewise.
30085 [IS_IN (libc)] (CENABLE): Likewise.
30086 [IS_IN (libc)] (CENABLE): Likewise.
30087 [IS_IN (librt)] (CDISABLE): Likewise.
30088 [IS_IN (librt)] (CDISABLE): Likewise.
30089 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30090 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30091 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30092 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30093 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30094 definition.
30095 (PSEUDO_END): Likewise.
30096 [IS_IN (libpthread)] (CENABLE): Likewise.
30097 [IS_IN (libpthread)] (CDISABLE): Likewise.
30098 [IS_IN (libc)] (CENABLE): Likewise.
30099 [IS_IN (libc)] (CENABLE): Likewise.
30100 [IS_IN (librt)] (CDISABLE): Likewise.
30101 [IS_IN (librt)] (CDISABLE): Likewise.
30102 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30103 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30104 definition.
30105 (PSEUDO_END): Likewise.
30106 [IS_IN (libpthread)] (CENABLE): Likewise.
30107 [IS_IN (libpthread)] (CDISABLE): Likewise.
30108 [IS_IN (libc)] (CENABLE): Likewise.
30109 [IS_IN (libc)] (CENABLE): Likewise.
30110 [IS_IN (librt)] (CDISABLE): Likewise.
30111 [IS_IN (librt)] (CDISABLE): Likewise.
30112 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30113
30114 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30115
30116 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30117
30118 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30119
30120 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30121
30122 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30123
30124 [BZ #21982]
30125 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30126 middle and outer with size_t instead of int. Repleace %d and
30127 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30128 "MAX (outer, nchars - 64)" to support unsigned outer and
30129 nchars. Also exit loop when outer == 0.
30130
30131 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30132
30133 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30134 * include/signal.h (__sigsuspend_nocancel): Likewise.
30135 * include/time.h (__nanosleep_nocancel): Likewise.
30136 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30137 * login/utmp_file.c: Include non cancellable syscall header.
30138 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30139 prototype.
30140
30141 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30142
30143 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30144 .byte sequences with AVX512F instructions.
30145 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30146 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30147 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30148 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30149 Likewise.
30150 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30151 Likewise.
30152
30153 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30154 Steve Ellcey <sellcey@cavium.com>
30155
30156 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30157 Use PTR_REG macro in cmp instruction.
30158
30159 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30160
30161 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30162 Change the return type of the ifunc resolver to match the return
30163 type of the target function.
30164
30165 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30166
30167 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30168 (preadv64): Likewise.
30169 (pwrite64(: Likewise.
30170 (pwritev64): Likewise.
30171
30172 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30173 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30174 (LOAD_ARGS_0): Likewise.
30175 (LOAD_ARGS_1): Likewise.
30176 (LOAD_ARGS_2): Likewise.
30177 (LOAD_ARGS_3): Likewise.
30178 (LOAD_ARGS_4): Likewise.
30179 (LOAD_ARGS_5): Likewise.
30180 (LOAD_ARGS_6): Likewise.
30181 (LOAD_REGS_0): Likewise.
30182 (LOAD_REGS_1): Likewise.
30183 (LOAD_REGS_2): Likewise.
30184 (LOAD_REGS_3): Likewise.
30185 (LOAD_REGS_4): Likewise.
30186 (LOAD_REGS_5): Likewise.
30187 (LOAD_REGS_6): Likewise.
30188 (ASM_ARGS_0): Likewise.
30189 (ASM_ARGS_1): Likewise.
30190 (ASM_ARGS_2): Likewise.
30191 (ASM_ARGS_3): Likewise.
30192 (ASM_ARGS_4): Likewise.
30193 (ASM_ARGS_5): Likewise.
30194 (ASM_ARGS_6): Likewise.
30195 (LOAD_ARGS_TYPES_1): Likewise.
30196 (LOAD_ARGS_TYPES_2): Likewise.
30197 (LOAD_ARGS_TYPES_3): Likewise.
30198 (LOAD_ARGS_TYPES_4): Likewise.
30199 (LOAD_ARGS_TYPES_5): Likewise.
30200 (LOAD_ARGS_TYPES_6): Likewise.
30201 (LOAD_REGS_TYPES_1): Likewise.
30202 (LOAD_REGS_TYPES_2): Likewise.
30203 (LOAD_REGS_TYPES_3): Likewise.
30204 (LOAD_REGS_TYPES_4): Likewise.
30205 (LOAD_REGS_TYPES_5): Likewise.
30206 (LOAD_REGS_TYPES_6): Likewise.
30207 (TYPEFY): New define.
30208 (ARGIFY): Likewise.
30209 (internal_syscall0): Likewise.
30210 (internal_syscall1): Likewise.
30211 (internal_syscall2): Likewise.
30212 (internal_syscall3): Likewise.
30213 (internal_syscall4): Likewise.
30214 (internal_syscall5): Likewise.
30215 (internal_syscall6): Likewise.
30216 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30217 (INTERNAL_SYSCALL_NCS): Remove define.
30218 (internal_syscall1): Add define.
30219
30220 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30221
30222 * math/w_remainder_compat.c: Remove duplicate inclusion of
30223 math-svid-compat.h.
30224 * math/w_remainderf_compat.c: Likewise.
30225 * math/w_remainderl_compat.c: Likewise.
30226
30227 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30228
30229 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30230
30231 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30232
30233 [BZ #21684]
30234 * math/tgmath.h (__floating_type): Simplify definitions.
30235 (__real_integer_type): New macro.
30236 (__complex_integer_type): Likewise.
30237 (__expr_is_real): Likewise.
30238 (__tgmath_real_type_sub): Update comment to describe handling of
30239 complex types.
30240 (__tgmath_complex_type_sub): New macro.
30241 (__tgmath_complex_type): Likewise.
30242 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30243 (__TGMATH_CF128): Use __expr_is_real.
30244 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30245 __expr_is_real.
30246 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30247 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30248 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30249 integer types.
30250
30251 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30252
30253 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30254 macro.
30255 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30256 alias.
30257 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30258 Likewise.
30259
30260 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30261 nanosleep_not_cancel with __nanosleep_nocancel.
30262 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30263 (__nanosleep_nocancel): New macro.
30264 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30265 function.
30266 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30267 macro.
30268 (__nanosleep_nocancel): New prototype.
30269
30270 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30271 pause_not_cancel with __pause_nocancel.
30272 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30273 (__pause_nocancel): New macro.
30274 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30275 macro.
30276 (__pause_nocancel): New prototype.
30277 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30278
30279 2017-08-22 Martin Sebor <msebor@redhat.com>
30280
30281 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30282 to return a pointer to the same type as the target function.
30283
30284 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30285
30286 [BZ #18822]
30287 [BZ #21986]
30288 * include/printf.h (__printf_fphex): Add attribute_hidden.
30289 (__guess_grouping): New prototype.
30290 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30291 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30292 libc_hidden_proto and libc_hidden_def.
30293 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30294 (__vstrfmon_l): Remove the third argument passed to
30295 __guess_grouping.
30296
30297 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30298
30299 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30300 definition for issignaling that does not rely on __MATH_TG,
30301 since __MATH_TG uses __builtin_types_compatible_p, which is only
30302 available in C mode.
30303 (CFLAGS-test-math-issignaling.cc): New variable.
30304 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30305 * math/test-math-issignaling.cc: New test for C++ implementation
30306 of type-generic issignaling.
30307 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30308 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30309 options of test-math-issignaling on powerpc64le.
30310
30311 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30312
30313 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30314 building libc.a.
30315 (hidden_proto): Likewise.
30316 (hidden_tls_proto): Likewise.
30317 (__hidden_proto): Likewise.
30318
30319 2017-08-22 Florian Weimer <fweimer@redhat.com>
30320
30321 math: Statically link tests of internal functionality.
30322 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30323 atest-exp2.
30324 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30325 (gmp-objs): Remove assignment.
30326 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30327
30328 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30329
30330 [BZ #21987]
30331 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30332 and copy to ...
30333 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30334 ... here.
30335 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30336 ... and here.
30337
30338 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30339 variable definitions above inclusion of ../Rules.
30340
30341 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30342
30343 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30344 case calling __builtin_unreachable.
30345
30346 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30347
30348 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30349 __waitpid_nocancel.
30350 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30351 (__waitpid_nocancel): New macro.
30352 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30353 macro.
30354 (__waitpid_nocancel): Replace macro with a function.
30355 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30356 function.
30357
30358 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30359 __fcntl_nocancel.
30360 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30361 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30362
30363 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30364 __writev_nocancel_nostatus.
30365 (write_call_graph): Likewise.
30366 (write_bb_counts): Likewise.
30367 * resolv/herror.c (herror): Likewise.
30368 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30369 macro.
30370 (__writev_nocancel_nostatus): New macro.
30371 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30372 Remove macro.
30373 (__writev_nocancel_nostatus): New function.
30374
30375 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30376
30377 Revert:
30378 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30379
30380 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30381 building libc.a.
30382 (hidden_proto): Likewise.
30383 (hidden_tls_proto): Likewise.
30384 (__hidden_proto): Likewise.
30385
30386 [BZ #21973]
30387 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30388 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30389 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30390 Likewise.
30391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30392 Likewise.
30393 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30394 Likewise.
30395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30396 Likewise.
30397 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30398 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30399 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30400 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30401 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30402 GLIBC_2.0 sqrtl symbol.
30403
30404 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30405 [__USE_MISC] (_LIB_VERSION): Likewise.
30406 [__USE_MISC] (struct exception): Likewise.
30407 [__USE_MISC] (matherr): Likewise.
30408 [__USE_MISC] (DOMAIN): Likewise.
30409 [__USE_MISC] (SING): Likewise.
30410 [__USE_MISC] (OVERFLOW): Likewise.
30411 [__USE_MISC] (UNDERFLOW): Likewise.
30412 [__USE_MISC] (TLOSS): Likewise.
30413 [__USE_MISC] (PLOSS): Likewise.
30414 [__USE_MISC] (HUGE): Likewise.
30415 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30416 * math/math-svid-compat.h: New file.
30417 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30418 and matherrl.
30419 * include/math.h [!_ISOMAC] (__matherr): Remove.
30420 * manual/arith.texi (FP Exceptions): Do not document matherr.
30421 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30422 (tests-internal): New variable.
30423 (install-lib): Do not add libieee.a.
30424 (non-lib.a): Likewise.
30425 (extra-objs): Do not add libieee.a and ieee-math.o.
30426 (CPPFLAGS-s_lib_version.c): Remove variable.
30427 ($(objpfx)libieee.a): Remove rule.
30428 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30429 * math/ieee-math.c: Remove.
30430 * math/libm-test-support.c (matherr): Remove.
30431 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30432 and license notices. Include <math-svid-compat.h> and
30433 <shlib-compat.h>.
30434 (matherr): Undefine as macro. Use compat_symbol_reference.
30435 (_LIB_VERSION): Likewise.
30436 * math/test-matherr-2.c: New file.
30437 * math/test-matherr-3.c: Likewise.
30438 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30439 declaration.
30440 (__kernel_standard_f): Likewise.
30441 (__kernel_standard_l): Likewise.
30442 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30443 <math_private.h>. Include <math-svid-compat.h>.
30444 (_LIB_VERSION): Undefine as macro.
30445 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30446 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30447 [LIBM_SVID_COMPAT], use compat_symbol.
30448 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30449 <math_private.h>. Include <math-svid-compat.h>.
30450 (matherr): Undefine as macro.
30451 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30452 compat_symbol.
30453 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30454 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30455 compat_symbol_reference.
30456 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30457 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30458 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30459 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30460 (MATHERR_D): Remove declaration.
30461 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30462 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30463 [LIBM_BUILD] (pmatherrf): Likewise.
30464 [LIBM_BUILD] (pmatherr): Likewise.
30465 [LIBM_BUILD] (pmatherrl): Likewise.
30466 (DOMAIN): Likewise.
30467 (SING): Likewise.
30468 (OVERFLOW): Likewise.
30469 (UNDERFLOW): Likewise.
30470 (TLOSS): Likewise.
30471 (PLOSS): Likewise.
30472 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30473 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30474 compat_symbol.
30475 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30476 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30477 compat_symbol.
30478 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30479 * math/w_acos_compat.c: Likewise.
30480 * math/w_acosf_compat.c: Likewise.
30481 * math/w_acosh_compat.c: Likewise.
30482 * math/w_acoshf_compat.c: Likewise.
30483 * math/w_acoshl_compat.c: Likewise.
30484 * math/w_acosl_compat.c: Likewise.
30485 * math/w_asin_compat.c: Likewise.
30486 * math/w_asinf_compat.c: Likewise.
30487 * math/w_asinl_compat.c: Likewise.
30488 * math/w_atan2_compat.c: Likewise.
30489 * math/w_atan2f_compat.c: Likewise.
30490 * math/w_atan2l_compat.c: Likewise.
30491 * math/w_atanh_compat.c: Likewise.
30492 * math/w_atanhf_compat.c: Likewise.
30493 * math/w_atanhl_compat.c: Likewise.
30494 * math/w_cosh_compat.c: Likewise.
30495 * math/w_coshf_compat.c: Likewise.
30496 * math/w_coshl_compat.c: Likewise.
30497 * math/w_exp10_compat.c: Likewise.
30498 * math/w_exp10f_compat.c: Likewise.
30499 * math/w_exp10l_compat.c: Likewise.
30500 * math/w_exp2_compat.c: Likewise.
30501 * math/w_exp2f_compat.c: Likewise.
30502 * math/w_exp2l_compat.c: Likewise.
30503 * math/w_fmod_compat.c: Likewise.
30504 * math/w_fmodf_compat.c: Likewise.
30505 * math/w_fmodl_compat.c: Likewise.
30506 * math/w_hypot_compat.c: Likewise.
30507 * math/w_hypotf_compat.c: Likewise.
30508 * math/w_hypotl_compat.c: Likewise.
30509 * math/w_j0_compat.c: Likewise.
30510 * math/w_j0f_compat.c: Likewise.
30511 * math/w_j0l_compat.c: Likewise.
30512 * math/w_j1_compat.c: Likewise.
30513 * math/w_j1f_compat.c: Likewise.
30514 * math/w_j1l_compat.c: Likewise.
30515 * math/w_jn_compat.c: Likewise.
30516 * math/w_jnf_compat.c: Likewise.
30517 * math/w_jnl_compat.c: Likewise.
30518 * math/w_lgamma_main.c: Likewise.
30519 * math/w_lgamma_r_compat.c: Likewise.
30520 * math/w_lgammaf_main.c: Likewise.
30521 * math/w_lgammaf_r_compat.c: Likewise.
30522 * math/w_lgammal_main.c: Likewise.
30523 * math/w_lgammal_r_compat.c: Likewise.
30524 * math/w_log10_compat.c: Likewise.
30525 * math/w_log10f_compat.c: Likewise.
30526 * math/w_log10l_compat.c: Likewise.
30527 * math/w_log2_compat.c: Likewise.
30528 * math/w_log2f_compat.c: Likewise.
30529 * math/w_log2l_compat.c: Likewise.
30530 * math/w_log_compat.c: Likewise.
30531 * math/w_logf_compat.c: Likewise.
30532 * math/w_logl_compat.c: Likewise.
30533 * math/w_pow_compat.c: Likewise.
30534 * math/w_powf_compat.c: Likewise.
30535 * math/w_powl_compat.c: Likewise.
30536 * math/w_remainder_compat.c: Likewise.
30537 * math/w_remainderf_compat.c: Likewise.
30538 * math/w_remainderl_compat.c: Likewise.
30539 * math/w_scalb_compat.c: Likewise.
30540 * math/w_scalbf_compat.c: Likewise.
30541 * math/w_scalbl_compat.c: Likewise.
30542 * math/w_sinh_compat.c: Likewise.
30543 * math/w_sinhf_compat.c: Likewise.
30544 * math/w_sinhl_compat.c: Likewise.
30545 * math/w_sqrt_compat.c: Likewise.
30546 * math/w_sqrtf_compat.c: Likewise.
30547 * math/w_sqrtl_compat.c: Likewise.
30548 * math/w_tgamma_compat.c: Likewise.
30549 * math/w_tgammaf_compat.c: Likewise.
30550 * math/w_tgammal_compat.c: Likewise.
30551 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30552 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30553 * sysdeps/ieee754/k_standard.c: Likewise.
30554 * sysdeps/ieee754/k_standardf.c: Likewise.
30555 * sysdeps/ieee754/k_standardl.c: Likewise.
30556 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30557 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30558 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30559 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30560 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30561 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30562 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30563 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30564 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30566 Likewise.
30567 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30568 Likewise.
30569 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30570 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30571 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30572 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30573
30574 2017-08-21 Florian Weimer <fweimer@redhat.com>
30575
30576 [BZ #21864]
30577 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30578 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30579 Move before inclusion of ../Rules.
30580
30581 2017-08-21 Florian Weimer <fweimer@redhat.com>
30582
30583 [BZ #21972]
30584 * assert/assert.h (assert): Use static_cast (bool) for C++.
30585 Use the ternary operator in the warning branch for GNU C.
30586 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30587 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30588 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30589 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30590 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30591
30592 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30593
30594 [BZ #18822]
30595 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30596 (__syscall_clock_gettime): Add attribute_hidden.
30597 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30598 (__start_context): Likewise.
30599
30600 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30601
30602 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30603 building libc.a.
30604 (hidden_proto): Likewise.
30605 (hidden_tls_proto): Likewise.
30606 (__hidden_proto): Likewise.
30607
30608 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30609
30610 * include/libc-symbols.h (attribute_hidden): Enable hidden
30611 visibility in libc.a compiled with PIE.
30612
30613 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30614
30615 [BZ #18822]
30616 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30617 Add attribute_hidden.
30618
30619 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30620
30621 [BZ #21864]
30622 * Makerules (all-nonlib): Add $(others-extras).
30623 * catgets/Makefile (others-extras): New.
30624 * elf/Makefile (others-extras): Likewise.
30625 * nss/Makefile (others-extras): Likewise.
30626
30627 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30628
30629 [BZ #18822]
30630 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30631 * elf/dl-open.c: Include <libc-internal.h>.
30632 (__libc_multiple_libcs): Removed.
30633 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30634 <hp-timing.h>.
30635 * include/libc-internal.h (__libc_multiple_libcs): New.
30636 * misc/sbrk.c: Include <libc-internal.h>.
30637 (__libc_multiple_libcs): Removed.
30638
30639 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30640
30641 [BZ #18822]
30642 * grp/initgroups.c (__nss_group_database): Removed.
30643 (__nss_initgroups_database): Likewise.
30644 * nscd/gai.c (__nss_hosts_database): Likewise.
30645 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30646 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30647 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30648 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30649 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30650 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30651 attribute_hidden.
30652 * nss/nsswitch.c (__nss_database_custom): Define only if
30653 USE_NSCD is defined.
30654 (__nss_configure_lookup): Use __nss_database_custom only if
30655 USE_NSCD is defined.
30656 * nss/nsswitch.h (__nss_database_custom): Declare only if
30657 USE_NSCD is defined. Add attribute_hidden.
30658 (__nss_setent): Add attribute_hidden.
30659 (__nss_endent): Likewise.
30660 (__nss_getent_r): Likewise.
30661 (__nss_getent): Likewise.
30662 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30663
30664 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30665
30666 [BZ #18822]
30667 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30668 libc_hidden_proto and libc_hidden_def.
30669
30670 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30671
30672 [BZ #18822]
30673 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30674 Add libc_hidden_proto.
30675 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30676 Add libc_hidden_def.
30677
30678 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30679
30680 [BZ #21974]
30681 * gmon/Makefile (routines): Remove bb_init_func and
30682 bb_exit_func.
30683 (elide-routines.os): Removed.
30684 * gmon/bb_exit_func.c: Likewise.
30685 * gmon/bb_init_func.c: Likewise.
30686 * include/sys/gmon.h (__bb): Likewise.
30687 (__bb_init_func): Likewise.
30688 (__bb_exit_func): Likewise.
30689 * sysdeps/alpha/bb_init_func.S: Likewise.
30690
30691 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30694 * include/setjmp.h (____longjmp_chk): Here. Add
30695 attribute_hidden.
30696
30697 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 [BZ #18822]
30700 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30701 attribute_hidden.
30702 (__strspn_sse2): Likewise.
30703
30704 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30705
30706 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30707 (close_not_cancel_no_status): Likewise.
30708 (__close_nocancel): New macro.
30709 (__close_nocancel_nostatus): Likewise.
30710 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30711 macro.
30712 (close_not_cancel): Likewise.
30713 (close_not_cancel_no_status): Likewise.
30714 (__close_nocancel): New prototype.
30715 (__close_nocancel_nostatus): New function.
30716 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30717 * catgets/open_catalog.c (__open_catalog): Replace
30718 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30719 * gmon/gmon.c (write_gmon): Likewise.
30720 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30721 * intl/loadmsgcat.c (close): Likewise.
30722 * io/ftw.c (open_dir_stream): Likewise.
30723 (ftw_startup): Likewise.
30724 * libio/fileops.c (_IO_file_open): Likewise.
30725 (_IO_file_close_mmap): Likewise.
30726 (_IO_file_close): Likewise.
30727 * libio/iopopen.c (_IO_dup2): Likewise.
30728 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30729 * locale/loadlocale.c (_nl_load_locale): Likewise.
30730 * login/utmp_file.c (pututline_file): Likewise.
30731 (endutent_file): Likewise.
30732 * misc/daemon.c (daemon): Likewise.
30733 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30734 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30735 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30736 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30737 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30738 * nscd/nscd_helper.c (open_socket): Likewise.
30739 (__nscd_open_socket): Likewise.
30740 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30741 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30742 (__nscd_innetgr): Likewise.
30743 * nss/nss_db/db-open.c (internal_setent): Likewise.
30744 * resolv/res-close.c (__res_iclose): Likewise.
30745 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30746 * sysdeps/posix/closedir.c (__closedir): Likewise.
30747 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30748 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30749 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30750 (opendir_tail): Likewise.
30751 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30752 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30753 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30754 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30755 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30756 (gethostid): Likewise.
30757 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30758 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30759 Likewise.
30760 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30761 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30762 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30763 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30764 Likewise.
30765 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30766 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30767 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30768 Likewise.
30769 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30770 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30771 Likewise.
30772 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30773 Likewise.
30774 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30775 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30776 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30777 __close_nocancel.
30778
30779 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30780 (openat_not_cancel_3): Likewise.
30781 (openat64_not_cancel_3): Likewise).
30782 (openat_not_cancel_3): Likewise).
30783 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30784 macro.
30785 (openat_not_cancel_3): Likewise.
30786 (openat64_not_cancel): Likewise.
30787 (openat64_not_cancel_3): Likewise.
30788 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30789 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30790 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30791 __open{64}_nocancel.
30792 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30793 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30794 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30795
30796 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30797
30798 [BZ #18822]
30799 * include/argz.h (__argz_create_sep): New function prototype.
30800 (__argz_append): Likewise.
30801 (__argz_add): Likewise.
30802 (__argz_add_sep): Likewise.
30803 (__argz_delete): Likewise.
30804 (__argz_insert): Likewise.
30805 (__argz_replace): Likewise.
30806 * string/argz.h (__argz_create_sep): Removed.
30807 (__argz_append): Likewise.
30808 (__argz_add): Likewise.
30809 (__argz_add_sep): Likewise.
30810 (__argz_delete): Likewise.
30811 (__argz_insert): Likewise.
30812 (__argz_replace): Likewise.
30813
30814 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30815
30816 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30817 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30818 (GNU_PROPERTY_STACK_SIZE): Likewie.
30819 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30820 (GNU_PROPERTY_LOPROC): Likewise.
30821 (GNU_PROPERTY_HIPROC): Likewise.
30822 (GNU_PROPERTY_LOUSER): Likewise.
30823 (GNU_PROPERTY_HIUSER): Likewise.
30824 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30825 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30826 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30827 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30828 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30829 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30830 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30831 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30832 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30833 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30834 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30835 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30836 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30837 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30838 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30839 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30840 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30841 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30842 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30843 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30844 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30845 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30846 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30847
30848 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30849
30850 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30851 in C++ mode.
30852
30853 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30854
30855 [BZ #21930]
30856 * math/math.h (isinf): Check if in C or C++ mode before using
30857 __builtin_types_compatible_p, since this is a C mode feature.
30858
30859 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30860
30861 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30862 (__write_nocancel): New macro.
30863 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30864 Rewrite as a function prototype.
30865 (write_not_cancel): Remove macro.
30866 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30867 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30868 (write_gmon): Likewise.
30869 * libio/fileops.c (_IO_new_file_write): Likewise.
30870 * login/utmp_file.c (pututline_file): Likewise.
30871 (updwtmp_file): Likewise.
30872 * stdio-common/psiginfo.c (psiginfo): Likewise.
30873 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30874 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30875 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30876 Likewise.
30877 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30878 Likewise.
30879
30880 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30881 (__read_nocancel): New macro.
30882 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30883 __read_nocancel.
30884 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30885 macro.
30886 (__read_nocancel): New prototype.
30887 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30888 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30889 with __read_nocancel.
30890 * intl/loadmsgcat.c (read): Likewise.
30891 * libio/fileops.c (_IO_file_read): Likewise.
30892 * locale/loadlocale.c (_nl_load_locale): Likewise.
30893 * login/utmp_file.c (getutent_r_file): Likewise.
30894 (internal_getut_r): Likewise.
30895 (getutline_r_file): Likewise.
30896 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30897 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30898 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30899 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30900 Likewise.
30901 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30902 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30903 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30904 Likewise.
30905 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30906 Likewise.
30907 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30908 Likewise.
30909 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30910 Likewise.
30911 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30912
30913 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30914
30915 [BZ #21966]
30916 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30917 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30918 usable.
30919
30920 2017-08-17 DJ Delorie <dj@redhat.com>
30921
30922 * bug17079.c: Update to new test harness.
30923 * test-digits-dots.c: Likewise.
30924 * test-netdb.c: Likewise.
30925 * tst-field.c: Likewise.
30926 * tst-nss-getpwent.c: Likewise.
30927 * tst-nss-static.c: Likewise.
30928 * tst-nss-test1.c: Likewise.
30929 * tst-nss-test2.c: Likewise.
30930 * tst-nss-test3.c: Likewise.
30931 * tst-nss-test4.c: Likewise.
30932 * tst-nss-test5.c: Likewise.
30933
30934 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30935
30936 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30937 (open_not_cancel_2): Likewise.
30938 (open_nocancel): New macro.
30939 (open64_nocancel): Likewise.
30940 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30941 (open_not_cancel_2): Likewise.
30942 (__open_nocancel): New prototype.
30943 (__open64_nocancel): Likewise.
30944 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30945 __open_nocancel.
30946 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30947 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30948 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30949 with __open_nocancel.
30950 * csu/check_fds.c (check_one_fd): Likewise.
30951 * gmon/gmon.c (write_gmon): Likewise.
30952 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30953 * intl/loadmsgcat.c (open): Likewise.
30954 * libio/fileops.c (_IO_file_open): Likewise.
30955 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30956 * locale/loadlocale.c (_nl_load_locale): Likewise.
30957 * login/utmp_file.c (setutent_file): Likewise.
30958 * misc/daemon.c (daemon): Likewise.
30959 * nss/nss_db/db-open.c (internal_setent): Likewise.
30960 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30961 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30962 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30963 (__opendir): Likewise.
30964 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30965 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30966 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30967 (gethostid): Likewise.
30968 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30969 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30970 Likewise.
30971 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30972 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30973 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30974 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30975 Likewise.
30976 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30977 Likewise.
30978 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30979 Likewise.
30980 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30981 Likewise.
30982 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30983 Likewise.
30984 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30985 Likewise.
30986 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30987 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30988
30989 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30990
30991 * benchtests/bench-skeleton.c (main): Add support for
30992 latency benchmarking.
30993 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30994
30995 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30996
30997 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30998 the startup object.
30999
31000 2017-08-17 Florian Weimer <fweimer@redhat.com>
31001
31002 * include/sys/socket.h (__opensock): Remove internal_function.
31003 * socket/opensock.c (__opensock): Likewise.
31004 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31005
31006 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31007
31008 [BZ #21944]
31009 * signal/bits/types/__sigval_t.h: New file.
31010 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31011 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31012 and define sigval_t using __sigval_t.
31013 * include/bits/types/__sigval_t.h: New file.
31014 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31015 instead of <bits/types/__sigval_t.h>.
31016 (struct sigevent): Use __sigval_t instead of sigval_t.
31017 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31018 instead of <bits/types/__sigval_t.h>.
31019 (siginfo_t): Use __sigval_t instead of sigval_t.
31020 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31021 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31022 (struct sigevent): Use __sigval_t instead of sigval_t.
31023 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31024 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31025 (siginfo_t): Use __sigval_t instead of sigval_t.
31026 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31027
31028 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31029
31030 * NEWS: Remove "[Add new features here]" for 2.27.
31031
31032 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31033
31034 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31035 libc.so.
31036
31037 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31038
31039 * NEWS: Mention x86-64 FMA optimization.
31040
31041 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31042
31043 [BZ #21912]
31044 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31045 Add e_expf-fma.
31046 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31047 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31048 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31049
31050 2017-08-16 Andreas Schwab <schwab@suse.de>
31051
31052 [BZ #16750]
31053 CVE-2009-5064
31054 * elf/ldd.bash.in: Never run file directly.
31055
31056 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31057
31058 [BZ #21955]
31059 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31060 (L(SP_INF_0)): Likewise.
31061
31062 2017-08-15 Florian Weimer <fweimer@redhat.com>
31063
31064 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31065 run-built-tests.
31066
31067 2017-08-15 Florian Weimer <fweimer@redhat.com>
31068
31069 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31070 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31071 BROKEN_THREAD_SIGNALS code.
31072 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31073 request_list): Remove caller_pid member used for
31074 BROKEN_THREAD_SIGNALS.
31075 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31076 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31077 Remove BROKEN_THREAD_SIGNALS support.
31078 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31079 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31080
31081 2017-08-15 Florian Weimer <fweimer@redhat.com>
31082
31083 * gmon/Makefile (tests): Add tst-gmon.
31084 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31085 Set.
31086 (tests-special): Add tst-gmon-prof.out.
31087 (tst-gmon.out): Depend on clean-tst-gmon-data.
31088 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31089 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31090 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31091 startup object.
31092 * aclocal.m4 (GPROF): Set and substitute.
31093 * config.amke.in (GPROF): Set.
31094 * configure: Regenerate.
31095
31096 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31097
31098 * elf/elf.h A (NT_PPC_TAR): New macro.
31099 (NT_PPC_PPR): Likewise.
31100 (NT_PPC_DSCR): Likewise.
31101 (NT_PPC_EBB): Likewise.
31102 (NT_PPC_PMU): Likewise.
31103 (NT_PPC_TM_CGPR): Likewise.
31104 (NT_PPC_TM_CFPR): Likewise.
31105 (NT_PPC_TM_CVMX): Likewise.
31106 (NT_PPC_TM_CVSX): Likewise.
31107 (NT_PPC_TM_SPR): Likewise.
31108 (NT_PPC_TM_CTAR): Likewise.
31109 (NT_PPC_TM_CPPR): Likewise.
31110 (NT_PPC_TM_CDSCR): Likewise.
31111
31112 2017-08-15 Florian Weimer <fweimer@redhat.com>
31113
31114 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31115 regparm (2) instead of internal_function.
31116 (_MCOUNT_DECL): Adjust.
31117
31118 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31119
31120 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31121 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31122
31123 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31124
31125 * conform/data/sys/wait.h-data (si_value): Do not expect for
31126 XPG42.
31127
31128 2017-08-14 Florian Weimer <fweimer@redhat.com>
31129
31130 [BZ #21962]
31131 NSS: Create stubs for accidentally exported lookup functions.
31132 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31133 Remove declaration.
31134 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31135 (ether_hostton): Call __nss_ethers_lookup2 instead.
31136 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31137 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31138 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31139 (setup): Call __nss_netgroup_lookup2 instead.
31140 * nss/Makefile (routines): Add compat-lookup.
31141 * nss/Versions (GLIBC_2.27): Add symbol version.
31142 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31143 (DB_COMPAT_FCT): Remove.
31144 * nss/compat-lookup.c: New file.
31145 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31146 from databases.def.
31147 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31148 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31149 (netname2user): Call __nss_publickey_lookup2 instead.
31150 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31151 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31152 instead.
31153
31154 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31155 Sergei Trofimovich <slyfox@inbox.ru>
31156
31157 [BZ #21908]
31158 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31159 Rename to MMAP2_PAGE_UNIT.
31160 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31161 __OFF_T_MATCHES_OFF64_T is not defined.
31162 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31163 uint64_t.
31164 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31165 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31166
31167 2017-08-14 Florian Weimer <fweimer@redhat.com>
31168
31169 i386: Do not set internal_function.
31170 * config.h.in (USE_REGPARMS, internal_function): Remove.
31171 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31172 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31173
31174 2017-08-14 Florian Weimer <fweimer@redhat.com>
31175
31176 * elf/dl-init.c (_dl_init): Remove internal_function.
31177 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31178 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31179
31180 2017-08-14 Florian Weimer <fweimer@redhat.com>
31181
31182 * elf/rtld.c (_dl_start): Remove internal_function.
31183 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31184 _dl_start.
31185
31186 2017-08-14 Florian Weimer <fweimer@redhat.com>
31187
31188 * elf/dl-fini.c (_dl_fini): Remove internal_function
31189 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31190
31191 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31192
31193 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31194 (bit_cpu_SHSTK): Likewise.
31195 (index_cpu_IBT): Likewise.
31196 (index_cpu_SHSTK): Likewise.
31197 (reg_IBT): Likewise.
31198 (reg_SHSTK): Likewise.
31199 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31200 Handle index_cpu_IBT and index_cpu_SHSTK.
31201
31202 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31203
31204 [BZ #19982]
31205 * po/fr.po: Fix spelling mistake.
31206
31207 2017-08-13 Florian Weimer <fweimer@redhat.com>
31208
31209 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31210 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31211 (_dl_catch_error, _dl_receive_error): Likewise.
31212 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31213 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31214 (_dl_deallocate_tls): Likewise.
31215 * include/dlfcn.h (_dl_addr): Likewise.
31216 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31217 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31218 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31219 Likewise.
31220
31221 2017-08-13 Florian Weimer <fweimer@redhat.com>
31222
31223 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31224 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31225 internal_function.
31226 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31227
31228 2017-08-13 Florian Weimer <fweimer@redhat.com>
31229
31230 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31231 internal_function.
31232 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31233 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31234 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31235 internal_function from _dl_make_stack_executable_hook member.
31236 (_dl_make_stack_executable): Remove internal_function.
31237 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31238 Likewise.
31239 * sysdeps/unix/sysv/linux/dl-execstack.c
31240 (_dl_make_stack_executable): Likewise.
31241
31242 2017-08-13 Florian Weimer <fweimer@redhat.com>
31243
31244 * sysdeps/unix/sysv/linux/netlinkaccess.h
31245 (__netlink_assert_response): Remove internal_function.
31246 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31247 (__netlink_assert_response): Likewise.
31248
31249 2017-08-13 Florian Weimer <fweimer@redhat.com>
31250
31251 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31252 internal_function.
31253 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31254
31255 2017-08-13 Florian Weimer <fweimer@redhat.com>
31256
31257 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31258 internal_function.
31259 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31260 * inet/netgroup.h (__internal_setnetgrent)
31261 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31262 * inet/getnetgrent_r.c (__internal_setnetgrent)
31263 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31264 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31265 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31266 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31267 * nss/nsswitch.h (db_lookup_function): Likewise.
31268
31269 2017-08-13 Florian Weimer <fweimer@redhat.com>
31270
31271 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31272 Remove internal_function.
31273 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31274 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31275 message argument on the stack.
31276 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31277 Likeweise.
31278
31279 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31280
31281 Adapt test case data to the changes in the thousands
31282 separators.
31283
31284 [BZ #20756]
31285 * localedata/tst-langinfo.sh: Adapt test case data.
31286 * stdlib/tst-strfmon_l.c: Likewise.
31287 * stdlib/tst-strtod4.c: Likewise.
31288 * stdlib/tst-strtod5i.c: Likewise.
31289
31290 2017-08-11 Florian Weimer <fweimer@redhat.com>
31291
31292 [BZ #21242]
31293 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31294 Suppress pedantic warning resulting from statement expression.
31295 (__ASSERT_FUNCTION): Add missing __extension__.
31296
31297 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31298
31299 * benchtests/bench-memmove-large.c: Print output in JSON
31300 format.
31301 * benchtests/bench-memmove.c: Likewise.
31302
31303 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31304 * benchtests/bench-memchr.c (do_one_test): Likewise.
31305 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31306 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31307 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31308 * benchtests/bench-memmove.c (do_one_test): Likewise.
31309 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31310 * benchtests/bench-memset.c (do_one_test): Likewise.
31311 * benchtests/bench-string.h (test_init): Remove memsets.
31312
31313 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31314
31315 * manual/lang.texi
31316 (Computing the Width of an Integer Data Type): Rename section to
31317 "Width of an Integer Type". Remove inaccurate statement regarding
31318 lack of C language facilities for determining width of integer
31319 types, and reorder content to improve flow and context of
31320 discussion.
31321
31322 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31323
31324 * lang.texi (va_copy): Change standard from ISO to C99.
31325 (__va_copy): Add standard and header annotation.
31326 Update description for clarity of origins and current use.
31327
31328 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31329
31330 [BZ #21941]
31331 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31332 xssqrtqp requires operands to be in Vector Registers
31333 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31334 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31335 (__ieee754_sqrtf128): Likewise.
31336
31337 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31338
31339 * sysdeps/aarch64/memcmp.S (memcmp):
31340 Rewrite of optimized memcmp.
31341
31342 2017-08-10 Florian Weimer <fweimer@redhat.com>
31343
31344 Introduce ld.so exceptions.
31345 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31346 (_dl_exception_create, _dl_exception_create_format)
31347 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31348 (_dl_catch_exception): Declare.
31349 (_dl_catch_error): Update comment.
31350 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31351 errstring, malloced members with exception member.
31352 (_dl_out_of_memory): Remove.
31353 (fatal_error): New function, extracted from _dl_signal_error.
31354 (_dl_signal_exception, _dl_signal_cexception): New functions.
31355 (_dl_signal_error): Call _dl_exception_create to allocate an
31356 exception object.
31357 (_dl_catch_exception): New function, based on _dl_catch_error.
31358 (_dl_catch_error): Implement using _dl_catch_exception.
31359 * elf/dl-exception.c: New file.
31360 * elf/Makefile (dl-routines): Add dl-exception.
31361 (elide-routines.os): Likewise.
31362 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31363 _dl_exception_create_format, _dl_exception_free.
31364 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31365 _dl_signal_exception.
31366 * elf/dl-lookup.c (make_string): Remove.
31367 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31368 _dl_signal_cexception, _dl_exception_free.
31369 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31370 _dl_signal_exception.
31371 * elf/dl-sym.c (do_sym): Likewise.
31372 * elf/dl-version.c (make_string): Remove.
31373 (match_symbol): Use _dl_exception_create_format,
31374 _dl_signal_cexception, _dl_exception_free.
31375 (_dl_check_map_versions): Likewise.
31376 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31377 _dl_catch_exception.
31378 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31379 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31380 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31381 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31382 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31383 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31384 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31385 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31386 Likewise.
31387 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31389 (ld.so): Likewise.
31390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31391 (ld.so): Likewise.
31392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31393 Likewise.
31394 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31395 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31396 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31397 Likewise.
31398 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31399 Likewise.
31400 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31401
31402 2017-08-10 Florian Weimer <fweimer@redhat.com>
31403
31404 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31405 attribute_hidden, internal_function.
31406 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31407 internal_function.
31408
31409 2017-08-10 Florian Weimer <fweimer@redhat.com>
31410
31411 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31412 function which calls __builtin_unreachable.
31413
31414 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31415
31416 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31417 Indian monetary formatting
31418 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31419 test cases.
31420
31421 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31422
31423 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31424 Fix typo in comment.
31425
31426 [BZ #21928]
31427 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31428 PTRACE_SEIZE_DEVEL): Remove.
31429 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31430 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31431 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31432 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31433 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31434
31435 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31436
31437 * posix/bits/types.h (__qaddr_t): Remove.
31438
31439 [BZ #21457]
31440 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31441 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31442 __glibc_reserved1.
31443 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31444 (ucontext_t): Use __ctx with uc_flags.
31445 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31446 (__ctxt): Likewise.
31447 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31448 __glibc_reserved1.
31449 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31450 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31451 __glibc_reserved1.
31452 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31453 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31454 __glibc_reserved1.
31455 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31456 macro.
31457 (ucontext_t): Use __ctx with uc_flags.
31458 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31459 (ucontext_t): Use __ctx with uc_flags.
31460 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31461 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31462 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31463 (ucontext_t): Use __ctx with uc_flags.
31464 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31465 undefine further down.
31466 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31467 __glibc_reserved1.
31468 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31469 undefine further down.
31470 (ucontext_t): Use __ctx with uc_flags.
31471 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31472 undefine further down.
31473 (ucontext_t): Use __ctx with uc_flags.
31474 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31475 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31476 Rename uc_pad to __glibc_reserved1.
31477 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31478 undefine further down.
31479 (ucontext_t): Use __ctx with uc_flags.
31480 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31481 further down.
31482 (ucontext_t): Use __ctx with uc_flags.
31483 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31484 __ctx with uc_flags.
31485 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31486 (ucontext_t): Use __ctx with uc_flags.
31487 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31488 __ctx with uc_flags.
31489
31490 2017-08-09 Florian Weimer <fweimer@redhat.com>
31491
31492 [BZ #21932]
31493 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31494 before early return.
31495
31496 2017-08-09 Andreas Schwab <schwab@suse.de>
31497
31498 [BZ #21041]
31499 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31500 renamed alias.
31501
31502 [BZ #21041]
31503 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31504 tst-compat-forwarder.
31505 (modules-names): Add tst-compat-forwarder-mod.
31506 ($(objpfx)tst-compat-forwarder): Depend on
31507 $(objpfx)tst-compat-forwarder-mod.so.
31508 * nptl/tst-compat-forwarder.c: New file.
31509 * nptl/tst-compat-forwarder-mod.c: New file.
31510
31511 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31512
31513 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31514 comments.
31515
31516 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31517 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31518 memcpy_falkor.
31519 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31520 Bump.
31521 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31522 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31523 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31524 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31525 Add falkor.
31526 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31527 New macro.
31528
31529 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31530
31531 [BZ #759]
31532 * manual/setjmp.texi (getcontex): Document uc_stack value
31533 compatibility differences.
31534
31535 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31536
31537 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31538 (old_malloc_hook): Likewise.
31539 (old_memalign_hook): Likewise.
31540 (old_realloc_hook): Likewise.
31541 (struct hdr): Likewise.
31542 (flood): Likewise.
31543 (freehook): Likewise.
31544 (mallochook): Likewise.
31545 (memalignhook): Likewise.
31546 (reallochook): Likewise.
31547 (mprobe): Likewise.
31548 * malloc/mtrace.c (mallwatch): Likewise.
31549 (tr_old_free_hook): Likewise.
31550 (tr_old_malloc_hook): Likewise.
31551 (tr_old_realloc_hook): Likewise.
31552 (tr_old_memalign_hook): Likewise.
31553 (tr_where): Likewise.
31554 (lock_and_info): Likewise.
31555 (tr_freehook): Likewise.
31556 (tr_mallochook): Likewise.
31557 (tr_reallochook): Likewise.
31558 (tr_memalignhook): Likewise.
31559 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31560 * misc/mmap.c (__mmap): Likewise.
31561 * misc/mmap64.c (__mmap64): Likewise.
31562 * misc/mprotect.c (__mprotect): Likewise.
31563 * misc/msync.c (msync): Likewise.
31564 * misc/munmap.c (__munmap): Likewise.
31565 * posix/posix_madvise.c (posix_madvise): Likewise.
31566 * socket/send.c (__send): Likewise.
31567 * socket/sendto.c (__sendto): Likewise.
31568 * socket/setsockopt.c (__setsockopt): Likewise.
31569 * string/memcmp.c (__ptr_t): Remove macro.
31570 (MEMCMP): Use void * instead of ptr_t.
31571 * string/memrchr.c (__ptr_t): Remove macro.
31572 (__memrchr): Use void * instead of ptr_t.
31573 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31574 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31575 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31576 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31577 * sysdeps/mach/msync.c (msync): Likewise.
31578 * sysdeps/mach/munmap.c (__munmap): Likewise.
31579 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31580 Likewise.
31581 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31582 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31583 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31584 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31585 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31586 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31587 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31588 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31589 Likewise.
31590 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31591 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31592 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31593 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31594 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31595 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31596 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31597 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31598 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31599 Likewise.
31600 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31601 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31602 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31603 (MEMCMP): Use void * instead of ptr_t.
31604 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31605 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31606
31607 2017-08-08 Florian Weimer <fweimer@redhat.com>
31608
31609 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31610 return statement.
31611
31612 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31613
31614 [BZ #21913]
31615 * csu/libc-tls.c: Include <startup.h> first.
31616 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31617 * elf/dl-tunables.c: Include <startup.h> first.
31618 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31619 * sysdeps/generic/startup.h: New file.
31620 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31621 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31622 (I386_USE_SYSENTER): New. Defined to 0.
31623
31624 2017-08-08 Andreas Schwab <schwab@suse.de>
31625
31626 [BZ #21041]
31627 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31628 * nptl/pt-system.c (system): Likewise.
31629
31630 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31631
31632 [BZ #21780]
31633 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31634 EOPNOTSUPP.
31635 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31636 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31637 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31638 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31639 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31640 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31641 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31642
31643 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31644
31645 [BZ #21899]
31646 * bits/sigaction.h (struct sigaction): Define sa_handler and
31647 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31648 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31649 [__USE_XOPEN_EXTENDED].
31650 (SA_RESTART): Likewise.
31651 (SA_NODEFER): Likewise.
31652 (SA_RESETHAND): Likewise.
31653 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31654 (struct sigaction): Define sa_handler and sa_sigaction using union
31655 also for [__USE_XOPEN_EXTENDED].
31656 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31657 [__USE_XOPEN_EXTENDED].
31658 (SA_RESTART): Likewise.
31659 (SA_NODEFER): Likewise.
31660 (SA_RESETHAND): Likewise.
31661 * sysdeps/unix/sysv/linux/bits/sigaction.h
31662 (struct sigaction): Define sa_handler and sa_sigaction using union
31663 also for [__USE_XOPEN_EXTENDED].
31664 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31665 [__USE_XOPEN_EXTENDED].
31666 (SA_RESTART): Likewise.
31667 (SA_NODEFER): Likewise.
31668 (SA_RESETHAND): Likewise.
31669 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31670 (struct sigaction): Define sa_handler and sa_sigaction using union
31671 also for [__USE_XOPEN_EXTENDED].
31672 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31673 [__USE_XOPEN_EXTENDED].
31674 (SA_RESTART): Likewise.
31675 (SA_NODEFER): Likewise.
31676 (SA_RESETHAND): Likewise.
31677 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31678 (struct sigaction): Define sa_handler and sa_sigaction using union
31679 also for [__USE_XOPEN_EXTENDED].
31680 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31681 [__USE_XOPEN_EXTENDED].
31682 (SA_RESTART): Likewise.
31683 (SA_NODEFER): Likewise.
31684 (SA_RESETHAND): Likewise.
31685 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31686 (struct sigaction): Define sa_handler and sa_sigaction using union
31687 also for [__USE_XOPEN_EXTENDED].
31688 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31689 [__USE_XOPEN_EXTENDED].
31690 (SA_RESTART): Likewise.
31691 (SA_NODEFER): Likewise.
31692 (SA_RESETHAND): Likewise.
31693 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31694 (struct sigaction): Define sa_handler and sa_sigaction using union
31695 also for [__USE_XOPEN_EXTENDED].
31696 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31697 [__USE_XOPEN_EXTENDED].
31698 (SA_RESTART): Likewise.
31699 (SA_NODEFER): Likewise.
31700 (SA_RESETHAND): Likewise.
31701 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31702 (struct sigaction): Define sa_handler and sa_sigaction using union
31703 also for [__USE_XOPEN_EXTENDED].
31704 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31705 [__USE_XOPEN_EXTENDED].
31706 (SA_RESTART): Likewise.
31707 (SA_NODEFER): Likewise. Define directly rather than as alias.
31708 (SA_RESETHAND): Likewise.
31709 (SA_INTERRUPT): Define only for [__USE_MISC].
31710 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31711 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31712 [__USE_MISC].
31713 (SA_STACK): Define only for [__USE_MISC].
31714 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31715 (struct sigaction): Define sa_handler and sa_sigaction using union
31716 also for [__USE_XOPEN_EXTENDED].
31717 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31718 [__USE_XOPEN_EXTENDED].
31719 (SA_RESTART): Likewise.
31720 (SA_NODEFER): Likewise.
31721 (SA_RESETHAND): Likewise.
31722 (SA_NOPTRACE): Define only for [__USE_MISC].
31723
31724 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31725 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31726 (struct catalog_info): Likewise.
31727 * inet/htontest.c (lo): Likewise.
31728 (foo): Likewise.
31729 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31730 * inet/inet_net.c (inet_network): Likewise.
31731 * inet/inet_netof.c (inet_netof): Likewise.
31732 * inet/rcmd.c (__ivaliduser): Likewise.
31733 (iruserok): Likewise.
31734 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31735 * locale/programs/locale-spec.c (locale_special): Likewise.
31736 * nis/nis_findserv.c (struct findserv_req): Likewise.
31737 (__nis_findfastest_with_timeout): Likewise.
31738 * nss/test-netdb.c (test_network): Likewise.
31739 * resolv/inet_neta.c (inet_neta): Likewise.
31740 * resolv/ns_date.c (ns_datetosecs): Likewise.
31741 (SECS_PER_DAY): Likewise.
31742 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31743 Likewise.
31744 * resolv/res_comp.c (__putlong): Likewise.
31745 (__putshort): Likewise.
31746 (_getlong): Likewise.
31747 (_getshort): Likewise.
31748 * resolv/res_debug.c (p_time): Likewise.
31749 (precsize_ntoa): Likewise.
31750 (precsize_aton): Likewise.
31751 (latlon2ul): Likewise.
31752 (loc_aton): Likewise.
31753 (loc_ntoa): Likewise.
31754 * resolv/res_hconf.c (struct netaddr): Likewise.
31755 (_res_hconf_reorder_addrs): Likewise.
31756 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31757 (clnttcp_control): Likewise.
31758 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31759 (clntudp_control): Likewise.
31760 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31761 (clntunix_control): Likewise.
31762 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31763 * sunrpc/rpc/auth.h (union des_block): Likewise.
31764 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31765 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31766 (xdrrec_create): Likewise.
31767 (xdrrec_endofrecord): Likewise.
31768 (flush_out): Likewise.
31769 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31770 (xdrstdio_putlong): Likewise.
31771 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31772 Likewise.
31773
31774 * misc/sys/cdefs.h (__long_double_t): Remove.
31775 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31776 instead of __long_double_t,
31777 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31778
31779 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31780
31781 * benchtests/scripts/compare_strings.py: Avoid display error when
31782 running on a text terminal.
31783
31784 * benchtests/scripts/compare_strings.py (main): Add an
31785 optional -base option.
31786 (process_results): New argument base_func.
31787
31788 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31789 hardcoding memcpy.
31790 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31791 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31792
31793 2017-08-07 Andreas Schwab <schwab@suse.de>
31794
31795 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31796 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31797 * intl/Makefile ($(objpfx)tst-gettext.out)
31798 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31799 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31800 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31801 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31802 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31803 * posix/Makefile ($(objpfx)globtest.out)
31804 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31805 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31806 ($(objpfx)tst-printf.out): Likewise.
31807 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31808 ($(objpfx)tst-setcontext3.out): Likewise.
31809
31810 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31811
31812 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31813 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31814 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31815 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31816 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31817 and mptan-fma.
31818 (CFLAGS-doasin-fma.c): New.
31819 (CFLAGS-dosincos-fma.c): Likewise.
31820 (CFLAGS-e_asin-fma.c): Likewise.
31821 (CFLAGS-e_atan2-fma.c): Likewise.
31822 (CFLAGS-e_exp-fma.c): Likewise.
31823 (CFLAGS-e_log-fma.c): Likewise.
31824 (CFLAGS-e_pow-fma.c): Likewise.
31825 (CFLAGS-halfulp-fma.c): Likewise.
31826 (CFLAGS-mpa-fma.c): Likewise.
31827 (CFLAGS-mpatan-fma.c): Likewise.
31828 (CFLAGS-mpatan2-fma.c): Likewise.
31829 (CFLAGS-mpexp-fma.c): Likewise.
31830 (CFLAGS-mplog-fma.c): Likewise.
31831 (CFLAGS-mpsqrt-fma.c): Likewise.
31832 (CFLAGS-mptan-fma.c): Likewise.
31833 (CFLAGS-s_atan-fma.c): Likewise.
31834 (CFLAGS-sincos32-fma.c): Likewise.
31835 (CFLAGS-slowexp-fma.c): Likewise.
31836 (CFLAGS-slowpow-fma.c): Likewise.
31837 (CFLAGS-s_sin-fma.c): Likewise.
31838 (CFLAGS-s_tan-fma.c): Likewise.
31839 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31840 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31841 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31842 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31843 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31844 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31845 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31846 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31847 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31848 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31849 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31850 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31851 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31852 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31853 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31854 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31855 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31856 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31857 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31858 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31859 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31860 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31861 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31862 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31863 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31864 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31865 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31866 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31867 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31868 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31869 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31870
31871 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31872
31873 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31874 (min_of_type_f): New macro.
31875 (min_of_type_): Likewise.
31876 (min_of_type_l): Likewise.
31877 (min_of_type_f128): Likewise.
31878 (min_of_type): Define using __MATH_TG and taking an expression
31879 argument.
31880 (math_check_force_underflow): Pass expression instead of type to
31881 min_of_type.
31882 (math_check_force_underflow_nonneg): Likewise.
31883
31884 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31885
31886 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31887 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31888 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31889
31890 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31891
31892 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31893 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31894 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31895 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31896 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31897 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31898 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31899 memmove_chk-nonshared and memset_chk-nonshared
31900 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31901 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31902 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31903 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31904 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31905 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31906 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31907 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31908 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31909 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31910 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31911 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31912 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31913 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31914 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31915 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31916 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31917 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31918 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31919 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31920 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31921 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31922 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31923 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31924 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31925 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31926 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31927 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31928 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31929 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31930 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31931 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31932 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31933 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31934 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31935 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31936 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31937 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31938 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31939 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31940 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31941 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31942 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31943 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31944 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31945 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31946 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31947 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31948 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31949 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31950 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31951 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31952 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31953 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31954 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31955 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31956 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31957 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31958 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31959 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31960 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31961 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31962 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31963 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31964 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31965 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31966 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31967 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31968 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31969 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31970 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31971 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31972 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31973 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31974 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31975 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31976 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31977 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31978 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31979 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31980 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31981 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31982 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31983 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31984 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31985 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31986 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31987 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31988 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31989 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31990 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31991 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31992 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31993 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31994 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31995 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31996 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31997 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31998 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31999 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32000 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32001 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32002 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32003 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32004 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32005 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32006 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32007 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32008
32009 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32010
32011 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32012 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32013 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32014 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32015 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32016 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32017 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32018 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32019 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32020 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32021 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32022 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32023 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32024 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32025 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32026 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32027 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32028 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32029 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32030 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32031 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32032 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32033 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32034 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32035 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32036 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32037 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32038 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32039 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32040 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32041 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32042 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32043 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32044 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32045 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32046 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32047 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32048 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32049 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32050 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32051 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32052 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32053 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32054 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32055 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32056 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32057 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32058 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32059 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32060 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32061 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32062 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32063 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32064 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32065 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32066 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32067 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32068 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32069 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32070 ...
32071 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32072 Don't include <sysdep.h> nor <init-arch.h>.
32073 (_ZGVbN2v_cos): Removed.
32074 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32075 ...
32076 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32077 Don't include <sysdep.h> nor <init-arch.h>.
32078 (_ZGVdN4v_cos): Removed.
32079 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32080 ...
32081 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32082 Don't include <sysdep.h> nor <init-arch.h>.
32083 (_ZGVeN8v_cos): Removed.
32084 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32085 ...
32086 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32087 Don't include <sysdep.h> nor <init-arch.h>.
32088 (_ZGVbN2v_exp): Removed.
32089 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32090 ...
32091 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32092 Don't include <sysdep.h> nor <init-arch.h>.
32093 (_ZGVdN4v_exp): Removed.
32094 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32095 ...
32096 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32097 Don't include <sysdep.h> nor <init-arch.h>.
32098 (_ZGVeN8v_exp): Removed.
32099 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32100 ...
32101 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32102 Don't include <sysdep.h> nor <init-arch.h>.
32103 (_ZGVbN2v_log): Removed.
32104 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32105 ...
32106 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32107 Don't include <sysdep.h> nor <init-arch.h>.
32108 (_ZGVdN4v_log): Removed.
32109 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32110 ...
32111 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32112 Don't include <sysdep.h> nor <init-arch.h>.
32113 (_ZGVeN8v_log): Removed.
32114 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32115 ...
32116 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32117 Don't include <sysdep.h> nor <init-arch.h>.
32118 (_ZGVbN2vv_pow): Removed.
32119 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32120 ...
32121 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32122 Don't include <sysdep.h> nor <init-arch.h>.
32123 (_ZGVdN4vv_pow): Removed.
32124 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32125 ...
32126 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32127 Don't include <sysdep.h> nor <init-arch.h>.
32128 (_ZGVeN8vv_pow): Removed.
32129 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32130 ...
32131 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32132 Don't include <sysdep.h> nor <init-arch.h>.
32133 (_ZGVbN2v_sin): Removed.
32134 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32135 ...
32136 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32137 Don't include <sysdep.h> nor <init-arch.h>.
32138 (_ZGVbN4v_sin): Removed.
32139 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32140 ...
32141 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32142 Don't include <sysdep.h> nor <init-arch.h>.
32143 (_ZGVbN8v_sin): Removed.
32144 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32145 ...
32146 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32147 Don't include <sysdep.h> nor <init-arch.h>.
32148 (_ZGVbN2vvv_sincos): Removed.
32149 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32150 ...
32151 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32152 Don't include <sysdep.h> nor <init-arch.h>.
32153 (_ZGVdN4vvv_sincos): Removed.
32154 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32155 ...
32156 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32157 Don't include <sysdep.h> nor <init-arch.h>.
32158 (_ZGVeN8vvv_sincos): Removed.
32159 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32160 ...
32161 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32162 Don't include <sysdep.h> nor <init-arch.h>.
32163 (_ZGVeN16v_cosf): Removed.
32164 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32165 ...
32166 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32167 Don't include <sysdep.h> nor <init-arch.h>.
32168 (_ZGVbN4v_cosf): Removed.
32169 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32170 ...
32171 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32172 Don't include <sysdep.h> nor <init-arch.h>.
32173 (_ZGVdN8v_cosf): Removed.
32174 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32175 ...
32176 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32177 Don't include <sysdep.h> nor <init-arch.h>.
32178 (_ZGVeN16v_expf): Removed.
32179 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32180 ...
32181 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32182 Don't include <sysdep.h> nor <init-arch.h>.
32183 (_ZGVbN4v_expf): Removed.
32184 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32185 ...
32186 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32187 Don't include <sysdep.h> nor <init-arch.h>.
32188 (_ZGVdN8v_expf): Removed.
32189 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32190 ...
32191 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32192 Don't include <sysdep.h> nor <init-arch.h>.
32193 (_ZGVeN16v_logf): Removed.
32194 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32195 ...
32196 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32197 Don't include <sysdep.h> nor <init-arch.h>.
32198 (_ZGVbN4v_logf): Removed.
32199 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32200 ...
32201 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32202 Don't include <sysdep.h> nor <init-arch.h>.
32203 (_ZGVdN8v_logf): Removed.
32204 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32205 ...
32206 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32207 Don't include <sysdep.h> nor <init-arch.h>.
32208 (_ZGVeN16vv_powf): Removed.
32209 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32210 ...
32211 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32212 Don't include <sysdep.h> nor <init-arch.h>.
32213 (_ZGVbN4vv_powf): Removed.
32214 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32215 ...
32216 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32217 Don't include <sysdep.h> nor <init-arch.h>.
32218 (_ZGVdN8vv_powf): Removed.
32219 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32220 ...
32221 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32222 Don't include <sysdep.h> nor <init-arch.h>.
32223 (_ZGVeN16vvv_sincosf): Removed.
32224 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32225 ...
32226 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32227 Don't include <sysdep.h> nor <init-arch.h>.
32228 (_ZGVbN4vvv_sincosf): Removed.
32229 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32230 ...
32231 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32232 Don't include <sysdep.h> nor <init-arch.h>.
32233 (_ZGVdN8vvv_sincosf): Removed.
32234 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32235 ...
32236 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32237 Don't include <sysdep.h> nor <init-arch.h>.
32238 (_ZGVeN16v_sinf): Removed.
32239 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32240 ...
32241 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32242 Don't include <sysdep.h> nor <init-arch.h>.
32243 (_ZGVbN4v_sinf): Removed.
32244 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32245 ...
32246 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32247 Don't include <sysdep.h> nor <init-arch.h>.
32248 (_ZGVdN8v_sinf): Removed.
32249
32250 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32251
32252 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32253 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32254 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32255 s_rint-sse4_1 and s_rintf-sse4_1.
32256 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32257 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32258 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32259 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32260 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32261 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32262 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32263 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32264 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32265 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32266 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32267 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32268 (__ceil): Removed.
32269 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32270 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32271 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32272 (__ceilf): Removed.
32273 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32274 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32275 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32276 (__floor): Removed.
32277 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32278 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32279 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32280 (__floorf): Removed.
32281 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32282 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32283 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32284 (__nearbyint): Removed.
32285 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32286 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32287 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32288 (__nearbyintf): Removed.
32289 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32290 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32291 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32292 (__rint): Removed.
32293 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32294 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32295 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32296 (__rintf): Removed.
32297
32298 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32299
32300 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32301 SHARED. Avoid dynamic relocation against main in static PIE.
32302
32303 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32304
32305 [BZ #21815]
32306 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32307 (LDFLAGS-tst-prelink): Likewise.
32308
32309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32310
32311 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32312 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32313 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32314 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32315 (INTERNAL_SYSCALL_NCS): Likewise.
32316 (LOADARGS_1): Likewise.
32317 (LOADARGS_5): Likewise.
32318 (RESTOREARGS_1): Likewise.
32319 (RESTOREARGS_5): Likewise.
32320
32321 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32322
32323 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32324 (MEMPCPY_SYMBOL): Likewise.
32325 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32326 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32327 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32328 in libc.a.
32329 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32330 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32331 Likewise.
32332 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32333 (__hidden_ver1): Don't use in libc.a.
32334 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32335 (__mempcpy): Don't create a weak alias in libc.a.
32336 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32337 libc.a.
32338 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32339 (__hidden_ver1): Don't use in libc.a.
32340
32341 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32342
32343 * config.make.in (have-insert): New.
32344 * configure.ac (libc_cv_insert): New. Set to yes if linker
32345 supports INSERT in linker script.
32346 (AC_SUBST(libc_cv_insert): New.
32347 * configure: Regenerated.
32348 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32349 if $(have-insert) == yes.
32350
32351 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32352
32353 * elf/Makefile (tests): Add vismain only if
32354 $(have-protected-data) == yes.
32355 (tests-pie): Likewise.
32356
32357 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32358
32359 [BZ #21871]
32360 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32361 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32362
32363 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32364
32365 [BZ #21790]
32366 * sysdeps/i386/i586/memset.S
32367 (__memset_zero_constant_len_parameter): Removed.
32368 * sysdeps/i386/i686/memset.S
32369 (__memset_zero_constant_len_parameter): Likewise.
32370 * sysdeps/i386/i686/multiarch/memset_chk.S
32371 (__memset_zero_constant_len_parameter): Likewise.
32372 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32373 Likewise.
32374
32375 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32376
32377 * stdlib/getentropy.c (getentropy): Change return type to int.
32378
32379 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32380
32381 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32382
32383 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32384
32385 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32386 u_intN_t.
32387 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32388 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32389 Likewise.
32390 (ieee_float_shape_type): Likewise.
32391 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32392 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32393 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32394 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32395 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32396 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32397 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32398 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32399 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32400 Likewise.
32401 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32402 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32403 (__ieee754_yn): Likewise.
32404 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32405 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32406 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32407 Likewise.
32408 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32409 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32410 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32411 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32412 (__erfc): Likewise.
32413 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32414 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32415 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32416 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32417 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32418 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32419 Likewise.
32420 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32421 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32422 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32423 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32424 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32425 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32426 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32427 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32428 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32429 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32430 (__issignaling): Likewise.
32431 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32432 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32433 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32434 Likewise.
32435 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32436 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32437 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32438 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32439 Likewise.
32440 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32441 Likewise.
32442 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32443 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32444 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32445 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32446 (__erfcf): Likewise.
32447 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32448 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32449 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32450 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32451 Likewise.
32452 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32453 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32454 Likewise.
32455 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32456 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32457 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32458 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32459 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32460 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32461 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32462 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32463 Likewise.
32464 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32465 Likewise.
32466 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32467 Likewise.
32468 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32469 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32470 Likewise.
32471 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32472 Likewise.
32473 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32474 (__ieee754_ynl): Likewise.
32475 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32476 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32477 Likewise.
32478 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32479 Likewise.
32480 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32481 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32482 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32483 Likewise.
32484 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32485 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32486 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32487 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32488 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32489 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32490 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32491 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32492 Likewise.
32493 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32494 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32495 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32496 Likewise.
32497 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32498 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32499 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32500 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32501 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32502 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32503 Likewise.
32504 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32505 Likewise.
32506 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32507 Likewise.
32508 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32509 Likewise.
32510 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32511 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32512 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32513 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32514 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32515 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32516 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32517 Likewise.
32518 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32519 Likewise.
32520 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32521 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32522 Likewise.
32523 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32524 (__ieee754_remainderl): Likewise.
32525 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32526 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32527 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32528 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32529 Likewise.
32530 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32531 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32532 Likewise.
32533 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32534 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32535 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32536 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32537 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32538 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32539 Likewise.
32540 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32541 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32542 (__ieee754_y0l): Likewise.
32543 (pzero): Likewise.
32544 (qzero): Likewise.
32545 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32546 (__ieee754_y1l): Likewise.
32547 (pone): Likewise.
32548 (qone): Likewise.
32549 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32550 (__ieee754_ynl): Likewise.
32551 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32552 (__ieee754_lgammal_r): Likewise.
32553 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32554 Likewise.
32555 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32556 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32557 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32558 (__erfcl): Likewise.
32559 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32560 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32561 Likewise.
32562 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32563 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32564 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32565 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32566 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32567 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32568 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32569 Likewise.
32570 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32571 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32572 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32573 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32574 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32575 Likewise.
32576 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32577 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32578 Likewise.
32579 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32580 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32581 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32582 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32583 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32584
32585 2017-08-03 Florian Weimer <fweimer@redhat.com>
32586
32587 [BZ #21885]
32588 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32589 on memory allocation failure.
32590
32591 2017-08-03 Alan Modra <amodra@gmail.com>
32592
32593 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32594 tst-tlsopt-powerpc.c with function name change and no test harness.
32595 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32596 Call tls_get_addr_opt_test.
32597 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32598 (modules-names): Add mod-tlsopt-powerpc.
32599 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32600 (tst-tlsopt-powerpc): Depend on .so.
32601 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32602 define. Expand use in TLS_GD and TLS_LD.
32603
32604 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32605
32606 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32607 function.
32608 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32609
32610 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32611
32612 [BZ #21686]
32613 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32614 comparing size with that of double.
32615 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32616 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32617 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32618 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32619 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32620 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32621 unsigned __int128 types.
32622
32623 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32624
32625 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32626 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32627 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32628 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32629 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32630
32631 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32632
32633 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32634
32635 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32636
32637 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32638 of SHARED.
32639 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32640 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32641 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32642 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32643 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32644 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32645 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32646
32647 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32648
32649 [BZ #21685]
32650 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32651 bit-field expressions passed to sizeof or typeof.
32652 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32653 (__TGMATH_F128): Likewise.
32654 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32655 (__TGMATH_CF128): Likewise.
32656 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32657 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32658 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32659 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32660 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32661 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32662 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32663 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32664 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32665 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32666 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32667 (__TGMATH_UNARY_IMAG): Likewise.
32668 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32669 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32670 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32671 type.
32672 (define_vars_for_type): Handle bit_field type specially.
32673 (Tests.__init__): Declare structure with bit-field element.
32674
32675 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32676
32677 [BZ #21791]
32678 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32679 (MEMCPY_CHK): Define only if SHARED is defined.
32680 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32681 Likewise.
32682 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32683 Likewise.
32684
32685 See ChangeLog.18 for earlier changes.